Table of Contents

Class PELoader

Namespace
Echo.Platforms.AsmResolver.Emulation
Assembly
Echo.Platforms.AsmResolver.dll

Provides a mechanism for mapping portable executable files into virtual memory.

public class PELoader
Inheritance
PELoader
Inherited Members

Constructors

PELoader(VirtualMemory)

Creates a new instance of a PE loader.

public PELoader(VirtualMemory memory)

Parameters

memory VirtualMemory

The virtual memory to map the executables into.

Methods

MapModule(ModuleDefinition)

Maps a module into memory.

public long MapModule(ModuleDefinition module)

Parameters

module ModuleDefinition

The module to map.

Returns

long

The new base address of the PE file.

Exceptions

ArgumentException

Occurs when the module does not have an underlying PE image or file.

MapPE(PEFile)

Maps all sections of the provided PE file into memory.

public long MapPE(PEFile file)

Parameters

file PEFile

The file to map.

Returns

long

The new base address of the PE file.