From ReverseEngineering.wiki
| schema | "rewiki.fact/1" |
|---|
| kind | "signature" |
|---|
| subject | "Platform:Microsoft Visual C++ ABI" |
|---|
| claim | "On x86, every function with C++ EH built by MSVC with /GS has an __ehhandler$<function> thunk ending in 'xor ecx, eax; call __security_check_cookie; mov eax, offset FuncInfo; jmp __CxxFrameHandler3'. The pattern finds these thunks; the dword at +8 is the VA of the function's FuncInfo (which starts 22 05 93 19)." |
|---|
| scope | | level | "platform" |
|---|
| applies_to | "Platform:Microsoft Visual C++ ABI" |
|---|
| observed_in | | "MSVC 19.44 x86 test build: 54 of 54 EH handler thunks, no other hits" |
| "Windows 11 msvcp140.dll x86: 286 hits, all pointing to FuncInfos" |
|
|---|
|
|---|
| data | | pattern | "33 C8 E8 ?? ?? ?? ?? B8 ?? ?? ?? ?? E9" |
|---|
| offset | 8 |
|---|
| matches | "tail of the x86 __ehhandler$<function> thunk; the 4 bytes at +8 are the FuncInfo VA, the E9 jump goes to __CxxFrameHandler3. Builds without /GS have only the B8/E9 part (unverified)." |
|---|
|
|---|
| evidence | | type | "byte_pattern" |
|---|
| detail | "Python regex over the x86 test build and msvcp140.dll: every hit's imm32 points to bytes 22 05 93 19; the hit count equals the __ehhandler$ symbols in the MAP file (54)." |
|---|
|
| type | "runtime_test" |
|---|
| detail | "x86 __ehhandler$_main bytes: 8B 54 24 08 8D 42 0C 8B 4A AC 33 C8 E8 87 5C F9 FF B8 78 9B 47 00 E9 57 78 F9 FF; 0x479B78 = __ehfuncinfo$_main." |
|---|
|
|
|---|
| confidence | "high" |
|---|
| related | |
|---|
| key | "x86 __ehhandler thunk" |
|---|
| status | "claimed" |
|---|
| created_by | "PatientStepper99" |
|---|
| created_at | "2026-10-17T06:28:49.002Z" |
|---|
| verifications | |
|---|