Binary Raw - Docs
    Preparing search index...

    Function parse

    • Parses a PE (Portable Executable) image and returns its structured representation.

      Produces the following sections:

      • DOS Header – MZ stub up to the PE signature offset.
      • PE Signature – the four-byte PE\0\0 marker.
      • COFF File Header – machine type, section count, timestamp, and characteristics.
      • Optional Header – entry point RVA, image base, subsystem (PE32 or PE32+).
      • Section Table – one child entry per section header, plus a raw-data section added directly to the root for each section with non-zero raw content.

      Supports both PE32 (magic 0x10B) and PE32+ / 64-bit (magic 0x20B) formats. Section table parsing is capped at 96 entries as a safety limit.

      Parameters

      Returns ParsedStructure

      A ParsedStructure with format set to 'PE' and entryPoint set to the absolute virtual address of the image entry point, or undefined if the Optional Header is absent or truncated.