Function at 0x402e40
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5c7a6c
mov eax, dword fs:[0]
push eax
mov eax, 0x1838
call fcn.00426ab0
mov eax, dword [0x64a3a4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x1834], ecx
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x1844]
push eax
push 0x1000
lea eax, [ebp - 0x17e0]
mov dword [ebp - 0x1838], ecx
push eax
call sub.PSAPI.DLL_EnumProcesses
mov edx, dword [ebp - 0x1844]
xor ecx, ecx
shr edx, 2
xor eax, eax
xor edi, edi
mov dword [ebp - 0x1840], edx
mov dword [ebp - 0x182c], ecx
mov dword [ebp - 0x1830], ecx
mov dword [ebp - 0x183c], eax
test edx, edx
je 0x40326f
nop dword [eax + eax]
push dword [ebp + eax*4 - 0x17e0]
push 0
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov ebx, eax
test ebx, ebx
je 0x40323e
push 0x7d0
lea eax, [ebp - 0x7e0]
push 0
push eax
call fcn.00492030
add esp, 0xc
lea eax, [ebp - 0x7e0]
xor esi, esi
push 0x7d0
push eax
push esi
push ebx
call sub.PSAPI.DLL_GetModuleFileNameExW
lea ecx, [ebp - 0x7e0]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x402f22
sub ecx, edx
sar ecx, 1
jne 0x402f7c
test edi, edi
jne 0x402f48
push str.psapi.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, eax
test edi, edi
je 0x402f7c
mov eax, dword [ebp - 0x1830]
test eax, eax
jne 0x402f68
push 0x5d9bc8
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x1830], eax
test eax, eax
je 0x402f7c
push 0x104
lea ecx, [ebp - 0x7e0]
push ecx
push ebx
call eax
mov esi, 1
lea ecx, [ebp - 0x7e0]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x402f85
sub ecx, edx
sar ecx, 1
test ecx, ecx
jle 0x40323e
lea eax, [ebp - 0x7e0]
push eax
call fcn.00494fa8
mov ecx, dword [ebp - 0x1834]
lea eax, [ebp - 0x7e0]
add esp, 4
push eax
call fcn.00402c00
test al, al
je 0x40323e
xor eax, eax
mov dword [ebp - 0x182c], 1
mov dword [ebp - 0x17fc], 7
mov dword [ebp - 0x1800], 0
mov word [ebp - 0x1810], ax
cmp word [ebp - 0x7e0], ax
jne 0x402ff9
xor ecx, ecx
jmp 0x403011
lea ecx, [ebp - 0x7e0]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x403002
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x7e0]
push eax
lea ecx, [ebp - 0x1810]
call fcn.00404c50
xor eax, eax
mov dword [ebp - 4], 0
push eax
push 0x5d9890
lea ecx, [ebp - 0x17f8]
mov dword [ebp - 0x17e4], 7
mov dword [ebp - 0x17e8], 0
mov word [ebp - 0x17f8], ax
call fcn.00404c50
mov byte [ebp - 4], 1
test esi, esi
je 0x403174
mov ecx, dword [ebp - 0x1834]
lea eax, [ebp - 0x7e0]
push eax
lea eax, [ebp - 0x1828]
push eax
call fcn.00404e60
mov esi, eax
lea eax, [ebp - 0x17f8]
cmp eax, esi
je 0x4030d1
mov eax, dword [ebp - 0x17e4]
cmp eax, 8
jb 0x4030a8
inc eax
lea ecx, [ebp - 0x17f8]
push eax
push dword [ebp - 0x17f8]
call fcn.00404da0
xor eax, eax
mov dword [ebp - 0x17e4], 7
push esi
lea ecx, [ebp - 0x17f8]
mov dword [ebp - 0x17e8], 0
mov word [ebp - 0x17f8], ax
call fcn.00403e60
mov eax, dword [ebp - 0x1814]
mov byte [ebp - 4], 1
cmp eax, 8
jb 0x4030f3
inc eax
lea ecx, [ebp - 0x1828]
push eax
push dword [ebp - 0x1828]
call fcn.00404da0
cmp dword [ebp - 0x17e4], 8
lea eax, [ebp - 0x17f8]
push 0
cmovae eax, dword [ebp - 0x17f8]
push 0x5d9890
push dword [ebp - 0x17e8]
push eax
call fcn.00404520
add esp, 0x10
test eax, eax
jne 0x40318a
cmp word [ebp - 0x7e0], ax
jne 0x403141
xor ecx, ecx
lea eax, [ebp - 0x7e0]
push ecx
push eax
lea ecx, [ebp - 0x17f8]
call fcn.00404c50
jmp 0x40318a
lea ecx, [ebp - 0x7e0]
lea edx, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x403150
sub ecx, edx
lea eax, [ebp - 0x7e0]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x17f8]
call fcn.00404c50
jmp 0x40318a
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x1810]
push eax
lea ecx, [ebp - 0x17f8]
call fcn.00404b30
mov eax, dword [ebp - 0x1838]
lea ecx, [ebp - 0x17f8]
push dword [ebp - 0x1840]
push ecx
mov esi, dword [eax + 4]
push esi
push dword [eax]
call fcn.00401e70
add esp, 0x10
cmp eax, esi
jne 0x4031c1
mov ecx, dword [ebp - 0x1838]
lea eax, [ebp - 0x17f8]
push eax
call fcn.004052b0
mov eax, dword [ebp - 0x17e4]
cmp eax, 8
jb 0x4031df
inc eax
lea ecx, [ebp - 0x17f8]
push eax
push dword [ebp - 0x17f8]
call fcn.00404da0
xor eax, eax
mov dword [ebp - 0x17e4], 7
mov word [ebp - 0x17f8], ax
mov eax, dword [ebp - 0x17fc]
mov dword [ebp - 0x17e8], 0
mov dword [ebp - 4], 0xffffffff
cmp eax, 8
jb 0x403221
inc eax
lea ecx, [ebp - 0x1810]
push eax
push dword [ebp - 0x1810]
call fcn.00404da0
xor eax, eax
mov dword [ebp - 0x17fc], 7
mov dword [ebp - 0x1800], 0
mov word [ebp - 0x1810], ax
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x183c]
inc eax
mov dword [ebp - 0x183c], eax
cmp eax, dword [ebp - 0x1840]
jb 0x402ed0
test edi, edi
je 0x403269
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [ebp - 0x182c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00426a9d
mov esp, ebp
pop ebp
ret 4