Experienced Elementalist
- Joined
- May 12, 2014
- Messages
- 260
- Reaction score
- 61
I do not know what to say
You need VS2013 to compile
This code has edit to change the Encrypt code
dllmain.cpp
You need VS2013 to compile
This code has edit to change the Encrypt code
dllmain.cpp
Code:
const unsigned char XOR[16] ={0x57, 0x03, 0x7B, 0x04, 0x34, 0x06, 0x01,0x08, 0x37, 0x0A, 0x12, 0x69, 0x41, 0x38,0x0F, 0x74};
SRC > CML > MZIP.cpp
Code:
const unsigned char XOR[16] =
{
0x57, 0x02, 0x5B, 0x04, 0x34, 0x06, 0x01,
0x08, 0x37, 0x0A, 0x12, 0x69, 0x41, 0x38,
0x0F, 0x78
};
//
void RecoveryChar(char* pData, int _size)
{
if (!pData) return;
for (int i = 0; i < _size; i++)
{
BYTE x = pData[i];
for (int o = 0; o < 16; o++)
{
x = x ^ XOR[o % (sizeof(XOR) / sizeof(char))];
}
pData[i] = x;
}
}
void ConvertChar(char* pData, int _size)
{
if (!pData) return;
WORD w;
BYTE b, bh;
for (int i = 0; i<_size; i++) {
b = *pData ^ 0xFF;
w = b << 3;
bh = (w & 0xff00) >> 8;
b = w & 0xff;
*pData = BYTE(b | bh);
pData++;
}
}
You must be registered to see links
Last edited: