Function at 0x529a10
Capabilities:
Enumerate processes
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x66c
mov eax, dword [0x64a070]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov dword [ebp - 0x658], ecx
cmp dword [eax + 0x10], 0
mov ecx, dword [ebp + 0x10]
push edi
mov dword [ebp - 0x660], edx
mov dword [ebp - 0x65c], eax
mov dword [ebp - 0x66c], ecx
jne 0x529a5d
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005765b2
mov esp, ebp
pop ebp
ret
xor esi, esi
mov ebx, 1
push esi
push 0xf
mov dword [ebp - 0x654], esi
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 0x529daa
nop dword [eax]
push 0x208
lea eax, [ebp - 0x210]
push 0
push eax
call fcn.005903b0
add esp, 0xc
lea eax, [ebp - 0x418]
push 0x208
push 0
push eax
call fcn.005903b0
add esp, 0xc
call fcn.00529de0
push dword [ebp - 0x648]
push 0
push 0x100410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
mov dword [ebp - 0x664], edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
test edi, edi
je 0x529d8f
mov eax, dword [ebp - 0x65c]
cmp dword [eax + 0x10], 0
je 0x529b8c
lea eax, [ebp - 0x41c]
mov dword [ebp - 0x41c], 0x104
push eax
lea eax, [ebp - 0x210]
push eax
push 0
push edi
call dword [sym.imp.KERNEL32.dll_QueryFullProcessImageNameW]
test eax, eax
je 0x529b8c
mov eax, dword [ebp - 0x65c]
push ecx
mov ecx, eax
push dword [eax + 0x10]
call fcn.00408930
push eax
lea ecx, [ebp - 0x418]
call fcn.00518d90
add esp, 0xc
lea eax, [ebp - 0x418]
push 0x10
push 0
push eax
call dword [sym.imp.SHELL32.dll_PathResolve]
mov eax, dword [ebp - 0x65c]
push dword [eax + 0x10]
lea eax, [ebp - 0x418]
push eax
lea eax, [ebp - 0x210]
push eax
call fcn.005a5ff2
add esp, 0xc
test eax, eax
sete al
test al, al
je 0x529d88
mov edx, dword [ebp - 0x66c]
push ecx
mov ecx, dword [ebp - 0x648]
call fcn.00529520
add esp, 4
test al, al
je 0x529d88
push edi
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]
test esi, esi
je 0x529d12
push 9
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
jne 0x529c1b
cmp word [ebp - 0x210], ax
jne 0x529bed
xor ecx, ecx
jmp 0x529c05
lea ecx, [ebp - 0x210]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x529bf6
sub ecx, edx
sar ecx, 1
push ecx
mov ecx, dword [ebp - 0x660]
lea eax, [ebp - 0x210]
push eax
call fcn.00408a10
or ebx, 0xffffffff
push 0x1388
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0xffffffff
je 0x529c42
cmp eax, 0x102
je 0x529c42
mov esi, dword [ebp - 0x654]
inc esi
mov dword [ebp - 0x654], esi
jmp 0x529c8b
cmp word [ebp - 0x210], 0
jne 0x529c50
xor eax, eax
jmp 0x529c6f
lea eax, [ebp - 0x210]
lea edx, [eax + 2]
nop dword [eax]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x529c60
sub eax, edx
sar eax, 1
mov ecx, dword [ebp - 0x660]
push eax
lea eax, [ebp - 0x210]
push eax
call fcn.00408a10
mov esi, dword [ebp - 0x654]
or ebx, 0xffffffff
cmp dword [0x656c44], 0
je 0x529cd0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 0x658]
push eax
call fcn.00408930
push eax
push str.Killing_Process:_s_Error:__u
push 0x5f8398
push 0x5f8398
push str.ProcessUtils
push str.OOBEUtils
push 0x1e
call dword [0x656c44]
add esp, 0x20
jmp 0x529d88
mov esi, dword [0x656c48]
test esi, esi
je 0x529d82
mov esi, dword [esi]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 0x658]
push eax
call fcn.00408930
push eax
push str.Killing_Process:_s_Error:__u
push str.ProcessUtils
push 0x5f8398
push 0x1e
push dword [0x656c48]
call dword [esi + 0x34]
add esp, 0x1c
jmp 0x529d82
mov esi, dword [0x656c44]
test esi, esi
je 0x529d4b
mov ecx, dword [ebp - 0x658]
push eax
call fcn.00408930
push eax
push str.Not_able_to_kill_process:__s_Error:__u
push 0x5f8398
push 0x5f8398
push str.ProcessUtils
push str.OOBEUtils
push 0x32
call esi
add esp, 0x20
jmp 0x529d82
mov edi, dword [0x656c48]
test edi, edi
je 0x529d7c
mov ecx, dword [ebp - 0x658]
mov esi, dword [edi]
push eax
call fcn.00408930
push eax
push str.Not_able_to_kill_process:__s_Error:__u
push str.ProcessUtils
push 0x5f8398
push 0x32
push edi
call dword [esi + 0x34]
add esp, 0x1c
mov edi, dword [ebp - 0x664]
mov esi, dword [ebp - 0x654]
push edi
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 0x529aa0
push dword [ebp - 0x668]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
or eax, 0xffffffff
cmp ebx, eax
pop edi
cmove esi, eax
xor ecx, ebp
mov eax, esi
pop esi
pop ebx
call fcn.005765b2
mov esp, ebp
pop ebp
ret