⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 assemblydump.txt

📁 This is a sample bomb that has been solved from the bomb lab. Could be helpful
💻 TXT
📖 第 1 页 / 共 5 页
字号:
 804908d:	e8 92 f8 ff ff       	call   8048924 <socket@plt> 8049092:	89 c3                	mov    %eax,%ebx 8049094:	85 c0                	test   %eax,%eax 8049096:	79 09                	jns    80490a1 <open_clientfd+0x33> 8049098:	c7 04 24 7e 9c 04 08 	movl   $0x8049c7e,(%esp) 804909f:	eb 79                	jmp    804911a <open_clientfd+0xac> 80490a1:	8b 45 08             	mov    0x8(%ebp),%eax 80490a4:	89 04 24             	mov    %eax,(%esp) 80490a7:	e8 e8 f7 ff ff       	call   8048894 <gethostbyname@plt> 80490ac:	89 c2                	mov    %eax,%edx 80490ae:	85 c0                	test   %eax,%eax 80490b0:	75 09                	jne    80490bb <open_clientfd+0x4d> 80490b2:	c7 04 24 8c 9c 04 08 	movl   $0x8049c8c,(%esp) 80490b9:	eb 5f                	jmp    804911a <open_clientfd+0xac> 80490bb:	8d 7d e8             	lea    0xffffffe8(%ebp),%edi 80490be:	fc                   	cld     80490bf:	b9 04 00 00 00       	mov    $0x4,%ecx 80490c4:	b8 00 00 00 00       	mov    $0x0,%eax 80490c9:	f3 ab                	rep stos %eax,%es:(%edi) 80490cb:	66 c7 45 e8 02 00    	movw   $0x2,0xffffffe8(%ebp) 80490d1:	8b 42 0c             	mov    0xc(%edx),%eax 80490d4:	89 44 24 08          	mov    %eax,0x8(%esp) 80490d8:	8d 45 ec             	lea    0xffffffec(%ebp),%eax 80490db:	89 44 24 04          	mov    %eax,0x4(%esp) 80490df:	8b 42 10             	mov    0x10(%edx),%eax 80490e2:	8b 00                	mov    (%eax),%eax 80490e4:	89 04 24             	mov    %eax,(%esp) 80490e7:	e8 e8 f6 ff ff       	call   80487d4 <bcopy@plt> 80490ec:	0f b7 45 0c          	movzwl 0xc(%ebp),%eax 80490f0:	66 c1 c8 08          	ror    $0x8,%ax 80490f4:	66 89 45 ea          	mov    %ax,0xffffffea(%ebp) 80490f8:	c7 44 24 08 10 00 00 	movl   $0x10,0x8(%esp) 80490ff:	00  8049100:	8d 45 e8             	lea    0xffffffe8(%ebp),%eax 8049103:	89 44 24 04          	mov    %eax,0x4(%esp) 8049107:	89 1c 24             	mov    %ebx,(%esp) 804910a:	e8 c5 f7 ff ff       	call   80488d4 <connect@plt> 804910f:	85 c0                	test   %eax,%eax 8049111:	79 18                	jns    804912b <open_clientfd+0xbd> 8049113:	c7 04 24 9a 9c 04 08 	movl   $0x8049c9a,(%esp) 804911a:	e8 e5 f6 ff ff       	call   8048804 <puts@plt> 804911f:	c7 04 24 08 00 00 00 	movl   $0x8,(%esp) 8049126:	e8 89 f7 ff ff       	call   80488b4 <exit@plt> 804912b:	89 d8                	mov    %ebx,%eax 804912d:	83 c4 20             	add    $0x20,%esp 8049130:	5b                   	pop    %ebx 8049131:	5f                   	pop    %edi 8049132:	5d                   	pop    %ebp 8049133:	c3                   	ret    08049134 <initialize_bomb>: 8049134:	55                   	push   %ebp 8049135:	89 e5                	mov    %esp,%ebp 8049137:	57                   	push   %edi 8049138:	56                   	push   %esi 8049139:	53                   	push   %ebx 804913a:	83 ec 6c             	sub    $0x6c,%esp 804913d:	c7 45 a4 00 00 00 00 	movl   $0x0,0xffffffa4(%ebp) 8049144:	c7 44 24 04 20 8f 04 	movl   $0x8048f20,0x4(%esp) 804914b:	08  804914c:	c7 04 24 02 00 00 00 	movl   $0x2,(%esp) 8049153:	e8 5c f6 ff ff       	call   80487b4 <signal@plt> 8049158:	c7 44 24 04 40 00 00 	movl   $0x40,0x4(%esp) 804915f:	00  8049160:	8d 45 a8             	lea    0xffffffa8(%ebp),%eax 8049163:	89 04 24             	mov    %eax,(%esp) 8049166:	e8 19 f7 ff ff       	call   8048884 <gethostname@plt> 804916b:	85 c0                	test   %eax,%eax 804916d:	74 12                	je     8049181 <initialize_bomb+0x4d> 804916f:	c7 04 24 a8 9c 04 08 	movl   $0x8049ca8,(%esp) 8049176:	eb 4a                	jmp    80491c2 <initialize_bomb+0x8e> 8049178:	c7 45 a4 01 00 00 00 	movl   $0x1,0xffffffa4(%ebp) 804917f:	eb 34                	jmp    80491b5 <initialize_bomb+0x81> 8049181:	bb 00 00 00 00       	mov    $0x0,%ebx 8049186:	83 3d 40 b7 04 08 00 	cmpl   $0x0,0x804b740 804918d:	74 26                	je     80491b5 <initialize_bomb+0x81> 804918f:	8d 7d a8             	lea    0xffffffa8(%ebp),%edi 8049192:	be 40 b7 04 08       	mov    $0x804b740,%esi 8049197:	89 7c 24 04          	mov    %edi,0x4(%esp) 804919b:	8b 04 9e             	mov    (%esi,%ebx,4),%eax 804919e:	89 04 24             	mov    %eax,(%esp) 80491a1:	e8 fe f6 ff ff       	call   80488a4 <strcasecmp@plt> 80491a6:	85 c0                	test   %eax,%eax 80491a8:	74 ce                	je     8049178 <initialize_bomb+0x44> 80491aa:	43                   	inc    %ebx 80491ab:	83 3c 9d 40 b7 04 08 	cmpl   $0x0,0x804b740(,%ebx,4) 80491b2:	00  80491b3:	75 e2                	jne    8049197 <initialize_bomb+0x63> 80491b5:	83 7d a4 00          	cmpl   $0x0,0xffffffa4(%ebp) 80491b9:	75 18                	jne    80491d3 <initialize_bomb+0x9f> 80491bb:	c7 04 24 b5 9c 04 08 	movl   $0x8049cb5,(%esp) 80491c2:	e8 3d f6 ff ff       	call   8048804 <puts@plt> 80491c7:	c7 04 24 08 00 00 00 	movl   $0x8,(%esp) 80491ce:	e8 e1 f6 ff ff       	call   80488b4 <exit@plt> 80491d3:	c7 44 24 04 50 00 00 	movl   $0x50,0x4(%esp) 80491da:	00  80491db:	c7 04 24 c3 9c 04 08 	movl   $0x8049cc3,(%esp) 80491e2:	e8 87 fe ff ff       	call   804906e <open_clientfd> 80491e7:	89 04 24             	mov    %eax,(%esp) 80491ea:	e8 85 f5 ff ff       	call   8048774 <close@plt> 80491ef:	83 c4 6c             	add    $0x6c,%esp 80491f2:	5b                   	pop    %ebx 80491f3:	5e                   	pop    %esi 80491f4:	5f                   	pop    %edi 80491f5:	5d                   	pop    %ebp 80491f6:	c3                   	ret    080491f7 <blank_line>: 80491f7:	55                   	push   %ebp 80491f8:	89 e5                	mov    %esp,%ebp 80491fa:	83 ec 08             	sub    $0x8,%esp 80491fd:	89 5d fc             	mov    %ebx,0xfffffffc(%ebp) 8049200:	8b 5d 08             	mov    0x8(%ebp),%ebx 8049203:	80 3b 00             	cmpb   $0x0,(%ebx) 8049206:	74 1e                	je     8049226 <blank_line+0x2f> 8049208:	e8 27 f7 ff ff       	call   8048934 <__ctype_b_loc@plt> 804920d:	8b 10                	mov    (%eax),%edx 804920f:	0f be 03             	movsbl (%ebx),%eax 8049212:	43                   	inc    %ebx 8049213:	f6 44 42 01 20       	testb  $0x20,0x1(%edx,%eax,2) 8049218:	75 07                	jne    8049221 <blank_line+0x2a> 804921a:	b8 00 00 00 00       	mov    $0x0,%eax 804921f:	eb 0a                	jmp    804922b <blank_line+0x34> 8049221:	80 3b 00             	cmpb   $0x0,(%ebx) 8049224:	75 e9                	jne    804920f <blank_line+0x18> 8049226:	b8 01 00 00 00       	mov    $0x1,%eax 804922b:	8b 5d fc             	mov    0xfffffffc(%ebp),%ebx 804922e:	89 ec                	mov    %ebp,%esp 8049230:	5d                   	pop    %ebp 8049231:	c3                   	ret    08049232 <skip>: 8049232:	55                   	push   %ebp 8049233:	89 e5                	mov    %esp,%ebp 8049235:	53                   	push   %ebx 8049236:	83 ec 14             	sub    $0x14,%esp 8049239:	a1 90 b8 04 08       	mov    0x804b890,%eax 804923e:	89 44 24 08          	mov    %eax,0x8(%esp) 8049242:	c7 44 24 04 50 00 00 	movl   $0x50,0x4(%esp) 8049249:	00  804924a:	a1 8c b8 04 08       	mov    0x804b88c,%eax 804924f:	8d 04 80             	lea    (%eax,%eax,4),%eax 8049252:	c1 e0 04             	shl    $0x4,%eax 8049255:	05 a0 b8 04 08       	add    $0x804b8a0,%eax 804925a:	89 04 24             	mov    %eax,(%esp) 804925d:	e8 b2 f5 ff ff       	call   8048814 <fgets@plt> 8049262:	89 c3                	mov    %eax,%ebx 8049264:	85 c0                	test   %eax,%eax 8049266:	74 0c                	je     8049274 <skip+0x42> 8049268:	89 04 24             	mov    %eax,(%esp) 804926b:	e8 87 ff ff ff       	call   80491f7 <blank_line> 8049270:	85 c0                	test   %eax,%eax 8049272:	75 c5                	jne    8049239 <skip+0x7> 8049274:	89 d8                	mov    %ebx,%eax 8049276:	83 c4 14             	add    $0x14,%esp 8049279:	5b                   	pop    %ebx 804927a:	5d                   	pop    %ebp 804927b:	c3                   	ret    0804927c <read_line>: 804927c:	55                   	push   %ebp 804927d:	89 e5                	mov    %esp,%ebp 804927f:	83 ec 08             	sub    $0x8,%esp 8049282:	89 7d fc             	mov    %edi,0xfffffffc(%ebp) 8049285:	e8 a8 ff ff ff       	call   8049232 <skip> 804928a:	85 c0                	test   %eax,%eax 804928c:	75 4d                	jne    80492db <read_line+0x5f> 804928e:	a1 90 b8 04 08       	mov    0x804b890,%eax 8049293:	3b 05 84 b8 04 08    	cmp    0x804b884,%eax 8049299:	74 2f                	je     80492ca <read_line+0x4e> 804929b:	c7 04 24 d1 9c 04 08 	movl   $0x8049cd1,(%esp) 80492a2:	e8 fd f4 ff ff       	call   80487a4 <getenv@plt> 80492a7:	85 c0                	test   %eax,%eax 80492a9:	74 0c                	je     80492b7 <read_line+0x3b> 80492ab:	c7 04 24 00 00 00 00 	movl   $0x0,(%esp) 80492b2:	e8 fd f5 ff ff       	call   80488b4 <exit@plt> 80492b7:	a1 84 b8 04 08       	mov    0x804b884,%eax 80492bc:	a3 90 b8 04 08       	mov    %eax,0x804b890 80492c1:	e8 6c ff ff ff       	call   8049232 <skip> 80492c6:	85 c0                	test   %eax,%eax 80492c8:	75 11                	jne    80492db <read_line+0x5f> 80492ca:	c7 04 24 dc 9c 04 08 	movl   $0x8049cdc,(%esp) 80492d1:	e8 2e f5 ff ff       	call   8048804 <puts@plt> 80492d6:	e8 55 02 00 00       	call   8049530 <explode_bomb> 80492db:	a1 8c b8 04 08       	mov    0x804b88c,%eax 80492e0:	8d 04 80             	lea    (%eax,%eax,4),%eax 80492e3:	c1 e0 04             	shl    $0x4,%eax 80492e6:	8d b8 a0 b8 04 08    	lea    0x804b8a0(%eax),%edi 80492ec:	fc                   	cld     80492ed:	b9 ff ff ff ff       	mov    $0xffffffff,%ecx 80492f2:	b0 00                	mov    $0x0,%al 80492f4:	f2 ae                	repnz scas %es:(%edi),%al 80492f6:	f7 d1                	not    %ecx 80492f8:	8d 79 ff             	lea    0xffffffff(%ecx),%edi 80492fb:	83 ff 4f             	cmp    $0x4f,%edi 80492fe:	75 11                	jne    8049311 <read_line+0x95> 8049300:	c7 04 24 fa 9c 04 08 	movl   $0x8049cfa,(%esp) 8049307:	e8 f8 f4 ff ff       	call   8048804 <puts@plt> 804930c:	e8 1f 02 00 00       	call   8049530 <explode_bomb> 8049311:	8b 15 8c b8 04 08    	mov    0x804b88c,%edx 8049317:	8d 04 92             	lea    (%edx,%edx,4),%eax 804931a:	c1 e0 04             	shl    $0x4,%eax 804931d:	05 a0 b8 04 08       	add    $0x804b8a0,%eax 8049322:	c6 44 07 ff 00       	movb   $0x0,0xffffffff(%edi,%eax,1) 8049327:	42                   	inc    %edx 8049328:	89 15 8c b8 04 08    	mov    %edx,0x804b88c 804932e:	8b 7d fc             	mov    0xfffffffc(%ebp),%edi 8049331:	89 ec                	mov    %ebp,%esp 8049333:	5d                   	pop    %ebp 8049334:	c3                   	ret    08049335 <send_msg>: 8049335:	55                   	push   %ebp 8049336:	89 e5                	mov    %esp,%ebp 8049338:	57                   	push   %edi 8049339:	56                   	push   %esi 804933a:	53                   	push   %ebx 804933b:	83 ec 7c             	sub    $0x7c,%esp 804933e:	c7 04 24 00 00 00 00 	movl   $0x0,(%esp) 8049345:	e8 aa f5 ff ff       	call   80488f4 <dup@plt> 804934a:	89 c7                	mov    %eax,%edi 804934c:	83 f8 ff             	cmp    $0xffffffff,%eax 804934f:	75 0c                	jne    804935d <send_msg+0x28> 8049351:	c7 04 24 15 9d 04 08 	movl   $0x8049d15,(%esp) 8049358:	e9 ba 01 00 00       	jmp    8049517 <send_msg+0x1e2> 804935d:	c7 04 24 00 00 00 00 	movl   $0x0,(%esp) 8049364:	e8 0b f4 ff ff       	call   8048774 <close@plt> 8049369:	83 f8 ff             	cmp    $0xffffffff,%eax 804936c:	75 0c                	jne    804937a <send_msg+0x45> 804936e:	c7 04 24 29 9d 04 08 	movl   $0x8049d29,(%esp) 8049375:	e9 9d 01 00 00       	jmp    8049517 <send_msg+0x1e2> 804937a:	e8 15 f4 ff ff       	call   8048794 <tmpfile@plt> 804937f:	89 c6                	mov    %eax,%esi 8049381:	85 c0                	test   %eax,%eax 8049383:	75 0c                	jne    8049391 <send_msg+0x5c> 8049385:	c7 04 24 3c 9d 04 08 	movl   $0x8049d3c,(%esp) 804938c:	e9 86 01 00 00       	jmp    8049517 <send_msg+0x1e2> 8049391:	89 44 24 0c          	mov    %eax,0xc(%esp) 8049395:	c7 44 24 08 1b 00 00 	movl   $0x1b,0x8(%esp) 804939c:	00  804939d:	c7 44 24 04 01 00 00 	movl   $0x1,0x4(%esp) 80493a4:	00  80493a5:	c7 04 24 51 9d 04 08 	movl   $0x8049d51,(%esp) 80493ac:	e8 63 f5 ff ff       	call   8048914 <fwrite@plt> 80493b1:	89 74 24 04          	mov    %esi,0x4(%esp) 80493b5:	c7 04 24 0a 00 00 00 	movl   $0xa,(%esp) 80493bc:	e8 83 f4 ff ff       	call   8048844 <fputc@plt> 80493c1:	c7 04 24 00 00 00 00 	movl   $0x0,(%esp) 80493c8:	e8 77 f5 ff ff       	call   8048944 <cuserid@plt> 80493cd:	85 c0                	test   %eax,%eax 80493cf:	75 13                	jne    80493e4 <send_msg+0xaf> 80493d1:	c7 45 98 6e 6f 62 6f 	movl   $0x6f626f6e,0xffffff98(%ebp) 80493d8:	66 c7 45 9c 64 79    	movw   $0x7964,0xffffff9c(%ebp) 80493de:	c6 45 9e 00          	movb   $0x0,0xffffff9e(%ebp) 80493e2:	eb 0f                	jmp    80493f3 <send_msg+0xbe> 80493e4:	89 44 24 04          	mov    %eax,0x4(%esp) 80493e8:	8d 45 98             	lea    0xffffff98(%ebp),%eax 80493eb:	89 04 24             	mov    %eax,(%esp) 80493ee:	e8 71 f5 ff ff       	call   8048964 <strcpy@plt> 80493f3:	a1 8c b8 04 08       	mov    0x804b88c,%eax 80493f8:	89 44 24 18          	mov    %eax,0x18(%esp) 80493fc:	b8 6d 9d 04 08       	mov    $0x8049d6d,%eax 8049401:	83 7d 08 00          	cmpl   $0x0,0x8(%ebp) 8049405:	75 05                	jne    804940c <send_msg+0xd7> 8049407:	b8 75 9d 04 08       	mov    $0x8049d75,%eax 804940c:	89 44 24 14          	mov    %eax,0x14(%esp) 8049410:	8d 45 98             	lea    0xffffff98(%ebp),%eax

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -