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

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rdi
push rbp
lea rbp, [rsp - 0x460]
sub rsp, 0x560
mov rax, qword [0x1800c53c0]
xor rax, rsp
mov qword [rbp + 0x450], rax
lea rdx, [0x180007ce0]
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
test rax, rax
je 0x180007f80
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x1c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_Thread32First]
test eax, eax
je 0x180007f77
mov qword [rsp + 0x570], rsi
xor esi, esi
nop dword [rax]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [rsp + 0x2c], eax
jne 0x180007f59
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov r8d, dword [rsp + 0x28]
cmp r8d, eax
je 0x180007f59
xor edx, edx
lea ecx, [rdx + 0x1a]
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rbx, rax
test rax, rax
je 0x180007f59
mov rcx, rax
mov dword [rbp - 0x50], 0x100010
call qword [sym.imp.KERNEL32.dll_SuspendThread]
lea rdx, [rbp - 0x80]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetThreadContext]
test eax, eax
je 0x180007f47
xor ecx, ecx
mov qword [rbp - 0x38], rsi
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
lea rdx, [rbp - 0x80]
mov qword [rbp - 0x28], rsi
add rax, 0x3000
mov qword [rbp - 0x20], rsi
mov rcx, rbx
mov qword [rbp - 0x30], rax
mov qword [rbp - 0x10], 0x300055
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 + 0x20]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_Thread32Next]
test eax, eax
jne 0x180007ec0
mov rsi, qword [rsp + 0x570]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
call fcn.180004af0
mov rax, qword [0x180118aa8]
lea r9, [rsp + 0x70]
mov edx, 0x10
mov rcx, qword [rax]
add rcx, 0x30
lea r8d, [rdx + 0x30]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
mov r8, qword [0x180118aa8]
lea r9, [rsp + 0x70]
mov edx, 0x10
mov rcx, qword [r8]
mov rax, qword [rcx + 0x30]
mov qword [0x180118908], rax
mov rax, qword [rcx + 0x38]
mov qword [0x180118900], rax
lea rax, [0x180003e70]
mov qword [rcx + 0x30], rax
lea rcx, [0x180003fe0]
mov rax, qword [r8]
mov qword [rax + 0x38], rcx
mov rcx, qword [r8]
mov r8d, dword [rsp + 0x70]
add rcx, 0x30
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
mov rax, qword [0x180118ad0]
lea r9, [rsp + 0x74]
mov edx, 8
mov rcx, qword [rax + 0x10bbcbd0]
lea r8d, [rdx + 0x38]
mov rbx, qword [rcx]
mov rax, qword [rbx + 0x10]
lea rcx, [rbx + 0x10]
mov qword [0x1801188f8], rax
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
lea rax, [0x1800042c0]
mov edx, 8
mov qword [rbx + 0x10], rax
lea r9, [rsp + 0x74]
mov r8d, dword [rsp + 0x74]
lea rcx, [rbx + 0x10]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
mov rax, qword [0x180118ac0]
lea rdx, [rsp + 0x40]
mov r8d, 0x30
mov rdi, qword [rax]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
mov rdx, qword [rsp + 0x58]
lea r9, [rsp + 0x64]
mov rcx, qword [rsp + 0x40]
mov r8d, 4
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
mov rbx, qword [rdi]
lea rax, [0x180004260]
mov qword [rdi], rax
lea r9, [rsp + 0x64]
mov r8d, dword [rsp + 0x64]
mov rdx, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
mov qword [0x1801187d0], rbx
mov rcx, qword [rbp + 0x450]
xor rcx, rsp
call fcn.18006ff20
lea r11, [rsp + 0x560]
mov rbx, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret