Function at 0x529250
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 0x52929d
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0057608a
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 0x5295ea
nop dword [eax]
push 0x208
lea eax, [ebp - 0x210]
push 0
push eax
call fcn.0058fee0
add esp, 0xc
lea eax, [ebp - 0x418]
push 0x208
push 0
push eax
call fcn.0058fee0
add esp, 0xc
call fcn.00529620
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 0x5295cf
mov eax, dword [ebp - 0x65c]
cmp dword [eax + 0x10], 0
je 0x5293cc
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 0x5293cc
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.005187b0
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.005a5aa2
add esp, 0xc
test eax, eax
sete al
test al, al
je 0x5295c8
mov edx, dword [ebp - 0x66c]
push ecx
mov ecx, dword [ebp - 0x648]
call fcn.00528d40
add esp, 4
test al, al
je 0x5295c8
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 0x529552
push 9
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
jne 0x52945b
cmp word [ebp - 0x210], ax
jne 0x52942d
xor ecx, ecx
jmp 0x529445
lea ecx, [ebp - 0x210]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x529436
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 0x529482
cmp eax, 0x102
je 0x529482
mov esi, dword [ebp - 0x654]
inc esi
mov dword [ebp - 0x654], esi
jmp 0x5294cb
cmp word [ebp - 0x210], 0
jne 0x529490
xor eax, eax
jmp 0x5294af
lea eax, [ebp - 0x210]
lea edx, [eax + 2]
nop dword [eax]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x5294a0
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 0x529510
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 0x61c4f4
push 0x1e
call dword [0x656c44]
add esp, 0x20
jmp 0x5295c8
mov esi, dword [0x656c48]
test esi, esi
je 0x5295c2
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 0x5295c2
mov esi, dword [0x656c44]
test esi, esi
je 0x52958b
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 0x61c4f4
push 0x32
call esi
add esp, 0x20
jmp 0x5295c2
mov edi, dword [0x656c48]
test edi, edi
je 0x5295bc
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 0x5292e0
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.0057608a
mov esp, ebp
pop ebp
ret