Function at 0x4018e0
Capabilities:
Enumerate processes
Terminate process
Terminate process by name

Disassembly:
push 0xffffffffffffffff
push 0x408621
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x990
mov eax, dword [0x40b0e0]
xor eax, esp
push ebx
push esi
mov esi, dword [esp + 0x9a8]
mov dword [esp + 0x994], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
xor ebx, ebx
push ebx
push 2
mov dword [esp + 0x18], eax
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
cmp eax, ebx
mov dword [esp + 0xc], eax
je 0x401bae
cmp esi, ebx
je 0x401bae
mov eax, esi
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x401940
sub eax, edx
mov dword [esp + 0x14], eax
je 0x401bae
cmp byte [esi], 0x7c
je 0x401970
push esi
lea eax, [esp + 0x198]
push 0x40918c
push eax
call fcn.00402c26
add esp, 0xc
jmp 0x40198a
lea edx, [esp + 0x194]
mov eax, esi
sub edx, esi
jmp 0x401980
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
cmp cl, bl
jne 0x401980
lea eax, [esp + 0x194]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x401994
sub eax, edx
cmp byte [esp + eax + 0x193], 0x7c
push ebp
push edi
je 0x4019c3
lea edi, [esp + 0x19c]
dec edi
mov al, byte [edi + 1]
inc edi
cmp al, bl
jne 0x4019b1
mov cx, word [0x409188]
mov word [edi], cx
lea edx, [esp + 0x19c]
push edx
call fcn.00408480
add esp, 4
xor ebp, ebp
mov dword [esp + 0x70], 0xf
mov dword [esp + 0x6c], ebx
mov byte [esp + 0x5c], bl
mov esi, dword [esp + 0x14]
lea eax, [esp + 0x74]
push eax
push esi
mov dword [esp + 0x9b0], ebx
mov dword [esp + 0x7c], 0x128
call sub.KERNEL32.dll_Process32First
cmp eax, ebx
mov edi, 0x10
je 0x401b8e
mov byte [esp + 0x10], 0x5c
jmp 0x401a20
lea eax, [esp + 0x98]
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x401a30
sub eax, edx
push eax
lea ecx, [esp + 0x9c]
push ecx
lea ecx, [esp + 0x60]
call fcn.00401650
lea edx, [esp + 0x58]
push edx
lea eax, [esp + 0x40]
push eax
call fcn.004017f0
add esp, 8
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [esp + 0x64]
mov byte [esp + 0x9b4], 1
call fcn.00401560
cmp dword [esp + 0x54], edi
mov byte [esp + 0x9a8], bl
jb 0x401a8c
mov ecx, dword [esp + 0x40]
push ecx
call fcn.004025dc
add esp, 4
push 1
push 0xffffffffffffffff
lea edx, [esp + 0x18]
mov esi, 0xf
push edx
lea ecx, [esp + 0x64]
mov dword [esp + 0x60], esi
mov dword [esp + 0x5c], ebx
mov byte [esp + 0x4c], bl
call fcn.004011a0
cmp eax, 0xffffffff
je 0x401b01
push 0xffffffffffffffff
inc eax
push eax
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x64]
call fcn.004017b0
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [esp + 0x64]
mov byte [esp + 0x9b4], 2
call fcn.00401560
cmp dword [esp + 0x38], edi
mov byte [esp + 0x9a8], bl
jb 0x401af5
mov ecx, dword [esp + 0x24]
push ecx
call fcn.004025dc
add esp, 4
mov dword [esp + 0x38], esi
mov dword [esp + 0x34], ebx
mov byte [esp + 0x24], bl
cmp dword [esp + 0x70], edi
mov eax, dword [esp + 0x5c]
jae 0x401b0f
lea eax, [esp + 0x5c]
push eax
lea edx, [esp + 0x5a0]
push 0x409180
push edx
call fcn.00402c26
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x88]
add esp, 0xc
cmp eax, ecx
je 0x401b77
lea ecx, [esp + 0x59c]
push ecx
lea edx, [esp + 0x1a0]
push edx
call fcn.00402ba0
add esp, 8
test eax, eax
je 0x401b77
mov eax, dword [esp + 0x7c]
push eax
push ebx
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
cmp esi, ebx
je 0x401b77
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc ebp
mov esi, dword [esp + 0x14]
lea ecx, [esp + 0x74]
push ecx
push esi
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x401a20
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esp + 0x70], edi
jb 0x401ba8
mov edx, dword [esp + 0x5c]
push edx
call fcn.004025dc
add esp, 4
pop edi
mov eax, ebp
pop ebp
jmp 0x401bb0
xor eax, eax
mov ecx, dword [esp + 0x998]
pop esi
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x990]
pop ebx
xor ecx, esp
call fcn.004025ce
add esp, 0x99c
ret