Function at 0x14004c2d0
Capabilities:
Enumerate processes

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r14
lea rbp, [rsp - 0x1a0]
sub rsp, 0x2a0
mov rax, qword [0x1400a4010]
xor rax, rsp
mov qword [rbp + 0x190], rax
mov rsi, rdx
mov qword [rsp + 0x28], rdx
cmp qword [rdx + 0x18], 0x10
jb 0x14004c319
mov rdi, qword [rdx]
mov rbx, rdi
add rbx, qword [rdx + 0x10]
jmp 0x14004c323
mov rbx, qword [rdx + 0x10]
add rbx, rsi
mov rdi, rsi
xor r14d, r14d
mov qword [rsp + 0x30], r14
mov ecx, r14d
mov qword [rsp + 0x40], rcx
mov r8d, 7
mov qword [rsp + 0x48], r8
mov rdx, rbx
sub rdx, rdi
cmp rdx, r8
jbe 0x14004c360
lea rcx, [rsp + 0x30]
call fcn.140058640
mov ecx, r14d
mov qword [rsp + 0x40], rcx
mov r8, qword [rsp + 0x48]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
cmp rdi, rbx
je 0x14004c3bc
nop
movsx r9d, byte [rdi]
cmp rcx, r8
jae 0x14004c39e
lea rax, [rcx + 1]
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x30]
cmp r8, 8
cmovae rax, qword [rsp + 0x30]
mov word [rax + rcx*2], r9w
mov word [rax + rcx*2 + 2], r14w
jmp 0x14004c3a8
lea rcx, [rsp + 0x30]
call fcn.1400587b0
inc rdi
cmp rdi, rbx
je 0x14004c3bc
mov r8, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x40]
jmp 0x14004c370
mov dword [rsp + 0x50], 0x238
xor edx, edx
lea ecx, [rdx + 2]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x14004c4a2
mov rdx, qword [rsp + 0x48]
cmp rdx, 8
jb 0x14004c41e
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x30]
cmp rdx, 0x1000
mov rax, rcx
jb 0x14004c419
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14004c648
call fcn.14006cbbc
mov qword [rsp + 0x40], r14
mov qword [rsp + 0x48], 7
mov word [rsp + 0x30], r14w
mov rdx, qword [rsi + 0x18]
cmp rdx, 0x10
jb 0x14004c46c
inc rdx
mov rcx, qword [rsi]
cmp rdx, 0x1000
jb 0x14004c467
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x14004c64f
mov rcx, r8
call fcn.14006cbbc
mov qword [rsi + 0x10], r14
mov qword [rsi + 0x18], 0xf
mov byte [rsi], 0
mov rcx, qword [rbp + 0x190]
xor rcx, rsp
call fcn.14006ca20
lea r11, [rsp + 0x2a0]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
lea rdx, [rsp + 0x50]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
lea rcx, [rsp + 0x7c]
mov rax, 0xffffffffffffffff
nop dword [rax]
inc rax
cmp word [rcx + rax*2], 0
jne 0x14004c4c0
lea r10, [rsp + 0x30]
cmp qword [rsp + 0x48], 8
cmovae r10, qword [rsp + 0x30]
mov r11, qword [rsp + 0x40]
mov r9, r11
cmp rax, r11
cmovb r9, rax
lea rcx, [rsp + 0x7c]
test r9, r9
je 0x14004c5d3
movzx edx, word [r10]
movzx r8d, word [rsp + 0x7c]
cmp dx, r8w
jb 0x14004c536
lea rdi, [rsp + 0x7c]
sub r10, rdi
cmp dx, r8w
ja 0x14004c536
cmp r9, 1
je 0x14004c5d3
dec r9
add rcx, 2
movzx edx, word [rcx + r10]
movzx r8d, word [rcx]
cmp dx, r8w
jae 0x14004c514
lea rdx, [rsp + 0x50]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
je 0x14004c5fa
lea rcx, [rsp + 0x7c]
mov rax, 0xffffffffffffffff
nop dword [rax + rax]
inc rax
cmp word [rcx + rax*2], 0
jne 0x14004c560
lea r10, [rsp + 0x30]
cmp qword [rsp + 0x48], 8
cmovae r10, qword [rsp + 0x30]
mov r11, qword [rsp + 0x40]
mov r9, r11
cmp rax, r11
cmovb r9, rax
lea rcx, [rsp + 0x7c]
test r9, r9
je 0x14004c5d3
movzx edx, word [r10]
movzx r8d, word [rsp + 0x7c]
cmp dx, r8w
jb 0x14004c536
lea rdi, [rsp + 0x7c]
sub r10, rdi
cmp dx, r8w
ja 0x14004c536
cmp r9, 1
je 0x14004c5d3
dec r9
add rcx, 2
movzx edx, word [r10 + rcx]
movzx r8d, word [rcx]
cmp dx, r8w
jae 0x14004c5b0
jmp 0x14004c536
cmp r11, rax
jb 0x14004c536
ja 0x14004c536
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [rsp + 0x58]
mov dword [0x1400a4ebc], eax
jmp 0x14004c3dc
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rdx, qword [rsp + 0x48]
cmp rdx, 8
jb 0x14004c41e
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14004c419
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14004c419
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3