Function at 0x140220330
Capabilities:
Enumerate processes

Disassembly:
mov rax, rsp
push rbp
lea rbp, [rax - 0x1e8]
sub rsp, 0x2e0
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], r14
mov rax, qword [0x1405420e0]
xor rax, rsp
mov qword [rbp + 0x1d0], rax
mov rsi, rcx
mov qword [rsp + 0x30], rcx
xor edx, edx
lea r14d, [rdx + 2]
mov ecx, r14d
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
nop dword [rax + rax]
mov rbx, rax
mov qword [rsp + 0x48], rax
cmp rax, 0xffffffffffffffff
jne 0x14022046f
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov dword [rsp + 0x30], eax
call fcn.1400550c0
mov rcx, qword [rax + 8]
cmp dword [rcx], r14d
jbe 0x140220412
lea rax, [rsp + 0x30]
mov qword [rbp + 0x1b0], rax
lea eax, [rbx + 5]
mov dword [rbp + 0x1b8], eax
and dword [rbp + 0x1bc], 0
lea rdx, str.The_call_to_CreateToolhelp32Snapshot_has_failed
mov qword [rbp + 0x1c0], rdx
mov dword [rbp + 0x1c8], 0x60
and dword [rbp + 0x1cc], 0
lea rdx, [rbp + 0x190]
mov qword [rsp + 0x28], rdx
mov dword [rsp + 0x20], eax
xor r9d, r9d
xor r8d, r8d
lea rdx, [0x140483caf]
call fcn.140001208
mov eax, dword [rsp + 0x30]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
mov rcx, qword [rsi + 0x38]
test rcx, rcx
je 0x140220445
mov r8, qword [rcx]
cmp rcx, rsi
setne dl
mov rax, qword [r8 + 0x20]
call qword [str.p76_]
and qword [rsi + 0x38], 0
mov eax, ebx
mov rcx, qword [rbp + 0x1d0]
xor rcx, rsp
call fcn.140356560
lea r11, [rsp + 0x2e0]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov r14, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
mov dword [rsp + 0x50], 0x238
lea rdx, [rsp + 0x50]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
nop dword [rax + rax]
test eax, eax
jne 0x140220563
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov dword [rsp + 0x30], eax
call fcn.1400550c0
mov rcx, qword [rax + 8]
cmp dword [rcx], r14d
jbe 0x140220510
lea rax, [rsp + 0x30]
mov qword [rbp + 0x1b0], rax
mov eax, 4
mov dword [rbp + 0x1b8], eax
and dword [rbp + 0x1bc], 0
lea rdx, str.The_call_to_Process32First_has_failed
mov qword [rbp + 0x1c0], rdx
mov dword [rbp + 0x1c8], VarR8FromUI1
and dword [rbp + 0x1cc], 0
lea rdx, [rbp + 0x190]
mov qword [rsp + 0x28], rdx
mov dword [rsp + 0x20], eax
xor r9d, r9d
xor r8d, r8d
lea rdx, [0x140483caf]
call fcn.140001208
mov eax, dword [rsp + 0x30]
movzx r14d, ax
or r14d, 0x80070000
test eax, eax
cmovle r14d, eax
test rbx, rbx
je 0x14022053a
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
nop dword [rax + rax]
nop
mov rcx, qword [rsi + 0x38]
test rcx, rcx
je 0x14022055b
mov r8, qword [rcx]
cmp rcx, rsi
setne dl
mov rax, qword [r8 + 0x20]
call qword [str.p76_]
and qword [rsi + 0x38], 0
mov eax, r14d
jmp 0x140220447
call fcn.1400550c0
mov rcx, qword [rax + 8]
cmp dword [rcx], 5
jbe 0x1402205b6
lea rax, str.Iterating_processes
mov qword [rbp + 0x1b0], rax
mov dword [rbp + 0x1b8], MsiGetActiveDatabase
and dword [rbp + 0x1bc], 0
lea rax, [rbp + 0x190]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 3
xor r9d, r9d
xor r8d, r8d
lea rdx, [0x140483d29]
call fcn.140001208
mov rcx, qword [rsi + 0x38]
test rcx, rcx
je 0x140220709
mov rax, qword [rcx]
lea rdx, [rsp + 0x50]
mov rax, qword [rax + 0x10]
call qword [str.p76_]
lea rdx, [rsp + 0x50]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_Process32NextW]
nop dword [rax + rax]
test eax, eax
jne 0x1402205b6
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov dword [rsp + 0x38], eax
cmp eax, 0x12
je 0x140220678
call fcn.1400550c0
mov rcx, qword [rax + 8]
cmp dword [rcx], r14d
jbe 0x14022066f
lea rax, [rsp + 0x38]
mov qword [rbp + 0x1b0], rax
mov eax, 4
mov dword [rbp + 0x1b8], eax
and dword [rbp + 0x1bc], 0
lea rdx, str.The_call_to_Process32Next_has_failed
mov qword [rbp + 0x1c0], rdx
mov dword [rbp + 0x1c8], VarR8FromUI1
and dword [rbp + 0x1cc], 0
lea rdx, [rbp + 0x190]
mov qword [rsp + 0x28], rdx
mov dword [rsp + 0x20], eax
xor r9d, r9d
xor r8d, r8d
lea rdx, [0x140483caf]
call fcn.140001208
mov eax, dword [rsp + 0x38]
jmp 0x140220514
call fcn.1400550c0
mov rcx, qword [rax + 8]
cmp dword [rcx], 5
jbe 0x1402206cc
lea rax, str.Ended_the_iterating_process
mov qword [rbp + 0x1b0], rax
mov dword [rbp + 0x1b8], 0x38
and dword [rbp + 0x1bc], 0
lea rax, [rbp + 0x190]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 3
xor r9d, r9d
xor r8d, r8d
lea rdx, [0x140483d29]
call fcn.140001208
nop
test rbx, rbx
je 0x1402206e1
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
nop dword [rax + rax]
nop
mov rcx, qword [rsi + 0x38]
test rcx, rcx
je 0x140220702
mov rax, qword [rcx]
cmp rcx, rsi
setne dl
mov rax, qword [rax + 0x20]
call qword [str.p76_]
and qword [rsi + 0x38], 0
xor eax, eax
jmp 0x140220447
call qword [sym.imp.msvcp_win.dll_void___cdecl_std::_Xbad_function_call_void_]
nop dword [rax + rax]
int3