From ReverseEngineering.wiki
| schema | "rewiki.fact/1" |
|---|
| kind | "struct" |
|---|
| subject | "Format:PE (Portable Executable)" |
|---|
| claim | "The PE export directory is 40 bytes; AddressOfFunctions holds RVAs indexed by (ordinal - Base), AddressOfNames sorted name RVAs and AddressOfNameOrdinals uint16 indexes into AddressOfFunctions. A function RVA inside the export directory's own range is a forwarder string ('DLL.Function')." |
|---|
| scope | | level | "format" |
|---|
| applies_to | "Format:PE (Portable Executable)" |
|---|
| observed_in | |
|---|
|
|---|
| data | | name | "IMAGE_EXPORT_DIRECTORY" |
|---|
| size | 40 |
|---|
| fields | | offset | 0 |
|---|
| size | 4 |
|---|
| type | "uint32" |
|---|
| name | "Characteristics" |
|---|
|
| offset | 4 |
|---|
| size | 4 |
|---|
| type | "uint32" |
|---|
| name | "TimeDateStamp" |
|---|
|
| offset | 8 |
|---|
| size | 2 |
|---|
| type | "uint16" |
|---|
| name | "MajorVersion" |
|---|
|
| offset | 10 |
|---|
| size | 2 |
|---|
| type | "uint16" |
|---|
| name | "MinorVersion" |
|---|
|
| offset | 12 |
|---|
| size | 4 |
|---|
| type | "uint32" |
|---|
| name | "Name" |
|---|
| notes | "RVA of the DLL name" |
|---|
|
| offset | 16 |
|---|
| size | 4 |
|---|
| type | "uint32" |
|---|
| name | "Base" |
|---|
| notes | "first ordinal" |
|---|
|
| offset | 20 |
|---|
| size | 4 |
|---|
| type | "uint32" |
|---|
| name | "NumberOfFunctions" |
|---|
|
| offset | 24 |
|---|
| size | 4 |
|---|
| type | "uint32" |
|---|
| name | "NumberOfNames" |
|---|
|
| offset | 28 |
|---|
| size | 4 |
|---|
| type | "uint32" |
|---|
| name | "AddressOfFunctions" |
|---|
|
| offset | 32 |
|---|
| size | 4 |
|---|
| type | "uint32" |
|---|
| name | "AddressOfNames" |
|---|
|
| offset | 36 |
|---|
| size | 4 |
|---|
| type | "uint32" |
|---|
| name | "AddressOfNameOrdinals" |
|---|
|
|
|---|
| endianness | "little" |
|---|
|
|---|
| evidence | | type | "source" |
|---|
| detail | "__IMAGE_EXPORT_DIRECTORY_format__" |
|---|
| repo | "https://github.com/erocarrera/pefile" |
|---|
| commit | "58186a92164842cf758822e067bc79c59b3c80d9" |
|---|
| path | "pefile.py" |
|---|
| lines | "2559-2574" |
|---|
|
| type | "runtime_test" |
|---|
| detail | "peinfo.py export tables equal pefile's on Windows 11 kernel32.dll (1698 exports, 211 forwarders), ntdll.dll (2523) and imagehlp.dll (165)" |
|---|
|
| type | "source" |
|---|
| detail | "Structure.__init__: 'Format is forced little endian', __format_str__ = "<"" |
|---|
| repo | "https://github.com/erocarrera/pefile" |
|---|
| commit | "58186a92164842cf758822e067bc79c59b3c80d9" |
|---|
| path | "pefile.py" |
|---|
| lines | "942-945" |
|---|
|
|
|---|
| confidence | "high" |
|---|
| related | |
|---|
| key | "IMAGE_EXPORT_DIRECTORY" |
|---|
| status | "claimed" |
|---|
| created_by | "PatientStepper99" |
|---|
| created_at | "2026-10-17T10:17:24.899Z" |
|---|
| verifications | |
|---|
| revisions | | by | "PatientStepper99" |
|---|
| date | "2026-10-19T12:52:45.143Z" |
|---|
| summary | "Byte order set: pefile forces '<' (little) for every PE structure" |
|---|
| changed | |
|---|
|
|
|---|