Function at 0x4013cc
Capabilities:
Link many functions at runtime
Print debug messages
Read file via mapping
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x454
push ebx
push esi
push dword [ebp + 8]
xor esi, esi
push 0x310
push esi
push 4
push esi
push 0xffffffffffffffff
mov byte [ebp - 1], 0
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
push esi
push esi
push esi
mov ebx, eax
push 0xf001f
push ebx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
cmp eax, esi
je 0x4016fa
push edi
mov esi, eax
mov ecx, 0xc4
lea edi, [ebp - 0x454]
push eax
rep movsd dword es:[edi], dword [esi]
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call edi
xor ebx, ebx
cmp dword [ebp - 0x454], ebx
je 0x401465
push dword [ebp - 0x454]
push ebx
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
cmp esi, ebx
je 0x4016f9
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
je 0x40145d
mov byte [ebp - 1], 1
push esi
call edi
jmp 0x4016f9
call fcn.004011d6
test al, al
je 0x40158e
push str.psapi.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x4016f9
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.EnumProcesses
push edi
call esi
push str.EnumProcessModules
push edi
mov ebx, eax
call esi
push str.GetModuleBaseNameA
push edi
mov dword [ebp - 0xc], eax
call esi
test ebx, ebx
mov dword [ebp - 0x18], eax
je 0x401584
cmp dword [ebp - 0xc], 0
je 0x401584
mov esi, 0x1000
push esi
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edi, eax
lea eax, [ebp - 0x10]
push eax
push esi
push edi
call ebx
and dword [ebp - 8], 0
test dword [ebp - 0x10], 0xfffffffc
jbe 0x401578
mov eax, dword [ebp - 8]
push dword [edi + eax*4]
push 0
push 0x411
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov ebx, eax
test ebx, ebx
je 0x401566
lea eax, [ebp - 0x1c]
push eax
push 4
lea eax, [ebp - 0x14]
push eax
push ebx
call dword [ebp - 0xc]
test eax, eax
je 0x40155f
push 0x104
lea eax, [ebp - 0x120]
push eax
push dword [ebp - 0x14]
push ebx
call dword [ebp - 0x18]
test eax, eax
je 0x40155f
mov esi, str.SysUpd
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
push esi
lea eax, [ebp - 0x120]
push eax
call dword [sym.imp.SHLWAPI.dll_StrCmpNIA]
test eax, eax
je 0x401556
add esi, 0xf
cmp esi, 0x404515
jl 0x40152f
jmp 0x40155f
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
inc dword [ebp - 8]
shr eax, 2
cmp dword [ebp - 8], eax
jb 0x4014e8
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x4016f9
push str.Failed_to_find_PSAPI.dll_entry_points_n
jmp 0x4016f3
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x4016f9
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.CreateToolhelp32Snapshot
push edi
call esi
push str.Process32First
push edi
mov dword [ebp - 8], eax
call esi
push str.Process32Next
push edi
mov ebx, eax
call esi
push str.Module32First
push edi
mov dword [ebp - 0x14], eax
call esi
push str.Module32Next
push edi
mov dword [ebp - 0x10], eax
call esi
xor edi, edi
cmp dword [ebp - 8], edi
mov dword [ebp - 0x18], eax
je 0x4016ee
cmp ebx, edi
je 0x4016ee
cmp dword [ebp - 0x14], edi
je 0x4016ee
cmp dword [ebp - 0x10], edi
je 0x4016ee
cmp eax, edi
je 0x4016ee
push edi
push 2
call dword [ebp - 8]
cmp eax, 0xffffffff
mov dword [ebp - 0xc], eax
je 0x4016f9
lea eax, [ebp - 0x144]
push eax
push dword [ebp - 0xc]
mov dword [ebp - 0x144], 0x128
call ebx
jmp 0x4016db
cmp dword [ebp - 0x13c], edi
je 0x4016ce
push dword [ebp - 0x13c]
push 8
call dword [ebp - 8]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4016ce
lea eax, [ebp - 0x368]
push eax
push ebx
mov dword [ebp - 0x368], 0x224
call dword [ebp - 0x10]
jmp 0x4016a3
mov esi, str.SysUpd
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
push esi
lea eax, [ebp - 0x348]
push eax
call dword [sym.imp.SHLWAPI.dll_StrCmpNIA]
test eax, eax
je 0x4016a9
add esi, 0xf
cmp esi, 0x404515
jl 0x401673
lea eax, [ebp - 0x368]
push eax
push ebx
call dword [ebp - 0x18]
test eax, eax
jne 0x40166e
jmp 0x4016c7
push dword [ebp - 0x13c]
push edi
push 0x411
call dword [sym.imp.KERNEL32.dll_OpenProcess]
cmp eax, edi
je 0x4016c7
push edi
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x144]
push eax
push dword [ebp - 0xc]
call dword [ebp - 0x14]
test eax, eax
jne 0x401639
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4016f9
push str.Failed_to_load_find_kernel32.dll_entry_points_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
pop edi
mov al, byte [ebp - 1]
pop esi
pop ebx
leave
ret