Raised This Month: $12 Target: $400
 3% 

CS/CZ IDA Suite - Updated March-2013


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
joropito
AlliedModders Donor
Join Date: Mar 2009
Location: pfnAddToFullPack
Old 05-23-2012 , 15:03   CS/CZ IDA Suite - Updated March-2013
Reply With Quote #1

****UPDATED for latest CS/Engine updates (2013)


----------------------
Here I'm again with some tools to help you decompile CS/CZ binaries.

First of all, this is oriented to advanced users with experience using IDA Pro, knowledge on entity offsets, memory addressing, orpheu, rage, and quantum physics is prefered.

This work was done in three weeks of really hard work (50% me, 50% ConnorMcLeod)

What can be done with this?

With few steps you can convert this



to this



How?

Just download the attached zip file, uncompress and follow steps inside README.txt

Quote:
1- Open a new project with IDA Pro
2- Load cs_i386.so library
3- Load HLSDK headers: CTRL-F9 - engine.h
4- Load CS Entities headers: CTRL-F9 - linux_entities.h
5- Wait analysis ends
6- Execute IDC script: ALT+F7 - fix_functions.idc
7- Execute IDC script: ALT+F7 - fix_types.idc (select cs_symbols.txt when asked)
8- Check that everything is working
And after this little steps, you can decompile almost every function without any problem.

What's next?

Of course there're errors.
cs_symbols.txt don't include 100% of functions/symbols. Not all classes are supported (only 211 entity classes are supported).
If you have any fix or improvement to add please post here.

Additional tools

There're some IDC scripts (for IDA) that can help you with binaries from other mods.

Quote:
fix_functions.idc
Fixes function arguments types based en mangled information
Additional adds *this as first argument when it's used inside a class (not only virtual)
* Can be called anytime

fix_types.idc
Loads symbols from custom file and set functions/objects types
* Can be called anytime

dump_savedata.idc
Dumps SaveDate fields info

dump_vtables.idc
Dumps VTABLES

dump_functions.idc
Dump functions types
Anyone testing this please post if it works or if has any problem.
Comments are very welcomed

Thanks
Attached Files
File Type: zip goldsrc-cs-sdk.zip (218.8 KB, 314 views)
File Type: zip goldsrc-cs-sdk-2013.zip (228.4 KB, 295 views)
__________________

Divide et vinces
approved plugins | steam account

I don't accept PM for support. Just ask on forums.
If you're looking for private work, PM me.

Last edited by joropito; 03-25-2013 at 15:25.
joropito is offline
Send a message via MSN to joropito
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 05-23-2012 , 15:57   Re: CS/CZ IDA Suite
Reply With Quote #2

Quote:
Originally Posted by joropito View Post
This work was done in three weeks of really hard work (95% me, 5% ConnorMcLeod)
Fixed.
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 05-23-2012 , 17:09   Re: CS/CZ IDA Suite
Reply With Quote #3

Cool you release it. For sure, it helps greatly, especially to know the virtual function.
__________________
Arkshine is offline
KORD_12.7
Senior Member
Join Date: Aug 2009
Location: Russia, Vladivostok
Old 05-23-2012 , 20:57   Re: CS/CZ IDA Suite
Reply With Quote #4

joropito, ConnorMcLeod, good job!
__________________

Vi Veri Veniversum Vivus Vici
Russian Half-Life and Adrenaline Gamer community

Last edited by KORD_12.7; 05-23-2012 at 23:51.
KORD_12.7 is offline
Send a message via ICQ to KORD_12.7
Bugsy
AMX Mod X Moderator
Join Date: Feb 2005
Location: NJ, USA
Old 05-23-2012 , 23:30   Re: CS/CZ IDA Suite
Reply With Quote #5

Quote:
Originally Posted by KORD_12.7 View Post
joropito, good job!
Quote:
Originally Posted by joropito View Post
This work was done in three weeks of really hard work (50% me, 50% ConnorMcLeod)
Connor too. Good job.
__________________
Bugsy is offline
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 05-23-2012 , 23:41   Re: CS/CZ IDA Suite
Reply With Quote #6

Great work.
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] is offline
Javivi
AlliedModders Donor
Join Date: Dec 2008
Old 05-24-2012 , 11:51   Re: CS/CZ IDA Suite
Reply With Quote #7

holy shit, great work.

Now re will be easier, thanks!
__________________
Javivi is offline
K.K.Lv
Veteran Member
Join Date: Aug 2008
Location: GameFolder
Old 06-11-2012 , 06:06   Re: CS/CZ IDA Suite
Reply With Quote #8

Code:
1- Open a new project with IDA Pro
2- Load cs_i386.so library
3- Load HLSDK headers: CTRL-F9 - engine.h
4- Load CS Entities headers: CTRL-F9 - linux_entities.h
when I click ALT-F7, Noting to be continued.
anything what I have lose ?
__________________
QQ:116268742
K.K.Lv is offline
Send a message via MSN to K.K.Lv
joropito
AlliedModders Donor
Join Date: Mar 2009
Location: pfnAddToFullPack
Old 06-11-2012 , 08:47   Re: CS/CZ IDA Suite
Reply With Quote #9

Quote:
Originally Posted by K.K.Lv View Post
Code:
1- Open a new project with IDA Pro
2- Load cs_i386.so library
3- Load HLSDK headers: CTRL-F9 - engine.h
4- Load CS Entities headers: CTRL-F9 - linux_entities.h
when I click ALT-F7, Noting to be continued.
anything what I have lose ?
Click on some window inside ida (IDA-View, Output, etc).
If it doesn't work, just go to FILE menu and then SCRIPT FILE.

For the record my IDA version is 6.1
__________________

Divide et vinces
approved plugins | steam account

I don't accept PM for support. Just ask on forums.
If you're looking for private work, PM me.
joropito is offline
Send a message via MSN to joropito
K.K.Lv
Veteran Member
Join Date: Aug 2008
Location: GameFolder
Old 06-11-2012 , 09:13   Re: CS/CZ IDA Suite
Reply With Quote #10

fail...
does the version of you IDA is free ?
do you mind give me the link ?
__________________
QQ:116268742
K.K.Lv is offline
Send a message via MSN to K.K.Lv
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 11:36.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode