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

Disassembly:
push 0xffffffffffffffff
push 0x478f83
mov eax, dword fs:[0]
push eax
sub esp, 0x240
mov eax, dword [0x4a6eb0]
xor eax, esp
mov dword [esp + 0x23c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4a6eb0]
xor eax, esp
push eax
lea eax, [esp + 0x254]
mov dword fs:[0], eax
xor ebx, ebx
push 0x228
lea eax, [esp + 0x2c]
push ebx
push eax
mov dword [esp + 0x268], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x30], ebx
call sub.MSVCR90.dll_memset
add esp, 0xc
push ebx
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov dword [esp + 0x1c], eax
cmp eax, 0xffffffff
jne 0x417151
mov dword [esp + 0x25c], eax
mov eax, dword [esp + 0x264]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41714a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
jmp 0x417309
lea ecx, [esp + 0x24]
push ecx
push eax
mov dword [esp + 0x2c], 0x22c
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x4172cc
mov edi, dword [sym.imp.MSVCR90.dll__wcsupr_s]
mov ebp, dword [sym.imp.MSVCR90.dll_wcsstr]
jmp 0x417180
lea edx, [esp + 0x48]
push edx
lea ecx, [esp + 0x18]
call fcn.00406310
mov edx, dword [esp + 0x14]
mov esi, dword [edx - 0xc]
mov eax, dword [edx - 8]
mov ecx, 1
sub ecx, dword [edx - 4]
sub eax, esi
or eax, ecx
mov byte [esp + 0x25c], 1
jge 0x4171bc
push esi
lea ecx, [esp + 0x18]
call fcn.00401e80
mov edx, dword [esp + 0x14]
lea eax, [esi + 1]
push eax
push edx
call edi
add esp, 8
cmp esi, ebx
jl 0x417388
mov eax, dword [esp + 0x14]
cmp esi, dword [eax - 8]
jg 0x417388
mov dword [eax - 0xc], esi
mov edx, dword [esp + 0x14]
xor ecx, ecx
mov word [edx + esi*2], cx
mov edx, dword [esp + 0x264]
mov esi, dword [edx - 0xc]
mov eax, dword [edx - 8]
mov ecx, 1
sub ecx, dword [edx - 4]
sub eax, esi
or eax, ecx
jge 0x417217
push esi
lea ecx, [esp + 0x268]
call fcn.00401e80
mov edx, dword [esp + 0x264]
lea eax, [esi + 1]
push eax
push edx
call edi
add esp, 8
cmp esi, ebx
jl 0x417388
mov eax, dword [esp + 0x264]
cmp esi, dword [eax - 8]
jg 0x417388
mov dword [eax - 0xc], esi
mov edx, dword [esp + 0x264]
xor ecx, ecx
mov word [edx + esi*2], cx
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x417292
mov ecx, dword [esp + 0x264]
cmp dword [ecx - 0xc], ebx
jl 0x417292
push eax
push ecx
call ebp
add esp, 8
cmp eax, ebx
je 0x41728e
sub eax, dword [esp + 0x264]
sar eax, 1
js 0x41728e
mov eax, dword [esp + 0x2c]
push eax
push ebx
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
cmp esi, ebx
jne 0x417331
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov byte [esp + 0x25c], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4172b5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edx, dword [esp + 0x1c]
lea ecx, [esp + 0x24]
push ecx
push edx
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x417180
mov ecx, dword [esp + 0x1c]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x264]
add eax, 0xfffffff0
mov dword [esp + 0x25c], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x417305
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x254]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x23c]
xor ecx, esp
call fcn.004764f6
add esp, 0x24c
ret
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
je 0x417349
lea eax, [esp + 0x20]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov dword [esp + 0x18], 1
mov byte [esp + 0x25c], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4172cc
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x4172cc
push 0x80070057
call fcn.00401120
int3