Skip to content

Commit

Permalink
Update 2024-11-10-x64 Assembly & Shellcoding 101 - Part 5.md
Browse files Browse the repository at this point in the history
  • Loading branch information
g3tsyst3m authored Nov 10, 2024
1 parent c6e22c5 commit 214123d
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions _posts/2024-11-10-x64 Assembly & Shellcoding 101 - Part 5.md
Original file line number Diff line number Diff line change
Expand Up @@ -80,11 +80,9 @@ kernel32findfunction: ; Loop over Export Address Table to find WinAp
mov ebx, [r11+rcx*4] ; EBX = RVA for first AddressOfName
add rbx, r8 ; RBX = Function name VMA / add kernel32 base address to RVA and get WinApi name
dec rcx ; Decrement our loop by one, this goes from Z to A
mov r9, qword [rax] ; R9 = "GetProcA"
cmp [rbx], r9 ; Compare first 8 bytes
jnz kernel32findfunction ; If not equal, continue loop
; Check next part for "aryA" (4 bytes)
mov r9d, dword [rax + 8] ; R9 = "ddress"
cmp [rbx + 8], r9d ; Compare remaining part
jz FunctionNameFound ; If match, function found
Expand Down

0 comments on commit 214123d

Please sign in to comment.