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

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x13e0]
mov eax, 0x14e0
call fcn.1400104a0
sub rsp, rax
mov rax, qword [0x14012de80]
xor rax, rsp
mov qword [rbp + 0x13d0], rax
mov rdi, rcx
mov qword [rsp + 0x48], rcx
xor r14d, r14d
mov dword [rsp + 0x20], r14d
call fcn.14000e1d8
mov dword [rbp + 0x13c4], 0xffffffff
mov dword [rbp + 0x44], eax
lea ecx, [r14 + 1]
nop
mov edx, eax
shr edx, 0x1e
xor edx, eax
imul eax, edx, 0x6c078965
add eax, ecx
mov dword [rbp + rcx*4 + 0x44], eax
inc rcx
cmp rcx, 0x270
jb 0x140004b00
mov dword [rbp + 0x40], 0x270
xor edx, edx
mov r8d, 0xe8
lea rcx, [rsp + 0x50]
call fcn.1400350d0
lea rax, [0x1400378d8]
mov qword [rsp + 0x50], rax
mov qword [rbp - 0x20], r14
mov qword [rbp - 0x18], r14
mov dword [rbp - 0x10], r14d
mov qword [rbp - 8], r14
xorps xmm0, xmm0
movdqa xmmword [rbp], xmm0
xorps xmm1, xmm1
movdqa xmmword [rbp + 0x10], xmm1
movdqa xmmword [rbp + 0x20], xmm0
mov byte [rbp + 0x30], r14b
mov dword [rsp + 0x20], 2
lea r12, vtable.std::basic_ostream_char__struct_std::char_traits_char__.0
mov qword [rbp - 0x28], r12
mov dword [rbp - 0x2c], 0x78
xor r8d, r8d
lea rdx, [rsp + 0x58]
lea rcx, [rbp - 0x28]
call fcn.140008170
nop
mov rax, qword [rsp + 0x50]
movsxd rcx, dword [rax + 4]
lea r15, vtable.std::basic_ostringstream_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov qword [rsp + rcx + 0x50], r15
mov rax, qword [rsp + 0x50]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x88]
mov dword [rsp + rcx + 0x4c], edx
lea rcx, [rsp + 0x58]
call fcn.140003330
lea rax, vtable.std::basic_stringbuf_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov qword [rsp + 0x58], rax
mov qword [rbp - 0x40], r14
mov dword [rbp - 0x38], 4
lea rax, [rbp + 0x40]
mov qword [rsp + 0x28], rax
mov esi, 8
lea rcx, [rsp + 0x28]
call fcn.140004f70
mov ebx, eax
shl rbx, 8
shr rbx, 0x20
mov edx, 2
lea rcx, [rsp + 0x30]
call fcn.14000e104
mov r8, qword [rax]
mov rcx, qword [rsp + 0x50]
movsxd rdx, dword [rcx + 4]
lea rcx, [rsp + 0x50]
add rcx, rdx
mov rdx, qword [rax + 8]
call r8
mov rax, qword [rsp + 0x50]
movsxd rcx, dword [rax + 4]
mov byte [rbp + rcx - 0x58], 0x30
mov rax, qword [rsp + 0x50]
movsxd rcx, dword [rax + 4]
mov eax, dword [rsp + rcx + 0x68]
and eax, 0xfffff9ff
bts eax, 0xb
mov dword [rsp + rcx + 0x68], eax
mov edx, ebx
lea rcx, [rsp + 0x50]
call fcn.140004130
sub rsi, 1
jne 0x140004bf0
xorps xmm0, xmm0
movups xmmword [rdi], xmm0
mov qword [rdi + 0x10], r14
mov qword [rdi + 0x18], 0xf
mov byte [rdi], sil
mov dword [rsp + 0x20], 0x12
movups xmmword [rsp + 0x30], xmm0
mov rcx, r14
mov edx, dword [rbp - 0x38]
mov eax, edx
and al, 0x22
cmp al, 2
je 0x140004cbd
mov rax, qword [rbp - 0x68]
mov rbx, qword [rax]
test rbx, rbx
je 0x140004cbd
mov rax, qword [rsp + 0x78]
mov r9, qword [rax]
cmp rbx, qword [rbp - 0x40]
cmovb rbx, qword [rbp - 0x40]
sub rbx, r9
mov rcx, r9
jmp 0x140004cf0
test dl, 4
jne 0x140004d1f
mov rax, qword [rbp - 0x70]
mov rdx, qword [rax]
mov rbx, r14
test rdx, rdx
je 0x140004ceb
mov rax, qword [rsp + 0x70]
mov r9, qword [rax]
mov rax, qword [rbp - 0x58]
movsxd rbx, dword [rax]
add rbx, rdx
sub rbx, r9
mov rcx, r9
jmp 0x140004cf0
mov r9, qword [rsp + 0x30]
test rcx, rcx
je 0x140004d1f
mov rcx, rdi
cmp rbx, 0xf
ja 0x140004d13
mov qword [rdi + 0x10], rbx
mov r8, rbx
mov rdx, r9
call fcn.140034a30
mov byte [rdi + rbx], 0
jmp 0x140004d1f
xor r8d, r8d
mov rdx, rbx
call fcn.140002490
nop
mov rax, qword [rsp + 0x50]
movsxd rcx, dword [rax + 4]
mov qword [rsp + rcx + 0x50], r15
mov rax, qword [rsp + 0x50]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x88]
mov dword [rsp + rcx + 0x4c], edx
lea rcx, [rsp + 0x58]
call fcn.140003e60
mov rax, qword [rsp + 0x50]
movsxd rcx, dword [rax + 4]
mov qword [rsp + rcx + 0x50], r12
mov rcx, qword [rsp + 0x50]
movsxd rdx, dword [rcx + 4]
lea r8d, [rdx - 0x10]
mov dword [rsp + rdx + 0x4c], r8d
lea rax, vtable.std::ios_base.0
mov qword [rbp - 0x28], rax
lea rcx, [rbp - 0x28]
call fcn.14000e00c
nop
mov rax, rdi
mov rcx, qword [rbp + 0x13d0]
xor rcx, rsp
call fcn.140010500
lea r11, [rsp + 0x14e0]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret