Function at 0x1800b25e0
Capabilities:
Enumerate threads
Suspend thread

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x518
mov dword [rsp + 0x20], edx
mov rbp, rcx
mov rax, qword [0x1801df668]
xor rax, rsp
mov qword [rsp + 0x510], rax
xorps xmm0, xmm0
movups xmmword [rcx], xmm0
mov ecx, 4
xor edx, edx
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
cmp rax, 0xffffffffffffffff
je 0x1800b272b
mov rbx, rax
mov dword [rsp + 0x40], Ordinal_32
lea rdx, [rsp + 0x40]
mov rcx, rax
call sub.KERNEL32.dll_Thread32First
test eax, eax
je 0x1800b2722
mov r13, qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov r14, qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov r15, qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov r12, qword [sym.imp.KERNEL32.dll_HeapReAlloc]
lea rsi, [rsp + 0x40]
jmp 0x1800b26c7
mov dword [rbp + 8], 0x80
mov rcx, qword [0x1801eae28]
mov r8d, 0x200
xor edx, edx
call r15
mov qword [rbp], rax
test rax, rax
je 0x1800b2722
mov ecx, dword [rsp + 0x48]
mov edx, dword [rbp + 0xc]
lea edi, [rdx + 1]
mov dword [rbp + 0xc], edi
mov dword [rax + rdx*4], ecx
nop word cs:[rax + rax]
mov dword [rsp + 0x40], Ordinal_32
mov rcx, rbx
mov rdx, rsi
call sub.KERNEL32.dll_Thread32Next
test eax, eax
je 0x1800b2722
cmp dword [rsp + 0x40], 0x10
jb 0x1800b26b0
mov edi, dword [rsp + 0x4c]
call r13
cmp edi, eax
jne 0x1800b26b0
mov edi, dword [rsp + 0x48]
call r14
cmp edi, eax
je 0x1800b26b0
mov rax, qword [rbp]
test rax, rax
je 0x1800b266b
mov r9d, dword [rbp + 8]
cmp dword [rbp + 0xc], r9d
jb 0x1800b2691
add r9d, r9d
shl r9, 2
mov rcx, qword [0x1801eae28]
xor edx, edx
mov r8, rax
call r12
test rax, rax
je 0x1800b2722
shl dword [rbp + 8], 1
mov qword [rbp], rax
jmp 0x1800b2691
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp qword [rbp], 0
je 0x1800b2884
cmp dword [rbp + 0xc], 0
je 0x1800b2884
xor r12d, r12d
mov eax, dword [rsp + 0x20]
mov ecx, eax
inc ecx
mov dword [rsp + 0x24], ecx
cmove eax, r12d
mov qword [rsp + 0x28], rax
imul rax, rax, 0x38
add rax, 0x30
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x38], rbp
jmp 0x1800b278d
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbp, qword [rsp + 0x38]
inc r12
mov eax, dword [rbp + 0xc]
cmp r12, rax
jae 0x1800b2884
mov rax, qword [rbp]
mov r8d, dword [rax + r12*4]
mov ecx, 0x5a
xor edx, edx
call qword [sym.imp.KERNEL32.dll_OpenThread]
test rax, rax
je 0x1800b277e
mov r14, rax
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SuspendThread]
mov dword [rsp + 0x70], 0x100001
mov rcx, r14
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetThreadContext]
test eax, eax
je 0x1800b2770
mov eax, dword [rsp + 0x24]
cmp dword [rsp + 0x20], 0xffffffff
jne 0x1800b27de
mov eax, dword [0x1801eae40]
cmp dword [rsp + 0x28], eax
jae 0x1800b2770
mov r13d, eax
mov r8, qword [0x1801eae30]
mov r15, qword [rsp + 0x30]
mov rbx, qword [rsp + 0x28]
jmp 0x1800b2810
inc rbx
add r15, 0x38
cmp rbx, r13
je 0x1800b2770
imul r9, rbx, 0x38
test byte [r8 + r9 + 0x20], 2
jne 0x1800b2800
mov edx, dword [r8 + r9 + 0x24]
and rdx, 0xf
je 0x1800b2800
lea rax, [r8 + r9]
mov rdi, qword [rsp + 0x138]
mov rbp, qword [rax]
lea rsi, [r8 + r15]
xor eax, eax
nop dword [rax]
movzx ecx, byte [rsi + rax - 8]
add rcx, rbp
cmp rcx, rdi
je 0x1800b2857
inc rax
cmp rdx, rax
jne 0x1800b2840
jmp 0x1800b2800
movzx eax, byte [rax + rsi]
add rax, qword [r8 + r9 + 0x10]
je 0x1800b2800
mov qword [rsp + 0x138], rax
mov rcx, r14
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_SetThreadContext]
mov r8, qword [0x1801eae30]
jmp 0x1800b2800
mov rcx, qword [rsp + 0x510]
xor rcx, rsp
call fcn.1800da5d0
nop
add rsp, 0x518
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret