Function at 0x140004d60
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.140002350
mov rdx, rax
lea rcx, [rbp - 0x78]
call fcn.140001f70
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 0x14000514b
cmp r15, 0xffffffffffffffff
je 0x14000514b
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 0x140004f13
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 0x140004e90
inc rdx
mov rcx, qword [rbp - 0x78]
cmp rdx, 0x1000
mov rax, rcx
jb 0x140004e8b
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140005199
call fcn.14000dad4
mov qword [rbp - 0x68], rsi
mov qword [rbp - 0x60], 0xf
mov byte [rbp - 0x78], 0
mov rdx, qword [rbx + 0x18]
cmp rdx, 0x10
jb 0x140004eda
inc rdx
mov rcx, qword [rbx]
cmp rdx, 0x1000
jb 0x140004ed5
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x1400051a5
mov rcx, r8
call fcn.14000dad4
mov qword [rbx + 0x10], rsi
mov qword [rbx + 0x18], 0xf
mov byte [rbx], 0
mov rcx, qword [rbp + 0x480]
xor rcx, rsp
call fcn.14000dab0
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, [0x140046cc8]
lea rcx, [rbp - 0x78]
call fcn.140002420
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 0x140005128
xor edx, edx
mov r8d, 0x4d0
lea rcx, [rbp - 0x50]
call fcn.140010260
mov dword [rbp - 0x20], 0x100001
lea rdx, [rsp + 0x60]
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_Thread32First]
test eax, eax
je 0x14000504e
lea rdx, [rsp + 0x60]
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_Thread32Next]
test eax, eax
je 0x14000504e
cmp dword [rsp + 0x6c], edi
jne 0x140004f87
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 0x14000507d
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 0x140005033
lea rdx, [rbp - 0x50]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetThreadContext]
test eax, eax
je 0x140005033
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 0x14000502e
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ResumeThread]
cmp r14d, 0xffffffff
jne 0x140005045
mov r14, qword [rsp + 0x38]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [rsp + 0x30]
jmp 0x140004f87
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 0x140004e55
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 0x1400050dd
inc rdx
mov rcx, qword [rbp - 0x78]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400050d8
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400051ab
call fcn.14000dad4
mov qword [rbp - 0x68], rsi
mov qword [rbp - 0x60], 0xf
mov byte [rbp - 0x78], 0
mov rdx, qword [rbx + 0x18]
cmp rdx, 0x10
jb 0x140004eda
inc rdx
mov rcx, qword [rbx]
cmp rdx, 0x1000
jb 0x140004ed5
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x14000519f
jmp 0x140004ed2
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 0x140004e55
mov rdx, qword [rbp - 0x60]
cmp rdx, 0x10
jb 0x140005182
inc rdx
mov rcx, qword [rbp - 0x78]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000517d
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140005199
call fcn.14000dad4
xor esi, esi
mov qword [rbp - 0x68], rsi
mov qword [rbp - 0x60], 0xf
mov byte [rbp - 0x78], sil
jmp 0x140004ea0
call fcn.140014248
nop
call fcn.140014248
int3
call fcn.140014248
nop
call fcn.140014248
int3