Function at 0x40a7f0
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45955d
mov eax, dword fs:[0]
push eax
sub esp, 0x264
mov eax, dword [0x471080]
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, dword [ebp + 8]
mov dword [ebp - 0x268], ebx
mov dword [ebp - 0x24c], ebx
call fcn.00407b80
mov ecx, eax
test ecx, ecx
je 0x40adf9
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x25c], esi
mov dword [ebp - 4], 1
mov dword [ebp - 0x23c], 0x22c
mov dword [ebp - 0x248], 0
mov dword [ebp - 0x244], 0
call fcn.0040bff0
mov dword [ebp - 0x248], eax
push 0
push 2
mov byte [ebp - 4], 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov dword [ebp - 0x26c], eax
cmp eax, 0xffffffff
jne 0x40a8f0
push 0x4634cc
mov ecx, ebx
call fcn.00409310
mov eax, dword [ebp - 0x248]
lea ecx, [ebp - 0x248]
push eax
push dword [eax]
lea eax, [ebp - 0x268]
push eax
call fcn.0040b9a0
push 0x20
push dword [ebp - 0x248]
call fcn.0043dbf3
add esp, 8
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x40a8e9
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, ebx
jmp 0x40addb
lea ecx, [ebp - 0x23c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
or ebx, 0xffffffff
test eax, eax
je 0x40abf5
nop dword [eax]
call fcn.00407b80
test eax, eax
je 0x40adf9
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x240], eax
lea eax, [ebp - 0x218]
mov byte [ebp - 4], 3
push eax
lea ecx, [ebp - 0x240]
call fcn.00409440
test al, al
jne 0x40a972
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40a950
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x240]
call fcn.00409600
mov byte [ebp - 4], 4
mov esi, dword [ebp - 0x240]
push 0x5c
push esi
mov edi, dword [esi - 0xc]
call fcn.0043f03e
add esp, 8
test eax, eax
jne 0x40a993
or eax, 0xffffffff
jmp 0x40a997
sub eax, esi
sar eax, 1
push edi
inc eax
lea ecx, [ebp - 0x240]
push eax
lea eax, [ebp - 0x270]
push eax
call fcn.0040b650
mov byte [ebp - 4], 5
lea edi, [esi - 0x10]
mov edx, dword [eax]
lea ecx, [edx - 0x10]
cmp ecx, edi
je 0x40aa09
cmp dword [edi + 0xc], 0
lea esi, [edi + 0xc]
jl 0x40a9f4
mov eax, dword [ecx]
cmp eax, dword [edi]
jne 0x40a9f4
call fcn.00409510
mov ebx, eax
or ecx, 0xffffffff
lock xadd dword [esi], ecx
dec ecx
test ecx, ecx
jg 0x40a9e6
mov ecx, dword [edi]
push edi
mov edx, dword [ecx]
call dword [edx + 4]
lea esi, [ebx + 0x10]
or ebx, 0xffffffff
mov dword [ebp - 0x240], esi
jmp 0x40aa09
push dword [edx - 0xc]
lea ecx, [ebp - 0x240]
push edx
call fcn.00409600
mov esi, dword [ebp - 0x240]
mov byte [ebp - 4], 4
mov eax, ebx
mov edx, dword [ebp - 0x270]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40aa2a
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
call fcn.00407b80
mov ecx, eax
test ecx, ecx
je 0x40adf9
mov eax, dword [ecx]
call dword [eax + 0xc]
mov edi, eax
lea ecx, [edi + 0x10]
mov dword [ebp - 0x250], ecx
mov byte [ebp - 4], 6
mov ecx, dword [ebp - 0x224]
mov edx, dword [ebp - 0x234]
mov dword [ebp - 0x254], ecx
lea ecx, [esi - 0x10]
mov dword [ebp - 0x258], edx
mov dword [ebp - 0x24c], ecx
cmp ecx, edi
je 0x40aabc
cmp dword [edi + 0xc], 0
lea ebx, [edi + 0xc]
jl 0x40aaa7
mov eax, dword [ecx]
cmp eax, dword [edi]
jne 0x40aaa7
call fcn.00409510
mov esi, eax
or ecx, 0xffffffff
lock xadd dword [ebx], ecx
dec ecx
test ecx, ecx
jg 0x40aa9c
mov ecx, dword [edi]
push edi
mov edx, dword [ecx]
call dword [edx + 4]
lea eax, [esi + 0x10]
mov dword [ebp - 0x250], eax
jmp 0x40aab6
push dword [esi - 0xc]
lea ecx, [ebp - 0x250]
push esi
call fcn.00409600
mov edx, dword [ebp - 0x258]
mov ecx, dword [ebp - 0x248]
mov esi, ecx
mov eax, dword [ecx + 4]
cmp byte [eax + 0xd], 0
jne 0x40aaed
nop dword [eax]
cmp dword [eax + 0x10], edx
jae 0x40aada
mov eax, dword [eax + 8]
jmp 0x40aade
mov esi, eax
mov eax, dword [eax]
cmp byte [eax + 0xd], 0
je 0x40aad0
cmp esi, ecx
je 0x40aaed
cmp edx, dword [esi + 0x10]
jae 0x40ab31
lea eax, [ebp - 0x258]
push ecx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x260]
push eax
push ecx
lea ecx, [ebp - 0x248]
call fcn.0040c1b0
push eax
add eax, 0x10
lea ecx, [ebp - 0x248]
push eax
push esi
lea eax, [ebp - 0x264]
push eax
call fcn.0040c210
mov esi, dword [ebp - 0x264]
mov edx, dword [ebp - 0x258]
mov dword [esi + 0x14], edx
lea ebx, [esi + 0x1c]
mov eax, dword [ebp - 0x254]
mov dword [esi + 0x18], eax
mov edx, dword [ebp - 0x250]
mov esi, dword [ebx]
sub esi, 0x10
lea ecx, [edx - 0x10]
cmp ecx, esi
je 0x40ab9e
cmp dword [esi + 0xc], 0
lea edi, [esi + 0xc]
jl 0x40ab8d
mov eax, dword [ecx]
cmp eax, dword [esi]
jne 0x40ab8d
call fcn.00409510
mov dword [ebp - 0x260], eax
or ecx, 0xffffffff
lock xadd dword [edi], ecx
dec ecx
test ecx, ecx
jg 0x40ab86
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x260]
add eax, 0x10
mov dword [ebx], eax
jmp 0x40ab98
push dword [edx - 0xc]
mov ecx, ebx
push edx
call fcn.00409600
mov edx, dword [ebp - 0x250]
or ebx, 0xffffffff
mov byte [ebp - 4], 4
add edx, 0xfffffff0
mov eax, ebx
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40abbc
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 2
mov eax, ebx
mov edx, dword [ebp - 0x24c]
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40abda
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebp - 0x23c]
push eax
push dword [ebp - 0x26c]
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x40a910
mov edi, dword [ebp + 0xc]
mov eax, 0xa
nop dword [eax]
mov esi, dword [ebp - 0x248]
dec eax
mov dword [ebp - 0x264], eax
mov eax, esi
mov ecx, dword [esi + 4]
mov edx, ecx
mov bl, byte [edx + 0xd]
test bl, bl
jne 0x40ac3d
nop dword [eax + eax]
cmp dword [edx + 0x10], edi
jae 0x40ac2a
mov edx, dword [edx + 8]
jmp 0x40ac2e
mov eax, edx
mov edx, dword [edx]
cmp byte [edx + 0xd], 0
je 0x40ac20
cmp eax, esi
je 0x40ac3d
cmp edi, dword [eax + 0x10]
jae 0x40ac3f
mov eax, esi
cmp eax, esi
je 0x40ad29
mov eax, dword [eax + 0x18]
mov edi, esi
test bl, bl
jne 0x40ac6d
cmp dword [ecx + 0x10], eax
jae 0x40ac5a
mov ecx, dword [ecx + 8]
jmp 0x40ac5e
mov edi, ecx
mov ecx, dword [ecx]
cmp byte [ecx + 0xd], 0
je 0x40ac50
cmp edi, esi
je 0x40ac6d
cmp eax, dword [edi + 0x10]
jae 0x40ac6f
mov edi, esi
cmp edi, esi
je 0x40ad29
mov eax, dword [edi + 0x1c]
mov ecx, dword [eax - 0x10]
lea esi, [eax - 0x10]
mov dword [ebp - 0x24c], eax
mov eax, dword [ecx]
call dword [eax + 0x10]
cmp dword [esi + 0xc], 0
mov ecx, eax
lea eax, [esi + 0xc]
jl 0x40ac9f
cmp ecx, dword [esi]
jne 0x40ac9f
lock inc dword [eax]
jmp 0x40acce
mov eax, dword [ecx]
lea ebx, [esi + 4]
push 2
push dword [ebx]
call dword [eax]
mov esi, eax
test esi, esi
je 0x40ae03
mov ecx, dword [ebx]
mov dword [esi + 4], ecx
lea ecx, [esi + 0x10]
mov edx, dword [ebx]
inc edx
push edx
push dword [ebp - 0x24c]
call fcn.00409570
add esp, 8
add esi, 0x10
mov dword [ebp - 0x24c], esi
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x25c]
push dword [esi - 0xc]
push esi
call fcn.0040bb00
push 1
push 0x463e3c
lea ecx, [ebp - 0x25c]
call fcn.0040bb00
mov edi, dword [edi + 0x10]
add esi, 0xfffffff0
mov byte [ebp - 4], 2
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x40ad1b
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x264]
test eax, eax
jne 0x40ac00
push dword [ebp - 0x26c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [ebp - 0x25c]
add esi, 0xfffffff0
mov ecx, dword [esi]
mov eax, dword [ecx]
call dword [eax + 0x10]
cmp dword [esi + 0xc], 0
lea ebx, [esi + 0xc]
mov ecx, eax
jl 0x40ad5b
cmp ecx, dword [esi]
jne 0x40ad5b
mov edi, esi
lock inc dword [ebx]
jmp 0x40ad88
mov eax, dword [ecx]
push 2
push dword [esi + 4]
call dword [eax]
mov edi, eax
test edi, edi
je 0x40ae03
mov eax, dword [esi + 4]
lea ecx, [edi + 0x10]
mov dword [edi + 4], eax
lea eax, [esi + 0x10]
mov edx, dword [esi + 4]
inc edx
push edx
push eax
call fcn.00409570
add esp, 8
lea eax, [edi + 0x10]
mov edi, dword [ebp - 0x268]
lea ecx, [ebp - 0x248]
mov dword [edi], eax
mov eax, dword [ebp - 0x248]
push eax
push dword [eax]
lea eax, [ebp - 0x268]
push eax
call fcn.0040b9a0
push 0x20
push dword [ebp - 0x248]
call fcn.0043dbf3
add esp, 8
mov dword [ebp - 4], 0xffffffff
or eax, 0xffffffff
lock xadd dword [ebx], eax
dec eax
test eax, eax
jg 0x40add9
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 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.0043dbb2
mov esp, ebp
pop ebp
ret 0xc
push 0x80004005
call fcn.00407690
call fcn.004096f0
int3