Function at 0x401410
Capabilities:
Enumerate processes
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x414c82
mov eax, dword fs:[0]
push eax
sub esp, 0x2cc
mov eax, dword [0x41d00c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x2d4], 0
test edi, edi
je 0x4017d6
call fcn.00402250
mov ecx, eax
test ecx, ecx
jne 0x401467
push 0x80004005
call fcn.00402000
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x98], esi
mov dword [ebp - 4], 0
test edi, 0xffff0000
jne 0x4014a1
movzx edi, di
mov ecx, edi
call fcn.00401e60
test eax, eax
je 0x4014c8
push edi
push eax
lea ecx, [ebp - 0x98]
call fcn.00401ac0
jmp 0x4014c2
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4014a6
sub ecx, edx
sar ecx, 1
push ecx
push edi
lea ecx, [ebp - 0x98]
call fcn.00401a10
mov esi, dword [ebp - 0x98]
push 0x401900
push 0x401920
push 0x20
push 4
lea eax, [ebp - 0x90]
mov dword [ebp - 4], 1
push eax
call fcn.00402b84
lea eax, [ebp - 0x2cc]
mov byte [ebp - 4], 2
push eax
push 0x419b00
xor ebx, ebx
push esi
mov dword [ebp - 0x2cc], ebx
call fcn.00406166
mov edi, eax
add esp, 0xc
test edi, edi
je 0x40179e
lea eax, [ebp - 0x90]
mov dword [ebp - 0x2d0], eax
cmp ebx, 0x20
jae 0x401604
call fcn.00402250
mov ecx, eax
test ecx, ecx
je 0x40145d
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x94], eax
mov byte [ebp - 4], 3
test edi, edi
je 0x401591
test edi, 0xffff0000
jne 0x401573
movzx edi, di
mov ecx, edi
call fcn.00401e60
test eax, eax
je 0x4015a0
push edi
push eax
lea ecx, [ebp - 0x94]
call fcn.00401ac0
jmp 0x4015a0
mov ecx, edi
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x401580
sub ecx, edx
sar ecx, 1
jmp 0x401593
xor ecx, ecx
push ecx
push edi
lea ecx, [ebp - 0x94]
call fcn.00401a10
mov edi, dword [ebp - 0x2d0]
lea eax, [ebp - 0x94]
push eax
mov ecx, edi
mov byte [ebp - 4], 4
call fcn.00401950
lea eax, [ebp - 0x2cc]
add edi, 4
push eax
push 0x419b00
push 0
inc ebx
mov dword [ebp - 0x2d0], edi
call fcn.00406166
mov byte [ebp - 4], 2
mov edi, eax
mov edx, dword [ebp - 0x94]
add esp, 0xc
add edx, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4015fc
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
test edi, edi
jne 0x401520
test ebx, ebx
je 0x40179e
push 0
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov edi, eax
mov dword [ebp - 0x94], edi
cmp edi, 0xffffffff
jne 0x40165f
push 0x401900
push 0x20
push 4
lea eax, [ebp - 0x90]
mov byte [ebp - 4], 1
push eax
call fcn.00402bed
mov dword [ebp - 4], edi
add esi, 0xfffffff0
or eax, edi
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x4017d6
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x4017d6
push 0x228
lea eax, [ebp - 0x2c4]
mov dword [ebp - 0x2c8], 0x22c
push 0
push eax
call fcn.00404f90
add esp, 0xc
lea eax, [ebp - 0x2c8]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
xor ecx, ecx
test eax, eax
je 0x401750
xor esi, esi
nop dword [eax]
xor edi, edi
test ebx, ebx
jle 0x401722
nop word [eax + eax]
push dword [ebp + edi*4 - 0x90]
lea eax, [ebp - 0x2a4]
push eax
call fcn.0040622b
add esp, 8
test eax, eax
je 0x4016d1
inc edi
cmp edi, ebx
jl 0x4016b0
jmp 0x401722
push dword [ebp - 0x2c0]
push 0
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
test eax, eax
je 0x4016f8
push 0x136
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
je 0x4016f8
inc esi
jmp 0x401722
mov edi, dword [0x41e468]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push dword [ebp - 0x2c0]
lea eax, [ebp - 0x2a4]
push eax
push str.Failed_to_kill_process:__s___d_____d_n
push 4
push edi
call fcn.00402650
add esp, 0x18
mov edi, dword [ebp - 0x94]
lea eax, [ebp - 0x2c8]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x4016a0
mov dword [ebp - 0x2d0], esi
mov esi, dword [ebp - 0x98]
mov ecx, dword [ebp - 0x2d0]
xor eax, eax
mov byte [ebp - 4], 1
test ecx, ecx
push 0x401900
setg al
push 0x20
mov dword [ebp - 0x2d4], eax
lea eax, [ebp - 0x90]
push 4
push eax
call fcn.00402bed
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x401795
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4017d6
push 0x401900
push 0x20
push 4
lea eax, [ebp - 0x90]
mov byte [ebp - 4], 1
push eax
call fcn.00402bed
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x4017d6
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x2d4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00402b73
mov esp, ebp
pop ebp
ret