Important information: this site is currently scheduled to go offline indefinitely by end of the year.

Help to decrompress .pak archive mystery mountains

The Original Forum. Game archives, full of resources. How to open them? Get help here.
Post Reply
danny
beginner
Posts: 22
Joined: Mon Apr 11, 2011 11:16 am

Help to decrompress .pak archive mystery mountains

Post by danny »

Hi friends, i need help with the decompress the file xml.pak
the game is Mystery stories mountains of madness
the file

http://www.mediafire.com/?asxus8j56cws66i
Marry
ultra-n00b
Posts: 9
Joined: Tue Jan 25, 2011 12:30 pm
Has thanked: 1 time

Re: Help to decrompress .pak archive mystery mountains

Post by Marry »

The contents of this post was deleted because of possible forum rules violation.
User avatar
aluigi
VVIP member
VVIP member
Posts: 1916
Joined: Thu Dec 08, 2005 12:26 pm
Location: www.ZENHAX.com
Has thanked: 4 times
Been thanked: 664 times
Contact:

Re: Help to decrompress .pak archive mystery mountains

Post by aluigi »

job done, it was a simple encryption scheme:

Code: Select all

# Mystery Stories: Mountains of Madness
# script for QuickBMS http://quickbms.aluigi.org

idstring "gfcpk"
get VER byte
getdstring KEY 4
get DUMMY long

get SIZE asize
log MEMORY_FILE 0 SIZE

print "wait some seconds/minutes for the decryption..."
savepos OFFSET
for i = OFFSET < SIZE
    getvarchr T MEMORY_FILE i
    math C = i
    math X = i
    math X &= 3
    getvarchr X KEY X
    math C ^= X
    math T ^= C
    putvarchr MEMORY_FILE i T
next i

print "extraction..."
goto OFFSET MEMORY_FILE
get FILES long MEMORY_FILE
for i = 0 < FILES
    get NAMESZ long MEMORY_FILE
    getdstring NAME NAMESZ MEMORY_FILE
    get ZIP long MEMORY_FILE
    get SIZE long MEMORY_FILE
    get OFFSET long MEMORY_FILE
    get ZSIZE long MEMORY_FILE
    if ZIP == 0
        log NAME OFFSET SIZE MEMORY_FILE
    else
        clog NAME OFFSET ZSIZE SIZE MEMORY_FILE
    endif
next i
Marry
ultra-n00b
Posts: 9
Joined: Tue Jan 25, 2011 12:30 pm
Has thanked: 1 time

Re: Help to decrompress .pak archive mystery mountains

Post by Marry »

Thank you very much, Luigi :up:
Post Reply