标题:新手 ——二进制炸弹,第四步不理解,求大神解释!
只看楼主
诠释0x208
Rank: 1
等 级:新手上路
帖 子:14
专家分:0
注 册:2017-12-22
结帖率:50%
 问题点数:0 回复次数:0 
新手 ——二进制炸弹,第四步不理解,求大神解释!
0000000000400fe3 <phase_4>:
  400fe3:       48 83 ec 18             sub    $0x18,%rsp
  400fe7:       48 8d 54 24 0c          lea    0xc(%rsp),%rdx
  400fec:       be 02 1b 40 00          mov    $0x401b02,%esi
  400ff1:       b8 00 00 00 00          mov    $0x0,%eax
  400ff6:       e8 b5 fa ff ff          callq  400ab0 <__isoc99_sscanf@plt>
  400ffb:       83 f8 01                cmp    $0x1,%eax
  400ffe:       75 07                   jne    401007 <phase_4+0x24>
  401000:       83 7c 24 0c 00          cmpl   $0x0,0xc(%rsp)
  401005:       7f 05                   jg     40100c <phase_4+0x29>
  401007:       e8 36 02 00 00          callq  401242 <explode_bomb>
  40100c:       8b 7c 24 0c             mov    0xc(%rsp),%edi
  401010:       e8 4b fe ff ff          callq  400e60 <func4>
  401015:       3d 91 cb 01 00          cmp    $0x1cb91,%eax
  40101a:       74 05                   je     401021 <phase_4+0x3e>
  40101c:       e8 21 02 00 00          callq  401242 <explode_bomb>
  401021:       48 83 c4 18             add    $0x18,%rsp
  401025:       c3                      retq

0000000000400e60 <func4>:
  400e60:       48 83 ec 08             sub    $0x8,%rsp
  400e64:       b8 01 00 00 00          mov    $0x1,%eax
  400e69:       85 ff                   test   %edi,%edi
  400e6b:       7e 13                   jle    400e80 <func4+0x20>
  400e6d:       83 ef 01                sub    $0x1,%edi
  400e70:       e8 eb ff ff ff          callq  400e60 <func4>
  400e75:       8d 14 c5 00 00 00 00    lea    0x0(,%rax,8),%edx
  400e7c:       29 c2                   sub    %eax,%edx
  400e7e:       89 d0                   mov    %edx,%eax
  400e80:       48 83 c4 08             add    $0x8,%rsp
  400e84:       c3                      retq
搜索更多相关主题的帖子: 二进制 sub mov ff add 
2017-12-22 22:02



参与讨论请移步原网站贴子:https://bbs.bccn.net/thread-483634-1-1.html




关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.284054 second(s), 8 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved