Function at 0x40c2a0
Capabilities:
Enumerate process modules

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44ab80
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x288
mov eax, dword [0x47c068]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x260], ecx
xorps xmm0, xmm0
mov dword [ebp - 0x18], 0
movq qword [ebp - 0x20], xmm0
push 0x1023
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
call fcn.0042c087
add esp, 4
test eax, eax
je 0x40c77b
lea ecx, [eax + 0x23]
and ecx, 0xffffffe0
push 0x1000
push 0
push ecx
mov dword [ecx - 4], eax
lea esi, [ecx + 0x1000]
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x18], esi
call fcn.0042dab0
add esp, 0xc
mov dword [ebp - 0x1c], esi
mov dword [ebp - 4], 0
lea edx, [ebp - 0x24]
mov ecx, dword [ebp - 0x20]
sub esi, ecx
sar esi, 2
push edx
lea eax, [esi*4]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_K32EnumProcesses]
mov ecx, dword [ebp - 0x20]
test eax, eax
je 0x40c6db
mov edi, dword [ebp - 0x1c]
mov eax, edi
mov edx, dword [ebp - 0x24]
sub eax, ecx
and eax, 0xfffffffc
mov dword [ebp - 0x250], ecx
cmp edx, eax
jne 0x40c415
mov esi, edi
sub esi, ecx
sar esi, 2
lea edx, [esi + esi]
cmp edx, esi
jae 0x40c3a3
lea edi, [ecx + edx*4]
jmp 0x40c3e0
jbe 0x40c3e3
mov eax, dword [ebp - 0x18]
sub eax, ecx
sar eax, 2
cmp edx, eax
jbe 0x40c3c3
push ecx
push edx
lea ecx, [ebp - 0x20]
call fcn.0041dc50
mov edi, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x20]
jmp 0x40c3e3
sub edx, esi
lea eax, [edx*4]
push eax
push 0
push edi
lea esi, [edi + eax]
call fcn.0042dab0
mov ecx, dword [ebp - 0x20]
add esp, 0xc
mov edi, esi
mov dword [ebp - 0x1c], edi
sub edi, ecx
lea edx, [ebp - 0x24]
sar edi, 2
push edx
lea eax, [edi*4]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_K32EnumProcesses]
mov edi, dword [ebp - 0x1c]
mov eax, edi
mov ecx, dword [ebp - 0x20]
sub eax, ecx
mov edx, dword [ebp - 0x24]
and eax, 0xfffffffc
cmp edx, eax
je 0x40c390
mov dword [ebp - 0x250], ecx
mov esi, edi
shr edx, 2
sub esi, ecx
sar esi, 2
cmp edx, esi
jae 0x40c428
lea edi, [ecx + edx*4]
jmp 0x40c471
jbe 0x40c474
mov eax, dword [ebp - 0x18]
sub eax, ecx
sar eax, 2
cmp edx, eax
jbe 0x40c44e
push ecx
push edx
lea ecx, [ebp - 0x20]
call fcn.0041dc50
mov ecx, dword [ebp - 0x20]
mov edi, dword [ebp - 0x1c]
mov dword [ebp - 0x250], ecx
jmp 0x40c474
sub edx, esi
lea eax, [edx*4]
push eax
push 0
push edi
lea esi, [edi + eax]
call fcn.0042dab0
mov ecx, dword [ebp - 0x20]
add esp, 0xc
mov edi, esi
mov dword [ebp - 0x250], ecx
mov dword [ebp - 0x1c], edi
cmp ecx, edi
je 0x40c6db
nop dword [eax]
push dword [ecx]
push 0
push 0x1000
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 0x264], eax
test eax, eax
je 0x40c6c1
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x40], 0x104
push ecx
lea ecx, [ebp - 0x248]
push ecx
push 0
push eax
call dword [sym.imp.KERNEL32.dll_QueryFullProcessImageNameW]
lea ecx, [ebp - 0x248]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40c4c1
sub ecx, edx
mov dword [ebp - 0x2c], 0
sar ecx, 1
lea eax, [ebp - 0x248]
push ecx
xorps xmm0, xmm0
mov dword [ebp - 0x28], 0
push eax
lea ecx, [ebp - 0x3c]
movups xmmword [ebp - 0x3c], xmm0
call fcn.00417930
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x3c]
cmp dword [ebp - 0x28], 8
mov eax, dword [ebp - 0x2c]
cmovae ecx, dword [ebp - 0x3c]
lea esi, [ecx + eax*2]
mov edx, esi
call fcn.00407640
sub esi, eax
mov dword [ebp - 0x26c], 0
sar esi, 1
lea ecx, [ebp - 0x27c]
push esi
xorps xmm0, xmm0
mov dword [ebp - 0x268], 0
push eax
movups xmmword [ebp - 0x27c], xmm0
call fcn.00417930
lea eax, [ebp - 0x27c]
mov byte [ebp - 4], 2
push eax
lea ecx, [ebp - 0x294]
call fcn.004116b0
mov ecx, dword [ebp - 0x260]
mov eax, ecx
cmp dword [ecx + 0x14], 8
jb 0x40c566
mov eax, dword [ecx]
cmp dword [ebp - 0x280], 8
lea ecx, [ebp - 0x294]
mov edx, dword [ebp - 0x294]
mov esi, dword [ebp - 0x284]
cmovae ecx, edx
mov dword [ebp - 0x254], ecx
setae byte [ebp - 0x24a]
mov ecx, dword [ebp - 0x260]
mov dword [ebp - 0x258], edx
cmp esi, dword [ecx + 0x10]
mov ecx, dword [ebp - 0x254]
jne 0x40c5e1
test esi, esi
je 0x40c5d2
sub ecx, eax
mov dword [ebp - 0x254], ecx
movzx edx, word [eax + ecx]
movzx ecx, word [eax]
cmp dx, cx
jne 0x40c5db
mov ecx, dword [ebp - 0x254]
add eax, 2
sub esi, 1
jne 0x40c5b2
mov edx, dword [ebp - 0x258]
mov byte [ebp - 0x249], 1
jmp 0x40c5e8
mov edx, dword [ebp - 0x258]
mov byte [ebp - 0x249], 0
cmp byte [ebp - 0x24a], 0
je 0x40c626
mov ecx, dword [ebp - 0x280]
mov eax, edx
lea ecx, [ecx*2 + 2]
cmp ecx, 0x1000
jb 0x40c61c
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40c77b
push ecx
push edx
call fcn.0042c0bc
add esp, 8
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x268]
cmp ecx, 8
jb 0x40c66a
mov edx, dword [ebp - 0x27c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40c660
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40c77b
push ecx
push edx
call fcn.0042c0bc
add esp, 8
push dword [ebp - 0x264]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [ebp - 0x249], 0
jne 0x40c736
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x28]
cmp ecx, 8
jb 0x40c6c1
mov edx, dword [ebp - 0x3c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40c6b7
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40c77b
push ecx
push edx
call fcn.0042c0bc
add esp, 8
mov ecx, dword [ebp - 0x250]
add ecx, 4
mov dword [ebp - 0x250], ecx
cmp ecx, edi
jne 0x40c480
mov ecx, dword [ebp - 0x20]
mov byte [ebp - 0x249], 0
test ecx, ecx
je 0x40c712
mov edx, dword [ebp - 0x18]
mov eax, ecx
sub edx, ecx
and edx, 0xfffffffc
cmp edx, 0x1000
jb 0x40c708
mov ecx, dword [eax - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40c77b
push edx
push ecx
call fcn.0042c0bc
add esp, 8
mov al, byte [ebp - 0x249]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0042c079
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
mov ecx, dword [ebp - 0x28]
cmp ecx, 8
jb 0x40c76c
mov edx, dword [ebp - 0x3c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40c762
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40c77b
push ecx
push edx
call fcn.0042c0bc
add esp, 8
mov ecx, dword [ebp - 0x20]
mov byte [ebp - 0x249], 1
jmp 0x40c6e2
call fcn.00430a9a
int3