PE

Undocumented in source.

Constructors

this
this(void[] exe)
Undocumented in source.

Members

Functions

directoryData
ubyte[] directoryData(USHORT entry)

Get the image data for the given directory entry.

fileToImage
size_t fileToImage(size_t offset)

Translate a file offset to the corresponding virtual address (the in-memory image address at the default image base).

fileToRva
size_t fileToRva(size_t offset)

Translate a file offset to the relative virtual address (address relative to the image base).

imageToFile
size_t imageToFile(size_t offset)

Reverse of fileToImage

rvaToFile
size_t rvaToFile(size_t offset)

Reverse of fileToRva

sectionData
ubyte[] sectionData(IMAGE_SECTION_HEADER section)

Get the image data for the given section header.

Properties

imageData
auto imageData [@property getter]

Provide an array-like view of the in-memory layout.

Variables

data
ubyte[] data;
Undocumented in source.
dataDirectories
IMAGE_DATA_DIRECTORY[] dataDirectories;
Undocumented in source.
dosHeader
PIMAGE_DOS_HEADER dosHeader;
Undocumented in source.
ntHeaders
PIMAGE_NT_HEADERS32 ntHeaders;
Undocumented in source.
sectionHeaders
IMAGE_SECTION_HEADER[] sectionHeaders;
Undocumented in source.

Meta