Function at 0x401ec0
Capabilities:
Enumerate processes
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56a4e2
mov eax, dword fs:[0]
push eax
sub esp, 0x2c0
mov eax, dword [0x5d3640]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x2cc], 0
mov dword [ebp - 0x264], 0xffffffff
mov eax, dword [ebp + 8]
mov dword [ebp - 0x274], eax
mov ecx, dword [ebp - 0x274]
mov edx, dword [ebp - 0x274]
mov eax, dword [ecx + 4]
sub eax, dword [edx]
cdq
mov ecx, 0x18
idiv ecx
mov dword [ebp - 0x28c], eax
cmp dword [ebp - 0x28c], 0
jne 0x401f35
jmp 0x4022a0
push 0
push 2
call sub.KERNEL32.DLL_CreateToolhelp32Snapshot
mov dword [ebp - 0x264], eax
cmp dword [ebp - 0x264], 0xffffffff
jne 0x401f52
jmp 0x4022a0
mov dword [ebp - 0x254], 0x22c
lea edx, [ebp - 0x254]
push edx
mov eax, dword [ebp - 0x264]
push eax
call sub.KERNEL32.DLL_Process32FirstW
test eax, eax
je 0x401f7c
mov byte [ebp - 0x257], 1
jmp 0x401f83
mov byte [ebp - 0x257], 0
mov cl, byte [ebp - 0x257]
mov byte [ebp - 0x256], cl
movzx edx, byte [ebp - 0x256]
test edx, edx
je 0x402298
lea eax, [ebp - 0x230]
push eax
lea ecx, [ebp - 0x25c]
call fcn.004041d0
mov dword [ebp - 4], 0
push 0
push 0x57a1d4
lea ecx, [ebp - 0x25c]
call fcn.00405020
mov dword [ebp - 0x278], eax
cmp dword [ebp - 0x278], 0xffffffff
je 0x40204f
mov ecx, dword [ebp - 0x25c]
mov edx, dword [ecx - 0xc]
mov dword [ebp - 0x2c4], edx
mov eax, dword [ebp - 0x2c4]
sub eax, dword [ebp - 0x278]
sub eax, 1
push eax
lea ecx, [ebp - 0x294]
push ecx
lea ecx, [ebp - 0x25c]
call fcn.004058b0
mov dword [ebp - 0x2c8], eax
mov edx, dword [ebp - 0x2c8]
mov dword [ebp - 0x290], edx
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x290]
push eax
lea ecx, [ebp - 0x25c]
call fcn.00404730
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x294]
sub ecx, 0x10
mov dword [ebp - 0x298], ecx
mov ecx, dword [ebp - 0x298]
call fcn.00405870
lea ecx, [ebp - 0x25c]
call fcn.00405440
mov dword [ebp - 0x29c], eax
mov edx, dword [ebp - 0x29c]
push edx
lea ecx, [ebp - 0x25c]
call fcn.00404730
mov eax, dword [ebp + 8]
mov dword [ebp - 0x27c], eax
mov ecx, dword [ebp - 0x27c]
mov edx, dword [ecx]
mov dword [ebp - 0x26c], edx
mov eax, dword [ebp - 0x27c]
mov ecx, dword [eax + 4]
mov dword [ebp - 0x2a0], ecx
jmp 0x4020a9
mov edx, dword [ebp - 0x26c]
add edx, 0x18
mov dword [ebp - 0x26c], edx
mov eax, dword [ebp - 0x26c]
cmp eax, dword [ebp - 0x2a0]
je 0x40223f
mov ecx, dword [ebp - 0x26c]
push ecx
lea ecx, [ebp - 0x28]
call fcn.00404350
mov byte [ebp - 4], 2
lea edx, [ebp - 0x28]
mov dword [ebp - 0x270], edx
mov eax, dword [ebp - 0x270]
mov dword [ebp - 0x284], eax
mov ecx, dword [ebp - 0x270]
cmp dword [ecx + 0x14], 7
jbe 0x4020fb
mov dword [ebp - 0x280], 1
jmp 0x402105
mov dword [ebp - 0x280], 0
mov dl, byte [ebp - 0x280]
mov byte [ebp - 0x25d], dl
movzx eax, byte [ebp - 0x25d]
test eax, eax
je 0x402136
mov ecx, dword [ebp - 0x270]
mov edx, dword [ecx]
mov dword [ebp - 0x2a4], edx
mov eax, dword [ebp - 0x2a4]
mov dword [ebp - 0x284], eax
mov ecx, dword [ebp - 0x284]
mov dword [ebp - 0x2a8], ecx
mov edx, dword [ebp - 0x2a8]
mov dword [ebp - 0x2ac], edx
mov eax, dword [ebp - 0x2ac]
push eax
lea ecx, [ebp - 0x268]
call fcn.004041d0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x268]
call fcn.00405440
mov dword [ebp - 0x2b0], eax
mov ecx, dword [ebp - 0x2b0]
push ecx
lea ecx, [ebp - 0x268]
call fcn.00404730
mov edx, dword [ebp - 0x268]
mov dword [ebp - 0x2b4], edx
mov eax, dword [ebp - 0x2b4]
push eax
lea ecx, [ebp - 0x25c]
call fcn.00404db0
test eax, eax
jne 0x4021b5
mov dword [ebp - 0x288], 1
jmp 0x4021bf
mov dword [ebp - 0x288], 0
movzx ecx, byte [ebp - 0x288]
test ecx, ecx
je 0x402210
push 0
mov edx, dword [ebp - 0x24c]
push edx
push 1
push 1
call dword [sym.imp.KERNEL32.DLL_OpenProcess]
push eax
call dword [sym.imp.KERNEL32.DLL_TerminateProcess]
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x268]
sub eax, 0x10
mov dword [ebp - 0x2b8], eax
mov ecx, dword [ebp - 0x2b8]
call fcn.00405870
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.00405e70
jmp 0x40223f
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x268]
sub ecx, 0x10
mov dword [ebp - 0x2bc], ecx
mov ecx, dword [ebp - 0x2bc]
call fcn.00405870
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.00405e70
jmp 0x40209a
lea edx, [ebp - 0x254]
push edx
mov eax, dword [ebp - 0x264]
push eax
call sub.KERNEL32.DLL_Process32NextW
test eax, eax
je 0x40225f
mov byte [ebp - 0x255], 1
jmp 0x402266
mov byte [ebp - 0x255], 0
mov cl, byte [ebp - 0x255]
mov byte [ebp - 0x256], cl
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x25c]
sub edx, 0x10
mov dword [ebp - 0x2c0], edx
mov ecx, dword [ebp - 0x2c0]
call fcn.00405870
jmp 0x401f8f
xor eax, eax
jne 0x401eff
cmp dword [ebp - 0x264], 0xffffffff
je 0x4022c0
mov ecx, dword [ebp - 0x264]
push ecx
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov dword [ebp - 0x264], 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00510479
mov esp, ebp
pop ebp
ret