![]() |
|
#1
|
||||
|
||||
|
nice hexrays thing
Hi all,
I was testing the newest leaked hexrays with this example: Code:
int main(int argc, char* argv[])
{
int firstvalue = 5;
int *p1;
p1 = &firstvalue;
*p1 = 10;
return 0;
}
Code:
push ebp mov ebp, esp sub esp, 8 mov [ebp+var_4], 5 lea eax, [ebp+var_4] mov [ebp+var_8], eax mov ecx, [ebp+var_8] mov dword ptr [ecx], 0Ah xor eax, eax mov esp, ebp pop ebp retn Code:
int __cdecl main(int argc, const char **argv, const char **envp)
{
return 0;
}
__________________
Ŝħůb-Ňìĝùŕřaŧħ ₪) There are only 10 types of people in the world: Those who understand binary, and those who don't http://www.accessroot.com |
|
#2
|
||||
|
||||
|
I did not know that Hex-rays is so clever.
It can tell the arguements not used and variables lost. |
|
#3
|
|||
|
|||
|
Yeah seems to have been optimized. Awesome
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| A nice challenge.... | hobgoblin | General Discussion | 1 | 01-28-2006 11:00 |
| What's this thing on the FTP? | theCaller | General Discussion | 5 | 10-27-2005 21:10 |
| Patching a morphed thing... | KaGra | General Discussion | 4 | 07-03-2005 00:38 |
| Nice! | ManSun | General Discussion | 2 | 04-22-2004 16:12 |