-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy patheg-dis.64da
More file actions
223 lines (203 loc) · 9.74 KB
/
eg-dis.64da
File metadata and controls
223 lines (203 loc) · 9.74 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
eg-dis: file format elf64-x86-64
Disassembly of section .init:
0000000000400390 <_init>:
400390: 48 83 ec 08 sub $0x8,%rsp
400394: e8 53 00 00 00 callq 4003ec <call_gmon_start>
400399: 48 83 c4 08 add $0x8,%rsp
40039d: c3 retq
Disassembly of section .plt:
00000000004003a0 <__libc_start_main@plt-0x10>:
4003a0: ff 35 4a 0c 20 00 pushq 0x200c4a(%rip) # 600ff0 <_GLOBAL_OFFSET_TABLE_+0x8>
4003a6: ff 25 4c 0c 20 00 jmpq *0x200c4c(%rip) # 600ff8 <_GLOBAL_OFFSET_TABLE_+0x10>
4003ac: 0f 1f 40 00 nopl 0x0(%rax)
00000000004003b0 <__libc_start_main@plt>:
4003b0: ff 25 4a 0c 20 00 jmpq *0x200c4a(%rip) # 601000 <_GLOBAL_OFFSET_TABLE_+0x18>
4003b6: 68 00 00 00 00 pushq $0x0
4003bb: e9 e0 ff ff ff jmpq 4003a0 <_init+0x10>
Disassembly of section .text:
00000000004003c0 <_start>:
4003c0: 31 ed xor %ebp,%ebp
4003c2: 49 89 d1 mov %rdx,%r9
4003c5: 5e pop %rsi
4003c6: 48 89 e2 mov %rsp,%rdx
4003c9: 48 83 e4 f0 and $0xfffffffffffffff0,%rsp
4003cd: 50 push %rax
4003ce: 54 push %rsp
4003cf: 49 c7 c0 d0 05 40 00 mov $0x4005d0,%r8
4003d6: 48 c7 c1 40 05 40 00 mov $0x400540,%rcx
4003dd: 48 c7 c7 17 05 40 00 mov $0x400517,%rdi
4003e4: e8 c7 ff ff ff callq 4003b0 <__libc_start_main@plt>
4003e9: f4 hlt
4003ea: 90 nop
4003eb: 90 nop
00000000004003ec <call_gmon_start>:
4003ec: 48 83 ec 08 sub $0x8,%rsp
4003f0: 48 8b 05 e9 0b 20 00 mov 0x200be9(%rip),%rax # 600fe0 <_DYNAMIC+0x1d0>
4003f7: 48 85 c0 test %rax,%rax
4003fa: 74 02 je 4003fe <call_gmon_start+0x12>
4003fc: ff d0 callq *%rax
4003fe: 48 83 c4 08 add $0x8,%rsp
400402: c3 retq
400403: 90 nop
400404: 90 nop
400405: 90 nop
400406: 90 nop
400407: 90 nop
400408: 90 nop
400409: 90 nop
40040a: 90 nop
40040b: 90 nop
40040c: 90 nop
40040d: 90 nop
40040e: 90 nop
40040f: 90 nop
0000000000400410 <deregister_tm_clones>:
400410: b8 1f 10 60 00 mov $0x60101f,%eax
400415: 55 push %rbp
400416: 48 2d 18 10 60 00 sub $0x601018,%rax
40041c: 48 83 f8 0e cmp $0xe,%rax
400420: 48 89 e5 mov %rsp,%rbp
400423: 77 02 ja 400427 <deregister_tm_clones+0x17>
400425: 5d pop %rbp
400426: c3 retq
400427: b8 00 00 00 00 mov $0x0,%eax
40042c: 48 85 c0 test %rax,%rax
40042f: 74 f4 je 400425 <deregister_tm_clones+0x15>
400431: 5d pop %rbp
400432: bf 18 10 60 00 mov $0x601018,%edi
400437: ff e0 jmpq *%rax
400439: 0f 1f 80 00 00 00 00 nopl 0x0(%rax)
0000000000400440 <register_tm_clones>:
400440: b8 18 10 60 00 mov $0x601018,%eax
400445: 55 push %rbp
400446: 48 2d 18 10 60 00 sub $0x601018,%rax
40044c: 48 c1 f8 03 sar $0x3,%rax
400450: 48 89 e5 mov %rsp,%rbp
400453: 48 89 c2 mov %rax,%rdx
400456: 48 c1 ea 3f shr $0x3f,%rdx
40045a: 48 01 d0 add %rdx,%rax
40045d: 48 d1 f8 sar %rax
400460: 75 02 jne 400464 <register_tm_clones+0x24>
400462: 5d pop %rbp
400463: c3 retq
400464: ba 00 00 00 00 mov $0x0,%edx
400469: 48 85 d2 test %rdx,%rdx
40046c: 74 f4 je 400462 <register_tm_clones+0x22>
40046e: 5d pop %rbp
40046f: 48 89 c6 mov %rax,%rsi
400472: bf 18 10 60 00 mov $0x601018,%edi
400477: ff e2 jmpq *%rdx
400479: 0f 1f 80 00 00 00 00 nopl 0x0(%rax)
0000000000400480 <__do_global_dtors_aux>:
400480: 80 3d 91 0b 20 00 00 cmpb $0x0,0x200b91(%rip) # 601018 <__bss_start>
400487: 75 11 jne 40049a <__do_global_dtors_aux+0x1a>
400489: 55 push %rbp
40048a: 48 89 e5 mov %rsp,%rbp
40048d: e8 7e ff ff ff callq 400410 <deregister_tm_clones>
400492: 5d pop %rbp
400493: c6 05 7e 0b 20 00 01 movb $0x1,0x200b7e(%rip) # 601018 <__bss_start>
40049a: f3 c3 repz retq
40049c: 0f 1f 40 00 nopl 0x0(%rax)
00000000004004a0 <frame_dummy>:
4004a0: 48 83 3d 60 09 20 00 cmpq $0x0,0x200960(%rip) # 600e08 <__JCR_END__>
4004a7: 00
4004a8: 74 1e je 4004c8 <frame_dummy+0x28>
4004aa: b8 00 00 00 00 mov $0x0,%eax
4004af: 48 85 c0 test %rax,%rax
4004b2: 74 14 je 4004c8 <frame_dummy+0x28>
4004b4: 55 push %rbp
4004b5: bf 08 0e 60 00 mov $0x600e08,%edi
4004ba: 48 89 e5 mov %rsp,%rbp
4004bd: ff d0 callq *%rax
4004bf: 5d pop %rbp
4004c0: e9 7b ff ff ff jmpq 400440 <register_tm_clones>
4004c5: 0f 1f 00 nopl (%rax)
4004c8: e9 73 ff ff ff jmpq 400440 <register_tm_clones>
4004cd: 90 nop
4004ce: 90 nop
4004cf: 90 nop
00000000004004d0 <proca>:
/* $begin eg-disa-d 135 */
4004d0: 48 81 ec e0 02 00 00 sub $0x2e0,%rsp # A.
4004d7: 48 8b 44 24 a8 mov -0x58(%rsp),%rax # B.
4004dc: 48 03 47 28 add 0x28(%rdi),%rax # C.
4004e0: 48 89 44 24 d0 mov %rax,-0x30(%rsp) # D.
4004e5: 48 8b 44 24 78 mov 0x78(%rsp),%rax # E.
4004ea: 48 89 87 88 00 00 00 mov %rax,0x88(%rdi) # F.
4004f1: 48 8b 84 24 f8 01 00 mov 0x1f8(%rsp),%rax # G.
4004f8: 00
4004f9: 48 03 44 24 08 add 0x8(%rsp),%rax
4004fe: 48 89 84 24 c0 00 00 mov %rax,0xc0(%rsp) # H.
400505: 00
400506: 48 8b 44 d4 b8 mov -0x48(%rsp,%rdx,8),%rax # I.
/* $end eg-disa-d 135 */
40050b: 48 89 04 f7 mov %rax,(%rdi,%rsi,8)
40050f: 48 81 c4 e0 02 00 00 add $0x2e0,%rsp
400516: c3 retq
0000000000400517 <main>:
400517: 48 83 ec 58 sub $0x58,%rsp
40051b: ba 07 00 00 00 mov $0x7,%edx
400520: be 05 00 00 00 mov $0x5,%esi
400525: 48 89 e7 mov %rsp,%rdi
400528: e8 a3 ff ff ff callq 4004d0 <proca>
40052d: 48 83 c4 58 add $0x58,%rsp
400531: c3 retq
400532: 90 nop
400533: 90 nop
400534: 90 nop
400535: 90 nop
400536: 90 nop
400537: 90 nop
400538: 90 nop
400539: 90 nop
40053a: 90 nop
40053b: 90 nop
40053c: 90 nop
40053d: 90 nop
40053e: 90 nop
40053f: 90 nop
0000000000400540 <__libc_csu_init>:
400540: 48 89 6c 24 d8 mov %rbp,-0x28(%rsp)
400545: 4c 89 64 24 e0 mov %r12,-0x20(%rsp)
40054a: 48 8d 2d af 08 20 00 lea 0x2008af(%rip),%rbp # 600e00 <__init_array_end>
400551: 4c 8d 25 a0 08 20 00 lea 0x2008a0(%rip),%r12 # 600df8 <__frame_dummy_init_array_entry>
400558: 4c 89 6c 24 e8 mov %r13,-0x18(%rsp)
40055d: 4c 89 74 24 f0 mov %r14,-0x10(%rsp)
400562: 4c 89 7c 24 f8 mov %r15,-0x8(%rsp)
400567: 48 89 5c 24 d0 mov %rbx,-0x30(%rsp)
40056c: 48 83 ec 38 sub $0x38,%rsp
400570: 4c 29 e5 sub %r12,%rbp
400573: 41 89 fd mov %edi,%r13d
400576: 49 89 f6 mov %rsi,%r14
400579: 48 c1 fd 03 sar $0x3,%rbp
40057d: 49 89 d7 mov %rdx,%r15
400580: e8 0b fe ff ff callq 400390 <_init>
400585: 48 85 ed test %rbp,%rbp
400588: 74 1c je 4005a6 <__libc_csu_init+0x66>
40058a: 31 db xor %ebx,%ebx
40058c: 0f 1f 40 00 nopl 0x0(%rax)
400590: 4c 89 fa mov %r15,%rdx
400593: 4c 89 f6 mov %r14,%rsi
400596: 44 89 ef mov %r13d,%edi
400599: 41 ff 14 dc callq *(%r12,%rbx,8)
40059d: 48 83 c3 01 add $0x1,%rbx
4005a1: 48 39 eb cmp %rbp,%rbx
4005a4: 75 ea jne 400590 <__libc_csu_init+0x50>
4005a6: 48 8b 5c 24 08 mov 0x8(%rsp),%rbx
4005ab: 48 8b 6c 24 10 mov 0x10(%rsp),%rbp
4005b0: 4c 8b 64 24 18 mov 0x18(%rsp),%r12
4005b5: 4c 8b 6c 24 20 mov 0x20(%rsp),%r13
4005ba: 4c 8b 74 24 28 mov 0x28(%rsp),%r14
4005bf: 4c 8b 7c 24 30 mov 0x30(%rsp),%r15
4005c4: 48 83 c4 38 add $0x38,%rsp
4005c8: c3 retq
4005c9: 0f 1f 80 00 00 00 00 nopl 0x0(%rax)
00000000004005d0 <__libc_csu_fini>:
4005d0: f3 c3 repz retq
4005d2: 90 nop
4005d3: 90 nop
Disassembly of section .fini:
00000000004005d4 <_fini>:
4005d4: 48 83 ec 08 sub $0x8,%rsp
4005d8: 48 83 c4 08 add $0x8,%rsp
4005dc: c3 retq