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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x66c
mov eax, dword [0x101f62b4]
xor eax, esp
mov dword [esp + 0x668], eax
cmp byte [ebp + 0xc], 0
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov dword [esp + 0x18], edx
mov edi, ecx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x20], eax
je 0x1010c4c4
cmp dword [ebx + 0x10], 0
jne 0x1010c4c4
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x668]
xor ecx, esp
call fcn.1015c7a5
mov esp, ebp
pop ebp
ret
push 0
mov esi, 1
mov dword [esp + 0x18], 0
push 0xf
mov dword [esp + 0x18], esi
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
lea ecx, [esp + 0x28]
mov dword [esp + 0x1c], eax
push ecx
push eax
mov dword [esp + 0x30], 0x22c
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x1010c817
nop
cmp byte [ebp + 0xc], 0
jne 0x1010c524
cmp dword [edi + 0x14], 8
mov eax, edi
jb 0x1010c510
mov eax, dword [edi]
push eax
lea eax, [esp + 0x50]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
jne 0x1010c7fc
push 0x208
lea eax, [esp + 0x264]
push 0
push eax
call fcn.10160390
add esp, 0xc
lea eax, [esp + 0x468]
push 0x208
push 0
push eax
call fcn.10160390
add esp, 0xc
call fcn.1010dbd0
push dword [esp + 0x30]
push 0
push 0x100410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [esp + 0xc], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, dword [esp + 0xc]
test eax, eax
je 0x1010c7fc
cmp dword [ebx + 0x10], 0
je 0x1010c608
lea ecx, [esp + 0x25c]
mov dword [esp + 0x25c], 0x104
push ecx
lea ecx, [esp + 0x264]
push ecx
push 0
push eax
call dword [sym.imp.KERNEL32.dll_QueryFullProcessImageNameW]
test eax, eax
je 0x1010c608
cmp dword [ebx + 0x14], 8
mov eax, ebx
jb 0x1010c5ba
mov eax, dword [ebx]
push ecx
push dword [ebx + 0x10]
mov edx, 0x104
lea ecx, [esp + 0x470]
push eax
call fcn.101011f0
add esp, 0xc
lea eax, [esp + 0x468]
push 0x10
push 0
push eax
call dword [sym.imp.SHELL32.dll_PathResolve]
push dword [ebx + 0x10]
lea eax, [esp + 0x46c]
push eax
lea eax, [esp + 0x268]
push eax
call fcn.10177330
add esp, 0xc
test eax, eax
jne 0x1010c7f2
mov edx, dword [esp + 0x20]
push ecx
mov ecx, dword [esp + 0x34]
call fcn.1010bd10
add esp, 4
test al, al
je 0x1010c7f2
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [esp + 0x30]
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 0x1010c779
push 9
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
jne 0x1010c68e
lea ecx, [esp + 0x260]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1010c665
sub ecx, edx
lea eax, [esp + 0x260]
sar ecx, 1
push ecx
mov ecx, dword [esp + 0x1c]
push eax
call fcn.10001e80
mov dword [esp + 0x10], 0xffffffff
push 0x1388
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0xffffffff
je 0x1010c6ac
cmp eax, 0x102
je 0x1010c6ac
inc dword [esp + 0x14]
jmp 0x1010c6df
lea ecx, [esp + 0x260]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1010c6b6
sub ecx, edx
lea eax, [esp + 0x260]
sar ecx, 1
push ecx
mov ecx, dword [esp + 0x1c]
push eax
call fcn.10001e80
mov dword [esp + 0x10], 0xffffffff
cmp dword [0x101fc354], 0
je 0x1010c72d
cmp dword [edi + 0x14], 8
mov esi, edi
jb 0x1010c6f2
mov esi, dword [edi]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
mov esi, dword [0x101fc354]
mov ecx, esi
push str.Killing_Process:_s_Error:__u
push 0x101ace8c
push 0x101ace8c
push str.ProcessUtils
push str.OOBEUtils
push 0x1e
call dword [0x1019a4f8]
call esi
add esp, 0x20
jmp 0x1010c7f2
mov esi, dword [0x101fc358]
test esi, esi
je 0x1010c7f2
cmp dword [edi + 0x14], 8
mov ebx, edi
jb 0x1010c745
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 0x101ace8c
push 0x1e
push dword [0x101fc358]
call dword [0x1019a4f8]
call esi
mov ebx, dword [esp + 0x40]
jmp 0x1010c7ef
mov esi, dword [0x101fc354]
test esi, esi
je 0x1010c7b9
cmp dword [edi + 0x14], 8
mov eax, edi
jb 0x1010c78d
mov eax, dword [edi]
push edx
push eax
push str.Not_able_to_kill_process:__s_Error:__u
push 0x101ace8c
push 0x101ace8c
push str.ProcessUtils
push str.OOBEUtils
push 0x32
mov ecx, esi
call dword [0x1019a4f8]
call esi
add esp, 0x20
jmp 0x1010c7f2
mov eax, dword [0x101fc358]
test eax, eax
je 0x1010c7f2
cmp dword [edi + 0x14], 8
mov ecx, edi
jb 0x1010c7cc
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 0x101ace8c
push 0x32
push eax
call dword [0x1019a4f8]
call esi
add esp, 0x1c
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [esp + 0x28]
push eax
push dword [esp + 0x20]
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x1010c500
mov esi, dword [esp + 0x10]
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x14]
or ecx, 0xffffffff
cmp esi, ecx
pop edi
cmove eax, ecx
mov ecx, dword [esp + 0x670]
pop esi
pop ebx
xor ecx, esp
call fcn.1015c7a5
mov esp, ebp
pop ebp
ret