Function at 0x40c915
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4aabba
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 0x40c968
xor eax, eax
jmp 0x40ce26
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 0x40c98d
mov edx, dword [ebp - 0x1c]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x40ce26
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 0x40c9bf
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 + 0x434], 0
jne 0x40ce16
cmp dword [ebp - 0x14], 0
je 0x40ce16
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.0040ce39
lea eax, [ebp - 0x120]
push eax
mov ecx, dword [ebp + 8]
push ecx
push 0x4c24dc
mov edx, dword [ebp - 0x268]
push edx
call fcn.0040ba78
add esp, 0x10
lea eax, [ebp - 0x120]
push eax
mov ecx, dword [ebp - 0x268]
call fcn.0040c822
test eax, eax
je 0x40ca48
jmp 0x40cdf8
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 0x40caba
cmp dword [ebp - 0x250], 0
je 0x40cab5
push 0x8000
push 0
mov ecx, dword [ebp - 0x250]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov dword [ebp - 0x250], 0
jmp 0x40c9ac
mov edx, dword [ebp - 0x268]
cmp dword [edx + 0x434], 0
jne 0x40cb2b
lea eax, [ebp - 0x24c]
push eax
lea ecx, [ebp - 0x120]
push ecx
mov ecx, dword [ebp - 0x268]
call fcn.0040f290
mov dword [ebp - 0x244], eax
cmp dword [ebp - 0x244], 0
je 0x40cb2b
cmp dword [ebp - 0x250], 0
je 0x40cb18
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 0x40cb26
jmp 0x40ce16
jmp 0x40c9ac
cmp dword [ebp - 0x24c], 0
jne 0x40cb6e
cmp dword [ebp - 0x250], 0
je 0x40cb5b
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 0x40cb69
jmp 0x40ce16
jmp 0x40c9ac
cmp dword [ebp - 0x250], 0
je 0x40cce1
mov dword [ebp - 4], 0
mov dword [ebp - 0x25c], 0
call fcn.00443c1f
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.004442a6
mov dword [ebp - 0x270], eax
cmp dword [ebp - 0x270], 0
je 0x40ccd2
cmp dword [ebp - 0x25c], 0
je 0x40ccd2
mov dword [ebp - 0x264], 0
mov dword [ebp - 0x260], 0
mov ecx, dword [ebp - 0x25c]
push ecx
mov ecx, dword [ebp - 0x268]
call fcn.0040dd50
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 0x40ccd2
mov ecx, dword [ebp - 0x260]
mov edx, dword [ecx + 4]
push edx
mov ecx, dword [ebp - 0x268]
call fcn.0040d2f5
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 0x40cc75
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.0040d72e
jmp 0x40cc90
lea edx, [ebp - 0x260]
push edx
lea eax, [ebp - 0x120]
push eax
push 0
mov ecx, dword [ebp - 0x268]
call fcn.0040d72e
mov ecx, dword [ebp - 0x244]
add ecx, 1
mov dword [ebp - 0x244], ecx
cmp dword [ebp - 0x250], 0
je 0x40ccc6
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 0x40c9ac
jmp 0x40ccda
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x258], 0
jmp 0x40ccfc
mov eax, dword [ebp - 0x258]
add eax, 1
mov dword [ebp - 0x258], eax
mov ecx, dword [ebp - 0x268]
cmp dword [ecx + 0x434], 0
jne 0x40cd89
mov edx, dword [ebp - 0x258]
push edx
call fcn.00435ee4
add esp, 4
mov dword [ebp - 0x254], eax
cmp dword [ebp - 0x254], 0
je 0x40cd89
mov ecx, dword [ebp - 0x254]
mov eax, dword [ebp - 0x254]
mov edx, dword [eax]
call dword [edx]
and eax, 2
test eax, eax
je 0x40cd84
cmp dword [ebp - 0x250], 0
je 0x40cd79
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 0x40cd84
jmp 0x40cd89
jmp 0x40cced
cmp dword [ebp - 0x250], 0
je 0x40cdb0
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 0x40cdbb
jmp 0x40ce16
cmp dword [ebp - 0x244], 1
jl 0x40cde6
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.0040d249
jmp 0x40cdf8
lea edx, [ebp - 0x120]
push edx
mov ecx, dword [ebp - 0x268]
call fcn.0040c89a
mov eax, dword [ebp - 0x268]
cmp dword [eax + 0x434], 0
je 0x40ce11
mov dword [ebp - 0x244], 0xffffffff
jmp 0x40c9ac
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