Function at 0x140005b20
Capabilities:
Enumerate threads

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x1f]
sub rsp, 0x88
mov rax, qword [0x140049540]
xor rax, rsp
mov qword [rbp + 7], rax
mov rsi, r9
mov r12, r8
mov r15, rdx
mov r14, rcx
test r9, r9
jne 0x140005b64
lea rdx, str.Return_pointer_not_set__n
jmp 0x140005c45
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x39], xmm0
xor r13d, r13d
mov qword [rbp - 0x29], r13
call qword [sym.imp.KERNEL32.dll_GetProcessId]
mov edi, eax
xor edx, edx
mov ecx, 4
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov rbx, rax
mov dword [rbp - 0x19], 0x1c
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp - 0x15], xmm0
mov qword [rbp - 5], rax
lea rdx, [rbp - 0x19]
mov rcx, rbx
call sub.KERNEL32.dll_Thread32First
test eax, eax
je 0x140005be8
nop
cmp dword [rbp - 0xd], edi
jne 0x140005bd8
mov rdx, qword [rbp - 0x31]
cmp rdx, qword [rbp - 0x29]
je 0x140005bcb
mov eax, dword [rbp - 0x11]
mov dword [rdx], eax
add qword [rbp - 0x31], 4
jmp 0x140005bd8
lea r8, [rbp - 0x11]
lea rcx, [rbp - 0x39]
call fcn.140001630
lea rdx, [rbp - 0x19]
mov rcx, rbx
call sub.KERNEL32.dll_Thread32Next
test eax, eax
jne 0x140005bb0
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, qword [rbp - 0x31]
mov rcx, qword [rbp - 0x39]
sub rax, rcx
test rax, 0xfffffffffffffffc
jne 0x140005c73
test rcx, rcx
je 0x140005c3e
mov rdx, qword [rbp - 0x29]
sub rdx, rcx
and rdx, 0xfffffffffffffffc
mov rax, rcx
cmp rdx, 0x1000
jb 0x140005c39
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140005d9c
call fcn.14000f8a8
lea rdx, str.Invalid_thread_handle__n
lea rcx, [0x14004ac80]
call fcn.140001230
xor eax, eax
mov rcx, qword [rbp + 7]
xor rcx, rsp
call fcn.14000f9c0
add rsp, 0x88
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
lea rdx, [rbp - 0x39]
mov rcx, r14
call fcn.1400062c0
mov rbx, rax
mov rcx, qword [rbp - 0x39]
test rcx, rcx
je 0x140005ccc
mov rdx, qword [rbp - 0x29]
sub rdx, rcx
and rdx, 0xfffffffffffffffc
mov rax, rcx
cmp rdx, 0x1000
jb 0x140005cbb
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140005d9c
call fcn.14000f8a8
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x39], xmm0
mov qword [rbp - 0x29], r13
lea rax, [rbx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x140005c3e
mov r8, r12
mov rdx, r15
mov rcx, rbx
call fcn.140005ff0
test eax, eax
jns 0x140005d0c
lea rdx, str.Failed_to_set_thread_desc
lea rcx, [0x14004ab50]
call fcn.140001230
mov rcx, rax
call fcn.140002400
jmp 0x140005c51
mov qword [rsp + 0x20], r13
mov r9, rsi
mov r8, 0xfffffffffffffffe
mov rdx, qword [sym.imp.KERNEL32.dll_GetThreadDescription]
mov rcx, rbx
call fcn.1400060d0
mov rcx, rbx
test al, al
jne 0x140005d3c
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140005c51
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbp - 0x21], r13
mov r9d, 8
lea r8, [rbp - 0x21]
mov rdx, rsi
mov rcx, r14
call fcn.140006170
test al, al
je 0x140005d90
mov rbx, qword [rbp - 0x21]
test rbx, rbx
jne 0x140005d75
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x140005d42
lea rdx, str.Written_to_the_Thread_n
lea rcx, [0x14004ab50]
call fcn.140001230
mov rax, rbx
jmp 0x140005c53
lea rdx, str.Failed_to_read_remote_address__n
jmp 0x140005c45
call fcn.1400156c4
int3