Function at 0x180082390
Capabilities:
Encode data using xor

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x70
movaps xmmword [rax - 0x38], xmm6
movaps xmmword [rax - 0x48], xmm7
movaps xmmword [rax - 0x58], xmm8
movaps xmmword [rax - 0x68], xmm9
movaps xmmword [rax - 0x78], xmm10
mov rbp, r8
mov r15, rdx
mov rsi, rcx
mov r9d, dword [0x18031e2c8]
mov rax, qword gs:[0x58]
mov r13d, 4
mov r14, qword [rax + r9*8]
movabs rbx, 0x5555555555555555
mov edi, 1
movabs r12, 0x5851f42d4c957f2d
mov eax, dword [r14 + r13]
cmp dword [0x180325208], eax
jle 0x180082477
lea rcx, [0x180325208]
call fcn.1800a91d8
cmp dword [0x180325208], 0xffffffff
jne 0x180082477
call qword [sym.imp.MSVCP140.dll_unsigned_int___cdecl_std::_Random_device_void_]
mov ecx, eax
mov qword [0x180322ad8], rbx
mov qword [0x180321758], rcx
mov edx, edi
lea r8, [0x180321758]
nop
mov rax, rcx
shr rax, 0x3e
xor rcx, rax
imul rcx, r12
add rcx, rdx
mov qword [r8 + rdx*8], rcx
inc rdx
cmp rdx, 0x138
jb 0x180082440
mov dword [0x180321750], 0x138
lea rcx, [0x180325208]
call fcn.1800a916c
movsd xmm7, qword [rbp]
lea rbx, [0x1803265a0]
mov eax, dword [r14 + r13]
cmp dword [0x18032174c], eax
jle 0x180082508
lea rcx, [0x18032174c]
call fcn.1800a91d8
cmp dword [0x18032174c], 0xffffffff
jne 0x180082508
call qword [sym.imp.MSVCP140.dll_unsigned_int___cdecl_std::_Random_device_void_]
mov ecx, eax
movabs rax, 0x5555555555555555
mov qword [0x180327928], rax
mov qword [0x1803265a8], rcx
mov rdx, rdi
nop word [rax + rax]
mov rax, rcx
shr rax, 0x3e
xor rcx, rax
imul rcx, r12
add rcx, rdx
mov qword [rbx + rdx*8 + 8], rcx
inc rdx
cmp rdx, 0x138
jb 0x1800824d0
mov dword [0x1803265a0], 0x138
lea rcx, [0x18032174c]
call fcn.1800a916c
movss xmm1, dword [rsi + 0x30]
cvtps2pd xmm1, xmm1
movss xmm2, dword [rsi + 0x2c]
cvtps2pd xmm2, xmm2
mov rcx, rbx
call fcn.180087450
mov rcx, rax
xorps xmm0, xmm0
test rax, rax
js 0x180082532
cvtsi2sd xmm0, rax
jmp 0x180082544
shr rax, 1
and ecx, 1
or rax, rcx
cvtsi2sd xmm0, rax
addsd xmm0, xmm0
xorps xmm9, xmm9
subsd xmm0, xmm9
addsd xmm0, xmm9
mulsd xmm0, qword [0x18030b410]
subsd xmm1, xmm2
mulsd xmm0, xmm1
addsd xmm0, xmm2
movsd xmm10, qword [0x18030b648]
mov ebx, 0x1e
cmp byte [rsi + 0x44], 0
jne 0x1800825a8
mov eax, ebx
movaps xmm1, xmm7
andps xmm1, xmmword [0x18030b7e0]
nop word [rax + rax]
movd xmm6, eax
cvtdq2pd xmm6, xmm6
comisd xmm1, xmm6
ja 0x180082672
dec eax
test eax, eax
jg 0x180082590
movaps xmm6, xmm0
mulsd xmm6, xmm7
movsd xmm7, qword [0x18030b560]
divsd xmm6, xmm7
movsd xmm8, qword [rbp + 8]
lea rbp, [0x180325210]
mov eax, dword [r14 + r13]
cmp dword [0x180322ae0], eax
jle 0x180082648
lea rcx, [0x180322ae0]
call fcn.1800a91d8
cmp dword [0x180322ae0], 0xffffffff
jne 0x180082648
call qword [sym.imp.MSVCP140.dll_unsigned_int___cdecl_std::_Random_device_void_]
mov ecx, eax
movabs rax, 0x5555555555555555
mov qword [0x180326598], rax
mov qword [0x180325218], rcx
nop dword [rax]
mov rax, rcx
shr rax, 0x3e
xor rcx, rax
imul rcx, r12
add rcx, rdi
mov qword [rbp + rdi*8 + 8], rcx
inc rdi
cmp rdi, 0x138
jb 0x180082610
mov dword [0x180325210], 0x138
lea rcx, [0x180322ae0]
call fcn.1800a916c
movss xmm2, dword [rsi + 0x34]
cvtps2pd xmm2, xmm2
movss xmm0, dword [rsi + 0x38]
cvtps2pd xmm0, xmm0
mov rcx, rbp
call fcn.180087450
mov rcx, rax
xorps xmm1, xmm1
test rax, rax
js 0x1800826a0
cvtsi2sd xmm1, rax
jmp 0x1800826b2
comisd xmm9, xmm7
jbe 0x18008267f
movaps xmm1, xmm10
jmp 0x180082687
movsd xmm1, qword [0x18030b500]
movsd xmm7, qword [0x18030b560]
divsd xmm6, xmm7
mulsd xmm6, xmm0
mulsd xmm6, xmm1
jmp 0x1800825bb
shr rax, 1
and ecx, 1
or rax, rcx
cvtsi2sd xmm1, rax
addsd xmm1, xmm1
subsd xmm1, xmm9
addsd xmm1, xmm9
mulsd xmm1, qword [0x18030b410]
subsd xmm0, xmm2
mulsd xmm1, xmm0
addsd xmm1, xmm2
cmp byte [rsi + 0x44], 0
jne 0x1800826f5
movaps xmm2, xmm8
andps xmm2, xmmword [0x18030b7e0]
movd xmm0, ebx
cvtdq2pd xmm0, xmm0
comisd xmm2, xmm0
ja 0x180082746
dec ebx
test ebx, ebx
jg 0x1800826e1
movaps xmm0, xmm1
mulsd xmm0, xmm8
divsd xmm0, xmm7
movsd qword [r15], xmm6
movsd qword [r15 + 8], xmm0
mov rax, r15
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
movaps xmm6, xmmword [rsp + 0x60]
movaps xmm7, xmmword [rsp + 0x50]
movaps xmm8, xmmword [r11 - 0x30]
movaps xmm9, xmmword [r11 - 0x40]
movaps xmm10, xmmword [r11 - 0x50]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
comisd xmm9, xmm8
ja 0x180082756
movsd xmm10, qword [0x18030b500]
divsd xmm0, xmm7
mulsd xmm0, xmm1
mulsd xmm0, xmm10
jmp 0x180082701