Function at 0x140002ec0
Capabilities:
Enumerate threads

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r14
push r15
mov rbp, rsp
sub rsp, 0x70
mov rax, qword [0x14000b040]
xor rax, rsp
mov qword [rbp - 8], rax
mov r15, rdx
mov rbx, rcx
xor edx, edx
lea ecx, [rdx + 4]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rdi, rax
xorps xmm0, xmm0
xor esi, esi
cmp rax, 0xffffffffffffffff
jne 0x140002f98
movups xmmword [rbp - 0x30], xmm0
mov qword [rbp - 0x20], rsi
mov qword [rbp - 0x18], 0xf
lea ecx, [rax + 0x31]
call fcn.140005834
mov qword [rbp - 0x30], rax
mov qword [rbp - 0x20], 0x20
mov qword [rbp - 0x18], 0x2f
movups xmm0, xmmword [str.Failed_to_create_thread_snapshot]
movups xmmword [rax], xmm0
movups xmm1, xmmword [0x1400079f0]
movups xmmword [rax + 0x10], xmm1
mov byte [rax + 0x20], sil
lea rcx, [rbp - 0x30]
call fcn.140001010
nop
mov rdx, qword [rbp - 0x18]
cmp rdx, 0xf
jbe 0x140002f91
inc rdx
mov rcx, qword [rbp - 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140002f8c
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140002f8c
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140005800
xor al, al
jmp 0x140003223
movdqu xmmword [rbp - 0x4c], xmm0
mov qword [rbp - 0x3c], rsi
mov dword [rbp - 0x50], 0x1c
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcessId]
mov r14d, eax
lea rdx, [rbp - 0x50]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_Thread32First]
test eax, eax
je 0x14000316c
nop dword [rax]
cmp dword [rbp - 0x44], r14d
jne 0x140003144
mov r8d, dword [rbp - 0x48]
xor edx, edx
lea ecx, [rdx + 0x10]
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rbx, rax
test rax, rax
je 0x1400030b1
xor r8d, r8d
mov rdx, rax
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_QueueUserAPC]
test eax, eax
jne 0x1400030a3
xorps xmm0, xmm0
movups xmmword [rbp - 0x30], xmm0
mov qword [rbp - 0x20], rsi
mov qword [rbp - 0x18], 0xf
lea ecx, [rax + 0x20]
call fcn.140005834
mov qword [rbp - 0x30], rax
mov qword [rbp - 0x20], 0x13
mov qword [rbp - 0x18], 0x1f
movups xmm0, xmmword [str.Failed_to_queue_APC]
movups xmmword [rax], xmm0
movzx ecx, word [0x140007a18]
mov word [rax + 0x10], cx
movzx ecx, byte [0x140007a1a]
mov byte [rax + 0x12], cl
mov byte [rax + 0x13], 0
lea rcx, [rbp - 0x30]
call fcn.140001010
nop
mov rdx, qword [rbp - 0x18]
cmp rdx, 0xf
jbe 0x1400030a3
inc rdx
mov rcx, qword [rbp - 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000309e
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000315e
call fcn.140005800
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140003144
xorps xmm0, xmm0
movups xmmword [rbp - 0x30], xmm0
mov qword [rbp - 0x20], rsi
mov qword [rbp - 0x18], 0xf
mov ecx, 0x20
call fcn.140005834
mov qword [rbp - 0x30], rax
mov qword [rbp - 0x20], 0x15
mov qword [rbp - 0x18], 0x1f
movups xmm0, xmmword [str.Failed_to_open_thread]
movups xmmword [rax], xmm0
mov ecx, dword [0x140007a30]
mov dword [rax + 0x10], ecx
movzx ecx, byte [0x140007a34]
mov byte [rax + 0x14], cl
mov byte [rax + 0x15], 0
lea rcx, [rbp - 0x30]
call fcn.140001010
nop
mov rdx, qword [rbp - 0x18]
cmp rdx, 0xf
jbe 0x140003144
inc rdx
mov rcx, qword [rbp - 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000313f
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140003165
call fcn.140005800
lea rdx, [rbp - 0x50]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_Thread32Next]
test eax, eax
jne 0x140002fd0
jmp 0x140003218
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
xorps xmm0, xmm0
movups xmmword [rbp - 0x30], xmm0
mov qword [rbp - 0x20], rsi
mov qword [rbp - 0x18], 0xf
mov ecx, 0x20
call fcn.140005834
mov rdx, rax
mov qword [rbp - 0x30], rax
mov qword [rbp - 0x20], 0x1b
mov qword [rbp - 0x18], 0x1f
movups xmm0, xmmword [str.Failed_to_enumerate_threads]
movups xmmword [rax], xmm0
movsd xmm0, qword [0x140007a48]
movsd qword [rax + 0x10], xmm0
movzx ecx, word [0x140007a50]
mov word [rax + 0x18], cx
movzx eax, byte [0x140007a52]
mov byte [rdx + 0x1a], al
mov byte [rdx + 0x1b], sil
lea rcx, [rbp - 0x30]
call fcn.140001010
nop
mov rdx, qword [rbp - 0x18]
cmp rdx, 0xf
jbe 0x140003218
inc rdx
mov rcx, qword [rbp - 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140003213
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140003213
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140005800
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.1400057e0
mov rbx, qword [rsp + 0xb0]
add rsp, 0x70
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret