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

Decompiling Plugins (.amx/x -> .sma)


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
BAILOPAN
Join Date: Jan 2004
Old 10-15-2005 , 04:41   Decompiling Plugins (.amx/x -> .sma)
Reply With Quote #1

Topic: How do you decode a closed source plugin back to source code?

This is a hot topic for some people, and I've been asked about it many times. After the Sputnik53 incident, I decided to publically reveal how it's done. Currently, I'm writing a multipart-article on the SourceMod devlog.

This is not for the faint of heart, and you should step into this with knowledge of C and processor memory layout. I'll update this post as I complete more pieces of the tutorial.

Part 1 - Introduction to the VM
Part 2 - Basic Disassembly
Part 3 - Decoding Branches
Part 4 - Local procedures, variables, and multi-branches
Part 5 - Optimization
Part 6 - Stocks, floats, ternary operators, and for loops
Part 7 - Multi-part if statements, multi-dimensional arrays
__________________
egg
BAILOPAN is offline
BAILOPAN
Join Date: Jan 2004
Old 10-16-2005 , 06:31  
Reply With Quote #2

Part 4 added.
__________________
egg
BAILOPAN is offline
Zenith77
Veteran Member
Join Date: Aug 2005
Old 10-16-2005 , 12:09  
Reply With Quote #3

Nice, very very nice.



p.s. Whats the answer to the bonus question
__________________
Quote:
Originally Posted by phorelyph View Post
your retatred
Zenith77 is offline
BAILOPAN
Join Date: Jan 2004
Old 10-17-2005 , 05:54  
Reply With Quote #4

Part 5 added.

Worth noting here too: Wraith's AMXReader now supports AMX Mod X 1.60 plugins.
__________________
egg
BAILOPAN is offline
LynX
Veteran Member
Join Date: Oct 2004
Old 10-17-2005 , 07:16  
Reply With Quote #5

w00teh!!!

Baileh finally decided to make mine life happy again ^^
__________________
Current plugin : SoulPunisher anti-cheat
Percentage done : {||--------} 20%

If you think v3x is a PIMP, paste this into your sig!

If you think Bailopan is DA BOMB, paste this into your sig
LynX is offline
Send a message via ICQ to LynX
Wraith,
Junior Member
Join Date: Apr 2004
Location: Behind You
Old 10-17-2005 , 11:29  
Reply With Quote #6

It is also worth noting that the disassembler isn't idiot proof. If you have a problem or request you can find me in #adminmod on gamesurge.
Wraith, is offline
BAILOPAN
Join Date: Jan 2004
Old 10-28-2005 , 05:15  
Reply With Quote #7

Part 6 added.
__________________
egg
BAILOPAN is offline
BAILOPAN
Join Date: Jan 2004
Old 10-30-2005 , 06:00  
Reply With Quote #8

Part 7 added.
__________________
egg
BAILOPAN is offline
ssjGoten
New Member
Join Date: Aug 2006
Old 08-09-2006 , 15:05   Re: Decompiling Plugins (.amx/x -> .sma)
Reply With Quote #9

when i open AmxReader gives me that error "The Application failed initialize properly (0xc0000135). Click on OK to terminate the application" (


Pls help me
ssjGoten is offline
k007
BANNED
Join Date: Mar 2006
Location: bacon?
Old 08-09-2006 , 15:20   Re: Decompiling Plugins (.amx/x -> .sma)
Reply With Quote #10

Nice gj BAIL
k007 is offline
Send a message via MSN to k007
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 06:24.


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