Because I'll probably never need this again, I might as well demonstrate how exactly to generate key3 and key4 faster than coemu's gay slow method.
You'll actually have to have some knowledge of coding to be able to convert this to C# to use in your source (because most sources are in C#... I wonder why...:rolleyes:).
Note to disclaimer: This probably isn't the "fastest" method, but it's the fastest method I've developed.
You'll actually have to have some knowledge of coding to be able to convert this to C# to use in your source (because most sources are in C#... I wonder why...:rolleyes:).
Note to disclaimer: This probably isn't the "fastest" method, but it's the fastest method I've developed.
Code:
#define sqr(x) x * x
#define ptr(t, i, v) (((t*)v) + i)
void SetKeys(DWORD* inKey1, DWORD* inKey2)
{
DWORD dwKey1 = ((*inKey1 + *inKey2) ^ 0x4321) ^ *inKey1;
DWORD dwKey2 = sqr(*inKey1);
Key3 = new unsigned char[256];
Key4 = new unsigned char[256];
for (unsigned char i = 0; i < 64; i++)
{
*ptr(DWORD, i, Key3) = dwKey1 ^ *ptr(DWORD, i, Key1);
*ptr(DWORD, i, Key4) = dwKey2 ^ *ptr(DWORD, i, Key2);
}
}