Function at 0x1400afd90
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 - 0x1420]
mov eax, 0x1520
call fcn.140148ef0
sub rsp, rax
movaps xmmword [rsp + 0x1510], xmm6
mov rax, qword [0x14018e080]
xor rax, rsp
mov qword [rbp + 0x1400], rax
mov r14, rcx
mov qword [rsp + 0x50], rcx
xor ebx, ebx
call qword [0x140151588]
mov edx, eax
mov dword [rbp + 0x13f4], 0xffffffff
mov dword [rbp + 0x74], eax
lea ecx, [rbx + 1]
nop
mov eax, edx
shr eax, 0x1e
xor eax, edx
imul edx, eax, 0x6c078965
add edx, ecx
mov dword [rbp + rcx*4 + 0x74], edx
inc rcx
cmp rcx, 0x270
jb 0x1400afdf0
mov dword [rbp + 0x70], 0x270
movups xmm0, xmmword [0x140173b38]
movups xmmword [rsp + 0x28], xmm0
movzx eax, byte [0x140173b48]
mov byte [rsp + 0x38], al
mov ecx, ebx
cmp dword [0x14018e0d8], 2
jl 0x1400aff7a
movdqa xmm5, xmmword [0x1401781d0]
movdqa xmm4, xmmword [0x140178550]
movdqa xmm6, xmmword [0x140178270]
movdqa xmm0, xmmword [0x140178360]
movdqa xmmword [rsp + 0x50], xmm0
lea rdx, [rsp + 0x2c]
mov r8d, dword [rsp + 0x50]
nop dword [rax]
movd xmm2, ecx
pshufd xmm2, xmm2, 0
paddd xmm2, xmm5
movdqa xmm1, xmm2
punpckldq xmm1, xmm2
pmuldq xmm1, xmm4
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
pmuldq xmm0, xmm4
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm2
psrad xmm1, 5
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm6
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
andps xmm2, xmmword [0x140178340]
packuswb xmm2, xmm2
movd xmm0, r8d
paddb xmm2, xmm0
movd xmm0, dword [rdx - 4]
xorps xmm2, xmm0
movd dword [rdx - 4], xmm2
lea eax, [rcx + 4]
movd xmm3, eax
pshufd xmm3, xmm3, 0
paddd xmm3, xmm5
movdqa xmm1, xmm3
punpckldq xmm1, xmm3
pmuldq xmm1, xmm4
movdqa xmm0, xmm3
punpckhdq xmm0, xmm3
pmuldq xmm0, xmm4
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm3
psrad xmm1, 5
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm6
psubd xmm3, xmm0
pshuflw xmm0, xmm3, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
andps xmm2, xmmword [0x140178340]
packuswb xmm2, xmm2
movd xmm0, r8d
paddb xmm2, xmm0
movd xmm0, dword [rdx]
xorps xmm2, xmm0
movd dword [rdx], xmm2
add ecx, 8
lea rdx, [rdx + 8]
cmp ecx, 0x10
jl 0x1400afe70
cmp ecx, 0x11
jge 0x1400affbe
movsxd rax, ecx
lea r8, [rsp + 0x28]
add r8, rax
nop word [rax + rax]
mov eax, 0x8fb823ef
imul ecx
add edx, ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul edx, eax, 0x39
movzx eax, cl
sub al, dl
add al, 0x30
xor byte [r8], al
inc ecx
lea r8, [r8 + 1]
cmp ecx, 0x11
jl 0x1400aff90
xorps xmm0, xmm0
movups xmmword [rsp + 0x50], xmm0
mov qword [rsp + 0x60], rbx
mov qword [rsp + 0x68], rbx
lea rax, [rsp + 0x28]
mov r8, 0xffffffffffffffff
nop dword [rax]
inc r8
cmp byte [rax + r8], bl
jne 0x1400affe0
lea rdx, [rsp + 0x28]
lea rcx, [rsp + 0x50]
call fcn.140059090
nop
xor edx, edx
mov r8d, 0xf8
lea rcx, [rsp + 0x70]
call fcn.140149da4
lea rcx, [rsp + 0x70]
call fcn.14005ea60
nop
movzx eax, word [0x140173994]
mov word [rsp + 0x20], ax
movzx eax, byte [0x140173996]
mov byte [rsp + 0x20], 0x30
xor byte [rsp + 0x21], 0x31
xor al, 0x32
mov byte [rsp + 0x22], al
lea rdx, [rsp + 0x20]
lea rcx, [rbp - 0x80]
call fcn.14008a2b0
mov ebx, 2
mov rdi, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x50]
test bl, 1
jne 0x1400b0088
movzx eax, word [0x140173bf8]
mov word [rsp + 0x20], ax
cmp byte [0x140173bf9], 0
je 0x1400b007a
mov byte [rsp + 0x20], 0x2d
xor byte [rsp + 0x21], 0x31
lea rdx, [rsp + 0x20]
lea rcx, [rbp - 0x80]
call fcn.14008a2b0
lea rcx, [rbp + 0x70]
call fcn.14008b570
mov ecx, eax
shl rcx, 4
shr rcx, 0x20
lea rax, [rsp + 0x50]
cmp rdi, 0xf
cmova rax, rsi
movsxd rdx, ecx
movzx edx, byte [rdx + rax]
lea rcx, [rbp - 0x80]
call fcn.1400afba0
inc ebx
cmp ebx, 0xc
jl 0x1400b0056
mov rdx, r14
lea rcx, [rbp - 0x78]
call fcn.14005f0d0
nop
mov rax, qword [rsp + 0x70]
movsxd rcx, dword [rax + 4]
lea rax, [0x1401701c0]
mov qword [rsp + rcx + 0x70], rax
mov rcx, qword [rsp + 0x70]
movsxd rdx, dword [rcx + 4]
lea r8d, [rdx - 0x98]
mov dword [rsp + rdx + 0x6c], r8d
lea rcx, [rbp - 0x78]
call fcn.14005e9a0
lea rcx, [rbp - 0x70]
call qword [0x140151538]
lea rcx, [rbp + 8]
call qword [0x140151520]
nop
lea rcx, [rsp + 0x50]
call fcn.14003d650
mov rax, r14
mov rcx, qword [rbp + 0x1400]
xor rcx, rsp
call fcn.140148480
lea r11, [rsp + 0x1520]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
movaps xmm6, xmmword [r11 - 0x10]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret