Welcome!

Join our community of MMO enthusiasts and game developers! By registering, you'll gain access to discussions on the latest developments in MMO server files and collaborate with like-minded individuals. Join us today and unlock the potential of MMO server development!

Join Today!

How to decode enc files

The Dinosaur
Loyal Member
Joined
Jun 29, 2008
Messages
5,028
Reaction score
999
Since we don't really have any documented method of decoding enc files other than saur0n's topic (which isn't helpful to most people) i have put together a method similar to how i do it that i think is simple enough even for those without any real olly knowledge or experience.

Please note that i will not support this method. If you can get it working then great but the idea of this guide is not to teach olly to wannabe l33t h4x0rz but to document a simple process for those that do and want to help with client patches and research.

Things needed
Ollydbg:

pmdump.exe:

Textpad (or anything capable of handling large files) :

First start your task manager by right-clicking the clock on the windows explorer bar at the bottom of your screen and select "Task Manager". Click View->Select columns and tick "PID (Process identifier)" as you will need this if using pmdump to dump the memory.

Dumping memory using pmdump is simple. Use "pmdump <pid> <filename>". If my task manager shows cabalmain.exe with a PID of 3226 and i want memory dumped to c:\cabaldump.dmp i would use the "pmdump.exe 3226 c:\cabaldump.dmp" command from command prompt.

The method
  1. Start olly. Do File->Open and point to cabalmain and also put an argument of "breaklee".
  2. After a few seconds olly will pause (look at bottom right). Right-click in the "CPU - main thread" window, select Goto->Expression and enter "00406F75" to go to the address. Press F2 to create a breakpoint (check in your breakpoints window).
  3. Now click the Play button on the toolbar and it will pause again. Dump the memory.
  4. There isn't anything useful in here yet but if you scroll right to the bottom of the dump you will see cabal.enc's name. From this point on the name of the next file to be decoded should be at the bottom of the dump. Hit play again and dump the memory when it pauses.
  5. Open the dump in textpad and search for "<cabal_server>". You should be taken to cabal.enc's decoded data. Copy and save.
  6. Look at the bottom of the dump, you should see cont.enc's name is there so it decodes next. Hit play and dump the memory again.
  7. Make sure you have a copy of saur0n's enc files so you can check what should be in the file when searching for the decoded one in the memory dump.

The order the files are decoded are:

cabal.enc
cont.enc
caz.enc
mob.enc
script.enc
extra_obj.enc
langyage.enc
script_msg.enc
cabal_msg.enc
cont_msg.enc
msg.enc
klog.enc
help.enc
caz_msg.enc
 
Joined
Jan 1, 2009
Messages
384
Reaction score
20
When I write "pmdump.exe 3226 c:\cabaldump.dmp" it says comand dosent exist... Yes I have installed the program..
 
Initiate Mage
Joined
Oct 26, 2005
Messages
1
Reaction score
0
Tell me please how to read the dump file...I can't really get anything from it.

Is this how it should look?
 

Attachments

You must be registered for see attachments list
Banned
Banned
Joined
Oct 20, 2006
Messages
3,245
Reaction score
1,652
What are you trying to do? If you're aiming at decompressing ENC files, I suggest you:
a) Look at the thread start date... Necroposting is a big no-no
b) Search the forums.
 
The Dinosaur
Loyal Member
Joined
Jun 29, 2008
Messages
5,028
Reaction score
999
What Yamachi means is that far better methods are now available such as his COZip, the (un)packer that comes with balq's player skill management tool or Phantom*'s code. The reason i said in the first post that i wouldn't support this method was because i knew most people wouldn't be able to follow the guide and i only posted for those few that would back when we had no other method.
 
Back
Top