Dead Rising 3 (*.BIG, *.TEX)

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

Dead Rising 3 (*.BIG, *.TEX)

Post by Ekey »

Code: Select all

# Dead Rising 3 (BIG format)
#
# Written by Ekey (h4x0r)
#
# script for QuickBMS http://quickbms.aluigi.org

idstring "\x06\x05\x04\x03"
get HEADER_SIZE long
get ARCHIVE_SIZE long
get FILES long
get ENTRY_OFFSET long
goto ENTRY_OFFSET

for i = 0 < FILES
    get NAME_OFFSET long
    savepos TEMP
    goto NAME_OFFSET
    get NAME string
    goto TEMP
    get HASH long
    get ZSIZE long
    get SIZE long
    get OFFSET long
    get DUMMY long # 4
    get FLAG long # 0, 1 - Compressed (Encrypted??)
   
    if SIZE == ZSIZE
      log NAME OFFSET SIZE
    else
      # Unknown Compression or Encryption
      log NAME OFFSET ZSIZE
    endif
next i