All pastes #1398266 Raw Edit

4.s

public text v1 · immutable
#1398266 ·published 2009-04-21 13:54 UTC
rendered paste body
var4:     file format elf32-i386


Disassembly of section .init:

08048254 <_init>:
 8048254:	55                   	push   %ebp
 8048255:	89 e5                	mov    %esp,%ebp
 8048257:	83 ec 08             	sub    $0x8,%esp
 804825a:	e8 51 00 00 00       	call   80482b0 <call_gmon_start>
 804825f:	e8 ac 00 00 00       	call   8048310 <frame_dummy>
 8048264:	e8 27 02 00 00       	call   8048490 <__do_global_ctors_aux>
 8048269:	c9                   	leave  
 804826a:	c3                   	ret    

Disassembly of section .plt:

0804826c <__libc_start_main@plt-0x10>:
 804826c:	ff 35 c0 95 04 08    	pushl  0x80495c0
 8048272:	ff 25 c4 95 04 08    	jmp    *0x80495c4
 8048278:	00 00                	add    %al,(%eax)
	...

0804827c <__libc_start_main@plt>:
 804827c:	ff 25 c8 95 04 08    	jmp    *0x80495c8
 8048282:	68 00 00 00 00       	push   $0x0
 8048287:	e9 e0 ff ff ff       	jmp    804826c <_init+0x18>

Disassembly of section .text:

0804828c <_start>:
 804828c:	31 ed                	xor    %ebp,%ebp
 804828e:	5e                   	pop    %esi
 804828f:	89 e1                	mov    %esp,%ecx
 8048291:	83 e4 f0             	and    $0xfffffff0,%esp
 8048294:	50                   	push   %eax
 8048295:	54                   	push   %esp
 8048296:	52                   	push   %edx
 8048297:	68 4c 84 04 08       	push   $0x804844c
 804829c:	68 04 84 04 08       	push   $0x8048404
 80482a1:	51                   	push   %ecx
 80482a2:	56                   	push   %esi
 80482a3:	68 3c 83 04 08       	push   $0x804833c
 80482a8:	e8 cf ff ff ff       	call   804827c <__libc_start_main@plt>
 80482ad:	f4                   	hlt    
 80482ae:	90                   	nop    
 80482af:	90                   	nop    

080482b0 <call_gmon_start>:
 80482b0:	55                   	push   %ebp
 80482b1:	89 e5                	mov    %esp,%ebp
 80482b3:	53                   	push   %ebx
 80482b4:	e8 00 00 00 00       	call   80482b9 <call_gmon_start+0x9>
 80482b9:	5b                   	pop    %ebx
 80482ba:	81 c3 03 13 00 00    	add    $0x1303,%ebx
 80482c0:	50                   	push   %eax
 80482c1:	8b 83 fc ff ff ff    	mov    -0x4(%ebx),%eax
 80482c7:	85 c0                	test   %eax,%eax
 80482c9:	74 02                	je     80482cd <call_gmon_start+0x1d>
 80482cb:	ff d0                	call   *%eax
 80482cd:	8b 5d fc             	mov    -0x4(%ebp),%ebx
 80482d0:	c9                   	leave  
 80482d1:	c3                   	ret    
 80482d2:	90                   	nop    
 80482d3:	90                   	nop    

080482d4 <__do_global_dtors_aux>:
 80482d4:	55                   	push   %ebp
 80482d5:	89 e5                	mov    %esp,%ebp
 80482d7:	83 ec 08             	sub    $0x8,%esp
 80482da:	80 3d d8 95 04 08 00 	cmpb   $0x0,0x80495d8
 80482e1:	75 29                	jne    804830c <__do_global_dtors_aux+0x38>
 80482e3:	a1 d4 95 04 08       	mov    0x80495d4,%eax
 80482e8:	8b 10                	mov    (%eax),%edx
 80482ea:	85 d2                	test   %edx,%edx
 80482ec:	74 17                	je     8048305 <__do_global_dtors_aux+0x31>
 80482ee:	89 f6                	mov    %esi,%esi
 80482f0:	83 c0 04             	add    $0x4,%eax
 80482f3:	a3 d4 95 04 08       	mov    %eax,0x80495d4
 80482f8:	ff d2                	call   *%edx
 80482fa:	a1 d4 95 04 08       	mov    0x80495d4,%eax
 80482ff:	8b 10                	mov    (%eax),%edx
 8048301:	85 d2                	test   %edx,%edx
 8048303:	75 eb                	jne    80482f0 <__do_global_dtors_aux+0x1c>
 8048305:	c6 05 d8 95 04 08 01 	movb   $0x1,0x80495d8
 804830c:	c9                   	leave  
 804830d:	c3                   	ret    
 804830e:	89 f6                	mov    %esi,%esi

08048310 <frame_dummy>:
 8048310:	55                   	push   %ebp
 8048311:	89 e5                	mov    %esp,%ebp
 8048313:	83 ec 08             	sub    $0x8,%esp
 8048316:	a1 ec 94 04 08       	mov    0x80494ec,%eax
 804831b:	85 c0                	test   %eax,%eax
 804831d:	74 19                	je     8048338 <frame_dummy+0x28>
 804831f:	b8 00 00 00 00       	mov    $0x0,%eax
 8048324:	85 c0                	test   %eax,%eax
 8048326:	74 10                	je     8048338 <frame_dummy+0x28>
 8048328:	83 ec 0c             	sub    $0xc,%esp
 804832b:	68 ec 94 04 08       	push   $0x80494ec
 8048330:	ff d0                	call   *%eax
 8048332:	83 c4 10             	add    $0x10,%esp
 8048335:	8d 76 00             	lea    0x0(%esi),%esi
 8048338:	c9                   	leave  
 8048339:	c3                   	ret    
 804833a:	90                   	nop    
 804833b:	90                   	nop    

0804833c <main>:
 804833c:	55                   	push   %ebp
 804833d:	89 e5                	mov    %esp,%ebp
 804833f:	57                   	push   %edi
 8048340:	56                   	push   %esi
 8048341:	53                   	push   %ebx
 8048342:	83 ec 0c             	sub    $0xc,%esp
 8048345:	8b 1d dc 95 04 08    	mov    0x80495dc,%ebx
 804834b:	83 e4 f0             	and    $0xfffffff0,%esp
 804834e:	85 db                	test   %ebx,%ebx
 8048350:	74 31                	je     8048383 <main+0x47>
 8048352:	8b 53 24             	mov    0x24(%ebx),%edx
 8048355:	85 d2                	test   %edx,%edx
 8048357:	75 2a                	jne    8048383 <main+0x47>
 8048359:	8b 3b                	mov    (%ebx),%edi
 804835b:	31 f6                	xor    %esi,%esi
 804835d:	8d 76 00             	lea    0x0(%esi),%esi
 8048360:	83 ec 0c             	sub    $0xc,%esp
 8048363:	ff 74 b3 04          	pushl  0x4(%ebx,%esi,4)
 8048367:	e8 34 00 00 00       	call   80483a0 <f1>
 804836c:	83 c4 10             	add    $0x10,%esp
 804836f:	a8 01                	test   $0x1,%al
 8048371:	74 19                	je     804838c <main+0x50>
 8048373:	46                   	inc    %esi
 8048374:	83 fe 07             	cmp    $0x7,%esi
 8048377:	7e e7                	jle    8048360 <main+0x24>
 8048379:	c7 43 24 01 00 00 00 	movl   $0x1,0x24(%ebx)
 8048380:	89 7b 28             	mov    %edi,0x28(%ebx)
 8048383:	8d 65 f4             	lea    -0xc(%ebp),%esp
 8048386:	5b                   	pop    %ebx
 8048387:	5e                   	pop    %esi
 8048388:	5f                   	pop    %edi
 8048389:	c9                   	leave  
 804838a:	c3                   	ret    
 804838b:	90                   	nop    
 804838c:	83 ec 0c             	sub    $0xc,%esp
 804838f:	ff 74 b3 04          	pushl  0x4(%ebx,%esi,4)
 8048393:	e8 08 00 00 00       	call   80483a0 <f1>
 8048398:	01 c7                	add    %eax,%edi
 804839a:	83 c4 10             	add    $0x10,%esp
 804839d:	eb d4                	jmp    8048373 <main+0x37>
 804839f:	90                   	nop    

080483a0 <f1>:
 80483a0:	55                   	push   %ebp
 80483a1:	89 e5                	mov    %esp,%ebp
 80483a3:	57                   	push   %edi
 80483a4:	56                   	push   %esi
 80483a5:	8b 75 08             	mov    0x8(%ebp),%esi
 80483a8:	31 c0                	xor    %eax,%eax
 80483aa:	85 f6                	test   %esi,%esi
 80483ac:	53                   	push   %ebx
 80483ad:	74 0a                	je     80483b9 <f1+0x19>
 80483af:	8b 46 24             	mov    0x24(%esi),%eax
 80483b2:	85 c0                	test   %eax,%eax
 80483b4:	74 0e                	je     80483c4 <f1+0x24>
 80483b6:	8b 46 28             	mov    0x28(%esi),%eax
 80483b9:	8d 65 f4             	lea    -0xc(%ebp),%esp
 80483bc:	5b                   	pop    %ebx
 80483bd:	5e                   	pop    %esi
 80483be:	5f                   	pop    %edi
 80483bf:	c9                   	leave  
 80483c0:	c3                   	ret    
 80483c1:	8d 76 00             	lea    0x0(%esi),%esi
 80483c4:	8b 3e                	mov    (%esi),%edi
 80483c6:	31 db                	xor    %ebx,%ebx
 80483c8:	83 ec 0c             	sub    $0xc,%esp
 80483cb:	ff 74 9e 04          	pushl  0x4(%esi,%ebx,4)
 80483cf:	e8 cc ff ff ff       	call   80483a0 <f1>
 80483d4:	83 c4 10             	add    $0x10,%esp
 80483d7:	a8 01                	test   $0x1,%al
 80483d9:	74 15                	je     80483f0 <f1+0x50>
 80483db:	43                   	inc    %ebx
 80483dc:	83 fb 07             	cmp    $0x7,%ebx
 80483df:	7e e7                	jle    80483c8 <f1+0x28>
 80483e1:	c7 46 24 01 00 00 00 	movl   $0x1,0x24(%esi)
 80483e8:	89 7e 28             	mov    %edi,0x28(%esi)
 80483eb:	89 f8                	mov    %edi,%eax
 80483ed:	eb ca                	jmp    80483b9 <f1+0x19>
 80483ef:	90                   	nop    
 80483f0:	83 ec 0c             	sub    $0xc,%esp
 80483f3:	ff 74 9e 04          	pushl  0x4(%esi,%ebx,4)
 80483f7:	e8 a4 ff ff ff       	call   80483a0 <f1>
 80483fc:	01 c7                	add    %eax,%edi
 80483fe:	83 c4 10             	add    $0x10,%esp
 8048401:	eb d8                	jmp    80483db <f1+0x3b>
 8048403:	90                   	nop    

08048404 <__libc_csu_init>:
 8048404:	55                   	push   %ebp
 8048405:	89 e5                	mov    %esp,%ebp
 8048407:	57                   	push   %edi
 8048408:	56                   	push   %esi
 8048409:	53                   	push   %ebx
 804840a:	83 ec 0c             	sub    $0xc,%esp
 804840d:	e8 00 00 00 00       	call   8048412 <__libc_csu_init+0xe>
 8048412:	5b                   	pop    %ebx
 8048413:	81 c3 aa 11 00 00    	add    $0x11aa,%ebx
 8048419:	e8 36 fe ff ff       	call   8048254 <_init>
 804841e:	8d 93 20 ff ff ff    	lea    -0xe0(%ebx),%edx
 8048424:	8d 8b 20 ff ff ff    	lea    -0xe0(%ebx),%ecx
 804842a:	29 ca                	sub    %ecx,%edx
 804842c:	31 f6                	xor    %esi,%esi
 804842e:	c1 fa 02             	sar    $0x2,%edx
 8048431:	39 d6                	cmp    %edx,%esi
 8048433:	73 0f                	jae    8048444 <__libc_csu_init+0x40>
 8048435:	89 d7                	mov    %edx,%edi
 8048437:	90                   	nop    
 8048438:	ff 94 b3 20 ff ff ff 	call   *-0xe0(%ebx,%esi,4)
 804843f:	46                   	inc    %esi
 8048440:	39 fe                	cmp    %edi,%esi
 8048442:	72 f4                	jb     8048438 <__libc_csu_init+0x34>
 8048444:	83 c4 0c             	add    $0xc,%esp
 8048447:	5b                   	pop    %ebx
 8048448:	5e                   	pop    %esi
 8048449:	5f                   	pop    %edi
 804844a:	c9                   	leave  
 804844b:	c3                   	ret    

0804844c <__libc_csu_fini>:
 804844c:	55                   	push   %ebp
 804844d:	89 e5                	mov    %esp,%ebp
 804844f:	56                   	push   %esi
 8048450:	53                   	push   %ebx
 8048451:	e8 00 00 00 00       	call   8048456 <__libc_csu_fini+0xa>
 8048456:	5b                   	pop    %ebx
 8048457:	81 c3 66 11 00 00    	add    $0x1166,%ebx
 804845d:	8d 8b 20 ff ff ff    	lea    -0xe0(%ebx),%ecx
 8048463:	8d 83 20 ff ff ff    	lea    -0xe0(%ebx),%eax
 8048469:	29 c1                	sub    %eax,%ecx
 804846b:	c1 f9 02             	sar    $0x2,%ecx
 804846e:	85 c9                	test   %ecx,%ecx
 8048470:	8d 71 ff             	lea    -0x1(%ecx),%esi
 8048473:	75 0b                	jne    8048480 <__libc_csu_fini+0x34>
 8048475:	e8 3a 00 00 00       	call   80484b4 <_fini>
 804847a:	5b                   	pop    %ebx
 804847b:	5e                   	pop    %esi
 804847c:	c9                   	leave  
 804847d:	c3                   	ret    
 804847e:	89 f6                	mov    %esi,%esi
 8048480:	ff 94 b3 20 ff ff ff 	call   *-0xe0(%ebx,%esi,4)
 8048487:	89 f2                	mov    %esi,%edx
 8048489:	4e                   	dec    %esi
 804848a:	85 d2                	test   %edx,%edx
 804848c:	75 f2                	jne    8048480 <__libc_csu_fini+0x34>
 804848e:	eb e5                	jmp    8048475 <__libc_csu_fini+0x29>

08048490 <__do_global_ctors_aux>:
 8048490:	55                   	push   %ebp
 8048491:	89 e5                	mov    %esp,%ebp
 8048493:	53                   	push   %ebx
 8048494:	52                   	push   %edx
 8048495:	a1 dc 94 04 08       	mov    0x80494dc,%eax
 804849a:	83 f8 ff             	cmp    $0xffffffff,%eax
 804849d:	bb dc 94 04 08       	mov    $0x80494dc,%ebx
 80484a2:	74 0c                	je     80484b0 <__do_global_ctors_aux+0x20>
 80484a4:	83 eb 04             	sub    $0x4,%ebx
 80484a7:	ff d0                	call   *%eax
 80484a9:	8b 03                	mov    (%ebx),%eax
 80484ab:	83 f8 ff             	cmp    $0xffffffff,%eax
 80484ae:	75 f4                	jne    80484a4 <__do_global_ctors_aux+0x14>
 80484b0:	58                   	pop    %eax
 80484b1:	5b                   	pop    %ebx
 80484b2:	c9                   	leave  
 80484b3:	c3                   	ret    

Disassembly of section .fini:

080484b4 <_fini>:
 80484b4:	55                   	push   %ebp
 80484b5:	89 e5                	mov    %esp,%ebp
 80484b7:	53                   	push   %ebx
 80484b8:	e8 00 00 00 00       	call   80484bd <_fini+0x9>
 80484bd:	5b                   	pop    %ebx
 80484be:	81 c3 ff 10 00 00    	add    $0x10ff,%ebx
 80484c4:	52                   	push   %edx
 80484c5:	e8 0a fe ff ff       	call   80482d4 <__do_global_dtors_aux>
 80484ca:	8b 5d fc             	mov    -0x4(%ebp),%ebx
 80484cd:	c9                   	leave  
 80484ce:	c3                   	ret