sogen library

Constants

linux → const LinuxNamespace
windows → const WindowsNamespace

Functions

apiCall({required CallingConvention cc, List<CType> params = const [], CType? restype, required ApiHookCallback cb}) → ApiHook
configureNativeLibrary(String path) → void
createApplication(String application, {List<String> arguments = const [], Map<String, String>? environment, String emulationRoot = '', String workingDirectory = '', bool disableLogging = false, bool useRelativeTime = false, String registryDirectory = './registry', Map<String, String> pathMappings = const {}, Map<int, int> portMappings = const {}, int numberOfProcessors = 4, int ntProductType = 1, Backend backend = Backend.unicorn}) → WindowsApplication
createEmpty({String emulationRoot = '', bool disableLogging = false, bool useRelativeTime = false, String registryDirectory = './registry', Map<String, String> pathMappings = const {}, Map<int, int> portMappings = const {}, int numberOfProcessors = 4, int ntProductType = 1, Backend backend = Backend.unicorn}) → WindowsApplication
symbolCall({List<CType>? params, CType? restype, required LinuxSymbolHookCallback cb}) → LinuxSymbolHook

Typedefs

ApiHookCallback = dynamic Function(ApiCall call, List params)
BasicBlockHookCallback = void Function(BasicBlock block)
DebugStringCallback = void Function(String path)
ExceptionCallback = void Function()
ExecutionHookCallback = void Function(int address)
GenericAccessCallback = void Function(String type, String name)
GenericActivityCallback = void Function(String path)
InstructionCallback = void Function(int address)
InstructionHookCallback = Object? Function(int data)
InterruptHookCallback = void Function(int address)
IoctrlCallback = void Function(String deviceName, int code)
LinuxBasicBlockHookCallback = void Function(BasicBlock block)
LinuxExecutionHookCallback = void Function(int address)
LinuxExportedSymbol = ExportedSymbol
LinuxInterruptHookCallback = void Function(int address)
LinuxMemoryAllocateCallback = void Function(int address, int length, MemoryPermission permissions, bool committed)
LinuxMemoryHookCallback = void Function(int address, Uint8List data)
LinuxMemoryProtectCallback = void Function(int address, int length, MemoryPermission permissions)
LinuxMemoryReleaseCallback = void Function(int address, int length)
LinuxMemoryViolateCallback = Object? Function(int address, int length, MemoryOperation operation, MemoryViolationType type)
LinuxModuleLoadCallback = void Function(LinuxMappedModule module)
LinuxSignalCallback = void Function(int signum, int faultAddress, int signalCode)
LinuxStderrCallback = void Function(String data)
LinuxStdoutCallback = void Function(String data)
LinuxSymbolHookCallback = dynamic Function(LinuxSymbolCall call, List parameters)
LinuxSyscallCallback = Object? Function(int syscallId, String name)
LinuxThreadCallback = void Function(LinuxThread thread)
LinuxThreadSwitchCallback = void Function(int address, int length)
MemoryAllocateCallback = void Function(int address, int length, MemoryPermission permission, bool commit)
MemoryHookCallback = void Function(int address, Uint8List data)
MemoryOperation = MemoryPermission
MemoryProtectCallback = void Function(int address, int length, MemoryPermission permission)
MemoryViolateCallback = Object? Function(int address, int length, MemoryOperation operation, MemoryViolationType type)
MemoryViolationHookCallback = Object? Function(int address, int size, MemoryOperation operation, MemoryViolationType type)
ModuleLoadCallback = void Function(MappedModule module)
ModuleUnloadCallback = void Function(MappedModule module)
RdtscCallback = void Function()
RdtscpCallback = void Function()
StdoutCallback = void Function(String path)
SuspiciousActivityCallback = void Function(String path)
SyscallCallback = Object? Function(int syscallId, String syscallName)
ThreadCreateCallback = void Function(int handle, int threadId, int startAddress, int argument)
ThreadSetNameCallback = void Function(int threadId, String name)
ThreadSwitchCallback = void Function(int currentThreadId, int newThreadId)
ThreadTerminatedCallback = void Function(int currentThreadId, int newThreadId)