Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save wholivesinapineappleunderthesea/b4433fbf262ff92d1f1d6556aed106bc to your computer and use it in GitHub Desktop.
Save wholivesinapineappleunderthesea/b4433fbf262ff92d1f1d6556aed106bc to your computer and use it in GitHub Desktop.
funnymemcpy
stupid_memcpy_multiple_of_two PROC
mov rax, rsp
lea rsp, [rcx+r8]
_next_word:
mov r9w, [rdx+r8]
push r9w
sub r8, 2
test r8, r8
jnz _next_word
mov rsp, rax
ret
stupid_memcpy_multiple_of_two ENDP
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment