Function at 0x140052df0
Capabilities:
Enumerate processes
Get process image filename

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x4c0
mov rax, qword [0x1400c1008]
xor rax, rsp
mov qword [rsp + 0x4b0], rax
mov rsi, rdx
mov dword [rsp + 0x290], 0
mov qword [rsp + 0x20], 0
xor edx, edx
mov r8d, 0x238
lea rcx, [rsp + 0x50]
call sub.VCRUNTIME140.dll_memset
xor r13d, r13d
mov qword [rsp + 0x38], r13
xor edx, edx
mov r8d, 0x208
lea rcx, [rsp + 0x2a0]
call sub.VCRUNTIME140.dll_memset
xor r12d, r12d
lea ecx, [r13 + 0x20]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov r15, rax
mov qword [rsp + 0x20], rax
test rax, rax
jne 0x140052e84
lea edi, [rax + 1]
jmp 0x140052f47
xorps xmm0, xmm0
movups xmmword [rax], xmm0
movups xmmword [rax + 0x10], xmm0
mov dword [rsp + 0x290], 0x20
mov edi, 1
mov r8d, edi
lea rdx, [rsp + 0x290]
mov rcx, r15
call qword [sym.imp.IPHLPAPI.DLL_GetTcpTable2]
cmp eax, 0x7a
jne 0x140052ef2
mov rcx, r15
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rsp + 0x20], 0
mov ebx, dword [rsp + 0x290]
mov ecx, ebx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov r15, rax
mov qword [rsp + 0x20], rax
test rax, rax
je 0x140052f47
mov r8, rbx
xor edx, edx
mov rcx, rax
call sub.VCRUNTIME140.dll_memset
mov r8d, edi
lea rdx, [rsp + 0x290]
mov rcx, r15
call qword [sym.imp.IPHLPAPI.DLL_GetTcpTable2]
test eax, eax
jne 0x140052f47
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [rsp + 0x28], eax
xor edx, edx
lea ecx, [rdx + 2]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov r13, rax
mov qword [rsp + 0x38], rax
cmp rax, 0xffffffffffffffff
je 0x140052f47
mov dword [rsp + 0x50], 0x238
lea rdx, [rsp + 0x50]
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
jne 0x140052f90
nop
test r15, r15
je 0x140052f5f
mov rcx, r15
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rsp + 0x20], 0
test r13, r13
je 0x140052f76
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsp + 0x38], 0
mov eax, edi
jmp 0x140053221
mov r8d, dword [rsp + 0x58]
xor edx, edx
mov ecx, 0x400
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov r14, rax
mov qword [rsp + 0x48], rax
test rax, rax
je 0x140053163
mov r8d, 0x104
lea rdx, [rsp + 0x2a0]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_K32GetProcessImageFileNameW]
mov ecx, eax
test eax, eax
je 0x140053168
lea rbx, [rsp + 0x2a0]
lea rbx, [rbx + rcx*2]
mov qword [rsp + 0x40], rbx
nop word [rax + rax]
lea rax, [rsp + 0x2a0]
cmp rbx, rax
jb 0x14005300e
cmp word [rbx], 0x5c
je 0x14005300e
sub rbx, 2
mov qword [rsp + 0x40], rbx
jmp 0x140052ff0
lea rax, [rsp + 0x2a0]
cmp rbx, rax
jb 0x140053163
mov rax, rcx
lea rcx, [rsp + 0x2a0]
lea rcx, [rcx + rax*2]
cmp rbx, rcx
je 0x140053163
cmp word [rbx], 0x5c
jne 0x140053163
add rbx, 2
mov qword [rsp + 0x40], rbx
mov edx, 0x104
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsnlen]
mov rdi, rax
mov eax, dword [rsp + 0x28]
cmp eax, dword [rsp + 0x58]
je 0x140053163
mov edx, 0x104
lea rcx, [0x1400e46a8]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsnlen]
cmp rax, rdi
jbe 0x140053094
mov edx, 0x104
lea rcx, [0x1400e4618]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsnlen]
jmp 0x140053097
mov rax, rdi
mov r8, rax
lea rdx, [0x1400e4578]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncmp]
test eax, eax
je 0x1400530f3
mov edx, 0x104
lea rcx, [0x1400e4a38]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsnlen]
cmp rax, rdi
jbe 0x1400530d9
mov edx, 0x104
lea rcx, [0x1400e4a18]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsnlen]
jmp 0x1400530dc
mov rax, rdi
mov r8, rax
lea rdx, [0x1400e49f8]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncmp]
test eax, eax
jne 0x140053163
xor r12d, r12d
mov dword [rsp + 0x2c], r12d
mov edx, 0x104
lea rcx, [0x1400e49d8]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsnlen]
cmp rdi, rax
mov eax, 1
cmove r12d, eax
mov dword [rsp + 0x2c], r12d
mov eax, dword [rsi]
lea rdx, [rax + rax*2]
shl rdx, 2
add rdx, 0xc
mov rcx, qword [rsi + 8]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_realloc]
test rax, rax
je 0x140053163
mov qword [rsi + 8], rax
mov ecx, dword [rsi]
lea rdx, [rcx + rcx*2]
xor ecx, ecx
mov qword [rax + rdx*4], rcx
mov dword [rax + rdx*4 + 8], ecx
mov eax, dword [rsi]
lea rdx, [rax + rax*2]
mov rcx, qword [rsi + 8]
mov eax, dword [rsp + 0x58]
mov dword [rcx + rdx*4 + 4], eax
inc dword [rsi]
test r14, r14
je 0x14005317a
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsp + 0x48], 0
lea rdx, [rsp + 0x50]
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_Process32NextW]
cmp eax, 1
je 0x140052f90
xor r14d, r14d
mov dword [rsp + 0x34], r14d
cmp r14d, dword [rsi]
jae 0x1400531ea
xor edi, edi
mov dword [rsp + 0x30], edi
cmp edi, dword [r15]
jae 0x1400531e5
lea rbx, [r14 + r14*2]
mov eax, edi
imul rcx, rax, 0x1c
mov rdx, qword [rsi + 8]
mov eax, dword [rcx + r15 + 0x18]
cmp dword [rdx + rbx*4 + 4], eax
jne 0x1400531e1
movzx ecx, word [rcx + r15 + 0xc]
call qword [sym.imp.WS2_32.dll_ntohs]
movzx ecx, ax
mov rax, qword [rsi + 8]
mov dword [rax + rbx*4 + 8], ecx
mov rax, qword [rsi + 8]
mov dword [rax + rbx*4], r12d
inc edi
jmp 0x1400531a0
inc r14d
jmp 0x140053194
test r15, r15
je 0x140053201
mov rcx, r15
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rsp + 0x20], 0
test r13, r13
je 0x140053218
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsp + 0x38], 0
xor eax, eax
jmp 0x140053221
mov rcx, qword [rsp + 0x4b0]
xor rcx, rsp
call fcn.140001ea0
lea r11, [rsp + 0x4c0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret