Function at 0x1400f9800
Capabilities:
Allocate or change rwx memory
Hook routines via microsoft detours

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
sub rsp, 0x80
lea rbp, [rcx - 0x7ff80000]
mov rbx, rcx
cmp rcx, 0x7ff80000
ja 0x1400f9825
mov ebp, 0x10000
mov qword [rsp + 0x90], rsi
lea rsi, [rcx + 0x7ff80000]
cmp rbx, 0xffffffff80000000
jb 0x1400f9844
mov rsi, 0xfffffffffff80000
mov rax, qword [0x140312870]
mov rcx, qword [0x140312868]
mov qword [rsp + 0x98], rdi
mov qword [rsp + 0xa0], r14
test rax, rax
jne 0x1400f9876
test rcx, rcx
je 0x1400f988d
mov rax, rcx
mov qword [0x140312870], rcx
mov rdx, qword [rax + 0x10]
test rdx, rdx
je 0x1400f988d
cmp rdx, rbp
jb 0x1400f988d
cmp rdx, rsi
jbe 0x1400f9a89
mov qword [0x140312870], rcx
mov rax, rcx
test rcx, rcx
je 0x1400f98c8
test rcx, rcx
je 0x1400f98b8
mov rcx, qword [rax + 0x10]
test rcx, rcx
je 0x1400f98b8
cmp rcx, rbp
jb 0x1400f98b8
cmp rcx, rsi
jbe 0x1400f9a89
mov rax, qword [rax + 8]
mov qword [0x140312870], rax
test rax, rax
jne 0x1400f98a1
movzx eax, bx
sub rbx, rax
mov rdi, rbx
cmp rbx, rbp
jbe 0x1400f995c
mov r14d, 0x6fff0000
lea rax, [rdi - 0x70000000]
mov r8d, gethostbyname
cmp rax, 0x10000000
lea rdx, [rsp + 0x50]
cmovbe rdi, r14
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x1400f995c
cmp dword [rsp + 0x70], 0x10000
jne 0x1400f991f
cmp qword [rsp + 0x68], 0x10000
jae 0x1400f9932
mov rdi, qword [rsp + 0x58]
add rdi, 0xffffffffffff0000
cmp rdi, rbp
ja 0x1400f98e0
jmp 0x1400f995c
mov edx, 0x10000
mov r9d, 0x40
mov r8d, 0x3000
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov qword [0x140312870], rax
test rax, rax
jne 0x1400f9a3e
cmp rbx, rsi
jae 0x1400f9a13
mov edi, 0x80010000
nop word [rax + rax]
lea rax, [rbx - 0x70000000]
mov r8d, gethostbyname
cmp rax, 0x10000000
lea rdx, [rsp + 0x20]
cmovbe rbx, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x1400f9a13
cmp dword [rsp + 0x40], 0x10000
jne 0x1400f99fd
mov rcx, qword [rsp + 0x38]
cmp rcx, 0x10000
jb 0x1400f9a02
movzx edx, bx
test rdx, rdx
je 0x1400f99d7
mov rbx, qword [rsp + 0x20]
mov eax, 0x10000
sub rax, rdx
sub rcx, rax
add rbx, rax
mov qword [rsp + 0x38], rcx
mov qword [rsp + 0x20], rbx
mov edx, 0x10000
mov r9d, 0x40
mov r8d, 0x3000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov qword [0x140312870], rax
test rax, rax
jne 0x1400f9a3e
mov rcx, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x20]
add rbx, rcx
cmp rbx, rsi
jb 0x1400f9970
xor eax, eax
mov r14, qword [rsp + 0xa0]
mov rdi, qword [rsp + 0x98]
mov rsi, qword [rsp + 0x90]
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rbp
ret
mov rcx, qword [0x140312868]
lea rdx, [rax + 0xffd8]
xor r8d, r8d
mov qword [rax + 8], rcx
lea rcx, [rax + 0xffb8]
mov dword [rax], 0x52727464
mov qword [rax + 0x10], r8
mov r9d, 0x48f
mov qword [0x140312868], rax
mov qword [rdx], r8
lea rdx, [rdx - 0x38]
mov r8, rcx
sub rcx, 0x38
sub r9, 1
jne 0x1400f9a71
mov qword [rax + 0x10], r8
mov rdx, qword [rax + 0x10]
cmp rdx, rbp
jb 0x1400f9a13
cmp rdx, rsi
ja 0x1400f9a13
mov rcx, qword [rdx + 0x20]
mov qword [rax + 0x10], rcx
movabs rax, 0xcccccccccccccccc
mov qword [rdx], rax
mov qword [rdx + 8], rax
mov qword [rdx + 0x10], rax
mov qword [rdx + 0x18], rax
mov qword [rdx + 0x20], rax
mov qword [rdx + 0x28], rax
mov qword [rdx + 0x30], rax
mov rax, rdx
jmp 0x1400f9a15