Lime Odyssey (*.REF)

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

Lime Odyssey (*.REF)

Post by Ekey »

REF's - normal ZIP but with encrypted table. Here here my simple snippet code for decrypt. Samples here

Code: 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 :)
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Lime Odyssey (*.REF)

Post by aluigi »

@ekey
excellent job as usual.

The following is the script:
http://aluigi.org/papers/bms/others/lime_odissey.bms
Ekey
Posts: 1383
Joined: Sat Aug 09, 2014 2:34 pm

Re: Lime Odyssey (*.REF)

Post by Ekey »

Good job! :P
CriticalError
Posts: 204
Joined: Thu Aug 14, 2014 8:52 pm

Re: Lime Odyssey (*.REF)

Post by CriticalError »

wow many thanks aluigi, this game use NIF file format?