Function at 0x401800
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x2b0
mov eax, dword [0x435aa0]
xor eax, esp
mov dword [esp + 0x2ac], eax
push ebx
push edi
xor edi, edi
push 0x124
lea eax, [esp + 0x18]
push edi
push eax
mov dword [esp + 0x1c], edi
call fcn.0041a070
add esp, 0xc
push 0x170
lea ecx, [esp + 0x140]
push edi
push ecx
mov dword [esp + 0x144], edi
call fcn.0041a070
mov ecx, dword [esi + 0x14]
mov eax, dword [ecx]
mov dword [ecx], ecx
mov ecx, dword [esi + 0x14]
mov dword [ecx + 4], ecx
add esp, 0xc
mov dword [esi + 0x18], edi
cmp eax, dword [esi + 0x14]
je 0x40187b
mov edi, dword [eax]
push eax
call fcn.0040ac1e
add esp, 4
mov eax, edi
cmp edi, dword [esi + 0x14]
jne 0x401867
xor edi, edi
push edi
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov ebx, eax
mov dword [esp + 8], ebx
cmp ebx, 0xffffffff
jne 0x4018a4
xor eax, eax
pop edi
pop ebx
mov ecx, dword [esp + 0x2ac]
xor ecx, esp
call fcn.00414fa3
mov esp, ebp
pop ebp
ret
lea edx, [esp + 0x10]
push edx
push ebx
mov dword [esp + 0x18], 0x128
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x401a97
mov edx, dword [esp + 0x18]
mov dword [esp + 0x13c], edx
xor eax, eax
lea esp, [esp]
mov cl, byte [esp + eax + 0x34]
mov byte [esp + eax + 0x140], cl
inc eax
test cl, cl
jne 0x4018d0
push edx
lea edi, [esp + 0x184]
call fcn.00401660
lea eax, [esp + 0x38]
add esp, 4
test eax, eax
je 0x401922
mov ecx, eax
push str.system_idle_process
push ecx
call 0x41594e
add esp, 8
test eax, eax
je 0x401948
lea edx, [esp + 0x34]
push str._System_Process_
push edx
call 0x41594e
add esp, 8
test eax, eax
je 0x401948
lea eax, [esp + 0x138]
push eax
call fcn.00401700
add esp, 4
test eax, eax
jne 0x401948
lea eax, [esp + 0x138]
mov ebx, esi
call fcn.004030f0
mov ebx, dword [esp + 8]
lea ecx, [esp + 0x288]
push ecx
lea ecx, [esp + 0x184]
call fcn.00406700
add esp, 4
lea edx, [esp + 0x10]
push edx
push ebx
call sub.KERNEL32.dll_Process32Next
test eax, eax
je 0x401a92
lea eax, [esp + 0x34]
test eax, eax
je 0x4019ac
mov ecx, eax
push str.system_idle_process
push ecx
call 0x41594e
add esp, 8
test eax, eax
je 0x401a7f
lea edx, [esp + 0x34]
push str._System_Process_
push edx
call 0x41594e
add esp, 8
test eax, eax
je 0x401a7f
push 0x174
lea eax, [esp + 0x13c]
push 0
push eax
call fcn.0041a070
mov edx, dword [esp + 0x24]
add esp, 0xc
mov dword [esp + 0x13c], edx
xor eax, eax
mov cl, byte [esp + eax + 0x34]
mov byte [esp + eax + 0x140], cl
inc eax
test cl, cl
jne 0x4019d0
push edx
lea edi, [esp + 0x184]
call fcn.00401660
mov eax, edi
add esp, 4
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4019f5
sub eax, edx
je 0x401a2a
lea ecx, [esp + 0x180]
push 0x5c
push ecx
call 0x415970
inc eax
lea edx, [esp + 0x148]
add esp, 8
sub edx, eax
lea esp, [esp]
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x401a20
lea edx, [esp + 0x138]
push edx
call fcn.00401700
add esp, 4
test eax, eax
jne 0x401a7f
lea eax, [esp + 0x288]
push eax
lea ecx, [esp + 0x184]
call fcn.00406700
mov edi, dword [esi + 0x14]
mov edx, dword [edi + 4]
add esp, 4
lea ecx, [esp + 0x138]
push ecx
push edx
push edi
call fcn.00403e20
mov ecx, esi
mov ebx, eax
call fcn.00403ed0
mov dword [edi + 4], ebx
mov eax, dword [ebx + 4]
mov dword [eax], ebx
mov ebx, dword [esp + 8]
lea ecx, [esp + 0x10]
push ecx
push ebx
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x401972
mov edi, 1
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x2b4]
mov eax, edi
pop edi
pop ebx
xor ecx, esp
call fcn.00414fa3
mov esp, ebp
pop ebp
ret