Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SetOptionalHeader ¶
SetOptionalHeader sets a new optional header
Types ¶
type DataDirectory ¶
DataDirectory = pe.DataDirectory
type PEMap ¶
PEMap holds the PE file for processing
func (PEMap) CreateFileMapping ¶
CreateFileMapping constructs the memory mapped image of given PE file.
func (PEMap) PerformIntegrityChecks ¶
PerformIntegrityChecks validates the integrity of the mapped PE file
func (PEMap) SetSection ¶
SetSection sets the given raw section contents as byte array as the named section Also fixes the section header accordingly
func (PEMap) UnifyOptionalHeader ¶
func (file PEMap) UnifyOptionalHeader() UnifiedOptionalHeader
UnifyOptionalHeader stores a given 32 bit OptionalHeader struct inside a 64 bit OptionalHeader
type UnifiedOptionalHeader ¶
type UnifiedOptionalHeader struct { Magic uint16 MajorLinkerVersion uint8 MinorLinkerVersion uint8 SizeOfCode uint32 SizeOfInitializedData uint32 SizeOfUninitializedData uint32 AddressOfEntryPoint uint32 BaseOfCode uint32 ImageBase uint64 // uint32 SectionAlignment uint32 FileAlignment uint32 MajorOperatingSystemVersion uint16 MinorOperatingSystemVersion uint16 MajorImageVersion uint16 MinorImageVersion uint16 MajorSubsystemVersion uint16 MinorSubsystemVersion uint16 Win32VersionValue uint32 SizeOfImage uint32 SizeOfHeaders uint32 CheckSum uint32 Subsystem uint16 DllCharacteristics uint16 SizeOfStackReserve uint64 // uint32 SizeOfStackCommit uint64 // uint32 SizeOfHeapReserve uint64 // uint32 SizeOfHeapCommit uint64 // uint32 LoaderFlags uint32 NumberOfRvaAndSizes uint32 DataDirectory [16]DataDirectory }
UnifiedOptionalHeader = pe.OptionalHeader64
Click to show internal directories.
Click to hide internal directories.