GunZ the Duel (PC) - *.mrs

Extraction and unpacking of game archives and compression, encryption, obfuscation, decoding of unknown files
AnonBaiter
Posts: 1125
Joined: Tue Feb 02, 2016 2:35 am

GunZ the Duel (PC) - *.mrs

Post by AnonBaiter »

aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: GunZ the Duel (PC) - *.mrs

Post by aluigi »

It looks like the obfuscation algorithm or the lookup table have been changed
https://forum.xentax.com/viewtopic.php?p=41566#p41566
https://forum.xentax.com/viewtopic.php?f=21&t=5899

I made even a test script on the fly to be sure that wasn't a bug and the result is wrong:

Code: Select all

quickbmsver "0.8.0"
set MEMORY_FILE10 binary "

    void msf_decrypt(unsigned char *data, int FileSize, unsigned char *table) {
        unsigned int    EAX, EBX;
        unsigned char   AL, CL;

        EAX = FileSize -1;

        while(EAX)
        {
          CL = data[EAX -1];
          CL >>= 1;
          EBX = EAX & 0xFFFF;
          CL ^= table[EBX];
          data[EAX] ^= CL;
          EAX--;
        }

        AL = data[FileSize -1];
        AL >>= 1;
        AL ^= table[0];
        AL ^= data[0]; // AL is now 0x00
        data[0] = AL;
    }
"

set TABLE compressed "eNrEXMMaKMwOO+c/tm3btm3btm3btm3btm3b9r1ZdJNNF130DaZpZ742yXTWoOibkqdfdal4+VP1fz3qvjRPkr1Rxk4N0+Xt1zZH6xS5W/raucr/Gvd+Ni9w7GGpt63L/LJDi481Dt4skGPhzgQjI4SYmGbr2ixzg8QZ+rdJn6dlrp6tMip88EnZF+2KX/3Qrfyv2jf/1ODnwx4XS1Q4uTFFhpUBZw6Mcax24Xud331rHXnctNDLcifeV/PAjYIvOrb8MCJiyAk5F+xI+LtZv8flLp+ulm7z6myzg8UbHHXMlLBL8ibdc6Ru0Ttd33xpuz5VpuWBpveP1ej7/V7nS1U63u3153aH6xW7vThfst3RRk8Od6FkxRMNfzzo+d+MATE3pMy4Itf87YmGRwo1/nmnVu9r7b9eaE7QuEPSblmTteyVM1X/NO37BGfC2XBGnBVnwtl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/ctW/7S3/8rbf+btv/L2n3n7L739p97+S2//qbf/ytt/5u2/8vafefsvvf2n3v5Lb/+p9/8r7/9n3v+vvP+fef+/9P5/6v3/0vv/qff/K+//Z97/r7z/n3n/v/T+f+r9/9L7/6n3/hXv/TPe+1e8989471/y3j/lvX/Je/+U9/4V7/0z3vtXvPfPeO9f8t4/5b1/yXv/lPf+Ve/9s977V733z3rvX/beP+29f9l7/7T3/lXv/bPe+1e9989671/23j/tvX/Ze/+0t//K23/m7b/y9p95+y+9/afe/ktv/6m3/8rbf+btv/L2n3n7L739p97+S2//qff/K+//Z97/r7z/n3n/v/T+f+r9/9L7/6n3/yvv/2fe/6+8/595/7/0/n/6v2LuQAAAAABA0P7UYwRS2l9qf6r/Ff3P6H9F/zP6X9L/lP6X9D+l/xX9z+h/Rf8z+l/S/5T+l/Q/pf9V/c/qf1X/s/pf1v+0/pf1P63/Vf3P6n9V/7P6X9b/tP6X9T/dw0SHcg=="

get SIZE asize
log MEMORY_FILE 0 SIZE
calldll MEMORY_FILE10 "msf_decrypt" "tcc" RET MEMORY_FILE SIZE TABLE
get NAME basename
string NAME + ".zip"
log NAME 0 SIZE MEMORY_FILE
AnonBaiter
Posts: 1125
Joined: Tue Feb 02, 2016 2:35 am

Re: GunZ the Duel (PC) - *.mrs

Post by AnonBaiter »

The output is garbled.

Do you want me to upload the rest of the files that aren't .mrs files at all? Perhaps there is a hint as to how the files were encrypted in some way.
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: GunZ the Duel (PC) - *.mrs

Post by aluigi »

I think the best way is someone working with the whole game and a debugger :)
AnonBaiter
Posts: 1125
Joined: Tue Feb 02, 2016 2:35 am

Re: GunZ the Duel (PC) - *.mrs

Post by AnonBaiter »

I doubt I can run even that on my VM machine...