Module lief::pe

Expand description

Module for the PE file format support in LIEF.

The Binary structure exposes the main API to inspect a PE file. It can be instantiated, using either: crate::pe::parse, crate::pe::Binary::parse or crate::Binary::parse

let pe = lief::pe::parse("demo.exe").unwrap();
for section in pe.sections() {
    println!("section: {}", section.name());
}

Modules

Structs

Enums

Traits

Functions

  • Check that the layout of the given binary is correct from the Windows loader perspective
  • Compute the import hash of the given binary
  • Determine the PE type (PE32 or PE32+) of the given file
  • Convert an OID string to a human-readable string
  • Parse a PE file from the given file path
  • Parse a PE file from the given file path and configuration
  • Try to resolve import ordinals using the well-known ordinal lookup table