View Single Post
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