Function at 0x1400c6748
Capabilities:
Enumerate processes

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
sub rsp, 0x390
mov rax, qword [0x1401423c0]
xor rax, rsp
mov qword [rsp + 0x380], rax
mov esi, ecx
mov rdi, rdx
lea rcx, [rsp + 0x34]
xor edx, edx
mov r8d, 0x12c
call fcn.1400e1fc0
mov ebp, 0x80000000
mov dword [rsp + 0x30], 0x130
cmp dword [0x140145858], ebp
jb 0x1400c67f0
xor edx, edx
lea ecx, [rdx + 2]
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x1400c67b3
xor eax, eax
jmp 0x1400c6a10
lea rdx, [rsp + 0x30]
mov rcx, rax
call sub.KERNEL32.dll_Process32First
jmp 0x1400c67db
mov ecx, dword [rsp + 0x38]
cmp ecx, esi
je 0x1400c6885
lea rdx, [rsp + 0x30]
mov rcx, rbx
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x1400c67c2
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [0x140145858], ebp
jae 0x1400c67ac
lea rcx, str.psapi.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rbx, rax
test rax, rax
je 0x1400c67ac
lea rdx, str.EnumProcessModules
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.GetModuleFileNameExA
mov rcx, rbx
mov rbp, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.GetModuleBaseNameA
mov rcx, rbx
mov r12, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov r8d, esi
xor edx, edx
mov ecx, 0x410
mov r13, rax
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rbx, rax
test rax, rax
je 0x1400c67ac
lea r9, [rsp + 0x28]
lea rdx, [rsp + 0x20]
mov r8d, 8
mov rcx, rax
call rbp
mov rcx, rbx
test eax, eax
jne 0x1400c694b
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1400c67ac
mov eax, dword [rsp + 0x54]
mov dword [rdi], ecx
mov ebx, 0x103
mov dword [rdi + 0x20c], eax
mov eax, dword [rsp + 0x50]
lea rcx, [rdi + 0x108]
lea rdx, [rsp + 0x5c]
mov r8, rbx
mov dword [rdi + 0x210], eax
call fcn.1400e2260
lea rdx, [rsp + 0x5c]
lea rcx, [rsp + 0x160]
mov r8, rbx
call fcn.1400e2260
lea rcx, [rsp + 0x160]
call fcn.1400e1d50
lea ebx, [rax - 1]
movsxd rcx, ebx
lea rax, [rsp + rcx + 0x160]
cmp byte [rax], 0x5c
je 0x1400c68f0
dec ebx
dec rax
jmp 0x1400c68e4
lea rcx, [rsp + 0x160]
inc ebx
movsxd rbp, ebx
call fcn.1400e1d50
mov ecx, ebx
cmp rcx, rax
ja 0x1400c693a
lea rsi, [rsp + 0x270]
lea rbp, [rsp + rbp + 0x160]
mov al, byte [rbp]
lea rcx, [rsp + 0x160]
inc ebx
mov byte [rsi], al
inc rsi
inc rbp
call fcn.1400e1d50
mov ecx, ebx
cmp rcx, rax
jbe 0x1400c6919
lea rcx, [rdi + 4]
lea rdx, [rsp + 0x270]
jmp 0x1400c6a06
mov rdx, qword [rsp + 0x20]
mov ebp, 0x104
lea r8, [rsp + 0x160]
mov r9d, ebp
call r12
mov rcx, rbx
test eax, eax
je 0x1400c687a
mov rdx, qword [rsp + 0x20]
lea r8, [rsp + 0x270]
mov r9d, ebp
call r13
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor edx, edx
lea ecx, [rdx + 2]
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1400c69cc
lea rdx, [rsp + 0x30]
mov rcx, rax
call sub.KERNEL32.dll_Process32First
jmp 0x1400c69bf
cmp dword [rsp + 0x38], esi
je 0x1400c69c3
lea rdx, [rsp + 0x30]
mov rcx, rbx
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x1400c69ac
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [rsp + 0x54]
lea rcx, [rdi + 4]
lea rdx, [rsp + 0x270]
mov dword [rdi + 0x20c], eax
mov eax, dword [rsp + 0x50]
mov dword [rdi + 0x210], eax
mov eax, dword [rsp + 0x38]
mov dword [rdi], eax
call fcn.1400e2e20
lea rcx, [rdi + 0x108]
lea rdx, [rsp + 0x160]
call fcn.1400e2e20
mov eax, 1
mov rcx, qword [rsp + 0x380]
xor rcx, rsp
call fcn.1400e2890
mov rbx, qword [rsp + 0x3d0]
add rsp, 0x390
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret