Function at 0x404d20
Capabilities:
Enumerate processes
Get common file path
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43b62e
mov eax, dword fs:[0]
push eax
sub esp, 0x658
mov eax, dword [0x464024]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 0
call fcn.004024e0
mov ecx, eax
test ecx, ecx
je 0x404f94
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x660], esi
push ecx
mov byte [ebp - 4], 1
mov edi, esp
mov dword [ebp - 0x658], edi
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
mov dword [ebp - 0x65c], esp
call fcn.004164d0
add eax, 0x10
mov dword [edi], eax
push ecx
mov byte [ebp - 4], 2
mov edi, esp
mov dword [ebp - 0x658], edi
call fcn.004024e0
mov ecx, eax
test ecx, ecx
je 0x404f9e
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [edi], eax
push str._KillProcesses_
mov ecx, edi
mov byte [ebp - 4], 3
call fcn.004153b0
test al, al
jne 0x404ddd
push 0xf
push str._KillProcesses_
mov ecx, edi
call fcn.00416540
mov byte [ebp - 4], 2
mov byte [ebp - 4], 1
call fcn.004034f0
mov eax, dword [0x46c77c]
xor edx, edx
mov ecx, dword [0x46c778]
add esp, 8
sub eax, ecx
mov dword [ebp - 0x65c], edx
sar eax, 3
test eax, eax
je 0x404f3b
nop dword [eax]
mov ebx, dword [ecx + edx*8]
lea edi, [ecx + edx*8]
cmp dword [ebx - 4], 1
jle 0x404e28
push dword [ebx - 0xc]
mov ecx, edi
call fcn.004154d0
mov ebx, dword [edi]
push 0
push 0xf
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
lea ecx, [ebp - 0x654]
mov dword [ebp - 0x658], eax
push ecx
push eax
mov dword [ebp - 0x654], 0x22c
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x404f04
mov esi, dword [ebp - 0x658]
nop
lea eax, [ebp - 0x630]
push eax
push 0x45d14c
call fcn.004020b0
add esp, 8
lea eax, [ebp - 0x630]
push ebx
push eax
call dword [sym.imp.SHLWAPI.dll_StrStrIW]
test eax, eax
je 0x404eee
push dword [ebp - 0x64c]
push 0
push 0x411
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
je 0x404eee
lea eax, [ebp - 0x21c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push 0x104
lea eax, [ebp - 0x424]
push eax
push 0
push edi
call dword [sym.imp.KERNEL32.dll_K32GetModuleFileNameExW]
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x424]
push eax
call dword [sym.imp.SHLWAPI.dll_StrStrIW]
test eax, eax
jne 0x404ee7
push 9
push edi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x654]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x404e60
push dword [ebp - 0x658]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [0x46c77c]
mov edx, dword [ebp - 0x65c]
mov ecx, dword [0x46c778]
inc edx
sub eax, ecx
mov dword [ebp - 0x65c], edx
sar eax, 3
cmp edx, eax
jb 0x404e10
mov esi, dword [ebp - 0x660]
lea edx, [esi - 0x10]
mov byte [ebp - 4], 0
or esi, 0xffffffff
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x404f59
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp + 8]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], esi
dec esi
test esi, esi
jg 0x404f78
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0041ae8f
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00402240
push 0x80004005
call fcn.00402240
int3