Function at 0x140031700
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
lea rbp, [rsp - 0xc0]
sub rsp, 0x1c0
mov rax, qword [0x1400af010]
xor rax, rsp
mov qword [rbp + 0x10], rax
mov rbx, qword [0x1400e3b68]
xor eax, eax
mov dword [rbp - 0x10], eax
xorps xmm0, xmm0
mov qword [rbp + 4], rax
mov rdi, rcx
xorps xmm1, xmm1
movaps xmmword [rbp - 0x40], xmm0
mov eax, dword [rbx]
lea rcx, [0x1400e3b70]
mov dword [rsp + 0x30], eax
mov rsi, rdx
mov rax, qword [0x1400e3b10]
add rax, 0xe9ad420
movaps xmmword [rbp - 0x30], xmm1
mov qword [rsp + 0x40], rax
lea rax, [rbp - 0x40]
mov qword [rsp + 0x38], rax
mov eax, dword [rbx + 0x20]
mov dword [rsp + 0x4c], eax
movaps xmmword [rbp - 0x20], xmm0
movups xmmword [rbp - 0xc], xmm0
mov dword [rsp + 0x48], 0x50
call qword [sym.imp.MSVCP140.dll__Mtx_lock]
test eax, eax
je 0x1400317a3
mov ecx, eax
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_C_error_int_]
int3
movaps xmmword [rsp + 0x1b0], xmm6
lea rax, [rbx + 0x18]
movaps xmmword [rsp + 0x1a0], xmm7
movaps xmmword [rsp + 0x190], xmm8
movaps xmmword [rsp + 0x180], xmm9
movaps xmmword [rsp + 0x170], xmm10
mov qword [rsp + 0x50], rax
lea rax, [rsp + 0x30]
movaps xmmword [rsp + 0x160], xmm11
mov qword [rsp + 0x60], rax
lea rax, [rsp + 0x20]
movaps xmmword [rsp + 0x150], xmm12
mov qword [rsp + 0x68], rax
mov rax, qword [rbx + 8]
movups xmm1, xmmword [rsp + 0x60]
mov dword [rsp + 0x58], 1
movups xmm0, xmmword [rsp + 0x50]
movaps xmmword [rsp + 0x140], xmm13
movups xmmword [rax], xmm0
movups xmmword [rax + 0x10], xmm1
mov rcx, qword [rbx + 0x10]
movaps xmmword [rsp + 0x130], xmm14
movaps xmmword [rsp + 0x120], xmm15
call qword [sym.imp.KERNEL32.dll_FlushFileBuffers]
lea rcx, [0x1400e3b70]
call qword [sym.imp.MSVCP140.dll__Mtx_unlock]
movaps xmm0, xmmword [rbp - 0x40]
lea rcx, [rsp + 0x70]
movaps xmm1, xmmword [rbp - 0x30]
mov r8b, 0x40
movaps xmmword [rsp + 0x70], xmm0
xor edx, edx
movaps xmm0, xmmword [rbp - 0x20]
movaps xmmword [rbp - 0x70], xmm0
movaps xmm0, xmmword [rbp]
movaps xmmword [rbp - 0x80], xmm1
movaps xmm1, xmmword [rbp - 0x10]
movaps xmmword [rbp - 0x50], xmm0
movaps xmmword [rbp - 0x60], xmm1
nop
xor byte [rcx], r8b
lea eax, [rdx + 0x17]
add r8b, al
lea rcx, [rcx + 1]
inc edx
cmp edx, 0x40
jl 0x140031880
movsd xmm4, qword [0x1400a7ca8]
movsd xmm3, qword [0x1400a7d10]
movsd xmm0, qword [rbp - 0x78]
movsd xmm1, qword [rbp - 0x70]
movsd xmm2, qword [rbp - 0x68]
mulsd xmm0, xmm4
mulsd xmm1, xmm4
mulsd xmm2, xmm4
divsd xmm0, xmm3
divsd xmm1, xmm3
divsd xmm2, xmm3
cvtpd2ps xmm6, xmm0
cvtpd2ps xmm7, xmm1
movaps xmm0, xmm6
cvtpd2ps xmm8, xmm2
call sub.api_ms_win_crt_math_l1_1_0.dll_sinf
movaps xmm9, xmm0
movaps xmm0, xmm6
call sub.api_ms_win_crt_math_l1_1_0.dll_cosf
movss dword [rsp + 0x24], xmm0
movaps xmm0, xmm7
call sub.api_ms_win_crt_math_l1_1_0.dll_sinf
movaps xmm6, xmm0
movaps xmm0, xmm7
movss dword [rsp + 0x28], xmm6
call sub.api_ms_win_crt_math_l1_1_0.dll_cosf
movaps xmm14, xmm0
movaps xmm0, xmm8
call sub.api_ms_win_crt_math_l1_1_0.dll_sinf
movaps xmm15, xmm0
movaps xmm0, xmm8
call sub.api_ms_win_crt_math_l1_1_0.dll_cosf
movsd xmm10, qword [rsi]
movaps xmm13, xmm0
subsd xmm10, qword [rsp + 0x70]
movsd xmm11, qword [rsi + 8]
xorps xmm2, xmm2
subsd xmm11, qword [rsp + 0x78]
movsd xmm12, qword [rsi + 0x10]
movaps xmm1, xmm14
mulss xmm1, dword [rsp + 0x24]
movaps xmm8, xmm15
subsd xmm12, qword [rbp - 0x80]
movss dword [rsp + 0x20], xmm0
movaps xmm0, xmm6
mulss xmm0, dword [rsp + 0x24]
xorps xmm6, xmm6
cvtsi2ss xmm6, dword [0x1400e3b0c]
cvtss2sd xmm2, xmm0
mulss xmm6, dword [0x1400a7c50]
xorps xmm0, xmm0
cvtss2sd xmm0, xmm1
mulsd xmm2, xmm11
xorps xmm1, xmm1
mulsd xmm0, xmm10
cvtss2sd xmm1, xmm9
addsd xmm2, xmm0
mulss xmm8, xmm9
movss xmm0, dword [rbp - 0x60]
mulss xmm0, dword [0x1400a7d00]
mulss xmm13, xmm9
divss xmm0, dword [0x1400a7e10]
movsd xmm9, qword [0x1400a7c98]
mulsd xmm1, xmm12
addsd xmm2, xmm1
maxsd xmm9, xmm2
call sub.api_ms_win_crt_math_l1_1_0.dll_tanf
movss xmm3, dword [rsp + 0x20]
movaps xmm1, xmm6
divss xmm1, xmm0
movaps xmm0, xmm8
movaps xmm2, xmm3
mulss xmm0, dword [rsp + 0x28]
mulss xmm2, xmm14
cvtps2pd xmm5, xmm1
addss xmm2, xmm0
mulss xmm8, xmm14
movaps xmm0, xmm3
mulss xmm0, dword [rsp + 0x28]
cvtps2pd xmm4, xmm2
mulsd xmm4, xmm11
movaps xmm7, xmmword [rsp + 0x1a0]
subss xmm8, xmm0
xorps xmm1, xmm1
mov qword [rdi + 0x10], 0
movaps xmm0, xmm15
movaps xmm2, xmm15
xorps xmm0, xmmword [0x1400a8450]
mov rax, rdi
mulss xmm0, dword [rsp + 0x24]
mulss xmm2, dword [rsp + 0x28]
cvtss2sd xmm1, xmm8
movaps xmm8, xmmword [rsp + 0x190]
mulsd xmm1, xmm10
cvtss2sd xmm0, xmm0
addsd xmm4, xmm1
mulss xmm15, xmm14
mulsd xmm0, xmm12
xorps xmm1, xmm1
cvtsi2ss xmm1, dword [0x1400e3b08]
addsd xmm4, xmm0
mulss xmm1, dword [0x1400a7c50]
cvtps2pd xmm0, xmm6
movaps xmm6, xmmword [rsp + 0x1b0]
mulsd xmm4, xmm5
divsd xmm4, xmm9
addsd xmm4, xmm0
movaps xmm0, xmm13
mulss xmm13, dword [rsp + 0x28]
mulss xmm0, xmm14
movaps xmm14, xmmword [rsp + 0x130]
subss xmm15, xmm13
movaps xmm13, xmmword [rsp + 0x140]
addss xmm2, xmm0
movsd qword [rdi], xmm4
cvtps2pd xmm4, xmm1
xorps xmm2, xmmword [0x1400a8450]
xorps xmm1, xmm1
xorps xmm0, xmm0
cvtss2sd xmm0, xmm15
movaps xmm15, xmmword [rsp + 0x120]
mulsd xmm0, xmm11
movaps xmm11, xmmword [rsp + 0x160]
cvtss2sd xmm1, xmm2
mulsd xmm1, xmm10
movaps xmm10, xmmword [rsp + 0x170]
addsd xmm1, xmm0
movaps xmm0, xmm3
mulss xmm0, dword [rsp + 0x24]
cvtps2pd xmm0, xmm0
mulsd xmm0, xmm12
movaps xmm12, xmmword [rsp + 0x150]
addsd xmm1, xmm0
mulsd xmm1, xmm5
divsd xmm1, xmm9
movaps xmm9, xmmword [rsp + 0x180]
subsd xmm4, xmm1
movsd qword [rdi + 8], xmm4
mov rcx, qword [rbp + 0x10]
xor rcx, rsp
call fcn.14003a840
lea r11, [rsp + 0x1c0]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret