Function at 0x404e30
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5350a3
mov eax, dword fs:[0]
push eax
sub esp, 0x23c
mov eax, dword [0x586e90]
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
xor ebx, ebx
push ebx
push 2
mov dword [ebp - 4], ebx
mov dword [ebp - 0x248], ebx
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
lea eax, [ebp - 0x23c]
push eax
mov edi, 0x22c
push esi
mov dword [ebp - 0x244], esi
mov dword [ebp - 0x23c], edi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
jne 0x404ec4
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 0x404ebd
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
jmp 0x40505b
lea ecx, [ebp - 0x23c]
push ecx
push esi
mov dword [ebp - 0x23c], edi
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
je 0x405028
call fcn.0040f6aa
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
je 0x404ffc
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea edi, [eax + 0x10]
mov dword [ebp - 0x240], edi
lea ecx, [ebp - 0x218]
mov byte [ebp - 4], 1
test ecx, 0xffff0000
jne 0x404f7d
mov edx, ecx
movzx esi, dx
push esi
call fcn.00418851
cmp eax, ebx
je 0x404f3a
push esi
push eax
lea ecx, [ebp - 0x240]
call fcn.00408c00
mov edi, dword [ebp - 0x240]
mov esi, dword [ebp - 0x244]
mov byte [ebp - 4], bl
mov ecx, dword [ebp + 8]
xor eax, eax
cmp ecx, ebx
setne al
cmp eax, ebx
je 0x404ffc
mov eax, edi
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x404fb0
cmp dx, bx
je 0x404f79
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x404fb0
add eax, 4
add ecx, 4
cmp dx, bx
jne 0x404f57
xor eax, eax
jmp 0x404fb5
lea eax, [ebp - 0x218]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x404f86
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x240]
call fcn.00403730
mov edi, dword [ebp - 0x240]
jmp 0x404f40
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
sete al
cmp al, bl
lea eax, [edi - 0x10]
lea ecx, [eax + 0xc]
jne 0x405006
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x404fda
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [ebp - 0x23c]
push ecx
push esi
mov dword [ebp - 0x23c], 0x22c
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x404ee0
jmp 0x405028
push 0x80004005
call fcn.004038b0
mov edx, dword [ebp - 0x234]
mov dword [ebp - 0x248], edx
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x405028
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
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 0x405055
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x248]
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.0050ec37
mov esp, ebp
pop ebp
ret 4