I've been looking into the arma 2 for awhile now, And i keep on getting the annoying notification, From arma 2's Anti cheat "Battle Eye". And this is the Corrupted memory error, which comes up when you try to debug online. So i have made a bypass for this to solve that problem. Just run this before you use your code. Or start a new thread.
Code:
void BattleEyeBypass (void)
{
DWORD beServer = (DWORD)GetModuleHandle("BEServer.dll");
if ( beServer !=0 )
{
while(1)
{
CMemory::Edit((void*)(0x10004324),(PBYTE)"\xEB\x12",2);
CMemory::Edit((void*)(0x10004340),(PBYTE)"\xEB\x45",2);
CMemory::Edit((void*)(0x1000438E),(PBYTE)"\xEB\x07",2);
CMemory::Edit((void*)(0x10004399),(PBYTE)"\xEB\x2C",2);
Sleep(50);
}
}
}
[Auto Merged - 6:29:14 UTC]
EDIT: I have some more info, This is to completely disable the connection to here server.
THESE ARE IN BEClient.dll NOT BEServer.dll
1000118B |. 75 21 JNZ SHORT BEClient.100011AE
Patch to EB 21
10001198 |. 75 14 JNZ SHORT BEClient.100011AE
Patch to EB 14
10001135 |. 0F85 86000000 JNZ BEClient.100011C1
Patch to 90 90 90 90 90 90
10001114 |. 0F84 BA000000 JE BEClient.100011D4
Patch to 90 90 90 90 90 90
100010FA |. 0F84 E7000000 JE BEClient.100011E7
Patch to 90 90 90 90 90 90
10001289 |. 75 0D JNZ SHORT BEClient.10001298
Patch to EB 0D
10001266 |. 74 41 JE SHORT BEClient.100012A9
Patch to EB 41
10001249 |. 74 71 JE SHORT BEClient.100012BC
Patch to EB 71
1000131B |. 75 11 JNZ SHORT BEClient.1000132E
Patch to EB 11
I will write a full bypass tomorrow, It's late now, And i got school tomorrow. So after school i will write the new bypass and post it. And i', sure there 's a way to bypass with out all these patch's.