阿瓦尔OL - PDE

Extraction and unpacking of game archives and compression, encryption, obfuscation, decoding of unknown files
Starlinker
Posts: 6
Joined: Sat Aug 09, 2014 2:54 pm

阿瓦尔OL - PDE

Post by Starlinker »

Hi guys. Can some one help me unpack pde file?

http://www10.zippyshare.com/v/12376858/file.html

Thanks you! :)
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: 阿瓦尔OL - PDE

Post by aluigi »

I don't understand the full format of this archive.
The following is what I wrote and is both incomplete and wrong (it's full of lame work-arounds that don't work):

Code: Select all

get PDE_SIZE asize
math OFFSET = 0x1000
math SIZE = -1
set PATH string ""
set NAME string ""
callfunction EXTRACT

startfunction EXTRACT
    string PATH += NAME
    string PATH += /
    savepos RET_OFF
    goto OFFSET
    savepos BASE_OFF
    if SIZE < 0
        get LIMIT asize
    else
        xmath LIMIT "OFFSET + SIZE"
    endif
    do
        savepos TMP
        if TMP >= LIMIT
            math TYPE = 0
        else
            get TYPE byte
            getdstring NAME 0x6f
            get TSTAMP longlong
            get OFFSET long
            get SIZE long
            xmath OFFSET "(OFFSET * 0x1000) + 0x1000"
            xmath TMP "OFFSET + SIZE"
            if TMP u>= PDE_SIZE
                math TYPE = 0
            endif
            if TYPE == 1
                set FNAME string PATH
                string FNAME += NAME
                log FNAME OFFSET SIZE
            elif TYPE == 2
                callfunction EXTRACT
            else
                math TYPE = 0
            endif
        endif
    while TYPE != 0
    goto RET_OFF
endfunction
Ekey
Posts: 1383
Joined: Sat Aug 09, 2014 2:34 pm

Re: 阿瓦尔OL - PDE

Post by Ekey »

Strange format and data seems compressed. comtype scanner give no good results. I found some functions maybe help us.