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

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x1350]
mov eax, 0x1450
call fcn.1402691b0
sub rsp, rax
mov rax, qword [0x1402bf270]
xor rax, rsp
mov qword [rbp + 0x1340], rax
mov rdi, rdx
mov qword [rsp + 0x48], rdx
mov rbx, rcx
mov qword [rsp + 0x40], rcx
mov qword [rsp + 0x28], rcx
movdqa xmm0, xmmword [0x1402a31e0]
movdqa xmmword [rsp + 0x50], xmm0
movdqa xmm1, xmmword [0x1402a3090]
movdqa xmmword [rsp + 0x60], xmm1
movdqa xmm0, xmmword [0x1402a2f80]
movdqa xmmword [rsp + 0x70], xmm0
movdqa xmm1, xmmword [0x1402a2fc0]
movdqa xmmword [rbp - 0x80], xmm1
xor ecx, ecx
nop dword [rax]
nop dword [rax + rax]
movzx eax, byte [rsp + 0x50]
xor byte [rsp + rcx + 0x51], al
movzx eax, byte [rsp + 0x50]
xor byte [rsp + rcx + 0x52], al
add rcx, 2
cmp rcx, 0x3e
jb 0x140197770
mov byte [rbp - 0x71], 0
mov qword [rbp - 0x70], 0
mov qword [rbp - 0x60], 0
mov qword [rbp - 0x58], reloc.WS2_32.dll_ntohs
mov byte [rbp - 0x70], 0
lea rax, [rsp + 0x51]
mov rsi, 0xffffffffffffffff
mov r8, rsi
nop dword [rax + rax]
inc r8
cmp byte [rax + r8], 0
jne 0x1401977c0
lea rdx, [rsp + 0x51]
lea rcx, [rbp - 0x70]
call fcn.14014d7f0
nop
call qword [sym.imp.MSVCP140.dll_unsigned_int___cdecl_std::_Random_device_void_]
mov edx, eax
mov r11d, 0xffffffff
mov dword [rbp + 0x1334], r11d
mov dword [rbp - 0x4c], eax
mov r15d, 1
mov ecx, r15d
nop word [rax + rax]
mov eax, edx
shr eax, 0x1e
xor eax, edx
imul edx, eax, 0x6c078965
add edx, ecx
mov dword [rbp + rcx*4 - 0x4c], edx
inc rcx
cmp rcx, 0x270
jb 0x140197800
mov dword [rbp - 0x50], 0x270
lea rdx, [rbp - 0x70]
mov r8, qword [rbp - 0x70]
mov r9, qword [rbp - 0x58]
cmp r9, 0x10
cmovae rdx, r8
mov rcx, qword [rbp - 0x60]
add rdx, rcx
mov qword [rsp + 0x38], rdx
lea r10, [rbp - 0x70]
cmp r9, 0x10
cmovae r10, r8
mov qword [rsp + 0x20], r10
mov r13d, 0x40
nop dword [rax]
lea r13, [r13 - 1]
shr rsi, 1
cmp rsi, r11
ja 0x140197860
cmp r10, rdx
je 0x140197959
lea rax, [r10 + 1]
cmp rax, rdx
je 0x140197959
mov rcx, r15
sub rcx, r10
mov qword [rsp + 0x28], rcx
nop dword [rax]
lea rax, [r15 + r10]
mov qword [rsp + 0x30], rax
lea r12, [rax + rcx]
nop dword [rax]
xor ebx, ebx
xor edi, edi
test r15, r15
je 0x1401978e5
nop dword [rax]
lea rcx, [r13 - 1]
shl rbx, cl
add rbx, rbx
nop word [rax + rax]
lea rcx, [rbp - 0x50]
call fcn.14019a370
mov eax, eax
cmp rax, rsi
ja 0x1401978c0
or rbx, rax
lea rcx, [r13 - 1]
shl rdi, cl
add rdi, rdi
or rdi, rsi
cmp rdi, r15
jb 0x1401978b0
xor edx, edx
mov rax, rdi
div r12
mov r8, rdx
mov rcx, rax
xor edx, edx
mov rax, rbx
div r12
cmp rax, rcx
jb 0x140197905
cmp r8, r15
jne 0x1401978a0
xor edx, edx
mov rax, rbx
div r12
mov r10, qword [rsp + 0x20]
cmp rdx, r15
je 0x14019792c
mov r8, qword [rsp + 0x30]
movzx ecx, byte [r8]
movzx eax, byte [rdx + r10]
mov byte [r8], al
mov byte [rdx + r10], cl
inc r15
lea rax, [r15 + r10]
cmp rax, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x28]
jne 0x140197890
mov r9, qword [rbp - 0x58]
mov rcx, qword [rbp - 0x60]
mov r8, qword [rbp - 0x70]
mov rbx, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
mov qword [rbx], 0
mov qword [rbx + 0x10], 0
mov qword [rbx + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rbx], 0
cmp rcx, rdi
cmovb rdi, rcx
lea rdx, [rbp - 0x70]
cmp r9, 0x10
cmovae rdx, r8
mov r8, rdi
mov rcx, rbx
call fcn.14014d7f0
nop
mov rdx, qword [rbp - 0x58]
cmp rdx, 0x10
jb 0x1401979d0
inc rdx
mov rcx, qword [rbp - 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1401979cb
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1401979cb
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140268610
mov rax, rbx
mov rcx, qword [rbp + 0x1340]
xor rcx, rsp
call fcn.1402683a0
mov rbx, qword [rsp + 0x14a0]
add rsp, 0x1450
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret