Function at 0x1400420d0
Capabilities:
Enumerate processes

Disassembly:
jmp 0x1400420d0
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x2b0]
sub rsp, 0x3b0
mov qword [rsp + 0x50], 0xfffffffffffffffe
mov qword [rsp + 0x3f8], rbx
mov rax, qword [0x14007c860]
xor rax, rsp
mov qword [rbp + 0x2a0], rax
mov qword [rsp + 0x48], r9
mov ebx, r8d
mov dword [rsp + 0x30], ebx
mov r15d, edx
mov r13, rcx
xor edi, edi
mov r14d, edi
mov dword [rsp + 0x34], edi
mov esi, edi
cmp byte [0x14007ca60], sil
je 0x14004214e
cmp qword [rcx + 0x18], 8
jb 0x14004213f
mov rdx, qword [rcx]
jmp 0x140042142
mov rdx, rcx
lea rcx, str.GetNumProcessesUsingSnapshot__S_n
call fcn.1400031a2
cmp qword [r13 + 0x10], rsi
je 0x14004240c
xor edx, edx
lea ecx, [rdx + 2]
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov r12, rax
cmp rax, 0xffffffffffffffff
je 0x1400423f7
xor edx, edx
mov r8d, 0x234
lea rcx, [rsp + 0x64]
call sub.MSVCR110.dll_memset
mov dword [rsp + 0x60], 0x238
lea rdx, [rsp + 0x60]
mov rcx, r12
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x1400423d7
nop
lea rcx, [rbp - 0x74]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
je 0x1400423c0
cmp dword [rsp + 0x68], ebx
je 0x1400423c0
mov qword [rbp + 0x1d8], 7
mov qword [rbp + 0x1d0], rdi
mov word [rbp + 0x1c0], di
cmp word [rbp - 0x74], 0
jne 0x1400421e1
mov r8, rdi
jmp 0x1400421fb
lea rax, [rbp - 0x74]
or r8, 0xffffffffffffffff
nop dword [rax]
inc r8
cmp word [rax + r8*2], 0
jne 0x1400421f0
lea rdx, [rbp - 0x74]
lea rcx, [rbp + 0x1c0]
call fcn.140002ef5
nop
mov cl, 1
call qword [sym.imp.MSVCP110.dll_private:_static_class_std::locale::_Locimp____ptr64___cdecl_std::locale::_Init_bool_]
mov rbx, rax
mov qword [rsp + 0x58], rax
lea rdx, [rbp + 0x1c0]
lea rcx, [rbp + 0x1a0]
call fcn.140003323
mov rdi, rax
mov qword [rsp + 0x40], rbx
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 8]
lea r8, [rsp + 0x40]
mov rdx, r13
mov rcx, rdi
call fcn.1400022a7
movzx edi, al
cmp qword [rbp + 0x1b8], 8
jb 0x140042269
mov rcx, qword [rbp + 0x1a0]
call sub.MSVCR110.dll_void___cdecl_operator_delete_void____ptr64_
mov qword [rbp + 0x1b8], 7
xor eax, eax
mov qword [rbp + 0x1b0], rax
mov word [rbp + 0x1a0], ax
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x10]
mov rcx, rax
test rax, rax
je 0x1400422a0
mov rax, qword [rax]
mov edx, 1
call qword [rax]
nop
cmp qword [rbp + 0x1d8], 8
jb 0x1400422b6
mov rcx, qword [rbp + 0x1c0]
call sub.MSVCR110.dll_void___cdecl_operator_delete_void____ptr64_
test dil, dil
je 0x1400423ba
mov rdi, qword [rsp + 0x48]
cmp qword [rdi + 0x10], 0
je 0x1400422f8
mov edx, dword [rsp + 0x68]
lea rcx, [rbp + 0x1a0]
call fcn.140002b58
or r14d, 1
xor ecx, ecx
movzx r8d, cl
mov rdx, rax
mov rcx, rdi
call fcn.1400030f8
test al, al
jne 0x1400422f8
xor bl, bl
jmp 0x1400422fa
mov bl, 1
test r14b, 1
je 0x14004231a
and r14d, 0xfffffffe
cmp qword [rbp + 0x1b8], 8
jb 0x14004231a
mov rcx, qword [rbp + 0x1a0]
call sub.MSVCR110.dll_void___cdecl_operator_delete_void____ptr64_
test bl, bl
je 0x1400423ba
cmp r15d, 0xffffffff
jne 0x14004232f
inc esi
jmp 0x1400423ba
mov ecx, dword [rsp + 0x68]
call fcn.140002e19
mov rbx, rax
test rax, rax
je 0x1400423ba
lea rcx, [rbp + 0x1e0]
call fcn.14000273e
nop
mov dword [rsp + 0x38], 0xffffffff
mov dword [rsp + 0x34], 4
lea rax, [rsp + 0x34]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x38]
mov r8d, 0xc
mov rdx, rbx
lea rcx, [rbp + 0x1e0]
call fcn.140003bcf
test eax, eax
je 0x140042396
cmp dword [rsp + 0x38], r15d
jne 0x140042396
inc esi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
lea rax, vtable.CAdvApi32.0
mov qword [rbp + 0x1e0], rax
lea rcx, [rbp + 0x1e0]
call fcn.140003373
mov ebx, dword [rsp + 0x30]
xor edi, edi
lea rdx, [rsp + 0x60]
mov rcx, r12
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x1400421a0
jmp 0x1400423ec
cmp byte [0x14007ca60], sil
je 0x1400423ec
lea rcx, str.GetProcessIDUsingSnapshot:Process32FirstW_failed_n
call fcn.1400031a2
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x14004240c
cmp byte [0x14007ca60], sil
je 0x14004240c
lea rcx, str.CreateToolhelp32Snapshot:Process32FirstW_failed_n
call fcn.1400031a2
mov eax, esi
mov rcx, qword [rbp + 0x2a0]
xor rcx, rsp
call fcn.140052d40
mov rbx, qword [rsp + 0x3f8]
add rsp, 0x3b0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret