Function at 0x140006340
Capabilities:
Enumerate threads
Resume thread
Suspend thread

Disassembly:
sub rsp, 0x28
cmp qword [0x140058078], 0
jne 0x140006229
mov rax, qword [0x14005c350]
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x40], rbp
mov qword [rsp + 0x48], rsi
xor esi, esi
cmp word [rax + 0x290], 2
mov qword [rsp + 0x20], rdi
jne 0x140006171
mov ecx, dword [rax + 0x298]
jmp 0x140006173
mov ecx, esi
movsxd rbx, ecx
lea rdi, [0x140006130]
add rbx, qword [0x14005c338]
lea rbp, [0x140006040]
sub rdi, rbp
lea r9, [rsp + 0x30]
mov rdx, rdi
mov rcx, rbx
mov r8d, 4
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
mov r8, rdi
mov qword [0x140058078], rbx
mov rdx, rbp
mov rcx, rbx
call fcn.140022ae0
mov r8d, dword [rsp + 0x30]
lea r9, [rsp + 0x30]
mov rdx, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
mov ecx, 0x20
call fcn.140028a64
mov rcx, qword [0x14005c338]
mov rdi, qword [rsp + 0x20]
mov rbp, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x38]
mov qword [rax], rcx
mov rcx, qword [0x14005c350]
mov qword [0x140058070], rax
cmp word [rcx + 0x2a0], 3
jne 0x140006212
mov rsi, qword [rcx + 0x2a8]
lea rcx, [rax + 0x10]
mov qword [rax + 8], rsi
mov edx, ntohs
call fcn.14000b5a0
mov rsi, qword [rsp + 0x48]
add rsp, 0x28
ret
push r14
sub rsp, 0x40
mov rax, qword [0x14005c350]
mov r14d, ecx
cmp word [rax + 0x290], 2
jne 0x140006383
cmp dword [rax + 0x298], 0
je 0x140006383
cmp dword [0x14005c334], 0
jg 0x140006383
lea rcx, [0x14004bd3c]
call fcn.140005ff0
add rsp, 0x40
pop r14
jmp 0x140006130
cmp dword [0x14005e128], 0xa
jge 0x1400063ab
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov r8d, 1
mov edx, r14d
mov rcx, rax
add rsp, 0x40
pop r14
jmp qword [sym.imp.KERNEL32.dll_WaitForSingleObjectEx]
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x58], rbp
mov qword [rsp + 0x60], rsi
mov qword [rsp + 0x68], rdi
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov esi, eax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
xor edx, edx
mov ebp, eax
lea ecx, [rdx + 4]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x140006461
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x1c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_Thread32First]
test eax, eax
je 0x140006458
nop dword [rax]
cmp dword [rsp + 0x20], 0x10
jb 0x14000643e
mov r8d, dword [rsp + 0x28]
cmp r8d, esi
je 0x14000643e
cmp dword [rsp + 0x2c], ebp
jne 0x14000643e
xor edx, edx
mov ecx, 0x1fffff
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rbx, rax
test rax, rax
je 0x14000643e
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SuspendThread]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x1c
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_Thread32Next]
test eax, eax
jne 0x140006400
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
call fcn.140006230
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov r8d, 1
mov edx, r14d
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WaitForSingleObjectEx]
call fcn.140006230
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov esi, eax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
xor edx, edx
mov ebp, eax
lea ecx, [rdx + 4]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x140006522
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x1c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_Thread32First]
test eax, eax
je 0x140006519
cmp dword [rsp + 0x20], 0x10
jb 0x1400064ff
mov r8d, dword [rsp + 0x28]
cmp r8d, esi
je 0x1400064ff
cmp dword [rsp + 0x2c], ebp
jne 0x1400064ff
xor edx, edx
mov ecx, 0x1fffff
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rbx, rax
test rax, rax
je 0x1400064ff
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x1c
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_Thread32Next]
test eax, eax
jne 0x1400064c1
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rsi, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x58]
mov rbx, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret