Function at 0x65d5c0
Capabilities:
Enumerate processes
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x66c
mov eax, dword [0x857060]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, ecx
push edi
mov dword [ebp - 0x664], edx
mov dword [ebp - 0x654], esi
cmp dword [esi + 0x10], 0
mov dword [ebp - 0x66c], eax
jne 0x65d609
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.006d0965
mov esp, ebp
pop ebp
ret
push 0
mov edi, 1
mov dword [ebp - 0x660], 0
push 0xf
mov dword [ebp - 0x65c], edi
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
lea ecx, [ebp - 0x650]
mov dword [ebp - 0x668], eax
push ecx
push eax
mov dword [ebp - 0x650], 0x22c
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x65d941
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [eax]
nop dword [eax + eax]
push 0x208
lea eax, [ebp - 0x210]
push 0
push eax
call fcn.006e9470
add esp, 0xc
lea eax, [ebp - 0x418]
push 0x208
push 0
push eax
call fcn.006e9470
add esp, 0xc
call fcn.0065d970
push dword [ebp - 0x648]
push 0
push 0x100410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 0x658], eax
call edi
mov eax, dword [ebp - 0x658]
test eax, eax
je 0x65d920
cmp dword [esi + 0x10], 0
je 0x65d734
lea ecx, [ebp - 0x41c]
mov dword [ebp - 0x41c], 0x104
push ecx
lea ecx, [ebp - 0x210]
push ecx
push 0
push eax
call dword [sym.imp.KERNEL32.dll_QueryFullProcessImageNameW]
test eax, eax
je 0x65d734
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x65d6ef
mov eax, dword [esi]
push ecx
push dword [esi + 0x10]
lea ecx, [ebp - 0x418]
push eax
call fcn.0064b4d0
add esp, 0xc
lea eax, [ebp - 0x418]
push 0x10
push 0
push eax
call dword [sym.imp.SHELL32.dll_PathResolve]
push dword [esi + 0x10]
lea eax, [ebp - 0x418]
push eax
lea eax, [ebp - 0x210]
push eax
call fcn.0070541b
add esp, 0xc
test eax, eax
jne 0x65d914
mov edx, dword [ebp - 0x66c]
push ecx
mov ecx, dword [ebp - 0x648]
call fcn.0065d060
add esp, 4
test al, al
je 0x65d914
push dword [ebp - 0x658]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x648]
push 0
push 0x100411
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
call edi
mov edi, eax
test esi, esi
je 0x65d8a0
push 9
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
jne 0x65d7bf
lea ecx, [ebp - 0x210]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x65d794
sub ecx, edx
lea eax, [ebp - 0x210]
sar ecx, 1
push ecx
mov ecx, dword [ebp - 0x664]
push eax
call fcn.00426d40
or edi, 0xffffffff
mov dword [ebp - 0x65c], edi
push 0x1388
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0xffffffff
je 0x65d7df
cmp eax, 0x102
je 0x65d7df
inc dword [ebp - 0x660]
jmp 0x65d81c
lea ecx, [ebp - 0x210]
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x65d7f0
sub ecx, edx
lea eax, [ebp - 0x210]
sar ecx, 1
push ecx
mov ecx, dword [ebp - 0x664]
push eax
call fcn.00426d40
mov dword [ebp - 0x65c], 0xffffffff
cmp dword [0x87d0dc], 0
je 0x65d862
cmp dword [ebx + 0x14], 8
mov esi, ebx
jb 0x65d82f
mov esi, dword [ebx]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
push eax
push esi
push str.Killing_Process:_s_Error:__u
push 0x799430
push 0x799430
push str.ProcessUtils
push str.OOBEUtils
push 0x1e
call dword [0x87d0dc]
add esp, 0x20
jmp 0x65d90e
mov esi, dword [0x87d0e0]
test esi, esi
je 0x65d908
cmp dword [ebx + 0x14], 8
mov edi, ebx
jb 0x65d87a
mov edi, dword [ebx]
mov esi, dword [esi]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push edi
push str.Killing_Process:_s_Error:__u
push str.ProcessUtils
push 0x799430
push 0x1e
push dword [0x87d0e0]
call dword [esi + 0x34]
jmp 0x65d905
mov ecx, dword [0x87d0dc]
test ecx, ecx
je 0x65d8d8
cmp dword [ebx + 0x14], 8
mov eax, ebx
jb 0x65d8b4
mov eax, dword [ebx]
push edi
push eax
push str.Not_able_to_kill_process:__s_Error:__u
push 0x799430
push 0x799430
push str.ProcessUtils
push str.OOBEUtils
push 0x32
call ecx
add esp, 0x20
jmp 0x65d908
mov ecx, dword [0x87d0e0]
test ecx, ecx
je 0x65d908
cmp dword [ebx + 0x14], 8
mov edx, ebx
jb 0x65d8ec
mov edx, dword [ebx]
mov eax, dword [ecx]
push edi
push edx
push str.Not_able_to_kill_process:__s_Error:__u
push str.ProcessUtils
push 0x799430
push 0x32
push ecx
call dword [eax + 0x34]
add esp, 0x1c
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, dword [ebp - 0x654]
push dword [ebp - 0x658]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x650]
push eax
push dword [ebp - 0x668]
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x65d660
mov edi, dword [ebp - 0x65c]
push dword [ebp - 0x668]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x660]
or ecx, 0xffffffff
cmp edi, ecx
pop edi
cmove eax, ecx
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.006d0965
mov esp, ebp
pop ebp
ret