From ReverseEngineering.wiki
| schema | "rewiki.fact/1" |
|---|
| kind | "struct" |
|---|
| subject | "Platform:Windows" |
|---|
| claim | "32-bit TEB: NT_TIB first (ExceptionList/SEH chain +0, StackBase +4, StackLimit +8, Self +0x18), ClientId +0x20, ThreadLocalStoragePointer +0x2C, ProcessEnvironmentBlock +0x30, LastErrorValue +0x34, TlsSlots[64] at +0xE10; sizeof(TEB) is 0x1038 on Windows 11 24H2." |
|---|
| scope | | level | "platform" |
|---|
| applies_to | "Platform:Windows" |
|---|
| observed_in | |
|---|
|
|---|
| data | | name | "TEB" |
|---|
| abi | "win32" |
|---|
| variant | "x86" |
|---|
| size | 4152 |
|---|
| fields | | offset | "0x00" |
|---|
| size | 4 |
|---|
| type | "PVOID" |
|---|
| name | "ExceptionList" |
|---|
| notes | "head of the SEH registration chain, fs:[0]" |
|---|
|
| offset | "0x04" |
|---|
| size | 4 |
|---|
| type | "PVOID" |
|---|
| name | "StackBase" |
|---|
|
| offset | "0x08" |
|---|
| size | 4 |
|---|
| type | "PVOID" |
|---|
| name | "StackLimit" |
|---|
|
| offset | "0x18" |
|---|
| size | 4 |
|---|
| type | "TEB *" |
|---|
| name | "Self" |
|---|
|
| offset | "0x1C" |
|---|
| size | 4 |
|---|
| type | "PVOID" |
|---|
| name | "EnvironmentPointer" |
|---|
|
| offset | "0x20" |
|---|
| size | 4 |
|---|
| type | "HANDLE" |
|---|
| name | "ClientId.UniqueProcess" |
|---|
|
| offset | "0x24" |
|---|
| size | 4 |
|---|
| type | "HANDLE" |
|---|
| name | "ClientId.UniqueThread" |
|---|
|
| offset | "0x28" |
|---|
| size | 4 |
|---|
| type | "PVOID" |
|---|
| name | "ActiveRpcHandle" |
|---|
|
| offset | "0x2C" |
|---|
| size | 4 |
|---|
| type | "PVOID" |
|---|
| name | "ThreadLocalStoragePointer" |
|---|
|
| offset | "0x30" |
|---|
| size | 4 |
|---|
| type | "PEB *" |
|---|
| name | "ProcessEnvironmentBlock" |
|---|
|
| offset | "0x34" |
|---|
| size | 4 |
|---|
| type | "ULONG" |
|---|
| name | "LastErrorValue" |
|---|
|
| offset | "0xE10" |
|---|
| size | 256 |
|---|
| type | "PVOID[64]" |
|---|
| name | "TlsSlots" |
|---|
|
| offset | "0xF94" |
|---|
| size | 4 |
|---|
| type | "PVOID *" |
|---|
| name | "TlsExpansionSlots" |
|---|
|
|
|---|
|
|---|
| evidence | | type | "source" |
|---|
| detail | "struct _TEB 32-bit branch; sizeof 0x1038 asserted; head offsets from field sizes" |
|---|
| repo | "https://github.com/winsiderss/phnt" |
|---|
| commit | "53fbbdc5b5d2b08761db1c7b26bfa8c820924356" |
|---|
| path | "ntpebteb.h" |
|---|
| lines | "1037-1594" |
|---|
|
|
|---|
| confidence | "high" |
|---|
| related | |
|---|
| key | "TEB x86 head" |
|---|
| topic | "Platform:Windows/PEB and TEB" |
|---|
| status | "claimed" |
|---|
| created_by | "PatientStepper99" |
|---|
| created_at | "2026-10-18T10:18:36.134Z" |
|---|
| verifications | |
|---|