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

Disassembly:
push rbp
push r12
push r13
sub rsp, 0x2c0
mov rax, qword [0x14001c040]
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 0x1400104e1
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.140008110
lea rdx, [0x1400084d0]
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 0x140010757
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 0x140010726
mov r14, qword [r12]
xor eax, eax
mov r15, qword [r12 + 8]
cmp r14, r15
je 0x14001070c
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 0x140010571
lea rdx, [rsp + 0x8c]
lea rcx, [rsp + 0x20]
call fcn.140008d50
cmp qword [r14 + 0x18], 7
mov rcx, r14
jbe 0x14001059b
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 0x1400105dd
test rdx, rdx
je 0x1400105d9
sub r8, rcx
movzx eax, word [r8 + rcx]
cmp ax, word [rcx]
jne 0x1400105dd
add rcx, 2
sub rdx, 1
jne 0x1400105c5
mov bl, 1
jmp 0x1400105df
xor bl, bl
cmp r10, 7
jbe 0x14001061a
lea rdx, [r10*2 + 2]
mov rax, r9
cmp rdx, 0x1000
jb 0x140010612
mov r9, qword [r9 - 8]
add rdx, 0x27
sub rax, r9
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14001071f
mov rcx, r9
call fcn.140011690
test bl, bl
je 0x1400106fa
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 0x1400106fa
xor edx, edx
lea ecx, [rdx + 4]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x1400106f1
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 0x1400106e8
mov eax, dword [rsp + 0x68]
cmp dword [rsp + 0x4c], eax
jne 0x1400106d6
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 0x1400106d6
test bpl, bpl
je 0x1400106b6
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SuspendThread]
jmp 0x1400106cd
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ResumeThread]
test eax, eax
je 0x1400106cd
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x1400106b6
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 0x140010684
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 0x140010550
lea rdx, [rsp + 0x60]
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_Process32NextW]
jmp 0x140010531
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.140011080
add rsp, 0x2c0
pop r13
pop r12
pop rbp
ret