kd❯ g

fffff803'00000000 EB FE jmp short loc_HackinG

Bytes Type offset (32-bit, FS) offset (64-bit, GS) Windows Versions Description
pointerFS:[0x00]GS:[0x00]Win9x and NTCurrent Structured Exception Handling (SEH) frame
Note: the 64-bit version of Windows uses stack unwinding
done in kernel mode instead.
pointerFS:[0x08]GS:[0x10]Win9x and NTStack Limit / Ceiling of stack (low address)
pointerFS:[0x0C]GS:[0x18]NTSubSystemTib
pointerFS:[0x10]GS:[0x20]NTFiber data
pointerFS:[0x14]GS:[0x28]Win9x and NTArbitrary data slot
pointerFS:[0x18]GS:[0x30]Win9x and NTLinear address of TEB
End of NT subsystem independent part; below are Win32-dependent
pointerFS:[0x1C]GS:[0x38]NTEnvironment Pointer
pointerFS:[0x20]GS:[0x40]NTProcess ID
(in some Windows distributions this field is used as 'DebugContext')
4FS:[0x24]GS:[0x48]NTCurrent thread ID
4FS:[0x28]GS:[0x50]NTActive RPC Handle
4FS:[0x2C]GS:[0x58]Win9x and NTLinear address of the thread-local storage array
4FS:[0x30]GS:[0x60]NTLinear address of Process Environment Block (PEB)
Windows Memory Layout, User-Kernel Address Spaces
4FS:[0x34]GS:[0x68]NTLast error number
4FS:[0x38]GS:[0x6C]NTCount of owned critical sections
4FS:[0x3C]GS:[0x70]NTAddress of CSR Client Thread
4FS:[0x40]GS:[0x78]NTWin32 Thread Information
124FS:[0x44]GS:[0x80]NT, WineWin32 client information (NT), user32 private data (Wine),
0x60 = LastError (Win95&98), 0x74 = LastError (WinME)
4FS:[0xC0]GS:[0x100]NTReserved for Wow64. Contains a
pointer to FastSysCall in Wow64
4FS:[0xC4]GS:[0x108]NTCurrent Locale
4FS:[0xC8]GS:[0x10C]NTFP Software Status Register
216FS:[0xCC]GS:[0x110]NT, WineReserved for OS (NT), kernel32 private data (Wine)
herein: FS:[0x124] 4 NT Pointer to KTHREAD (ETHREAD) structure
4FS:[0x1A4]GS:[0x2C0]NTException code
18FS:[0x1A8]GS:[0x2C8]NTActivation context stack
24FS:[0x1BC]GS:[0x2E8]NT, WineSpare bytes (NT), ntdll private data (Wine)
40FS:[0x1D4]GS:[0x300]NT, WineReserved for OS (NT), ntdll private data (Wine)
1248FS:[0x1FC]GS:[0x350]NT, WineGDI TEB Batch (OS), vm86 private data (Wine)
4FS:[0x6DC]GS:[0x838]NTGDI Region
4FS:[0x6E0]GS:[0x840]NTGDI Pen
4FS:[0x6E4]GS:[0x848]NTGDI Brush
4FS:[0x6E8]GS:[0x850]NTReal Process ID
4FS:[0x6EC]GS:[0x858]NTReal Thread ID
4FS:[0x6F0]GS:[0x860]NTGDI cached process handle
4FS:[0x6F4]GS:[0x868]NTGDI client process ID (PID)
4FS:[0x6F8]GS:[0x86C]NTGDI client thread ID (TID)
4FS:[0x6FC]GS:[0x870]NTGDI thread locale information
20FS:[0x700]GS:[0x878]NTReserved for user application
1248FS:[0x714]GS:[0x890]NTReserved for GL (See wine ref for internals)[2]
4FS:[0xBF4]GS:[0x1250]NTLast Status Value
532FS:[0xBF8]GS:[0x1258]NTStatic UNICODE_STRING buffer
pointerFS:[0xE0C]GS:[0x1478]NTAlso known as DeallocationStack, it establishes the real start
address of the stack buffer, hence the real stack limit: it is a few
pages less than the stack limit field (which hides the guard pages
used to detect stack overflows).
pointer[]FS:[0xE10]GS:[0x1480]NTTLS slots, 4/8 bytes per slot, 64 slots
8FS:[0xF10]GS:[0x1680]NTTLS links (LIST_ENTRY structure)
4FS:[0xF18]GS:[0x1690]NTVDM
4FS:[0xF1C]GS:[0x1698]NTReserved for RPC
4FS:[0xF28]GS:[0x16B0]NTThread error mode (RtlSetThreadErrorMode)