几个重要结构

typedef struct _KPCR {
   KPCR_TIB   Tib;          /* 00 */
   struct _KPCR   *Self;       /* 1C */
   struct _KPRCB   *Prcb;    /* 20 */
   KIRQL   Irql;                 /* 24 */
   ULONG   IRR;             /* 28 */
   ULONG   IrrActive;           /* 2C */
   ULONG   IDR;             /* 30 */
   PVOID   KdVersionBlock;        /* 34 */
   PUSHORT   IDT;              /* 38 */
   PUSHORT   GDT;          /* 3C */
   struct _KTSS   *TSS;           /* 40 */
   USHORT   MajorVersion;        /* 44 */
   USHORT   MinorVersion;        /* 46 */
   KAFFINITY   SetMember;    /* 48 */
   ULONG   StallScaleFactor;    /* 4C */
   UCHAR   DebugActive;       /* 50 */
   UCHAR   ProcessorNumber;     /* 51 */
   UCHAR   Reserved;          /* 52 */
   UCHAR   L2CacheAssociativity;   /* 53 */
   ULONG   VdmAlert;           /* 54 */
   ULONG   KernelReserved[14]; /* 58 */
   ULONG   L2CacheSize;        /* 90 */
   ULONG   HalReserved[16];     /* 94 */
   ULONG   InterruptMode;    /* D4 */
   UCHAR   KernelReserved2[0x48]; /* D8 */
   KPRCB   PrcbData;           /* 120 */
} KPCR, *PKPCR;
引用:

nt! _KPRCB
+0x000 MinorVersion    : 1
+0x002 MajorVersion    : 1
+0x004 CurrentThread     : 0xff881a40 _KTHREAD
+0x008 NextThread        : (null)
+0x00c IdleThread        : 0x80559e20 _KTHREAD
+0x010 Number          : 0 ''
+0x011 Reserved       : 0 ''
+0x012 BuildType       : 2
+0x014 SetMember       : 1
+0x018 CpuType           : 6 ''
+0x019 CpuID          : 1 ''
+0x01a CpuStep           : 0x803
+0x01c ProcessorState : _KPROCESSOR_STATE
+0x33c KernelReserved : [16] 0
+0x37c HalReserved    : [16] 0
+0x3bc PrcbPad0       : [92] ""
+0x418 LockQueue       : [16] _KSPIN_LOCK_QUEUE
+0x498 PrcbPad1       : [8] ""
+0x4a0 NpxThread       : 0xff95f480 _KTHREAD
+0x4a4 InterruptCount : 0x145b8d
+0x4a8 KernelTime        : 0x46b7f
+0x4ac UserTime       : 0xd587
+0x4b0 DpcTime           : 0x1594
+0x4b4 DebugDpcTime    : 0
+0x4b8 InterruptTime     : 0xb66
+0x4bc AdjustDpcThreshold : 0x14
+0x4c0 PageColor       : 0
+0x4c4 SkipTick       : 0
+0x4c8 MultiThreadSetBusy : 0 ''
+0x4c9 Spare2          : [3] ""
+0x4cc ParentNode        : 0x8055a4e0 _KNODE
+0x4d0 MultiThreadProcessorSet : 1
+0x4d4 MultiThreadSetMaster : (null)
+0x4d8 ThreadStartCount : [2] 0
+0x4e0 CcFastReadNoWait : 0
+0x4e4 CcFastReadWait : 0
+0x4e8 CcFastReadNotPossible : 0
+0x4ec CcCopyReadNoWait : 0
+0x4f0 CcCopyReadWait : 0
+0x4f4 CcCopyReadNoWaitMiss : 0
+0x4f8 KeAlignmentFixupCount : 0
+0x4fc KeContextSwitches : 0x2f0a0a
+0x500 KeDcacheFlushCount : 0
+0x504 KeExceptionDispatchCount : 0x176d
+0x508 KeFirstLevelTbFills : 0
+0x50c KeFloatingEmulationCount : 0
+0x510 KeIcacheFlushCount : 0
+0x514 KeSecondLevelTbFills : 0
+0x518 KeSystemCalls     : 0x2e247fd
+0x51c SpareCounter0     : [1] 0
+0x520 PPLookasideList : [16] _PP_LOOKASIDE_LIST
+0x5a0 PPNPagedLookasideList : [32] _PP_LOOKASIDE_LIST
+0x6a0 PPPagedLookasideList : [32] _PP_LOOKASIDE_LIST
+0x7a0 PacketBarrier     : 0
+0x7a4 ReverseStall    : 0
+0x7a8 IpiFrame       : (null)
+0x7ac PrcbPad2       : [52] ""
+0x7e0 CurrentPacket     : [3] (null)
+0x7ec TargetSet       : 0
+0x7f0 WorkerRoutine     : (null)
+0x7f4 IpiFrozen       : 0
+0x7f8 PrcbPad3       : [40] ""
+0x820 RequestSummary : 0
+0x824 SignalDone        : (null)
+0x828 PrcbPad4       : [56] ""
+0x860 DpcListHead    : _LIST_ENTRY [ 0xffdff980 - 0xffdff980 ]
+0x868 DpcStack       : 0xfaf78000
+0x86c DpcCount       : 0xb2efb
+0x870 DpcQueueDepth     : 0
+0x874 DpcRoutineActive : 0
+0x878 DpcInterruptRequested : 0
+0x87c DpcLastCount    : 0xb2efb
+0x880 DpcRequestRate : 2
+0x884 MaximumDpcQueueDepth : 1
+0x888 MinimumDpcRate : 3
+0x88c QuantumEnd        : 0
+0x890 PrcbPad5       : [16] ""
+0x8a0 DpcLock           : 0
+0x8a4 PrcbPad6       : [28] ""
+0x8c0 CallDpc           : _KDPC
+0x8e0 ChainedInterruptList : (null)
+0x8e4 LookasideIrpFloat : 1469
+0x8e8 SpareFields0    : [6] 0
+0x900 VendorString    : [13] "GenuineIntel"
+0x90d InitialApicId     : 0 ''
+0x90e LogicalProcessorsPerPhysicalProcessor : 0x1 ''
+0x910 MHz             : 0x306
+0x914 FeatureBits    : 0x80003fff
+0x918 UpdateSignature : _LARGE_INTEGER 0x10`00000000
+0x920 NpxSaveArea    : _FX_SAVE_AREA
+0xb30 PowerState        : _PROCESSOR_POWER_STATE
引用:

lkd> dt _ethread
nt!_ETHREAD
   +0x000 Tcb              : _KTHREAD
   +0x1c0 CreateTime       : _LARGE_INTEGER
   +0x1c0 NestedFaultCount : Pos 0, 2 Bits
   +0x1c0 ApcNeeded        : Pos 2, 1 Bit
   +0x1c8 ExitTime         : _LARGE_INTEGER
   +0x1c8 LpcReplyChain    : _LIST_ENTRY
   +0x1c8 KeyedWaitChain   : _LIST_ENTRY
   +0x1d0 ExitStatus       : Int4B
   +0x1d0 OfsChain         : Ptr32 Void
   +0x1d4 PostBlockList    : _LIST_ENTRY
   +0x1dc TerminationPort : Ptr32 _TERMINATION_PORT
   +0x1dc ReaperLink       : Ptr32 _ETHREAD
   +0x1dc KeyedWaitValue   : Ptr32 Void
   +0x1e0 ActiveTimerListLock : Uint4B
   +0x1e4 ActiveTimerListHead : _LIST_ENTRY
   +0x1ec Cid              : _CLIENT_ID
   +0x1f4 LpcReplySemaphore : _KSEMAPHORE
   +0x1f4 KeyedWaitSemaphore : _KSEMAPHORE
   +0x208 LpcReplyMessage : Ptr32 Void
   +0x208 LpcWaitingOnPort : Ptr32 Void
   +0x20c ImpersonationInfo : Ptr32 _PS_IMPERSONATION_INFORMATION
   +0x210 IrpList          : _LIST_ENTRY
   +0x218 TopLevelIrp      : Uint4B
   +0x21c DeviceToVerify   : Ptr32 _DEVICE_OBJECT
   +0x220 ThreadsProcess   : Ptr32 _EPROCESS
   +0x224 StartAddress     : Ptr32 Void
   +0x228 Win32StartAddress : Ptr32 Void
   +0x228 LpcReceivedMessageId : Uint4B
   +0x22c ThreadListEntry : _LIST_ENTRY
   +0x234 RundownProtect   : _EX_RUNDOWN_REF
   +0x238 ThreadLock       : _EX_PUSH_LOCK
   +0x23c LpcReplyMessageId : Uint4B
   +0x240 ReadClusterSize : Uint4B
   +0x244 GrantedAccess    : Uint4B
   +0x248 CrossThreadFlags : Uint4B
   +0x248 Terminated       : Pos 0, 1 Bit
   +0x248 DeadThread       : Pos 1, 1 Bit
   +0x248 HideFromDebugger : Pos 2, 1 Bit
   +0x248 ActiveImpersonationInfo : Pos 3, 1 Bit
   +0x248 SystemThread     : Pos 4, 1 Bit
   +0x248 HardErrorsAreDisabled : Pos 5, 1 Bit
   +0x248 BreakOnTermination : Pos 6, 1 Bit
   +0x248 SkipCreationMsg : Pos 7, 1 Bit
   +0x248 SkipTerminationMsg : Pos 8, 1 Bit
   +0x24c SameThreadPassiveFlags : Uint4B
   +0x24c ActiveExWorker   : Pos 0, 1 Bit
   +0x24c ExWorkerCanWaitUser : Pos 1, 1 Bit
   +0x24c MemoryMaker      : Pos 2, 1 Bit
   +0x250 SameThreadApcFlags : Uint4B
   +0x250 LpcReceivedMsgIdValid : Pos 0, 1 Bit
   +0x250 LpcExitThreadCalled : Pos 1, 1 Bit
   +0x250 AddressSpaceOwner : Pos 2, 1 Bit
   +0x254 ForwardClusterOnly : UChar
   +0x255 DisablePageFaultClustering : UChar


nt! _KTHREAD
+0x000 Header          : _DISPATCHER_HEADER
+0x010 MutantListHead : _LIST_ENTRY [ 0x80559e30 - 0x80559e30 ]
+0x018 InitialStack    : 0x80551680
+0x01c StackLimit        : 0x8054e680
+0x020 Teb             : (null)
+0x024 TlsArray       : (null)
+0x028 KernelStack    : 0x805513cc
+0x02c DebugActive    : 0 ''
+0x02d State          : 0x2 ''
+0x02e Alerted           : [2] ""
+0x030 Iopl              : 0 ''
+0x031 NpxState       : 0xa ''
+0x032 Saturation        : 0 ''
+0x033 Priority       : 16 ''
+0x034 ApcState       : _KAPC_STATE
+0x04c ContextSwitches : 0x47dd6
+0x050 IdleSwapBlock     : 0 ''
+0x051 Spare0          : [3] ""
+0x054 WaitStatus        : 0
+0x058 WaitIrql       : 0x2 ''
+0x059 WaitMode       : 0 ''
+0x05a WaitNext       : 0 ''
+0x05b WaitReason        : 0 ''
+0x05c WaitBlockList     : (null)
+0x060 WaitListEntry     : _LIST_ENTRY [ 0x0 - 0x0 ]
+0x060 SwapListEntry     : _SINGLE_LIST_ENTRY
+0x068 WaitTime       : 0
+0x06c BasePriority    : 0 ''
+0x06d DecrementCount : 0 ''
+0x06e PriorityDecrement : 0 ''
+0x06f Quantum           : 74 'J'
+0x070 WaitBlock       : [4] _KWAIT_BLOCK
+0x0d0 LegoData       : (null)
+0x0d4 KernelApcDisable : 0
+0x0d8 UserAffinity    : 0xffffffff
+0x0dc SystemAffinityActive : 0 ''
+0x0dd PowerState        : 0 ''
+0x0de NpxIrql           : 0 ''
+0x0df InitialNode    : 0 ''
+0x0e0 ServiceTable    : 0x8055a680
+0x0e4 Queue          : (null)
+0x0e8 ApcQueueLock    : 0
+0x0f0 Timer          : _KTIMER
+0x118 QueueListEntry : _LIST_ENTRY [ 0x0 - 0x0 ]
+0x120 SoftAffinity    : 1
+0x124 Affinity       : 1
+0x128 Preempted       : 0 ''
+0x129 ProcessReadyQueue : 0 ''
+0x12a KernelStackResident : 0x1 ''
+0x12b NextProcessor     : 0 ''
+0x12c CallbackStack     : (null)
+0x130 Win32Thread    : (null)
+0x134 TrapFrame       : (null)
+0x138 ApcStatePointer : [2] 0x80559e54 _KAPC_STATE
+0x140 PreviousMode    : 0 ''
+0x141 EnableStackSwap : 0x1 ''
+0x142 LargeStack        : 0 ''
+0x143 ResourceIndex     : 0 ''
+0x144 KernelTime        : 0x3440c
+0x148 UserTime       : 0
+0x14c SavedApcState     : _KAPC_STATE
+0x164 Alertable       : 0 ''
+0x165 ApcStateIndex     : 0 ''
+0x166 ApcQueueable    : 0x1 ''
+0x167 AutoAlignment     : 0 ''
+0x168 StackBase       : 0x80551680
+0x16c SuspendApc        : _KAPC
+0x19c SuspendSemaphore : _KSEMAPHORE
+0x1b0 ThreadListEntry : _LIST_ENTRY [ 0x8055a0d0 - 0x8055a0d0 ]
+0x1b8 FreezeCount    : 0 ''
+0x1b9 SuspendCount    : 0 ''
+0x1ba IdealProcessor : 0 ''
+0x1bb DisableBoost    : 0 ''

nt!_EPROCESS
+0x000 Pcb             : _KPROCESS
+0x06c ProcessLock    : _EX_PUSH_LOCK
+0x070 CreateTime        : _LARGE_INTEGER 0x0
+0x078 ExitTime       : _LARGE_INTEGER 0x0
+0x080 RundownProtect : _EX_RUNDOWN_REF
+0x084 UniqueProcessId : (null)
+0x088 ActiveProcessLinks : _LIST_ENTRY [ 0x0 - 0x0 ]
+0x090 QuotaUsage        : [3] 0
+0x09c QuotaPeak       : [3] 0
+0x0a8 CommitCharge    : 0
+0x0ac PeakVirtualSize : 0
+0x0b0 VirtualSize    : 0
+0x0b4 SessionProcessLinks : _LIST_ENTRY [ 0x0 - 0x0 ]
+0x0bc DebugPort       : (null)
+0x0c0 ExceptionPort     : (null)
+0x0c4 ObjectTable    : 0xe1000d18 _HANDLE_TABLE
+0x0c8 Token          : _EX_FAST_REF
+0x0cc WorkingSetLock : _FAST_MUTEX
+0x0ec WorkingSetPage : 0x1460
+0x0f0 AddressCreationLock : _FAST_MUTEX
+0x110 HyperSpaceLock : 0
+0x114 ForkInProgress : (null)
+0x118 HardwareTrigger : 0
+0x11c VadRoot           : (null)
+0x120 VadHint           : (null)
+0x124 CloneRoot       : (null)
+0x128 NumberOfPrivatePages : 0
+0x12c NumberOfLockedPages : 0
+0x130 Win32Process    : (null)
+0x134 Job             : (null)
+0x138 SectionObject     : (null)
+0x13c SectionBaseAddress : (null)
+0x140 QuotaBlock        : 0x80561780 _EPROCESS_QUOTA_BLOCK
+0x144 WorkingSetWatch : (null)
+0x148 Win32WindowStation : (null)
+0x14c InheritedFromUniqueProcessId : (null)
+0x150 LdtInformation : (null)
+0x154 VadFreeHint    : (null)
+0x158 VdmObjects        : (null)
+0x15c DeviceMap       : (null)
+0x160 PhysicalVadList : _LIST_ENTRY [ 0x8055a1e0 - 0x8055a1e0 ]
+0x168 PageDirectoryPte : _HARDWARE_PTE
+0x168 Filler          : 0
+0x170 Session           : (null)
+0x174 ImageFileName     : [16] "Idle"
+0x184 JobLinks       : _LIST_ENTRY [ 0x0 - 0x0 ]
+0x18c LockedPagesList : (null)
+0x190 ThreadListHead : _LIST_ENTRY [ 0x8055a210 - 0x8055a210 ]
+0x198 SecurityPort    : (null)
+0x19c PaeTop          : (null)
+0x1a0 ActiveThreads     : 0
+0x1a4 GrantedAccess     : 0x1f0fff
+0x1a8 DefaultHardErrorProcessing : 0
+0x1ac LastThreadExitStatus : 0
+0x1b0 Peb             : (null)
+0x1b4 PrefetchTrace     : _EX_FAST_REF
+0x1b8 ReadOperationCount : _LARGE_INTEGER 0x0
+0x1c0 WriteOperationCount : _LARGE_INTEGER 0x0
+0x1c8 OtherOperationCount : _LARGE_INTEGER 0x0
+0x1d0 ReadTransferCount : _LARGE_INTEGER 0x0
+0x1d8 WriteTransferCount : _LARGE_INTEGER 0x0
+0x1e0 OtherTransferCount : _LARGE_INTEGER 0x0
+0x1e8 CommitChargeLimit : 0
+0x1ec CommitChargePeak : 0
+0x1f0 AweInfo           : (null)
+0x1f4 SeAuditProcessCreationInfo : _SE_AUDIT_PROCESS_CREATION_INFO
+0x1f8 Vm             : _MMSUPPORT
+0x238 LastFaultCount : 0
+0x23c ModifiedPageCount : 0
+0x240 NumberOfVads    : 0
+0x244 JobStatus       : 0
+0x248 Flags          : 0x800
+0x248 CreateReported : 0y0
+0x248 NoDebugInherit : 0y0
+0x248 ProcessExiting : 0y0
+0x248 ProcessDelete     : 0y0
+0x248 Wow64SplitPages : 0y0
+0x248 VmDeleted       : 0y0
+0x248 OutswapEnabled : 0y0
+0x248 Outswapped        : 0y0
+0x248 ForkFailed        : 0y0
+0x248 HasPhysicalVad : 0y0
+0x248 AddressSpaceInitialized : 0y10
+0x248 SetTimerResolution : 0y0
+0x248 BreakOnTermination : 0y0
+0x248 SessionCreationUnderway : 0y0
+0x248 WriteWatch        : 0y0
+0x248 ProcessInSession : 0y0
+0x248 OverrideAddressSpace : 0y0
+0x248 HasAddressSpace : 0y0
+0x248 LaunchPrefetched : 0y0
+0x248 InjectInpageErrors : 0y0
+0x248 VmTopDown       : 0y0
+0x248 Unused3           : 0y0
+0x248 Unused4           : 0y0
+0x248 VdmAllowed        : 0y0
+0x248 Unused          : 0y00000 (0)
+0x248 Unused1           : 0y0
+0x248 Unused2           : 0y0
+0x24c ExitStatus        : 0
+0x250 NextPageColor     : 0
+0x252 SubSystemMinorVersion : 0 ''
+0x253 SubSystemMajorVersion : 0 ''
+0x252 SubSystemVersion : 0
+0x254 PriorityClass     : 0 ''
+0x255 WorkingSetAcquiredUnsafe : 0 ''
+0x258 Cookie          : 0

nt!_KPROCESS
   +0x000 Header           : _DISPATCHER_HEADER
   +0x010 ProfileListHead : _LIST_ENTRY
   +0x018 DirectoryTableBase : [2] Uint4B
   +0x020 LdtDescriptor    : _KGDTENTRY
   +0x028 Int21Descriptor : _KIDTENTRY
   +0x030 IopmOffset       : Uint2B
   +0x032 Iopl             : UChar
   +0x033 Unused           : UChar
   +0x034 ActiveProcessors : Uint4B
   +0x038 KernelTime       : Uint4B
   +0x03c UserTime         : Uint4B
   +0x040 ReadyListHead    : _LIST_ENTRY
   +0x048 SwapListEntry    : _SINGLE_LIST_ENTRY
   +0x04c VdmTrapcHandler : Ptr32 Void
   +0x050 ThreadListHead   : _LIST_ENTRY
   +0x058 ProcessLock      : Uint4B
   +0x05c Affinity         : Uint4B
   +0x060 StackCount       : Uint2B
   +0x062 BasePriority     : Char
   +0x063 ThreadQuantum    : Char
   +0x064 AutoAlignment    : UChar
   +0x065 State            : UChar
   +0x066 ThreadSeed       : UChar
   +0x067 DisableBoost     : UChar
   +0x068 PowerState       : UChar
   +0x069 DisableQuantum   : UChar
   +0x06a IdealNode        : UChar
   +0x06b Flags            : _KEXECUTE_OPTIONS
   +0x06b ExecuteOptions   : UChar

--------------------------------------------------------------------------------------------------

lkd> dt _context
nt!_CONTEXT
   +0x000 ContextFlags     : Uint4B
   +0x004 Dr0              : Uint4B
   +0x008 Dr1              : Uint4B
   +0x00c Dr2              : Uint4B
   +0x010 Dr3              : Uint4B
   +0x014 Dr6              : Uint4B
   +0x018 Dr7              : Uint4B
   +0x01c FloatSave        : _FLOATING_SAVE_AREA
   +0x08c SegGs            : Uint4B
   +0x090 SegFs            : Uint4B
   +0x094 SegEs            : Uint4B
   +0x098 SegDs            : Uint4B
   +0x09c Edi              : Uint4B
   +0x0a0 Esi              : Uint4B
   +0x0a4 Ebx              : Uint4B
   +0x0a8 Edx              : Uint4B
   +0x0ac Ecx              : Uint4B
   +0x0b0 Eax              : Uint4B
   +0x0b4 Ebp              : Uint4B
   +0x0b8 Eip              : Uint4B
   +0x0bc SegCs            : Uint4B
   +0x0c0 EFlags           : Uint4B
   +0x0c4 Esp              : Uint4B
   +0x0c8 SegSs            : Uint4B
   +0x0cc ExtendedRegisters : [512] UChar

 
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值