Function at 0x408970
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43df20
mov eax, dword fs:[0]
push eax
sub esp, 0x274
mov eax, dword [0x45506c]
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
push 0x22c
lea eax, [ebp - 0x258]
mov dword [ebp - 4], 0
push 0
xor bl, bl
push eax
mov byte [ebp - 0x259], bl
call fcn.00425940
add esp, 0xc
push 0
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov dword [ebp - 0x260], eax
cmp eax, 0xffffffff
je 0x408b9d
lea ecx, [ebp - 0x258]
mov dword [ebp - 0x258], 0x22c
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x408b91
nop dword [eax]
xor eax, eax
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
lea eax, [ebp - 0x234]
mov dword [ebp - 0x14], 7
lea edx, [eax + 2]
nop dword [eax]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x408a20
sub eax, edx
lea ecx, [ebp - 0x28]
sar eax, 1
push eax
lea eax, [ebp - 0x234]
push eax
call fcn.00408220
lea edx, [ebp + 8]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x27c]
call fcn.00408c00
mov ecx, eax
cmp dword [eax + 0x14], 8
jb 0x408a5b
mov ecx, dword [eax]
cmp dword [ebp - 0x14], 8
lea edi, [ebp - 0x28]
mov edx, dword [eax + 0x10]
mov ebx, dword [ebp - 0x28]
cmovae edi, ebx
mov esi, dword [ebp - 0x18]
mov eax, esi
cmp edx, esi
mov dword [ebp - 0x264], edx
cmovb eax, edx
test eax, eax
je 0x408a9e
sub edi, ecx
movzx edx, word [edi + ecx]
movzx esi, word [ecx]
cmp dx, si
jne 0x408aa7
add ecx, 2
sub eax, 1
jne 0x408a81
mov edx, dword [ebp - 0x264]
mov esi, dword [ebp - 0x18]
cmp edx, esi
jbe 0x408aaf
or esi, 0xffffffff
jmp 0x408ab3
sbb esi, esi
and esi, 0xfffffffe
inc esi
jmp 0x408ab3
sbb esi, esi
neg esi
mov edx, dword [ebp - 0x268]
cmp edx, 8
jb 0x408af3
mov ecx, dword [ebp - 0x27c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x408ae9
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x408beb
push edx
push ecx
call fcn.0040d92d
add esp, 8
test esi, esi
je 0x408b51
lea eax, [ebp - 0x258]
push eax
push dword [ebp - 0x260]
call dword [sym.imp.KERNEL32.dll_Process32NextW]
mov esi, eax
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x14]
cmp eax, 8
jb 0x408b47
lea ecx, [eax*2 + 2]
mov eax, ebx
cmp ecx, 0x1000
jb 0x408b3d
mov ebx, dword [ebx - 4]
add ecx, 0x23
sub eax, ebx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x408beb
push ecx
push ebx
call fcn.0040d92d
add esp, 8
test esi, esi
jne 0x408a00
jmp 0x408b8b
mov eax, dword [ebp - 0x14]
mov byte [ebp - 0x259], 1
cmp eax, 8
jb 0x408b8b
lea ecx, [eax*2 + 2]
mov eax, ebx
cmp ecx, 0x1000
jb 0x408b81
mov ebx, dword [ebx - 4]
add ecx, 0x23
sub eax, ebx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x408beb
push ecx
push ebx
call fcn.0040d92d
add esp, 8
mov bl, byte [ebp - 0x259]
push dword [ebp - 0x260]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp + 0x1c]
cmp edx, 0x10
jb 0x408bcd
mov ecx, dword [ebp + 8]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x408bc3
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x408bf0
push edx
push ecx
call fcn.0040d92d
add esp, 8
mov al, bl
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.0040d917
mov esp, ebp
pop ebp
ret
call fcn.00428920
call fcn.00428920
int3