Closers Online CBT (.CMF)

Extraction and unpacking of game archives and compression, encryption, obfuscation, decoding of unknown files
Starlinker
Posts: 6
Joined: Sat Aug 09, 2014 2:54 pm

Closers Online CBT (.CMF)

Post by Starlinker »

Hi. Can someone help with files? :roll:

Samples

Code: Select all

https://www.sendspace.com/file/w4zw30


Download client

Code: Select all

http://closers.dn.nexoncdn.co.kr/CLOSERS_FULL_CLIENT/CLOSERS_SETUP.exe
http://closers.dn.nexoncdn.co.kr/CLOSERS_FULL_CLIENT/CLOSERS_SETUP.z01
http://closers.dn.nexoncdn.co.kr/CLOSERS_FULL_CLIENT/CLOSERS_SETUP.z02


Thank you! :mrgreen:
Ekey
Posts: 1383
Joined: Sat Aug 09, 2014 2:34 pm

Re: Closers Online CBT (.CMF)

Post by Ekey »

Table looks like xored
Ekey
Posts: 1383
Joined: Sat Aug 09, 2014 2:34 pm

Re: Closers Online CBT (.CMF)

Post by Ekey »

Ok. Here i written small tool for decrypting tables. Encryption is SWAP + XOR.

Edited: Done
Ekey
Posts: 1383
Joined: Sat Aug 09, 2014 2:34 pm

Re: Closers Online CBT (.CMF)

Post by Ekey »

Job done.

Edited: See below.
Last edited by Ekey on Sat Aug 23, 2014 8:06 pm, edited 3 times in total.
Ekey
Posts: 1383
Joined: Sat Aug 09, 2014 2:34 pm

Re: Closers Online CBT (.CMF)

Post by Ekey »

Encrypted files with extensions *.LUA , *.XET, *.TET *.FX.. Algo SEED in CBC mode + SWAP + XOR

Code: Select all

pSeed_Key1      dd 14999F34h, 317AD2ACh, 8652EA9Eh, 0D1B57149h
pSeed_Key2      dd 31DDAC84h, 29FF5489h, 0EE605CA3h, 1674FA07h

j_SEED_CBC_init(&ctx, 0, pSeed_Key1, pSeed_Key2);
j_SEED_CBC_Process((int)&ctx, pBuffer, 32, (int)pDstBuffer, (int)&dwSize);


Script xor keys

Code: Select all

set SCRIPT_KEY1 "0x826CCAB8"
set SCRIPT_KEY2 "0x46A2C7F2"
set SCRIPT_KEY3 "0x90DC3AFD"
Last edited by Ekey on Sat Aug 23, 2014 4:02 pm, edited 1 time in total.
Ekey
Posts: 1383
Joined: Sat Aug 09, 2014 2:34 pm

Re: Closers Online CBT (.CMF)

Post by Ekey »

Script updated. Supported decrypting LUA and ect. files. Some files can not be decompressed because windowBits -15. Use > offzip -z -15 -a. I temporary set unzip_dynamic and dunno how avoid it :)

Edited: See below.
Last edited by Ekey on Sat Aug 23, 2014 8:06 pm, edited 1 time in total.
Starlinker
Posts: 6
Joined: Sat Aug 09, 2014 2:54 pm

Re: Closers Online CBT (.CMF)

Post by Starlinker »

WoW! Thank you so much! :)
Ekey
Posts: 1383
Joined: Sat Aug 09, 2014 2:34 pm

Re: Closers Online CBT (.CMF)

Post by Ekey »

Updated script again. Tidied script code, removed unused data and some changes :)
Ekey
Posts: 1383
Joined: Sat Aug 09, 2014 2:34 pm

Re: Closers Online CBT (.CMF)

Post by Ekey »

Updated for OBT version. Problem with decompressing some files from the memory is still there. I do not know what could be wrong. Use OffZip for example :)

Download: see below
Last edited by Ekey on Wed Jun 01, 2016 1:00 pm, edited 1 time in total.
raykingnihong
Posts: 71
Joined: Fri Oct 24, 2014 3:13 pm

Re: Closers Online CBT (.CMF)

Post by raykingnihong »

Ekey wrote:Updated for OBT version. Problem with decompressing some files from the memory is still there. I do not know what could be wrong. Use OffZip for example :)
Hi Ekey My friends, thank you for your great work, I downloaded the client, but cannot install, possibly Korea client upgrades, requires a new file.
Ekey
Posts: 1383
Joined: Sat Aug 09, 2014 2:34 pm

Re: Closers Online CBT (.CMF)

Post by Ekey »

raykingnihong wrote:
Ekey wrote:Updated for OBT version. Problem with decompressing some files from the memory is still there. I do not know what could be wrong. Use OffZip for example :)
Hi Ekey My friends, thank you for your great work, I downloaded the client, but cannot install, possibly Korea client upgrades, requires a new file.

Redownload client here
raykingnihong
Posts: 71
Joined: Fri Oct 24, 2014 3:13 pm

Re: Closers Online CBT (.CMF)

Post by raykingnihong »

Ekey wrote:
raykingnihong wrote:
Ekey wrote:Updated for OBT version. Problem with decompressing some files from the memory is still there. I do not know what could be wrong. Use OffZip for example :)
Hi Ekey My friends, thank you for your great work, I downloaded the client, but cannot install, possibly Korea client upgrades, requires a new file.

Redownload client here
Hi Ekey My friends, thank you for your help
bachou
Posts: 20
Joined: Sat Dec 05, 2015 8:50 am

Re: Closers Online CBT (.CMF)

Post by bachou »

Ekey wrote:Updated for OBT version. Problem with decompressing some files from the memory is still there. I do not know what could be wrong. Use OffZip for example :)


hello, can you make repack tool too please ?
Ekey
Posts: 1383
Joined: Sat Aug 09, 2014 2:34 pm

Re: Closers Online CBT (.CMF)

Post by Ekey »

Updated script. Now support CMF from Indonesian client. Decrypting game scripts not supported anymore because they uses modified SEED algorithm (use COSTool and OffZip for now).

COSTool usage:

Code: Select all

COSTool <Source file> <Destination file>


Example

Code: Select all

COSTool "D:\Unpacked\STRING_TABLE_QUEST3_USA.LUA" "D:\Unpacked\STRING_TABLE_QUEST3_USA.LUA.dec"


After decrypt use OffZip for decompress.

Code: Select all

offzip -z -15 -a "D:\Unpacked\STRING_TABLE_QUEST3_USA.LUA.dec" "D:\Unpacked" 0


bachou wrote:hello, can you make repack tool too please ?

Script not supports for reimport and repack files.
bachou
Posts: 20
Joined: Sat Dec 05, 2015 8:50 am

Re: Closers Online CBT (.CMF)

Post by bachou »

hey ekey, could you leech the new link to manually download game files ? the old ones dont work anymore (ex : DAT26000.CMF) i tried to decompile the client_code.lua but it didn't work with luac, the output file is 0kb