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); 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*/

View File

@ -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.

View File

@ -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