Way of the Samurai 2 [PS2]: working out obfuscation algorithm by comparing obfuscated file with deobfuscated file

Extraction and unpacking of game archives and compression, encryption, obfuscation, decoding of unknown files
Samdou
Posts: 16
Joined: Mon Jul 19, 2021 12:48 am

Way of the Samurai 2 [PS2]: working out obfuscation algorithm by comparing obfuscated file with deobfuscated file

Post by Samdou »

Is it possible to work out the obfuscation algorithm by comparing the obfuscated version of a file with the deobfuscated version of the same file?

The obfuscated version is from the Japanese version of Way of the Samurai 2 Special Edition/Samurai Dou 2 Kettouban [SLPM_742.09] for the PS2.
The deobfuscated version is from the Japanese version of Way of the Samurai 2 Portable/Samurai Dou 2 Po-taburu [ULJS-00217] for the PSP.

Both files are the same size, but the PS2 version isn't readable, whereas the PSP version is.

Obfuscated file from PS2 version.
https://www.solidfiles.com/v/DeN2YP4reZxpk

Deobfuscated file from PSP version.
https://www.solidfiles.com/v/nk3Q8Z25BNpRz
Last edited by Samdou on Fri Jul 30, 2021 1:35 pm, edited 2 times in total.
DKDave
Posts: 136
Joined: Mon Nov 23, 2020 6:01 pm

Re: Way of the Samurai 2 [PS2] Working out obfuscation algorithm by comparing obfuscated file with deobfuscated file

Post by DKDave »

Both files you've posted are identical ...
Samdou
Posts: 16
Joined: Mon Jul 19, 2021 12:48 am

Re: Way of the Samurai 2 [PS2]: working out obfuscation algorithm by comparing obfuscated file with deobfuscated file

Post by Samdou »

Well spotted! Thanks for the heads up. I've replaced the second link with the correct file.