Prefabs textures problem [UnityFS]

Extraction and unpacking of game archives and compression, encryption, obfuscation, decoding of unknown files
KusanagiRuiz
Posts: 23
Joined: Sun Dec 09, 2018 2:18 am

Prefabs textures problem [UnityFS]

Post by KusanagiRuiz »

Hi everyone, I have a problem at the moment when I open some files in Unity Asset Bundle Extractor.

There are two versions of the Game from which I want to open the files, Global and Japanese.

When I open these files of the global version I can see the images that it hides:

Image

But when I open Japanese File I can't view the content:

Image

Is there a way for decrypt?

Files.zip
Acewell
Posts: 706
Joined: Fri Aug 08, 2014 1:06 am

Re: Prefabs textures problem

Post by Acewell »

your Japanese sample has 2 UnityFS files which current tools won't detect.
you can split it by hand using a hex editor though. :D
copy the first 1334 bytes to new file and open with AssetStudio.
delete those same bytes from sample and save it then open that file with AssetStudio. :D
KusanagiRuiz
Posts: 23
Joined: Sun Dec 09, 2018 2:18 am

Re: Prefabs textures problem

Post by KusanagiRuiz »

Acewell wrote:your Japanese sample has 2 UnityFS files which current tools won't detect.
you can split it by hand using a hex editor though. :D
copy the first 1334 bytes to new file and open with AssetStudio.
delete those same bytes from sample and save it then open that file with AssetStudio. :D


I will try! :D
KusanagiRuiz
Posts: 23
Joined: Sun Dec 09, 2018 2:18 am

Re: Prefabs textures problem

Post by KusanagiRuiz »

I tried what you told me, it worked, even for some files that have the same structure but obviously the number of bytes changes, there will be a script that deletes that first part until it detects the second "UnityFS '"
Acewell
Posts: 706
Joined: Fri Aug 08, 2014 1:06 am

Re: Prefabs textures problem

Post by Acewell »

yeah here is a bms script to automate splitting the files for you: :D

Code: Select all

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

endian big
get FSIZE asize
get FOLDER basename
string FOLDER > 2
print "%FOLDER% :name"
idstring "UnityFS"
goto 0x0
savepos OFFSET
math i = 1
do
    goto 0x1e 0 seek_cur
    get SIZE long
    string NAME p "%s\%s" FOLDER i
    log NAME OFFSET SIZE
    math OFFSET + SIZE
    goto OFFSET
    math i + 1
while OFFSET < FSIZE
KusanagiRuiz
Posts: 23
Joined: Sun Dec 09, 2018 2:18 am

Re: Prefabs textures problem

Post by KusanagiRuiz »

Acewell wrote:yeah here is a bms script to automate splitting the files for you: :D

Code: Select all

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

endian big
get FSIZE asize
get FOLDER basename
string FOLDER > 2
print "%FOLDER% :name"
idstring "UnityFS"
goto 0x0
savepos OFFSET
math i = 1
do
    goto 0x1e 0 seek_cur
    get SIZE long
    string NAME p "%s\%s" FOLDER i
    log NAME OFFSET SIZE
    math OFFSET + SIZE
    goto OFFSET
    math i + 1
while OFFSET < FSIZE


Thanks :D