Function at 0x140008250
Capabilities:
Enumerate threads

Disassembly:
push rbx
push rsi
push rdi
push r14
sub rsp, 0x308
mov rax, qword [0x140056fb0]
xor rax, rsp
mov qword [rsp + 0x2f0], rax
mov rsi, rcx
movzx r14d, dl
or rcx, 0xffffffffffffffff
nop word [rax + rax]
cmp word [rsi + rcx*2 + 0x2e], 0
lea rcx, [rcx + 1]
jne 0x140008280
lea rcx, [rcx*2 + 0x40]
call fcn.14000ac7c
mov r8d, dword [rsi + 8]
lea r9, [rsi + 0x2c]
lea rdx, str.__d___s
mov rcx, rax
mov rdi, rax
call fcn.14000aecc
movzx ecx, byte [0x140058b2b]
mov r8d, dword [rsi + 8]
neg cl
sbb ecx, ecx
xor edx, edx
and ecx, 0x1000000
or ecx, 0x20400
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rbx, rax
test rax, rax
jne 0x14000830f
cmp byte [0x140058b13], al
jne 0x140008302
lea rcx, str.Error_opening__s:_n
mov rdx, rdi
call fcn.14000adf8
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.140005190
mov rcx, rdi
call fcn.14000ac3c
jmp 0x140008626
movzx eax, byte [0x140058b10]
mov qword [rsp + 0x340], r12
neg al
movzx eax, byte [0x140058b2b]
sbb r8d, r8d
and r8d, 0x10
neg al
lea rax, [rsp + 0x40]
sbb ecx, ecx
mov qword [rsp + 0x38], rax
xor r12d, r12d
and ecx, 8
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], r12
or r8d, ecx
mov qword [rsp + 0x28], rax
lea edx, [r12 + 6]
xor r9d, r9d
mov rcx, rbx
or r8d, 0x85
mov qword [rsp + 0x20], r12
call qword [sym.imp.ADVAPI32.dll_GetSecurityInfo]
test eax, eax
je 0x1400083b0
cmp byte [0x140058b13], r12b
jne 0x14000839a
mov edx, dword [rsi + 8]
lea rcx, str.Error_querying_security_for_process__d:_n
call fcn.14000adf8
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.140005190
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rdi
call fcn.14000ac3c
jmp 0x14000861e
lea rdx, [rsp + 0xf0]
mov r8d, 0x100
mov rcx, rbx
mov qword [rsp + 0x338], rbp
mov qword [rsp + 0x300], r15
call fcn.140008650
cmp byte [0x140058b29], r12b
movzx ebp, al
jne 0x1400083ec
mov rcx, qword [rsp + 0x48]
call fcn.140009bf0
mov r8, qword [rsp + 0x40]
lea r15, [rsp + 0xf0]
test bpl, bpl
cmove r15, r12
lea rdx, [0x14004b6d0]
mov rcx, rdi
mov r9, r15
mov qword [rsp + 0x20], r12
call fcn.140004240
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, rdi
call fcn.14000ac3c
cmp byte [0x140058b2a], r12b
mov rbp, qword [rsp + 0x338]
je 0x140008443
mov rcx, rbx
call fcn.140009550
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test r14b, r14b
je 0x140008616
xor edx, edx
lea ecx, [rdx + 4]
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov rdi, rax
test rax, rax
jne 0x140008485
lea rcx, str.Error_snapshoting_threads:_n
call fcn.14000adf8
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.140005190
jmp 0x140008616
lea rdx, [rsp + 0x50]
mov rcx, rax
mov dword [rsp + 0x50], 0x1c
call sub.KERNEL32.dll_Thread32First
test eax, eax
je 0x14000860d
mov eax, dword [rsi + 8]
cmp dword [rsp + 0x5c], eax
jne 0x1400085f8
movzx eax, byte [0x140058b2b]
mov r8d, dword [rsp + 0x58]
neg al
sbb ecx, ecx
xor edx, edx
and ecx, 0x1000000
bts ecx, 0x11
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rbx, rax
test rax, rax
jne 0x140008508
cmp byte [0x140058b13], r12b
jne 0x1400085f8
mov edx, dword [rsp + 0x58]
lea rcx, str.Error_opening_thread__d:_n
call fcn.14000adf8
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.140005190
jmp 0x1400085f8
movzx eax, byte [0x140058b10]
neg al
movzx eax, byte [0x140058b2b]
sbb r8d, r8d
and r8d, 0x10
neg al
lea rax, [rsp + 0x40]
sbb ecx, ecx
mov qword [rsp + 0x38], rax
xor r9d, r9d
and ecx, 8
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], r12
or r8d, ecx
mov qword [rsp + 0x28], rax
lea edx, [r9 + 6]
mov rcx, rbx
or r8d, 0x85
mov qword [rsp + 0x20], r12
call qword [sym.imp.ADVAPI32.dll_GetSecurityInfo]
test eax, eax
je 0x14000858e
cmp byte [0x140058b13], r12b
jne 0x1400085ef
mov edx, dword [rsp + 0x58]
lea rcx, str.Error_querying_security_for_thread__d:_n
call fcn.14000adf8
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.140005190
jmp 0x1400085ef
cmp byte [0x140058b28], r12b
je 0x1400085ac
cmp qword [0x140058b30], r12
jne 0x1400085ac
lea rcx, [0x140026700]
call fcn.14000adf8
mov r9d, dword [rsp + 0x58]
mov r8d, dword [rsi + 8]
lea rdx, str.____d:_d__Thread
lea rcx, [rsp + 0x70]
call fcn.14000aecc
mov r8, qword [rsp + 0x40]
lea rdx, [0x140050000]
lea rcx, [rsp + 0x70]
mov r9, r15
mov qword [rsp + 0x20], r12
call fcn.140004240
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rdx, [rsp + 0x50]
mov rcx, rdi
call sub.KERNEL32.dll_Thread32Next
test eax, eax
jne 0x1400084a2
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r15, qword [rsp + 0x300]
mov r12, qword [rsp + 0x340]
mov rcx, qword [rsp + 0x2f0]
xor rcx, rsp
call fcn.14000b260
add rsp, 0x308
pop r14
pop rdi
pop rsi
pop rbx
ret