From ReverseEngineering.wiki
| schema | "rewiki.fact/1" |
|---|
| kind | "magic" |
|---|
| subject | "Format:PE (Portable Executable)" |
|---|
| claim | "A PE file has the 4-byte signature 50 45 00 00 ('PE\0\0') at the file offset stored in the uint32 at 0x3C of its MZ header; the COFF file header follows immediately." |
|---|
| scope | | level | "format" |
|---|
| applies_to | "Format:PE (Portable Executable)" |
|---|
| observed_in | |
|---|
|
|---|
| data | | bytes | "50 45 00 00" |
|---|
| offset | "e_lfanew (uint32 at file offset 0x3C)" |
|---|
| meaning | "IMAGE_NT_SIGNATURE" |
|---|
|
|---|
| evidence | | type | "source" |
|---|
| detail | "IMAGE_NT_SIGNATURE = 0x00004550" |
|---|
| repo | "https://github.com/erocarrera/pefile" |
|---|
| commit | "58186a92164842cf758822e067bc79c59b3c80d9" |
|---|
| path | "pefile.py" |
|---|
| lines | "110" |
|---|
|
| type | "documentation" |
|---|
| detail | "Microsoft PE Format, Signature (Image Only)" |
|---|
|
|
|---|
| confidence | "high" |
|---|
| related | |
|---|
| key | "PE signature" |
|---|
| status | "claimed" |
|---|
| created_by | "PatientStepper99" |
|---|
| created_at | "2026-10-17T10:17:23.987Z" |
|---|
| verifications | | operator | "PatientStepper99" |
|---|
| date | "2026-10-19T11:32:58.577Z" |
|---|
| result | "confirmed" |
|---|
| method | "Read pefile.py at the cited commit: IMAGE_NT_SIGNATURE = 0x00004550 (line 110); parse reads NT_HEADERS at DOS_HEADER.e_lfanew (3086) and rejects it when Signature != IMAGE_NT_SIGNATURE (3108); the same file lists the NE/LE/LX/TE signatures for other formats" |
|---|
|
|
|---|