Function at 0x41f520
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x660
mov eax, dword [0x612120]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
xor edi, edi
mov dword [ebp - 0x64c], eax
mov eax, dword [ebp + 0x10]
mov esi, ecx
push edi
push 0xf
mov dword [ebp - 0x654], edx
mov ebx, 1
mov dword [ebp - 0x648], esi
mov dword [ebp - 0x660], eax
mov dword [ebp - 0x650], edi
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
lea ecx, [ebp - 0x644]
mov dword [ebp - 0x65c], eax
push ecx
push eax
mov dword [ebp - 0x644], 0x22c
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x41f8ac
mov ecx, esi
call fcn.00407130
push eax
lea eax, [ebp - 0x620]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
jne 0x41f88b
push 0x208
push eax
lea eax, [ebp - 0x20c]
push eax
call fcn.00568da0
push 0x208
lea eax, [ebp - 0x414]
push 0
push eax
call fcn.00568da0
add esp, 0x18
call fcn.0041fa60
push dword [ebp - 0x63c]
push 0
push 0x100410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
mov dword [ebp - 0x658], edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
test edi, edi
je 0x41f88b
mov eax, dword [ebp - 0x64c]
cmp dword [eax + 0x10], 0
je 0x41f697
lea eax, [ebp - 0x418]
mov dword [ebp - 0x418], 0x104
push eax
lea eax, [ebp - 0x20c]
push eax
push 0
push edi
call dword [sym.imp.KERNEL32.dll_QueryFullProcessImageNameW]
test eax, eax
je 0x41f697
mov eax, dword [ebp - 0x64c]
push ecx
mov ecx, eax
push dword [eax + 0x10]
call fcn.00407130
push eax
lea ecx, [ebp - 0x414]
call fcn.00420b40
add esp, 0xc
lea eax, [ebp - 0x414]
push 0x10
push 0
push eax
call dword [sym.imp.SHELL32.dll_PathResolve]
mov eax, dword [ebp - 0x64c]
push dword [eax + 0x10]
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x20c]
push eax
call fcn.00572110
add esp, 0xc
test eax, eax
sete al
test al, al
je 0x41f884
mov edx, dword [ebp - 0x660]
push ecx
mov ecx, dword [ebp - 0x63c]
call fcn.0041f370
add esp, 4
test al, al
je 0x41f884
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x63c]
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 0x41f80e
push 9
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
jne 0x41f726
cmp word [ebp - 0x20c], ax
jne 0x41f6f8
xor ecx, ecx
jmp 0x41f710
lea ecx, [ebp - 0x20c]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x41f701
sub ecx, edx
sar ecx, 1
push ecx
mov ecx, dword [ebp - 0x654]
lea eax, [ebp - 0x20c]
push eax
call fcn.004081c0
or ebx, 0xffffffff
push 0x1388
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0xffffffff
je 0x41f746
cmp eax, 0x102
je 0x41f746
inc dword [ebp - 0x650]
jmp 0x41f785
cmp word [ebp - 0x20c], 0
jne 0x41f754
xor eax, eax
jmp 0x41f76f
lea eax, [ebp - 0x20c]
lea edx, [eax + 2]
nop dword [eax]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x41f760
sub eax, edx
sar eax, 1
mov ecx, dword [ebp - 0x654]
push eax
lea eax, [ebp - 0x20c]
push eax
call fcn.004081c0
or ebx, 0xffffffff
cmp dword [0x61e0e8], 0
je 0x41f7cc
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, dword [ebp - 0x648]
mov ecx, esi
push eax
call fcn.00407130
push eax
push str.Killing_Process:_s_Error:__u
push 0x5e83dc
push 0x5e83dc
push str.ProcessUtils
push str.OOBEUtils
push 0x1e
call dword [0x61e0e8]
add esp, 0x20
jmp 0x41f884
mov esi, dword [0x61e0ec]
test esi, esi
je 0x41f87e
mov esi, dword [esi]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 0x648]
push eax
call fcn.00407130
push eax
push str.Killing_Process:_s_Error:__u
push str.ProcessUtils
push 0x5e83dc
push 0x1e
push dword [0x61e0ec]
call dword [esi + 0x34]
add esp, 0x1c
jmp 0x41f87e
mov esi, dword [0x61e0e8]
test esi, esi
je 0x41f847
mov ecx, dword [ebp - 0x648]
push eax
call fcn.00407130
push eax
push str.Not_able_to_kill_process:__s_Error:__u
push 0x5e83dc
push 0x5e83dc
push str.ProcessUtils
push str.OOBEUtils
push 0x32
call esi
add esp, 0x20
jmp 0x41f87e
mov edi, dword [0x61e0ec]
test edi, edi
je 0x41f878
mov ecx, dword [ebp - 0x648]
mov esi, dword [edi]
push eax
call fcn.00407130
push eax
push str.Not_able_to_kill_process:__s_Error:__u
push str.ProcessUtils
push 0x5e83dc
push 0x32
push edi
call dword [esi + 0x34]
add esp, 0x1c
mov edi, dword [ebp - 0x658]
mov esi, dword [ebp - 0x648]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x644]
push eax
push dword [ebp - 0x65c]
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x41f592
mov edi, dword [ebp - 0x650]
push dword [ebp - 0x65c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
or eax, 0xffffffff
cmp ebx, eax
cmove edi, eax
xor ecx, ebp
mov eax, edi
pop edi
pop esi
pop ebx
call fcn.00564ee1
mov esp, ebp
pop ebp
ret