最八仙online! help me ,unpack the data.mhp files!

Extraction and unpacking of game archives and compression, encryption, obfuscation, decoding of unknown files
wahaha
Posts: 26
Joined: Fri Mar 20, 2015 2:04 pm

最八仙online! help me ,unpack the data.mhp files!

Post by wahaha »

officie web:http://zbx.zqgame.com/
client link:http://down.zbx.zqgame.com/zbx_client_20130308.exe

because the data.mhp is so big,dont upload....sorry!
plz ,help me unpacked the data.mhp files. thanks everyone....!
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: 最八仙online! help me ,unpack the data.mhp files!

Post by aluigi »

No luck with data.mhp but I found an easy way to extract the xepack archives:

Code: Select all

get EXT extension
if EXT == "mhp"
    # INCOMPLETE!!!

    idstring "MHP\x1c"
    get DUMMY long
    get MHP_SIZE longlong
    get DUMMY long
    get DUMMY short
    get DUMMY_OFF longlong
    get INFO_OFF longlong
    get DUMMY long
    get FILES long

    # goto DUMMY_OFF
    # filexor 0xe5  # ???

    goto INFO_OFF
    filexor 0x1f
    for i = 0 < FILES
        get OFFSET longlong
        get ZSIZE long
        get SIZE long
        get DUMMY long

        # OFFSET doesn't match the size of data.mhp
        # The total ZSIZE is 0x20914aed that doesn't match OFFSET and the size of data.mhp
    next i

else

    idstring "XEPACK"
    goto 0x80030
    findloc OFFSET string "XEP "
    goto OFFSET
    getdstring DUMMY 4
    for
        findloc OFFSET string "XEP " 0 ""
        if OFFSET == ""
            break
        endif
        goto OFFSET

        idstring "XEP "
        get ZERO long
        getdstring TYPE 4
        getdstring DUMMY 0x1c
        get SIZE long
        savepos OFFSET
        string NAME p "%s/" TYPE
        log NAME OFFSET SIZE
        math OFFSET + SIZE
        goto OFFSET
    next

endif
wahaha
Posts: 26
Joined: Fri Mar 20, 2015 2:04 pm

Re: 最八仙online! help me ,unpack the data.mhp files!

Post by wahaha »

bro,dont upack the xepack...no function....plz refix.
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: 最八仙online! help me ,unpack the data.mhp files!

Post by aluigi »

When I tested it, it worked perfectly.
Now I no longer have the game so post the error you get.
wahaha
Posts: 26
Joined: Fri Mar 20, 2015 2:04 pm

Re: 最八仙online! help me ,unpack the data.mhp files!

Post by wahaha »

aluigi wrote:When I tested it, it worked perfectly.
Now I no longer have the game so post the error you get.

http://dumpt.com/img/files/5to927s9329h8v7kvjv8.png

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

Re: 最八仙online! help me ,unpack the data.mhp files!

Post by aluigi »

I see only a mini image.
Anyway it appears you are using a very old version of quickbms (there is a "2014" in the timestamp), so update it first:
http://quickbms.aluigi.org
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: 最八仙online! help me ,unpack the data.mhp files!

Post by aluigi »

Another reason why it gives you that result is that there are no XEP magics in the input file.
I don't know what files you are testing but those I checked worked perfectly and had the "XEP " magic.