Function at 0x40c943
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a602a
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 0x40c996
xor eax, eax
jmp 0x40ce54
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 0x40c9bb
mov edx, dword [ebp - 0x1c]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x40ce54
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 0x40c9ed
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 0x40ce44
cmp dword [ebp - 0x14], 0
je 0x40ce44
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.0040ce67
lea eax, [ebp - 0x120]
push eax
mov ecx, dword [ebp + 8]
push ecx
push 0x4be500
mov edx, dword [ebp - 0x268]
push edx
call fcn.0040baa6
add esp, 0x10
lea eax, [ebp - 0x120]
push eax
mov ecx, dword [ebp - 0x268]
call fcn.0040c850
test eax, eax
je 0x40ca76
jmp 0x40ce26
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 0x40cae8
cmp dword [ebp - 0x250], 0
je 0x40cae3
push 0x8000
push 0
mov ecx, dword [ebp - 0x250]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov dword [ebp - 0x250], 0
jmp 0x40c9da
mov edx, dword [ebp - 0x268]
cmp dword [edx + 0x438], 0
jne 0x40cb59
lea eax, [ebp - 0x24c]
push eax
lea ecx, [ebp - 0x120]
push ecx
mov ecx, dword [ebp - 0x268]
call fcn.0040f2c9
mov dword [ebp - 0x244], eax
cmp dword [ebp - 0x244], 0
je 0x40cb59
cmp dword [ebp - 0x250], 0
je 0x40cb46
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 0x40cb54
jmp 0x40ce44
jmp 0x40c9da
cmp dword [ebp - 0x24c], 0
jne 0x40cb9c
cmp dword [ebp - 0x250], 0
je 0x40cb89
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 0x40cb97
jmp 0x40ce44
jmp 0x40c9da
cmp dword [ebp - 0x250], 0
je 0x40cd0f
mov dword [ebp - 4], 0
mov dword [ebp - 0x25c], 0
call fcn.0043bf3f
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.0043c5c6
mov dword [ebp - 0x270], eax
cmp dword [ebp - 0x270], 0
je 0x40cd00
cmp dword [ebp - 0x25c], 0
je 0x40cd00
mov dword [ebp - 0x264], 0
mov dword [ebp - 0x260], 0
mov ecx, dword [ebp - 0x25c]
push ecx
mov ecx, dword [ebp - 0x268]
call fcn.0040dd89
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 0x40cd00
mov ecx, dword [ebp - 0x260]
mov edx, dword [ecx + 4]
push edx
mov ecx, dword [ebp - 0x268]
call fcn.0040d325
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 0x40cca3
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.0040d761
jmp 0x40ccbe
lea edx, [ebp - 0x260]
push edx
lea eax, [ebp - 0x120]
push eax
push 0
mov ecx, dword [ebp - 0x268]
call fcn.0040d761
mov ecx, dword [ebp - 0x244]
add ecx, 1
mov dword [ebp - 0x244], ecx
cmp dword [ebp - 0x250], 0
je 0x40ccf4
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 0x40c9da
jmp 0x40cd08
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x258], 0
jmp 0x40cd2a
mov eax, dword [ebp - 0x258]
add eax, 1
mov dword [ebp - 0x258], eax
mov ecx, dword [ebp - 0x268]
cmp dword [ecx + 0x438], 0
jne 0x40cdb7
mov edx, dword [ebp - 0x258]
push edx
call fcn.00436ce4
add esp, 4
mov dword [ebp - 0x254], eax
cmp dword [ebp - 0x254], 0
je 0x40cdb7
mov ecx, dword [ebp - 0x254]
mov eax, dword [ebp - 0x254]
mov edx, dword [eax]
call dword [edx]
and eax, 2
test eax, eax
je 0x40cdb2
cmp dword [ebp - 0x250], 0
je 0x40cda7
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 0x40cdb2
jmp 0x40cdb7
jmp 0x40cd1b
cmp dword [ebp - 0x250], 0
je 0x40cdde
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 0x40cde9
jmp 0x40ce44
cmp dword [ebp - 0x244], 1
jl 0x40ce14
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.0040d277
jmp 0x40ce26
lea edx, [ebp - 0x120]
push edx
mov ecx, dword [ebp - 0x268]
call fcn.0040c8c8
mov eax, dword [ebp - 0x268]
cmp dword [eax + 0x438], 0
je 0x40ce3f
mov dword [ebp - 0x244], 0xffffffff
jmp 0x40c9da
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