Function at 0x140004830
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 [0x140011040]
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 0x140004908
movups xmmword [rbp - 0x30], xmm0
mov qword [rbp - 0x20], rsi
mov qword [rbp - 0x18], 0xf
lea ecx, [rax + 0x31]
call fcn.14000a8c8
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 [0x14000cc08]
movups xmmword [rax + 0x10], xmm1
mov byte [rax + 0x20], sil
lea rcx, [rbp - 0x30]
call fcn.140001160
nop
mov rdx, qword [rbp - 0x18]
cmp rdx, 0xf
jbe 0x140004901
inc rdx
mov rcx, qword [rbp - 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400048fc
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400048fc
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14000a8c0
xor al, al
jmp 0x140004b93
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 0x140004adc
nop dword [rax]
cmp dword [rbp - 0x44], r14d
jne 0x140004ab4
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 0x140004a21
xor r8d, r8d
mov rdx, rax
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_QueueUserAPC]
test eax, eax
jne 0x140004a13
xorps xmm0, xmm0
movups xmmword [rbp - 0x30], xmm0
mov qword [rbp - 0x20], rsi
mov qword [rbp - 0x18], 0xf
lea ecx, [rax + 0x20]
call fcn.14000a8c8
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 [0x14000cc30]
mov word [rax + 0x10], cx
movzx ecx, byte [0x14000cc32]
mov byte [rax + 0x12], cl
mov byte [rax + 0x13], 0
lea rcx, [rbp - 0x30]
call fcn.140001160
nop
mov rdx, qword [rbp - 0x18]
cmp rdx, 0xf
jbe 0x140004a13
inc rdx
mov rcx, qword [rbp - 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140004a0e
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140004ace
call fcn.14000a8c0
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140004ab4
xorps xmm0, xmm0
movups xmmword [rbp - 0x30], xmm0
mov qword [rbp - 0x20], rsi
mov qword [rbp - 0x18], 0xf
mov ecx, 0x20
call fcn.14000a8c8
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 [0x14000cc48]
mov dword [rax + 0x10], ecx
movzx ecx, byte [0x14000cc4c]
mov byte [rax + 0x14], cl
mov byte [rax + 0x15], 0
lea rcx, [rbp - 0x30]
call fcn.140001160
nop
mov rdx, qword [rbp - 0x18]
cmp rdx, 0xf
jbe 0x140004ab4
inc rdx
mov rcx, qword [rbp - 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140004aaf
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140004ad5
call fcn.14000a8c0
lea rdx, [rbp - 0x50]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_Thread32Next]
test eax, eax
jne 0x140004940
jmp 0x140004b88
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.14000a8c8
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 [0x14000cc60]
movsd qword [rax + 0x10], xmm0
movzx ecx, word [0x14000cc68]
mov word [rax + 0x18], cx
movzx eax, byte [0x14000cc6a]
mov byte [rdx + 0x1a], al
mov byte [rdx + 0x1b], sil
lea rcx, [rbp - 0x30]
call fcn.140001160
nop
mov rdx, qword [rbp - 0x18]
cmp rdx, 0xf
jbe 0x140004b88
inc rdx
mov rcx, qword [rbp - 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140004b83
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140004b83
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14000a8c0
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.14000a660
mov rbx, qword [rsp + 0xb0]
add rsp, 0x70
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret