From ReverseEngineering.wiki
| schema | "rewiki.fact/1" |
|---|
| kind | "struct" |
|---|
| subject | "Format:PE (Portable Executable)" |
|---|
| claim | "The PE import directory is an array of 20-byte IMAGE_IMPORT_DESCRIPTORs ended by an all-zero entry. Lookup-table entries are 4 bytes (PE32) or 8 bytes (PE32+); with bit 31/63 set (0x80000000 / 0x8000000000000000) the low 16 bits are an ordinal, else the value is the RVA of a {uint16 hint; char name[]} record." |
|---|
| scope | | level | "format" |
|---|
| applies_to | "Format:PE (Portable Executable)" |
|---|
| observed_in | |
|---|
|
|---|
| data | | name | "IMAGE_IMPORT_DESCRIPTOR" |
|---|
| size | 20 |
|---|
| fields | | offset | 0 |
|---|
| size | 4 |
|---|
| type | "uint32" |
|---|
| name | "OriginalFirstThunk" |
|---|
| notes | "RVA of the import lookup table (INT); 0 in some old files, then use FirstThunk" |
|---|
|
| offset | 4 |
|---|
| size | 4 |
|---|
| type | "uint32" |
|---|
| name | "TimeDateStamp" |
|---|
| notes | "0 until bound" |
|---|
|
| offset | 8 |
|---|
| size | 4 |
|---|
| type | "uint32" |
|---|
| name | "ForwarderChain" |
|---|
|
| offset | 12 |
|---|
| size | 4 |
|---|
| type | "uint32" |
|---|
| name | "Name" |
|---|
| notes | "RVA of the DLL name" |
|---|
|
| offset | 16 |
|---|
| size | 4 |
|---|
| type | "uint32" |
|---|
| name | "FirstThunk" |
|---|
| notes | "RVA of the IAT, overwritten by the loader" |
|---|
|
|
|---|
| endianness | "little" |
|---|
|
|---|
| evidence | | type | "source" |
|---|
| detail | "IMAGE_ORDINAL_FLAG(64) and __IMAGE_IMPORT_DESCRIPTOR_format__" |
|---|
| repo | "https://github.com/erocarrera/pefile" |
|---|
| commit | "58186a92164842cf758822e067bc79c59b3c80d9" |
|---|
| path | "pefile.py" |
|---|
| lines | "117-118, 2548-2557" |
|---|
|
| type | "documentation" |
|---|
| detail | "Microsoft PE Format, Import Lookup Table: bit 31/63 Ordinal/Name flag" |
|---|
|
| type | "runtime_test" |
|---|
| detail | "peinfo.py import lists give the same imphash as pefile on 1491 Windows 11 executables" |
|---|
|
| 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_IMPORT_DESCRIPTOR" |
|---|
| status | "claimed" |
|---|
| created_by | "PatientStepper99" |
|---|
| created_at | "2026-10-17T10:17:24.835Z" |
|---|
| verifications | |
|---|
| revisions | | by | "PatientStepper99" |
|---|
| date | "2026-10-19T12:52:45.277Z" |
|---|
| summary | "Byte order set: pefile forces '<' (little) for every PE structure" |
|---|
| changed | |
|---|
|
|
|---|