Function at 0x402700
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x565b00
mov eax, dword fs:[0]
push eax
sub esp, 0x234
mov eax, dword [0x5c6ff4]
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 - 4], 0
call fcn.004159d0
mov ecx, eax
test ecx, ecx
jne 0x40274a
push 0x80004005
call fcn.004020d0
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x14], esi
mov byte [ebp - 4], 1
mov eax, dword [ebp + 8]
cmp dword [eax - 0xc], 0
jl 0x40277e
push str..exe
push eax
call fcn.0054ae85
add esp, 8
test eax, eax
je 0x40277e
sub eax, dword [ebp + 8]
sar eax, 1
cmp eax, 0xffffffff
jne 0x40278d
push 4
push str..exe
lea ecx, [ebp + 8]
call fcn.00403400
push 0
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov ebx, eax
mov dword [ebp - 0x240], 0x22c
lea eax, [ebp - 0x240]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x4028f0
lea eax, [ebp - 0x240]
mov dword [ebp - 0x240], 0x22c
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
je 0x4028f0
nop dword [eax]
lea eax, [ebp - 0x21c]
lea edx, [eax + 2]
nop dword [eax]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4027f0
sub eax, edx
lea ecx, [ebp - 0x14]
sar eax, 1
push eax
lea eax, [ebp - 0x21c]
push eax
call fcn.004035e0
mov esi, dword [ebp - 0x14]
mov edi, dword [esi - 0xc]
test edi, edi
js 0x402964
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, edi
or eax, ecx
jge 0x40283a
push edi
lea ecx, [ebp - 0x14]
call fcn.00402020
mov esi, dword [ebp - 0x14]
lea eax, [edi + 1]
push eax
push esi
call fcn.0054ffb5
add esp, 8
cmp edi, dword [esi - 8]
jg 0x402964
xor eax, eax
mov dword [esi - 0xc], edi
mov word [esi + edi*2], ax
mov eax, dword [ebp + 8]
mov edi, dword [eax - 0xc]
test edi, edi
js 0x402964
mov ecx, dword [eax - 8]
mov edx, 1
sub edx, dword [eax - 4]
sub ecx, edi
or ecx, edx
jge 0x402884
push edi
lea ecx, [ebp + 8]
call fcn.00402020
mov eax, dword [ebp + 8]
lea ecx, [edi + 1]
push ecx
push eax
call fcn.0054ffb5
mov eax, dword [ebp + 8]
add esp, 8
cmp edi, dword [eax - 8]
jg 0x402964
mov dword [eax - 0xc], edi
xor ecx, ecx
mov eax, dword [ebp + 8]
mov word [eax + edi*2], cx
mov eax, dword [ebp + 8]
test eax, eax
je 0x4028d0
cmp dword [esi - 0xc], ecx
jl 0x4028d0
push eax
push esi
call fcn.0054ae85
add esp, 8
test eax, eax
je 0x4028d0
sub eax, esi
sar eax, 1
cmp eax, 0xffffffff
jne 0x402956
lea eax, [ebp - 0x240]
mov dword [ebp - 0x240], 0x22c
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x4027e0
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor edi, edi
lea edx, [esi - 0x10]
mov byte [ebp - 4], 0
or esi, 0xffffffff
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x402917
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], esi
dec esi
test esi, esi
jg 0x402936
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, edi
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.005487e7
mov esp, ebp
pop ebp
ret 4
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, 1
jmp 0x4028f9
push 0x80070057
call fcn.004020d0
int3