Skip to content

Instantly share code, notes, and snippets.

@israellot
Created March 26, 2024 20:40
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 israellot/81d6fbbc1bbefd9b651749708d9b6e12 to your computer and use it in GitHub Desktop.
Save israellot/81d6fbbc1bbefd9b651749708d9b6e12 to your computer and use it in GitHub Desktop.
; Method ArrayAccessExample:Get(int):int:this (FullOpts)
G_M000_IG01: ;; offset=0x0000
sub rsp, 40
G_M000_IG02: ;; offset=0x0004
mov rax, gword ptr [rcx+0x08]
cmp edx, dword ptr [rax+0x08]
jae SHORT G_M000_IG04
mov ecx, edx
mov eax, dword ptr [rax+4*rcx+0x10]
G_M000_IG03: ;; offset=0x0013
add rsp, 40
ret
G_M000_IG04: ;; offset=0x0018
call CORINFO_HELP_RNGCHKFAIL
int3
; Total bytes of code: 30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment