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

Disassembly:
sub rsp, 0x28
cmp qword [0x140032a48], 0
jne 0x14000699a
mov rax, qword [0x140036d20]
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 0x1400068e1
mov ecx, dword [rax + 0x298]
jmp 0x1400068e3
mov ecx, esi
movsxd rbx, ecx
lea rdi, [0x1400068a0]
add rbx, qword [0x140036d08]
lea rbp, [0x1400067b0]
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 [0x140032a48], rbx
mov rdx, rbp
mov rcx, rbx
call sub.VCRUNTIME140.dll_memcpy
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 qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rcx, qword [0x140036d08]
mov rdi, qword [rsp + 0x20]
mov rbp, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x38]
mov qword [rax], rcx
mov rcx, qword [0x140036d20]
mov qword [0x140032a40], rax
cmp word [rcx + 0x2a0], 3
jne 0x140006983
mov rsi, qword [rcx + 0x2a8]
lea rcx, [rax + 0x10]
mov qword [rax + 8], rsi
mov edx, ntohl
call fcn.14000be90
mov rsi, qword [rsp + 0x48]
add rsp, 0x28
ret
sub rsp, 0x48
mov rax, qword [0x140036d20]
cmp word [rax + 0x290], 2
jne 0x140006ae0
cmp dword [rax + 0x298], 0
je 0x140006ae0
cmp dword [0x140036d04], 0
jg 0x140006ae0
add rsp, 0x48
jmp 0x1400068a0
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x58], rbp
mov qword [rsp + 0x60], rsi
mov qword [rsp + 0x40], 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 0x140006b93
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x1c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_Thread32First]
test eax, eax
je 0x140006b8a
cmp dword [rsp + 0x20], 0x10
jb 0x140006b70
mov r8d, dword [rsp + 0x28]
cmp r8d, esi
je 0x140006b70
cmp dword [rsp + 0x2c], ebp
jne 0x140006b70
xor edx, edx
mov ecx, 0x1fffff
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rbx, rax
test rax, rax
je 0x140006b70
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 0x140006b32
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
call fcn.1400069a0
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov edx, 0xbb8
mov r8d, 1
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WaitForSingleObjectEx]
call fcn.1400069a0
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 0x140006c56
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x1c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_Thread32First]
test eax, eax
je 0x140006c4d
cmp dword [rsp + 0x20], 0x10
jb 0x140006c33
mov r8d, dword [rsp + 0x28]
cmp r8d, esi
je 0x140006c33
cmp dword [rsp + 0x2c], ebp
jne 0x140006c33
xor edx, edx
mov ecx, 0x1fffff
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rbx, rax
test rax, rax
je 0x140006c33
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 0x140006bf5
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 + 0x40]
add rsp, 0x48
ret