Function at 0x140046ef0
Capabilities:
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 [0x14005b040]
xor rax, rsp
mov qword [rbp + 0x480], rax
mov edi, r8d
mov dword [rsp + 0x30], r8d
mov rbx, rdx
mov qword [rsp + 0x58], rdx
lea rcx, [rsp + 0x38]
call fcn.140047860
mov rdx, rax
lea rcx, [rbp - 0x80]
call fcn.140045400
nop
mov r8d, edi
xor edx, edx
mov ecx, 0x1fffff
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov r15, rax
mov esi, dword [rbp - 0x70]
inc esi
mov r14d, esi
mov qword [rsp + 0x58], 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 0x1400472fe
cmp r15, 0xffffffffffffffff
je 0x1400472fe
lea r8, [rbp - 0x80]
cmp qword [rbp - 0x68], 0xf
cmova r8, qword [rbp - 0x80]
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 0x1400470a4
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rdx, qword [rbp - 0x70]
inc rdx
mov r8d, 0x1000
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_VirtualFree]
nop
mov rdx, qword [rbp - 0x68]
cmp rdx, 0xf
jbe 0x140047021
inc rdx
mov rcx, qword [rbp - 0x80]
cmp rdx, 0x1000
mov rax, rcx
jb 0x14004701c
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140047330
call fcn.14004a58c
mov qword [rbp - 0x70], rsi
mov qword [rbp - 0x68], 0xf
mov byte [rbp - 0x80], 0
mov rdx, qword [rbx + 0x18]
cmp rdx, 0xf
jbe 0x14004706b
inc rdx
mov rcx, qword [rbx]
cmp rdx, 0x1000
jb 0x140047066
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140047353
mov rcx, r8
call fcn.14004a58c
mov byte [rbx], 0
mov qword [rbx + 0x18], 0xf
mov qword [rbx + 0x10], rsi
mov rcx, qword [rbp + 0x480]
xor rcx, rsp
call fcn.14004a3f0
mov rbx, qword [rsp + 0x5d0]
add rsp, 0x590
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea rax, [rbp - 0x80]
cmp qword [rbp - 0x68], 0xf
cmova rax, qword [rbp - 0x80]
mov qword [rbp - 0x70], rsi
mov byte [rax], sil
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 0x1400472db
xor edx, edx
mov r8d, 0x4d0
lea rcx, [rbp - 0x50]
call sub.VCRUNTIME140.dll_memset
mov dword [rbp - 0x20], 0x100001
lea rdx, [rsp + 0x60]
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_Thread32First]
test eax, eax
je 0x1400471ed
lea rdx, [rsp + 0x60]
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_Thread32Next]
test eax, eax
je 0x1400471ed
cmp dword [rsp + 0x6c], edi
jne 0x1400471d7
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 0x140047227
lea r8, [r14 + 1]
lea rax, [rbp - 0x60]
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 0x1400471ca
lea rdx, [rbp - 0x50]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetThreadContext]
test eax, eax
je 0x1400471ca
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 0x1400471c5
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ResumeThread]
cmp r14d, 0xffffffff
jne 0x14004721c
mov r14, qword [rsp + 0x58]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [rsp + 0x30]
lea rdx, [rsp + 0x60]
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_Thread32Next]
test eax, eax
jne 0x140047130
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 0x140046fe6
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1400471ed
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 - 0x68]
cmp rdx, 0xf
jbe 0x14004728a
inc rdx
mov rcx, qword [rbp - 0x80]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140047285
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140047285
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14004a58c
mov qword [rbp - 0x70], rsi
mov qword [rbp - 0x68], 0xf
mov byte [rbp - 0x80], 0
mov rdx, qword [rbx + 0x18]
cmp rdx, 0xf
jbe 0x14004706b
inc rdx
mov rcx, qword [rbx]
cmp rdx, 0x1000
jb 0x140047066
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
jbe 0x140047063
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
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 0x140046fe6
mov rdx, qword [rbp - 0x68]
cmp rdx, 0xf
jbe 0x14004733c
inc rdx
mov rcx, qword [rbp - 0x80]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140047337
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140047337
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14004a58c
xor esi, esi
mov qword [rbp - 0x70], rsi
mov qword [rbp - 0x68], 0xf
mov byte [rbp - 0x80], sil
jmp 0x140047031
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3