Function at 0x18003ad80
Capabilities:
Enumerate threads
Suspend thread

Disassembly:
push rbx
push rsi
push rdi
push r12
push r15
sub rsp, 0x520
mov rax, qword [0x18004e010]
xor rax, rsp
mov qword [rsp + 0x510], rax
xor edx, edx
xor r12d, r12d
mov rsi, rcx
mov qword [rcx], r12
mov qword [rcx + 8], r12
mov r15d, r8d
xor dil, dil
lea ecx, [rdx + 4]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x18003aecf
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x1c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_Thread32First]
test eax, eax
je 0x18003aed9
mov dil, 1
nop dword [rax]
cmp dword [rsp + 0x20], 0x10
jb 0x18003ae80
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [rsp + 0x2c], eax
jne 0x18003ae80
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [rsp + 0x28], eax
je 0x18003ae80
mov rdx, qword [rsi]
test rdx, rdx
jne 0x18003ae42
mov rcx, qword [0x18004edf0]
mov r8d, 0x200
mov dword [rsi + 8], 0x80
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov qword [rsi], rax
mov rdx, rax
test rax, rax
je 0x18003aea9
jmp 0x18003ae73
mov eax, dword [rsi + 8]
cmp dword [rsi + 0xc], eax
jb 0x18003ae73
mov rcx, qword [0x18004edf0]
add eax, eax
mov r9d, eax
mov r8, rdx
shl r9, 2
xor edx, edx
mov dword [rsi + 8], eax
call qword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov rdx, rax
test rax, rax
je 0x18003aea9
mov qword [rsi], rax
mov ecx, dword [rsi + 0xc]
mov eax, dword [rsp + 0x28]
mov dword [rdx + rcx*4], eax
inc dword [rsi + 0xc]
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x1c
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_Thread32Next]
test eax, eax
jne 0x18003adf0
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
je 0x18003aed9
mov r8, qword [rsi]
xor dil, dil
test r8, r8
je 0x18003aed9
mov rcx, qword [0x18004edf0]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rcx, rbx
mov qword [rsi], r12
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 9
jmp 0x18003b0af
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test dil, dil
je 0x18003aecf
cmp qword [rsi], r12
je 0x18003b0e1
mov qword [rsp + 0x560], r14
mov r14d, r12d
cmp dword [rsi + 0xc], r12d
jbe 0x18003b0dc
mov qword [rsp + 0x558], rbp
nop dword [rax]
mov rax, qword [rsi]
xor edx, edx
mov ecx, r14d
mov r8d, dword [rax + rcx*4]
lea ecx, [rdx + 0x5a]
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rbp, rax
test rax, rax
je 0x18003b08f
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SuspendThread]
lea rdx, [rsp + 0x40]
mov dword [rsp + 0x70], 0x100001
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_GetThreadContext]
test eax, eax
je 0x18003b086
mov eax, dword [0x18004edec]
test eax, eax
je 0x18003b086
mov r10, qword [rsp + 0x138]
mov rbx, r12
mov edi, eax
nop dword [rax]
nop word [rax + rax]
mov rax, qword [0x18004ede0]
add rax, rbx
test r15d, r15d
je 0x18003afa5
cmp r15d, 1
je 0x18003afa1
movzx edx, byte [rax + 0x20]
shr dl, 2
and dl, 1
jmp 0x18003afa7
mov dl, 1
jmp 0x18003afa7
xor dl, dl
movzx r8d, byte [rax + 0x20]
movzx ecx, r8b
shr cl, 1
and cl, 1
cmp cl, dl
je 0x18003b078
test dl, dl
je 0x18003b006
mov r9d, dword [rax + 0x24]
mov edx, r12d
and r9d, 0xf
jbe 0x18003b078
mov r11, qword [rax]
nop word [rax + rax]
mov r8d, edx
movzx ecx, byte [r8 + rax + 0x28]
add rcx, r11
cmp r10, rcx
je 0x18003affa
inc edx
cmp edx, r9d
jb 0x18003afe0
jmp 0x18003b078
movzx edx, byte [r8 + rax + 0x30]
add rdx, qword [rax + 0x10]
jmp 0x18003b055
test r8b, 1
je 0x18003b018
mov rdx, qword [rax]
lea rcx, [rdx - 5]
cmp r10, rcx
je 0x18003b055
mov r9d, dword [rax + 0x24]
mov edx, r12d
and r9d, 0xf
jbe 0x18003b04c
mov r11, qword [rax + 0x10]
nop dword [rax]
mov r8d, edx
movzx ecx, byte [r8 + rax + 0x30]
add rcx, r11
cmp r10, rcx
je 0x18003b0ce
inc edx
cmp edx, r9d
jb 0x18003b030
cmp r10, qword [rax + 8]
jne 0x18003b078
mov rdx, qword [rax]
test rdx, rdx
je 0x18003b078
mov qword [rsp + 0x138], rdx
mov rcx, rbp
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_SetThreadContext]
mov r10, qword [rsp + 0x138]
add rbx, 0x38
sub rdi, 1
jne 0x18003af80
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
inc r14d
cmp r14d, dword [rsi + 0xc]
jb 0x18003af10
mov rbp, qword [rsp + 0x558]
mov eax, r12d
mov r14, qword [rsp + 0x560]
mov rcx, qword [rsp + 0x510]
xor rcx, rsp
call fcn.18003b630
add rsp, 0x520
pop r15
pop r12
pop rdi
pop rsi
pop rbx
ret
movzx edx, byte [r8 + rax + 0x28]
add rdx, qword [rax]
jmp 0x18003b055
mov eax, r12d
jmp 0x18003b0a7
mov eax, r12d
jmp 0x18003b0af