Reversing : The Hacker's Guide to Reverse Engineering

(ff) #1

Figure 12.1 The original source code and the decompiled version of a simple C# function.


public static void Main(){ int x, y; for (x = 1; x <= 10; x ++) { for (y = 1; y <= 10; y++) { Console.Write("{0 } ", x*y); } Console.WriteLine(""); } }

Original Function Source Code

public static void Main(){ for (int i = 1; i <= 10; i++) { for (int j = 1; j <= 10; j++) { Console.Write("{0 } ", (i * j)); } Console.WriteLine(""); }}

Salamander Decompiler Output

Compilation

IL
ExecutableBinary Decompilation

Reversing .NET 425
Free download pdf