Function at 0x413050
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x448173
mov eax, dword fs:[0]
push eax
sub esp, 0x274
mov eax, dword [0x45b4b8]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x27c], ecx
mov dword [ebp - 4], 0
xor edi, edi
mov eax, dword [ebp + 8]
or ecx, 0xffffffff
cmp dword [eax - 0xc], edi
je 0x41323c
push 0x228
lea eax, [ebp - 0x268]
mov dword [ebp - 0x274], edi
push edi
push eax
mov dword [ebp - 0x278], edi
mov dword [ebp - 0x26c], 0x22c
call fcn.0042edb0
add esp, 0xc
call fcn.00402df0
mov ecx, eax
xor eax, eax
test ecx, ecx
setne al
test eax, eax
jne 0x4130e2
push 0x80004005
call fcn.00402ba0
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
lea esi, [eax + 0x10]
mov dword [ebp - 0x280], esi
push 0
push 2
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov dword [ebp - 0x270], eax
cmp eax, 0xffffffff
jne 0x413112
xor edi, edi
jmp 0x41321b
mov eax, dword [ebp + 8]
cmp dword [eax - 0xc], 0
jl 0x413137
push 0x453984
push eax
call fcn.0042de8b
add esp, 8
test eax, eax
je 0x413137
sub eax, dword [ebp + 8]
sar eax, 1
cmp eax, 0xffffffff
jne 0x413146
push 4
push str..exe
lea ecx, [ebp + 8]
call fcn.0040b810
lea eax, [ebp - 0x26c]
push eax
push dword [ebp - 0x270]
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x41320f
push dword [ebp + 8]
lea eax, [ebp - 0x248]
push eax
call fcn.0042e7d8
add esp, 8
test eax, eax
jne 0x4131f4
cmp dword [ebp - 0x27c], eax
je 0x41327a
push dword [ebp - 0x264]
xorps xmm0, xmm0
mov dword [ebp - 0x18], eax
push eax
push 0x410
movdqu xmmword [ebp - 0x38], xmm0
mov dword [ebp - 0x3c], 0x28
movdqu xmmword [ebp - 0x28], xmm0
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
je 0x4131c6
push 0x28
lea eax, [ebp - 0x3c]
push eax
push edi
call dword [sym.imp.PSAPI.DLL_GetProcessMemoryInfo]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x274], 0
mov eax, dword [ebp - 0x1c]
je 0x4131da
cmp eax, dword [ebp - 0x278]
jb 0x4131ee
mov edi, dword [ebp - 0x264]
mov dword [ebp - 0x274], edi
mov dword [ebp - 0x278], eax
jmp 0x4131f4
mov edi, dword [ebp - 0x274]
lea eax, [ebp - 0x26c]
push eax
push dword [ebp - 0x270]
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x413161
push dword [ebp - 0x270]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
add esi, 0xfffffff0
mov byte [ebp - 4], 0
or ecx, 0xffffffff
lea eax, [esi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x413239
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
or ecx, 0xffffffff
mov dword [ebp - 4], 0xffffffff
mov esi, dword [ebp + 8]
add esi, 0xfffffff0
lea eax, [esi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x41325d
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0042d3b0
mov esp, ebp
pop ebp
ret
push dword [ebp - 0x270]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [ebp - 0x264]
jmp 0x41321b