Function at 0x140007840
Capabilities:
Encode data using xor

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
push rdi
sub rsp, 0x130
movaps xmmword [rax - 0x18], xmm6
movaps xmmword [rax - 0x28], xmm7
movaps xmmword [rax - 0x38], xmm8
movaps xmmword [rax - 0x48], xmm9
movaps xmmword [rax - 0x58], xmm10
movaps xmmword [rax - 0x68], xmm11
movaps xmmword [rax - 0x78], xmm12
movaps xmmword [rax - 0x88], xmm13
movaps xmmword [rax - 0x98], xmm14
movaps xmmword [rax - 0xa8], xmm15
mov rax, qword [0x140052010]
xor rax, rsp
mov qword [rsp + 0x80], rax
mov rdi, rdx
lea r8, [rsp + 0x30]
mov rdx, qword [0x1400527a0]
xorps xmm0, xmm0
xorps xmm1, xmm1
movaps xmmword [rsp + 0x30], xmm0
add rdx, 0x10f90a10
movaps xmmword [rsp + 0x40], xmm1
mov r9d, 0x50
movaps xmmword [rsp + 0x50], xmm0
mov rbx, rcx
call fcn.140001730
lea rcx, [rsp + 0x30]
mov r8b, 0x40
xor edx, edx
nop dword [rax]
xor byte [rcx], r8b
lea eax, [rdx + 0x17]
add r8b, al
lea rcx, [rcx + 1]
inc edx
cmp edx, 0x40
jl 0x1400078e0
movsd xmm4, qword [0x14004a7d8]
xorps xmm8, xmm8
movsd xmm3, qword [0x14004a830]
xorps xmm6, xmm6
movsd xmm0, qword [rsp + 0x48]
movaps xmm2, xmmword [rsp + 0x50]
movaps xmm1, xmm2
mulsd xmm0, xmm4
unpckhpd xmm2, xmm2
mulsd xmm1, xmm4
divsd xmm0, xmm3
mulsd xmm2, xmm4
divsd xmm1, xmm3
divsd xmm2, xmm3
cvtpd2ps xmm7, xmm0
cvtsd2ss xmm8, xmm1
movaps xmm0, xmm7
cvtsd2ss xmm6, xmm2
call sub.api_ms_win_crt_math_l1_1_0.dll_sinf
movaps xmm9, xmm0
movaps xmm0, xmm7
call sub.api_ms_win_crt_math_l1_1_0.dll_cosf
movss dword [rsp + 0x20], xmm0
movaps xmm0, xmm8
call sub.api_ms_win_crt_math_l1_1_0.dll_sinf
movaps xmm7, xmm0
movaps xmm0, xmm8
movss dword [rsp + 0x24], xmm7
call sub.api_ms_win_crt_math_l1_1_0.dll_cosf
movaps xmm14, xmm0
movaps xmm0, xmm6
call sub.api_ms_win_crt_math_l1_1_0.dll_sinf
movaps xmm15, xmm0
movaps xmm0, xmm6
call sub.api_ms_win_crt_math_l1_1_0.dll_cosf
movaps xmm1, xmmword [rsp + 0x30]
movaps xmm13, xmm0
movsd xmm10, qword [rdi]
xorps xmm2, xmm2
movsd xmm11, qword [rdi + 8]
subsd xmm10, xmm1
movsd xmm12, qword [rdi + 0x10]
movaps xmm8, xmm15
subsd xmm12, qword [rsp + 0x40]
movss xmm6, dword [0x140052864]
mulss xmm6, dword [0x14004a76c]
movss dword [rsp + 0x28], xmm0
movaps xmm0, xmm7
mulss xmm0, dword [rsp + 0x20]
unpckhpd xmm1, xmm1
subsd xmm11, xmm1
mulss xmm8, xmm9
cvtss2sd xmm2, xmm0
xorps xmm0, xmm0
mulss xmm13, xmm9
movaps xmm1, xmm14
mulsd xmm2, xmm11
mulss xmm1, dword [rsp + 0x20]
cvtss2sd xmm0, xmm1
xorps xmm1, xmm1
mulsd xmm0, xmm10
cvtss2sd xmm1, xmm9
movsd xmm9, qword [0x14004a7b8]
addsd xmm2, xmm0
movss xmm0, dword [rsp + 0x60]
mulss xmm0, dword [0x14004a824]
mulsd xmm1, xmm12
divss xmm0, dword [0x14004a89c]
addsd xmm2, xmm1
maxsd xmm9, xmm2
call sub.api_ms_win_crt_math_l1_1_0.dll_tanf
movss xmm3, dword [rsp + 0x28]
movaps xmm1, xmm6
divss xmm1, xmm0
movaps xmm2, xmm8
movaps xmm0, xmm3
mulss xmm2, xmm7
xorps xmm4, xmm4
mulss xmm0, xmm14
cvtps2pd xmm5, xmm1
addss xmm2, xmm0
cvtss2sd xmm4, xmm2
mov qword [rbx + 0x10], 0
mov rax, rbx
xorps xmm1, xmm1
mulss xmm8, xmm14
mulsd xmm4, xmm11
movaps xmm0, xmm3
mulss xmm0, xmm7
movaps xmm2, xmm13
mulss xmm2, xmm14
subss xmm8, xmm0
mulss xmm13, xmm7
movaps xmm0, xmm15
xorps xmm0, xmmword [0x14004ad10]
mulss xmm0, dword [rsp + 0x20]
cvtss2sd xmm1, xmm8
cvtss2sd xmm0, xmm0
mulsd xmm1, xmm10
mulsd xmm0, xmm12
addsd xmm4, xmm1
movss xmm1, dword [0x140052860]
mulss xmm1, dword [0x14004a76c]
addsd xmm4, xmm0
cvtps2pd xmm0, xmm6
mulsd xmm4, xmm5
divsd xmm4, xmm9
addsd xmm4, xmm0
movaps xmm0, xmm15
mulss xmm0, xmm7
mulss xmm15, xmm14
addss xmm2, xmm0
movsd qword [rbx], xmm4
cvtps2pd xmm4, xmm1
xorps xmm2, xmmword [0x14004ad10]
xorps xmm1, xmm1
xorps xmm0, xmm0
subss xmm15, xmm13
cvtss2sd xmm1, xmm2
cvtss2sd xmm0, xmm15
mulsd xmm1, xmm10
mulsd xmm0, xmm11
addsd xmm1, xmm0
movaps xmm0, xmm3
mulss xmm0, dword [rsp + 0x20]
cvtps2pd xmm0, xmm0
mulsd xmm0, xmm12
addsd xmm1, xmm0
mulsd xmm1, xmm5
divsd xmm1, xmm9
subsd xmm4, xmm1
movsd qword [rbx + 8], xmm4
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.140042d20
lea r11, [rsp + 0x130]
mov rbx, qword [r11 + 0x18]
movaps xmm6, xmmword [r11 - 0x10]
movaps xmm7, xmmword [r11 - 0x20]
movaps xmm8, xmmword [r11 - 0x30]
movaps xmm9, xmmword [r11 - 0x40]
movaps xmm10, xmmword [r11 - 0x50]
movaps xmm11, xmmword [r11 - 0x60]
movaps xmm12, xmmword [r11 - 0x70]
movaps xmm13, xmmword [r11 - 0x80]
movaps xmm14, xmmword [r11 - 0x90]
movaps xmm15, xmmword [r11 - 0xa0]
mov rsp, r11
pop rdi
ret