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

Disassembly:
push 0xffffffffffffffff
push 0x4787c3
mov eax, dword fs:[0]
push eax
sub esp, 0x240
mov eax, dword [0x4a5eb0]
xor eax, esp
mov dword [esp + 0x23c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4a5eb0]
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 0x4168e1
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 0x4168da
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
jmp 0x416a99
lea ecx, [esp + 0x24]
push ecx
push eax
mov dword [esp + 0x2c], 0x22c
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x416a5c
mov edi, dword [sym.imp.MSVCR90.dll__wcsupr_s]
mov ebp, dword [sym.imp.MSVCR90.dll_wcsstr]
jmp 0x416910
lea edx, [esp + 0x48]
push edx
lea ecx, [esp + 0x18]
call fcn.00406300
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 0x41694c
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 0x416b18
mov eax, dword [esp + 0x14]
cmp esi, dword [eax - 8]
jg 0x416b18
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 0x4169a7
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 0x416b18
mov eax, dword [esp + 0x264]
cmp esi, dword [eax - 8]
jg 0x416b18
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 0x416a22
mov ecx, dword [esp + 0x264]
cmp dword [ecx - 0xc], ebx
jl 0x416a22
push eax
push ecx
call ebp
add esp, 8
cmp eax, ebx
je 0x416a1e
sub eax, dword [esp + 0x264]
sar eax, 1
js 0x416a1e
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 0x416ac1
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 0x416a45
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 0x416910
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 0x416a95
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.00475d76
add esp, 0x24c
ret
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
je 0x416ad9
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 0x416a5c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x416a5c
push 0x80070057
call fcn.00401100
int3