Function at 0x40a650
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x54f013
mov eax, dword fs:[0]
push eax
sub esp, 0x24c
mov eax, dword [0x5b41b0]
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 ebx, ecx
push 0x593ed8
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x250], 0
mov dword [ebp - 0x18], 0
call fcn.00403af0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x14]
push 0x593ed8
mov dword [ebp - 0x14], 0
call fcn.00403af0
mov byte [ebp - 4], 1
mov edx, 1
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax - 8]
sub edx, dword [eax - 4]
sub ecx, 0x104
or ecx, edx
jge 0x40a6e5
push 0x104
lea ecx, [ebp - 0x14]
call fcn.00402260
mov eax, dword [ebp - 0x14]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov eax, dword [ebp - 0x14]
push dword [eax - 8]
push eax
call fcn.00533860
mov ecx, eax
add esp, 8
test ecx, ecx
js 0x40a99d
mov eax, dword [ebp - 0x14]
cmp ecx, dword [eax - 8]
jg 0x40a99d
mov dword [eax - 0xc], ecx
xor edx, edx
mov eax, dword [ebp - 0x14]
push 0x5c
mov word [eax + ecx*2], dx
push dword [ebp - 0x14]
call fcn.00533faa
mov ecx, eax
add esp, 8
mov eax, dword [ebp - 0x14]
test ecx, ecx
jne 0x40a73f
or ecx, 0xffffffff
jmp 0x40a743
sub ecx, eax
sar ecx, 1
mov eax, dword [eax - 0xc]
sub eax, ecx
lea ecx, [ebp - 0x14]
dec eax
push eax
lea eax, [ebp - 0x24c]
push eax
call fcn.0040aa10
mov byte [ebp - 4], 2
or edi, 0xffffffff
mov ecx, dword [eax]
mov esi, dword [ebp - 0x18]
add esi, 0xfffffff0
lea edx, [ecx - 0x10]
cmp edx, esi
je 0x40a7b4
cmp dword [esi + 0xc], 0
jl 0x40a7a8
mov eax, dword [edx]
cmp eax, dword [esi]
jne 0x40a7a8
push edx
call fcn.004038d0
mov dword [ebp - 0x1c], eax
lea ecx, [esi + 0xc]
add esp, 4
mov eax, edi
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x40a79d
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x1c]
add eax, 0x10
mov dword [ebp - 0x18], eax
jmp 0x40a7b4
push dword [ecx - 0xc]
push ecx
lea ecx, [ebp - 0x18]
call fcn.004039f0
mov byte [ebp - 4], 1
mov ecx, edi
mov edx, dword [ebp - 0x24c]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40a7d7
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebx + 4]
test eax, eax
je 0x40a7ee
push eax
call fcn.0040ab71
add esp, 4
mov dword [ebx + 4], 0
mov dword [ebx + 0xc], 0
mov dword [ebx + 8], 0
call fcn.0041b71c
mov ecx, eax
xor eax, eax
test ecx, ecx
setne al
test eax, eax
jne 0x40a818
push 0x80004005
call fcn.00402310
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x1c], esi
push 0
push 2
mov byte [ebp - 4], 3
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov dword [ebp - 0x24c], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [ebp - 0x254], eax
mov eax, dword [ebp - 0x24c]
cmp eax, 0xffffffff
je 0x40a918
lea ecx, [ebp - 0x248]
mov dword [ebp - 0x248], 0x22c
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x40a90c
lea eax, [ebp - 0x224]
push eax
lea eax, [ebp - 0x1c]
push 0x593ecc
push eax
call fcn.004023e0
mov esi, dword [ebp - 0x1c]
xor eax, eax
add esp, 0xc
test esi, esi
setne al
test eax, eax
je 0x40a80e
push esi
push dword [ebp - 0x18]
call fcn.005347c2
add esp, 8
test eax, eax
jne 0x40a8ee
mov eax, dword [ebp - 0x240]
mov dword [ebp - 0x258], eax
cmp dword [ebp - 0x254], eax
je 0x40a8ee
mov edi, dword [ebx + 8]
test edi, edi
js 0x40a998
push 0xffffffffffffffff
lea eax, [edi + 1]
mov ecx, ebx
push eax
call fcn.00402630
mov eax, dword [ebx + 4]
mov ecx, dword [ebp - 0x258]
mov dword [ebp - 0x250], 1
mov dword [eax + edi*4], ecx
lea eax, [ebp - 0x248]
push eax
push dword [ebp - 0x24c]
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x40a872
or edi, 0xffffffff
push dword [ebp - 0x24c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
add esi, 0xfffffff0
mov byte [ebp - 4], 1
mov ecx, edi
lea eax, [esi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40a935
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0
mov ecx, edi
mov edx, dword [ebp - 0x14]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40a955
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov esi, dword [ebp - 0x18]
add esi, 0xfffffff0
lea eax, [esi + 0xc]
lock xadd dword [eax], edi
dec edi
test edi, edi
jg 0x40a976
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x250]
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.00532f97
mov esp, ebp
pop ebp
ret
call fcn.004195de
push 0x80070057
call fcn.00402310
int3