Function at 0x14000ece0
Capabilities:
Enumerate processes
Enumerate threads
Resume thread
Suspend thread

Disassembly:
push rbp
push r12
push r13
sub rsp, 0x2c0
mov rax, qword [0x14001a040]
xor rax, rsp
mov qword [rsp + 0x2a0], rax
movzx ebp, dl
mov r12, rcx
xor edx, edx
lea ecx, [rdx + 2]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov r13, rax
cmp rax, 0xffffffffffffffff
jne 0x14000ed41
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcerr]
lea rdx, str.Failed_to_create_process_snapshot.
call fcn.140008020
lea rdx, [0x1400083e0]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64___cdecl_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64____cdecl___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64_____ptr64]
jmp 0x14000efb7
mov qword [rsp + 0x2e0], rbx
lea rcx, [rsp + 0x64]
mov qword [rsp + 0x2e8], rsi
xor edx, edx
mov qword [rsp + 0x2f0], rdi
mov r8d, 0x234
mov qword [rsp + 0x2b8], r14
mov qword [rsp + 0x2b0], r15
call sub.VCRUNTIME140.dll_memset
lea rdx, [rsp + 0x60]
mov dword [rsp + 0x60], 0x238
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x14000ef86
mov r14, qword [r12]
xor eax, eax
mov r15, qword [r12 + 8]
cmp r14, r15
je 0x14000ef6c
nop dword [rax]
xorps xmm0, xmm0
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x38], rax
mov r8, 0xffffffffffffffff
movups xmmword [rsp + 0x20], xmm0
lea rax, [rsp + 0x8c]
inc r8
cmp word [rax + r8*2], 0
jne 0x14000edd1
lea rdx, [rsp + 0x8c]
lea rcx, [rsp + 0x20]
call fcn.140008c60
cmp qword [r14 + 0x18], 7
mov rcx, r14
jbe 0x14000edfb
mov rcx, qword [r14]
mov r10, qword [rsp + 0x38]
lea r8, [rsp + 0x20]
mov r9, qword [rsp + 0x20]
cmp r10, 7
mov rdx, qword [rsp + 0x30]
cmova r8, r9
cmp rdx, qword [r14 + 0x10]
jne 0x14000ee3d
test rdx, rdx
je 0x14000ee39
sub r8, rcx
movzx eax, word [r8 + rcx]
cmp ax, word [rcx]
jne 0x14000ee3d
add rcx, 2
sub rdx, 1
jne 0x14000ee25
mov bl, 1
jmp 0x14000ee3f
xor bl, bl
cmp r10, 7
jbe 0x14000ee7a
lea rdx, [r10*2 + 2]
mov rax, r9
cmp rdx, 0x1000
jb 0x14000ee72
mov r9, qword [r9 - 8]
add rdx, 0x27
sub rax, r9
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000ef7f
mov rcx, r9
call fcn.140010020
test bl, bl
je 0x14000ef5a
mov r8d, dword [rsp + 0x68]
xor edx, edx
mov ecx, 0xc10
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rsi, rax
test rax, rax
je 0x14000ef5a
xor edx, edx
lea ecx, [rdx + 4]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x14000ef51
xorps xmm0, xmm0
mov qword [rsp + 0x54], 0
lea rdx, [rsp + 0x40]
mov dword [rsp + 0x40], 0x1c
mov rcx, rax
movdqu xmmword [rsp + 0x44], xmm0
call qword [sym.imp.KERNEL32.dll_Thread32First]
test eax, eax
je 0x14000ef48
mov eax, dword [rsp + 0x68]
cmp dword [rsp + 0x4c], eax
jne 0x14000ef36
mov r8d, dword [rsp + 0x48]
xor edx, edx
lea ecx, [rdx + 2]
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rbx, rax
test rax, rax
je 0x14000ef36
test bpl, bpl
je 0x14000ef16
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SuspendThread]
jmp 0x14000ef2d
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ResumeThread]
test eax, eax
je 0x14000ef2d
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x14000ef16
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rdx, [rsp + 0x40]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_Thread32Next]
test eax, eax
jne 0x14000eee4
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
add r14, 0x20
mov eax, 0
cmp r14, r15
jne 0x14000edb0
lea rdx, [rsp + 0x60]
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_Process32NextW]
jmp 0x14000ed91
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r14, qword [rsp + 0x2b8]
mov rdi, qword [rsp + 0x2f0]
mov rsi, qword [rsp + 0x2e8]
mov rbx, qword [rsp + 0x2e0]
mov r15, qword [rsp + 0x2b0]
mov rcx, qword [rsp + 0x2a0]
xor rcx, rsp
call fcn.14000fa10
add rsp, 0x2c0
pop r13
pop r12
pop rbp
ret