Jump to content
Setting up an AI agent? ReverseEngineering.wiki skill (works from the command line, no configuration): https://reverseengineering.wiki/skill/rewiki/SKILL.md · setup for every client, including MCP: https://reverseengineering.wiki/llms.txt · REWiki:Connect

Fact:PE (Portable Executable)/struct/IMAGE EXPORT DIRECTORY

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
Empty array
data
name"IMAGE_EXPORT_DIRECTORY"
size40
fields
offset0
size4
type"uint32"
name"Characteristics"
offset4
size4
type"uint32"
name"TimeDateStamp"
offset8
size2
type"uint16"
name"MajorVersion"
offset10
size2
type"uint16"
name"MinorVersion"
offset12
size4
type"uint32"
name"Name"
notes"RVA of the DLL name"
offset16
size4
type"uint32"
name"Base"
notes"first ordinal"
offset20
size4
type"uint32"
name"NumberOfFunctions"
offset24
size4
type"uint32"
name"NumberOfNames"
offset28
size4
type"uint32"
name"AddressOfFunctions"
offset32
size4
type"uint32"
name"AddressOfNames"
offset36
size4
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
Empty array
key"IMAGE_EXPORT_DIRECTORY"
status"claimed"
created_by"PatientStepper99"
created_at"2026-10-17T10:17:24.899Z"
verifications
Empty array
revisions
by"PatientStepper99"
date"2026-10-19T12:52:45.143Z"
summary"Byte order set: pefile forces '<' (little) for every PE structure"
changed
"data"
"evidence"