Plants VS. Zombies Xbox 360 *.PAK

Extraction and unpacking of game archives and compression, encryption, obfuscation, decoding of unknown files
LolHacksRule
Posts: 865
Joined: Fri Apr 20, 2018 12:41 am

Plants VS. Zombies Xbox 360 *.PAK

Post by LolHacksRule »

The Xbox 360 version, appears to use the PopCap Framework, with a similar packing method to the PlayStation 3 version but the packing mechanism is different for some PAK files (added encryption?). Can someone crack them? zlib isn't used on them... Here's the file https://anonfiles.com/Xe1bD5l2p1/PVZ_X360_zip and the following threads below mentioned the similar format.

viewtopic.php?t=7147
viewtopic.php?t=13864
Last edited by LolHacksRule on Mon Nov 02, 2020 6:56 pm, edited 1 time in total.
LolHacksRule
Posts: 865
Joined: Fri Apr 20, 2018 12:41 am

Re: Plants VS. Zombies Xbox 360 *.PAK

Post by LolHacksRule »

LolHacksRule
Posts: 865
Joined: Fri Apr 20, 2018 12:41 am

Re: Plants VS. Zombies Xbox 360 *.PAK

Post by LolHacksRule »

UPDATE: Files are extracted with improper offsets when extracting with the specialbit bms script, same for this mod from Acewell... For example, AdventureTuning.xml is extracted with data from the previous file and not the complete file.

Code: Select all

# script for QuickBMS http://aluigi.altervista.org/quickbms.htm

get FOLDER basename
idstring "\xc0\x4a\xc0\xba"
get ZERO long
for i
    get FLAG byte
    if FLAG == 0x80
        break
    endif
    get NAME_SZ byte
    getdstring NAME NAME_SZ
    get SIZE long
    putarray 1 i NAME
    putarray 2 i SIZE
    get UNK longlong
next i
math FILES = i
for j = 0 < FILES
    get SKIP_BYTES byte
    math SKIP_BYTES + 1
    goto SKIP_BYTES 0 seek_cur
    savepos OFFSET
    getarray NAME 1 j
    getarray SIZE 2 j
    string NAME p= "%s\%s" FOLDER NAME
    log NAME OFFSET SIZE
    math OFFSET + SIZE
    goto OFFSET
next j


The 7x7m bms script (modified) dies when extracting.

Code: Select all

  offset   filesize   filename
--------------------------------------
  00000490 3909522275 compiled\particles\Award.xml.compiled

Error: impossible to write 0xe9069363 bytes (total 0xe9069363)
       Check your disk space or the script is wrong


Samples: https://anonfiles.com/T382f7m2pb/x360_PVZ_UNPACKED_zip
LolHacksRule
Posts: 865
Joined: Fri Apr 20, 2018 12:41 am

Re: Plants VS. Zombies Xbox 360 *.PAK

Post by LolHacksRule »

Bump to fix the script?
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Plants VS. Zombies Xbox 360 *.PAK

Post by aluigi »

LolHacksRule
Posts: 865
Joined: Fri Apr 20, 2018 12:41 am

Re: Plants VS. Zombies Xbox 360 *.PAK

Post by LolHacksRule »

Thank you so much, everything outputted perfectly.