Function at 0x140031bc0
Capabilities:
Enumerate threads

Disassembly:
mov rax, rsp
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
mov qword [rbp - 0x31], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x1400f4080]
xor rax, rsp
mov qword [rbp + 0x27], rax
mov r14, rdx
mov r12, rcx
mov qword [rbp - 1], rdx
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x19], xmm0
xor esi, esi
mov qword [rbp - 9], rsi
xor edx, edx
lea ecx, [rsi + 4]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rbx, rax
mov qword [rbp - 1], rax
test rax, rax
setg r13b
mov byte [rbp - 0x49], r13b
xorps xmm0, xmm0
test rax, rax
jg 0x140031cce
mov rax, qword [rbp - 0x19]
mov qword [r14], rax
mov rax, qword [rbp - 0x11]
mov qword [r14 + 8], rax
mov rax, qword [rbp - 9]
mov qword [r14 + 0x10], rax
movdqu xmmword [rbp - 0x19], xmm0
mov qword [rbp - 9], rsi
test r13b, r13b
je 0x140031c69
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov rbx, qword [rbp - 0x19]
test rbx, rbx
je 0x140031e7d
mov rdi, qword [rbp - 0x11]
cmp rbx, rdi
je 0x140031c95
nop
mov rcx, rbx
call fcn.140032430
add rbx, 0x10
cmp rbx, rdi
jne 0x140031c80
mov rbx, qword [rbp - 0x19]
mov rdx, qword [rbp - 9]
sub rdx, rbx
and rdx, 0xfffffffffffffff0
mov rax, rbx
cmp rdx, 0x1000
jb 0x140031e75
add rdx, 0x27
mov rbx, qword [rbx - 8]
sub rax, rbx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140031eb3
jmp 0x140031e75
movdqu xmmword [rbp + 0xb], xmm0
mov qword [rbp + 0x1b], rsi
mov dword [rbp + 7], 0x1c
lea rdx, [rbp + 7]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_Thread32First]
test eax, eax
je 0x140031df0
lea r13, vtable.std::_Ref_count_obj_class_blackbone::Thread_.0
nop word [rax + rax]
mov rdi, qword [r12]
mov eax, dword [rdi + 8]
cmp dword [rbp + 0x13], eax
jne 0x140031dd4
mov qword [rbp - 0x29], rdi
mov ecx, 0x28
call fcn.14006967c
mov rsi, rax
mov qword [rbp - 0x21], rax
mov dword [rax + 8], 1
mov dword [rax + 0xc], 1
mov qword [rax], r13
lea r15, [rax + 0x10]
mov r8d, dword [rbp + 0xf]
mov qword [r15], rdi
mov dword [r15 + 8], r8d
xor edx, edx
mov ecx, 0x10005b
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov qword [r15 + 0x10], rax
mov qword [rbp - 0x41], r15
mov qword [rbp - 0x39], rsi
mov rdx, qword [rbp - 0x11]
cmp qword [rbp - 9], rdx
je 0x140031d85
mov qword [rdx], 0
mov qword [rdx], r15
mov qword [rdx + 8], rsi
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x41], xmm0
add qword [rbp - 0x11], 0x10
jmp 0x140031d93
lea r8, [rbp - 0x41]
lea rcx, [rbp - 0x19]
call fcn.1400321d0
nop
mov rcx, qword [rbp - 0x39]
test rcx, rcx
je 0x140031dd4
mov eax, 0xffffffff
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x140031dd0
mov rbx, qword [rbp - 0x39]
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
mov eax, 0xffffffff
lock xadd dword [rbx + 0xc], eax
cmp eax, 1
jne 0x140031dd0
mov rcx, qword [rbp - 0x39]
mov rax, qword [rcx]
call qword [rax + 8]
mov rbx, qword [rbp - 1]
lea rdx, [rbp + 7]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_Thread32Next]
test eax, eax
jne 0x140031d00
movzx r13d, byte [rbp - 0x49]
xor esi, esi
mov rax, qword [rbp - 0x19]
mov qword [r14], rax
mov rax, qword [rbp - 0x11]
mov qword [r14 + 8], rax
mov rax, qword [rbp - 9]
mov qword [r14 + 0x10], rax
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x19], xmm0
mov qword [rbp - 9], rsi
test r13b, r13b
je 0x140031e22
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov rbx, qword [rbp - 0x19]
test rbx, rbx
je 0x140031e7d
mov rdi, qword [rbp - 0x11]
cmp rbx, rdi
je 0x140031e49
mov rcx, rbx
call fcn.140032430
add rbx, 0x10
cmp rbx, rdi
jne 0x140031e34
mov rbx, qword [rbp - 0x19]
mov rdx, qword [rbp - 9]
sub rdx, rbx
and rdx, 0xfffffffffffffff0
mov rax, rbx
cmp rdx, 0x1000
jb 0x140031e75
add rdx, 0x27
mov rbx, qword [rbx - 8]
sub rax, rbx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140031ead
mov rcx, rbx
call fcn.140069674
mov rax, r14
mov rcx, qword [rbp + 0x27]
xor rcx, rsp
call fcn.140069650
lea r11, [rsp + 0xa0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
call fcn.1400927c0
int3
call fcn.1400927c0
int3