IATReferenceScan::directImportLog.log(L"%04d AddrVA "PRINTF_DWORD_PTR_FULLL" Type %s Value "PRINTF_DWORD_PTR_FULLL" IatRefPointer "PRINTF_DWORD_PTR_FULLL" Api %s %S",count,ref->addressVA,type,ref->targetAddressInIat,ref->targetPointer,apiInfo->module->getFilename(),apiInfo->name);
patchBytes=newIatAddressPointer;//dont forget relocation here
directImportLog.log(L"Relocation direct imports fix: Base RVA %08X Offset %04X Type IMAGE_REL_BASED_HIGHLOW",(directImportsJumpTableRVA+2)&0xFFFFF000,(directImportsJumpTableRVA+2)&0x00000FFF);
Scylla::debugLog.log(L"Error - Cannot fix direct import reference RVA: %X",sectionRVA+patchOffset);
}
else
{
memory+=patchOffset+patchPreFixBytes;
if(generateReloc)
{
directImportLog.log(L"Relocation direct imports fix: Base RVA %08X Offset %04X Type IMAGE_REL_BASED_HIGHLOW",(sectionRVA+patchOffset+patchPreFixBytes)&0xFFFFF000,(sectionRVA+patchOffset+patchPreFixBytes)&0x00000FFF);
Scylla::debugLog.log(L"Error - Cannot fix direct import reference RVA: %X",sectionRVA+patchOffset);
}
else
{
memory+=patchOffset+patchPreFixBytes;
if(generateReloc)
{
directImportLog.log(L"Relocation direct imports fix: Base RVA %08X Offset %04X Type IMAGE_REL_BASED_DIR64",(sectionRVA+patchOffset+patchPreFixBytes)&0xFFFFF000,(sectionRVA+patchOffset+patchPreFixBytes)&0x00000FFF);