Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@rmolina
Created July 29, 2016 01:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rmolina/704a205dbd75950fe56c0e2351bfbc82 to your computer and use it in GitHub Desktop.
Save rmolina/704a205dbd75950fe56c0e2351bfbc82 to your computer and use it in GitHub Desktop.
.text:00000000004006D6 ; =============== S U B R O U T I N E =======================================
.text:00000000004006D6
.text:00000000004006D6 ; Attributes: bp-based frame
.text:00000000004006D6
.text:00000000004006D6 public tang0
.text:00000000004006D6 tang0 proc near ; CODE XREF: t0k3n_g3n+3F↓p
.text:00000000004006D6
.text:00000000004006D6 var_94 = dword ptr -94h
.text:00000000004006D6 var_90 = dword ptr -90h
.text:00000000004006D6 var_4 = dword ptr -4
.text:00000000004006D6
.text:00000000004006D6 push rbp
.text:00000000004006D7 mov rbp, rsp
.text:00000000004006DA sub rsp, 0A0h
.text:00000000004006E1 mov [rbp+var_94], edi
.text:00000000004006E7 mov [rbp+var_4], 0A9h
.text:00000000004006EE mov eax, [rbp+var_94]
.text:00000000004006F4 imul eax, 0A9h
.text:00000000004006FA cdq
.text:00000000004006FB idiv [rbp+var_4]
.text:00000000004006FE cmp eax, [rbp+var_94]
.text:0000000000400704 jnz short loc_400770
.text:0000000000400706 lea rax, [rbp+var_90]
.text:000000000040070D mov edx, offset unk_400A40
.text:0000000000400712 mov ecx, 11h
.text:0000000000400717 mov rdi, rax
.text:000000000040071A mov rsi, rdx
.text:000000000040071D rep movsq
.text:0000000000400720 mov rdx, rsi
.text:0000000000400723 mov rax, rdi
.text:0000000000400726 mov ecx, [rdx]
.text:0000000000400728 mov [rax], ecx
.text:000000000040072A lea rax, [rax+4]
.text:000000000040072E lea rdx, [rdx+4]
.text:0000000000400732 mov [rbp+var_94], 0
.text:000000000040073C jmp short loc_400765
.text:000000000040073E ; ---------------------------------------------------------------------------
.text:000000000040073E
.text:000000000040073E loc_40073E: ; CODE XREF: tang0+96↓j
.text:000000000040073E mov eax, [rbp+var_94]
.text:0000000000400744 cdqe
.text:0000000000400746 mov eax, [rbp+rax*4+var_90]
.text:000000000040074D mov esi, eax
.text:000000000040074F mov edi, offset format ; "&#x%x;\n"
.text:0000000000400754 mov eax, 0
.text:0000000000400759 call _printf
.text:000000000040075E add [rbp+var_94], 1
.text:0000000000400765
.text:0000000000400765 loc_400765: ; CODE XREF: tang0+66↑j
.text:0000000000400765 cmp [rbp+var_94], 22h
.text:000000000040076C jle short loc_40073E
.text:000000000040076E jmp short locret_40077A
.text:0000000000400770 ; ---------------------------------------------------------------------------
.text:0000000000400770
.text:0000000000400770 loc_400770: ; CODE XREF: tang0+2E↑j
.text:0000000000400770 mov edi, offset s ; "So close...but it's not gonna happen"
.text:0000000000400775 call _puts
.text:000000000040077A
.text:000000000040077A locret_40077A: ; CODE XREF: tang0+98↑j
.text:000000000040077A leave
.text:000000000040077B retn
.text:000000000040077B tang0 endp
.text:000000000040077B
.text:000000000040077C
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment