Bleach Brave Souls (.byte and .pb files)

Extraction and unpacking of game archives and compression, encryption, obfuscation, decoding of unknown files
xaesk
Posts: 1
Joined: Sun May 17, 2020 3:41 am

Bleach Brave Souls (.byte and .pb files)

Post by xaesk »

I'm trying to extract models from the Unity mobile game, Bleach: Brave Souls.

This is the type of game that only has basic set up files in its APK and downloads everything else after you run the game for the first time, so the models aren't located in the initial APK and are instead in a 2 gb folder titled "rmfs". The .byte files are the models and the .pb files are 2D resources. I've done a ton of scouring on the Internet but I can't find out how to decrypt these files. I've tried opening them up in a hex editor, but the headers are usually either the company's name "KLab" or illegible. I'm not very experienced at this and have no idea where to go from here. Does anyone have any suggestions?

Here's a sample of some of the .byte files if that helps: https://drive.google.com/drive/folders/1fk2ywEnlsfS0yu_OsPHPKz-_kdLc3q0F?usp=sharing

Thanks!
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Bleach Brave Souls (.byte and .pb files)

Post by aluigi »

It looked like gzip using deflate but there is probably something custom.
This is the work-in-progress script I tried to write (and that obviously doesn't work):

Code: Select all

comtype gzip
idstring "KLab"
get FLAGS long
get SIZE long
getdstring SIGN 4   # "\0RSF"
savepos OFFSET
get ZSIZE asize
math ZSIZE - OFFSET
get NAME basename
clog NAME OFFSET ZSIZE SIZE