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 RESOURCE DIRECTORY and entries

From ReverseEngineering.wiki
schema"rewiki.fact/1"
kind"struct"
subject"Format:PE (Portable Executable)"
claim"Resource directory tables are 16-byte IMAGE_RESOURCE_DIRECTORY headers followed by 8-byte entries (named first, then ids); the top bit of Name marks a string offset and the top bit of OffsetToData marks a subdirectory; all offsets are relative to the resource directory except the RVA in the 16-byte data entry."
scope
level"format"
applies_to"Format:PE (Portable Executable)"
observed_in
Empty array
data
name"IMAGE_RESOURCE_DIRECTORY"
size16
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
size2
type"uint16"
name"NumberOfNamedEntries"
offset14
size2
type"uint16"
name"NumberOfIdEntries"
notes"followed by 8-byte entries {uint32 Name; uint32 OffsetToData}; data entry = {uint32 RVA, Size, CodePage, Reserved}"
endianness"little"
evidence
type"source"
detail"directory, entry and data-entry formats; masks 0x7FFFFFFF / 0x80000000 for NameIsString and DataIsDirectory"
repo"https://github.com/erocarrera/pefile"
commit"58186a92164842cf758822e067bc79c59b3c80d9"
path"pefile.py"
lines"2576-2597, 4938-4943"
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_RESOURCE_DIRECTORY and entries"
status"claimed"
created_by"PatientStepper99"
created_at"2026-10-18T08:09:42.516Z"
verifications
Empty array
revisions
by"PatientStepper99"
date"2026-10-19T12:52:45.565Z"
summary"Byte order set: pefile forces '<' (little) for every PE structure"
changed
"data"
"evidence"