Function at 0x180003232
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 [0x180024598]
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 0x18000337c
mov rdi, rax
lea rdx, [rsp + 0x50]
mov dword [rdx], 0x1c
mov rcx, rax
call sub.KERNEL32.dll_Thread32First
test eax, eax
je 0x18000336e
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 0x180003353
mov esi, dword [rsp + 0x5c]
call r14
cmp esi, eax
jne 0x180003353
mov esi, dword [rsp + 0x58]
call r13
cmp esi, eax
je 0x180003353
mov rsi, qword [rsp + 0x20]
mov rax, qword [rsi]
test rax, rax
je 0x180003322
mov r9d, dword [rsi + 8]
cmp dword [rsi + 0xc], r9d
jb 0x180003343
add r9d, r9d
shl r9, 2
mov rcx, qword [0x180025390]
xor edx, edx
mov r8, rax
call qword [sym.imp.KERNEL32.dll_HeapReAlloc]
test rax, rax
je 0x18000336e
mov rcx, qword [rsp + 0x20]
shl dword [rcx + 8], 1
mov qword [rcx], rax
jmp 0x180003343
mov dword [rsi + 8], 0x80
mov rcx, qword [0x180025390]
mov r8d, 0x200
xor edx, edx
call r12
mov qword [rsi], rax
test rax, rax
je 0x18000336e
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 0x1800032bf
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rsi, qword [rsp + 0x20]
cmp qword [rsi], 0
je 0x180003560
cmp dword [rsi + 0xc], 0
je 0x180003560
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 0x180003551
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 0x18000353c
mov eax, dword [rsp + 0x2c]
cmp dword [rsp + 0x28], 0xffffffff
jne 0x180003418
mov eax, dword [0x1800253a4]
cmp dword [rsp + 0x30], eax
jae 0x18000353c
mov r12d, eax
mov r9, qword [0x180025398]
mov r14, qword [rsp + 0x40]
mov r13, qword [rsp + 0x30]
imul rcx, r13, 0x38
mov esi, r15d
test r15d, r15d
je 0x18000345a
cmp r15d, 1
jne 0x18000344f
mov esi, 1
jmp 0x18000345a
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 0x18000352c
lea r8, [r9 + rcx]
mov rdx, qword [rsp + 0x148]
test esi, esi
je 0x1800034ad
mov ebp, dword [r9 + rcx + 0x24]
and rbp, 0xf
je 0x18000352c
mov rdi, qword [r8]
lea rbx, [r9 + r14]
xor esi, esi
movzx eax, byte [rbx + rsi - 8]
add rax, rdi
cmp rax, rdx
je 0x1800034f5
inc rsi
cmp rbp, rsi
jne 0x180003496
jmp 0x18000352c
test bpl, 1
je 0x1800034bf
mov rbp, qword [r8]
lea rax, [rbp - 5]
cmp rax, rdx
je 0x180003508
mov ebp, dword [r9 + rcx + 0x24]
and rbp, 0xf
je 0x1800034e9
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 0x180003500
inc rbx
cmp rbp, rbx
jne 0x1800034d5
cmp rdx, qword [r9 + rcx + 8]
jne 0x18000352c
mov rbp, qword [r8]
jmp 0x180003508
movzx ebp, byte [rsi + rbx]
add rbp, qword [r9 + rcx + 0x10]
jmp 0x180003508
movzx ebp, byte [rbx + rsi - 8]
add rbp, qword [r8]
test rbp, rbp
je 0x18000352c
mov qword [rsp + 0x148], rbp
mov rcx, qword [rsp + 0x38]
lea rdx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_SetThreadContext]
mov r9, qword [0x180025398]
inc r13
add r14, 0x38
cmp r13, r12
jne 0x180003436
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 0x1800033b3
mov rcx, qword [rsp + 0x520]
xor rcx, rsp
call fcn.180004730
nop
add rsp, 0x528
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret