#include <windows.h>
int WINAPI DllEntryPoint(HINSTANCE hinst, unsigned long reason, void* lpReserved)
{
return 1;
}
extern "C" void __stdcall XP3ArchiveAttractFilter_v2(
unsigned __int32 hash,
unsigned __int64 offset, void * buffer, long bufferlen)
{
for (int index = 0; index < bufferlen; index++)
{
if (index == 0x13)
{
((unsigned char*)buffer)[index] ^= 1;
}
else if (index == 0x2ea29)
{
((unsigned char*)buffer)[index] ^= 3;
}
((unsigned char*)buffer)[index] ^= 0x36;
}
}
EXPORTS
XP3ArchiveAttractFilter_v2