Function at 0x14002ba60
Capabilities:
Enumerate processes

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0xb20
mov rax, qword [0x1403710d8]
xor rax, rsp
mov qword [rsp + 0xb18], rax
mov dword [rsp + 0x20], 0
cmp qword [rsp + 0xb30], 0
jne 0x14002baa9
mov ecx, 0x57
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor al, al
jmp 0x14002bdc7
mov r8, qword [rsp + 0xb38]
shl r8, 1
xor edx, edx
mov rcx, qword [rsp + 0xb30]
call sub.MSVCR90.dll_memset
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [rsp + 0x270], eax
mov r8d, 0x238
xor edx, edx
lea rcx, [rsp + 0x30]
call sub.MSVCR90.dll_memset
xor edx, edx
mov ecx, 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov qword [rsp + 0x278], rax
cmp qword [rsp + 0x278], 0xffffffffffffffff
jne 0x14002bb08
xor al, al
jmp 0x14002bdc7
mov dword [rsp + 0x30], 0x238
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x278]
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
jne 0x14002bb3b
mov rcx, qword [rsp + 0x278]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
jmp 0x14002bdc7
mov eax, dword [rsp + 0x38]
cmp dword [rsp + 0x270], eax
jne 0x14002bb52
mov eax, dword [rsp + 0x50]
mov dword [rsp + 0x20], eax
jmp 0x14002bb68
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x278]
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x14002bb3b
mov rcx, qword [rsp + 0x278]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r8d, 0x438
xor edx, edx
lea rcx, [rsp + 0x290]
call sub.MSVCR90.dll_memset
mov edx, dword [rsp + 0x20]
mov ecx, 8
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov qword [rsp + 0x280], rax
cmp qword [rsp + 0x280], 0xffffffffffffffff
jne 0x14002bbae
jmp 0x14002bc13
mov dword [rsp + 0x290], 0x438
lea rdx, [rsp + 0x290]
mov rcx, qword [rsp + 0x280]
call sub.KERNEL32.dll_Module32FirstW
test eax, eax
je 0x14002bbef
lea r8, [rsp + 0x4c0]
mov rdx, qword [rsp + 0xb38]
mov rcx, qword [rsp + 0xb30]
call fcn.14000af60
mov rcx, qword [rsp + 0x280]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsp + 0x280], 0
xor eax, eax
test eax, eax
jne 0x14002bb76
mov rcx, qword [rsp + 0xb30]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
jne 0x14002bd96
lea rcx, str.psapi.dll
call fcn.140033350
mov qword [rsp + 0x6d0], rax
cmp qword [rsp + 0x6d0], 0
je 0x14002bd96
lea rdx, str.GetProcessImageFileNameW
mov rcx, qword [rsp + 0x6d0]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0x6d8], rax
cmp qword [rsp + 0x6d8], 0
je 0x14002bd7c
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov ecx, 6
call fcn.140035c10
test eax, eax
je 0x14002bc9b
mov dword [rsp + 0xb10], 0x1000
jmp 0x14002bca6
mov dword [rsp + 0xb10], 0x410
mov eax, dword [rsp + 0xb10]
mov dword [rsp + 0x6e8], eax
mov r8d, dword [rsp + 0x20]
xor edx, edx
mov ecx, dword [rsp + 0x6e8]
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov qword [rsp + 0x6e0], rax
cmp qword [rsp + 0x6e0], 0
je 0x14002bd7c
xor eax, eax
mov word [rsp + 0x6f0], ax
lea rdi, [rsp + 0x6f2]
xor eax, eax
mov ecx, 0x206
rep stosb byte [rdi], al
mov r8d, 0x104
lea rdx, [rsp + 0x6f0]
mov rcx, qword [rsp + 0x6e0]
call qword [rsp + 0x6d8]
test eax, eax
je 0x14002bd6e
xor eax, eax
mov word [rsp + 0x900], ax
lea rdi, [rsp + 0x902]
xor eax, eax
mov ecx, 0x206
rep stosb byte [rdi], al
mov r8d, 0x104
lea rdx, [rsp + 0x900]
lea rcx, [rsp + 0x6f0]
call fcn.14002c050
lea r8, [rsp + 0x900]
mov rdx, qword [rsp + 0xb38]
mov rcx, qword [rsp + 0xb30]
call fcn.14000af60
mov rcx, qword [rsp + 0x6e0]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x6d0]
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov qword [rsp + 0x6d0], 0
mov rcx, qword [rsp + 0xb30]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
jle 0x14002bdb5
mov dword [rsp + 0xb14], 1
jmp 0x14002bdc0
mov dword [rsp + 0xb14], 0
mov al, byte [rsp + 0xb14]
mov rcx, qword [rsp + 0xb18]
xor rcx, rsp
call fcn.14028a900
add rsp, 0xb20
pop rdi
ret