Function at 0x4077c0
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x288
mov eax, dword [0x414008]
xor eax, esp
mov dword [esp + 0x284], eax
mov eax, dword [ebp + 8]
push esi
push edi
cmp dword [eax + 0x14], 0x10
mov edx, dword [eax + 0x10]
jb 0x4077ee
mov edi, dword [eax]
add edx, edi
jmp 0x4077f2
add edx, eax
mov edi, eax
xorps xmm0, xmm0
mov dword [esp + 0x2c], edx
xor eax, eax
movaps xmmword [esp + 0x30], xmm0
cmp edi, edx
jne 0x40781a
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], 7
mov word [esp + 0x30], ax
jmp 0x407924
mov ecx, edx
mov dword [esp + 0x10], eax
sub ecx, edi
mov dword [esp + 0x40], eax
mov esi, 7
mov dword [esp + 0x44], esi
cmp ecx, 0x7ffffffe
ja 0x407a08
cmp ecx, 8
jb 0x4078e0
mov esi, ecx
or esi, 7
cmp esi, 0x7ffffffe
jbe 0x407858
mov esi, 0x7ffffffe
jmp 0x407862
mov eax, 0xa
cmp esi, eax
cmovb esi, eax
xor ecx, ecx
mov eax, esi
add eax, 1
setb cl
neg ecx
or ecx, eax
cmp ecx, 0x7fffffff
ja 0x407a0d
add ecx, ecx
cmp ecx, 0x1000
jb 0x4078b9
lea eax, [ecx + 0x23]
cmp eax, ecx
jbe 0x407a0d
push eax
call fcn.0040cb95
add esp, 4
test eax, eax
je 0x4079d3
mov edx, dword [esp + 0x2c]
lea ecx, [eax + 0x23]
and ecx, 0xffffffe0
mov dword [ecx - 4], eax
mov eax, dword [esp + 0x40]
mov dword [esp + 0x10], eax
jmp 0x4078d8
test ecx, ecx
je 0x4078d6
push ecx
call fcn.0040cb95
mov edx, dword [esp + 0x30]
mov ecx, eax
mov eax, dword [esp + 0x44]
add esp, 4
mov dword [esp + 0x10], eax
jmp 0x4078d8
xor ecx, ecx
mov dword [esp + 0x30], ecx
mov dword [esp + 0x44], esi
movsx ax, byte [edi]
lea ecx, [esp + 0x30]
cmp esi, 8
mov esi, dword [esp + 0x10]
cmovae ecx, dword [esp + 0x30]
inc edi
mov word [ecx + esi*2], ax
mov ecx, dword [esp + 0x40]
inc ecx
mov dword [esp + 0x10], ecx
mov dword [esp + 0x40], ecx
cmp edi, edx
je 0x407910
mov esi, dword [esp + 0x44]
jmp 0x4078e0
cmp dword [esp + 0x44], 8
lea eax, [esp + 0x30]
cmovae eax, dword [esp + 0x30]
xor edx, edx
mov word [eax + ecx*2], dx
push 0
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
cmp esi, 0xffffffff
je 0x4079a3
lea eax, [esp + 0x58]
mov dword [esp + 0x58], 0x22c
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x40799c
mov edi, dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
nop dword [eax]
nop word [eax + eax]
cmp dword [esp + 0x44], 8
lea eax, [esp + 0x30]
cmovae eax, dword [esp + 0x30]
push eax
lea eax, [esp + 0x80]
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
add esp, 8
test eax, eax
jne 0x40798c
call edi
cmp dword [esp + 0x60], eax
jne 0x4079d9
lea eax, [esp + 0x58]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x407960
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor esi, esi
mov ecx, dword [esp + 0x44]
cmp ecx, 8
jb 0x4079f0
mov edx, dword [esp + 0x30]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4079e6
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x4079e6
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [esp + 0x60]
jmp 0x4079a5
push ecx
push edx
call fcn.0040cbca
add esp, 8
mov ecx, dword [esp + 0x28c]
mov eax, esi
pop edi
pop esi
xor ecx, esp
call fcn.0040cb87
mov esp, ebp
pop ebp
ret 4
call fcn.00401260
call fcn.004011c0
int3