Extraction and unpacking of game archives and compression, encryption, obfuscation, decoding of unknown files
-
Ekey
- Posts: 1383
- Joined: Sat Aug 09, 2014 2:34 pm
Post
by Ekey »
REF's - normal ZIP but with encrypted table. Here here my simple snippet code for decrypt. Samples
hereCode: Select all
void pDecrypt(unsigned char* pBuffer, int dwSize)
{
DWORD dwSeed1 = 0x16B14;
DWORD dwSeed2 = 0;
do
{
dwSeed2 = 0xB1C8 * (dwSeed1 + (BYTE)*pBuffer);
*pBuffer ^= BYTE((dwSeed1 >> 8) & 0xFF);
++pBuffer;
--dwSize;
dwSeed1 = dwSeed2 + 0x11894;
}
while ( dwSize );
}
I'm too lazy for implementing into bms script
-
Ekey
- Posts: 1383
- Joined: Sat Aug 09, 2014 2:34 pm
Post
by Ekey »
Good job!
-
CriticalError
- Posts: 204
- Joined: Thu Aug 14, 2014 8:52 pm
Post
by CriticalError »
wow many thanks aluigi, this game use NIF file format?