Function at 0x1010ca00
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 0x1010ca54
cmp dword [ebx + 0x10], 0
jne 0x1010ca54
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x668]
xor ecx, esp
call fcn.1015c875
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 0x1010cda7
nop
cmp byte [ebp + 0xc], 0
jne 0x1010cab4
cmp dword [edi + 0x14], 8
mov eax, edi
jb 0x1010caa0
mov eax, dword [edi]
push eax
lea eax, [esp + 0x50]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
jne 0x1010cd8c
push 0x208
lea eax, [esp + 0x264]
push 0
push eax
call fcn.10160450
add esp, 0xc
lea eax, [esp + 0x468]
push 0x208
push 0
push eax
call fcn.10160450
add esp, 0xc
call fcn.1010e160
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 0x1010cd8c
cmp dword [ebx + 0x10], 0
je 0x1010cb98
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 0x1010cb98
cmp dword [ebx + 0x14], 8
mov eax, ebx
jb 0x1010cb4a
mov eax, dword [ebx]
push ecx
push dword [ebx + 0x10]
mov edx, 0x104
lea ecx, [esp + 0x470]
push eax
call fcn.10101a70
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.101773f0
add esp, 0xc
test eax, eax
jne 0x1010cd82
mov edx, dword [esp + 0x20]
push ecx
mov ecx, dword [esp + 0x34]
call fcn.1010c2a0
add esp, 4
test al, al
je 0x1010cd82
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 0x1010cd09
push 9
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
jne 0x1010cc1e
lea ecx, [esp + 0x260]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1010cbf5
sub ecx, edx
lea eax, [esp + 0x260]
sar ecx, 1
push ecx
mov ecx, dword [esp + 0x1c]
push eax
call fcn.10001d60
mov dword [esp + 0x10], 0xffffffff
push 0x1388
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0xffffffff
je 0x1010cc3c
cmp eax, 0x102
je 0x1010cc3c
inc dword [esp + 0x14]
jmp 0x1010cc6f
lea ecx, [esp + 0x260]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1010cc46
sub ecx, edx
lea eax, [esp + 0x260]
sar ecx, 1
push ecx
mov ecx, dword [esp + 0x1c]
push eax
call fcn.10001d60
mov dword [esp + 0x10], 0xffffffff
cmp dword [0x101fc274], 0
je 0x1010ccbd
cmp dword [edi + 0x14], 8
mov esi, edi
jb 0x1010cc82
mov esi, dword [edi]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
mov esi, dword [0x101fc274]
mov ecx, esi
push str.Killing_Process:_s_Error:__u
push 0x101ace0c
push 0x101ace0c
push str.ProcessUtils
push str.OOBEUtils
push 0x1e
call dword [0x1019a4f8]
call esi
add esp, 0x20
jmp 0x1010cd82
mov esi, dword [0x101fc278]
test esi, esi
je 0x1010cd82
cmp dword [edi + 0x14], 8
mov ebx, edi
jb 0x1010ccd5
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 0x101ace0c
push 0x1e
push dword [0x101fc278]
call dword [0x1019a4f8]
call esi
mov ebx, dword [esp + 0x40]
jmp 0x1010cd7f
mov esi, dword [0x101fc274]
test esi, esi
je 0x1010cd49
cmp dword [edi + 0x14], 8
mov eax, edi
jb 0x1010cd1d
mov eax, dword [edi]
push edx
push eax
push str.Not_able_to_kill_process:__s_Error:__u
push 0x101ace0c
push 0x101ace0c
push str.ProcessUtils
push str.OOBEUtils
push 0x32
mov ecx, esi
call dword [0x1019a4f8]
call esi
add esp, 0x20
jmp 0x1010cd82
mov eax, dword [0x101fc278]
test eax, eax
je 0x1010cd82
cmp dword [edi + 0x14], 8
mov ecx, edi
jb 0x1010cd5c
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 0x101ace0c
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 0x1010ca90
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.1015c875
mov esp, ebp
pop ebp
ret