Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- prog: file format elf64-x86-64
- Disassembly of section .text:
- 0000000000401000 <_start>:
- 401000: 4c 8d 14 25 6b 11 40 lea r10,ds:0x40116b
- 401007: 00
- 401008: 41 bb 06 00 00 00 mov r11d,0x6
- 40100e: e8 00 00 00 00 call 401013 <_start+0x13>
- 401013: 58 pop rax
- 401014: 48 83 c0 0a add rax,0xa
- 401018: e9 a6 00 00 00 jmp 4010c3 <print>
- 40101d: 58 pop rax
- 40101e: 48 83 ec 20 sub rsp,0x20
- 401022: 49 89 e2 mov r10,rsp
- 401025: 41 bb 19 00 00 00 mov r11d,0x19
- 40102b: e8 00 00 00 00 call 401030 <_start+0x30>
- 401030: 58 pop rax
- 401031: 48 83 c0 0a add rax,0xa
- 401035: e9 9f 00 00 00 jmp 4010d9 <read>
- 40103a: 58 pop rax
- 40103b: 48 8d 04 25 5f 10 40 lea rax,ds:0x40105f
- 401042: 00
- 401043: 50 push rax
- 401044: 50 push rax
- 401045: 48 8d 04 25 5d 10 40 lea rax,ds:0x40105d
- 40104c: 00
- 40104d: 48 89 e5 mov rbp,rsp
- 401050: 48 8d 24 25 f1 10 40 lea rsp,ds:0x4010f1
- 401057: 00
- 401058: e9 94 00 00 00 jmp 4010f1 <key>
- 000000000040105d <_start.continuation>:
- 40105d: c9 leave
- 40105e: c3 ret
- 000000000040105f <correct>:
- 40105f: 4c 8d 14 25 71 11 40 lea r10,ds:0x401171
- 401066: 00
- 401067: 41 bb 09 00 00 00 mov r11d,0x9
- 40106d: e8 00 00 00 00 call 401072 <correct+0x13>
- 401072: 58 pop rax
- 401073: 48 83 c0 07 add rax,0x7
- 401077: eb 4a jmp 4010c3 <print>
- 401079: 58 pop rax
- 40107a: e8 2c 00 00 00 call 4010ab <exit>
- 000000000040107f <incorrect>:
- 40107f: 4c 8d 14 25 7a 11 40 lea r10,ds:0x40117a
- 401086: 00
- 401087: 41 bb 09 00 00 00 mov r11d,0x9
- 40108d: b8 01 00 00 00 mov eax,0x1
- 401092: bf 01 00 00 00 mov edi,0x1
- 401097: 4c 89 d6 mov rsi,r10
- 40109a: 4c 89 da mov rdx,r11
- 40109d: 0f 05 syscall
- 40109f: eb 0a jmp 4010ab <exit>
- 00000000004010a1 <syscall>:
- 4010a1: 55 push rbp
- 4010a2: 48 89 e5 mov rbp,rsp
- 4010a5: 48 83 ec 40 sub rsp,0x40
- 4010a9: 0f 05 syscall
- 00000000004010ab <exit>:
- 4010ab: b8 4a 00 00 00 mov eax,0x4a
- 4010b0: bf 01 00 00 00 mov edi,0x1
- 4010b5: 0f 05 syscall
- 4010b7: b8 3c 00 00 00 mov eax,0x3c
- 4010bc: bf 00 00 00 00 mov edi,0x0
- 4010c1: 0f 05 syscall
- 00000000004010c3 <print>:
- 4010c3: 50 push rax
- 4010c4: b8 01 00 00 00 mov eax,0x1
- 4010c9: bf 01 00 00 00 mov edi,0x1
- 4010ce: 4c 89 d6 mov rsi,r10
- 4010d1: 4c 89 da mov rdx,r11
- 4010d4: 0f 05 syscall
- 4010d6: 58 pop rax
- 4010d7: ff d0 call rax
- 00000000004010d9 <read>:
- 4010d9: 50 push rax
- 4010da: b8 00 00 00 00 mov eax,0x0
- 4010df: bf 00 00 00 00 mov edi,0x0
- 4010e4: 4c 89 d6 mov rsi,r10
- 4010e7: 4c 89 da mov rdx,r11
- 4010ea: 0f 05 syscall
- 4010ec: 58 pop rax
- 4010ed: ff d0 call rax
- 4010ef: c9 leave
- 4010f0: c3 ret
- 00000000004010f1 <key>:
- 4010f1: 49 89 c6 mov r14,rax
- 4010f4: 41 b8 00 00 00 00 mov r8d,0x0
- 4010fa: b8 00 00 00 00 mov eax,0x0
- 4010ff: 48 8d 1c 25 0e 11 40 lea rbx,ds:0x40110e
- 401106: 00
- 0000000000401107 <key.funny>:
- 401107: 66 b8 48 31 mov ax,0x3148
- 40110b: f9 stc
- 40110c: ff e3 jmp rbx
- 000000000040110e <key.loop>:
- 40110e: 41 88 c1 mov r9b,al
- 401111: 4d 0f b6 c9 movzx r9,r9b
- 401115: 42 8a 0c 0c mov cl,BYTE PTR [rsp+r9*1]
- 401119: 43 8a 3c 10 mov dil,BYTE PTR [r8+r10*1]
- 40111d: 48 8d 1d 0a 00 00 00 lea rbx,[rip+0xa] # 40112e <key.continuation>
- 401124: 4c 8d 0d de ff ff ff lea r9,[rip+0xffffffffffffffde] # 401109 <key.funny+0x2>
- 40112b: 41 ff e1 jmp r9
- 000000000040112e <key.continuation>:
- 40112e: 41 8a b8 83 11 40 00 mov dil,BYTE PTR [r8+0x401183]
- 401135: 40 38 f9 cmp cl,dil
- 401138: 0f 85 41 ff ff ff jne 40107f <incorrect>
- 40113e: 66 a9 01 00 test ax,0x1
- 401142: 74 18 je 40115c <key.even>
- 0000000000401144 <key.odd>:
- 401144: 66 89 c3 mov bx,ax
- 401147: 66 d1 e0 shl ax,1
- 40114a: 66 01 d8 add ax,bx
- 40114d: 66 ff c0 inc ax
- 401150: 49 ff c0 inc r8
- 401153: 49 83 f8 18 cmp r8,0x18
- 401157: 7c b5 jl 40110e <key.loop>
- 401159: 41 ff e6 jmp r14
- 000000000040115c <key.even>:
- 40115c: 66 d1 e8 shr ax,1
- 40115f: 49 ff c0 inc r8
- 401162: 49 83 f8 18 cmp r8,0x18
- 401166: 7c a6 jl 40110e <key.loop>
- 401168: 41 ff e6 jmp r14
- 000000000040116b <prompt>:
- 40116b: 66 6c data16 ins BYTE PTR es:[rdi],dx
- 40116d: 61 (bad)
- 40116e: 67 3f addr32 (bad)
- 401170: 20 .byte 0x20
- 0000000000401171 <correct_msg>:
- 401171: 63 6f 72 movsxd ebp,DWORD PTR [rdi+0x72]
- 401174: 72 65 jb 4011db <data+0x58>
- 401176: 63 74 21 0a movsxd esi,DWORD PTR [rcx+riz*1+0xa]
- 000000000040117a <incorrect_msg>:
- 40117a: 77 72 ja 4011ee <data+0x6b>
- 40117c: 6f outs dx,DWORD PTR ds:[rsi]
- 40117d: 6e outs dx,BYTE PTR ds:[rsi]
- 40117e: 67 20 3a and BYTE PTR [edx],bh
- 401181: 28 0a sub BYTE PTR [rdx],cl
- 0000000000401183 <data>:
- 401183: f2 0f 6c (bad)
- 401186: ec in al,dx
- 401187: 1a e2 sbb ah,dl
- 401189: 57 push rdi
- 40118a: 70 70 jo 4011fc <data+0x79>
- 40118c: 86 ea xchg dl,ch
- 40118e: ba b5 63 cf 8c mov edx,0x8ccf63b5
- 401193: f8 clc
- 401194: 0b 6c e0 6e or ebp,DWORD PTR [rax+riz*8+0x6e]
- 401198: 15 .byte 0x15
- 401199: 53 push rbx
- 40119a: 45 rex.RB
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement