Function at 0x10017f19
Capabilities:
Encode data using xor

Disassembly:
push 0xfc
mov eax, 0x100732cf
call fcn.1003bd50
mov esi, ecx
movzx eax, word [ebp + 0xc]
movzx ebx, word [ebp + 0x10]
movzx edi, word [ebp + 8]
and dword [ebp - 0x44], 0
mov dword [ebp - 0x5c], eax
movzx eax, word [ebp + 0x14]
mov dword [ebp - 0x60], ebx
mov dword [ebp - 0x94], eax
mov dword [ebp - 4], 1
test di, di
je 0x1001828e
test bx, bx
je 0x1001828e
cmp dword [esi + 0x2c], 0
ja 0x1001828e
cmp dword [ebp + 0x2c], 0x10
lea eax, [ebp + 0x18]
lea ecx, [ebp - 0x28]
cmovae eax, dword [ebp + 0x18]
push eax
call fcn.1000416d
mov byte [ebp - 4], 2
lea edx, [ebp - 0x28]
mov ecx, dword [esi + 4]
call fcn.1000dbc1
push 0
push 1
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 1
call fcn.10004022
cmp dword [ebp + 0x44], 0x10
lea eax, [ebp + 0x30]
lea ecx, [ebp - 0x28]
cmovae eax, dword [ebp + 0x30]
push eax
call fcn.1000416d
mov byte [ebp - 4], 3
lea edx, [ebp - 0x28]
mov ecx, dword [esi + 8]
call fcn.1000dbc1
push 0
push 1
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 1
call fcn.10004022
mov ecx, dword [esi + 0xc]
xor edx, edx
call fcn.1000dbe4
mov ecx, dword [esi + 0x10]
xor edx, edx
call fcn.1000dbe4
or eax, 0xffffffff
cmp di, ax
je 0x10018284
cmp bx, ax
je 0x10018284
xor ebx, ebx
mov dword [ebp - 0x50], 0x2733394a
mov cl, 0x4a
mov dword [ebp - 0x4c], 0x16262528
mov byte [ebp - 0x48], bl
mov edx, ebx
xor cl, byte [ebp + edx - 0x4f]
mov byte [ebp + edx - 0x4f], cl
inc edx
cmp edx, 7
jae 0x10018026
mov cl, byte [ebp - 0x50]
jmp 0x10018013
lea eax, [ebp - 0x4f]
mov byte [ebp - 0x48], bl
push eax
mov edx, 0x10095e30
lea ecx, [ebp - 0x28]
call fcn.1000cdde
pop ecx
mov eax, dword [ebp - 0x5c]
mov edx, ebx
mov byte [ebp - 4], 4
test ax, ax
jne 0x10018088
movaps xmm0, xmmword [0x10089740]
movups xmmword [ebp - 0x78], xmm0
mov dword [ebp - 0x68], 0x1c56130a
mov word [ebp - 0x64], 0xc00
mov byte [ebp - 0x62], bl
mov cl, byte [ebp - 0x78]
xor byte [ebp + edx - 0x77], cl
inc edx
cmp edx, 0x15
jb 0x10018064
lea eax, [ebp - 0x77]
mov byte [ebp - 0x62], bl
push eax
lea ecx, [ebp - 0xd8]
call fcn.1000416d
xor ebx, ebx
inc ebx
jmp 0x100180ef
cmp dword [ebp - 0x14], 0x10
movaps xmm0, xmmword [0x10089490]
cwde
push eax
movsx eax, di
push eax
lea eax, [ebp - 0x28]
mov word [ebp - 0x98], 5
cmovae eax, dword [ebp - 0x28]
push 1
push eax
movups xmmword [ebp - 0xa8], xmm0
mov cl, byte [ebp - 0xa8]
xor byte [ebp + edx - 0xa7], cl
inc edx
cmp edx, 0x10
jb 0x100180b3
sub esp, 0x18
mov byte [ebp - 0x97], bl
lea eax, [ebp - 0xa7]
mov ecx, esp
push eax
call fcn.1000416d
lea eax, [ebp - 0xc0]
push eax
call fcn.10003c37
add esp, 0x2c
push 2
pop ebx
and dword [ebp - 0x30], 0
lea ecx, [ebp - 0x40]
push eax
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x2c], 0xf
mov byte [ebp - 0x40], 0
call fcn.10003bbc
mov dword [ebp - 4], 6
test bl, 2
je 0x1001812b
push 0
and ebx, 0xfffffffd
lea ecx, [ebp - 0xc0]
push 1
mov dword [ebp - 0x44], ebx
call fcn.10004022
mov byte [ebp - 4], 7
test bl, 1
je 0x10018149
push 0
and ebx, 0xfffffffe
lea ecx, [ebp - 0xd8]
push 1
mov dword [ebp - 0x44], ebx
call fcn.10004022
mov ecx, dword [esi + 0x14]
lea edx, [ebp - 0x40]
call fcn.1000d83c
mov ecx, dword [esi + 0x14]
sub esp, 0x1c
call fcn.1000d882
mov eax, dword [ebp - 0x94]
add esp, 0x1c
test ax, ax
jne 0x100181bb
movaps xmm0, xmmword [0x10089470]
xor edx, edx
movups xmmword [ebp - 0x90], xmm0
mov dword [ebp - 0x80], 0xd47021b
mov word [ebp - 0x7c], 0x1d11
mov byte [ebp - 0x7a], al
mov cl, byte [ebp - 0x90]
xor byte [ebp + edx - 0x8f], cl
inc edx
cmp edx, 0x15
jb 0x1001818d
lea eax, [ebp - 0x8f]
mov byte [ebp - 0x7a], 0
push eax
lea ecx, [ebp - 0x108]
call fcn.1000416d
or ebx, 4
jmp 0x10018214
cmp dword [ebp - 0x14], 0x10
movaps xmm0, xmmword [str._a_ttX_cX_cX_c_c]
cwde
push eax
mov eax, dword [ebp - 0x60]
cwde
push eax
lea eax, [ebp - 0x28]
mov word [ebp - 0x48], 0x73
cmovae eax, dword [ebp - 0x28]
xor edx, edx
push 1
push eax
movups xmmword [ebp - 0x58], xmm0
mov cl, byte [ebp - 0x58]
xor byte [ebp + edx - 0x57], cl
inc edx
cmp edx, 0x10
jb 0x100181e3
sub esp, 0x18
mov byte [ebp - 0x47], 0
lea eax, [ebp - 0x57]
mov ecx, esp
push eax
call fcn.1000416d
lea eax, [ebp - 0xf0]
push eax
call fcn.10003c37
add esp, 0x2c
or ebx, 8
push eax
lea ecx, [ebp - 0x40]
call fcn.10005f8b
test bl, 8
je 0x10018234
push 0
push 1
lea ecx, [ebp - 0xf0]
and ebx, 0xfffffff7
call fcn.10004022
mov dword [ebp - 4], 7
test bl, 4
je 0x1001824f
push 0
push 1
lea ecx, [ebp - 0x108]
call fcn.10004022
mov ecx, dword [esi + 0x18]
lea edx, [ebp - 0x40]
call fcn.1000d83c
mov ecx, dword [esi + 0x18]
sub esp, 0x1c
call fcn.1000d882
add esp, 0x1c
lea ecx, [ebp - 0x40]
push 0
push 1
call fcn.10004022
push 0
push 1
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 1
call fcn.10004022
mov ecx, dword [esi + 0x34]
mov dl, 1
call fcn.1000d361
push 0
push 1
lea ecx, [ebp + 0x18]
call fcn.10004022
push 0
push 1
lea ecx, [ebp + 0x30]
call fcn.10004022
call fcn.1003bcfa
ret 0x40