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

Disassembly:
push 0xffffffffffffffff
push 0x475993
mov eax, dword fs:[0]
push eax
sub esp, 0x240
mov eax, dword [0x49eef8]
xor eax, esp
mov dword [esp + 0x23c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x49eef8]
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 0x413b31
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 0x413b2a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
jmp 0x413ce9
lea ecx, [esp + 0x24]
push ecx
push eax
mov dword [esp + 0x2c], 0x22c
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x413cac
mov edi, dword [sym.imp.MSVCR90.dll__wcsupr_s]
mov ebp, dword [sym.imp.MSVCR90.dll_wcsstr]
jmp 0x413b60
lea edx, [esp + 0x48]
push edx
lea ecx, [esp + 0x18]
call fcn.004062a0
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 0x413b9c
push esi
lea ecx, [esp + 0x18]
call fcn.00401ea0
mov edx, dword [esp + 0x14]
lea eax, [esi + 1]
push eax
push edx
call edi
add esp, 8
cmp esi, ebx
jl 0x413d68
mov eax, dword [esp + 0x14]
cmp esi, dword [eax - 8]
jg 0x413d68
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 0x413bf7
push esi
lea ecx, [esp + 0x268]
call fcn.00401ea0
mov edx, dword [esp + 0x264]
lea eax, [esi + 1]
push eax
push edx
call edi
add esp, 8
cmp esi, ebx
jl 0x413d68
mov eax, dword [esp + 0x264]
cmp esi, dword [eax - 8]
jg 0x413d68
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 0x413c72
mov ecx, dword [esp + 0x264]
cmp dword [ecx - 0xc], ebx
jl 0x413c72
push eax
push ecx
call ebp
add esp, 8
cmp eax, ebx
je 0x413c6e
sub eax, dword [esp + 0x264]
sar eax, 1
js 0x413c6e
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 0x413d11
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 0x413c95
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 0x413b60
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 0x413ce5
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.00472076
add esp, 0x24c
ret
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
je 0x413d29
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 0x413cac
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x413cac
push 0x80070057
call fcn.00401120
int3