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

Disassembly:
mov rax, rsp
push rbp
push rdi
push r14
lea rbp, [rax - 0x5f]
sub rsp, 0xe0
mov qword [rbp - 0x51], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov rax, qword [0x1801b0238]
xor rax, rsp
mov qword [rbp + 0x37], rax
mov rbx, rcx
mov rcx, qword [rcx + 0x98]
lea rax, [rcx - 0x80000000]
cmp rcx, rax
jbe 0x180042e0b
mov edi, 0x80000000
nop dword [rax + rax]
mov r8d, 0x30
lea rdx, [rbp - 0x49]
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x180042e0b
cmp dword [rbp - 0x29], 0x10000
jne 0x180042df5
mov edx, 0x1000
mov r9d, 0x40
mov r8d, 0x3000
mov rcx, qword [rbp - 0x49]
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov qword [rbx + 0x88], rax
test rax, rax
jne 0x180042e0b
mov rcx, qword [rbp - 0x49]
dec rcx
mov rax, qword [rbx + 0x98]
sub rax, rdi
cmp rcx, rax
ja 0x180042db0
cmp qword [rbx + 0x88], 0
je 0x180042ef2
mov byte [rbx + 0x90], 1
xor r14b, r14b
mov r8d, 0x10
mov rdx, qword [rbx + 0x98]
mov rcx, rbx
call fcn.180042620
lea rsi, [rbx + 0xa8]
mov dword [rsi], eax
mov dword [rbx + 0x84], eax
mov edi, 6
test eax, eax
jne 0x180042ef9
mov r14b, 1
mov r8d, edi
mov rdx, qword [rbx + 0x98]
mov rcx, rbx
call fcn.180042620
mov dword [rsi], eax
test eax, eax
jne 0x180042ef9
xor edi, edi
mov qword [rbp - 9], rdi
mov qword [rbp - 1], 0xf
mov byte [rbp - 0x19], dil
lea r8d, [rax + 0x2d]
lea rdx, str.PolyHook_x64Detour:_Function_to_small_to_hook
lea rcx, [rbp - 0x19]
call fcn.18000f070
nop
lea rax, vtable.PLH::RuntimeError.0
mov qword [rbp + 7], rax
mov qword [rbp + 0x27], rdi
mov qword [rbp + 0x2f], 0xf
mov byte [rbp + 0x17], dil
mov dword [rbp + 0xf], 2
or r9, 0xffffffffffffffff
xor r8d, r8d
lea rdx, [rbp - 0x19]
lea rcx, [rbp + 0x17]
call fcn.18000ed80
nop
mov rax, qword [rbx]
lea rdx, [rbp + 7]
mov rcx, rbx
call qword [rax + 0x28]
nop
lea rcx, [rbp + 0x17]
call fcn.18000ec30
nop
lea rcx, [rbp - 0x19]
call fcn.18000ec30
xor al, al
jmp 0x1800430f8
mov r8d, eax
lea rcx, [rbx + 0x41]
mov rdx, qword [rbx + 0x98]
call sub.VCRUNTIME140.dll_memcpy
mov r8d, dword [rsi]
mov rdx, qword [rbx + 0x98]
mov rcx, qword [rbx + 0x88]
call sub.VCRUNTIME140.dll_memcpy
mov rdx, qword [rbx + 0x88]
mov qword [rsp + 0x20], rdx
mov r9, qword [rbx + 0x98]
mov r8, rsi
mov rcx, rbx
call fcn.180042750
mov ecx, dword [rsi]
mov rdx, qword [rbx + 0x98]
add rdx, rcx
mov rax, qword [rbx + 0x88]
mov dword [rbp - 0x19], 0xccb84850
mov dword [rbp - 0x15], 0xcccccccc
mov dword [rbp - 0x11], 0x48cccccc
mov dword [rbp - 0xd], 0xc3240487
movups xmm0, xmmword [rbp - 0x19]
movups xmmword [rcx + rax], xmm0
mov qword [rcx + rax + 3], rdx
mov edx, dword [rsi]
mov rcx, qword [rbx + 0x98]
mov qword [rbp - 0x69], rcx
mov qword [rbp - 0x61], rdx
mov dword [rbp - 0x59], 0x40
lea r9, [rbp - 0x55]
mov r8d, 0x40
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
nop
mov rax, qword [rbx + 0x98]
test r14b, r14b
je 0x180042ff3
mov byte [rax], 0xff
mov rax, qword [rbx + 0x98]
mov byte [rax + 1], 0x25
mov ecx, dword [rsi]
add ecx, 0x10
add rcx, qword [rbx + 0x88]
mov rax, qword [rbx + 0x98]
sub ecx, eax
lea edx, [rcx - 6]
mov dword [rax + 2], edx
mov edx, dword [rsi]
add edx, 0x10
mov rcx, qword [rbx + 0x88]
mov rax, qword [rbx + 0xa0]
mov qword [rdx + rcx], rax
jmp 0x180043026
mov edi, 0x10
mov rcx, qword [rbx + 0xa0]
mov dword [rbp - 0x19], 0xccb84850
mov dword [rbp - 0x15], 0xcccccccc
mov dword [rbp - 0x11], 0x48cccccc
mov dword [rbp - 0xd], 0xc3240487
movups xmm0, xmmword [rbp - 0x19]
movups xmmword [rax], xmm0
mov qword [rax + 3], rcx
cmp edi, dword [rbx + 0x84]
jae 0x180043049
mov ecx, edi
mov rax, qword [rbx + 0x98]
mov byte [rcx + rax], 0x90
inc edi
lea rcx, [rcx + 1]
cmp edi, dword [rbx + 0x84]
jb 0x180043030
mov edi, dword [rsi]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov r8d, edi
mov rdx, qword [rbx + 0x98]
call qword [sym.imp.KERNEL32.dll_FlushInstructionCache]
xor edi, edi
mov qword [rbp - 9], rdi
mov qword [rbp - 1], 0xf
mov byte [rbp - 0x19], dil
lea r8d, [rdi + 0x32]
lea rdx, str.PolyHook_x64Detour:_Relocation_can_be_out_of_range
lea rcx, [rbp - 0x19]
call fcn.18000f070
nop
lea rax, vtable.PLH::RuntimeError.0
mov qword [rbp + 7], rax
mov qword [rbp + 0x27], rdi
mov qword [rbp + 0x2f], 0xf
mov byte [rbp + 0x17], dil
mov dword [rbp + 0xf], edi
or r9, 0xffffffffffffffff
xor r8d, r8d
lea rdx, [rbp - 0x19]
lea rcx, [rbp + 0x17]
call fcn.18000ed80
nop
mov rax, qword [rbx]
lea rdx, [rbp + 7]
mov rcx, rbx
call qword [rax + 0x28]
nop
lea rcx, [rbp + 0x17]
call fcn.18000ec30
nop
lea rcx, [rbp - 0x19]
call fcn.18000ec30
nop
lea r9, [rbp - 0x55]
mov r8d, dword [rbp - 0x55]
mov rdx, qword [rbp - 0x61]
mov rcx, qword [rbp - 0x69]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
mov al, 1
mov rcx, qword [rbp + 0x37]
xor rcx, rsp
call fcn.1800e5f40
lea r11, [rsp + 0xe0]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret