Function at 0x180072050
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 [0x1802fedb8]
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 [0x180305bf8], eax
jle 0x180072137
lea rcx, [0x180305bf8]
call fcn.18008fc08
cmp dword [0x180305bf8], 0xffffffff
jne 0x180072137
call qword [sym.imp.MSVCP140.dll_unsigned_int___cdecl_std::_Random_device_void_]
mov ecx, eax
mov qword [0x1803034c8], rbx
mov qword [0x180302148], rcx
mov edx, edi
lea r8, [0x180302148]
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 0x180072100
mov dword [0x180302140], 0x138
lea rcx, [0x180305bf8]
call fcn.18008fb9c
movsd xmm7, qword [rbp]
lea rbx, [0x180306f90]
mov eax, dword [r14 + r13]
cmp dword [0x18030213c], eax
jle 0x1800721c8
lea rcx, [0x18030213c]
call fcn.18008fc08
cmp dword [0x18030213c], 0xffffffff
jne 0x1800721c8
call qword [sym.imp.MSVCP140.dll_unsigned_int___cdecl_std::_Random_device_void_]
mov ecx, eax
movabs rax, 0x5555555555555555
mov qword [0x180308318], rax
mov qword [0x180306f98], 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 0x180072190
mov dword [0x180306f90], 0x138
lea rcx, [0x18030213c]
call fcn.18008fb9c
movss xmm1, dword [rsi + 0x30]
cvtps2pd xmm1, xmm1
movss xmm2, dword [rsi + 0x2c]
cvtps2pd xmm2, xmm2
mov rcx, rbx
call fcn.180077040
mov rcx, rax
xorps xmm0, xmm0
test rax, rax
js 0x1800721f2
cvtsi2sd xmm0, rax
jmp 0x180072204
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 [0x1802f0280]
subsd xmm1, xmm2
mulsd xmm0, xmm1
addsd xmm0, xmm2
movsd xmm10, qword [0x1802f0458]
mov ebx, 0x1e
cmp byte [rsi + 0x44], 0
jne 0x180072268
mov eax, ebx
movaps xmm1, xmm7
andps xmm1, xmmword [0x1802f05b0]
nop word [rax + rax]
movd xmm6, eax
cvtdq2pd xmm6, xmm6
comisd xmm1, xmm6
ja 0x180072332
dec eax
test eax, eax
jg 0x180072250
movaps xmm6, xmm0
mulsd xmm6, xmm7
movsd xmm7, qword [0x1802f03b0]
divsd xmm6, xmm7
movsd xmm8, qword [rbp + 8]
lea rbp, [0x180305c00]
mov eax, dword [r14 + r13]
cmp dword [0x1803034d0], eax
jle 0x180072308
lea rcx, [0x1803034d0]
call fcn.18008fc08
cmp dword [0x1803034d0], 0xffffffff
jne 0x180072308
call qword [sym.imp.MSVCP140.dll_unsigned_int___cdecl_std::_Random_device_void_]
mov ecx, eax
movabs rax, 0x5555555555555555
mov qword [0x180306f88], rax
mov qword [0x180305c08], 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 0x1800722d0
mov dword [0x180305c00], 0x138
lea rcx, [0x1803034d0]
call fcn.18008fb9c
movss xmm2, dword [rsi + 0x34]
cvtps2pd xmm2, xmm2
movss xmm0, dword [rsi + 0x38]
cvtps2pd xmm0, xmm0
mov rcx, rbp
call fcn.180077040
mov rcx, rax
xorps xmm1, xmm1
test rax, rax
js 0x180072360
cvtsi2sd xmm1, rax
jmp 0x180072372
comisd xmm9, xmm7
jbe 0x18007233f
movaps xmm1, xmm10
jmp 0x180072347
movsd xmm1, qword [0x1802f0360]
movsd xmm7, qword [0x1802f03b0]
divsd xmm6, xmm7
mulsd xmm6, xmm0
mulsd xmm6, xmm1
jmp 0x18007227b
shr rax, 1
and ecx, 1
or rax, rcx
cvtsi2sd xmm1, rax
addsd xmm1, xmm1
subsd xmm1, xmm9
addsd xmm1, xmm9
mulsd xmm1, qword [0x1802f0280]
subsd xmm0, xmm2
mulsd xmm1, xmm0
addsd xmm1, xmm2
cmp byte [rsi + 0x44], 0
jne 0x1800723b5
movaps xmm2, xmm8
andps xmm2, xmmword [0x1802f05b0]
movd xmm0, ebx
cvtdq2pd xmm0, xmm0
comisd xmm2, xmm0
ja 0x180072406
dec ebx
test ebx, ebx
jg 0x1800723a1
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 0x180072416
movsd xmm10, qword [0x1802f0360]
divsd xmm0, xmm7
mulsd xmm0, xmm1
mulsd xmm0, xmm10
jmp 0x1800723c1