Need help with extracting Grand Chase KOM FILES (.KOM)

Extraction and unpacking of game archives and compression, encryption, obfuscation, decoding of unknown files
talitafl
Posts: 4
Joined: Wed Nov 01, 2017 2:49 pm

Need help with extracting Grand Chase KOM FILES (.KOM)

Post by talitafl »

So, Im using latest quickbms and latest kom.bms script but still cant extract this files they are the same file but with different errors:

https://drive.google.com/open?id=0B7dz_ ... mN1LTlwQ1U ( This one give me a key error: Error: unkown relative key value (192938514)

https://drive.google.com/open?id=0B7dz_ ... 2FEUFQ2cXc ( This one giveme this: Error: the uncompressed data (-1) is bigger than the allocated buffer (4399) )

kom.bms link: http://aluigi.altervista.org/bms/kom.bms

Does anyone know how to make it work? Juts keep in mind i know nothing about coding so if you can send me a script with a fix would be awesome thanks in advance :)
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Need help with extracting Grand Chase KOM FILES (.KOM)

Post by aluigi »

I have fixed the links you copy&pasted from your post on xentax.

Regarding "char_script.kom"
Basically the kom archives of version "V.0.4" use encryption on the information about the stored files and this key changes for every build of the archives.
So it's not possible to decrypt these information wtithout the correct 32bit key, and no it's not the same key already stored in the script (I already tried it :))

Regarding "char_script (1).kom"
It's a version "V.0.2" without problems of encryption, the problem is the compression or the obfuscation (if any) used on the files because it's not zlib data and it looks a bit "weird".

Maybe try to upload the executables of these games.
talitafl
Posts: 4
Joined: Wed Nov 01, 2017 2:49 pm

Re: Need help with extracting Grand Chase KOM FILES (.KOM)

Post by talitafl »

aluigi wrote:I have fixed the links you copy&pasted from your post on xentax.

Regarding "char_script.kom"
Basically the kom archives of version "V.0.4" use encryption on the information about the stored files and this key changes for every build of the archives.
So it's not possible to decrypt these information wtithout the correct 32bit key, and no it's not the same key already stored in the script (I already tried it :))

Regarding "char_script (1).kom"
It's a version "V.0.2" without problems of encryption, the problem is the compression or the obfuscation (if any) used on the files because it's not zlib data and it looks a bit "weird".

Maybe try to upload the executables of these games.


Here we go:
.exe from char_script.kom:

https://drive.google.com/open?id=0B7dz_ ... 180U09BTkE

.exe from char_script (1):

https://drive.google.com/open?id=0B7dz_ ... DVEckQyRW8

Thanks in advance!
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Need help with extracting Grand Chase KOM FILES (.KOM)

Post by aluigi »

At least the constant key used in the past is still present just like "%lld", sha1 and blowfish.
I didn't spend time checking or analyzing the code further.
If someone wants to do the job, I will be more than happy to implement the updates in the script.
talitafl
Posts: 4
Joined: Wed Nov 01, 2017 2:49 pm

Re: Need help with extracting Grand Chase KOM FILES (.KOM)

Post by talitafl »

Thank you so much :)

Now, can some bored soul do this for me? ( checking and anayzing the code) or teach me how to do it?
talitafl
Posts: 4
Joined: Wed Nov 01, 2017 2:49 pm

Re: Need help with extracting Grand Chase KOM FILES (.KOM)

Post by talitafl »

aluigi wrote:At least the constant key used in the past is still present just like "%lld", sha1 and blowfish.
I didn't spend time checking or analyzing the code further.
If someone wants to do the job, I will be more than happy to implement the updates in the script.


I got Hex Editor so i can do the job, what exactly do you need me to find at the codes?
Bruz
Posts: 1
Joined: Sun Nov 05, 2017 7:45 pm

Re: Need help with extracting Grand Chase KOM FILES (.KOM)

Post by Bruz »

I'm having the same problem and I would be happy if it will be able to read kom archives of version V.0.4 (I don't know how to do code stuff tho).
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Need help with extracting Grand Chase KOM FILES (.KOM)

Post by aluigi »

Currently I can't work on this.
As already said, if someone will work on that (DO NOT TRY to do anything if you have no experience with reverse engineering) I will update the script with the new information.
CATCAT52009
Posts: 3
Joined: Sun May 27, 2018 5:12 pm

.kom V.0.5. file

Post by CATCAT52009 »

I had search for long time and I can't find anything about v.0.5.

here is the file, and any one can help to decrypt it? ty
https://drive.google.com/open?id=1AsWGj ... wXgKd4KbAU