Function at 0x408b64
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xb94
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push 0xfa0
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
push ebx
mov dword [ebp + 8], eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov edi, eax
lea ecx, [edi - 1]
cmp ecx, 0x103
ja 0x408ec0
xor esi, esi
test edi, edi
jle 0x408bb9
movzx eax, word [ebx + esi*2]
push eax
call dword [sym.imp.USER32.dll_CharUpperW]
mov word [ebp + esi*2 - 0x564], ax
inc esi
cmp esi, edi
jl 0x408ba1
xor eax, eax
mov dword [ebp - 0x130], 0x114
mov word [ebp + edi*2 - 0x564], ax
lea eax, [ebp - 0x130]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x408be8
mov eax, 0x25e
jmp 0x408ec5
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
xor eax, eax
inc eax
cmp dword [ebp - 0x120], 2
mov dword [ebp - 0x14], eax
je 0x408cd1
cmp dword [ebp - 0x120], eax
je 0x408c13
mov eax, 0x25f
jmp 0x408ec5
mov esi, dword [ebp + 8]
mov ebx, dword [ebp + 8]
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
cmp dword [ebp - 0x120], 1
jne 0x408e84
push str.Kernel32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
test esi, esi
je 0x408eb9
push str.CreateToolhelp32Snapshot
push esi
call edi
push str.Process32FirstW
push esi
mov dword [ebp + 8], eax
call edi
push str.Process32NextW
push esi
mov ebx, eax
call edi
push str.Module32FirstW
push esi
mov dword [ebp - 4], eax
call edi
push str.Module32NextW
push esi
mov dword [ebp - 8], eax
call edi
cmp dword [ebp - 4], 0
mov dword [ebp - 0xc], eax
je 0x408eb2
test ebx, ebx
je 0x408eb2
test eax, eax
je 0x408eb2
cmp dword [ebp - 8], 0
je 0x408eb2
mov eax, dword [ebp + 8]
test eax, eax
je 0x408eb2
push 0
push 2
call eax
mov edi, eax
cmp edi, 0xffffffff
je 0x408eb2
lea eax, [ebp - 0x35c]
mov dword [ebp - 0x35c], 0x22c
push eax
push edi
call ebx
jmp 0x408e79
push str.PSAPI.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
test esi, esi
je 0x408eb9
push str.EnumProcesses
push esi
call edi
push str.EnumProcessModules
mov ebx, eax
push esi
mov dword [ebp - 4], ebx
call edi
push str.GetModuleBaseNameW
push esi
mov dword [ebp - 8], eax
call edi
mov dword [ebp - 0x1c], eax
test ebx, ebx
je 0x408eb2
cmp dword [ebp - 8], 0
je 0x408eb2
test eax, eax
je 0x408eb2
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x10]
push eax
push 0x3e8
push ebx
call dword [ebp - 4]
test eax, eax
jne 0x408d41
mov edi, 0x25d
jmp 0x408dea
mov eax, dword [ebp - 0x10]
and dword [ebp - 4], 0
shr eax, 2
mov dword [ebp - 0xc], eax
test eax, eax
je 0x408c19
push str.Unknown
lea eax, [ebp - 0x76c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov eax, dword [ebp - 4]
push dword [ebx + eax*4]
push 0
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp + 8], eax
test eax, eax
je 0x408dac
lea ecx, [ebp - 0x10]
push ecx
push 4
lea ecx, [ebp - 0x18]
push ecx
push eax
call dword [ebp - 8]
test eax, eax
je 0x408da9
push 0x104
lea eax, [ebp - 0x76c]
push eax
push dword [ebp - 0x18]
push dword [ebp + 8]
call dword [ebp - 0x1c]
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x76c]
push eax
call dword [sym.imp.USER32.dll_CharUpperW]
lea ecx, [ebp - 0x564]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x408de7
mov eax, dword [ebp - 4]
inc eax
mov dword [ebp - 4], eax
cmp eax, dword [ebp - 0xc]
jb 0x408d56
jmp 0x408c19
xor edi, edi
inc edi
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, edi
jmp 0x408ec5
push dword [ebp - 0x354]
push 8
call dword [ebp + 8]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x408e98
lea eax, [ebp - 0xb94]
mov dword [ebp - 0xb94], 0x428
push eax
push ebx
call dword [ebp - 8]
jmp 0x408e59
lea eax, [ebp - 0x564]
push eax
lea eax, [ebp - 0xb74]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x408e8f
lea eax, [ebp - 0xb94]
mov dword [ebp - 0xb94], 0x428
push eax
push ebx
call dword [ebp - 0xc]
test eax, eax
jne 0x408e2c
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x35c]
mov dword [ebp - 0x35c], 0x22c
push eax
push edi
call dword [ebp - 4]
test eax, eax
jne 0x408dff
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor eax, eax
jmp 0x408ec5
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x408e9f
mov dword [ebp - 0x14], 0x25d
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [ebp - 0x14]
jmp 0x408ec5
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, 0x25d
jmp 0x408ec5
mov eax, 0x278
pop edi
pop esi
pop ebx
leave
ret 4