Function at 0x407600
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x523c23
mov eax, dword fs:[0]
push eax
sub esp, 0x138
mov eax, dword [0x56d3f0]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea ecx, [ebp + 8]
mov dword [ebp - 4], 0
call fcn.00401180
push 0
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x407797
mov dword [ebp - 0x13c], 0x128
call fcn.0040c47c
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x407676
push 0x80004005
call fcn.00401c40
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea esi, [eax + 0x10]
mov dword [ebp - 0x140], esi
lea ecx, [ebp - 0x13c]
push ecx
push ebx
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_Process32First]
test eax, eax
je 0x407770
lea eax, [ebp - 0x118]
lea edx, [eax + 1]
jmp 0x4076b0
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4076b0
sub eax, edx
push eax
lea edx, [ebp - 0x118]
push edx
lea ecx, [ebp - 0x140]
call fcn.00401b40
mov esi, dword [ebp - 0x140]
mov edi, dword [esi - 0xc]
test edi, edi
js 0x4077db
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, edi
or eax, ecx
jge 0x407700
push edi
lea ecx, [ebp - 0x140]
call fcn.00401a70
mov esi, dword [ebp - 0x140]
lea eax, [edi + 1]
push eax
push esi
call fcn.004ff84a
add esp, 8
cmp eax, 0x50
ja case.0x40771d.0
movzx ecx, byte [eax + 0x407858]
jmp dword [ecx*4 + 0x407848]
cmp edi, dword [esi - 8]
jg 0x4077db
mov dword [esi - 0xc], edi
mov byte [edi + esi], 0
mov eax, dword [ebp + 8]
test eax, eax
je 0x40775a
cmp dword [esi - 0xc], 0
jl 0x40775a
push eax
push esi
call fcn.005013b5
add esp, 8
test eax, eax
je 0x40775a
sub eax, esi
cmp eax, 0xffffffff
jne 0x4077ef
lea edx, [ebp - 0x13c]
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_Process32Next]
test eax, eax
jne 0x4076a2
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [esi - 0x10]
mov byte [ebp - 4], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x407797
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4077bd
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004feee9
mov esp, ebp
pop ebp
ret
push 0x80070057
call fcn.00401c40
call fcn.0040d76e
call fcn.0040d7a6
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [esi - 0x10]
mov byte [ebp - 4], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x407816
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40783c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
jmp 0x4077bf