Function at 0x40c8e0
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4abdda
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
sub esp, 0x268
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x268], ecx
mov dword [ebp - 0x244], 0
mov eax, dword [ebp + 0xc]
push eax
push 0
push 0x18
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jne 0x40c933
xor eax, eax
jmp 0x40cdf1
mov ecx, dword [ebp + 0xc]
push ecx
push 8
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0xffffffff
jne 0x40c958
mov edx, dword [ebp - 0x1c]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x40cdf1
mov dword [ebp - 0x240], 0x224
lea eax, [ebp - 0x240]
push eax
mov ecx, dword [ebp - 0x18]
push ecx
call sub.KERNEL32.dll_Module32First
mov dword [ebp - 0x14], eax
jmp 0x40c98a
lea edx, [ebp - 0x240]
push edx
mov eax, dword [ebp - 0x18]
push eax
call sub.KERNEL32.dll_Module32Next
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x268]
cmp dword [ecx + 0x438], 0
jne 0x40cde1
cmp dword [ebp - 0x14], 0
je 0x40cde1
mov dword [ebp - 0x250], 0
mov dword [ebp - 0x248], 0
mov dword [ebp - 0x24c], 0
push 0
lea edx, [ebp - 0x120]
push edx
mov ecx, dword [ebp - 0x268]
call fcn.0040ce04
lea eax, [ebp - 0x120]
push eax
mov ecx, dword [ebp + 8]
push ecx
push 0x4c4510
mov edx, dword [ebp - 0x268]
push edx
call fcn.0040ba43
add esp, 0x10
lea eax, [ebp - 0x120]
push eax
mov ecx, dword [ebp - 0x268]
call fcn.0040c7ed
test eax, eax
je 0x40ca13
jmp 0x40cdc3
push 4
push 0x1000
mov ecx, dword [ebp - 0x228]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 0x250], eax
lea edx, [ebp - 0x248]
push edx
mov eax, dword [ebp - 0x228]
push eax
mov ecx, dword [ebp - 0x250]
push ecx
mov edx, dword [ebp - 0x22c]
push edx
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
jne 0x40ca85
cmp dword [ebp - 0x250], 0
je 0x40ca80
push 0x8000
push 0
mov ecx, dword [ebp - 0x250]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov dword [ebp - 0x250], 0
jmp 0x40c977
mov edx, dword [ebp - 0x268]
cmp dword [edx + 0x438], 0
jne 0x40caf6
lea eax, [ebp - 0x24c]
push eax
lea ecx, [ebp - 0x120]
push ecx
mov ecx, dword [ebp - 0x268]
call fcn.0040f266
mov dword [ebp - 0x244], eax
cmp dword [ebp - 0x244], 0
je 0x40caf6
cmp dword [ebp - 0x250], 0
je 0x40cae3
push 0x8000
push 0
mov edx, dword [ebp - 0x250]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov dword [ebp - 0x250], 0
cmp dword [ebp - 0x244], 0xffffffff
jne 0x40caf1
jmp 0x40cde1
jmp 0x40c977
cmp dword [ebp - 0x24c], 0
jne 0x40cb39
cmp dword [ebp - 0x250], 0
je 0x40cb26
push 0x8000
push 0
mov eax, dword [ebp - 0x250]
push eax
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov dword [ebp - 0x250], 0
cmp dword [ebp - 0x244], 0xffffffff
jne 0x40cb34
jmp 0x40cde1
jmp 0x40c977
cmp dword [ebp - 0x250], 0
je 0x40ccac
mov dword [ebp - 4], 0
mov dword [ebp - 0x25c], 0
call fcn.004401df
mov dword [ebp - 0x26c], eax
lea ecx, [ebp - 0x25c]
push ecx
mov edx, dword [ebp - 0x248]
push edx
mov eax, dword [ebp - 0x250]
push eax
mov ecx, dword [ebp - 0x26c]
call fcn.00440866
mov dword [ebp - 0x270], eax
cmp dword [ebp - 0x270], 0
je 0x40cc9d
cmp dword [ebp - 0x25c], 0
je 0x40cc9d
mov dword [ebp - 0x264], 0
mov dword [ebp - 0x260], 0
mov ecx, dword [ebp - 0x25c]
push ecx
mov ecx, dword [ebp - 0x268]
call fcn.0040dd26
mov dword [ebp - 0x274], eax
mov edx, dword [ebp - 0x274]
mov eax, dword [edx]
mov dword [ebp - 0x260], eax
cmp dword [ebp - 0x260], 0
je 0x40cc9d
mov ecx, dword [ebp - 0x260]
mov edx, dword [ecx + 4]
push edx
mov ecx, dword [ebp - 0x268]
call fcn.0040d2c2
mov dword [ebp - 0x278], eax
mov eax, dword [ebp - 0x278]
mov ecx, dword [eax]
mov dword [ebp - 0x264], ecx
cmp dword [ebp - 0x264], 0
je 0x40cc40
lea edx, [ebp - 0x260]
push edx
lea eax, [ebp - 0x120]
push eax
mov ecx, dword [ebp - 0x264]
add ecx, 8
push ecx
mov ecx, dword [ebp - 0x268]
call fcn.0040d6fe
jmp 0x40cc5b
lea edx, [ebp - 0x260]
push edx
lea eax, [ebp - 0x120]
push eax
push 0
mov ecx, dword [ebp - 0x268]
call fcn.0040d6fe
mov ecx, dword [ebp - 0x244]
add ecx, 1
mov dword [ebp - 0x244], ecx
cmp dword [ebp - 0x250], 0
je 0x40cc91
push 0x8000
push 0
mov edx, dword [ebp - 0x250]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov dword [ebp - 0x250], 0
mov dword [ebp - 4], 0xffffffff
jmp 0x40c977
jmp 0x40cca5
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x258], 0
jmp 0x40ccc7
mov eax, dword [ebp - 0x258]
add eax, 1
mov dword [ebp - 0x258], eax
mov ecx, dword [ebp - 0x268]
cmp dword [ecx + 0x438], 0
jne 0x40cd54
mov edx, dword [ebp - 0x258]
push edx
call fcn.0043ab84
add esp, 4
mov dword [ebp - 0x254], eax
cmp dword [ebp - 0x254], 0
je 0x40cd54
mov ecx, dword [ebp - 0x254]
mov eax, dword [ebp - 0x254]
mov edx, dword [eax]
call dword [edx]
and eax, 2
test eax, eax
je 0x40cd4f
cmp dword [ebp - 0x250], 0
je 0x40cd44
mov eax, dword [ebp - 0x248]
push eax
mov ecx, dword [ebp - 0x250]
push ecx
lea edx, [ebp - 0x120]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x254]
mov edx, dword [ebp - 0x254]
mov eax, dword [edx]
call dword [eax + 0x18]
mov dword [ebp - 0x244], eax
cmp dword [ebp - 0x244], 0
je 0x40cd4f
jmp 0x40cd54
jmp 0x40ccb8
cmp dword [ebp - 0x250], 0
je 0x40cd7b
push 0x8000
push 0
mov ecx, dword [ebp - 0x250]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov dword [ebp - 0x250], 0
cmp dword [ebp - 0x244], 0xffffffff
jne 0x40cd86
jmp 0x40cde1
cmp dword [ebp - 0x244], 1
jl 0x40cdb1
mov edx, dword [ebp - 0x254]
push edx
lea eax, [ebp - 0x120]
push eax
mov ecx, dword [ebp - 0x244]
push ecx
mov ecx, dword [ebp - 0x268]
call fcn.0040d214
jmp 0x40cdc3
lea edx, [ebp - 0x120]
push edx
mov ecx, dword [ebp - 0x268]
call fcn.0040c865
mov eax, dword [ebp - 0x268]
cmp dword [eax + 0x438], 0
je 0x40cddc
mov dword [ebp - 0x244], 0xffffffff
jmp 0x40c977
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x244]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8