SWF lzma decompression

Extraction and unpacking of game archives and compression, encryption, obfuscation, decoding of unknown files
Chipicao
Posts: 9
Joined: Fri Aug 08, 2014 4:49 am

SWF lzma decompression

Post by Chipicao »

quickbms script for converting lzma compressed flash files.

Code: Select all

idstring "ZWS"
get VERSION byte
get SIZE long   #uncludes first 8 bytes; quickbms finds uncompressed size automatically
get ZSIZE long
math ZSIZE += 5
comtype lzma

log MEMORY_FILE 0 8
putvarchr MEMORY_FILE 0 0x46
append
clog MEMORY_FILE 12 ZSIZE SIZE
append

get NAME basename
string NAME += "_unpacked.swf"
log NAME 0 SIZE MEMORY_FILE