[SOLVED] blocked zlib in QuickBMS

Programming related discussions related to game research
AlphaTwentyThree
Posts: 909
Joined: Sat Aug 09, 2014 11:21 am

[SOLVED] blocked zlib in QuickBMS

Post by AlphaTwentyThree »

Hey folks,

can somebody write a little script to decompress blocked zlib? Don't know if this is the actual name but I've attached a sample file.
Thanks!
Last edited by AlphaTwentyThree on Tue Jun 14, 2022 7:50 am, edited 1 time in total.
spiritovod
Posts: 719
Joined: Sat Sep 28, 2019 7:00 pm

Re: blocked zlib in QuickBMS

Post by spiritovod »

Not sure if it's supposed to be single file, but:

Code: Select all

idstring "zlib"
comtype unzip_dynamic

get NAME basename
string NAME + ".decompressed"
log NAME 0 0
append
savepos OFFSET
get FSIZE asize
for OFFSET = OFFSET < FSIZE
   get SIZE long
   savepos OFFSET
   clog NAME OFFSET SIZE SIZE
   math OFFSET + SIZE
   goto OFFSET
next
AlphaTwentyThree
Posts: 909
Joined: Sat Aug 09, 2014 11:21 am

Re: blocked zlib in QuickBMS

Post by AlphaTwentyThree »

Perfect, thanks! :)
Wrote a script for Astonishia Story 2 (PSP) if you're interested (viewtopic.php?f=17&t=7982&p=72012#p72012).