Function at 0x10178860
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x320
mov eax, dword [0x10411ce0]
xor eax, esp
mov dword [esp + 0x31c], eax
mov eax, dword [esp + 0x330]
mov ecx, dword [esp + 0x328]
mov edx, dword [esp + 0x334]
mov dword [esp], eax
mov eax, dword [esp + 0x324]
mov dword [esp + 0x10], ecx
mov dword [esp + 0xc], 0
mov byte [esp + 0x1b], 0
cmp byte [eax + 0xd0a8], 0
jbe 0x10178bbb
mov eax, dword [esp + 0x338]
movss xmm2, dword [0x10346fd0]
movzx eax, al
mov dword [esp + 8], eax
push esi
movzx eax, dl
push edi
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x14]
mov edi, 0x1f
mov esi, edi
jmp 0x101788e4
mov ecx, dword [esp + 0x18]
movsx edx, word [ecx + 4]
dec edi
mov ecx, dword [ecx]
add edx, esi
mov dword [esp + 0x1c], edx
mov edx, dword [esp + 0x334]
mov eax, dword [edx + eax*4]
mov edx, dword [esp + 0x1c]
mov dword [ecx + edx*4 + 0x500], eax
mov ecx, dword [esp + 0x18]
movsx edx, word [ecx + 4]
mov ecx, dword [ecx]
add edx, esi
dec esi
mov eax, dword [ecx + edx*4 + 0x500]
mov dword [ecx + edx*4], eax
mov eax, dword [esp + 0x14]
inc eax
mov dword [esp + 0x14], eax
test di, di
jns 0x101788e0
mov esi, dword [esp + 0x18]
lea edi, [esp + 0x24]
mov ecx, 0x103470e0
mov dword [esp + 0x1c], 0x40
movzx eax, word [esi + 4]
mov edx, dword [esi]
cwde
lea eax, [eax*4 + 0x200]
mov edi, edi
movss xmm0, dword [edx + eax - 0x200]
mulss xmm0, dword [ecx]
movss xmm1, dword [edx + eax - 0x100]
mulss xmm1, dword [ecx + 0x200]
addss xmm1, xmm0
movss xmm0, dword [edx + eax]
mulss xmm0, dword [ecx + 0x400]
addss xmm1, xmm0
movss xmm0, dword [edx + eax + 0x100]
mulss xmm0, dword [ecx + 0x600]
addss xmm1, xmm0
movss xmm0, dword [edx + eax + 0x200]
mulss xmm0, dword [ecx + 0x800]
add eax, 4
add ecx, 8
addss xmm1, xmm0
movss dword [edi], xmm1
add edi, 4
dec dword [esp + 0x1c]
jne 0x10178950
movzx eax, word [esi + 4]
add eax, 0xffffffe0
mov word [esi + 4], ax
test ax, ax
jns 0x101789d9
mov eax, 0x120
mov word [esi + 4], ax
movss xmm0, dword [esp + 0x28]
xor ecx, ecx
movss dword [esp + 0x2a0], xmm0
xor edx, edx
movss xmm0, dword [esp + 0x24]
movss dword [esp + 0x124], xmm0
lea esi, [ecx + 0x1e]
mov edi, edi
movss xmm0, dword [esp + ecx + 0x120]
lea edx, [edx + 4]
mov eax, dword [esp + edx + 0x28]
xorps xmm0, xmm2
mov dword [esp + ecx + 0x29c], eax
lea ecx, [ecx - 4]
movss dword [esp + edx + 0x124], xmm0
dec esi
jne 0x10178a00
movss xmm0, dword [esp + 0xa4]
lea eax, [esp + 0x2a4]
push eax
lea eax, [esp + 0x1a8]
movss dword [esp + 0x228], xmm0
movss xmm0, dword [esp + 0xac]
push eax
lea eax, [esp + 0x22c]
xorps xmm0, xmm2
push eax
lea eax, [esp + 0x130]
movss dword [esp + 0x1ac], xmm0
push eax
call fcn.101828e0
movzx eax, byte [esp + 0x33]
add esp, 0x10
add eax, dword [esp + 0xc]
xor edx, edx
mov ecx, dword [esp + 8]
shl eax, 9
add ecx, 4
add ecx, eax
mov dword [esp + 0x1c], 0x10
xor edi, edi
lea esp, [esp]
lea eax, [edx + 1]
cmp eax, dword [esp + 0x10]
jge 0x10178b1e
movss xmm0, dword [esp + esi + 0x1a4]
cvtps2pd xmm0, xmm0
mulsd xmm0, qword [0x10336168]
cvtpd2ps xmm0, xmm0
movss dword [ecx - 4], xmm0
movss xmm0, dword [esp + esi + 0x2a4]
cvtps2pd xmm0, xmm0
mulsd xmm0, qword [0x10336168]
cvtpd2ps xmm0, xmm0
movss dword [ecx], xmm0
movss xmm0, dword [esp + edi + 0x320]
cvtps2pd xmm0, xmm0
mulsd xmm0, qword [0x10336a70]
cvtpd2ps xmm0, xmm0
movss dword [ecx + 4], xmm0
movss xmm0, dword [esp + edi + 0x220]
cvtps2pd xmm0, xmm0
mulsd xmm0, qword [0x10336a70]
cvtpd2ps xmm0, xmm0
movss dword [ecx + 8], xmm0
jmp 0x10178b7a
cmp edx, dword [esp + 0x10]
jge 0x10178b5f
movss xmm0, dword [esp + esi + 0x1a4]
cvtps2pd xmm0, xmm0
mulsd xmm0, qword [0x10336168]
cvtpd2ps xmm0, xmm0
movss dword [ecx - 4], xmm0
movss xmm0, dword [esp + esi + 0x2a4]
cvtps2pd xmm0, xmm0
mulsd xmm0, qword [0x10336168]
cvtpd2ps xmm0, xmm0
movss dword [ecx], xmm0
jmp 0x10178b6c
mov dword [ecx - 4], 0
mov dword [ecx], 0
mov dword [ecx + 4], 0
mov dword [ecx + 8], 0
add ecx, 0x10
add edx, 2
sub edi, 4
add esi, 4
dec dword [esp + 0x1c]
jne 0x10178aa0
mov ecx, dword [esp + 0x32c]
mov al, byte [esp + 0x23]
movss xmm2, dword [0x10346fd0]
inc al
mov byte [esp + 0x23], al
cmp al, byte [ecx + 0xd0a8]
mov ecx, dword [esp + 0x18]
jb 0x101788d0
pop edi
pop esi
mov ecx, dword [esp + 0x31c]
xor ecx, esp
call fcn.102d6d23
add esp, 0x320
ret