Hard Reset Redux (*.BIN)

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

Hard Reset Redux (*.BIN)

Post by Ekey »

Game: http://store.steampowered.com/app/407810/

Code: Select all

# Hard Reset Redux (BIN format)
# Written by Ekey (h4x0r)
#
# script for QuickBMS http://quickbms.aluigi.org

get FILES long

for i = 0 < FILES
   get NSIZE long
   getdstring NAME NSIZE
   get SIZE long
   get ZSIZE long
   get OFFSET longlong
   get DUMMY longlong
   putarray 0 i NAME
   putarray 1 i SIZE
   putarray 2 i ZSIZE
   putarray 3 i OFFSET
next i

savepos TEMP
math TEMP += 4
for i = 0 < FILES
    getarray NAME 0 i
    getarray SIZE 1 i
    getarray ZSIZE 2 i
    getarray OFFSET 3 i
    math OFFSET += TEMP
   
    if ZSIZE == SIZE
        log NAME OFFSET SIZE
    else
        clog NAME OFFSET ZSIZE SIZE
    endif
next i
Savage
Posts: 176
Joined: Thu Oct 02, 2014 4:58 pm

Re: Hard Reset Redux (*.BIN)

Post by Savage »

Thanks!! :D
prefect
Posts: 4
Joined: Sat Mar 12, 2016 8:58 pm

Re: Hard Reset Redux (*.BIN)

Post by prefect »

Just a little bugfix:

Code: Select all

# Hard Reset Redux (BIN format)
# Written by Ekey (h4x0r)
#
# script for QuickBMS http://quickbms.aluigi.org

get FILES long

for i = 0 < FILES
   get NSIZE long
   getdstring NAME NSIZE
   get SIZE long
   get ZSIZE long
   get OFFSET longlong
   get DUMMY longlong
   putarray 0 i NAME
   putarray 1 i SIZE
   putarray 2 i ZSIZE
   putarray 3 i OFFSET
next i

savepos TEMP
math TEMP += 4
for i = 0 < FILES
    getarray NAME 0 i
    getarray SIZE 1 i
    getarray ZSIZE 2 i
    getarray OFFSET 3 i
    math OFFSET += TEMP
    clog NAME OFFSET ZSIZE SIZE
next i


Works better without stream length check. We need to decompress zstream even in the rare case when zsize is the same as plain text length.
giangy64
Posts: 26
Joined: Thu Mar 03, 2016 2:43 pm

Re: Hard Reset Redux (*.BIN)

Post by giangy64 »

Does anyone have unpacked language files? ( English )