Function at 0x140004fe0
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 r14
lea rbp, [rsp - 0x13f0]
mov eax, 0x14f0
call fcn.140010bf0
sub rsp, rax
mov rax, qword [0x140050070]
xor rax, rsp
mov qword [rbp + 0x13e0], rax
mov rbx, rcx
mov qword [rsp + 0x48], rcx
xor r14d, r14d
mov dword [rsp + 0x20], r14d
call fcn.14000fc3c
mov edx, eax
mov dword [rbp + 0x13d4], 0xffffffff
mov dword [rbp + 0x54], eax
lea eax, [r14 + 1]
nop dword [rax]
mov ecx, edx
shr ecx, 0x1e
xor ecx, edx
imul edx, ecx, 0x6c078965
add edx, eax
mov dword [rbp + rax*4 + 0x54], edx
inc rax
cmp rax, 0x270
jb 0x140005040
mov dword [rbp + 0x50], 0x270
xor edx, edx
mov r8d, 0xf8
lea rcx, [rsp + 0x50]
call fcn.140012af0
lea rcx, [0x140000000]
lea rax, [rcx + 0x49138]
mov qword [rsp + 0x50], rax
lea rax, [rcx + 0x49038]
mov qword [rsp + 0x60], rax
mov qword [rbp - 0x10], r14
mov qword [rbp + 0x18], r14
xorps xmm0, xmm0
movdqa xmmword [rbp + 0x20], xmm0
mov edi, 8
mov dword [rsp + 0x20], edi
lea rax, vtable.std::basic_istream_char__struct_std::char_traits_char__.0
mov qword [rbp - 0x18], rax
mov dword [rbp - 0x1c], 0x80
mov qword [rsp + 0x58], r14
lea rdx, [rsp + 0x68]
lea rcx, [rbp - 0x18]
call fcn.14000c670
nop
mov rax, qword [rsp + 0x60]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ostream_char__struct_std::char_traits_char__.0
mov qword [rsp + rcx + 0x60], rax
mov rax, qword [rsp + 0x60]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x10]
mov dword [rsp + rcx + 0x5c], edx
mov rax, qword [rsp + 0x50]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_iostream_char__struct_std::char_traits_char__.0
mov qword [rsp + rcx + 0x50], rax
mov rax, qword [rsp + 0x50]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x20]
mov dword [rsp + rcx + 0x4c], edx
mov rax, qword [rsp + 0x50]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_stringstream_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov qword [rsp + rcx + 0x50], rax
mov rax, qword [rsp + 0x50]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x98]
mov dword [rsp + rcx + 0x4c], edx
lea rcx, [rsp + 0x68]
call fcn.14000c3d0
lea rax, vtable.std::basic_stringbuf_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov qword [rsp + 0x68], rax
mov qword [rbp - 0x30], r14
mov dword [rbp - 0x28], r14d
mov rax, qword [rsp + 0x60]
movsxd rcx, dword [rax + 4]
mov eax, dword [rsp + rcx + 0x78]
and eax, 0xfffff9ff
bts eax, 0xb
mov dword [rsp + rcx + 0x78], eax
nop
lea rcx, [rbp + 0x50]
call fcn.14000ef00
mov edx, eax
shl rdx, 4
shr rdx, 0x20
lea rcx, [rsp + 0x60]
call fcn.140009450
sub rdi, 1
jne 0x140005180
lea rdx, [0x140048ce4]
lea rcx, [rsp + 0x60]
call fcn.14000cdb0
mov edi, 4
nop dword [rax]
lea rcx, [rbp + 0x50]
call fcn.14000ef00
mov edx, eax
shl rdx, 4
shr rdx, 0x20
lea rcx, [rsp + 0x60]
call fcn.140009450
sub rdi, 1
jne 0x1400051c0
lea rdx, [0x140048ce8]
lea rcx, [rsp + 0x60]
call fcn.14000cdb0
mov edi, 3
mov esi, edi
nop dword [rax + rax]
lea rcx, [rbp + 0x50]
call fcn.14000ef00
mov edx, eax
shl rdx, 4
shr rdx, 0x20
lea rcx, [rsp + 0x60]
call fcn.140009450
sub rsi, 1
jne 0x140005200
lea rdx, [0x140048cec]
lea rcx, [rsp + 0x60]
call fcn.14000cdb0
lea rcx, [rbp + 0x50]
call fcn.14000ef00
mov edx, eax
shl rdx, 4
shr rdx, 0x20
lea rcx, [rsp + 0x60]
call fcn.140009450
sub rdi, 1
jne 0x140005234
lea rdx, [0x140048ce4]
lea rcx, [rsp + 0x60]
call fcn.14000cdb0
mov edi, 0xc
nop dword [rax]
lea rcx, [rbp + 0x50]
call fcn.14000ef00
mov edx, eax
shl rdx, 4
shr rdx, 0x20
lea rcx, [rsp + 0x60]
call fcn.140009450
sub rdi, 1
jne 0x140005270
xorps xmm0, xmm0
movups xmmword [rbx], xmm0
mov qword [rbx + 0x10], r14
mov qword [rbx + 0x18], 0xf
mov byte [rbx], dil
mov dword [rsp + 0x20], 0xc
movups xmmword [rsp + 0x30], xmm0
mov ecx, dword [rbp - 0x28]
mov eax, ecx
and al, 0x22
cmp al, 2
je 0x1400052e1
mov rax, qword [rbp - 0x58]
mov r8, qword [rax]
test r8, r8
je 0x1400052e1
mov rax, qword [rbp - 0x78]
mov rdx, qword [rax]
cmp r8, qword [rbp - 0x30]
cmovb r8, qword [rbp - 0x30]
sub r8, rdx
jmp 0x140005312
test cl, 4
jne 0x140005308
mov rax, qword [rbp - 0x60]
mov rcx, qword [rax]
test rcx, rcx
je 0x140005308
mov rax, qword [rbp - 0x80]
mov rdx, qword [rax]
mov rax, qword [rbp - 0x48]
movsxd r8, dword [rax]
sub r8, rdx
add r8, rcx
jmp 0x140005312
mov r8, qword [rsp + 0x38]
mov rdx, qword [rsp + 0x30]
test rdx, rdx
je 0x140005320
mov rcx, rbx
call fcn.14000b1f0
nop
lea rcx, [rsp + 0x50]
call fcn.140005360
mov rax, rbx
mov rcx, qword [rbp + 0x13e0]
xor rcx, rsp
call fcn.140010590
lea r11, [rsp + 0x14f0]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret