Function at 0x10173370
Capabilities:
Enumerate processes
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x66c
mov eax, dword [0x102e91c0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push 0
mov esi, 1
mov dword [ebp - 0x660], edx
push 0xf
mov edi, ecx
mov dword [ebp - 0x66c], ebx
mov dword [ebp - 0x668], eax
mov dword [ebp - 0x658], esi
mov dword [ebp - 0x65c], 0
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
lea ecx, [ebp - 0x650]
mov dword [ebp - 0x664], eax
push ecx
push eax
mov dword [ebp - 0x650], 0x22c
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x10173703
cmp dword [edi + 0x14], 8
mov eax, edi
jb 0x101733ef
mov eax, dword [edi]
push eax
lea eax, [ebp - 0x62c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
jne 0x101736e2
push 0x208
push eax
lea eax, [ebp - 0x210]
push eax
call fcn.101d28f0
add esp, 0xc
lea eax, [ebp - 0x418]
push 0x208
push 0
push eax
call fcn.101d28f0
add esp, 0xc
call fcn.10173af0
push dword [ebp - 0x648]
push 0
push 0x100410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 0x654], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, dword [ebp - 0x654]
test eax, eax
je 0x101736e2
cmp dword [ebx + 0x10], 0
je 0x101734dc
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 0x101734dc
cmp dword [ebx + 0x14], 8
mov eax, ebx
jb 0x10173497
mov eax, dword [ebx]
push ecx
push dword [ebx + 0x10]
lea ecx, [ebp - 0x418]
push eax
call fcn.1016d7d0
add esp, 0xc
lea eax, [ebp - 0x418]
push 0x10
push 0
push eax
call dword [sym.imp.SHELL32.dll_PathResolve]
push dword [ebx + 0x10]
lea eax, [ebp - 0x418]
push eax
lea eax, [ebp - 0x210]
push eax
call fcn.101ebbe1
add esp, 0xc
test eax, eax
jne 0x101736d6
mov edx, dword [ebp - 0x668]
push ecx
mov ecx, dword [ebp - 0x648]
call fcn.10172e10
add esp, 4
test al, al
je 0x101736d6
push dword [ebp - 0x654]
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 dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
test esi, esi
je 0x1017365d
push 9
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
jne 0x1017356c
lea ecx, [ebp - 0x210]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10173540
sub ecx, edx
lea eax, [ebp - 0x210]
sar ecx, 1
push ecx
mov ecx, dword [ebp - 0x660]
push eax
call fcn.10010360
mov dword [ebp - 0x658], 0xffffffff
push 0x1388
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0xffffffff
je 0x1017358c
cmp eax, 0x102
je 0x1017358c
inc dword [ebp - 0x65c]
jmp 0x101735c1
lea ecx, [ebp - 0x210]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10173595
sub ecx, edx
lea eax, [ebp - 0x210]
sar ecx, 1
push ecx
mov ecx, dword [ebp - 0x660]
push eax
call fcn.10010360
mov dword [ebp - 0x658], 0xffffffff
cmp dword [0x102eec44], 0
je 0x1017360f
cmp dword [edi + 0x14], 8
mov esi, edi
jb 0x101735d4
mov esi, dword [edi]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
mov esi, dword [0x102eec44]
mov ecx, esi
push str.Killing_Process:_s_Error:__u
push 0x1025b044
push 0x1025b044
push str.ProcessUtils
push str.OOBEUtils
push 0x1e
call dword [0x1024852c]
call esi
add esp, 0x20
jmp 0x101736d6
mov esi, dword [0x102eec48]
test esi, esi
je 0x101736d6
cmp dword [edi + 0x14], 8
mov ebx, edi
jb 0x10173627
mov ebx, dword [edi]
mov esi, dword [esi]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, dword [esi + 0x34]
mov ecx, esi
push eax
push ebx
push str.Killing_Process:_s_Error:__u
push str.ProcessUtils
push 0x1025b044
push 0x1e
push dword [0x102eec48]
call dword [0x1024852c]
call esi
mov ebx, dword [ebp - 0x66c]
jmp 0x101736d3
mov esi, dword [0x102eec44]
test esi, esi
je 0x1017369d
cmp dword [edi + 0x14], 8
mov eax, edi
jb 0x10173671
mov eax, dword [edi]
push edx
push eax
push str.Not_able_to_kill_process:__s_Error:__u
push 0x1025b044
push 0x1025b044
push str.ProcessUtils
push str.OOBEUtils
push 0x32
mov ecx, esi
call dword [0x1024852c]
call esi
add esp, 0x20
jmp 0x101736d6
mov eax, dword [0x102eec48]
test eax, eax
je 0x101736d6
cmp dword [edi + 0x14], 8
mov ecx, edi
jb 0x101736b0
mov ecx, dword [edi]
mov esi, dword [eax]
push edx
push ecx
push str.Not_able_to_kill_process:__s_Error:__u
mov esi, dword [esi + 0x34]
mov ecx, esi
push str.ProcessUtils
push 0x1025b044
push 0x32
push eax
call dword [0x1024852c]
call esi
add esp, 0x1c
push dword [ebp - 0x654]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x650]
push eax
push dword [ebp - 0x664]
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x101733e5
mov esi, dword [ebp - 0x658]
push dword [ebp - 0x664]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x65c]
or ecx, 0xffffffff
cmp esi, ecx
pop edi
cmove eax, ecx
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.101cff65
mov esp, ebp
pop ebp
ret