Gundam Breaker 2 (PS3) (*.PCK)

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

Gundam Breaker 2 (PS3) (*.PCK)

Post by Ekey »

Some files are duplicated and i temporary added hash (maybe it's hash of file extension) at the end of file name :)

Code: Select all

# Gundam Breaker 2 (PS3) (PCK format)
#
# Written by Ekey (h4x0r)
#
# script for QuickBMS http://quickbms.aluigi.org

endian BIG
idstring "\x00cap"

goto 0x80
get FILES long
get DUMMY long #?

set OFFSET long FILES
math OFFSET *= 264
math OFFSET += 264

for i = 0 < FILES
    getdstring NAME 256
    get HASH long
    get DZSIZE long
    savepos TEMP
   
    goto OFFSET
      idstring "BILZ"
      get SIZE long
      get ZSIZE long
      get FLAG long #7 ?
      savepos DOFFSET
     
      string NEWNAME p= "%s_%08X" NAME HASH
      clog NEWNAME DOFFSET ZSIZE SIZE
   
    math OFFSET += DZSIZE
    goto TEMP
next i