Function at 0x180015990
Capabilities:
Allocate or change rwx memory
Enumerate threads
Hijack thread execution
Resume thread
Suspend thread

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
lea rbp, [rsp - 0x420]
sub rsp, 0x520
mov rax, qword [0x18006a068]
cmp byte [rax + 0xf], 0
je 0x180015b37
xorps xmm0, xmm0
mov word [rbp + 0x440], 0x39eb
mov edx, 2
mov qword [rsp + 0x40], 0
lea rcx, [rsp + 0x30]
movdqu xmmword [rsp + 0x30], xmm0
call fcn.1800115e0
mov rdi, qword [rsp + 0x30]
movzx eax, word [rbp + 0x440]
mov word [rdi], ax
lea rbx, [rdi + 2]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea rcx, [rbp + 0x448]
sub rbx, rdi
mov qword [rsp + 0x20], rcx
movabs rsi, 0x140e7a41b
mov rcx, rax
mov r9d, 0x40
mov r8, rbx
mov rdx, rsi
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
mov r8, rbx
mov rdx, rdi
mov rcx, rsi
call sub.VCRUNTIME140.dll_memcpy
mov rdx, qword [rsp + 0x40]
mov rax, rdi
sub rdx, rdi
cmp rdx, 0x1000
jb 0x180015a67
mov rdi, qword [rdi - 8]
add rdx, 0x27
sub rax, rdi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180015a67
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, rdi
call fcn.180052afc
xorps xmm0, xmm0
mov word [rbp + 0x440], 0xeeb
mov edx, 2
mov qword [rsp + 0x40], 0
lea rcx, [rsp + 0x30]
movdqu xmmword [rsp + 0x30], xmm0
call fcn.1800115e0
mov rdi, qword [rsp + 0x30]
movzx eax, word [rbp + 0x440]
mov word [rdi], ax
lea rbx, [rdi + 2]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea rcx, [rbp + 0x448]
sub rbx, rdi
mov qword [rsp + 0x20], rcx
movabs rsi, 0x140e7a9ae
mov rcx, rax
mov r9d, 0x40
mov r8, rbx
mov rdx, rsi
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
mov r8, rbx
mov rdx, rdi
mov rcx, rsi
call sub.VCRUNTIME140.dll_memcpy
mov rdx, qword [rsp + 0x40]
mov rax, rdi
sub rdx, rdi
cmp rdx, 0x1000
jb 0x180015b1e
mov rdi, qword [rdi - 8]
add rdx, 0x27
sub rax, rdi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180015b1e
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, rdi
call fcn.180052afc
movabs rax, 0x1404c95ad
mov qword [0x18006a950], rax
lea rdx, [0x1800153b0]
mov ecx, 1
call qword [sym.imp.KERNEL32.dll_AddVectoredExceptionHandler]
xor edx, edx
lea ecx, [rdx + 4]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x180015c71
xorps xmm0, xmm0
mov qword [rsp + 0x44], 0
lea rdx, [rsp + 0x30]
mov dword [rsp + 0x30], 0x1c
mov rcx, rax
movdqu xmmword [rsp + 0x34], xmm0
call qword [sym.imp.KERNEL32.dll_Thread32First]
test eax, eax
je 0x180015c68
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [rsp + 0x3c], eax
jne 0x180015c52
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov r8d, dword [rsp + 0x38]
cmp r8d, eax
je 0x180015c52
xor edx, edx
mov ecx, 0x1fffff
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rbx, rax
test rax, rax
je 0x180015c52
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SuspendThread]
xor edx, edx
lea rcx, [rsp + 0x50]
mov r8d, 0x4d0
call sub.VCRUNTIME140.dll_memset
lea rdx, [rsp + 0x50]
mov dword [rbp - 0x80], 0x10001f
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetThreadContext]
mov rax, qword [0x18006a950]
lea rdx, [rsp + 0x50]
mov qword [rbp - 0x68], rax
mov rcx, rbx
mov rax, qword [0x18006a940]
mov qword [rbp - 0x60], rax
mov rax, qword [0x18006a948]
mov qword [rbp - 0x58], rax
mov rax, qword [0x18006a958]
mov qword [rbp - 0x50], rax
mov qword [rbp - 0x40], 0x455
call qword [sym.imp.KERNEL32.dll_SetThreadContext]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rdx, [rsp + 0x30]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_Thread32Next]
test eax, eax
jne 0x180015b91
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbx, qword [rsp + 0x550]
add rsp, 0x520
pop rdi
pop rsi
pop rbp
ret