Function at 0x140003660
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.14000f040
sub rsp, rax
mov rax, qword [0x14004b070]
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.14000e08c
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 0x1400036c0
mov dword [rbp + 0x50], 0x270
xor edx, edx
mov r8d, 0xf8
lea rcx, [rsp + 0x50]
call fcn.140010f40
lea rcx, [0x140000000]
lea rax, [rcx + 0x43e98]
mov qword [rsp + 0x50], rax
lea rax, [rcx + 0x43d98]
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.14000a9a0
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.14000a700
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.14000d350
mov edx, eax
shl rdx, 4
shr rdx, 0x20
lea rcx, [rsp + 0x60]
call fcn.140007960
sub rdi, 1
jne 0x140003800
lea rdx, [0x140043a3c]
lea rcx, [rsp + 0x60]
call fcn.14000b0e0
mov edi, 4
nop dword [rax]
lea rcx, [rbp + 0x50]
call fcn.14000d350
mov edx, eax
shl rdx, 4
shr rdx, 0x20
lea rcx, [rsp + 0x60]
call fcn.140007960
sub rdi, 1
jne 0x140003840
lea rdx, [0x140043a40]
lea rcx, [rsp + 0x60]
call fcn.14000b0e0
mov edi, 3
mov esi, edi
nop dword [rax + rax]
lea rcx, [rbp + 0x50]
call fcn.14000d350
mov edx, eax
shl rdx, 4
shr rdx, 0x20
lea rcx, [rsp + 0x60]
call fcn.140007960
sub rsi, 1
jne 0x140003880
lea rdx, [0x140043a44]
lea rcx, [rsp + 0x60]
call fcn.14000b0e0
lea rcx, [rbp + 0x50]
call fcn.14000d350
mov edx, eax
shl rdx, 4
shr rdx, 0x20
lea rcx, [rsp + 0x60]
call fcn.140007960
sub rdi, 1
jne 0x1400038b4
lea rdx, [0x140043a3c]
lea rcx, [rsp + 0x60]
call fcn.14000b0e0
mov edi, 0xc
nop dword [rax]
lea rcx, [rbp + 0x50]
call fcn.14000d350
mov edx, eax
shl rdx, 4
shr rdx, 0x20
lea rcx, [rsp + 0x60]
call fcn.140007960
sub rdi, 1
jne 0x1400038f0
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 0x140003961
mov rax, qword [rbp - 0x58]
mov r8, qword [rax]
test r8, r8
je 0x140003961
mov rax, qword [rbp - 0x78]
mov rdx, qword [rax]
cmp r8, qword [rbp - 0x30]
cmovb r8, qword [rbp - 0x30]
sub r8, rdx
jmp 0x140003992
test cl, 4
jne 0x140003988
mov rax, qword [rbp - 0x60]
mov rcx, qword [rax]
test rcx, rcx
je 0x140003988
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 0x140003992
mov r8, qword [rsp + 0x38]
mov rdx, qword [rsp + 0x30]
test rdx, rdx
je 0x1400039a0
mov rcx, rbx
call fcn.140009560
nop
lea rcx, [rsp + 0x50]
call fcn.1400039e0
mov rax, rbx
mov rcx, qword [rbp + 0x13e0]
xor rcx, rsp
call fcn.14000e9e0
lea r11, [rsp + 0x14f0]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret