Function at 0x40cb90
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56e867
mov eax, dword fs:[0]
push eax
sub esp, 0x280
mov eax, dword [0x5d2fec]
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
call fcn.00417ce3
mov ecx, eax
test ecx, ecx
jne 0x40cbd3
push 0x80004005
call fcn.00407010
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x18], esi
push 0x5b03a4
push 0x3ee
mov dword [ebp - 4], 0
push dword [0x5dd61c]
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_SetWindowTextW]
push 0
push 2
mov dword [ebp - 0x244], 0x22c
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
or ebx, 0xffffffff
mov dword [ebp - 0x250], eax
cmp eax, ebx
je 0x40d15d
lea ecx, [ebp - 0x244]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x40d151
nop dword [eax]
push dword [ebp - 0x23c]
push 0
push 0x1fffff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
mov dword [ebp - 0x24c], edi
test edi, edi
je 0x40d11f
lea ecx, [ebp - 0x28c]
call fcn.0040c890
lea ecx, [ebp - 0x220]
mov byte [ebp - 4], 1
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40cc80
sub ecx, edx
lea eax, [ebp - 0x220]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x28c]
call fcn.00406bd0
mov edx, edi
lea ecx, [ebp - 0x254]
call fcn.004049f0
mov byte [ebp - 4], 2
mov edx, dword [eax]
mov ebx, dword [ebp - 0x270]
lea ecx, [edx - 0x10]
lea edi, [ebx - 0x10]
cmp ecx, edi
je 0x40cd1d
cmp dword [edi + 0xc], 0
lea ebx, [edi + 0xc]
jl 0x40cd08
mov eax, dword [ecx]
cmp eax, dword [edi]
jne 0x40cd08
push ecx
call fcn.00406c80
add esp, 4
mov dword [ebp - 0x248], eax
or ecx, 0xffffffff
lock xadd dword [ebx], ecx
dec ecx
test ecx, ecx
jg 0x40ccfd
mov ecx, dword [edi]
push edi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x248]
lea ebx, [eax + 0x10]
mov dword [ebp - 0x270], ebx
jmp 0x40cd1d
push dword [edx - 0xc]
lea ecx, [ebp - 0x270]
push edx
call fcn.00406bd0
mov ebx, dword [ebp - 0x270]
mov byte [ebp - 4], 1
or eax, 0xffffffff
mov edx, dword [ebp - 0x254]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40cd3f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x24c]
lea ecx, [ebp - 0x258]
call fcn.00402930
mov byte [ebp - 4], 3
mov edx, dword [eax]
mov edi, dword [ebp - 0x288]
add edi, 0xfffffff0
lea ecx, [edx - 0x10]
cmp ecx, edi
je 0x40cdbe
cmp dword [edi + 0xc], 0
jl 0x40cda9
mov eax, dword [ecx]
cmp eax, dword [edi]
jne 0x40cda9
push ecx
call fcn.00406c80
add esp, 4
mov dword [ebp - 0x248], eax
or ecx, 0xffffffff
lea edx, [edi + 0xc]
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40cd9e
mov ecx, dword [edi]
push edi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x248]
add eax, 0x10
mov dword [ebp - 0x288], eax
jmp 0x40cdbe
push dword [edx - 0xc]
lea ecx, [ebp - 0x288]
push edx
call fcn.00406bd0
mov ebx, dword [ebp - 0x270]
mov byte [ebp - 4], 1
or eax, 0xffffffff
mov edx, dword [ebp - 0x258]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40cde0
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0x28c]
lea edi, [esi - 0x10]
lea edx, [ecx - 0x10]
cmp edx, edi
je 0x40ce3f
cmp dword [edi + 0xc], 0
lea esi, [edi + 0xc]
jl 0x40ce30
mov eax, dword [edx]
cmp eax, dword [edi]
jne 0x40ce30
push edx
call fcn.00406c80
add esp, 4
mov dword [ebp - 0x248], eax
or ecx, 0xffffffff
lock xadd dword [esi], ecx
dec ecx
test ecx, ecx
jg 0x40ce28
mov ecx, dword [edi]
push edi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x248]
lea esi, [eax + 0x10]
mov dword [ebp - 0x18], esi
jmp 0x40ce3f
push dword [ecx - 0xc]
push ecx
lea ecx, [ebp - 0x18]
call fcn.00406bd0
mov esi, dword [ebp - 0x18]
mov edi, dword [esi - 0xc]
test edi, edi
js 0x40d195
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, edi
or eax, ecx
jge 0x40ce67
push edi
lea ecx, [ebp - 0x18]
call fcn.00406e60
mov esi, dword [ebp - 0x18]
lea eax, [edi + 1]
push eax
push esi
call fcn.00556e6f
add esp, 8
cmp edi, dword [esi - 8]
jg 0x40d195
xor eax, eax
mov dword [esi - 0xc], edi
mov word [esi + edi*2], ax
mov ecx, 0x5b03b8
mov eax, esi
nop dword [eax]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x40ceb6
test dx, dx
je 0x40ceb2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x40ceb6
add eax, 4
add ecx, 4
test dx, dx
jne 0x40ce90
xor eax, eax
jmp 0x40cebb
sbb eax, eax
or eax, 1
test eax, eax
sete al
test al, al
je 0x40d0ad
mov dword [ebp - 0x14], 0
call fcn.00417ce3
test eax, eax
je 0x40cbc9
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 4
cmp dword [ebx - 0xc], 0
jge 0x40cef8
or eax, 0xffffffff
jmp 0x40cf13
push 0x5b03b8
push ebx
call fcn.00550fb4
add esp, 8
test eax, eax
jne 0x40cf0f
or eax, 0xffffffff
jmp 0x40cf13
sub eax, ebx
sar eax, 1
add eax, 0xd
lea ecx, [ebp - 0x270]
push eax
lea eax, [ebp - 0x25c]
push eax
call fcn.00405be0
mov byte [ebp - 4], 5
mov ecx, dword [eax]
mov edi, dword [ebp - 0x14]
add edi, 0xfffffff0
lea edx, [ecx - 0x10]
cmp edx, edi
je 0x40cf88
cmp dword [edi + 0xc], 0
lea ebx, [edi + 0xc]
jl 0x40cf7c
mov eax, dword [edx]
cmp eax, dword [edi]
jne 0x40cf7c
push edx
call fcn.00406c80
add esp, 4
mov dword [ebp - 0x248], eax
or ecx, 0xffffffff
lock xadd dword [ebx], ecx
dec ecx
test ecx, ecx
jg 0x40cf74
mov ecx, dword [edi]
push edi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x248]
add eax, 0x10
mov dword [ebp - 0x14], eax
jmp 0x40cf88
push dword [ecx - 0xc]
push ecx
lea ecx, [ebp - 0x14]
call fcn.00406bd0
mov byte [ebp - 4], 4
or ebx, 0xffffffff
mov edx, dword [ebp - 0x25c]
mov eax, ebx
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40cfac
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea ecx, [ebp - 0x14]
call fcn.00416ec0
mov ecx, eax
call fcn.00416e10
push ecx
lea ecx, [ebp - 0x14]
call fcn.00405f10
mov eax, dword [ebp - 0x14]
cmp dword [eax - 0xc], 0
jge 0x40cfd2
or eax, 0xffffffff
jmp 0x40cfee
push 0x5af3f4
push eax
call fcn.00550fb4
add esp, 8
test eax, eax
jne 0x40cfe9
or eax, 0xffffffff
jmp 0x40cfee
sub eax, dword [ebp - 0x14]
sar eax, 1
add eax, 4
lea ecx, [ebp - 0x14]
push eax
lea eax, [ebp - 0x260]
push eax
call fcn.00405b70
mov byte [ebp - 4], 6
mov ecx, dword [eax]
mov edi, dword [ebp - 0x288]
add edi, 0xfffffff0
lea edx, [ecx - 0x10]
cmp edx, edi
je 0x40d06c
cmp dword [edi + 0xc], 0
lea ebx, [edi + 0xc]
jl 0x40d05a
mov eax, dword [edx]
cmp eax, dword [edi]
jne 0x40d05a
push edx
call fcn.00406c80
add esp, 4
mov dword [ebp - 0x248], eax
or ecx, 0xffffffff
lock xadd dword [ebx], ecx
dec ecx
test ecx, ecx
jg 0x40d04f
mov ecx, dword [edi]
push edi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x248]
add eax, 0x10
mov dword [ebp - 0x288], eax
jmp 0x40d069
push dword [ecx - 0xc]
push ecx
lea ecx, [ebp - 0x288]
call fcn.00406bd0
or ebx, 0xffffffff
mov byte [ebp - 4], 4
mov eax, ebx
mov edx, dword [ebp - 0x260]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40d08d
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 1
mov eax, ebx
mov edx, dword [ebp - 0x14]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40d0b0
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x40d0b0
or ebx, 0xffffffff
lea ecx, [ebp - 0x28c]
call fcn.004136a0
push 2
push 0x5afa6c
lea ecx, [ebp - 0x278]
call fcn.00406bd0
push dword [ebp - 0x22c]
lea eax, [ebp - 0x26c]
push 0x5b25fc
push eax
call fcn.00406ff0
push dword [ebp - 0x23c]
lea eax, [ebp - 0x268]
push 0x5b25fc
push eax
call fcn.00406ff0
sub esp, 0x14
lea eax, [ebp - 0x28c]
mov ecx, esp
push eax
call fcn.0040d1a0
call fcn.0040f000
add esp, 0x2c
lea ecx, [ebp - 0x28c]
call fcn.0040ca30
lea eax, [ebp - 0x244]
push eax
push dword [ebp - 0x250]
call dword [sym.imp.KERNEL32.dll_Process32NextW]
push dword [ebp - 0x24c]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [0x5dd608], 0
jne 0x40d151
test edi, edi
jne 0x40cc40
push dword [ebp - 0x250]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
lock xadd dword [esi + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x40d179
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
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.0054e73a
mov esp, ebp
pop ebp
ret
push 0x80070057
call fcn.00407010
int3