Function at 0x40edd0
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x170
mov eax, dword [0x45a074]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x134], 0
push 0
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov dword [ebp - 0x138], eax
mov dword [ebp - 0x12c], 0x128
lea eax, [ebp - 0x12c]
push eax
mov ecx, dword [ebp - 0x138]
push ecx
call dword [sym.imp.KERNEL32.dll_Process32First]
test eax, eax
jne 0x40ee9a
mov dword [ebp - 0x150], 0x4516c0
push 0x5c
mov edx, dword [ebp - 0x150]
push edx
call fcn.00423700
add esp, 8
mov dword [ebp - 0x14c], eax
cmp dword [ebp - 0x14c], 0
je 0x40ee5a
mov eax, dword [ebp - 0x14c]
add eax, 1
mov dword [ebp - 0x154], eax
jmp 0x40ee66
mov ecx, dword [ebp - 0x150]
mov dword [ebp - 0x154], ecx
push 0x451614
push 0x281
mov edx, dword [ebp - 0x154]
push edx
push 1
call dword [sym.imp.libnac_base.dll_error_output]
add esp, 0x10
xor eax, eax
jne 0x40ee1f
mov ecx, dword [ebp - 0x138]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x40f0cc
mov edx, dword [ebp + 8]
mov dword [ebp - 0x140], edx
lea eax, [ebp - 0x108]
mov dword [ebp - 0x13c], eax
mov ecx, dword [ebp - 0x13c]
mov dl, byte [ecx]
mov byte [ebp - 0x12d], dl
mov eax, dword [ebp - 0x140]
cmp dl, byte [eax]
jne 0x40ef0d
cmp byte [ebp - 0x12d], 0
je 0x40ef01
mov ecx, dword [ebp - 0x13c]
mov dl, byte [ecx + 1]
mov byte [ebp - 0x12e], dl
mov eax, dword [ebp - 0x140]
cmp dl, byte [eax + 1]
jne 0x40ef0d
add dword [ebp - 0x13c], 2
add dword [ebp - 0x140], 2
cmp byte [ebp - 0x12e], 0
jne 0x40eeaf
mov dword [ebp - 0x158], 0
jmp 0x40ef18
sbb ecx, ecx
or ecx, 1
mov dword [ebp - 0x158], ecx
mov edx, dword [ebp - 0x158]
mov dword [ebp - 0x16c], edx
cmp dword [ebp - 0x16c], 0
jne 0x40ef51
mov eax, dword [ebp - 0x124]
mov dword [ebp - 0x134], eax
mov ecx, dword [ebp - 0x138]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x134]
jmp 0x40f0cc
lea edx, [ebp - 0x12c]
push edx
mov eax, dword [ebp - 0x138]
push eax
call dword [sym.imp.KERNEL32.dll_Process32Next]
test eax, eax
je 0x40f02c
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x148], ecx
lea edx, [ebp - 0x108]
mov dword [ebp - 0x144], edx
mov eax, dword [ebp - 0x144]
mov cl, byte [eax]
mov byte [ebp - 0x12f], cl
mov edx, dword [ebp - 0x148]
cmp cl, byte [edx]
jne 0x40efe0
cmp byte [ebp - 0x12f], 0
je 0x40efd4
mov eax, dword [ebp - 0x144]
mov cl, byte [eax + 1]
mov byte [ebp - 0x130], cl
mov edx, dword [ebp - 0x148]
cmp cl, byte [edx + 1]
jne 0x40efe0
add dword [ebp - 0x144], 2
add dword [ebp - 0x148], 2
cmp byte [ebp - 0x130], 0
jne 0x40ef82
mov dword [ebp - 0x15c], 0
jmp 0x40efeb
sbb eax, eax
or eax, 1
mov dword [ebp - 0x15c], eax
mov ecx, dword [ebp - 0x15c]
mov dword [ebp - 0x170], ecx
cmp dword [ebp - 0x170], 0
jne 0x40f027
mov edx, dword [ebp - 0x124]
mov dword [ebp - 0x134], edx
mov eax, dword [ebp - 0x134]
push eax
push 0
push 0x1fffff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
jmp 0x40f02c
jmp 0x40ef51
mov edx, dword [ebp + 0xc]
cmp dword [edx], 0
jne 0x40f0b9
cmp dword [ebp - 0x134], 0
je 0x40f0b9
mov dword [ebp - 0x164], 0x451750
push 0x5c
mov eax, dword [ebp - 0x164]
push eax
call fcn.00423700
add esp, 8
mov dword [ebp - 0x160], eax
cmp dword [ebp - 0x160], 0
je 0x40f07c
mov ecx, dword [ebp - 0x160]
add ecx, 1
mov dword [ebp - 0x168], ecx
jmp 0x40f088
mov edx, dword [ebp - 0x164]
mov dword [ebp - 0x168], edx
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.get_pro_handle_fail_:__d
push 0x293
mov eax, dword [ebp - 0x168]
push eax
push 1
call dword [sym.imp.libnac_base.dll_error_output]
add esp, 0x14
xor ecx, ecx
jne 0x40f041
mov dword [ebp - 0x134], 0
mov edx, dword [ebp - 0x138]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x134]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00421c00
mov esp, ebp
pop ebp
ret