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

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x13ec
call fcn.0040a6c0
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.00405ef9
test eax, eax
je 0x405fec
mov ecx, dword [ebp - 0x13ec]
call fcn.00405f61
mov dword [ebp - 0xa4], 0x94
lea eax, [ebp - 0xa4]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x94], 1
jne 0x406037
mov ecx, dword [ebp - 0x13ec]
call fcn.00405d6f
test eax, eax
jne 0x40602a
mov ecx, dword [ebp - 0x13ec]
call fcn.00405db5
test eax, eax
je 0x406035
mov ecx, dword [ebp - 0x13ec]
call fcn.00405f61
jmp 0x406060
mov ecx, dword [ebp - 0x13ec]
call fcn.00405f39
test eax, eax
jne 0x406055
mov ecx, dword [ebp - 0x13ec]
call fcn.00405eb9
test eax, eax
je 0x406060
mov ecx, dword [ebp - 0x13ec]
call fcn.00405f61
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 0x4060df
lea eax, [ebp - 0x1d0]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
call sub.KERNEL32.dll_Process32Next
test eax, eax
je 0x4060df
push str.explorer.exe
lea edx, [ebp - 0x1ac]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x4060c9
mov eax, dword [ebp - 0x1c8]
mov dword [ebp - 0xa8], eax
mov ecx, dword [ebp - 0x1c8]
cmp ecx, dword [ebp - 0xc]
jne 0x4060dd
mov edx, dword [ebp - 0x1b8]
mov dword [ebp - 8], edx
jmp 0x406093
mov eax, dword [ebp - 8]
cmp eax, dword [ebp - 0xa8]
je 0x406118
cmp dword [ebp - 0xa8], 0
je 0x406118
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 0x406255
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 0x40617d
jmp 0x406255
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 0x40621c
mov dword [ebp - 0x2e4], 0
jmp 0x4061bb
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 0x40621c
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 0x40621a
lea ecx, [ebp - 0x13e8]
push ecx
lea edx, [ebp - 0x2d4]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x40621a
mov dword [ebp - 0x2d8], 1
jmp 0x40621c
jmp 0x4061ac
mov eax, dword [ebp - 0x2e0]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x2d8], 0
jne 0x406255
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