-
-
[旧帖]
[求助]这段反汇编代码如何理解?
0.00雪花
-
发表于:
2009-8-24 09:55
4125
-
[旧帖] [求助]这段反汇编代码如何理解?
0.00雪花
00401190 /$ 55 PUSH EBP
00401191 |. 8BEC MOV EBP,ESP
00401193 |. 6A FF PUSH -1
00401195 |. 68 F01A4000 PUSH tests.00401AF0
0040119A |. 64:A1 0000000>MOV EAX,DWORD PTR FS:[0]
004011A0 |. 50 PUSH EAX
004011A1 |. 51 PUSH ECX
004011A2 |. 53 PUSH EBX
004011A3 |. 56 PUSH ESI
004011A4 |. 57 PUSH EDI
004011A5 |. A1 00304000 MOV EAX,DWORD PTR DS:[403000]
004011AA |. 33C5 XOR EAX,EBP
004011AC |. 50 PUSH EAX
004011AD |. 8D45 F4 LEA EAX,DWORD PTR SS:[EBP-C]
004011B0 |. 64:A3 0000000>MOV DWORD PTR FS:[0],EAX
004011B6 |. 8965 F0 MOV DWORD PTR SS:[EBP-10],ESP
004011B9 |. 33C0 XOR EAX,EAX
004011BB |. 8945 FC MOV DWORD PTR SS:[EBP-4],EAX
004011BE |. C700 01000000 MOV DWORD PTR DS:[EAX],1
004011C4 |. B8 01000000 MOV EAX,1
004011C9 |. 8B4D F4 MOV ECX,DWORD PTR SS:[EBP-C]
004011CC |. 64:890D 00000>MOV DWORD PTR FS:[0],ECX
004011D3 |. 59 POP ECX
004011D4 |. 5F POP EDI
004011D5 |. 5E POP ESI
004011D6 |. 5B POP EBX
004011D7 |. 8BE5 MOV ESP,EBP
004011D9 |. 5D POP EBP
004011DA \. C3 RETN
原程序:
int test()
{
try
{
int *p=0;
*p=1;
return *p;
}
catch(...)
{
return 0;
}
}
希望牛人能详细解释,谢谢。
[招生]科锐逆向工程师培训(2024年11月15日实地,远程教学同时开班, 第51期)