190nm / rein-kuro

Tools for working with NieR Reincarnation.
13 stars 4 forks source link

Final Fantasy Ever Crisis #6

Open Asciicodeplus opened 1 month ago

Asciicodeplus commented 1 month ago

Looks like this game uses the same file system, it has a bunch of resources with 32 character names and an octocacheevai file, I tried to decrypt the files with this tool but I get the following error:

English

[Error] Key b'D`\x9f\x8cFc\x142J^s\xdc\xae\xc8nx'is incorrect. <<<

Japanese

[Error] Key b'\x9e\xfc\x98\x8c\xccI\x9aD\xbb\x14\xee\x92)\x988w'is incorrect. <<<

I guess the tool has a hardcoded key for each version of the Nier game, can you take a look at FF7EC? here are a few file samples:

https://mega.nz/folder/wD5xgDCI#KnXccKwoPVsMphZM5o7JWQ

09williamsad commented 1 month ago

Not the same system. See https://github.com/FF7-Ever-Crisis/Resources

190nm commented 1 month ago

Looks like this game uses the same file system, it has a bunch of resources with 32 character names and an octocacheevai file, I tried to decrypt the files with this tool but I get the following error:

English

[Error] Key b'D`\x9f\x8cFc\x142J^s\xdc\xae\xc8nx'is incorrect. <<<

Japanese

[Error] Key b'\x9e\xfc\x98\x8c\xccI\x9aD\xbb\x14\xee\x92)\x988w'is incorrect. <<<

I guess the tool has a hardcoded key for each version of the Nier game, can you take a look at FF7EC? here are a few file samples:

https://mega.nz/folder/wD5xgDCI#KnXccKwoPVsMphZM5o7JWQ

Yes that's correct, the tool did have a hard coded key specific to the game. If the project linked in the comment above me doesn't help you, here's what I remember about getting the key manually:

It was buried in the metadata of an unassuming png file included in the app. IIRC it was one of the low res app icons. An obfuscated function with a name like "GetImageSizeAndData" or so, was being called during decryption, and that's how I found where it was hidden.

Hope this helps