package
0.0.0-20250406163304-c1995be93bd1
Repository: https://github.com/jchv/go-winloader.git
Documentation: pkg.go.dev

# Functions

LinkModule links a PE module in-memory.
LoadBaseRelocs loads relocations from memory.
LoadExports returns a symbol table.
LoadModule loads a PE module into memory.
Relocate performs a series of relocations on m, where address is the load address and original is the original address.

# Constants

Enumeration of image directory entry indexes.
Enumeration of image directory entry indexes.
Enumeration of image directory entry indexes.
Enumeration of image directory entry indexes.
Enumeration of image directory entry indexes.
Enumeration of image directory entry indexes.
Enumeration of image directory entry indexes.
Enumeration of image directory entry indexes.
Enumeration of image directory entry indexes.
Enumeration of image directory entry indexes.
Enumeration of image directory entry indexes.
Enumeration of image directory entry indexes.
Enumeration of image directory entry indexes.
Enumeration of image directory entry indexes.
Enumeration of image directory entry indexes.
Enumeration of image directory entry indexes.
Enumeration of DLL characteristics values.
Enumeration of DLL characteristics values.
Enumeration of DLL characteristics values.
Enumeration of DLL characteristics values.
Enumeration of DLL characteristics values.
Enumeration of DLL characteristics values.
Enumeration of DLL characteristics values.
Enumeration of DLL characteristics values.
Enumeration of DLL characteristics values.
Enumeration of DLL characteristics values.
Enumeration of DLL characteristics values.
Enumeration of charateristics values for the file header.
Enumeration of charateristics values for the file header.
Enumeration of charateristics values for the file header.
Enumeration of charateristics values for the file header.
Enumeration of charateristics values for the file header.
Enumeration of charateristics values for the file header.
Enumeration of charateristics values for the file header.
Enumeration of charateristics values for the file header.
Enumeration of charateristics values for the file header.
Enumeration of charateristics values for the file header.
Enumeration of machine values for the file header.
Enumeration of machine values for the file header.
Enumeration of machine values for the file header.
Enumeration of machine values for the file header.
Enumeration of machine values for the file header.
Enumeration of machine values for the file header.
Enumeration of machine values for the file header.
Enumeration of machine values for the file header.
Enumeration of machine values for the file header.
Enumeration of machine values for the file header.
Enumeration of machine values for the file header.
Enumeration of machine values for the file header.
Enumeration of machine values for the file header.
Enumeration of machine values for the file header.
Enumeration of machine values for the file header.
Enumeration of machine values for the file header.
Enumeration of machine values for the file header.
Enumeration of machine values for the file header.
Enumeration of machine values for the file header.
Enumeration of machine values for the file header.
Enumeration of machine values for the file header.
Enumeration of machine values for the file header.
Enumeration of machine values for the file header.
Enumeration of machine values for the file header.
Enumeration of machine values for the file header.
Enumeration of machine values for the file header.
Enumeration of machine values for the file header.
Enumeration of machine values for the file header.
Enumeration of machine values for the file header.
Enumeration of machine values for the file header.
Enumeration of machine values for the file header.
Enumeration of machine values for the file header.
Enumeration of machine values for the file header.
Enumeration of machine values for the file header.
Enumeration of machine values for the file header.
Enumeration of machine values for the file header.
Enumeration of charateristics values for the file header.
Enumeration of charateristics values for the file header.
Enumeration of charateristics values for the file header.
Enumeration of charateristics values for the file header.
Enumeration of charateristics values for the file header.
ImageNTOptionalHeader32Magic is the magic number for 32-bit optional header (ImageOptionalHeader32).
ImageNTOptionalHeader64Magic is the magic number for 64-bit optional header (ImageOptionalHeader64).
Enumeration of relocation types.
Enumeration of relocation types.
Enumeration of relocation types.
Enumeration of relocation types.
Enumeration of relocation types.
Enumeration of relocation types.
Enumeration of relocation types.
Enumeration of relocation types.
Enumeration of relocation types.
Enumeration of relocation types.
Enumeration of relocation types.
Enumeration of image section characteristics.
Enumeration of image section characteristics.
Enumeration of image section characteristics.
Enumeration of image section characteristics.
Enumeration of image section characteristics.
Enumeration of image section characteristics.
Enumeration of image section characteristics.
Enumeration of image section characteristics.
Enumeration of image section characteristics.
Enumeration of image section characteristics.
Enumeration of image section characteristics.
Enumeration of image section characteristics.
Enumeration of image section characteristics.
Enumeration of image section characteristics.
Enumeration of image section characteristics.
Enumeration of image section characteristics.
Enumeration of image section characteristics.
Enumeration of image section characteristics.
Enumeration of image section characteristics.
Enumeration of image section characteristics.
Enumeration of image section characteristics.
Enumeration of image section characteristics.
Enumeration of image section characteristics.
Enumeration of image section characteristics.
Enumeration of image section characteristics.
Enumeration of image section characteristics.
Enumeration of image section characteristics.
Enumeration of image section characteristics.
Enumeration of image section characteristics.
Enumeration of image section characteristics.
Enumeration of image section characteristics.
Enumeration of image section characteristics.
Enumeration of image section characteristics.
Enumeration of image section characteristics.
Enumeration of image section characteristics.
Enumeration of image section characteristics.
Enumeration of image section characteristics.
Enumeration of image section characteristics.
Enumeration of TLS characteristics.
Enumeration of image subsystem values.
Enumeration of image subsystem values.
Enumeration of image subsystem values.
Enumeration of image subsystem values.
Enumeration of image subsystem values.
Enumeration of image subsystem values.
Enumeration of image subsystem values.
Enumeration of image subsystem values.
Enumeration of image subsystem values.
Enumeration of image subsystem values.
Enumeration of image subsystem values.
Enumeration of image subsystem values.
Enumeration of image subsystem values.
Enumeration of image subsystem values.
Enumeration of image subsystem values.
MaxNumSections specifies the maximum number of sections that are allowed.
NumDirectoryEntries specifies the number of data directory entries.
OffsetOfOptionalHeaderFromNTHeader is the offset from the start of the NT header to the optional header magic value.
SectionNameLength is the size of a section short name.
SizeOfImageDataDirectory is the on-disk size of the ImageDataDirectory structure.
SizeOfImageDOSHeader is the on-disk size of the ImageDOSHeader structure.
SizeOfImageFileHeader is the on-disk size of the ImageFileHeader structure.
SizeOfImageNTHeaders32 is the on-disk size of the ImageNTHeaders32 structure.
SizeOfImageNTHeaders64 is the on-disk size of the ImageNTHeaders64 structure.
SizeOfImageOptionalHeader32 is the on-disk size of the ImageOptionalHeader32 structure.
SizeOfImageOptionalHeader64 is the on-disk size of the ImageOptionalHeader64 structure.

# Variables

ErrBadMZSignature is returned when the MZ signature is invalid.
ErrBadPESignature is returned when the PE signature is invalid.
ErrUnknownOptionalHeaderMagic is returned when the optional header magic field has an unknown value.
MZSignature is the signature of the MZ format.
PESignature is the signature of the PE format.

# Structs

BaseRelocation is a parsed PE base relocation.
ExportTable is a table of module exports.
ImageBaseRelocation holds the header for a single page of base relocation data.
ImageDataDirectory holds a record for the given data directory.
ImageDOSHeader is the structure of the DOS MZ Executable format.
The ImageExportDirectory contains information about the module's exports.
ImageFileHeader contains some of the basic attributes about the PE/COFF file, including the number of sections and the machine type.
The ImageImportDescriptor contains information about an imported module.
ImageNTHeaders32 contains the PE file headers for 32-bit PE images.
ImageNTHeaders64 contains the PE file headers for 64-bit PE images.
ImageOptionalHeader32 contains the optional header for 32-bit PE images.
ImageOptionalHeader64 contains the optional header for 64-bit PE images.
ImageSectionHeader is the header for a section.
ImageTLSDirectory32 contains information about the module's thread local storage callbacks (in PE32).
ImageTLSDirectory64 contains information about the module's thread local storage callbacks (in PE64).
Module contains a parsed and loaded PE file.