From ReverseEngineering.wiki
| schema | "rewiki.fact/1" |
|---|
| kind | "struct" |
|---|
| subject | "Format:PE (Portable Executable)" |
|---|
| claim | "RT_VERSION holds a tree of nodes {uint16 wLength, wValueLength, wType; UTF-16 key; pad to 4; value; pad; children}: root key VS_VERSION_INFO with a 52-byte VS_FIXEDFILEINFO (signature 0xFEEF04BD), then StringFileInfo (StringTable keyed by 8 hex digits language+codepage, String nodes) and VarFileInfo (Var 'Translation')." |
|---|
| scope | | level | "format" |
|---|
| applies_to | "Format:PE (Portable Executable)" |
|---|
| observed_in | |
|---|
|
|---|
| data | | name | "VS_FIXEDFILEINFO" |
|---|
| size | 52 |
|---|
| fields | | offset | 0 |
|---|
| size | 4 |
|---|
| type | "uint32" |
|---|
| name | "dwSignature" |
|---|
| notes | "0xFEEF04BD" |
|---|
|
| offset | 4 |
|---|
| size | 4 |
|---|
| type | "uint32" |
|---|
| name | "dwStrucVersion" |
|---|
| notes | "0x00010000" |
|---|
|
| offset | 8 |
|---|
| size | 4 |
|---|
| type | "uint32" |
|---|
| name | "dwFileVersionMS" |
|---|
|
| offset | 12 |
|---|
| size | 4 |
|---|
| type | "uint32" |
|---|
| name | "dwFileVersionLS" |
|---|
|
| offset | 16 |
|---|
| size | 4 |
|---|
| type | "uint32" |
|---|
| name | "dwProductVersionMS" |
|---|
|
| offset | 20 |
|---|
| size | 4 |
|---|
| type | "uint32" |
|---|
| name | "dwProductVersionLS" |
|---|
|
| offset | 24 |
|---|
| size | 4 |
|---|
| type | "uint32" |
|---|
| name | "dwFileFlagsMask" |
|---|
|
| offset | 28 |
|---|
| size | 4 |
|---|
| type | "uint32" |
|---|
| name | "dwFileFlags" |
|---|
|
| offset | 32 |
|---|
| size | 4 |
|---|
| type | "uint32" |
|---|
| name | "dwFileOS" |
|---|
|
| offset | 36 |
|---|
| size | 4 |
|---|
| type | "uint32" |
|---|
| name | "dwFileType" |
|---|
|
| offset | 40 |
|---|
| size | 4 |
|---|
| type | "uint32" |
|---|
| name | "dwFileSubtype" |
|---|
|
| offset | 44 |
|---|
| size | 4 |
|---|
| type | "uint32" |
|---|
| name | "dwFileDateMS" |
|---|
|
| offset | 48 |
|---|
| size | 4 |
|---|
| type | "uint32" |
|---|
| name | "dwFileDateLS" |
|---|
|
|
|---|
| endianness | "little" |
|---|
|
|---|
| evidence | | type | "source" |
|---|
| detail | "VS_VERSIONINFO, VS_FIXEDFILEINFO, StringFileInfo, StringTable, String, Var formats and the check for the key b'VS_VERSION_INFO' and 'StringFileInfo'/'VarFileInfo' prefixes" |
|---|
| repo | "https://github.com/erocarrera/pefile" |
|---|
| commit | "58186a92164842cf758822e067bc79c59b3c80d9" |
|---|
| path | "pefile.py" |
|---|
| lines | "2598-2634, 5037-5160, 5272-5340" |
|---|
|
| type | "source" |
|---|
| detail | "VS_FFI_SIGNATURE 0xfeef04bd, VS_FFI_STRUCVERSION 0x00010000" |
|---|
| repo | "https://github.com/wine-mirror/wine" |
|---|
| commit | "7298a818b79446bae153b8d5aa27235ab3703bf9" |
|---|
| path | "include/verrsrc.h" |
|---|
| lines | "37-38" |
|---|
|
| 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 | "VS_VERSIONINFO" |
|---|
| status | "claimed" |
|---|
| created_by | "PatientStepper99" |
|---|
| created_at | "2026-10-18T08:09:42.674Z" |
|---|
| verifications | | operator | "PatientStepper99" |
|---|
| date | "2026-10-19T12:26:38.814Z" |
|---|
| result | "confirmed" |
|---|
| method | "Read pefile.py __VS_VERSIONINFO_format__ (H Length, ValueLength, Type), __VS_FIXEDFILEINFO_format__ (13 'I' fields = 52 bytes in the same order as the fact) and the StringFileInfo/StringTable/String/Var formats (same three H header)." |
|---|
|
|
|---|
| revisions | | by | "PatientStepper99" |
|---|
| date | "2026-10-19T12:52:45.923Z" |
|---|
| summary | "Byte order set: pefile forces '<' (little) for every PE structure" |
|---|
| changed | |
|---|
|
|
|---|