Skip to content

[Feature] Decode RT_VERSION and RT_STRING payloads in inspect-pe-resources #2812

Open

Description

@matbrgz

Type: Feature Domain: Reverse Engineering Status: Proposed Ecosystem: REA

Before submitting

Area

Evidence, artifacts, or reconstruction

Current limitation

inspect-pe-resources (6.4.0) returns RT_STRING (type 6) and RT_VERSION (type 16) payloads as opaque bytes ("payloads other than RT_GROUP_ICON remain opaque"). Both formats are fixed and documented by Microsoft, and they answer two first questions of any Windows investigation: which build is this (FileVersion, ProductVersion, CompanyName, translation table) and which user-visible messages does it contain (string tables; Delphi resourcestring and RTL/VCL messages live there).

$ rea inspect-pe-resources /abs/AUTORIZADOR.exe --json
# 53 entries of type 6 (RT_STRING), 1 entry of type 16 (RT_VERSION, lang 1046, 808 bytes, sha256 b2950ffb…8e2c) – all opaque

Environment: macOS 27.0.1 arm64, Node 24.13.0, [email protected] local install.

Proposed outcome

Static payload decoders inside inspect_pe_resources (or a sibling operation):

  • RT_VERSION: VS_FIXEDFILEINFO (file/product version, flags, OS, type) plus StringFileInfo tables per language/code page and VarFileInfo\Translation, with offsets.
  • RT_STRING: expand each block (name id N) into its 16 strings with id (N-1)*16 + i, UTF-16LE text, original byte ranges; empty slots kept explicitly.
  • Malformed lengths or padding become explicit unknowns per payload, not inventory failures.

Use cases

  • Identify a build without running it (here the version changed from 6.6.2.0 to 6.6.3.0 while the installer name changed too, so file identity alone is not enough).
  • Catalog user-facing error messages for behavior reconstruction and diffing between builds.

Minimal public repro

ftp://arpoador.datasus.gov.br/siasus/autorizador/AUTORIZADOR_SETUP.exe (sha256 226e68e4e5c2ef3d8749bdc788481f80eb79d5ac13dc51c89ecdc1cf96082aaa) → innoextract -e → app/AUTORIZADOR.exe (sha256 708b974938d3028f158d78162636ab0a25dcc3a06540fae2aaea02670ec22f4f). Any stock Windows DLL also exercises both formats.

Suggested approach

Reuse the bounded resource snapshot; both decoders are small, deterministic and need no provider.

Activity

  1. added 3 commits that reference this issue on Oct 13, 2026
    004fa0a
    db7c239
    54fb981
  2. added
    area: domain
    enhancement
    on Oct 14, 2026
  3. added
    area: native
    on Nov 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area: domainarea: nativeenhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions