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

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x490]
sub rsp, 0x590
mov rax, qword [0x14004d020]
xor rax, rsp
mov qword [rbp + 0x480], rax
mov edi, r8d
mov dword [rsp + 0x30], r8d
mov rbx, rdx
mov qword [rbp - 0x80], rdx
lea rcx, [rsp + 0x40]
call fcn.140002420
mov rdx, rax
lea rcx, [rbp - 0x78]
call fcn.140002040
nop
mov r8d, edi
xor edx, edx
mov ecx, 0x1fffff
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov r15, rax
mov esi, dword [rbp - 0x68]
inc esi
mov r14d, esi
mov qword [rsp + 0x38], r14
mov dword [rsp + 0x20], 4
mov r9d, 0x1000
mov r8d, esi
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov r12, rax
test rax, rax
je 0x1400052fb
cmp r15, 0xffffffffffffffff
je 0x1400052fb
lea r8, [rbp - 0x78]
cmp qword [rbp - 0x60], 0x10
cmovae r8, qword [rbp - 0x78]
lea r9d, [rsi - 1]
xor esi, esi
mov qword [rsp + 0x20], rsi
mov rdx, rax
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
jne 0x1400050c3
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rdx, qword [rbp - 0x68]
inc rdx
mov r8d, 0x1000
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_VirtualFree]
nop
mov rdx, qword [rbp - 0x60]
cmp rdx, 0x10
jb 0x140005040
inc rdx
mov rcx, qword [rbp - 0x78]
cmp rdx, 0x1000
mov rax, rcx
jb 0x14000503b
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140005349
call fcn.14000dde4
mov qword [rbp - 0x68], rsi
mov qword [rbp - 0x60], 0xf
mov byte [rbp - 0x78], 0
mov rdx, qword [rbx + 0x18]
cmp rdx, 0x10
jb 0x14000508a
inc rdx
mov rcx, qword [rbx]
cmp rdx, 0x1000
jb 0x140005085
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140005355
mov rcx, r8
call fcn.14000dde4
mov qword [rbx + 0x10], rsi
mov qword [rbx + 0x18], 0xf
mov byte [rbx], 0
mov rcx, qword [rbp + 0x480]
xor rcx, rsp
call fcn.14000ddc0
mov rbx, qword [rsp + 0x5d0]
add rsp, 0x590
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
xor r8d, r8d
lea rdx, [0x140046d24]
lea rcx, [rbp - 0x78]
call fcn.1400024f0
mov dword [rsp + 0x60], 0x1c
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rsp + 0x64], xmm0
mov qword [rsp + 0x74], rax
xor edx, edx
lea ecx, [rax + 4]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov r13, rax
lea rcx, [rax - 1]
cmp rcx, 0xfffffffffffffffd
ja 0x1400052d8
xor edx, edx
mov r8d, 0x4d0
lea rcx, [rbp - 0x50]
call fcn.140010570
mov dword [rbp - 0x20], 0x100001
lea rdx, [rsp + 0x60]
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_Thread32First]
test eax, eax
je 0x1400051fe
lea rdx, [rsp + 0x60]
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_Thread32Next]
test eax, eax
je 0x1400051fe
cmp dword [rsp + 0x6c], edi
jne 0x140005137
mov r8d, dword [rsp + 0x68]
xor edx, edx
mov ecx, 0x1fffff
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rdi, rax
lea rcx, [rax - 1]
mov rdx, r12
cmp rcx, 0xfffffffffffffffd
mov rcx, r15
ja 0x14000522d
lea r8, [r14 + 1]
lea rax, [rbp - 0x80]
mov qword [rsp + 0x20], rax
mov r9d, 0x10
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SuspendThread]
cmp eax, 0xffffffff
je 0x1400051e3
lea rdx, [rbp - 0x50]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetThreadContext]
test eax, eax
je 0x1400051e3
mov qword [rbp + 0xa8], r12
lea rdx, [rbp - 0x50]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SetThreadContext]
mov r14d, eax
test eax, eax
je 0x1400051de
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ResumeThread]
cmp r14d, 0xffffffff
jne 0x1400051f5
mov r14, qword [rsp + 0x38]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [rsp + 0x30]
jmp 0x140005137
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r9d, 0x1000
mov r8d, 0x300
mov rdx, r12
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140005005
mov r9d, 0x1000
mov r8d, 0x300
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov rdx, qword [rbp - 0x60]
cmp rdx, 0x10
jb 0x14000528d
inc rdx
mov rcx, qword [rbp - 0x78]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140005288
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000535b
call fcn.14000dde4
mov qword [rbp - 0x68], rsi
mov qword [rbp - 0x60], 0xf
mov byte [rbp - 0x78], 0
mov rdx, qword [rbx + 0x18]
cmp rdx, 0x10
jb 0x14000508a
inc rdx
mov rcx, qword [rbx]
cmp rdx, 0x1000
jb 0x140005085
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x14000534f
jmp 0x140005082
mov r9d, 0x1000
mov r8, r14
mov rdx, r12
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140005005
mov rdx, qword [rbp - 0x60]
cmp rdx, 0x10
jb 0x140005332
inc rdx
mov rcx, qword [rbp - 0x78]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000532d
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140005349
call fcn.14000dde4
xor esi, esi
mov qword [rbp - 0x68], rsi
mov qword [rbp - 0x60], 0xf
mov byte [rbp - 0x78], sil
jmp 0x140005050
call fcn.140014558
nop
call fcn.140014558
int3
call fcn.140014558
nop
call fcn.140014558
int3