mirror of https://github.com/x64dbg/TitanEngine
933 lines
59 KiB
C
933 lines
59 KiB
C
#ifndef TITANENGINE
|
|
#define TITANENGINE
|
|
|
|
#define TITCALL
|
|
|
|
#if _MSC_VER > 1000
|
|
#pragma once
|
|
#endif
|
|
|
|
#include <windows.h>
|
|
|
|
#pragma pack(push, 1)
|
|
|
|
// Global.Constant.Structure.Declaration:
|
|
// Engine.External:
|
|
const BYTE UE_ACCESS_READ = 0;
|
|
const BYTE UE_ACCESS_WRITE = 1;
|
|
const BYTE UE_ACCESS_ALL = 2;
|
|
|
|
const BYTE UE_HIDE_BASIC = 1;
|
|
|
|
const BYTE UE_PLUGIN_CALL_REASON_PREDEBUG = 1;
|
|
const BYTE UE_PLUGIN_CALL_REASON_EXCEPTION = 2;
|
|
const BYTE UE_PLUGIN_CALL_REASON_POSTDEBUG = 3;
|
|
|
|
const BYTE TEE_HOOK_NRM_JUMP = 1;
|
|
const BYTE TEE_HOOK_NRM_CALL = 3;
|
|
const BYTE TEE_HOOK_IAT = 5;
|
|
|
|
const BYTE UE_ENGINE_ALOW_MODULE_LOADING = 1;
|
|
const BYTE UE_ENGINE_AUTOFIX_FORWARDERS = 2;
|
|
const BYTE UE_ENGINE_PASS_ALL_EXCEPTIONS = 3;
|
|
const BYTE UE_ENGINE_NO_CONSOLE_WINDOW = 4;
|
|
const BYTE UE_ENGINE_BACKUP_FOR_CRITICAL_FUNCTIONS = 5;
|
|
const BYTE UE_ENGINE_CALL_PLUGIN_CALLBACK = 6;
|
|
const BYTE UE_ENGINE_RESET_CUSTOM_HANDLER = 7;
|
|
const BYTE UE_ENGINE_CALL_PLUGIN_DEBUG_CALLBACK = 8;
|
|
|
|
const BYTE UE_OPTION_REMOVEALL = 1;
|
|
const BYTE UE_OPTION_DISABLEALL = 2;
|
|
const BYTE UE_OPTION_REMOVEALLDISABLED = 3;
|
|
const BYTE UE_OPTION_REMOVEALLENABLED = 4;
|
|
|
|
const BYTE UE_STATIC_DECRYPTOR_XOR = 1;
|
|
const BYTE UE_STATIC_DECRYPTOR_SUB = 2;
|
|
const BYTE UE_STATIC_DECRYPTOR_ADD = 3;
|
|
|
|
const BYTE UE_STATIC_DECRYPTOR_FOREWARD = 1;
|
|
const BYTE UE_STATIC_DECRYPTOR_BACKWARD = 2;
|
|
|
|
const BYTE UE_STATIC_KEY_SIZE_1 = 1;
|
|
const BYTE UE_STATIC_KEY_SIZE_2 = 2;
|
|
const BYTE UE_STATIC_KEY_SIZE_4 = 4;
|
|
const BYTE UE_STATIC_KEY_SIZE_8 = 8;
|
|
|
|
const BYTE UE_STATIC_APLIB = 1;
|
|
const BYTE UE_STATIC_APLIB_DEPACK = 2;
|
|
const BYTE UE_STATIC_LZMA = 3;
|
|
|
|
const BYTE UE_STATIC_HASH_MD5 = 1;
|
|
const BYTE UE_STATIC_HASH_SHA1 = 2;
|
|
const BYTE UE_STATIC_HASH_CRC32 = 3;
|
|
|
|
const DWORD UE_RESOURCE_LANGUAGE_ANY = -1;
|
|
|
|
const BYTE UE_PE_OFFSET = 0;
|
|
const BYTE UE_IMAGEBASE = 1;
|
|
const BYTE UE_OEP = 2;
|
|
const BYTE UE_SIZEOFIMAGE = 3;
|
|
const BYTE UE_SIZEOFHEADERS = 4;
|
|
const BYTE UE_SIZEOFOPTIONALHEADER = 5;
|
|
const BYTE UE_SECTIONALIGNMENT = 6;
|
|
const BYTE UE_IMPORTTABLEADDRESS = 7;
|
|
const BYTE UE_IMPORTTABLESIZE = 8;
|
|
const BYTE UE_RESOURCETABLEADDRESS = 9;
|
|
const BYTE UE_RESOURCETABLESIZE = 10;
|
|
const BYTE UE_EXPORTTABLEADDRESS = 11;
|
|
const BYTE UE_EXPORTTABLESIZE = 12;
|
|
const BYTE UE_TLSTABLEADDRESS = 13;
|
|
const BYTE UE_TLSTABLESIZE = 14;
|
|
const BYTE UE_RELOCATIONTABLEADDRESS = 15;
|
|
const BYTE UE_RELOCATIONTABLESIZE = 16;
|
|
const BYTE UE_TIMEDATESTAMP = 17;
|
|
const BYTE UE_SECTIONNUMBER = 18;
|
|
const BYTE UE_CHECKSUM = 19;
|
|
const BYTE UE_SUBSYSTEM = 20;
|
|
const BYTE UE_CHARACTERISTICS = 21;
|
|
const BYTE UE_NUMBEROFRVAANDSIZES = 22;
|
|
const BYTE UE_SECTIONNAME = 23;
|
|
const BYTE UE_SECTIONVIRTUALOFFSET = 24;
|
|
const BYTE UE_SECTIONVIRTUALSIZE = 25;
|
|
const BYTE UE_SECTIONRAWOFFSET = 26;
|
|
const BYTE UE_SECTIONRAWSIZE = 27;
|
|
const BYTE UE_SECTIONFLAGS = 28;
|
|
|
|
const BYTE UE_CH_BREAKPOINT = 1;
|
|
const BYTE UE_CH_SINGLESTEP = 2;
|
|
const BYTE UE_CH_ACCESSVIOLATION = 3;
|
|
const BYTE UE_CH_ILLEGALINSTRUCTION = 4;
|
|
const BYTE UE_CH_NONCONTINUABLEEXCEPTION = 5;
|
|
const BYTE UE_CH_ARRAYBOUNDSEXCEPTION = 6;
|
|
const BYTE UE_CH_FLOATDENORMALOPERAND = 7;
|
|
const BYTE UE_CH_FLOATDEVIDEBYZERO = 8;
|
|
const BYTE UE_CH_INTEGERDEVIDEBYZERO = 9;
|
|
const BYTE UE_CH_INTEGEROVERFLOW = 10;
|
|
const BYTE UE_CH_PRIVILEGEDINSTRUCTION = 11;
|
|
const BYTE UE_CH_PAGEGUARD = 12;
|
|
const BYTE UE_CH_EVERYTHINGELSE = 13;
|
|
const BYTE UE_CH_CREATETHREAD = 14;
|
|
const BYTE UE_CH_EXITTHREAD = 15;
|
|
const BYTE UE_CH_CREATEPROCESS = 16;
|
|
const BYTE UE_CH_EXITPROCESS = 17;
|
|
const BYTE UE_CH_LOADDLL = 18;
|
|
const BYTE UE_CH_UNLOADDLL = 19;
|
|
const BYTE UE_CH_OUTPUTDEBUGSTRING = 20;
|
|
const BYTE UE_CH_AFTEREXCEPTIONPROCESSING 21;
|
|
const BYTE UE_CH_ALLEVENTS = 22;
|
|
const BYTE UE_CH_SYSTEMBREAKPOINT = 23;
|
|
const BYTE UE_CH_UNHANDLEDEXCEPTION = 24;
|
|
|
|
const BYTE UE_OPTION_HANDLER_RETURN_HANDLECOUNT = 1;
|
|
const BYTE UE_OPTION_HANDLER_RETURN_ACCESS = 2;
|
|
const BYTE UE_OPTION_HANDLER_RETURN_FLAGS = 3;
|
|
const BYTE UE_OPTION_HANDLER_RETURN_TYPENAME = 4;
|
|
|
|
const BYTE UE_BREAKPOINT_INT3 = 1;
|
|
const BYTE UE_BREAKPOINT_LONG_INT3 = 2;
|
|
const BYTE UE_BREAKPOINT_UD2 = 3;
|
|
|
|
const BYTE UE_BPXREMOVED = 0;
|
|
const BYTE UE_BPXACTIVE = 1;
|
|
const BYTE UE_BPXINACTIVE = 2;
|
|
|
|
const BYTE UE_BREAKPOINT = 0;
|
|
const BYTE UE_SINGLESHOOT = 1;
|
|
const BYTE UE_HARDWARE = 2;
|
|
const BYTE UE_MEMORY = 3;
|
|
const BYTE UE_MEMORY_READ = 4;
|
|
const BYTE UE_MEMORY_WRITE = 5;
|
|
const BYTE UE_MEMORY_EXECUTE = 5;
|
|
const DWORD UE_BREAKPOINT_TYPE_INT3 = 0x10000000;
|
|
const DWORD UE_BREAKPOINT_TYPE_LONG_INT3 = 0x20000000;
|
|
const DWORD UE_BREAKPOINT_TYPE_UD2 = 0x30000000;
|
|
|
|
const BYTE UE_HARDWARE_EXECUTE = 4;
|
|
const BYTE UE_HARDWARE_WRITE = 5;
|
|
const BYTE UE_HARDWARE_READWRITE = 6;
|
|
|
|
const BYTE UE_HARDWARE_SIZE_1 = 7;
|
|
const BYTE UE_HARDWARE_SIZE_2 = 8;
|
|
const BYTE UE_HARDWARE_SIZE_4 = 9;
|
|
const BYTE UE_HARDWARE_SIZE_8 = 10;
|
|
|
|
const BYTE UE_ON_LIB_LOAD = 1;
|
|
const BYTE UE_ON_LIB_UNLOAD = 2;
|
|
const BYTE UE_ON_LIB_ALL = 3;
|
|
|
|
const BYTE UE_APISTART = 0;
|
|
const BYTE UE_APIEND = 1;
|
|
|
|
const BYTE UE_PLATFORM_x86 = 1;
|
|
const BYTE UE_PLATFORM_x64 = 2;
|
|
const BYTE UE_PLATFORM_ALL = 3;
|
|
|
|
const BYTE UE_FUNCTION_STDCALL = 1;
|
|
const BYTE UE_FUNCTION_CCALL = 2;
|
|
const BYTE UE_FUNCTION_FASTCALL = 3;
|
|
const BYTE UE_FUNCTION_STDCALL_RET = 4;
|
|
const BYTE UE_FUNCTION_CCALL_RET = 5;
|
|
const BYTE UE_FUNCTION_FASTCALL_RET = 6;
|
|
const BYTE UE_FUNCTION_STDCALL_CALL = 7;
|
|
const BYTE UE_FUNCTION_CCALL_CALL = 8;
|
|
const BYTE UE_FUNCTION_FASTCALL_CALL = 9;
|
|
const BYTE UE_PARAMETER_BYTE = 0;
|
|
const BYTE UE_PARAMETER_WORD = 1;
|
|
const BYTE UE_PARAMETER_DWORD = 2;
|
|
const BYTE UE_PARAMETER_QWORD = 3;
|
|
const BYTE UE_PARAMETER_PTR_BYTE = 4;
|
|
const BYTE UE_PARAMETER_PTR_WORD = 5;
|
|
const BYTE UE_PARAMETER_PTR_DWORD = 6;
|
|
const BYTE UE_PARAMETER_PTR_QWORD = 7;
|
|
const BYTE UE_PARAMETER_STRING = 8;
|
|
const BYTE UE_PARAMETER_UNICODE = 9;
|
|
|
|
const BYTE UE_CMP_NOCONDITION = 0;
|
|
const BYTE UE_CMP_EQUAL = 1;
|
|
const BYTE UE_CMP_NOTEQUAL = 2;
|
|
const BYTE UE_CMP_GREATER = 3;
|
|
const BYTE UE_CMP_GREATEROREQUAL = 4;
|
|
const BYTE UE_CMP_LOWER = 5;
|
|
const BYTE UE_CMP_LOWEROREQUAL = 6;
|
|
const BYTE UE_CMP_REG_EQUAL = 7;
|
|
const BYTE UE_CMP_REG_NOTEQUAL = 8;
|
|
const BYTE UE_CMP_REG_GREATER = 9;
|
|
const BYTE UE_CMP_REG_GREATEROREQUAL = 10;
|
|
const BYTE UE_CMP_REG_LOWER = 11;
|
|
const BYTE UE_CMP_REG_LOWEROREQUAL = 12;
|
|
const BYTE UE_CMP_ALWAYSFALSE = 13;
|
|
|
|
const BYTE UE_EAX = 1;
|
|
const BYTE UE_EBX = 2;
|
|
const BYTE UE_ECX = 3;
|
|
const BYTE UE_EDX = 4;
|
|
const BYTE UE_EDI = 5;
|
|
const BYTE UE_ESI = 6;
|
|
const BYTE UE_EBP = 7;
|
|
const BYTE UE_ESP = 8;
|
|
const BYTE UE_EIP = 9;
|
|
const BYTE UE_EFLAGS = 10;
|
|
const BYTE UE_DR0 = 11;
|
|
const BYTE UE_DR1 = 12;
|
|
const BYTE UE_DR2 = 13;
|
|
const BYTE UE_DR3 = 14;
|
|
const BYTE UE_DR6 = 15;
|
|
const BYTE UE_DR7 = 16;
|
|
const BYTE UE_RAX = 17;
|
|
const BYTE UE_RBX = 18;
|
|
const BYTE UE_RCX = 19;
|
|
const BYTE UE_RDX = 20;
|
|
const BYTE UE_RDI = 21;
|
|
const BYTE UE_RSI = 22;
|
|
const BYTE UE_RBP = 23;
|
|
const BYTE UE_RSP = 24;
|
|
const BYTE UE_RIP = 25;
|
|
const BYTE UE_RFLAGS = 26;
|
|
const BYTE UE_R8 = 27;
|
|
const BYTE UE_R9 = 28;
|
|
const BYTE UE_R10 = 29;
|
|
const BYTE UE_R11 = 30;
|
|
const BYTE UE_R12 = 31;
|
|
const BYTE UE_R13 = 32;
|
|
const BYTE UE_R14 = 33;
|
|
const BYTE UE_R15 = 34;
|
|
const BYTE UE_CIP = 35;
|
|
const BYTE UE_CSP = 36;
|
|
#ifdef _WIN64
|
|
const BYTE UE_CFLAGS = UE_RFLAGS;
|
|
#else
|
|
const BYTE UE_CFLAGS = UE_EFLAGS;
|
|
#endif
|
|
const BYTE UE_SEG_GS = 37;
|
|
const BYTE UE_SEG_FS = 38;
|
|
const BYTE UE_SEG_ES = 39;
|
|
const BYTE UE_SEG_DS = 40;
|
|
const BYTE UE_SEG_CS = 41;
|
|
const BYTE UE_SEG_SS = 42;
|
|
|
|
typedef struct
|
|
{
|
|
DWORD PE32Offset;
|
|
DWORD ImageBase;
|
|
DWORD OriginalEntryPoint;
|
|
DWORD NtSizeOfImage;
|
|
DWORD NtSizeOfHeaders;
|
|
WORD SizeOfOptionalHeaders;
|
|
DWORD FileAlignment;
|
|
DWORD SectionAligment;
|
|
DWORD ImportTableAddress;
|
|
DWORD ImportTableSize;
|
|
DWORD ResourceTableAddress;
|
|
DWORD ResourceTableSize;
|
|
DWORD ExportTableAddress;
|
|
DWORD ExportTableSize;
|
|
DWORD TLSTableAddress;
|
|
DWORD TLSTableSize;
|
|
DWORD RelocationTableAddress;
|
|
DWORD RelocationTableSize;
|
|
DWORD TimeDateStamp;
|
|
WORD SectionNumber;
|
|
DWORD CheckSum;
|
|
WORD SubSystem;
|
|
WORD Characteristics;
|
|
DWORD NumberOfRvaAndSizes;
|
|
} PE32Struct, *PPE32Struct;
|
|
|
|
typedef struct
|
|
{
|
|
DWORD PE64Offset;
|
|
DWORD64 ImageBase;
|
|
DWORD OriginalEntryPoint;
|
|
DWORD NtSizeOfImage;
|
|
DWORD NtSizeOfHeaders;
|
|
WORD SizeOfOptionalHeaders;
|
|
DWORD FileAlignment;
|
|
DWORD SectionAligment;
|
|
DWORD ImportTableAddress;
|
|
DWORD ImportTableSize;
|
|
DWORD ResourceTableAddress;
|
|
DWORD ResourceTableSize;
|
|
DWORD ExportTableAddress;
|
|
DWORD ExportTableSize;
|
|
DWORD TLSTableAddress;
|
|
DWORD TLSTableSize;
|
|
DWORD RelocationTableAddress;
|
|
DWORD RelocationTableSize;
|
|
DWORD TimeDateStamp;
|
|
WORD SectionNumber;
|
|
DWORD CheckSum;
|
|
WORD SubSystem;
|
|
WORD Characteristics;
|
|
DWORD NumberOfRvaAndSizes;
|
|
} PE64Struct, *PPE64Struct;
|
|
|
|
#if defined(_WIN64)
|
|
typedef PE64Struct PEStruct;
|
|
#else
|
|
typedef PE32Struct PEStruct;
|
|
#endif
|
|
|
|
typedef struct
|
|
{
|
|
bool NewDll;
|
|
int NumberOfImports;
|
|
ULONG_PTR ImageBase;
|
|
ULONG_PTR BaseImportThunk;
|
|
ULONG_PTR ImportThunk;
|
|
char* APIName;
|
|
char* DLLName;
|
|
} ImportEnumData, *PImportEnumData;
|
|
|
|
typedef struct
|
|
{
|
|
HANDLE hThread;
|
|
DWORD dwThreadId;
|
|
void* ThreadStartAddress;
|
|
void* ThreadLocalBase;
|
|
} THREAD_ITEM_DATA, *PTHREAD_ITEM_DATA;
|
|
|
|
typedef struct
|
|
{
|
|
HANDLE hFile;
|
|
void* BaseOfDll;
|
|
HANDLE hFileMapping;
|
|
void* hFileMappingView;
|
|
char szLibraryPath[MAX_PATH];
|
|
char szLibraryName[MAX_PATH];
|
|
} LIBRARY_ITEM_DATA, *PLIBRARY_ITEM_DATA;
|
|
|
|
typedef struct
|
|
{
|
|
HANDLE hFile;
|
|
void* BaseOfDll;
|
|
HANDLE hFileMapping;
|
|
void* hFileMappingView;
|
|
wchar_t szLibraryPath[MAX_PATH];
|
|
wchar_t szLibraryName[MAX_PATH];
|
|
} LIBRARY_ITEM_DATAW, *PLIBRARY_ITEM_DATAW;
|
|
|
|
typedef struct
|
|
{
|
|
HANDLE hProcess;
|
|
DWORD dwProcessId;
|
|
HANDLE hThread;
|
|
DWORD dwThreadId;
|
|
HANDLE hFile;
|
|
void* BaseOfImage;
|
|
void* ThreadStartAddress;
|
|
void* ThreadLocalBase;
|
|
} PROCESS_ITEM_DATA, *PPROCESS_ITEM_DATA;
|
|
|
|
typedef struct
|
|
{
|
|
ULONG ProcessId;
|
|
HANDLE hHandle;
|
|
} HandlerArray, *PHandlerArray;
|
|
|
|
typedef struct
|
|
{
|
|
char PluginName[64];
|
|
DWORD PluginMajorVersion;
|
|
DWORD PluginMinorVersion;
|
|
HMODULE PluginBaseAddress;
|
|
void* TitanDebuggingCallBack;
|
|
void* TitanRegisterPlugin;
|
|
void* TitanReleasePlugin;
|
|
void* TitanResetPlugin;
|
|
bool PluginDisabled;
|
|
} PluginInformation, *PPluginInformation;
|
|
|
|
const size_t TEE_MAXIMUM_HOOK_SIZE = 14;
|
|
const size_t TEE_MAXIMUM_HOOK_RELOCS = 7;
|
|
#if defined(_WIN64)
|
|
const size_t TEE_MAXIMUM_HOOK_INSERT_SIZE = 14;
|
|
#else
|
|
const size_t TEE_MAXIMUM_HOOK_INSERT_SIZE = 5;
|
|
#endif
|
|
|
|
typedef struct HOOK_ENTRY
|
|
{
|
|
bool IATHook;
|
|
BYTE HookType;
|
|
DWORD HookSize;
|
|
void* HookAddress;
|
|
void* RedirectionAddress;
|
|
BYTE HookBytes[TEE_MAXIMUM_HOOK_SIZE];
|
|
BYTE OriginalBytes[TEE_MAXIMUM_HOOK_SIZE];
|
|
void* IATHookModuleBase;
|
|
DWORD IATHookNameHash;
|
|
bool HookIsEnabled;
|
|
bool HookIsRemote;
|
|
void* PatchedEntry;
|
|
DWORD RelocationInfo[TEE_MAXIMUM_HOOK_RELOCS];
|
|
int RelocationCount;
|
|
} HOOK_ENTRY, *PHOOK_ENTRY;
|
|
|
|
const BYTE UE_DEPTH_SURFACE = 0;
|
|
const BYTE UE_DEPTH_DEEP = 1;
|
|
|
|
const BYTE UE_UNPACKER_CONDITION_SEARCH_FROM_EP = 1;
|
|
|
|
const BYTE UE_UNPACKER_CONDITION_LOADLIBRARY = 1;
|
|
const BYTE UE_UNPACKER_CONDITION_GETPROCADDRESS = 2;
|
|
const BYTE UE_UNPACKER_CONDITION_ENTRYPOINTBREAK = 3;
|
|
const BYTE UE_UNPACKER_CONDITION_RELOCSNAPSHOT1 = 4;
|
|
const BYTE UE_UNPACKER_CONDITION_RELOCSNAPSHOT2 = 5;
|
|
|
|
const BYTE UE_FIELD_OK = 0;
|
|
const BYTE UE_FIELD_BROKEN_NON_FIXABLE = 1;
|
|
const BYTE UE_FIELD_BROKEN_NON_CRITICAL = 2;
|
|
const BYTE UE_FIELD_BROKEN_FIXABLE_FOR_STATIC_USE = 3;
|
|
const BYTE UE_FIELD_BROKEN_BUT_CAN_BE_EMULATED = 4;
|
|
const BYTE UE_FILED_FIXABLE_NON_CRITICAL = 5;
|
|
const BYTE UE_FILED_FIXABLE_CRITICAL = 6;
|
|
const BYTE UE_FIELD_NOT_PRESET = 7;
|
|
const BYTE UE_FIELD_NOT_PRESET_WARNING = 8;
|
|
|
|
const BYTE UE_RESULT_FILE_OK = 10;
|
|
const BYTE UE_RESULT_FILE_INVALID_BUT_FIXABLE = 11;
|
|
const BYTE UE_RESULT_FILE_INVALID_AND_NON_FIXABLE = 12;
|
|
const BYTE UE_RESULT_FILE_INVALID_FORMAT = 13;
|
|
|
|
typedef struct
|
|
{
|
|
BYTE OveralEvaluation;
|
|
bool EvaluationTerminatedByException;
|
|
bool FileIs64Bit;
|
|
bool FileIsDLL;
|
|
bool FileIsConsole;
|
|
bool MissingDependencies;
|
|
bool MissingDeclaredAPIs;
|
|
BYTE SignatureMZ;
|
|
BYTE SignaturePE;
|
|
BYTE EntryPoint;
|
|
BYTE ImageBase;
|
|
BYTE SizeOfImage;
|
|
BYTE FileAlignment;
|
|
BYTE SectionAlignment;
|
|
BYTE ExportTable;
|
|
BYTE RelocationTable;
|
|
BYTE ImportTable;
|
|
BYTE ImportTableSection;
|
|
BYTE ImportTableData;
|
|
BYTE IATTable;
|
|
BYTE TLSTable;
|
|
BYTE LoadConfigTable;
|
|
BYTE BoundImportTable;
|
|
BYTE COMHeaderTable;
|
|
BYTE ResourceTable;
|
|
BYTE ResourceData;
|
|
BYTE SectionTable;
|
|
} FILE_STATUS_INFO, *PFILE_STATUS_INFO;
|
|
|
|
typedef struct
|
|
{
|
|
BYTE OveralEvaluation;
|
|
bool FixingTerminatedByException;
|
|
bool FileFixPerformed;
|
|
bool StrippedRelocation;
|
|
bool DontFixRelocations;
|
|
DWORD OriginalRelocationTableAddress;
|
|
DWORD OriginalRelocationTableSize;
|
|
bool StrippedExports;
|
|
bool DontFixExports;
|
|
DWORD OriginalExportTableAddress;
|
|
DWORD OriginalExportTableSize;
|
|
bool StrippedResources;
|
|
bool DontFixResources;
|
|
DWORD OriginalResourceTableAddress;
|
|
DWORD OriginalResourceTableSize;
|
|
bool StrippedTLS;
|
|
bool DontFixTLS;
|
|
DWORD OriginalTLSTableAddress;
|
|
DWORD OriginalTLSTableSize;
|
|
bool StrippedLoadConfig;
|
|
bool DontFixLoadConfig;
|
|
DWORD OriginalLoadConfigTableAddress;
|
|
DWORD OriginalLoadConfigTableSize;
|
|
bool StrippedBoundImports;
|
|
bool DontFixBoundImports;
|
|
DWORD OriginalBoundImportTableAddress;
|
|
DWORD OriginalBoundImportTableSize;
|
|
bool StrippedIAT;
|
|
bool DontFixIAT;
|
|
DWORD OriginalImportAddressTableAddress;
|
|
DWORD OriginalImportAddressTableSize;
|
|
bool StrippedCOM;
|
|
bool DontFixCOM;
|
|
DWORD OriginalCOMTableAddress;
|
|
DWORD OriginalCOMTableSize;
|
|
} FILE_FIX_INFO, *PFILE_FIX_INFO;
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif /*__cplusplus*/
|
|
|
|
// Global.Function.Declaration:
|
|
// TitanEngine.Dumper.functions:
|
|
__declspec(dllimport) bool __stdcall DumpProcess(HANDLE hProcess, LPVOID ImageBase, char* szDumpFileName, ULONG_PTR EntryPoint);
|
|
__declspec(dllimport) bool __stdcall DumpProcessW(HANDLE hProcess, LPVOID ImageBase, wchar_t* szDumpFileName, ULONG_PTR EntryPoint);
|
|
__declspec(dllimport) bool __stdcall DumpProcessEx(DWORD ProcessId, LPVOID ImageBase, char* szDumpFileName, ULONG_PTR EntryPoint);
|
|
__declspec(dllimport) bool __stdcall DumpProcessExW(DWORD ProcessId, LPVOID ImageBase, wchar_t* szDumpFileName, ULONG_PTR EntryPoint);
|
|
__declspec(dllimport) bool __stdcall DumpMemory(HANDLE hProcess, LPVOID MemoryStart, ULONG_PTR MemorySize, char* szDumpFileName);
|
|
__declspec(dllimport) bool __stdcall DumpMemoryW(HANDLE hProcess, LPVOID MemoryStart, ULONG_PTR MemorySize, wchar_t* szDumpFileName);
|
|
__declspec(dllimport) bool __stdcall DumpMemoryEx(DWORD ProcessId, LPVOID MemoryStart, ULONG_PTR MemorySize, char* szDumpFileName);
|
|
__declspec(dllimport) bool __stdcall DumpMemoryExW(DWORD ProcessId, LPVOID MemoryStart, ULONG_PTR MemorySize, wchar_t* szDumpFileName);
|
|
__declspec(dllimport) bool __stdcall DumpRegions(HANDLE hProcess, char* szDumpFolder, bool DumpAboveImageBaseOnly);
|
|
__declspec(dllimport) bool __stdcall DumpRegionsW(HANDLE hProcess, wchar_t* szDumpFolder, bool DumpAboveImageBaseOnly);
|
|
__declspec(dllimport) bool __stdcall DumpRegionsEx(DWORD ProcessId, char* szDumpFolder, bool DumpAboveImageBaseOnly);
|
|
__declspec(dllimport) bool __stdcall DumpRegionsExW(DWORD ProcessId, wchar_t* szDumpFolder, bool DumpAboveImageBaseOnly);
|
|
__declspec(dllimport) bool __stdcall DumpModule(HANDLE hProcess, LPVOID ModuleBase, char* szDumpFileName);
|
|
__declspec(dllimport) bool __stdcall DumpModuleW(HANDLE hProcess, LPVOID ModuleBase, wchar_t* szDumpFileName);
|
|
__declspec(dllimport) bool __stdcall DumpModuleEx(DWORD ProcessId, LPVOID ModuleBase, char* szDumpFileName);
|
|
__declspec(dllimport) bool __stdcall DumpModuleExW(DWORD ProcessId, LPVOID ModuleBase, wchar_t* szDumpFileName);
|
|
__declspec(dllimport) bool __stdcall PastePEHeader(HANDLE hProcess, LPVOID ImageBase, char* szDebuggedFileName);
|
|
__declspec(dllimport) bool __stdcall PastePEHeaderW(HANDLE hProcess, LPVOID ImageBase, wchar_t* szDebuggedFileName);
|
|
__declspec(dllimport) bool __stdcall ExtractSection(char* szFileName, char* szDumpFileName, DWORD SectionNumber);
|
|
__declspec(dllimport) bool __stdcall ExtractSectionW(wchar_t* szFileName, wchar_t* szDumpFileName, DWORD SectionNumber);
|
|
__declspec(dllimport) bool __stdcall ResortFileSections(char* szFileName);
|
|
__declspec(dllimport) bool __stdcall ResortFileSectionsW(wchar_t* szFileName);
|
|
__declspec(dllimport) bool __stdcall FindOverlay(char* szFileName, LPDWORD OverlayStart, LPDWORD OverlaySize);
|
|
__declspec(dllimport) bool __stdcall FindOverlayW(wchar_t* szFileName, LPDWORD OverlayStart, LPDWORD OverlaySize);
|
|
__declspec(dllimport) bool __stdcall ExtractOverlay(char* szFileName, char* szExtractedFileName);
|
|
__declspec(dllimport) bool __stdcall ExtractOverlayW(wchar_t* szFileName, wchar_t* szExtractedFileName);
|
|
__declspec(dllimport) bool __stdcall AddOverlay(char* szFileName, char* szOverlayFileName);
|
|
__declspec(dllimport) bool __stdcall AddOverlayW(wchar_t* szFileName, wchar_t* szOverlayFileName);
|
|
__declspec(dllimport) bool __stdcall CopyOverlay(char* szInFileName, char* szOutFileName);
|
|
__declspec(dllimport) bool __stdcall CopyOverlayW(wchar_t* szInFileName, wchar_t* szOutFileName);
|
|
__declspec(dllimport) bool __stdcall RemoveOverlay(char* szFileName);
|
|
__declspec(dllimport) bool __stdcall RemoveOverlayW(wchar_t* szFileName);
|
|
__declspec(dllimport) bool __stdcall MakeAllSectionsRWE(char* szFileName);
|
|
__declspec(dllimport) bool __stdcall MakeAllSectionsRWEW(wchar_t* szFileName);
|
|
__declspec(dllimport) long __stdcall AddNewSectionEx(char* szFileName, char* szSectionName, DWORD SectionSize, DWORD SectionAttributes, LPVOID SectionContent, DWORD ContentSize);
|
|
__declspec(dllimport) long __stdcall AddNewSectionExW(wchar_t* szFileName, char* szSectionName, DWORD SectionSize, DWORD SectionAttributes, LPVOID SectionContent, DWORD ContentSize);
|
|
__declspec(dllimport) long __stdcall AddNewSection(char* szFileName, char* szSectionName, DWORD SectionSize);
|
|
__declspec(dllimport) long __stdcall AddNewSectionW(wchar_t* szFileName, char* szSectionName, DWORD SectionSize);
|
|
__declspec(dllimport) bool __stdcall ResizeLastSection(char* szFileName, DWORD NumberOfExpandBytes, bool AlignResizeData);
|
|
__declspec(dllimport) bool __stdcall ResizeLastSectionW(wchar_t* szFileName, DWORD NumberOfExpandBytes, bool AlignResizeData);
|
|
__declspec(dllimport) void __stdcall SetSharedOverlay(char* szFileName);
|
|
__declspec(dllimport) void __stdcall SetSharedOverlayW(wchar_t* szFileName);
|
|
__declspec(dllimport) char* __stdcall GetSharedOverlay();
|
|
__declspec(dllimport) wchar_t* __stdcall GetSharedOverlayW();
|
|
__declspec(dllimport) bool __stdcall DeleteLastSection(char* szFileName);
|
|
__declspec(dllimport) bool __stdcall DeleteLastSectionW(wchar_t* szFileName);
|
|
__declspec(dllimport) bool __stdcall DeleteLastSectionEx(char* szFileName, DWORD NumberOfSections);
|
|
__declspec(dllimport) bool __stdcall DeleteLastSectionExW(wchar_t* szFileName, DWORD NumberOfSections);
|
|
__declspec(dllimport) long long __stdcall GetPE32DataFromMappedFile(ULONG_PTR FileMapVA, DWORD WhichSection, DWORD WhichData);
|
|
__declspec(dllimport) long long __stdcall GetPE32Data(char* szFileName, DWORD WhichSection, DWORD WhichData);
|
|
__declspec(dllimport) long long __stdcall GetPE32DataW(wchar_t* szFileName, DWORD WhichSection, DWORD WhichData);
|
|
__declspec(dllimport) bool __stdcall GetPE32DataFromMappedFileEx(ULONG_PTR FileMapVA, LPVOID DataStorage);
|
|
__declspec(dllimport) bool __stdcall GetPE32DataEx(char* szFileName, LPVOID DataStorage);
|
|
__declspec(dllimport) bool __stdcall GetPE32DataExW(wchar_t* szFileName, LPVOID DataStorage);
|
|
__declspec(dllimport) bool __stdcall SetPE32DataForMappedFile(ULONG_PTR FileMapVA, DWORD WhichSection, DWORD WhichData, ULONG_PTR NewDataValue);
|
|
__declspec(dllimport) bool __stdcall SetPE32Data(char* szFileName, DWORD WhichSection, DWORD WhichData, ULONG_PTR NewDataValue);
|
|
__declspec(dllimport) bool __stdcall SetPE32DataW(wchar_t* szFileName, DWORD WhichSection, DWORD WhichData, ULONG_PTR NewDataValue);
|
|
__declspec(dllimport) bool __stdcall SetPE32DataForMappedFileEx(ULONG_PTR FileMapVA, LPVOID DataStorage);
|
|
__declspec(dllimport) bool __stdcall SetPE32DataEx(char* szFileName, LPVOID DataStorage);
|
|
__declspec(dllimport) bool __stdcall SetPE32DataExW(wchar_t* szFileName, LPVOID DataStorage);
|
|
__declspec(dllimport) long __stdcall GetPE32SectionNumberFromVA(ULONG_PTR FileMapVA, ULONG_PTR AddressToConvert);
|
|
__declspec(dllimport) long long __stdcall ConvertVAtoFileOffset(ULONG_PTR FileMapVA, ULONG_PTR AddressToConvert, bool ReturnType);
|
|
__declspec(dllimport) long long __stdcall ConvertVAtoFileOffsetEx(ULONG_PTR FileMapVA, DWORD FileSize, ULONG_PTR ImageBase, ULONG_PTR AddressToConvert, bool AddressIsRVA, bool ReturnType);
|
|
__declspec(dllimport) long long __stdcall ConvertFileOffsetToVA(ULONG_PTR FileMapVA, ULONG_PTR AddressToConvert, bool ReturnType);
|
|
__declspec(dllimport) long long __stdcall ConvertFileOffsetToVAEx(ULONG_PTR FileMapVA, DWORD FileSize, ULONG_PTR ImageBase, ULONG_PTR AddressToConvert, bool ReturnType);
|
|
// TitanEngine.Realigner.functions:
|
|
__declspec(dllimport) bool __stdcall FixHeaderCheckSum(char* szFileName);
|
|
__declspec(dllimport) bool __stdcall FixHeaderCheckSumW(wchar_t* szFileName);
|
|
__declspec(dllimport) long __stdcall RealignPE(ULONG_PTR FileMapVA, DWORD FileSize, DWORD RealingMode);
|
|
__declspec(dllimport) long __stdcall RealignPEEx(char* szFileName, DWORD RealingFileSize, DWORD ForcedFileAlignment);
|
|
__declspec(dllimport) long __stdcall RealignPEExW(wchar_t* szFileName, DWORD RealingFileSize, DWORD ForcedFileAlignment);
|
|
__declspec(dllimport) bool __stdcall WipeSection(char* szFileName, int WipeSectionNumber, bool RemovePhysically);
|
|
__declspec(dllimport) bool __stdcall WipeSectionW(wchar_t* szFileName, int WipeSectionNumber, bool RemovePhysically);
|
|
__declspec(dllimport) bool __stdcall IsPE32FileValidEx(char* szFileName, DWORD CheckDepth, LPVOID FileStatusInfo);
|
|
__declspec(dllimport) bool __stdcall IsPE32FileValidExW(wchar_t* szFileName, DWORD CheckDepth, LPVOID FileStatusInfo);
|
|
__declspec(dllimport) bool __stdcall FixBrokenPE32FileEx(char* szFileName, LPVOID FileStatusInfo, LPVOID FileFixInfo);
|
|
__declspec(dllimport) bool __stdcall FixBrokenPE32FileExW(wchar_t* szFileName, LPVOID FileStatusInfo, LPVOID FileFixInfo);
|
|
__declspec(dllimport) bool __stdcall IsFileDLL(char* szFileName, ULONG_PTR FileMapVA);
|
|
__declspec(dllimport) bool __stdcall IsFileDLLW(wchar_t* szFileName, ULONG_PTR FileMapVA);
|
|
// TitanEngine.Hider.functions:
|
|
__declspec(dllimport) void* __stdcall GetPEBLocation(HANDLE hProcess);
|
|
__declspec(dllimport) bool __stdcall HideDebugger(HANDLE hProcess, DWORD PatchAPILevel);
|
|
__declspec(dllimport) bool __stdcall UnHideDebugger(HANDLE hProcess, DWORD PatchAPILevel);
|
|
// TitanEngine.Relocater.functions:
|
|
__declspec(dllimport) void __stdcall RelocaterCleanup();
|
|
__declspec(dllimport) void __stdcall RelocaterInit(DWORD MemorySize, ULONG_PTR OldImageBase, ULONG_PTR NewImageBase);
|
|
__declspec(dllimport) void __stdcall RelocaterAddNewRelocation(HANDLE hProcess, ULONG_PTR RelocateAddress, DWORD RelocateState);
|
|
__declspec(dllimport) long __stdcall RelocaterEstimatedSize();
|
|
__declspec(dllimport) bool __stdcall RelocaterExportRelocation(ULONG_PTR StorePlace, DWORD StorePlaceRVA, ULONG_PTR FileMapVA);
|
|
__declspec(dllimport) bool __stdcall RelocaterExportRelocationEx(char* szFileName, char* szSectionName);
|
|
__declspec(dllimport) bool __stdcall RelocaterExportRelocationExW(wchar_t* szFileName, char* szSectionName);
|
|
__declspec(dllimport) bool __stdcall RelocaterGrabRelocationTable(HANDLE hProcess, ULONG_PTR MemoryStart, DWORD MemorySize);
|
|
__declspec(dllimport) bool __stdcall RelocaterGrabRelocationTableEx(HANDLE hProcess, ULONG_PTR MemoryStart, ULONG_PTR MemorySize, DWORD NtSizeOfImage);
|
|
__declspec(dllimport) bool __stdcall RelocaterMakeSnapshot(HANDLE hProcess, char* szSaveFileName, LPVOID MemoryStart, ULONG_PTR MemorySize);
|
|
__declspec(dllimport) bool __stdcall RelocaterMakeSnapshotW(HANDLE hProcess, wchar_t* szSaveFileName, LPVOID MemoryStart, ULONG_PTR MemorySize);
|
|
__declspec(dllimport) bool __stdcall RelocaterCompareTwoSnapshots(HANDLE hProcess, ULONG_PTR LoadedImageBase, ULONG_PTR NtSizeOfImage, char* szDumpFile1, char* szDumpFile2, ULONG_PTR MemStart);
|
|
__declspec(dllimport) bool __stdcall RelocaterCompareTwoSnapshotsW(HANDLE hProcess, ULONG_PTR LoadedImageBase, ULONG_PTR NtSizeOfImage, wchar_t* szDumpFile1, wchar_t* szDumpFile2, ULONG_PTR MemStart);
|
|
__declspec(dllimport) bool __stdcall RelocaterChangeFileBase(char* szFileName, ULONG_PTR NewImageBase);
|
|
__declspec(dllimport) bool __stdcall RelocaterChangeFileBaseW(wchar_t* szFileName, ULONG_PTR NewImageBase);
|
|
__declspec(dllimport) bool __stdcall RelocaterRelocateMemoryBlock(ULONG_PTR FileMapVA, ULONG_PTR MemoryLocation, void* RelocateMemory, DWORD RelocateMemorySize, ULONG_PTR CurrentLoadedBase, ULONG_PTR RelocateBase);
|
|
__declspec(dllimport) bool __stdcall RelocaterWipeRelocationTable(char* szFileName);
|
|
__declspec(dllimport) bool __stdcall RelocaterWipeRelocationTableW(wchar_t* szFileName);
|
|
// TitanEngine.Resourcer.functions:
|
|
__declspec(dllimport) long long __stdcall ResourcerLoadFileForResourceUse(char* szFileName);
|
|
__declspec(dllimport) long long __stdcall ResourcerLoadFileForResourceUseW(wchar_t* szFileName);
|
|
__declspec(dllimport) bool __stdcall ResourcerFreeLoadedFile(LPVOID LoadedFileBase);
|
|
__declspec(dllimport) bool __stdcall ResourcerExtractResourceFromFileEx(ULONG_PTR FileMapVA, char* szResourceType, char* szResourceName, char* szExtractedFileName);
|
|
__declspec(dllimport) bool __stdcall ResourcerExtractResourceFromFile(char* szFileName, char* szResourceType, char* szResourceName, char* szExtractedFileName);
|
|
__declspec(dllimport) bool __stdcall ResourcerExtractResourceFromFileW(wchar_t* szFileName, char* szResourceType, char* szResourceName, char* szExtractedFileName);
|
|
__declspec(dllimport) bool __stdcall ResourcerFindResource(char* szFileName, char* szResourceType, DWORD ResourceType, char* szResourceName, DWORD ResourceName, DWORD ResourceLanguage, PULONG_PTR pResourceData, LPDWORD pResourceSize);
|
|
__declspec(dllimport) bool __stdcall ResourcerFindResourceW(wchar_t* szFileName, wchar_t* szResourceType, DWORD ResourceType, wchar_t* szResourceName, DWORD ResourceName, DWORD ResourceLanguage, PULONG_PTR pResourceData, LPDWORD pResourceSize);
|
|
__declspec(dllimport) bool __stdcall ResourcerFindResourceEx(ULONG_PTR FileMapVA, DWORD FileSize, wchar_t* szResourceType, DWORD ResourceType, wchar_t* szResourceName, DWORD ResourceName, DWORD ResourceLanguage, PULONG_PTR pResourceData, LPDWORD pResourceSize);
|
|
__declspec(dllimport) void __stdcall ResourcerEnumerateResource(char* szFileName, void* CallBack);
|
|
__declspec(dllimport) void __stdcall ResourcerEnumerateResourceW(wchar_t* szFileName, void* CallBack);
|
|
__declspec(dllimport) void __stdcall ResourcerEnumerateResourceEx(ULONG_PTR FileMapVA, DWORD FileSize, void* CallBack);
|
|
// TitanEngine.Threader.functions:
|
|
__declspec(dllimport) bool __stdcall ThreaderImportRunningThreadData(DWORD ProcessId);
|
|
__declspec(dllimport) void* __stdcall ThreaderGetThreadInfo(HANDLE hThread, DWORD ThreadId);
|
|
__declspec(dllimport) void __stdcall ThreaderEnumThreadInfo(void* EnumCallBack);
|
|
__declspec(dllimport) bool __stdcall ThreaderPauseThread(HANDLE hThread);
|
|
__declspec(dllimport) bool __stdcall ThreaderResumeThread(HANDLE hThread);
|
|
__declspec(dllimport) bool __stdcall ThreaderTerminateThread(HANDLE hThread, DWORD ThreadExitCode);
|
|
__declspec(dllimport) bool __stdcall ThreaderPauseAllThreads(bool LeaveMainRunning);
|
|
__declspec(dllimport) bool __stdcall ThreaderResumeAllThreads(bool LeaveMainPaused);
|
|
__declspec(dllimport) bool __stdcall ThreaderPauseProcess();
|
|
__declspec(dllimport) bool __stdcall ThreaderResumeProcess();
|
|
__declspec(dllimport) long long __stdcall ThreaderCreateRemoteThread(ULONG_PTR ThreadStartAddress, bool AutoCloseTheHandle, LPVOID ThreadPassParameter, LPDWORD ThreadId);
|
|
__declspec(dllimport) bool __stdcall ThreaderInjectAndExecuteCode(LPVOID InjectCode, DWORD StartDelta, DWORD InjectSize);
|
|
__declspec(dllimport) long long __stdcall ThreaderCreateRemoteThreadEx(HANDLE hProcess, ULONG_PTR ThreadStartAddress, bool AutoCloseTheHandle, LPVOID ThreadPassParameter, LPDWORD ThreadId);
|
|
__declspec(dllimport) bool __stdcall ThreaderInjectAndExecuteCodeEx(HANDLE hProcess, LPVOID InjectCode, DWORD StartDelta, DWORD InjectSize);
|
|
__declspec(dllimport) void __stdcall ThreaderSetCallBackForNextExitThreadEvent(LPVOID exitThreadCallBack);
|
|
__declspec(dllimport) bool __stdcall ThreaderIsThreadStillRunning(HANDLE hThread);
|
|
__declspec(dllimport) bool __stdcall ThreaderIsThreadActive(HANDLE hThread);
|
|
__declspec(dllimport) bool __stdcall ThreaderIsAnyThreadActive();
|
|
__declspec(dllimport) bool __stdcall ThreaderExecuteOnlyInjectedThreads();
|
|
__declspec(dllimport) long long __stdcall ThreaderGetOpenHandleForThread(DWORD ThreadId);
|
|
__declspec(dllimport) void* __stdcall ThreaderGetThreadData();
|
|
__declspec(dllimport) bool __stdcall ThreaderIsExceptionInMainThread();
|
|
// TitanEngine.Debugger.functions:
|
|
__declspec(dllimport) void* __stdcall StaticDisassembleEx(ULONG_PTR DisassmStart, LPVOID DisassmAddress);
|
|
__declspec(dllimport) void* __stdcall StaticDisassemble(LPVOID DisassmAddress);
|
|
__declspec(dllimport) void* __stdcall DisassembleEx(HANDLE hProcess, LPVOID DisassmAddress, bool ReturnInstructionType);
|
|
__declspec(dllimport) void* __stdcall Disassemble(LPVOID DisassmAddress);
|
|
__declspec(dllimport) long __stdcall StaticLengthDisassemble(LPVOID DisassmAddress);
|
|
__declspec(dllimport) long __stdcall LengthDisassembleEx(HANDLE hProcess, LPVOID DisassmAddress);
|
|
__declspec(dllimport) long __stdcall LengthDisassemble(LPVOID DisassmAddress);
|
|
__declspec(dllimport) void* __stdcall InitDebug(char* szFileName, char* szCommandLine, char* szCurrentFolder);
|
|
__declspec(dllimport) void* __stdcall InitDebugW(wchar_t* szFileName, wchar_t* szCommandLine, wchar_t* szCurrentFolder);
|
|
__declspec(dllimport) void* __stdcall InitDebugEx(char* szFileName, char* szCommandLine, char* szCurrentFolder, LPVOID EntryCallBack);
|
|
__declspec(dllimport) void* __stdcall InitDebugExW(wchar_t* szFileName, wchar_t* szCommandLine, wchar_t* szCurrentFolder, LPVOID EntryCallBack);
|
|
__declspec(dllimport) void* __stdcall InitDLLDebug(char* szFileName, bool ReserveModuleBase, char* szCommandLine, char* szCurrentFolder, LPVOID EntryCallBack);
|
|
__declspec(dllimport) void* __stdcall InitDLLDebugW(wchar_t* szFileName, bool ReserveModuleBase, wchar_t* szCommandLine, wchar_t* szCurrentFolder, LPVOID EntryCallBack);
|
|
__declspec(dllimport) bool __stdcall StopDebug();
|
|
__declspec(dllimport) void __stdcall SetBPXOptions(long DefaultBreakPointType);
|
|
__declspec(dllimport) bool __stdcall IsBPXEnabled(ULONG_PTR bpxAddress);
|
|
__declspec(dllimport) bool __stdcall EnableBPX(ULONG_PTR bpxAddress);
|
|
__declspec(dllimport) bool __stdcall DisableBPX(ULONG_PTR bpxAddress);
|
|
__declspec(dllimport) bool __stdcall SetBPX(ULONG_PTR bpxAddress, DWORD bpxType, LPVOID bpxCallBack);
|
|
__declspec(dllimport) bool __stdcall SetBPXEx(ULONG_PTR bpxAddress, DWORD bpxType, DWORD NumberOfExecution, DWORD CmpRegister, DWORD CmpCondition, ULONG_PTR CmpValue, LPVOID bpxCallBack, LPVOID bpxCompareCallBack, LPVOID bpxRemoveCallBack);
|
|
__declspec(dllimport) bool __stdcall DeleteBPX(ULONG_PTR bpxAddress);
|
|
__declspec(dllimport) bool __stdcall SafeDeleteBPX(ULONG_PTR bpxAddress);
|
|
__declspec(dllimport) bool __stdcall SetAPIBreakPoint(char* szDLLName, char* szAPIName, DWORD bpxType, DWORD bpxPlace, LPVOID bpxCallBack);
|
|
__declspec(dllimport) bool __stdcall DeleteAPIBreakPoint(char* szDLLName, char* szAPIName, DWORD bpxPlace);
|
|
__declspec(dllimport) bool __stdcall SafeDeleteAPIBreakPoint(char* szDLLName, char* szAPIName, DWORD bpxPlace);
|
|
__declspec(dllimport) bool __stdcall SetMemoryBPX(ULONG_PTR MemoryStart, DWORD SizeOfMemory, LPVOID bpxCallBack);
|
|
__declspec(dllimport) bool __stdcall SetMemoryBPXEx(ULONG_PTR MemoryStart, DWORD SizeOfMemory, DWORD BreakPointType, bool RestoreOnHit, LPVOID bpxCallBack);
|
|
__declspec(dllimport) bool __stdcall RemoveMemoryBPX(ULONG_PTR MemoryStart, DWORD SizeOfMemory);
|
|
__declspec(dllimport) bool __stdcall GetContextFPUDataEx(HANDLE hActiveThread, void* FPUSaveArea);
|
|
__declspec(dllimport) long long __stdcall GetContextDataEx(HANDLE hActiveThread, DWORD IndexOfRegister);
|
|
__declspec(dllimport) long long __stdcall GetContextData(DWORD IndexOfRegister);
|
|
__declspec(dllimport) bool __stdcall SetContextFPUDataEx(HANDLE hActiveThread, void* FPUSaveArea);
|
|
__declspec(dllimport) bool __stdcall SetContextDataEx(HANDLE hActiveThread, DWORD IndexOfRegister, ULONG_PTR NewRegisterValue);
|
|
__declspec(dllimport) bool __stdcall SetContextData(DWORD IndexOfRegister, ULONG_PTR NewRegisterValue);
|
|
__declspec(dllimport) void __stdcall ClearExceptionNumber();
|
|
__declspec(dllimport) long __stdcall CurrentExceptionNumber();
|
|
__declspec(dllimport) bool __stdcall MatchPatternEx(HANDLE hProcess, void* MemoryToCheck, int SizeOfMemoryToCheck, void* PatternToMatch, int SizeOfPatternToMatch, PBYTE WildCard);
|
|
__declspec(dllimport) bool __stdcall MatchPattern(void* MemoryToCheck, int SizeOfMemoryToCheck, void* PatternToMatch, int SizeOfPatternToMatch, PBYTE WildCard);
|
|
__declspec(dllimport) long long __stdcall FindEx(HANDLE hProcess, LPVOID MemoryStart, DWORD MemorySize, LPVOID SearchPattern, DWORD PatternSize, LPBYTE WildCard);
|
|
__declspec(dllimport) long long __stdcall Find(LPVOID MemoryStart, DWORD MemorySize, LPVOID SearchPattern, DWORD PatternSize, LPBYTE WildCard);
|
|
__declspec(dllimport) bool __stdcall FillEx(HANDLE hProcess, LPVOID MemoryStart, DWORD MemorySize, PBYTE FillByte);
|
|
__declspec(dllimport) bool __stdcall Fill(LPVOID MemoryStart, DWORD MemorySize, PBYTE FillByte);
|
|
__declspec(dllimport) bool __stdcall PatchEx(HANDLE hProcess, LPVOID MemoryStart, DWORD MemorySize, LPVOID ReplacePattern, DWORD ReplaceSize, bool AppendNOP, bool PrependNOP);
|
|
__declspec(dllimport) bool __stdcall Patch(LPVOID MemoryStart, DWORD MemorySize, LPVOID ReplacePattern, DWORD ReplaceSize, bool AppendNOP, bool PrependNOP);
|
|
__declspec(dllimport) bool __stdcall ReplaceEx(HANDLE hProcess, LPVOID MemoryStart, DWORD MemorySize, LPVOID SearchPattern, DWORD PatternSize, DWORD NumberOfRepetitions, LPVOID ReplacePattern, DWORD ReplaceSize, PBYTE WildCard);
|
|
__declspec(dllimport) bool __stdcall Replace(LPVOID MemoryStart, DWORD MemorySize, LPVOID SearchPattern, DWORD PatternSize, DWORD NumberOfRepetitions, LPVOID ReplacePattern, DWORD ReplaceSize, PBYTE WildCard);
|
|
__declspec(dllimport) void* __stdcall GetDebugData();
|
|
__declspec(dllimport) void* __stdcall GetTerminationData();
|
|
__declspec(dllimport) long __stdcall GetExitCode();
|
|
__declspec(dllimport) long long __stdcall GetDebuggedDLLBaseAddress();
|
|
__declspec(dllimport) long long __stdcall GetDebuggedFileBaseAddress();
|
|
__declspec(dllimport) bool __stdcall GetRemoteString(HANDLE hProcess, LPVOID StringAddress, LPVOID StringStorage, int MaximumStringSize);
|
|
__declspec(dllimport) long long __stdcall GetFunctionParameter(HANDLE hProcess, DWORD FunctionType, DWORD ParameterNumber, DWORD ParameterType);
|
|
__declspec(dllimport) long long __stdcall GetJumpDestinationEx(HANDLE hProcess, ULONG_PTR InstructionAddress, bool JustJumps);
|
|
__declspec(dllimport) long long __stdcall GetJumpDestination(HANDLE hProcess, ULONG_PTR InstructionAddress);
|
|
__declspec(dllimport) bool __stdcall IsJumpGoingToExecuteEx(HANDLE hProcess, HANDLE hThread, ULONG_PTR InstructionAddress, ULONG_PTR RegFlags);
|
|
__declspec(dllimport) bool __stdcall IsJumpGoingToExecute();
|
|
__declspec(dllimport) void __stdcall SetCustomHandler(DWORD ExceptionId, LPVOID CallBack);
|
|
__declspec(dllimport) void __stdcall ForceClose();
|
|
__declspec(dllimport) void __stdcall StepInto(LPVOID traceCallBack);
|
|
__declspec(dllimport) void __stdcall StepOver(LPVOID traceCallBack);
|
|
__declspec(dllimport) void __stdcall SingleStep(DWORD StepCount, LPVOID StepCallBack);
|
|
__declspec(dllimport) bool __stdcall GetUnusedHardwareBreakPointRegister(LPDWORD RegisterIndex);
|
|
__declspec(dllimport) bool __stdcall SetHardwareBreakPointEx(HANDLE hActiveThread, ULONG_PTR bpxAddress, DWORD IndexOfRegister, DWORD bpxType, DWORD bpxSize, LPVOID bpxCallBack, LPDWORD IndexOfSelectedRegister);
|
|
__declspec(dllimport) bool __stdcall SetHardwareBreakPoint(ULONG_PTR bpxAddress, DWORD IndexOfRegister, DWORD bpxType, DWORD bpxSize, LPVOID bpxCallBack);
|
|
__declspec(dllimport) bool __stdcall DeleteHardwareBreakPoint(DWORD IndexOfRegister);
|
|
__declspec(dllimport) bool __stdcall RemoveAllBreakPoints(DWORD RemoveOption);
|
|
__declspec(dllimport) void* __stdcall GetProcessInformation();
|
|
__declspec(dllimport) void* __stdcall GetStartupInformation();
|
|
__declspec(dllimport) void __stdcall DebugLoop();
|
|
__declspec(dllimport) void __stdcall SetDebugLoopTimeOut(DWORD TimeOut);
|
|
__declspec(dllimport) void __stdcall SetNextDbgContinueStatus(DWORD SetDbgCode);
|
|
__declspec(dllimport) bool __stdcall AttachDebugger(DWORD ProcessId, bool KillOnExit, LPVOID DebugInfo, LPVOID CallBack);
|
|
__declspec(dllimport) bool __stdcall DetachDebugger(DWORD ProcessId);
|
|
__declspec(dllimport) bool __stdcall DetachDebuggerEx(DWORD ProcessId);
|
|
__declspec(dllimport) void __stdcall DebugLoopEx(DWORD TimeOut);
|
|
__declspec(dllimport) void __stdcall AutoDebugEx(char* szFileName, bool ReserveModuleBase, char* szCommandLine, char* szCurrentFolder, DWORD TimeOut, LPVOID EntryCallBack);
|
|
__declspec(dllimport) void __stdcall AutoDebugExW(wchar_t* szFileName, bool ReserveModuleBase, wchar_t* szCommandLine, wchar_t* szCurrentFolder, DWORD TimeOut, LPVOID EntryCallBack);
|
|
__declspec(dllimport) bool __stdcall IsFileBeingDebugged();
|
|
__declspec(dllimport) void __stdcall SetErrorModel(bool DisplayErrorMessages);
|
|
// TitanEngine.FindOEP.functions:
|
|
__declspec(dllimport) void __stdcall FindOEPInit();
|
|
__declspec(dllimport) bool __stdcall FindOEPGenerically(char* szFileName, LPVOID TraceInitCallBack, LPVOID CallBack);
|
|
__declspec(dllimport) bool __stdcall FindOEPGenericallyW(wchar_t* szFileName, LPVOID TraceInitCallBack, LPVOID CallBack);
|
|
// TitanEngine.Importer.functions:
|
|
__declspec(dllimport) void __stdcall ImporterCleanup();
|
|
__declspec(dllimport) void __stdcall ImporterSetImageBase(ULONG_PTR ImageBase);
|
|
__declspec(dllimport) void __stdcall ImporterSetUnknownDelta(ULONG_PTR DeltaAddress);
|
|
__declspec(dllimport) long long __stdcall ImporterGetCurrentDelta();
|
|
__declspec(dllimport) void __stdcall ImporterInit(DWORD MemorySize, ULONG_PTR ImageBase);
|
|
__declspec(dllimport) void __stdcall ImporterAddNewDll(char* szDLLName, ULONG_PTR FirstThunk);
|
|
__declspec(dllimport) void __stdcall ImporterAddNewAPI(char* szAPIName, ULONG_PTR ThunkValue);
|
|
__declspec(dllimport) void __stdcall ImporterAddNewOrdinalAPI(ULONG_PTR OrdinalNumber, ULONG_PTR ThunkValue);
|
|
__declspec(dllimport) long __stdcall ImporterGetAddedDllCount();
|
|
__declspec(dllimport) long __stdcall ImporterGetAddedAPICount();
|
|
__declspec(dllimport) void* __stdcall ImporterGetLastAddedDLLName();
|
|
__declspec(dllimport) void __stdcall ImporterMoveIAT();
|
|
__declspec(dllimport) bool __stdcall ImporterExportIAT(ULONG_PTR StorePlace, ULONG_PTR FileMapVA);
|
|
__declspec(dllimport) long __stdcall ImporterEstimatedSize();
|
|
__declspec(dllimport) bool __stdcall ImporterExportIATEx(char* szExportFileName, char* szSectionName);
|
|
__declspec(dllimport) bool __stdcall ImporterExportIATExW(wchar_t* szExportFileName, char* szSectionName);
|
|
__declspec(dllimport) long long __stdcall ImporterFindAPIWriteLocation(char* szAPIName);
|
|
__declspec(dllimport) long long __stdcall ImporterFindOrdinalAPIWriteLocation(ULONG_PTR OrdinalNumber);
|
|
__declspec(dllimport) long long __stdcall ImporterFindAPIByWriteLocation(ULONG_PTR APIWriteLocation);
|
|
__declspec(dllimport) long long __stdcall ImporterFindDLLByWriteLocation(ULONG_PTR APIWriteLocation);
|
|
__declspec(dllimport) void* __stdcall ImporterGetDLLName(ULONG_PTR APIAddress);
|
|
__declspec(dllimport) void* __stdcall ImporterGetAPIName(ULONG_PTR APIAddress);
|
|
__declspec(dllimport) long long __stdcall ImporterGetAPIOrdinalNumber(ULONG_PTR APIAddress);
|
|
__declspec(dllimport) void* __stdcall ImporterGetAPINameEx(ULONG_PTR APIAddress, ULONG_PTR DLLBasesList);
|
|
__declspec(dllimport) long long __stdcall ImporterGetRemoteAPIAddress(HANDLE hProcess, ULONG_PTR APIAddress);
|
|
__declspec(dllimport) long long __stdcall ImporterGetRemoteAPIAddressEx(char* szDLLName, char* szAPIName);
|
|
__declspec(dllimport) long long __stdcall ImporterGetLocalAPIAddress(HANDLE hProcess, ULONG_PTR APIAddress);
|
|
__declspec(dllimport) void* __stdcall ImporterGetDLLNameFromDebugee(HANDLE hProcess, ULONG_PTR APIAddress);
|
|
__declspec(dllimport) void* __stdcall ImporterGetAPINameFromDebugee(HANDLE hProcess, ULONG_PTR APIAddress);
|
|
__declspec(dllimport) long long __stdcall ImporterGetAPIOrdinalNumberFromDebugee(HANDLE hProcess, ULONG_PTR APIAddress);
|
|
__declspec(dllimport) long __stdcall ImporterGetDLLIndexEx(ULONG_PTR APIAddress, ULONG_PTR DLLBasesList);
|
|
__declspec(dllimport) long __stdcall ImporterGetDLLIndex(HANDLE hProcess, ULONG_PTR APIAddress, ULONG_PTR DLLBasesList);
|
|
__declspec(dllimport) long long __stdcall ImporterGetRemoteDLLBase(HANDLE hProcess, HMODULE LocalModuleBase);
|
|
__declspec(dllimport) bool __stdcall ImporterRelocateWriteLocation(ULONG_PTR AddValue);
|
|
__declspec(dllimport) bool __stdcall ImporterIsForwardedAPI(HANDLE hProcess, ULONG_PTR APIAddress);
|
|
__declspec(dllimport) void* __stdcall ImporterGetForwardedAPIName(HANDLE hProcess, ULONG_PTR APIAddress);
|
|
__declspec(dllimport) void* __stdcall ImporterGetForwardedDLLName(HANDLE hProcess, ULONG_PTR APIAddress);
|
|
__declspec(dllimport) long __stdcall ImporterGetForwardedDLLIndex(HANDLE hProcess, ULONG_PTR APIAddress, ULONG_PTR DLLBasesList);
|
|
__declspec(dllimport) long long __stdcall ImporterGetForwardedAPIOrdinalNumber(HANDLE hProcess, ULONG_PTR APIAddress);
|
|
__declspec(dllimport) long long __stdcall ImporterGetNearestAPIAddress(HANDLE hProcess, ULONG_PTR APIAddress);
|
|
__declspec(dllimport) void* __stdcall ImporterGetNearestAPIName(HANDLE hProcess, ULONG_PTR APIAddress);
|
|
__declspec(dllimport) bool __stdcall ImporterCopyOriginalIAT(char* szOriginalFile, char* szDumpFile);
|
|
__declspec(dllimport) bool __stdcall ImporterCopyOriginalIATW(wchar_t* szOriginalFile, wchar_t* szDumpFile);
|
|
__declspec(dllimport) bool __stdcall ImporterLoadImportTable(char* szFileName);
|
|
__declspec(dllimport) bool __stdcall ImporterLoadImportTableW(wchar_t* szFileName);
|
|
__declspec(dllimport) bool __stdcall ImporterMoveOriginalIAT(char* szOriginalFile, char* szDumpFile, char* szSectionName);
|
|
__declspec(dllimport) bool __stdcall ImporterMoveOriginalIATW(wchar_t* szOriginalFile, wchar_t* szDumpFile, char* szSectionName);
|
|
__declspec(dllimport) void __stdcall ImporterAutoSearchIAT(HANDLE hProcess, char* szFileName, ULONG_PTR ImageBase, ULONG_PTR SearchStart, DWORD SearchSize, LPVOID pIATStart, LPVOID pIATSize);
|
|
__declspec(dllimport) void __stdcall ImporterAutoSearchIATW(HANDLE hProcess, wchar_t* szFileName, ULONG_PTR ImageBase, ULONG_PTR SearchStart, DWORD SearchSize, LPVOID pIATStart, LPVOID pIATSize);
|
|
__declspec(dllimport) void __stdcall ImporterAutoSearchIATEx(HANDLE hProcess, ULONG_PTR ImageBase, ULONG_PTR SearchStart, DWORD SearchSize, LPVOID pIATStart, LPVOID pIATSize);
|
|
__declspec(dllimport) void __stdcall ImporterEnumAddedData(LPVOID EnumCallBack);
|
|
__declspec(dllimport) long __stdcall ImporterAutoFixIATEx(HANDLE hProcess, char* szDumpedFile, char* szSectionName, bool DumpRunningProcess, bool RealignFile, ULONG_PTR EntryPointAddress, ULONG_PTR ImageBase, ULONG_PTR SearchStart, DWORD SearchSize, DWORD SearchStep, bool TryAutoFix, bool FixEliminations, LPVOID UnknownPointerFixCallback);
|
|
__declspec(dllimport) long __stdcall ImporterAutoFixIATExW(HANDLE hProcess, wchar_t* szDumpedFile, char* szSectionName, bool DumpRunningProcess, bool RealignFile, ULONG_PTR EntryPointAddress, ULONG_PTR ImageBase, ULONG_PTR SearchStart, DWORD SearchSize, DWORD SearchStep, bool TryAutoFix, bool FixEliminations, LPVOID UnknownPointerFixCallback);
|
|
__declspec(dllimport) long __stdcall ImporterAutoFixIAT(HANDLE hProcess, char* szDumpedFile, ULONG_PTR ImageBase, ULONG_PTR SearchStart, DWORD SearchSize, DWORD SearchStep);
|
|
__declspec(dllimport) long __stdcall ImporterAutoFixIATW(HANDLE hProcess, wchar_t* szDumpedFile, ULONG_PTR ImageBase, ULONG_PTR SearchStart, DWORD SearchSize, DWORD SearchStep);
|
|
// Global.Engine.Hook.functions:
|
|
__declspec(dllimport) bool __stdcall HooksSafeTransitionEx(LPVOID HookAddressArray, int NumberOfHooks, bool TransitionStart);
|
|
__declspec(dllimport) bool __stdcall HooksSafeTransition(LPVOID HookAddress, bool TransitionStart);
|
|
__declspec(dllimport) bool __stdcall HooksIsAddressRedirected(LPVOID HookAddress);
|
|
__declspec(dllimport) void* __stdcall HooksGetTrampolineAddress(LPVOID HookAddress);
|
|
__declspec(dllimport) void* __stdcall HooksGetHookEntryDetails(LPVOID HookAddress);
|
|
__declspec(dllimport) bool __stdcall HooksInsertNewRedirection(LPVOID HookAddress, LPVOID RedirectTo, int HookType);
|
|
__declspec(dllimport) bool __stdcall HooksInsertNewIATRedirectionEx(ULONG_PTR FileMapVA, ULONG_PTR LoadedModuleBase, char* szHookFunction, LPVOID RedirectTo);
|
|
__declspec(dllimport) bool __stdcall HooksInsertNewIATRedirection(char* szModuleName, char* szHookFunction, LPVOID RedirectTo);
|
|
__declspec(dllimport) bool __stdcall HooksRemoveRedirection(LPVOID HookAddress, bool RemoveAll);
|
|
__declspec(dllimport) bool __stdcall HooksRemoveRedirectionsForModule(HMODULE ModuleBase);
|
|
__declspec(dllimport) bool __stdcall HooksRemoveIATRedirection(char* szModuleName, char* szHookFunction, bool RemoveAll);
|
|
__declspec(dllimport) bool __stdcall HooksDisableRedirection(LPVOID HookAddress, bool DisableAll);
|
|
__declspec(dllimport) bool __stdcall HooksDisableRedirectionsForModule(HMODULE ModuleBase);
|
|
__declspec(dllimport) bool __stdcall HooksDisableIATRedirection(char* szModuleName, char* szHookFunction, bool DisableAll);
|
|
__declspec(dllimport) bool __stdcall HooksEnableRedirection(LPVOID HookAddress, bool EnableAll);
|
|
__declspec(dllimport) bool __stdcall HooksEnableRedirectionsForModule(HMODULE ModuleBase);
|
|
__declspec(dllimport) bool __stdcall HooksEnableIATRedirection(char* szModuleName, char* szHookFunction, bool EnableAll);
|
|
__declspec(dllimport) void __stdcall HooksScanModuleMemory(HMODULE ModuleBase, LPVOID CallBack);
|
|
__declspec(dllimport) void __stdcall HooksScanEntireProcessMemory(LPVOID CallBack);
|
|
__declspec(dllimport) void __stdcall HooksScanEntireProcessMemoryEx();
|
|
// TitanEngine.Tracer.functions:
|
|
__declspec(dllimport) void __stdcall TracerInit();
|
|
__declspec(dllimport) long long __stdcall TracerLevel1(HANDLE hProcess, ULONG_PTR AddressToTrace);
|
|
__declspec(dllimport) long long __stdcall HashTracerLevel1(HANDLE hProcess, ULONG_PTR AddressToTrace, DWORD InputNumberOfInstructions);
|
|
__declspec(dllimport) long __stdcall TracerDetectRedirection(HANDLE hProcess, ULONG_PTR AddressToTrace);
|
|
__declspec(dllimport) long long __stdcall TracerFixKnownRedirection(HANDLE hProcess, ULONG_PTR AddressToTrace, DWORD RedirectionId);
|
|
__declspec(dllimport) long long __stdcall TracerFixRedirectionViaModule(HMODULE hModuleHandle, HANDLE hProcess, ULONG_PTR AddressToTrace, DWORD IdParameter);
|
|
__declspec(dllimport) long long __stdcall TracerDetectRedirectionViaModule(HMODULE hModuleHandle, HANDLE hProcess, ULONG_PTR AddressToTrace, PDWORD ReturnedId);
|
|
__declspec(dllimport) long __stdcall TracerFixRedirectionViaImpRecPlugin(HANDLE hProcess, char* szPluginName, ULONG_PTR AddressToTrace);
|
|
// TitanEngine.Exporter.functions:
|
|
__declspec(dllimport) void __stdcall ExporterCleanup();
|
|
__declspec(dllimport) void __stdcall ExporterSetImageBase(ULONG_PTR ImageBase);
|
|
__declspec(dllimport) void __stdcall ExporterInit(DWORD MemorySize, ULONG_PTR ImageBase, DWORD ExportOrdinalBase, char* szExportModuleName);
|
|
__declspec(dllimport) bool __stdcall ExporterAddNewExport(char* szExportName, DWORD ExportRelativeAddress);
|
|
__declspec(dllimport) bool __stdcall ExporterAddNewOrdinalExport(DWORD OrdinalNumber, DWORD ExportRelativeAddress);
|
|
__declspec(dllimport) long __stdcall ExporterGetAddedExportCount();
|
|
__declspec(dllimport) long __stdcall ExporterEstimatedSize();
|
|
__declspec(dllimport) bool __stdcall ExporterBuildExportTable(ULONG_PTR StorePlace, ULONG_PTR FileMapVA);
|
|
__declspec(dllimport) bool __stdcall ExporterBuildExportTableEx(char* szExportFileName, char* szSectionName);
|
|
__declspec(dllimport) bool __stdcall ExporterBuildExportTableExW(wchar_t* szExportFileName, char* szSectionName);
|
|
__declspec(dllimport) bool __stdcall ExporterLoadExportTable(char* szFileName);
|
|
__declspec(dllimport) bool __stdcall ExporterLoadExportTableW(wchar_t* szFileName);
|
|
// TitanEngine.Librarian.functions:
|
|
__declspec(dllimport) bool __stdcall LibrarianSetBreakPoint(char* szLibraryName, DWORD bpxType, bool SingleShoot, LPVOID bpxCallBack);
|
|
__declspec(dllimport) bool __stdcall LibrarianRemoveBreakPoint(char* szLibraryName, DWORD bpxType);
|
|
__declspec(dllimport) void* __stdcall LibrarianGetLibraryInfo(char* szLibraryName);
|
|
__declspec(dllimport) void* __stdcall LibrarianGetLibraryInfoW(wchar_t* szLibraryName);
|
|
__declspec(dllimport) void* __stdcall LibrarianGetLibraryInfoEx(void* BaseOfDll);
|
|
__declspec(dllimport) void* __stdcall LibrarianGetLibraryInfoExW(void* BaseOfDll);
|
|
__declspec(dllimport) void __stdcall LibrarianEnumLibraryInfo(void* EnumCallBack);
|
|
__declspec(dllimport) void __stdcall LibrarianEnumLibraryInfoW(void* EnumCallBack);
|
|
// TitanEngine.Process.functions:
|
|
__declspec(dllimport) long __stdcall GetActiveProcessId(char* szImageName);
|
|
__declspec(dllimport) long __stdcall GetActiveProcessIdW(wchar_t* szImageName);
|
|
__declspec(dllimport) void __stdcall EnumProcessesWithLibrary(char* szLibraryName, void* EnumFunction);
|
|
// TitanEngine.TLSFixer.functions:
|
|
__declspec(dllimport) bool __stdcall TLSBreakOnCallBack(LPVOID ArrayOfCallBacks, DWORD NumberOfCallBacks, LPVOID bpxCallBack);
|
|
__declspec(dllimport) bool __stdcall TLSGrabCallBackData(char* szFileName, LPVOID ArrayOfCallBacks, LPDWORD NumberOfCallBacks);
|
|
__declspec(dllimport) bool __stdcall TLSGrabCallBackDataW(wchar_t* szFileName, LPVOID ArrayOfCallBacks, LPDWORD NumberOfCallBacks);
|
|
__declspec(dllimport) bool __stdcall TLSBreakOnCallBackEx(char* szFileName, LPVOID bpxCallBack);
|
|
__declspec(dllimport) bool __stdcall TLSBreakOnCallBackExW(wchar_t* szFileName, LPVOID bpxCallBack);
|
|
__declspec(dllimport) bool __stdcall TLSRemoveCallback(char* szFileName);
|
|
__declspec(dllimport) bool __stdcall TLSRemoveCallbackW(wchar_t* szFileName);
|
|
__declspec(dllimport) bool __stdcall TLSRemoveTable(char* szFileName);
|
|
__declspec(dllimport) bool __stdcall TLSRemoveTableW(wchar_t* szFileName);
|
|
__declspec(dllimport) bool __stdcall TLSBackupData(char* szFileName);
|
|
__declspec(dllimport) bool __stdcall TLSBackupDataW(wchar_t* szFileName);
|
|
__declspec(dllimport) bool __stdcall TLSRestoreData();
|
|
__declspec(dllimport) bool __stdcall TLSBuildNewTable(ULONG_PTR FileMapVA, ULONG_PTR StorePlace, ULONG_PTR StorePlaceRVA, LPVOID ArrayOfCallBacks, DWORD NumberOfCallBacks);
|
|
__declspec(dllimport) bool __stdcall TLSBuildNewTableEx(char* szFileName, char* szSectionName, LPVOID ArrayOfCallBacks, DWORD NumberOfCallBacks);
|
|
__declspec(dllimport) bool __stdcall TLSBuildNewTableExW(wchar_t* szFileName, char* szSectionName, LPVOID ArrayOfCallBacks, DWORD NumberOfCallBacks);
|
|
// TitanEngine.TranslateName.functions:
|
|
__declspec(dllimport) void* __stdcall TranslateNativeName(char* szNativeName);
|
|
__declspec(dllimport) void* __stdcall TranslateNativeNameW(wchar_t* szNativeName);
|
|
// TitanEngine.Handler.functions:
|
|
__declspec(dllimport) long __stdcall HandlerGetActiveHandleCount(DWORD ProcessId);
|
|
__declspec(dllimport) bool __stdcall HandlerIsHandleOpen(DWORD ProcessId, HANDLE hHandle);
|
|
__declspec(dllimport) void* __stdcall HandlerGetHandleName(HANDLE hProcess, DWORD ProcessId, HANDLE hHandle, bool TranslateName);
|
|
__declspec(dllimport) void* __stdcall HandlerGetHandleNameW(HANDLE hProcess, DWORD ProcessId, HANDLE hHandle, bool TranslateName);
|
|
__declspec(dllimport) long __stdcall HandlerEnumerateOpenHandles(DWORD ProcessId, LPVOID HandleBuffer, DWORD MaxHandleCount);
|
|
__declspec(dllimport) long long __stdcall HandlerGetHandleDetails(HANDLE hProcess, DWORD ProcessId, HANDLE hHandle, DWORD InformationReturn);
|
|
__declspec(dllimport) bool __stdcall HandlerCloseRemoteHandle(HANDLE hProcess, HANDLE hHandle);
|
|
__declspec(dllimport) long __stdcall HandlerEnumerateLockHandles(char* szFileOrFolderName, bool NameIsFolder, bool NameIsTranslated, LPVOID HandleDataBuffer, DWORD MaxHandleCount);
|
|
__declspec(dllimport) long __stdcall HandlerEnumerateLockHandlesW(wchar_t* szFileOrFolderName, bool NameIsFolder, bool NameIsTranslated, LPVOID HandleDataBuffer, DWORD MaxHandleCount);
|
|
__declspec(dllimport) bool __stdcall HandlerCloseAllLockHandles(char* szFileOrFolderName, bool NameIsFolder, bool NameIsTranslated);
|
|
__declspec(dllimport) bool __stdcall HandlerCloseAllLockHandlesW(wchar_t* szFileOrFolderName, bool NameIsFolder, bool NameIsTranslated);
|
|
__declspec(dllimport) bool __stdcall HandlerIsFileLocked(char* szFileOrFolderName, bool NameIsFolder, bool NameIsTranslated);
|
|
__declspec(dllimport) bool __stdcall HandlerIsFileLockedW(wchar_t* szFileOrFolderName, bool NameIsFolder, bool NameIsTranslated);
|
|
// TitanEngine.Handler[Mutex].functions:
|
|
__declspec(dllimport) long __stdcall HandlerEnumerateOpenMutexes(HANDLE hProcess, DWORD ProcessId, LPVOID HandleBuffer, DWORD MaxHandleCount);
|
|
__declspec(dllimport) long long __stdcall HandlerGetOpenMutexHandle(HANDLE hProcess, DWORD ProcessId, char* szMutexString);
|
|
__declspec(dllimport) long long __stdcall HandlerGetOpenMutexHandleW(HANDLE hProcess, DWORD ProcessId, wchar_t* szMutexString);
|
|
__declspec(dllimport) long __stdcall HandlerGetProcessIdWhichCreatedMutex(char* szMutexString);
|
|
__declspec(dllimport) long __stdcall HandlerGetProcessIdWhichCreatedMutexW(wchar_t* szMutexString);
|
|
// TitanEngine.Injector.functions:
|
|
__declspec(dllimport) bool __stdcall RemoteLoadLibrary(HANDLE hProcess, char* szLibraryFile, bool WaitForThreadExit);
|
|
__declspec(dllimport) bool __stdcall RemoteLoadLibraryW(HANDLE hProcess, wchar_t* szLibraryFile, bool WaitForThreadExit);
|
|
__declspec(dllimport) bool __stdcall RemoteFreeLibrary(HANDLE hProcess, HMODULE hModule, char* szLibraryFile, bool WaitForThreadExit);
|
|
__declspec(dllimport) bool __stdcall RemoteFreeLibraryW(HANDLE hProcess, HMODULE hModule, wchar_t* szLibraryFile, bool WaitForThreadExit);
|
|
__declspec(dllimport) bool __stdcall RemoteExitProcess(HANDLE hProcess, DWORD ExitCode);
|
|
// TitanEngine.StaticUnpacker.functions:
|
|
__declspec(dllimport) bool __stdcall StaticFileLoad(char* szFileName, DWORD DesiredAccess, bool SimulateLoad, LPHANDLE FileHandle, LPDWORD LoadedSize, LPHANDLE FileMap, PULONG_PTR FileMapVA);
|
|
__declspec(dllimport) bool __stdcall StaticFileLoadW(wchar_t* szFileName, DWORD DesiredAccess, bool SimulateLoad, LPHANDLE FileHandle, LPDWORD LoadedSize, LPHANDLE FileMap, PULONG_PTR FileMapVA);
|
|
__declspec(dllimport) bool __stdcall StaticFileUnload(char* szFileName, bool CommitChanges, HANDLE FileHandle, DWORD LoadedSize, HANDLE FileMap, ULONG_PTR FileMapVA);
|
|
__declspec(dllimport) bool __stdcall StaticFileUnloadW(wchar_t* szFileName, bool CommitChanges, HANDLE FileHandle, DWORD LoadedSize, HANDLE FileMap, ULONG_PTR FileMapVA);
|
|
__declspec(dllimport) bool __stdcall StaticFileOpen(char* szFileName, DWORD DesiredAccess, LPHANDLE FileHandle, LPDWORD FileSizeLow, LPDWORD FileSizeHigh);
|
|
__declspec(dllimport) bool __stdcall StaticFileOpenW(wchar_t* szFileName, DWORD DesiredAccess, LPHANDLE FileHandle, LPDWORD FileSizeLow, LPDWORD FileSizeHigh);
|
|
__declspec(dllimport) bool __stdcall StaticFileGetContent(HANDLE FileHandle, DWORD FilePositionLow, LPDWORD FilePositionHigh, void* Buffer, DWORD Size);
|
|
__declspec(dllimport) void __stdcall StaticFileClose(HANDLE FileHandle);
|
|
__declspec(dllimport) void __stdcall StaticMemoryDecrypt(LPVOID MemoryStart, DWORD MemorySize, DWORD DecryptionType, DWORD DecryptionKeySize, ULONG_PTR DecryptionKey);
|
|
__declspec(dllimport) void __stdcall StaticMemoryDecryptEx(LPVOID MemoryStart, DWORD MemorySize, DWORD DecryptionKeySize, void* DecryptionCallBack);
|
|
__declspec(dllimport) void __stdcall StaticMemoryDecryptSpecial(LPVOID MemoryStart, DWORD MemorySize, DWORD DecryptionKeySize, DWORD SpecDecryptionType, void* DecryptionCallBack);
|
|
__declspec(dllimport) void __stdcall StaticSectionDecrypt(ULONG_PTR FileMapVA, DWORD SectionNumber, bool SimulateLoad, DWORD DecryptionType, DWORD DecryptionKeySize, ULONG_PTR DecryptionKey);
|
|
__declspec(dllimport) bool __stdcall StaticMemoryDecompress(void* Source, DWORD SourceSize, void* Destination, DWORD DestinationSize, int Algorithm);
|
|
__declspec(dllimport) bool __stdcall StaticRawMemoryCopy(HANDLE hFile, ULONG_PTR FileMapVA, ULONG_PTR VitualAddressToCopy, DWORD Size, bool AddressIsRVA, char* szDumpFileName);
|
|
__declspec(dllimport) bool __stdcall StaticRawMemoryCopyW(HANDLE hFile, ULONG_PTR FileMapVA, ULONG_PTR VitualAddressToCopy, DWORD Size, bool AddressIsRVA, wchar_t* szDumpFileName);
|
|
__declspec(dllimport) bool __stdcall StaticHashMemory(void* MemoryToHash, DWORD SizeOfMemory, void* HashDigest, bool OutputString, int Algorithm);
|
|
__declspec(dllimport) bool __stdcall StaticHashFile(char* szFileName, char* HashDigest, bool OutputString, int Algorithm);
|
|
__declspec(dllimport) bool __stdcall StaticHashFileW(wchar_t* szFileName, char* HashDigest, bool OutputString, int Algorithm);
|
|
// TitanEngine.Engine.functions:
|
|
__declspec(dllimport) void __stdcall SetEngineVariable(DWORD VariableId, bool VariableSet);
|
|
__declspec(dllimport) bool __stdcall EngineCreateMissingDependencies(char* szFileName, char* szOutputFolder, bool LogCreatedFiles);
|
|
__declspec(dllimport) bool __stdcall EngineCreateMissingDependenciesW(wchar_t* szFileName, wchar_t* szOutputFolder, bool LogCreatedFiles);
|
|
__declspec(dllimport) bool __stdcall EngineFakeMissingDependencies(HANDLE hProcess);
|
|
__declspec(dllimport) bool __stdcall EngineDeleteCreatedDependencies();
|
|
__declspec(dllimport) bool __stdcall EngineCreateUnpackerWindow(char* WindowUnpackerTitle, char* WindowUnpackerLongTitle, char* WindowUnpackerName, char* WindowUnpackerAuthor, void* StartUnpackingCallBack);
|
|
__declspec(dllimport) void __stdcall EngineAddUnpackerWindowLogMessage(char* szLogMessage);
|
|
// Global.Engine.Extension.Functions:
|
|
__declspec(dllimport) bool __stdcall ExtensionManagerIsPluginLoaded(char* szPluginName);
|
|
__declspec(dllimport) bool __stdcall ExtensionManagerIsPluginEnabled(char* szPluginName);
|
|
__declspec(dllimport) bool __stdcall ExtensionManagerDisableAllPlugins();
|
|
__declspec(dllimport) bool __stdcall ExtensionManagerDisablePlugin(char* szPluginName);
|
|
__declspec(dllimport) bool __stdcall ExtensionManagerEnableAllPlugins();
|
|
__declspec(dllimport) bool __stdcall ExtensionManagerEnablePlugin(char* szPluginName);
|
|
__declspec(dllimport) bool __stdcall ExtensionManagerUnloadAllPlugins();
|
|
__declspec(dllimport) bool __stdcall ExtensionManagerUnloadPlugin(char* szPluginName);
|
|
__declspec(dllimport) void* __stdcall ExtensionManagerGetPluginInfo(char* szPluginName);
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif /*__cplusplus*/
|
|
|
|
#pragma pack(pop)
|
|
|
|
#endif /*TITANENGINE*/
|