Angry Birds (Windows Phone) .lua

Extraction and unpacking of game archives and compression, encryption, obfuscation, decoding of unknown files
gamelandresearch
Posts: 13
Joined: Sun Feb 09, 2020 11:35 am

Angry Birds (Windows Phone) .lua

Post by gamelandresearch »

Code: Select all

# Angry Birds Windows Phone decrypter
# script for QuickBMS http://quickbms.aluigi.org

get NAME basename
get EXT extension
strlen NAMESZ NAME
strlen EXTSZ EXT

comtype base64
get SIZE asize
clog MEMORY_FILE 0 SIZE SIZE

if NAME == "highscores"
    set SECRET binary "%pT-5#;g"
    set SALT   binary ",e'=5{Sm"
elif NAME == "settings"
    set SECRET binary "!i6G:-#g"
    set SALT   binary ".4>)9n=T"
else
    set SECRET binary "?:a/+6'N"
    set SALT   binary ":4>)9a/{"
endif

encryption PKCS5_PBKDF2_HMAC_sha1 SECRET SALT 1000

log MEMORY_FILE2 0 0
putdstring QUICKBMS_HASH 64 MEMORY_FILE2
goto 0 MEMORY_FILE2
getdstring KEY 32 MEMORY_FILE2
getdstring IV 16 MEMORY_FILE2

encryption "CipherFinal aes-256-cbc" KEY IV 0 32
math OFFSET = 0
get SIZE asize MEMORY_FILE
math SIZE - OFFSET

get NAME basename
get EXT extension
string NAME + "_decrypt."
string NAME + EXT
log NAME OFFSET SIZE MEMORY_FILE


This only Xbox version