Function at 0x140017fa0
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 - 0x1390]
mov eax, 0x1490
call fcn.140062470
sub rsp, rax
mov rax, qword [0x1401811c0]
xor rax, rsp
mov qword [rbp + 0x1380], rax
movsxd rsi, edx
mov rdi, rcx
mov qword [rsp + 0x20], rcx
xor r14d, r14d
movabs rax, 0x4f2750151f92436d
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x20]
mov qword [rsp + 0x70], rax
movabs rax, 0x187c78ff2606b1fa
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x20]
mov qword [rsp + 0x78], rax
movabs rax, 0x1fe02e20b0bae4e8
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x20]
mov qword [rbp - 0x80], rax
movabs rax, 0xa065fb2dda7bbbdb
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x20]
mov qword [rbp - 0x78], rax
movabs rax, 0x7daad6c4bbd6e516
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x20]
mov qword [rbp - 0x70], rax
movabs rax, 0xcb9396f91f587d83
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x20]
mov qword [rbp - 0x68], rax
movabs rax, 0x34d4355e4762dd1e
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x20]
mov qword [rbp - 0x60], rax
movabs rax, 0x54831f0bd4a301cd
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x20]
mov qword [rbp - 0x58], rax
movabs rax, 0x781165212ca0725d
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x20]
mov qword [rbp + 0x1340], rax
movabs rax, 0x7e191c9c446788c2
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x20]
mov qword [rbp + 0x1348], rax
movabs rax, 0x718d424bdad38c8f
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x20]
mov qword [rbp + 0x1350], rax
movabs rax, 0xd6108f5ea80acbb4
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x20]
mov qword [rbp + 0x1358], rax
movabs rax, 0x39e99485c1af9d61
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x20]
mov qword [rbp + 0x1360], rax
movabs rax, 0x87d8dcb0571f3bc6
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x20]
mov qword [rbp + 0x1368], rax
movabs rax, 0x6087670f172d9353
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x20]
mov qword [rbp + 0x1370], rax
movabs rax, 0x548345528cf45798
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x20]
mov qword [rbp + 0x1378], rax
movdqa xmm0, xmmword [rsp + 0x70]
xorps xmm0, xmmword [rbp + 0x1340]
movdqa xmmword [rsp + 0x70], xmm0
movdqa xmm1, xmmword [rbp - 0x80]
xorps xmm1, xmmword [rbp + 0x1350]
movdqa xmmword [rbp - 0x80], xmm1
movdqa xmm0, xmmword [rbp - 0x70]
xorps xmm0, xmmword [rbp + 0x1360]
movdqa xmmword [rbp - 0x70], xmm0
movdqa xmm1, xmmword [rbp - 0x60]
xorps xmm1, xmmword [rbp + 0x1370]
movdqa xmmword [rbp - 0x60], xmm1
xorps xmm0, xmm0
movups xmmword [rsp + 0x48], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x58], xmm1
lea rax, [rsp + 0x70]
mov rbx, 0xffffffffffffffff
mov r8, rbx
inc r8
cmp byte [rax + r8], r14b
jne 0x1400181e2
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x48]
call fcn.1400153f0
nop
call fcn.1400640ac
mov edx, eax
mov r10d, 0xffffffff
mov dword [rbp + 0x1334], r10d
mov dword [rbp - 0x4c], eax
mov eax, 1
nop word [rax + rax]
mov ecx, edx
shr ecx, 0x1e
xor ecx, edx
imul edx, ecx, 0x6c078965
add edx, eax
mov dword [rbp + rax*4 - 0x4c], edx
inc rax
cmp rax, 0x270
jb 0x140018220
mov dword [rbp - 0x50], 0x270
lea rdx, [rsp + 0x48]
cmp qword [rsp + 0x60], 0xf
cmova rdx, qword [rsp + 0x48]
add rdx, qword [rsp + 0x58]
lea r9, [rsp + 0x48]
cmp qword [rsp + 0x60], 0xf
cmova r9, qword [rsp + 0x48]
lea rax, [rbp - 0x50]
mov qword [rsp + 0x30], rax
mov eax, 0x40
nop word [rax + rax]
dec rax
shr rbx, 1
cmp rbx, r10
ja 0x140018280
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x38], rax
lea r8, [rsp + 0x30]
mov rcx, r9
call fcn.140015c70
lea r9, [rsp + 0x48]
mov r8, qword [rsp + 0x48]
mov rdx, qword [rsp + 0x60]
cmp rdx, 0xf
cmova r9, r8
add r9, rsi
lea rax, [rsp + 0x48]
cmp rdx, 0xf
cmova rax, r8
xorps xmm0, xmm0
movups xmmword [rdi], xmm0
mov qword [rdi + 0x10], r14
mov qword [rdi + 0x18], r14
cmp rax, r9
jne 0x1400182ed
mov qword [rdi + 0x10], r14
mov qword [rdi + 0x18], recv
mov byte [rdi], 0
jmp 0x140018308
sub r9, rax
mov r8, r9
mov rdx, rax
mov rcx, rdi
call fcn.1400153f0
mov rdx, qword [rsp + 0x60]
mov r8, qword [rsp + 0x48]
cmp rdx, 0xf
jbe 0x14001833a
inc rdx
mov rax, r8
cmp rdx, 0x1000
jb 0x140018332
add rdx, 0x27
mov r8, qword [r8 - 8]
sub rax, r8
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140018364
mov rcx, r8
call fcn.140062974
mov rax, rdi
mov rcx, qword [rbp + 0x1380]
xor rcx, rsp
call fcn.1400624d0
lea r11, [rsp + 0x1490]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
call fcn.14007332c
int3