Function at 0x100017d0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x68
mov eax, dword [0x100b9b90]
xor eax, esp
mov dword [esp + 0x64], eax
movsd xmm1, qword [0x100bbf98]
mov ecx, 0x485af
movsd xmm2, qword [0x100afe00]
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [esp + 0x4c], esi
movsd qword [esp + 8], xmm1
mov eax, dword [esi]
mov edi, dword [esi + 4]
sub edi, eax
mov dword [esp + 0x3c], eax
ucomisd xmm1, xmm2
lahf
test ah, 0x44
jp 0x1000185f
movsd xmm3, qword [0x100afdb8]
movsd xmm4, qword [0x100afd78]
nop dword [eax]
cmp ecx, 0x485b0
jge 0x10001859
movaps xmm0, xmm3
inc ecx
divsd xmm0, xmm1
movaps xmm1, xmm4
subsd xmm1, xmm0
ucomisd xmm1, xmm2
movsd qword [0x100bbf98], xmm1
lahf
test ah, 0x44
jnp 0x10001830
movsd qword [esp + 8], xmm1
xor ecx, ecx
xor edx, edx
ucomisd xmm1, qword [0x100afdf0]
mov dword [esp + 0x30], ecx
mov dword [esp + 0x40], edx
mov dword [esp + 0x34], edx
mov dword [esp + 0x38], ecx
lahf
test ah, 0x44
jp 0x1000191c
sub esp, 8
movaps xmm0, xmm1
andps xmm0, xmmword [0x100afe10]
movsd qword [esp + 0x20], xmm0
movsd qword [esp], xmm1
call fcn.100548d6
fdivr qword [0x100afd70]
add esp, 8
movsd xmm1, qword [0x100bbf98]
movaps xmm0, xmm1
movsd qword [esp + 8], xmm1
fstp qword [esp + 0x40]
call fcn.10055c60
movsd xmm1, qword [0x100afdd0]
divsd xmm1, xmm0
movsd xmm0, qword [0x100bbfa0]
divsd xmm1, qword [esp + 0x18]
addsd xmm1, qword [0x100afda0]
movsd qword [esp + 0x18], xmm1
call fcn.10055970
mulsd xmm0, qword [esp + 0x40]
mov edx, dword [esp + 0x34]
movsd xmm1, qword [esp + 0x18]
mov ecx, dword [esp + 0x30]
mov dword [esp + 0x40], edx
addsd xmm1, xmm0
movsd qword [0x100bbfa0], xmm1
movsd xmm1, qword [esp + 8]
mov eax, dword [esp + 0x3c]
sub edi, 0x10
ucomisd xmm1, qword [0x100afe08]
movups xmm0, xmmword [eax]
lahf
movups xmmword [esp + 0x50], xmm0
test ah, 0x44
jp 0x10001c0e
fld qword [0x100bbfa0]
call fcn.10054ec0
movsd xmm1, qword [0x100afd68]
sub esp, 0x10
fstp qword [esp + 0x28]
movsd xmm0, qword [esp + 0x28]
divsd xmm1, xmm0
mulsd xmm0, qword [0x100afda8]
andps xmm1, xmmword [0x100afe10]
movsd qword [esp + 0x50], xmm1
movsd xmm1, qword [esp + 0x18]
unpcklpd xmm1, xmm1
movsd qword [esp + 0x28], xmm0
movups xmmword [esp], xmm1
call fcn.10054afe
movsd xmm0, qword [esp + 0x28]
add esp, 8
movsd qword [esp + 0x10], xmm0
fdivr qword [esp + 0x10]
movsd xmm0, qword [0x100bbfa0]
andps xmm0, xmmword [0x100afe10]
movsd qword [esp + 0x10], xmm0
movsd xmm0, qword [0x100bbf98]
fstp qword [esp + 0x20]
movsd qword [esp], xmm0
call fcn.100548d6
fld qword [esp + 0x10]
movsd xmm1, qword [0x100bbf98]
fmul st(1), st(0)
movaps xmm0, xmm1
andps xmm0, xmmword [0x100afe10]
movsd qword [esp], xmm1
sub esp, 8
fmulp st(1)
fstp qword [esp + 0x18]
mulsd xmm0, qword [esp + 0x18]
movsd qword [esp + 0x18], xmm0
movsd xmm0, qword [0x100bbfa0]
movsd qword [esp], xmm0
call fcn.10054aa7
fdivr qword [esp + 0x18]
fstp qword [esp + 0x18]
movsd xmm0, qword [esp + 0x18]
call fcn.10055e20
movsd xmm1, qword [esp + 0x28]
add esp, 8
divsd xmm1, xmm0
movsd xmm0, qword [0x100bbf98]
movsd qword [esp + 0x18], xmm1
movsd qword [esp], xmm0
call fcn.100548d6
fmul qword [0x100afde8]
movsd xmm1, qword [0x100bbf98]
movaps xmm0, xmm1
fstp qword [esp + 0x10]
call fcn.10056100
mulsd xmm0, qword [esp + 0x10]
movsd xmm1, qword [0x100bbf98]
andps xmm1, xmmword [0x100afe10]
divsd xmm0, xmm1
movsd xmm1, qword [0x100bbfa0]
movsd qword [esp], xmm1
sub esp, 8
movsd qword [esp + 0x28], xmm0
movsd qword [esp], xmm1
call fcn.10054afe
fstp qword [esp + 0x18]
movsd xmm0, qword [esp + 0x18]
add esp, 0x10
mulsd xmm0, qword [esp + 0x18]
fld qword [0x100bbfa0]
divsd xmm0, qword [0x100bbfa0]
addsd xmm0, qword [0x100afdb0]
movsd qword [esp + 0x20], xmm0
call fcn.10054eb0
movsd xmm0, qword [0x100afd90]
fstp qword [esp + 8]
divsd xmm0, qword [esp + 8]
movsd qword [esp + 0x18], xmm0
movsd xmm0, qword [0x100bbfa0]
call fcn.10055e20
movsd xmm1, qword [esp + 0x18]
mulsd xmm1, xmm0
movsd xmm0, qword [0x100bbf98]
movsd qword [esp + 0x18], xmm1
call fcn.10056c50
movsd xmm1, qword [esp + 0x18]
mulsd xmm1, xmm0
movsd qword [esp + 0x18], xmm1
movsd xmm1, qword [0x100bbfa0]
movaps xmm0, xmm1
call fcn.10056100
movsd xmm1, qword [esp + 0x18]
sub esp, 8
mulsd xmm1, xmm0
movsd xmm0, qword [0x100bbf98]
movsd qword [esp], xmm0
divsd xmm1, qword [esp + 0x48]
addsd xmm1, qword [esp + 0x28]
movsd qword [esp + 0x20], xmm1
call fcn.100548d6
fmul qword [0x100afd88]
movsd xmm0, qword [0x100bbfa0]
fstp qword [esp + 0x28]
call fcn.10055420
movsd xmm1, qword [esp + 0x28]
divsd xmm1, xmm0
movsd xmm0, qword [0x100bbf98]
movsd qword [esp + 0x10], xmm1
movsd xmm1, qword [0x100bbfa0]
call fcn.10056100
movsd xmm2, qword [esp + 0x10]
mulsd xmm2, xmm0
movsd xmm0, qword [0x100bbf98]
movsd qword [esp], xmm0
addsd xmm2, qword [esp + 0x20]
addsd xmm2, qword [esp + 0x18]
movsd qword [esp + 0x10], xmm2
call fcn.100548d6
fstp qword [esp + 0x18]
movsd xmm0, qword [esp + 0x18]
add esp, 8
mulsd xmm0, qword [0x100afdc8]
mov edx, dword [esp + 0x34]
movsd xmm1, qword [esp + 8]
mov ecx, dword [esp + 0x30]
mov dword [esp + 0x40], edx
divsd xmm0, qword [0x100bbfa0]
subsd xmm1, xmm0
movsd qword [esp + 8], xmm1
movsd qword [0x100bbf98], xmm1
mov eax, edx
sub eax, ecx
mov dword [esp + 0x18], eax
cmp edi, eax
jae 0x10001c1f
lea eax, [ecx + edi]
jmp 0x10001c6a
jbe 0x10001c6e
mov eax, dword [esp + 0x38]
sub eax, ecx
cmp edi, eax
jbe 0x10001c4a
push ecx
push edi
lea ecx, [esp + 0x38]
call fcn.100025f0
movsd xmm1, qword [0x100bbf98]
mov ecx, dword [esp + 0x30]
movsd qword [esp + 8], xmm1
jmp 0x10001c6e
mov esi, edi
sub esi, dword [esp + 0x18]
push esi
push 0
push edx
call fcn.1004a970
mov eax, dword [esp + 0x4c]
add esp, 0xc
mov ecx, dword [esp + 0x30]
add eax, esi
mov esi, dword [esp + 0x4c]
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x3c]
push edi
add eax, 0x10
push eax
push ecx
call fcn.10049e70
mov edx, dword [esi + 4]
add esp, 0xc
mov ecx, dword [esp + 0x34]
mov edi, dword [esp + 0x30]
sub ecx, edi
mov eax, dword [esi]
mov dword [esp + 0x18], edx
sub edx, eax
mov byte [esp + 0x2f], 0
cmp ecx, edx
jae 0x10001ca2
add eax, ecx
jmp 0x10001ce8
jbe 0x10001ceb
mov eax, dword [esi + 8]
sub eax, dword [esi]
cmp ecx, eax
jbe 0x10001cc8
lea eax, [esp + 0x2f]
push eax
push ecx
mov ecx, esi
call fcn.10002760
mov edi, dword [esp + 0x30]
movsd xmm1, qword [0x100bbf98]
jmp 0x10001cf1
mov edi, dword [esp + 0x18]
sub ecx, edx
push ecx
push 0
push edi
mov dword [esp + 0x48], ecx
call fcn.1004a970
mov eax, dword [esp + 0x48]
add esp, 0xc
add eax, edi
mov edi, dword [esp + 0x30]
mov dword [esi + 4], eax
movsd xmm1, qword [esp + 8]
movsd xmm0, qword [0x100bbfa0]
ucomisd xmm0, qword [0x100afdf8]
lahf
test ah, 0x44
jp 0x1000212b
sub esp, 8
movaps xmm0, xmm1
movsd qword [esp], xmm1
call fcn.10056100
sub esp, 8
movsd qword [esp], xmm0
call fcn.10054b60
fdivr qword [0x100afdc0]
add esp, 0x10
fstp qword [esp + 0x20]
fld qword [0x100bbfa0]
call fcn.10054ec0
movsd xmm1, qword [0x100afd68]
fstp qword [esp + 0x10]
divsd xmm1, qword [esp + 0x10]
movsd xmm0, qword [0x100bbf98]
andps xmm0, xmmword [0x100afe10]
divsd xmm1, xmm0
movsd xmm0, qword [0x100bbfa0]
movsd qword [esp + 8], xmm1
call fcn.10054f00
movsd xmm1, qword [esp + 8]
sub esp, 8
divsd xmm1, xmm0
fld qword [0x100bbf98]
fstp qword [esp]
movsd qword [esp + 0x10], xmm1
call fcn.10057090
movsd xmm0, qword [esp + 0x10]
fstp qword [esp + 0x18]
divsd xmm0, qword [esp + 0x18]
movsd qword [esp + 0x18], xmm0
movsd xmm0, qword [0x100bbf98]
movsd qword [esp], xmm0
sub esp, 8
movsd qword [esp], xmm0
call fcn.10054e8c
fdivr qword [esp + 0x20]
add esp, 8
fstp qword [esp]
call fcn.100549d3
fdivr qword [esp + 0x28]
fstp qword [esp + 0x28]
fld qword [0x100bbf98]
fstp qword [esp]
call fcn.100571b0
movsd xmm0, qword [0x100bbf98]
andps xmm0, xmmword [0x100afe10]
fstp qword [esp + 0x18]
movsd xmm1, qword [esp + 0x18]
mulsd xmm1, qword [esp + 0x28]
mulsd xmm1, xmm0
movsd xmm0, qword [0x100bbf98]
addsd xmm1, qword [0x100afde0]
movsd qword [esp + 0x28], xmm1
call fcn.10055c60
movsd xmm1, qword [0x100afd98]
divsd xmm1, xmm0
movsd xmm0, qword [0x100bbfa0]
movsd qword [esp + 0x18], xmm1
call fcn.10056e20
movsd xmm2, qword [esp + 0x18]
divsd xmm2, xmm0
movsd xmm0, qword [esp + 0x28]
movsd xmm1, qword [0x100bbf98]
addsd xmm0, xmm2
movsd qword [esp], xmm1
movsd qword [0x100bbfa0], xmm0
movaps xmm0, xmm1
call fcn.10056100
sub esp, 8
movsd qword [esp], xmm0
call fcn.10054b60
fdivr qword [0x100afdc0]
add esp, 0x10
fstp qword [esp + 0x20]
fld qword [0x100bbfa0]
call fcn.10054ec0
movsd xmm1, qword [0x100afd68]
fstp qword [esp + 0x10]
divsd xmm1, qword [esp + 0x10]
movsd xmm0, qword [0x100bbf98]
andps xmm0, xmmword [0x100afe10]
divsd xmm1, xmm0
movsd xmm0, qword [0x100bbfa0]
movsd qword [esp + 8], xmm1
call fcn.10054f00
movsd xmm1, qword [esp + 8]
sub esp, 8
divsd xmm1, xmm0
fld qword [0x100bbf98]
fstp qword [esp]
movsd qword [esp + 0x10], xmm1
call fcn.10057090
movsd xmm0, qword [esp + 0x10]
fstp qword [esp + 0x18]
divsd xmm0, qword [esp + 0x18]
movsd qword [esp + 0x18], xmm0
movsd xmm0, qword [0x100bbf98]
movsd qword [esp], xmm0
sub esp, 8
movsd qword [esp], xmm0
call fcn.10054e8c
fdivr qword [esp + 0x20]
add esp, 8
fstp qword [esp]
call fcn.100549d3
fdivr qword [esp + 0x28]
fstp qword [esp + 0x28]
fld qword [0x100bbf98]
fstp qword [esp]
call fcn.100571b0
movsd xmm0, qword [0x100bbf98]
andps xmm0, xmmword [0x100afe10]
fstp qword [esp + 0x18]
movsd xmm1, qword [esp + 0x18]
mulsd xmm1, qword [esp + 0x28]
mulsd xmm1, xmm0
movsd xmm0, qword [0x100bbf98]
addsd xmm1, qword [0x100afdd8]
movsd qword [esp + 0x28], xmm1
call fcn.10055c60
movsd xmm1, qword [0x100afd98]
divsd xmm1, xmm0
movsd xmm0, qword [0x100bbfa0]
movsd qword [esp + 0x18], xmm1
call fcn.10056e20
movsd xmm2, qword [esp + 0x18]
divsd xmm2, xmm0
movsd xmm0, qword [esp + 0x28]
movsd xmm1, qword [0x100bbf98]
addsd xmm0, xmm2
movsd qword [esp], xmm1
movsd qword [0x100bbfa0], xmm0
movaps xmm0, xmm1
call fcn.10056100
sub esp, 8
movsd qword [esp], xmm0
call fcn.10054b60
fdivr qword [0x100afdc0]
add esp, 0x10
fstp qword [esp + 0x20]
fld qword [0x100bbfa0]
call fcn.10054ec0
movsd xmm1, qword [0x100afd68]
fstp qword [esp + 0x10]
divsd xmm1, qword [esp + 0x10]
movsd xmm0, qword [0x100bbf98]
andps xmm0, xmmword [0x100afe10]
divsd xmm1, xmm0
movsd xmm0, qword [0x100bbfa0]
movsd qword [esp + 8], xmm1
call fcn.10054f00
movsd xmm1, qword [esp + 8]
sub esp, 8
divsd xmm1, xmm0
fld qword [0x100bbf98]
fstp qword [esp]
movsd qword [esp + 0x10], xmm1
call fcn.10057090
movsd xmm0, qword [esp + 0x10]
fstp qword [esp + 0x18]
divsd xmm0, qword [esp + 0x18]
movsd qword [esp + 0x18], xmm0
movsd xmm0, qword [0x100bbf98]
movsd qword [esp], xmm0
sub esp, 8
movsd qword [esp], xmm0
call fcn.10054e8c
fdivr qword [esp + 0x20]
add esp, 8
fstp qword [esp]
call fcn.100549d3
fdivr qword [esp + 0x28]
fstp qword [esp + 0x28]
fld qword [0x100bbf98]
fstp qword [esp]
call fcn.100571b0
movsd xmm0, qword [0x100bbf98]
add esp, 8
fstp qword [esp + 0x10]
movsd xmm2, qword [esp + 0x10]
movaps xmm1, xmm0
mulsd xmm2, qword [esp + 0x20]
andps xmm1, xmmword [0x100afe10]
mulsd xmm2, xmm1
addsd xmm2, qword [0x100afd80]
movsd qword [esp + 0x20], xmm2
call fcn.10055c60
movsd xmm1, qword [0x100afd98]
divsd xmm1, xmm0
movsd xmm0, qword [0x100bbfa0]
movsd qword [esp + 0x10], xmm1
call fcn.10056e20
movsd xmm1, qword [esp + 0x10]
divsd xmm1, xmm0
mov edi, dword [esp + 0x30]
movsd xmm0, qword [esp + 0x20]
addsd xmm0, xmm1
movsd qword [0x100bbf98], xmm0
mov esi, dword [esp + 0x34]
sub esi, edi
sub esi, 1
js 0x1000215a
mov al, byte [edi + esi]
mov edx, esi
and edx, 0xf
mov cl, byte [esp + edx + 0x50]
xor al, cl
mov byte [esp + edx + 0x50], al
mov eax, dword [esp + 0x4c]
mov eax, dword [eax]
mov byte [esi + eax], cl
sub esi, 1
mov edi, dword [esp + 0x30]
jns 0x10002136
test edi, edi
je 0x10002188
mov ecx, dword [esp + 0x38]
mov eax, edi
sub ecx, edi
cmp ecx, 0x1000
jb 0x1000217e
mov edi, dword [edi - 4]
add ecx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10002199
push ecx
push edi
call fcn.100281a3
add esp, 8
mov ecx, dword [esp + 0x6c]
pop edi
pop esi
xor ecx, esp
call fcn.1002853b
mov esp, ebp
pop ebp
ret
call fcn.10053ffa
int3