View Single Post
  #2  
Old 20-02-2024, 10:00
Masquerade Masquerade is offline
Registered User
 
Join Date: Jan 2020
Location: Monte d'Or
Posts: 1,217
Thanks: 294
Thanked 1,404 Times in 637 Posts
Masquerade is on a distinguished road
ANONYMOUS;CODE bin Decrypt+Repack

The archives for ANONYMOUS;CODE are encrypted+compressed. The first 3 bytes are mdf.

The archives are a combination of .bin and .psb.m files.

sound_body.bin and voice_en_body.bin are not encrypted or compressed.

Step one is finding the key in the executable file. This is easy since the key is stored in plaintext (idiot gamedevs).

Search for ".bin" and search until you see the key:



The key for ANONYMOUS;CODE is:
Code:
5fWhAHt4zVn2X
Second step is to download Freemote:
https://github.com/UlyssesWu/FreeMote/releases/latest

You can unpack the archive using this command:

Code:
PsbDecompile info-psb -k 5fWhAHt4zVn2X <.psb.m file>
You can repack the archive from the unpacked data using this command:

Code:
PsBuild info-pdb <.psb.m.json file>
Repackaged files are CRC correct to original archives so no need to use HDiffZ or XDelta to patch any bytes (probably wouldn't work anyway due to encryption).
Reply With Quote
The Following 4 Users Say Thank You to Masquerade For This Useful Post:
L0v3craft (23-02-2024), ozerune (20-02-2024), ScOOt3r (20-02-2024), Titeuf (20-02-2024)