Function at 0x140001980
Capabilities:
Enumerate threads

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x328]
sub rsp, 0x400
movaps xmmword [rax - 0x38], xmm6
mov rax, qword [0x140009040]
xor rax, rsp
mov qword [rbp + 0x2e0], rax
mov r12d, ecx
xor esi, esi
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x60], xmm1
mov r15d, esi
mov qword [rbp - 0x50], rsi
lea rcx, str.ntdll.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rcx, rax
lea rdx, str.NtQueryInformationThread
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov r13, rax
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp - 0x48], xmm0
mov qword [rbp - 0x38], rax
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x78], xmm1
mov edi, esi
mov qword [rbp - 0x68], rsi
xor edx, edx
lea ecx, [rsi + 4]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov r14, rax
cmp rax, 0xffffffffffffffff
jne 0x140001a38
xorps xmm6, xmm6
movdqu xmmword [rbp - 0x48], xmm6
mov r12, rsi
mov qword [rbp - 0x38], rsi
mov r14, rsi
mov rbx, rsi
jmp 0x140001ac9
mov dword [rbp - 0x30], 0x1c
lea rdx, [rbp - 0x30]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_Thread32First]
test eax, eax
jne 0x140001a5b
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140001a1e
mov rbx, qword [rbp - 0x70]
nop
cmp dword [rbp - 0x24], r12d
jne 0x140001a92
cmp rbx, rdi
je 0x140001a7a
mov eax, dword [rbp - 0x28]
mov dword [rbx], eax
add rbx, 4
mov qword [rbp - 0x70], rbx
jmp 0x140001a92
lea r8, [rbp - 0x28]
mov rdx, rbx
lea rcx, [rbp - 0x78]
call fcn.1400041e0
mov rdi, qword [rbp - 0x68]
mov rbx, qword [rbp - 0x70]
lea rdx, [rbp - 0x30]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_Thread32Next]
test eax, eax
jne 0x140001a60
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
movdqu xmm6, xmmword [rbp - 0x78]
movdqu xmmword [rbp - 0x48], xmm6
movsd xmm0, qword [rbp - 0x68]
movsd qword [rbp - 0x38], xmm0
movq r14, xmm6
mov r12, qword [rbp - 0x38]
mov rdi, qword [rbp - 0x58]
cmp r14, rbx
je 0x140001bce
nop word [rax + rax]
mov r8d, dword [r14]
xor edx, edx
mov ecx, 0x800
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov qword [rsp + 0x20], rsi
mov r9d, 0x30
lea r8, [rsp + 0x58]
xor edx, edx
mov rcx, rax
call r13
xor edx, edx
mov r8d, 0x150
lea rcx, [rbp + 0x40]
call sub.VCRUNTIME140.dll_memset
mov dword [rbp + 0x188], 0xc0000001
mov dword [rbp + 0x40], 0x371
mov eax, dword [0x1400099b8]
mov dword [rbp + 0x44], eax
mov rax, qword [rsp + 0x60]
mov qword [rbp + 0x50], rax
lea rax, [rbp]
mov qword [rbp + 0x68], rax
mov qword [rbp + 0x70], 0x38
mov dword [rsp + 0x48], 0x150
lea rax, [rbp + 0x40]
mov qword [rsp + 0x40], rax
mov dword [rsp + 0x38], 0x150
lea rax, [rbp + 0x40]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], 0x220dc4
lea rax, [rbp - 0x10]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, qword [0x1400099c0]
call fcn.140004510
cmp rdi, r15
je 0x140001ba9
mov rax, qword [rbp + 0x10]
mov qword [rdi], rax
add rdi, 8
mov qword [rbp - 0x58], rdi
jmp 0x140001bc1
lea r8, [rbp + 0x10]
mov rdx, rdi
lea rcx, [rbp - 0x60]
call fcn.140004050
mov r15, qword [rbp - 0x50]
mov rdi, qword [rbp - 0x58]
add r14, 4
cmp r14, rbx
jne 0x140001ae0
mov ecx, esi
mov rbx, qword [rbp - 0x60]
sub rdi, rbx
sar rdi, 3
test rdi, rdi
je 0x140001c02
mov rax, rsi
nop dword [rax]
nop word [rax + rax]
cmp qword [rbx + rax*8], rsi
cmova rsi, qword [rbx + rax*8]
inc ecx
mov eax, ecx
cmp rax, rdi
jb 0x140001bf0
xor edx, edx
mov r8d, 0x150
lea rcx, [rbp + 0x190]
call sub.VCRUNTIME140.dll_memset
mov dword [rbp + 0x2d8], 0xc0000001
mov dword [rbp + 0x190], 0x378
mov eax, dword [0x1400099b8]
mov dword [rbp + 0x194], eax
mov qword [rbp + 0x1a0], rsi
mov dword [rsp + 0x48], 0x150
lea rax, [rbp + 0x190]
mov qword [rsp + 0x40], rax
mov dword [rsp + 0x38], 0x150
lea rax, [rbp + 0x190]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], 0x220de0
lea rax, [rbp - 0x78]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, qword [0x1400099c0]
call fcn.140004510
mov edi, dword [rbp + 0x1c0]
add rdi, qword [rbp + 0x1b0]
movq rcx, xmm6
test rcx, rcx
je 0x140001cde
sub r12, rcx
sar r12, 2
lea rdx, [r12*4]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140001cd8
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140001cd8
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400045dc
nop
test rbx, rbx
je 0x140001d1d
sub r15, rbx
and r15, 0xfffffffffffffff8
mov rax, rbx
cmp r15, 0x1000
jb 0x140001d12
add r15, 0x27
mov rbx, qword [rbx - 8]
sub rax, rbx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140001d12
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rdx, r15
mov rcx, rbx
call fcn.1400045dc
mov rax, rdi
mov rcx, qword [rbp + 0x2e0]
xor rcx, rsp
call fcn.140004580
lea r11, [rsp + 0x400]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
movaps xmm6, xmmword [r11 - 0x10]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret