Last active
April 13, 2018 17:35
-
-
Save ocoanet/5c94c96971ab5596edab16854966af3c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// fixed (int* pointer = _array) | |
00007FFD3B9E0620 sub rsp,28h | |
00007FFD3B9E0624 xor eax,eax | |
00007FFD3B9E0626 mov qword ptr [rsp+20h],rax | |
00007FFD3B9E062B mov rax,qword ptr [rcx+8] | |
00007FFD3B9E062F mov qword ptr [rsp+20h],rax | |
00007FFD3B9E0634 test rax,rax | |
00007FFD3B9E0637 je 00007FFD3B9E0644 | |
00007FFD3B9E0639 mov rax,qword ptr [rsp+20h] | |
00007FFD3B9E063E cmp dword ptr [rax+8],0 | |
00007FFD3B9E0642 jne 00007FFD3B9E0648 | |
00007FFD3B9E0644 xor eax,eax | |
00007FFD3B9E0646 jmp 00007FFD3B9E065C | |
00007FFD3B9E0648 mov rax,qword ptr [rsp+20h] | |
00007FFD3B9E064D cmp dword ptr [rax+8],0 | |
00007FFD3B9E0651 jbe 00007FFD3B9E066A | |
00007FFD3B9E0653 mov rax,qword ptr [rsp+20h] | |
00007FFD3B9E0658 add rax,10h | |
// { | |
// return pointer[Index]; | |
00007FFD3B9E065C mov edx,dword ptr [rcx+18h] | |
00007FFD3B9E065F movsxd rdx,edx | |
00007FFD3B9E0662 mov eax,dword ptr [rax+rdx*4] | |
00007FFD3B9E0665 add rsp,28h | |
00007FFD3B9E0669 ret |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment