Function at 0x14004ac80
Capabilities:
Enumerate processes

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x2d0
mov rax, qword [0x14016d600]
xor rax, rsp
mov qword [rsp + 0x2c0], rax
mov dword [rsp + 0x20], 0
mov rcx, qword [rsp + 0x2e8]
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
inc rax
mov rcx, rax
call fcn.14004fe14
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x48]
inc rax
mov r8, qword [rsp + 0x2e8]
mov rdx, rax
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcpy_s]
xor edx, edx
mov ecx, 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0xffffffffffffffff
jne 0x14004ad54
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x58], rax
mov rcx, qword [rsp + 0x58]
call fcn.14004f5f0
lea rdx, [0x1400587f6]
mov rcx, qword [rsp + 0x2e0]
call fcn.14003c6e0
mov eax, dword [rsp + 0x20]
or eax, 1
mov dword [rsp + 0x20], eax
mov rax, qword [rsp + 0x2e0]
jmp 0x14004aeef
mov dword [rsp + 0x80], 0x130
lea rax, [rsp + 0x84]
mov rdi, rax
xor eax, eax
mov ecx, 0x12c
rep stosb byte [rdi], al
lea rdx, [rsp + 0x80]
mov rcx, qword [rsp + 0x30]
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x14004aea9
mov rdx, qword [rsp + 0x28]
lea rcx, [rsp + 0xac]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__stricmp]
test eax, eax
jne 0x14004ae8f
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r8d, dword [rsp + 0x88]
xor edx, edx
mov ecx, 0x1000
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov qword [rsp + 0x38], rax
cmp qword [rsp + 0x38], 0
je 0x14004ae52
mov dword [rsp + 0x40], 0x104
lea r9, [rsp + 0x40]
lea r8, [rsp + 0x1b0]
xor edx, edx
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_QueryFullProcessImageNameA]
test eax, eax
je 0x14004ae47
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x60], rax
mov rcx, qword [rsp + 0x60]
call fcn.14004f5f0
lea rdx, [rsp + 0x1b0]
mov rcx, qword [rsp + 0x2e0]
call fcn.14003c6e0
mov eax, dword [rsp + 0x20]
or eax, 1
mov dword [rsp + 0x20], eax
mov rax, qword [rsp + 0x2e0]
jmp 0x14004aeef
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x68], rax
mov rcx, qword [rsp + 0x68]
call fcn.14004f5f0
lea rdx, [0x1400587f7]
mov rcx, qword [rsp + 0x2e0]
call fcn.14003c6e0
mov eax, dword [rsp + 0x20]
or eax, 1
mov dword [rsp + 0x20], eax
mov rax, qword [rsp + 0x2e0]
jmp 0x14004aeef
lea rdx, [rsp + 0x80]
mov rcx, qword [rsp + 0x30]
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x14004ad8d
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x70], rax
mov rcx, qword [rsp + 0x70]
call fcn.14004f5f0
lea rdx, [0x140058801]
mov rcx, qword [rsp + 0x2e0]
call fcn.14003c6e0
mov eax, dword [rsp + 0x20]
or eax, 1
mov dword [rsp + 0x20], eax
mov rax, qword [rsp + 0x2e0]
mov rcx, qword [rsp + 0x2c0]
xor rcx, rsp
call fcn.14004f9f0
add rsp, 0x2d0
pop rdi
ret