Function at 0x180046a70
Capabilities:
Enumerate threads
Suspend thread

Disassembly:
push rbx
push rsi
push rdi
push r12
push r15
sub rsp, 0x520
mov rax, qword [0x180078028]
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 0x180046bbf
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x1c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_Thread32First]
test eax, eax
je 0x180046bc9
mov dil, 1
nop dword [rax]
cmp dword [rsp + 0x20], 0x10
jb 0x180046b70
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [rsp + 0x2c], eax
jne 0x180046b70
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [rsp + 0x28], eax
je 0x180046b70
mov rdx, qword [rsi]
test rdx, rdx
jne 0x180046b32
mov rcx, qword [0x180079228]
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 0x180046b99
jmp 0x180046b63
mov eax, dword [rsi + 8]
cmp dword [rsi + 0xc], eax
jb 0x180046b63
mov rcx, qword [0x180079228]
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 0x180046b99
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 0x180046ae0
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
je 0x180046bc9
mov r8, qword [rsi]
xor dil, dil
test r8, r8
je 0x180046bc9
mov rcx, qword [0x180079228]
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 0x180046d9f
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test dil, dil
je 0x180046bbf
cmp qword [rsi], r12
je 0x180046dd1
mov qword [rsp + 0x560], r14
mov r14d, r12d
cmp dword [rsi + 0xc], r12d
jbe 0x180046dcc
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 0x180046d7f
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 0x180046d76
mov eax, dword [0x180079224]
test eax, eax
je 0x180046d76
mov r10, qword [rsp + 0x138]
mov rbx, r12
mov edi, eax
nop dword [rax]
nop word [rax + rax]
mov rax, qword [0x180079218]
add rax, rbx
test r15d, r15d
je 0x180046c95
cmp r15d, 1
je 0x180046c91
movzx edx, byte [rax + 0x20]
shr dl, 2
and dl, 1
jmp 0x180046c97
mov dl, 1
jmp 0x180046c97
xor dl, dl
movzx r8d, byte [rax + 0x20]
movzx ecx, r8b
shr cl, 1
and cl, 1
cmp cl, dl
je 0x180046d68
test dl, dl
je 0x180046cf6
mov r9d, dword [rax + 0x24]
mov edx, r12d
and r9d, 0xf
jbe 0x180046d68
mov r11, qword [rax]
nop word [rax + rax]
mov r8d, edx
movzx ecx, byte [r8 + rax + 0x28]
add rcx, r11
cmp r10, rcx
je 0x180046cea
inc edx
cmp edx, r9d
jb 0x180046cd0
jmp 0x180046d68
movzx edx, byte [r8 + rax + 0x30]
add rdx, qword [rax + 0x10]
jmp 0x180046d45
test r8b, 1
je 0x180046d08
mov rdx, qword [rax]
lea rcx, [rdx - 5]
cmp r10, rcx
je 0x180046d45
mov r9d, dword [rax + 0x24]
mov edx, r12d
and r9d, 0xf
jbe 0x180046d3c
mov r11, qword [rax + 0x10]
nop dword [rax]
mov r8d, edx
movzx ecx, byte [r8 + rax + 0x30]
add rcx, r11
cmp r10, rcx
je 0x180046dbe
inc edx
cmp edx, r9d
jb 0x180046d20
cmp r10, qword [rax + 8]
jne 0x180046d68
mov rdx, qword [rax]
test rdx, rdx
je 0x180046d68
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 0x180046c70
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
inc r14d
cmp r14d, dword [rsi + 0xc]
jb 0x180046c00
mov rbp, qword [rsp + 0x558]
mov eax, r12d
mov r14, qword [rsp + 0x560]
mov rcx, qword [rsp + 0x510]
xor rcx, rsp
call fcn.1800479f0
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 0x180046d45
mov eax, r12d
jmp 0x180046d97
mov eax, r12d
jmp 0x180046d9f