Function at 0x140006e20
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push rbp
push rbx
push rdi
lea rbp, [rsp - 0x1320]
mov eax, 0x1420
call fcn.14007bd40
sub rsp, rax
mov rax, qword [0x140095028]
xor rax, rsp
mov qword [rbp + 0x12c0], rax
mov rdi, rcx
call qword [sym.imp.MSVCP140.dll_unsigned_int___cdecl_std::_Random_device_void_]
mov dword [rbp + 0x12b4], 0xffffffff
mov edx, 1
mov dword [rsp + 0x34], eax
nop word [rax + rax]
mov ecx, eax
shr ecx, 0x1e
xor ecx, eax
imul eax, ecx, 0x6c078965
add eax, edx
mov dword [rsp + rdx*4 + 0x34], eax
inc rdx
cmp rdx, 0x270
jb 0x140006e70
mov eax, dword [rdi + 0x20]
mov ebx, 0x270
mov dword [rsp + 0x30], ebx
test eax, eax
je 0x140007193
mov qword [rsp + 0x1448], rsi
mov qword [rsp + 0x1450], r14
xor r14d, r14d
movaps xmmword [rsp + 0x1410], xmm6
xorps xmm6, xmm6
movaps xmmword [rsp + 0x1400], xmm7
movsd xmm7, qword [0x140089438]
movaps xmmword [rsp + 0x13f0], xmm8
movsd xmm8, qword [0x1400893c8]
movaps xmmword [rsp + 0x13e0], xmm9
movss xmm9, dword [0x140089428]
movaps xmmword [rsp + 0x13d0], xmm10
movss xmm10, dword [0x140089410]
nop word [rax + rax]
cmp byte [rdi + 0xd], r14b
je 0x140007158
cmp eax, 2
jne 0x140006f5d
movss xmm1, dword [rdi + 0x48]
movd xmm2, dword [rdi + 0x84]
movaps xmm0, xmm1
cvtdq2ps xmm2, xmm2
subss xmm0, xmm2
divss xmm2, xmm1
cvttss2si eax, xmm0
mulss xmm2, xmm9
test eax, eax
cmovs eax, r14d
addss xmm2, xmm10
mov dword [rdi + 0x50], eax
cvttss2si eax, xmm2
mov dword [rdi + 0x4c], eax
jmp 0x14000713a
mov r10d, dword [rdi + 0x34]
mov r11d, dword [rdi + 0x30]
cmp r10d, r11d
jne 0x140006f7c
mov dword [rdi + 0x68], r10d
mov qword [rsp + 0x20], 0xa
jmp 0x140007143
movaps xmm1, xmm6
movaps xmm2, xmm8
mov esi, 2
cmp ebx, 0x270
jne 0x140006fe2
lea r8, [rsp + 0x38]
mov r9d, ebx
nop dword [rax + rax]
mov edx, dword [r8 - 4]
xor edx, dword [r8]
lea r8, [r8 + 4]
btr edx, 0x1f
xor edx, dword [r8 - 8]
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, edx
xor ecx, dword [r8 + 0x62c]
mov dword [r8 + 0x9b8], ecx
sub r9, 1
jne 0x140006fa0
mov ebx, dword [rsp + 0x30]
jmp 0x1400070be
cmp ebx, 0x4e0
jb 0x1400070be
mov r8, r14
mov eax, dword [rbp + r8*4 + 0x8f4]
mov edx, eax
xor edx, dword [rbp + r8*4 + 0x8f8]
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [rbp + r8*4 + 0xf28]
xor ecx, edx
mov dword [rsp + r8*4 + 0x34], ecx
inc r8
cmp r8, 0xe3
jb 0x140006ff1
mov r8d, 0xe3
nop word [rax + rax]
mov eax, dword [rbp + r8*4 + 0x8f4]
mov edx, eax
xor edx, dword [rbp + r8*4 + 0x8f8]
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [rbp + r8*4 - 0x458]
xor ecx, edx
mov dword [rsp + r8*4 + 0x34], ecx
inc r8
cmp r8, 0x26f
jb 0x140007040
mov edx, dword [rbp + 0x12b0]
mov ebx, r14d
mov eax, dword [rsp + 0x34]
and edx, 0x80000000
btr eax, 0x1f
mov dword [rsp + 0x30], ebx
or edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, edx
xor ecx, dword [rbp + 0x564]
mov dword [rbp + 0x8f0], ecx
mov eax, ebx
xorps xmm0, xmm0
inc ebx
mov ecx, dword [rsp + rax*4 + 0x34]
mov eax, ecx
shr eax, 0xb
and eax, dword [rbp + 0x12b4]
xor ecx, eax
mov dword [rsp + 0x30], ebx
mov eax, ecx
and eax, 0xff3a58ad
shl eax, 7
xor ecx, eax
mov eax, ecx
and eax, 0xffffdf8c
shl eax, 0xf
xor ecx, eax
mov eax, ecx
shr eax, 0x12
xor eax, ecx
cvtsi2sd xmm0, rax
subsd xmm0, xmm6
mulsd xmm0, xmm2
mulsd xmm2, xmm7
addsd xmm1, xmm0
sub rsi, 1
jne 0x140006f88
divsd xmm1, xmm2
sub r11d, r10d
movd xmm0, r11d
cvtdq2pd xmm0, xmm0
addsd xmm1, xmm6
mulsd xmm0, xmm1
cvttsd2si eax, xmm0
add eax, r10d
mov dword [rdi + 0x38], eax
mov qword [rsp + 0x20], 1
lea rcx, [rsp + 0x20]
call fcn.140008b00
mov eax, dword [rdi + 0x20]
test eax, eax
jne 0x140006f10
movaps xmm9, xmmword [rsp + 0x13e0]
movaps xmm8, xmmword [rsp + 0x13f0]
movaps xmm7, xmmword [rsp + 0x1400]
movaps xmm6, xmmword [rsp + 0x1410]
mov r14, qword [rsp + 0x1450]
mov rsi, qword [rsp + 0x1448]
movaps xmm10, xmmword [rsp + 0x13d0]
mov rcx, qword [rbp + 0x12c0]
xor rcx, rsp
call fcn.14007ac70
add rsp, 0x1420
pop rdi
pop rbx
pop rbp
ret