Function at 0x4014d0
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4137ad
mov eax, dword fs:[0]
push eax
sub esp, 0x274
mov eax, dword [0x41c004]
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
mov dword [ebp - 0x280], ecx
push 0
push 2
mov dword [ebp - 0x278], 0
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
push 0x228
mov dword [ebp - 0x274], eax
lea eax, [ebp - 0x26c]
push 0
push eax
call fcn.00403f60
add esp, 0xc
mov dword [ebp - 0x270], 0x22c
lea eax, [ebp - 0x270]
push eax
push dword [ebp - 0x274]
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x401773
nop dword [eax]
xor eax, eax
mov dword [ebp - 0x28], 0
mov word [ebp - 0x28], ax
lea eax, [ebp - 0x24c]
mov dword [ebp - 0x18], 0
lea edx, [eax + 2]
mov dword [ebp - 0x14], 7
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x401584
sub eax, edx
sar eax, 1
cmp eax, 7
ja 0x4015bb
lea esi, [eax + eax]
mov dword [ebp - 0x18], eax
push esi
lea eax, [ebp - 0x24c]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.004053c0
add esp, 0xc
xor eax, eax
mov word [ebp + esi - 0x28], ax
jmp 0x4015d8
lea ecx, [ebp - 0x24c]
mov byte [ebp - 0x27c], 0
push ecx
push dword [ebp - 0x27c]
lea ecx, [ebp - 0x28]
push eax
call fcn.00402470
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x28]
cmp dword [ebp - 0x14], 8
mov eax, dword [ebp - 0x18]
cmovae ecx, dword [ebp - 0x28]
setae bl
test bl, bl
lea eax, [ecx + eax*2]
lea ecx, [ebp - 0x28]
cmovne ecx, dword [ebp - 0x28]
push ecx
push eax
push ecx
lea ecx, [ebp - 0x40]
call fcn.004023b0
mov edi, dword [ebp - 0x2c]
lea eax, [ebp - 0x40]
mov esi, dword [ebp - 0x40]
cmp edi, 0x10
mov ecx, dword [ebp - 0x280]
setae bl
cmovae eax, esi
nop
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x401640
test dl, dl
je 0x40163c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x401640
add eax, 2
add ecx, 2
test dl, dl
jne 0x401620
xor eax, eax
jmp 0x401645
sbb eax, eax
or eax, 1
test eax, eax
je 0x4016ef
test bl, bl
je 0x40167c
lea ecx, [edi + 1]
mov eax, esi
cmp ecx, 0x1000
jb 0x401672
mov esi, dword [eax - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4017a1
push ecx
push esi
call fcn.00402a7a
add esp, 8
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0xf
mov byte [ebp - 0x40], 0
cmp ecx, 8
jb 0x4016cf
mov edx, dword [ebp - 0x28]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4016c5
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4017a1
push ecx
push edx
call fcn.00402a7a
add esp, 8
lea eax, [ebp - 0x270]
push eax
push dword [ebp - 0x274]
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x401560
jmp 0x401773
mov eax, dword [ebp - 0x268]
mov dword [ebp - 0x278], eax
cmp edi, 0x10
jb 0x40172b
lea ecx, [edi + 1]
mov eax, esi
cmp ecx, 0x1000
jb 0x401721
mov esi, dword [eax - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4017a1
push ecx
push esi
call fcn.00402a7a
add esp, 8
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0xf
mov byte [ebp - 0x40], 0
cmp ecx, 8
jb 0x401773
mov edx, dword [ebp - 0x28]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x401769
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4017a1
push ecx
push edx
call fcn.00402a7a
add esp, 8
push dword [ebp - 0x274]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x278]
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.00402a3c
mov esp, ebp
pop ebp
ret
call fcn.00407156
int3