Function at 0x140003a70
Capabilities:
Encode data using xor

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
push rdi
sub rsp, 0x160
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 [0x140046010]
xor rax, rsp
mov qword [rsp + 0xb0], rax
mov rdi, rdx
lea r8, [rsp + 0x60]
mov rdx, qword [0x140046c48]
xorps xmm0, xmm0
xorps xmm1, xmm1
movaps xmmword [rsp + 0x60], xmm0
add rdx, 0xe9ad420
movaps xmmword [rsp + 0x70], xmm1
mov r9d, 0x50
movaps xmmword [rsp + 0x80], xmm0
mov rbx, rcx
call fcn.140001650
test al, al
jne 0x140003b2f
xorps xmm0, xmm0
movups xmmword [rsp + 0x60], xmm0
movups xmmword [rsp + 0x70], xmm0
movups xmmword [rsp + 0x80], xmm0
movups xmmword [rsp + 0x90], xmm0
movups xmmword [rsp + 0xa0], xmm0
lea rcx, [rsp + 0x60]
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 0x140003b40
movsd xmm0, qword [rsp + 0x78]
movsd xmm9, qword [0x14003e9e0]
movsd xmm8, qword [0x14003ea08]
movss xmm11, dword [rsp + 0x90]
mulsd xmm0, xmm9
movss dword [0x140046c58], xmm11
divsd xmm0, xmm8
cvtpd2ps xmm6, xmm0
movaps xmm0, xmm6
call sub.api_ms_win_crt_math_l1_1_0.dll_sinf
xorps xmm10, xmm10
cvtss2sd xmm10, xmm0
movaps xmm0, xmm6
call sub.api_ms_win_crt_math_l1_1_0.dll_cosf
movaps xmm7, xmmword [rsp + 0x80]
xorps xmm6, xmm6
movaps xmm1, xmm7
mulsd xmm1, xmm9
cvtss2sd xmm0, xmm0
divsd xmm1, xmm8
movsd qword [rsp + 0x38], xmm0
cvtsd2ss xmm6, xmm1
movaps xmm0, xmm6
call sub.api_ms_win_crt_math_l1_1_0.dll_sinf
cvtss2sd xmm0, xmm0
movsd qword [rsp + 0x30], xmm0
movaps xmm0, xmm6
call sub.api_ms_win_crt_math_l1_1_0.dll_cosf
unpckhpd xmm7, xmm7
xorps xmm6, xmm6
mulsd xmm7, xmm9
cvtss2sd xmm0, xmm0
divsd xmm7, xmm8
movsd qword [rsp + 0x40], xmm0
cvtsd2ss xmm6, xmm7
movaps xmm0, xmm6
call sub.api_ms_win_crt_math_l1_1_0.dll_sinf
xorps xmm15, xmm15
cvtss2sd xmm15, xmm0
movaps xmm0, xmm6
movsd qword [rsp + 0x48], xmm15
call sub.api_ms_win_crt_math_l1_1_0.dll_cosf
movsd xmm1, qword [rsp + 0x40]
xorps xmm7, xmm7
mulsd xmm1, qword [rsp + 0x38]
xorps xmm8, xmm8
mulss xmm11, dword [0x14003ea04]
movsd xmm12, qword [rdi]
movsd xmm13, qword [rdi + 8]
divss xmm11, dword [0x14003ea8c]
cvtsi2ss xmm8, dword [0x140046c68]
movsd xmm14, qword [rdi + 0x10]
subsd xmm14, qword [rsp + 0x70]
movsd xmm9, qword [0x14003e9c0]
mulss xmm8, dword [0x14003e974]
cvtss2sd xmm7, xmm0
movaps xmm0, xmmword [rsp + 0x60]
subsd xmm12, xmm0
movsd qword [rsp + 0x50], xmm7
unpckhpd xmm0, xmm0
subsd xmm13, xmm0
mulsd xmm15, xmm10
movsd xmm0, qword [rsp + 0x30]
mulsd xmm0, qword [rsp + 0x38]
mulsd xmm7, xmm10
cvtpd2ps xmm0, xmm0
cvtps2pd xmm3, xmm0
cvtpd2ps xmm0, xmm1
mulsd xmm3, xmm13
cvtps2pd xmm2, xmm0
cvtpd2ps xmm0, xmm10
mulsd xmm2, xmm12
cvtps2pd xmm1, xmm0
addsd xmm3, xmm2
movaps xmm0, xmm11
mulsd xmm1, xmm14
addsd xmm3, xmm1
maxsd xmm9, xmm3
call sub.api_ms_win_crt_math_l1_1_0.dll_tanf
movaps xmm1, xmm8
divss xmm1, xmm0
movsd xmm10, qword [rsp + 0x40]
xorps xmm2, xmm2
cvtsi2ss xmm2, dword [0x140046c6c]
mov qword [rbx + 0x10], 0
mov rax, rbx
movsd xmm11, qword [rsp + 0x48]
movaps xmm0, xmm7
mulss xmm2, dword [0x14003e974]
movsd xmm6, qword [rsp + 0x50]
mulsd xmm7, qword [rsp + 0x30]
cvtps2pd xmm4, xmm1
mulsd xmm0, xmm10
movaps xmm1, xmm11
mulsd xmm1, qword [rsp + 0x30]
cvtps2pd xmm5, xmm2
addsd xmm1, xmm0
xorps xmm0, xmm0
xorps xmm1, xmmword [0x14003ecc0]
cvtsd2ss xmm0, xmm1
movaps xmm1, xmm11
xorps xmm11, xmmword [0x14003ecc0]
mulsd xmm11, qword [rsp + 0x38]
mulsd xmm1, xmm10
cvtps2pd xmm2, xmm0
subsd xmm1, xmm7
mulsd xmm2, xmm12
cvtpd2ps xmm0, xmm1
cvtps2pd xmm1, xmm0
movaps xmm0, xmm6
mulsd xmm0, qword [rsp + 0x38]
mulsd xmm1, xmm13
cvtpd2ps xmm0, xmm0
addsd xmm2, xmm1
cvtps2pd xmm1, xmm0
movaps xmm0, xmm6
mulsd xmm6, xmm10
mulsd xmm0, qword [rsp + 0x30]
mulsd xmm1, xmm14
addsd xmm2, xmm1
movaps xmm1, xmm15
mulsd xmm15, qword [rsp + 0x30]
mulsd xmm1, xmm10
mulsd xmm2, xmm4
addsd xmm6, xmm15
subsd xmm1, xmm0
divsd xmm2, xmm9
cvtpd2ps xmm0, xmm1
subsd xmm5, xmm2
cvtps2pd xmm2, xmm0
cvtpd2ps xmm0, xmm6
mulsd xmm2, xmm12
cvtps2pd xmm1, xmm0
xorps xmm0, xmm0
movsd qword [rbx + 8], xmm5
mulsd xmm1, xmm13
cvtsd2ss xmm0, xmm11
addsd xmm2, xmm1
cvtps2pd xmm1, xmm0
cvtps2pd xmm0, xmm8
mulsd xmm1, xmm14
addsd xmm2, xmm1
mulsd xmm2, xmm4
divsd xmm2, xmm9
addsd xmm2, xmm0
movsd qword [rbx], xmm2
mov rcx, qword [rsp + 0xb0]
xor rcx, rsp
call fcn.1400373e0
lea r11, [rsp + 0x160]
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