Function at 0x18000f4e2
Capabilities:
Enumerate threads
Suspend thread

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x528
mov r15d, r8d
mov dword [rsp + 0x28], edx
mov rsi, rcx
mov rax, qword [0x18004fa58]
xor rax, rsp
mov qword [rsp + 0x520], rax
xorps xmm0, xmm0
movups xmmword [rcx], xmm0
mov ecx, 4
xor edx, edx
call sub.KERNEL32.DLL_CreateToolhelp32Snapshot
cmp rax, 0xffffffffffffffff
mov qword [rsp + 0x20], rsi
je 0x18000f62c
mov rdi, rax
lea rdx, [rsp + 0x50]
mov dword [rdx], 0x1c
mov rcx, rax
call sub.KERNEL32.DLL_Thread32First
test eax, eax
je 0x18000f61e
mov r14, qword [sym.imp.KERNEL32.DLL_GetCurrentProcessId]
mov r13, qword [sym.imp.KERNEL32.DLL_GetCurrentThreadId]
mov r12, qword [sym.imp.KERNEL32.DLL_HeapAlloc]
lea rbp, [rsp + 0x50]
mov rbx, qword [rsp + 0x20]
cmp dword [rsp + 0x50], 0x10
jb 0x18000f603
mov esi, dword [rsp + 0x5c]
call r14
cmp esi, eax
jne 0x18000f603
mov esi, dword [rsp + 0x58]
call r13
cmp esi, eax
je 0x18000f603
mov rsi, qword [rsp + 0x20]
mov rax, qword [rsi]
test rax, rax
je 0x18000f5d2
mov r9d, dword [rsi + 8]
cmp dword [rsi + 0xc], r9d
jb 0x18000f5f3
add r9d, r9d
shl r9, 2
mov rcx, qword [0x180051250]
xor edx, edx
mov r8, rax
call qword [sym.imp.KERNEL32.DLL_HeapReAlloc]
test rax, rax
je 0x18000f61e
mov rcx, qword [rsp + 0x20]
shl dword [rcx + 8], 1
mov qword [rcx], rax
jmp 0x18000f5f3
mov dword [rsi + 8], 0x80
mov rcx, qword [0x180051250]
mov r8d, 0x200
xor edx, edx
call r12
mov qword [rsi], rax
test rax, rax
je 0x18000f61e
mov ecx, dword [rsp + 0x58]
mov edx, dword [rbx + 0xc]
lea esi, [rdx + 1]
mov dword [rbx + 0xc], esi
mov dword [rax + rdx*4], ecx
mov dword [rsp + 0x50], 0x1c
mov rcx, rdi
mov rdx, rbp
call sub.KERNEL32.DLL_Thread32Next
test eax, eax
jne 0x18000f56f
mov rcx, rdi
call qword [sym.imp.KERNEL32.DLL_CloseHandle]
mov rsi, qword [rsp + 0x20]
cmp qword [rsi], 0
je 0x18000f810
cmp dword [rsi + 0xc], 0
je 0x18000f810
xor edi, edi
mov eax, dword [rsp + 0x28]
mov ecx, eax
inc ecx
mov dword [rsp + 0x2c], ecx
cmove eax, edi
mov qword [rsp + 0x30], rax
imul rax, rax, 0x38
add rax, 0x30
mov qword [rsp + 0x40], rax
mov rax, qword [rsi]
mov r8d, dword [rax + rdi*4]
mov ecx, 0x5a
xor edx, edx
call qword [sym.imp.KERNEL32.DLL_OpenThread]
test rax, rax
je 0x18000f801
mov rbx, rax
mov qword [rsp + 0x48], rdi
mov rcx, rax
call qword [sym.imp.KERNEL32.DLL_SuspendThread]
mov dword [rsp + 0x80], 0x100001
mov qword [rsp + 0x38], rbx
mov rcx, rbx
lea rdx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.DLL_GetThreadContext]
test eax, eax
je 0x18000f7ec
mov eax, dword [rsp + 0x2c]
cmp dword [rsp + 0x28], 0xffffffff
jne 0x18000f6c8
mov eax, dword [0x180051264]
cmp dword [rsp + 0x30], eax
jae 0x18000f7ec
mov r12d, eax
mov r9, qword [0x180051258]
mov r14, qword [rsp + 0x40]
mov r13, qword [rsp + 0x30]
imul rcx, r13, 0x38
mov esi, r15d
test r15d, r15d
je 0x18000f70a
cmp r15d, 1
jne 0x18000f6ff
mov esi, 1
jmp 0x18000f70a
mov esi, dword [r9 + rcx + 0x20]
shr esi, 2
and esi, 1
mov ebp, dword [r9 + rcx + 0x20]
bt ebp, 1
mov edx, esi
sbb edx, 0
je 0x18000f7dc
lea r8, [r9 + rcx]
mov rdx, qword [rsp + 0x148]
test esi, esi
je 0x18000f75d
mov ebp, dword [r9 + rcx + 0x24]
and rbp, 0xf
je 0x18000f7dc
mov rdi, qword [r8]
lea rbx, [r9 + r14]
xor esi, esi
movzx eax, byte [rbx + rsi - 8]
add rax, rdi
cmp rax, rdx
je 0x18000f7a5
inc rsi
cmp rbp, rsi
jne 0x18000f746
jmp 0x18000f7dc
test bpl, 1
je 0x18000f76f
mov rbp, qword [r8]
lea rax, [rbp - 5]
cmp rax, rdx
je 0x18000f7b8
mov ebp, dword [r9 + rcx + 0x24]
and rbp, 0xf
je 0x18000f799
mov rdi, qword [r9 + rcx + 0x10]
lea rsi, [r9 + r14]
xor ebx, ebx
movzx eax, byte [rsi + rbx]
add rax, rdi
cmp rax, rdx
je 0x18000f7b0
inc rbx
cmp rbp, rbx
jne 0x18000f785
cmp rdx, qword [r9 + rcx + 8]
jne 0x18000f7dc
mov rbp, qword [r8]
jmp 0x18000f7b8
movzx ebp, byte [rsi + rbx]
add rbp, qword [r9 + rcx + 0x10]
jmp 0x18000f7b8
movzx ebp, byte [rbx + rsi - 8]
add rbp, qword [r8]
test rbp, rbp
je 0x18000f7dc
mov qword [rsp + 0x148], rbp
mov rcx, qword [rsp + 0x38]
lea rdx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.DLL_SetThreadContext]
mov r9, qword [0x180051258]
inc r13
add r14, 0x38
cmp r13, r12
jne 0x18000f6e6
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.DLL_CloseHandle]
mov rsi, qword [rsp + 0x20]
mov rdi, qword [rsp + 0x48]
inc rdi
mov eax, dword [rsi + 0xc]
cmp rdi, rax
jb 0x18000f663
mov rcx, qword [rsp + 0x520]
xor rcx, rsp
call fcn.180010d40
nop
add rsp, 0x528
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret