nesrak1 / UABEA

c# uabe for newer versions of unity
MIT License
1.1k stars 143 forks source link

New addressables uses hash in header #204

Closed ppng222 closed 1 year ago

ppng222 commented 1 year ago

I was trying to extract files from the Switch version of Just Dance 2023 when I noticed the game uses addressables with a hash for the first 32 bytes. The program can't load these unless I replace the hash with a new header, maybe there is a way to bypass this header or reverse engineer it?

image image
nesrak1 commented 1 year ago

Most likely the game encrypted or randomized the first 32 bytes as a simple protection to prevent opening it with tools. The good news is that bundles should have the same first 32 bytes since it's mainly just the engine version the game uses. Even better, I happen to have a game using 2021.3.9f1 exactly like your screenshot shows and it should be just this:

image

So you could just overwrite the first 32 bytes with that probably. Anything else that might not work because of a custom engine is not something I'll support.