Function at 0x14000c964
Capabilities:
Allocate or change rwx memory
Hook routines via microsoft detours
Resume thread

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 8], rcx
push rsi
push rdi
push r14
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
nop dword [rax + rax]
cmp dword [0x140018858], eax
je 0x14000c999
mov eax, 0x10dd
jmp 0x14000cc3b
xor r14d, r14d
cmp dword [0x14001885c], r14d
je 0x14000c9af
call fcn.14000c784
jmp 0x14000cc35
mov rbx, qword [0x140018818]
mov ebp, r14d
jmp 0x14000ca3e
mov rdx, qword [rbx + 0x20]
cmp dword [rbx + 8], r14d
je 0x14000c9e0
movzx r8d, byte [rdx + 0x3e]
add rdx, 0x20
mov rcx, qword [rbx + 0x18]
call sub.msvcrt.dll_memcpy
mov rax, qword [rbx + 0x18]
jmp 0x14000ca34
lea rcx, [rdx + 0x58]
mov word [rcx], 0x25ff
lea rax, [rcx + 6]
sub edx, eax
add edx, 0x50
mov dword [rcx + 2], edx
mov rdx, qword [rbx + 0x18]
mov rcx, qword [rbx + 0x20]
add rcx, 0x58
mov byte [rdx], 0xe9
lea rax, [rdx + 5]
sub ecx, eax
mov dword [rdx + 1], ecx
lea rcx, [rdx + 5]
mov rax, qword [rbx + 0x20]
mov r8, qword [rax + 0x48]
sub r8, rcx
cmp rcx, qword [rax + 0x48]
cmova r8, r14
test r8, r8
je 0x14000ca30
mov dl, 0xcc
call sub.msvcrt.dll_memset
mov rax, qword [rbx + 0x20]
mov rcx, qword [rbx + 0x10]
mov qword [rcx], rax
mov rbx, qword [rbx]
test rbx, rbx
jne 0x14000c9be
mov rbx, qword [0x140018850]
jmp 0x14000ca5c
mov rcx, qword [rbx + 8]
call fcn.14000bc2c
mov rbx, qword [rbx]
test rbx, rbx
jne 0x14000ca50
mov rbx, qword [0x140018828]
jmp 0x14000ca76
mov rcx, qword [rbx + 8]
call fcn.14000bc2c
mov rbx, qword [rbx]
test rbx, rbx
jne 0x14000ca6a
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
nop dword [rax + rax]
mov rbx, qword [0x140018818]
mov rdi, rax
jmp 0x14000cab2
mov rcx, qword [rbx + 0x20]
mov rdx, qword [rbx + 0x18]
movzx r8d, byte [rcx + 0x3e]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FlushInstructionCache]
nop dword [rax + rax]
mov rbx, qword [rbx]
test rbx, rbx
jne 0x14000ca93
mov rbx, qword [0x140018850]
jmp 0x14000cad3
mov rcx, qword [rbx + 8]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
nop dword [rax + rax]
mov rbx, qword [rbx]
test rbx, rbx
jne 0x14000cac0
mov rdi, qword [0x140018828]
test rdi, rdi
je 0x14000cb1b
mov rcx, qword [rdi + 8]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
nop dword [rax + rax]
mov rdi, qword [rdi]
test rdi, rdi
jne 0x14000cae4
mov rdi, qword [0x140018828]
test rdi, rdi
je 0x14000cb1b
mov rbx, qword [rdi]
mov rcx, rdi
call fcn.140001c24
mov rdi, rbx
test rbx, rbx
jne 0x14000cb08
mov rdi, qword [0x140018818]
mov qword [0x140018828], r14
mov qword [0x140018850], r14
test rdi, rdi
je 0x14000cba5
mov rax, qword [rdi + 0x20]
lea r9, [rsp + 0x40]
mov r8d, dword [rdi + 0x28]
mov rcx, qword [rdi + 0x18]
movzx edx, byte [rax + 0x3e]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
nop dword [rax + rax]
cmp dword [rdi + 8], r14d
je 0x14000cb92
mov rsi, qword [rdi + 0x20]
test rsi, rsi
je 0x14000cb92
xor edx, edx
mov rbx, rsi
and rbx, 0xffffffffffff0000
mov rcx, rsi
lea r8d, [rdx + 0x60]
call sub.msvcrt.dll_memset
mov rax, qword [rbx + 0x10]
mov ebp, 1
mov qword [rsi + 0x48], rax
mov qword [rbx + 0x10], rsi
mov qword [rdi + 0x20], r14
mov rbx, qword [rdi]
mov rcx, rdi
call fcn.140001c24
mov rdi, rbx
test rbx, rbx
jne 0x14000cb35
mov qword [0x140018818], r14
test ebp, ebp
je 0x14000cc29
cmp dword [0x140018830], r14d
jne 0x14000cc29
mov rcx, qword [0x140018838]
lea rbx, [0x140018838]
jmp 0x14000cc24
cmp dword [rcx], 0x52727464
jne 0x14000cc4f
lea r8, [rcx + 0x10000]
mov edx, r14d
lea rax, [rcx + 0xa8]
cmp qword [rax], r14
je 0x14000cbf1
cmp qword [rax], rcx
jb 0x14000cc4f
cmp qword [rax], r8
jae 0x14000cc4f
inc edx
add rax, 0x60
cmp edx, 0x2a9
jb 0x14000cbe2
mov rax, qword [rcx + 8]
xor edx, edx
mov r8d, 0x8000
mov qword [rbx], rax
call qword [sym.imp.KERNEL32.dll_VirtualFree]
nop dword [rax + rax]
mov qword [0x140018848], r14
mov rcx, qword [rbx]
test rcx, rcx
jne 0x14000cbc9
call fcn.14000c210
mov dword [0x140018858], r14d
mov eax, dword [0x14001885c]
mov rbx, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rsi
ret
lea rbx, [rcx + 8]
jmp 0x14000cc21