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

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x15a8
call fcn.00409bf0
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 0x4093e3
cmp ebx, 0x104
jg 0x4093e3
xor edi, edi
test ebx, ebx
jle 0x409036
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 0x409019
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 0x409063
mov eax, 0x25e
jmp 0x4093e8
cmp dword [ebp - 0xa4], 2
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
je 0x40908f
cmp dword [ebp - 0xa4], 1
je 0x4091d7
mov eax, 0x25f
jmp 0x4093e8
push str.PSAPI.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
test eax, eax
mov dword [ebp - 0x18], eax
jne 0x4090ab
mov eax, 0x25d
jmp 0x4093e8
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 0x40922a
cmp dword [ebp - 0xc], 0
je 0x40922a
test eax, eax
je 0x40922a
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x15a8]
push 0x3e8
push eax
call ebx
test eax, eax
jne 0x409109
mov esi, 0x2bd
jmp 0x4093d6
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], 0
shr eax, 2
mov dword [ebp - 0x14], eax
je 0x4091ca
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 0x40917d
lea ecx, [ebp - 0x1c]
push ecx
lea ecx, [ebp - 0x20]
push 4
push ecx
push eax
call dword [ebp - 0xc]
test eax, eax
je 0x40917d
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 0x4091b7
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ecx, dword [ebp + 8]
cmp dword [ecx], eax
jne 0x4091f5
inc dword [ebp - 8]
add dword [ebp + 8], 4
mov eax, dword [ebp - 8]
cmp eax, dword [ebp - 0x14]
jb 0x409128
cmp dword [ebp - 0xa4], 1
jne 0x4093d1
push str.Kernel32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ebx, eax
test ebx, ebx
mov dword [ebp - 0x18], ebx
jne 0x409234
mov eax, 0x2be
jmp 0x4093e8
mov eax, dword [ebp - 8]
push dword [ebp + eax*4 - 0x15a8]
push 0
push 1
call ebx
mov esi, eax
test esi, esi
je 0x4093c3
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
push esi
je 0x4093b2
call edi
xor esi, esi
jmp 0x4093d6
mov esi, 0x2bc
jmp 0x4093d6
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 0x4093ca
cmp dword [ebp - 4], eax
je 0x4093ca
cmp dword [ebp - 0x14], eax
je 0x4093ca
cmp dword [ebp - 0xc], eax
je 0x4093ca
cmp dword [ebp - 8], eax
je 0x4093ca
push eax
push 2
call dword [ebp - 8]
cmp eax, 0xffffffff
mov dword [ebp + 8], eax
jne 0x4092b2
mov esi, 0x2c0
jmp 0x4093d6
lea ecx, [ebp - 0x1dc]
mov dword [ebp - 0x1dc], 0x128
push ecx
push eax
call dword [ebp - 4]
test eax, eax
je 0x409368
mov esi, 0x224
push dword [ebp - 0x1d4]
push 8
call dword [ebp - 8]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x40936f
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 0x409346
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 0x40932c
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [ebp - 0x1d4], eax
jne 0x409379
jmp 0x409340
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 0x409302
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 0x4092d4
push dword [ebp + 8]
call edi
jmp 0x4093d1
push dword [ebp + 8]
call edi
jmp 0x4092a8
push dword [ebp - 0x1d4]
push 0
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x4093bb
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
push ebx
je 0x4093aa
call edi
push dword [ebp + 8]
call edi
push esi
jmp 0x409221
call edi
push dword [ebp + 8]
call edi
push esi
call edi
mov esi, 0x25a
jmp 0x4093d6
push ebx
call edi
push dword [ebp + 8]
call edi
mov esi, 0x25c
jmp 0x4093d6
mov esi, 0x2bf
jmp 0x4093d6
mov esi, 0x25b
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, esi
jmp 0x4093e8
mov eax, 0x278
pop edi
pop esi
pop ebx
leave
ret