吾爱破解 - LCG - LSG |安卓破解|病毒分析|www.52pojie.cn

 找回密码
 注册[Register]

QQ登录

只需一步,快速开始

查看: 2878|回复: 3
收起左侧

[C&C++ 转载] 【分享】if if--else的反汇编

[复制链接]
2016wapjpc 发表于 2016-11-3 09:18
[

11:   int a = 5 ;
00401028   mov         dword ptr [ebp-4],5
12:   int b = 4 ;
0040102F   mov         dword ptr [ebp-8],4
14:   if(a>b)
00401036   mov         eax,dword ptr [ebp-4]
00401039   cmp         eax,dword ptr [ebp-8]
0040103C   jle         main+3Fh (0040104f)
15:   {
16:
17:   printf("the big is %d\n",a);
0040103E   mov         ecx,dword ptr [ebp-4]
00401041   push        ecx
00401042   push        offset string "the big is %d\n" (0042001c)
00401047   call        printf (00401080)
0040104C   add         esp,8
20:
21:   }

24:   return 0;
0040104F   xor         eax,eax
25:
26:   }



11:   int a = 5 ;
00401028   mov         dword ptr [ebp-4],5
12:   int b = 6 ;
0040102F   mov         dword ptr [ebp-8],6
13:
14:   if(a>b)
00401036   mov         eax,dword ptr [ebp-4]
00401039   cmp         eax,dword ptr [ebp-8]
0040103C   jle         main+41h (00401051)
15:   {
16:   printf("the big is %d\n",a);
0040103E   mov         ecx,dword ptr [ebp-4]
00401041   push        ecx
00401042   push        offset string "the big is %d\n" (00420f84)
00401047   call        printf (00401080)
0040104C   add         esp,8
17:   }
18:   else
0040104F   jmp         main+52h (00401062)
19:   {
20:   printf("the big  is %d\n",b);
00401051   mov         edx,dword ptr [ebp-8]
00401054   push        edx
00401055   push        offset string "the big  is %d\n" (0042001c)
0040105A   call        printf (00401080)
0040105F   add         esp,8
21:   }

23:   return 0;
00401062   xor         eax,eax
24:
25:  }
















]

发帖前要善用论坛搜索功能,那里可能会有你要找的答案或者已经有人发布过相同内容了,请勿重复发帖。

CrazyJokey 发表于 2016-11-3 10:51
然后呢?  这东西随便自己写一下丢IDA里更清晰把
dxdeng 发表于 2016-11-3 11:20
吾爱布衣 发表于 2016-11-3 11:27
您需要登录后才可以回帖 登录 | 注册[Register]

本版积分规则 警告:本版块禁止灌水或回复与主题无关内容,违者重罚!

快速回复 收藏帖子 返回列表 搜索

RSS订阅|小黑屋|处罚记录|联系我们|吾爱破解 - LCG - LSG ( 京ICP备16042023号 | 京公网安备 11010502030087号 )

GMT+8, 2024-6-1 09:12

Powered by Discuz!

Copyright © 2001-2020, Tencent Cloud.

快速回复 返回顶部 返回列表