WindowsPEFile class

Constructors

WindowsPEFile(File file, {bool verbose = false})

Properties

file File
The file to read or modify.
final
fileBuffer ↔ BytesBuffer
The in-memory file buffer (loaded using BytesUint8ListIO).
latefinal
hashCode int
The hash code for this object.
no setterinherited
isMachineTypeARM bool
Returns true if machineType is ARM little endian.
no setter
isMachineTypeARM64 bool
Returns true if machineType is ARM64 little endian.
no setter
isMachineTypeI386 bool
Returns true if machineType is i386.
no setter
isMachineTypeItanium bool
Returns true if machineType is Intel Itanium.
no setter
isMachineTypeX64 bool
Returns true if machineType is x64.
no setter
isValidExecutable bool
Returns true if file is a valid Windows executable in GUI or Console Subsystem.
no setter
machineType int
Returns the machineType of the executable.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
verbose bool
If true will print to the console each operation.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
readInformation() Map<String, int>
Reads the basic PE information.
readWindowsSubsystem() int
Reads the current Windows Subsystem value.
save(File outputFile, {bool overwrite = false}) → void
Saves the current fileBuffer to outputFile.
seekToWindowsSubsystem() int
Seeks to the Windows Subsystem position.
setWindowsSubsystem({required bool gui}) → void
Sets/writes the Windows Subsystem to GUI or Console.
toString() String
A string representation of this object.
inherited
writeWindowsSubsystem(int subsystem) → void
Writes the Windows Subsystem.

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

windowsSubsystemName(int windowsSubsystem) String
Returns the windowsSubsystem value name.