Function at 0x408ad6
Capabilities:
Link many functions at runtime
Terminate process

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x15a8
call fcn.004097b0
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push esi
call sub.MSVCRT.dll_strlen
mov ebx, eax
pop ecx
cmp ebx, 1
jl 0x408ee3
cmp ebx, 0x104
jg 0x408ee3
xor edi, edi
test ebx, ebx
jle 0x408b36
mov dword [ebp + 8], esi
lea eax, [ebp - 0x2e0]
sub dword [ebp + 8], eax
mov eax, dword [ebp + 8]
lea esi, [ebp + edi - 0x2e0]
movsx eax, byte [eax + esi]
push eax
call dword [sym.imp.MSVCRT.dll_toupper]
inc edi
pop ecx
cmp edi, ebx
mov byte [esi], al
jl 0x408b19
and byte [ebp + ebx - 0x2e0], 0
lea eax, [ebp - 0xb4]
push eax
mov dword [ebp - 0xb4], 0x94
call dword [sym.imp.KERNEL32.DLL_GetVersionExA]
test eax, eax
jne 0x408b63
mov eax, 0x25e
jmp 0x408ee8
cmp dword [ebp - 0xa4], 2
mov esi, dword [sym.imp.KERNEL32.DLL_GetProcAddress]
mov edi, dword [sym.imp.KERNEL32.DLL_CloseHandle]
je 0x408b8f
cmp dword [ebp - 0xa4], 1
je 0x408cd7
mov eax, 0x25f
jmp 0x408ee8
push str.PSAPI.DLL
call dword [sym.imp.KERNEL32.DLL_LoadLibraryA]
test eax, eax
mov dword [ebp - 0x18], eax
jne 0x408bab
mov eax, 0x25d
jmp 0x408ee8
push str.EnumProcesses
push eax
call esi
push str.EnumProcessModules
mov ebx, eax
push dword [ebp - 0x18]
call esi
push str.GetModuleBaseNameA
mov dword [ebp - 0xc], eax
push dword [ebp - 0x18]
call esi
test ebx, ebx
mov dword [ebp - 0x10], eax
je 0x408d2a
cmp dword [ebp - 0xc], 0
je 0x408d2a
test eax, eax
je 0x408d2a
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x15a8]
push 0x3e8
push eax
call ebx
test eax, eax
jne 0x408c09
mov esi, 0x2bd
jmp 0x408ed6
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], 0
shr eax, 2
mov dword [ebp - 0x14], eax
je 0x408cca
lea eax, [ebp - 0x15a8]
mov dword [ebp + 8], eax
lea eax, [ebp - 0x3e4]
push str.Unknown
push eax
call sub.MSVCRT.dll_strcpy
mov eax, dword [ebp + 8]
pop ecx
mov ebx, dword [sym.imp.KERNEL32.DLL_OpenProcess]
pop ecx
push dword [eax]
push 0
push 0x410
call ebx
test eax, eax
mov dword [ebp - 4], eax
je 0x408c7d
lea ecx, [ebp - 0x1c]
push ecx
lea ecx, [ebp - 0x20]
push 4
push ecx
push eax
call dword [ebp - 0xc]
test eax, eax
je 0x408c7d
lea eax, [ebp - 0x3e4]
push 0x104
push eax
push dword [ebp - 0x20]
push dword [ebp - 4]
call dword [ebp - 0x10]
push dword [ebp - 4]
call edi
lea eax, [ebp - 0x3e4]
push eax
call dword [sym.imp.MSVCRT.dll__strupr]
lea eax, [ebp - 0x2e0]
push eax
lea eax, [ebp - 0x3e4]
push eax
call dword [sym.imp.MSVCRT.dll_strstr]
add esp, 0xc
test eax, eax
je 0x408cb7
call dword [sym.imp.KERNEL32.DLL_GetCurrentProcessId]
mov ecx, dword [ebp + 8]
cmp dword [ecx], eax
jne 0x408cf5
inc dword [ebp - 8]
add dword [ebp + 8], 4
mov eax, dword [ebp - 8]
cmp eax, dword [ebp - 0x14]
jb 0x408c28
cmp dword [ebp - 0xa4], 1
jne 0x408ed1
push str.Kernel32.DLL
call dword [sym.imp.KERNEL32.DLL_LoadLibraryA]
mov ebx, eax
test ebx, ebx
mov dword [ebp - 0x18], ebx
jne 0x408d34
mov eax, 0x2be
jmp 0x408ee8
mov eax, dword [ebp - 8]
push dword [ebp + eax*4 - 0x15a8]
push 0
push 1
call ebx
mov esi, eax
test esi, esi
je 0x408ec3
push 0
push esi
call dword [sym.imp.KERNEL32.DLL_TerminateProcess]
test eax, eax
push esi
je 0x408eb2
call edi
xor esi, esi
jmp 0x408ed6
mov esi, 0x2bc
jmp 0x408ed6
push str.CreateToolhelp32Snapshot
push ebx
call esi
push str.Process32First
push ebx
mov dword [ebp - 8], eax
call esi
push str.Process32Next
push ebx
mov dword [ebp - 4], eax
call esi
push str.Module32First
push ebx
mov dword [ebp - 0x10], eax
call esi
push str.Module32Next
push ebx
mov dword [ebp - 0xc], eax
call esi
mov dword [ebp - 0x14], eax
xor eax, eax
cmp dword [ebp - 0x10], eax
je 0x408eca
cmp dword [ebp - 4], eax
je 0x408eca
cmp dword [ebp - 0x14], eax
je 0x408eca
cmp dword [ebp - 0xc], eax
je 0x408eca
cmp dword [ebp - 8], eax
je 0x408eca
push eax
push 2
call dword [ebp - 8]
cmp eax, 0xffffffff
mov dword [ebp + 8], eax
jne 0x408db2
mov esi, 0x2c0
jmp 0x408ed6
lea ecx, [ebp - 0x1dc]
mov dword [ebp - 0x1dc], 0x128
push ecx
push eax
call dword [ebp - 4]
test eax, eax
je 0x408e68
mov esi, 0x224
push dword [ebp - 0x1d4]
push 8
call dword [ebp - 8]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x408e6f
lea eax, [ebp - 0x608]
mov dword [ebp - 0x608], esi
push eax
push ebx
call dword [ebp - 0xc]
test eax, eax
mov dword [ebp - 4], eax
je 0x408e46
lea eax, [ebp - 0x2e0]
push eax
lea eax, [ebp - 0x5e8]
push eax
call dword [sym.imp.MSVCRT.dll_strstr]
pop ecx
test eax, eax
pop ecx
je 0x408e2c
call dword [sym.imp.KERNEL32.DLL_GetCurrentProcessId]
cmp dword [ebp - 0x1d4], eax
jne 0x408e79
jmp 0x408e40
lea eax, [ebp - 0x608]
mov dword [ebp - 0x608], esi
push eax
push ebx
call dword [ebp - 0x14]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x408e02
push ebx
call edi
lea eax, [ebp - 0x1dc]
mov dword [ebp - 0x1dc], 0x128
push eax
push dword [ebp + 8]
call dword [ebp - 0x10]
test eax, eax
jne 0x408dd4
push dword [ebp + 8]
call edi
jmp 0x408ed1
push dword [ebp + 8]
call edi
jmp 0x408da8
push dword [ebp - 0x1d4]
push 0
push 1
call dword [sym.imp.KERNEL32.DLL_OpenProcess]
mov esi, eax
test esi, esi
je 0x408ebb
push 0
push esi
call dword [sym.imp.KERNEL32.DLL_TerminateProcess]
test eax, eax
push ebx
je 0x408eaa
call edi
push dword [ebp + 8]
call edi
push esi
jmp 0x408d21
call edi
push dword [ebp + 8]
call edi
push esi
call edi
mov esi, 0x25a
jmp 0x408ed6
push ebx
call edi
push dword [ebp + 8]
call edi
mov esi, 0x25c
jmp 0x408ed6
mov esi, 0x2bf
jmp 0x408ed6
mov esi, 0x25b
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.DLL_FreeLibrary]
mov eax, esi
jmp 0x408ee8
mov eax, 0x278
pop edi
pop esi
pop ebx
leave
ret