mirror of https://github.com/x64dbg/TitanEngine
fixed getAddedDLLCount, getAddedAPICount to work with scylla
This commit is contained in:
parent
4bda97ecba
commit
22cc4da708
|
|
@ -16,6 +16,8 @@ bool scylla_importsValid();
|
||||||
bool scylla_cutImport(DWORD_PTR apiAddr);
|
bool scylla_cutImport(DWORD_PTR apiAddr);
|
||||||
int scylla_fixDump(WCHAR* dumpFile, WCHAR* iatFixFile, WCHAR* sectionName = L".scy");
|
int scylla_fixDump(WCHAR* dumpFile, WCHAR* iatFixFile, WCHAR* sectionName = L".scy");
|
||||||
int scylla_fixMappedDump(DWORD_PTR iatVA, DWORD_PTR FileMapVA, HANDLE hFileMap);
|
int scylla_fixMappedDump(DWORD_PTR iatVA, DWORD_PTR FileMapVA, HANDLE hFileMap);
|
||||||
|
int scylla_getModuleCount();
|
||||||
|
int scylla_getImportCount();
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
}
|
}
|
||||||
#endif /*__cplusplus*/
|
#endif /*__cplusplus*/
|
||||||
|
|
|
||||||
|
|
@ -18676,32 +18676,11 @@ __declspec(dllexport) void TITCALL ImporterAddNewOrdinalAPI(ULONG_PTR OrdinalNum
|
||||||
}
|
}
|
||||||
__declspec(dllexport) long TITCALL ImporterGetAddedDllCount()
|
__declspec(dllexport) long TITCALL ImporterGetAddedDllCount()
|
||||||
{
|
{
|
||||||
//TODO scylla enable
|
return scylla_getModuleCount();
|
||||||
return 0;
|
|
||||||
/*
|
|
||||||
return(impDLLNumber + 1);
|
|
||||||
*/
|
|
||||||
}
|
}
|
||||||
__declspec(dllexport) long TITCALL ImporterGetAddedAPICount()
|
__declspec(dllexport) long TITCALL ImporterGetAddedAPICount()
|
||||||
{
|
{
|
||||||
//TODO scylla enable
|
return scylla_getImportCount();
|
||||||
return 0;
|
|
||||||
/*
|
|
||||||
int i = 0;
|
|
||||||
int CopyDummy = NULL;
|
|
||||||
DWORD DLLNumber = NULL;
|
|
||||||
long APINumber = NULL;
|
|
||||||
|
|
||||||
DLLNumber = impDLLNumber + 1;
|
|
||||||
while(DLLNumber > NULL)
|
|
||||||
{
|
|
||||||
RtlMoveMemory(&CopyDummy, (LPVOID)(impDLLDataList[i][0] + 2 * sizeof ULONG_PTR), 4);
|
|
||||||
APINumber = APINumber + CopyDummy - 1;
|
|
||||||
DLLNumber--;
|
|
||||||
i++;
|
|
||||||
}
|
|
||||||
return(APINumber);
|
|
||||||
*/
|
|
||||||
}
|
}
|
||||||
__declspec(dllexport) void* TITCALL ImporterGetLastAddedDLLName()
|
__declspec(dllexport) void* TITCALL ImporterGetLastAddedDLLName()
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
|
@ -17,8 +17,6 @@ AddNewDLL
|
||||||
AddNewAPI
|
AddNewAPI
|
||||||
AddNewOrdinal
|
AddNewOrdinal
|
||||||
GetLastAddedDLLName
|
GetLastAddedDLLName
|
||||||
GetAddedDllCount
|
|
||||||
GetAddedAPICount
|
|
||||||
EnumAddedData //useful for investigating complete iat moduleList
|
EnumAddedData //useful for investigating complete iat moduleList
|
||||||
EstimatedSize
|
EstimatedSize
|
||||||
GetDLLIndexEx
|
GetDLLIndexEx
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue