[Legend of Heroes Trails in the Sky] How to decrypt game files, need some help.

Extraction and unpacking of game archives and compression, encryption, obfuscation, decoding of unknown files
sigroon365
Posts: 330
Joined: Fri Nov 21, 2014 4:03 am

[Legend of Heroes Trails in the Sky] How to decrypt game files, need some help.

Post by sigroon365 »

Hi, here is some original files and encrypted files.
https://www.mediafire.com/?8xzxiedgm6b6jmt It would be appreciate someone could decrypt it.
I think comparing BGM or ED6_LOGO might be help. And here is information.

"Hi, I checked the encrypted files, and I think they can be decrypted. The encrypting algorithm is actually quite simple. It reads 8 bytes from the original file, does some kind of binary operation on this field then writes it to the output.

For example, in the encoded file, 8 bytes of 0x0 always becomes 0xE25610A8CF5E9B4D, 0x2F5F5F5F5F5F5F5F2E5F5F5F00000000 (see the end of the dir file) always becomes 0x7C6E8C987BCD24611586F8FB36AB0249.

The problem is of course figuring out what happens with these 8 bytes. While the algorith looks simple, I'm not a cryptography expert, so it might be faster to search for somebody who knows what can be done with this. I tried writing a very simple bruteforce program, but it will take about 2302,74 years to finish (checking 2^64 numbers takes time).

There is also an interesting thing, the size of ed6_dt00.dat (encrypted) is not a multiple of 8, and there is a half-encoded (?) 4 bytes at the end. You can see the lots of encoded nulls before it too.

Well, maybe you can figure out something. Good luck! :)"
barti
Posts: 34
Joined: Sun Nov 09, 2014 2:40 pm

Re: How to decrypt game files, need some help.

Post by barti »

How did you get the encrypted files?
Does the game come with some kind of a launcher?
sigroon365
Posts: 330
Joined: Fri Nov 21, 2014 4:03 am

Re: How to decrypt game files, need some help.

Post by sigroon365 »

barti wrote:How did you get the encrypted files?
Does the game come with some kind of a launcher?


I received packed files from someone and I unpacked it then I got encrypted files.
It used launcher, however it doesn't service now. The game company became bankrupt.

Here is more information.

working directory: c:\program files\aruon\frog\game\ed6fc
executables:
- ed6_win.exe
- config.exe
type:
ed6_win.exe: wdp,type-1, frog
config.exe: wdp,type-2, frog
code: rT5EtsTFPHdblY+PuVpvquFIc4mlZJl0HgP1/XHdR4XzVMmU0iNrJjwgI+7j7dIUUQz0AYqgcNQpVV40LLUfuBdG8sYNYUJRqP9RI8DB4kJSLMM7ch22F6A4D2GyETJPE4Az9OCmCfM3XZppI/v07Kmpbcqiq47mNh/qfSXAaiogivv+fu0P6AZUVgEGAA==

I wonder what the code means.
Last edited by sigroon365 on Fri Nov 28, 2014 4:32 pm, edited 1 time in total.
barti
Posts: 34
Joined: Sun Nov 09, 2014 2:40 pm

Re: How to decrypt game files, need some help.

Post by barti »

Can you send the files from the launcher? It might be possible to find the encryption function in there.
sigroon365
Posts: 330
Joined: Fri Nov 21, 2014 4:03 am

Re: How to decrypt game files, need some help.

Post by sigroon365 »

barti wrote:Can you send the files from the launcher? It might be possible to find the encryption function in there.


I edited above reply.
OK. Actually, I don't have launcher now but I will find someone who might got it.
barti
Posts: 34
Joined: Sun Nov 09, 2014 2:40 pm

Re: How to decrypt game files, need some help.

Post by barti »

That code looks like a base64 encoded file. But after decoding, there's nothing readable inside:
Image

I tried using this file as a key for encryption scan, but no correct files came out.
sigroon365
Posts: 330
Joined: Fri Nov 21, 2014 4:03 am

Re: How to decrypt game files, need some help.

Post by sigroon365 »

barti wrote:That code looks like a base64 encoded file. But after decoding, there's nothing readable inside:
Image

I tried using this file as a key for encryption scan, but no correct files came out.


I sent you some files and launcher. Check your massage, plz.
andrevictor18
Posts: 8
Joined: Mon Sep 19, 2016 5:27 am

Re: How to decrypt game files, need some help.

Post by andrevictor18 »

Hi, I saw this topic and I think you can help me, There is a game that I want the Read the files, but it looks like it is encrypted, the game used to use json files with informations, but now it uses .z files and I can't open it.
json files:https://www.dropbox.com/sh/gbfelw0wz47w5br/AADZSudrFplaa1SWREg74p03a?dl=0
z files: https://www.dropbox.com/sh/ozoz4ocnjgtk ... PhOZa?dl=0
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: [Legend of Heroes Trails in the Sky] How to decrypt game files, need some help.

Post by aluigi »

@andrevictor18
Please do NOT go OT on other topics or open new topics:
viewtopic.php?f=9&t=3138

I have renamed this topic to avoid additional misunderstandings (no game name was specified).
foubou
Posts: 10
Joined: Fri Mar 03, 2017 8:55 am

Re: [Legend of Heroes Trails in the Sky] How to decrypt game files, need some help.

Post by foubou »

Here are the translation tools for people who want to translate FC in another language :

https://www.dropbox.com/s/nuzharbumdhmf ... s.zip?dl=0

Follow the steps in "How to use" file to make it work.

Send me PM if you encounter trouble.

Screenshots :
french http://www.hostingpics.net/viewer.php?i ... french.jpg
spanish http://www.hostingpics.net/viewer.php?i ... nishFC.jpg
german http://www.hostingpics.net/viewer.php?i ... rmanFC.jpg
merseus
Posts: 12
Joined: Sun Apr 30, 2017 3:56 pm

Re: [Legend of Heroes Trails in the Sky] How to decrypt game files, need some help.

Post by merseus »

e descargado tu herramienta pero de momento ninguna habre tengo windows 7,si esta herramien funciona en la version de pc me parece que si,
merseus
Posts: 12
Joined: Sun Apr 30, 2017 3:56 pm

Re: [Legend of Heroes Trails in the Sky] How to decrypt game files, need some help.

Post by merseus »

sabes que parte se encuantra los dialogo del juego en version de pc?