Help us keep the site up! Got some change to spare? Why not donate a few bits and buy us a coffee. Image

Echo Of Soul .u file encryption

The Original Forum. Game archives, full of resources. How to open them? Get help here.
TheMathDoc
n00b
Posts: 10
Joined: Fri Sep 06, 2013 4:57 pm
Has thanked: 4 times
Been thanked: 1 time

Echo Of Soul .u file encryption

Post by TheMathDoc »

Echo Of Soul (http://www.aeriagames.com/playnow/eosus ... e_overview) recently hit open beta, and I've been tweaking some existing software to extract the game's unreal packages (and sound/movie files, but that's not relevant for this). I've been doing well until I hit the game's .u files - unreal script files. They seem to be encrypted, and it looks almost like simple XOR encryption using a key close to

0xCB, 0xAA, 0x07, 0xC4, 0x3C, 0xE4, 0xC5, 0x93

This key does transforms the unreal name table into something more comprehensible, however, it looks like the key itself changes as the bytes go by. For instance, the exact key above will decrypt the "None" name table entry, but then leaves the rest of the names as gibberish. I have been able to make out a few other names (things like "Core" and "Script") by tweaking the bytes in the key above for different chunks of the name table.

Anyways I was wondering if anyone wanted to try their hand at figuring out the algorithm used. Unfortunately, the game has a lot of security that prevents me from using a disassembler to see the decryption process.

I've attached a two example file to look at and can of course provide more.

Thanks,
TheMathDoc
You do not have the required permissions to view the files attached to this post.
Ekey
M-M-M-Monster veteran
M-M-M-Monster veteran
Posts: 1816
Joined: Wed Mar 31, 2010 6:54 am
Has thanked: 92 times
Been thanked: 1049 times

Re: Echo Of Soul .u file encryption

Post by Ekey »

Here my tool for decrypt U, INT, INI ect files.

Note: Before posting encrypted files you need also include main executable with all modules because encryption algorithm avaible only there.

Code: Select all

[Usage]
        EOSDecryptor <pScrFile> <pDstFile>
[Examples]
        EOSDecryptor EOS.ini EOS.ini.dec
Download: See below.
Last edited by Ekey on Sun Jun 14, 2015 7:30 pm, edited 1 time in total.
TheMathDoc
n00b
Posts: 10
Joined: Fri Sep 06, 2013 4:57 pm
Has thanked: 4 times
Been thanked: 1 time

Re: Echo Of Soul .u file encryption

Post by TheMathDoc »

I figured that the game's exe was more or less useless because of its encryption, but will do for next time.

Thanks!
User avatar
CriticalError
double-veteran
double-veteran
Posts: 678
Joined: Sun Jul 05, 2009 2:03 am
Has thanked: 104 times
Been thanked: 39 times

Re: Echo Of Soul .u file encryption

Post by CriticalError »

TheMathDoc wrote:I figured that the game's exe was more or less useless because of its encryption, but will do for next time.

Thanks!
binaries are protected with Themida :( I tested in Korean and no work tool for decrypt .u,etc files.

PS: how it work really, this is work? I try test with sample files of .u uploaded by TheMatDoc but anyway always convert the dec with 0 bytes, so what doing wrong?
Ekey
M-M-M-Monster veteran
M-M-M-Monster veteran
Posts: 1816
Joined: Wed Mar 31, 2010 6:54 am
Has thanked: 92 times
Been thanked: 1049 times

Re: Echo Of Soul .u file encryption

Post by Ekey »

It's batch tool. Open EOSDecryptor.bat with notepad, set path for input file and output file. Example

Code: Select all

EOSDecryptor "D:\Echo Of Soul\System\EOS.ini" "D:\Echo Of Soul\System\EOS.ini.dec"
User avatar
CriticalError
double-veteran
double-veteran
Posts: 678
Joined: Sun Jul 05, 2009 2:03 am
Has thanked: 104 times
Been thanked: 39 times

Re: Echo Of Soul .u file encryption

Post by CriticalError »

Ekey wrote:It's batch tool. Open EOSDecryptor.bat with notepad, set path for input file and output file. Example

Code: Select all

EOSDecryptor "D:\Echo Of Soul\System\EOS.ini" "D:\Echo Of Soul\System\EOS.ini.dec"
yes Ekey thanks for the tip, i'm not noob buddy, no offend, but I know this process, just when I say how it works is because when convert file always got 0 byte file, here you have example of my system folder trying decode Fire.u.

PS: don't know if matter or no running Windows 7 x64.

Image
Ekey
M-M-M-Monster veteran
M-M-M-Monster veteran
Posts: 1816
Joined: Wed Mar 31, 2010 6:54 am
Has thanked: 92 times
Been thanked: 1049 times

Re: Echo Of Soul .u file encryption

Post by Ekey »

I have Win7 x64 and works fine. With other files you have this problem? :scaredy:
Keezie
advanced
Posts: 45
Joined: Tue Jun 04, 2013 1:12 am
Has thanked: 7 times
Been thanked: 3 times

Re: Echo Of Soul .u file encryption

Post by Keezie »

Ekey wrote:I have Win7 x64 and works fine. With other files you have this problem? :scaredy:
I'm on windows 8.1 x64 and having the same issue.
User avatar
CriticalError
double-veteran
double-veteran
Posts: 678
Joined: Sun Jul 05, 2009 2:03 am
Has thanked: 104 times
Been thanked: 39 times

Re: Echo Of Soul .u file encryption

Post by CriticalError »

Ekey wrote:I have Win7 x64 and works fine. With other files you have this problem? :scaredy:
any file like u,ini,etc got same issue.
Ekey
M-M-M-Monster veteran
M-M-M-Monster veteran
Posts: 1816
Joined: Wed Mar 31, 2010 6:54 am
Has thanked: 92 times
Been thanked: 1049 times

Re: Echo Of Soul .u file encryption

Post by Ekey »

Well i rebuild decryptor, try it. For me works perfect
You do not have the required permissions to view the files attached to this post.
Last edited by Ekey on Wed Jun 17, 2015 2:52 pm, edited 1 time in total.
Keezie
advanced
Posts: 45
Joined: Tue Jun 04, 2013 1:12 am
Has thanked: 7 times
Been thanked: 3 times

Re: Echo Of Soul .u file encryption

Post by Keezie »

Ekey wrote:Well i rebuild decryptor, try it.

For me works perfect
Working fine for me now.
User avatar
CriticalError
double-veteran
double-veteran
Posts: 678
Joined: Sun Jul 05, 2009 2:03 am
Has thanked: 104 times
Been thanked: 39 times

Re: Echo Of Soul .u file encryption

Post by CriticalError »

[quote="Ekey"][/quote]ok now all be worked fine, now my question, any chance to help with unpack Themida v2.0.1.0 - v2.1.8.0? really I try all ways as I can in Windows Xp and no lucky, you are a experienced guy in reverse engineering and sure can do it, please if can take a look into binaries of this game, really grateful Ekey.

https://cloud.mail.ru/public/8oAy/EvjnrTLQJ
Ekey
M-M-M-Monster veteran
M-M-M-Monster veteran
Posts: 1816
Joined: Wed Mar 31, 2010 6:54 am
Has thanked: 92 times
Been thanked: 1049 times

Re: Echo Of Soul .u file encryption

Post by Ekey »

User avatar
CriticalError
double-veteran
double-veteran
Posts: 678
Joined: Sun Jul 05, 2009 2:03 am
Has thanked: 104 times
Been thanked: 39 times

Re: Echo Of Soul .u file encryption

Post by CriticalError »

many thanks Ekey, anyway I unpacked myself, I think I do fine the process, but anyway thanks for support :)

PS: maybe is good do a tutorial when you unpack it, I see you got others files I don't got in unpacking process.
PS2: here my guide.

How Unpack Themida 2.x.x
yolotrollo
ultra-n00b
Posts: 1
Joined: Sat Jun 27, 2015 5:40 pm
Has thanked: 1 time

Re: Echo Of Soul .u file encryption

Post by yolotrollo »

Ekey wrote:Well i rebuild decryptor, try it. For me works perfect
Do you mind sharing some technical details such as what encryption algorithm and actual key was used? I want to encrypt back modifications to the .ini file(s). Thank you.
Post Reply