fixed getAddedDLLCount, getAddedAPICount to work with scylla

This commit is contained in:
cypherpunk 2014-01-19 00:05:36 +01:00
parent 4bda97ecba
commit 22cc4da708
7 changed files with 4 additions and 25 deletions

View File

@ -16,6 +16,8 @@ bool scylla_importsValid();
bool scylla_cutImport(DWORD_PTR apiAddr);
int scylla_fixDump(WCHAR* dumpFile, WCHAR* iatFixFile, WCHAR* sectionName = L".scy");
int scylla_fixMappedDump(DWORD_PTR iatVA, DWORD_PTR FileMapVA, HANDLE hFileMap);
int scylla_getModuleCount();
int scylla_getImportCount();
#ifdef __cplusplus
}
#endif /*__cplusplus*/

View File

@ -18676,32 +18676,11 @@ __declspec(dllexport) void TITCALL ImporterAddNewOrdinalAPI(ULONG_PTR OrdinalNum
}
__declspec(dllexport) long TITCALL ImporterGetAddedDllCount()
{
//TODO scylla enable
return 0;
/*
return(impDLLNumber + 1);
*/
return scylla_getModuleCount();
}
__declspec(dllexport) long TITCALL ImporterGetAddedAPICount()
{
//TODO scylla enable
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);
*/
return scylla_getImportCount();
}
__declspec(dllexport) void* TITCALL ImporterGetLastAddedDLLName()
{

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -17,8 +17,6 @@ AddNewDLL
AddNewAPI
AddNewOrdinal
GetLastAddedDLLName
GetAddedDllCount
GetAddedAPICount
EnumAddedData //useful for investigating complete iat moduleList
EstimatedSize
GetDLLIndexEx