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

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x1360]
mov eax, 0x1460
call fcn.14003a330
sub rsp, rax
movaps xmmword [rsp + 0x1450], xmm6
mov rax, qword [0x1401fec80]
xor rax, rsp
mov qword [rbp + 0x1340], rax
mov ebx, edx
mov rdi, rcx
mov qword [rsp + 0x40], rcx
xor esi, esi
mov dword [rsp + 0x24], esi
movups xmm0, xmmword [0x14003eb00]
movups xmmword [rsp + 0x50], xmm0
movups xmm1, xmmword [0x14003eb10]
movups xmmword [rsp + 0x60], xmm1
movups xmm0, xmmword [0x14003eb20]
movups xmmword [rsp + 0x70], xmm0
movups xmm1, xmmword [0x14003eb30]
movups xmmword [rbp - 0x80], xmm1
cmp dword [0x1401fec30], 2
jl 0x140013ce7
movdqa xmm5, xmmword [0x140040b80]
mov edx, esi
movdqa xmm4, xmmword [0x140040c40]
movdqa xmm6, xmmword [0x140040ba0]
movdqa xmm0, xmmword [str.1111111111111111]
movdqa xmmword [rsp + 0x30], xmm0
lea rcx, [rsp + 0x54]
mov r8d, dword [rsp + 0x30]
nop dword [rax]
nop dword [rax + rax]
movd xmm2, edx
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 [0x140040c10]
packuswb xmm2, xmm2
movd xmm0, r8d
paddb xmm2, xmm0
movd xmm0, dword [rcx - 4]
xorps xmm2, xmm0
movd dword [rcx - 4], xmm2
lea eax, [rdx + 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 [0x140040c10]
packuswb xmm2, xmm2
movd xmm0, r8d
paddb xmm2, xmm0
movd xmm0, dword [rcx]
xorps xmm2, xmm0
movd dword [rcx], xmm2
add edx, 8
lea rcx, [rcx + 8]
cmp edx, 0x40
jl 0x140013be0
jmp 0x140013d23
lea r9, [rsp + 0x50]
mov r8d, esi
nop
mov eax, 0x8fb823ef
imul r8d
add edx, r8d
sar edx, 5
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul ecx, eax, 0x39
movzx eax, r8b
sub al, cl
add al, 0x31
xor byte [r9], al
inc r8d
lea r9, [r9 + 1]
cmp r8d, 0x40
jl 0x140013cf0
xorps xmm0, xmm0
movups xmmword [rbp - 0x70], xmm0
mov qword [rbp - 0x60], rsi
mov qword [rbp - 0x58], rsi
lea rax, [rsp + 0x50]
mov r8, 0xffffffffffffffff
nop
inc r8
cmp byte [rax + r8], sil
jne 0x140013d40
lea rdx, [rsp + 0x50]
lea rcx, [rbp - 0x70]
call fcn.1400019d0
nop
call sub.MSVCP140.dll_unsigned_int___cdecl_std::_Random_device_void_
mov edx, eax
mov dword [rbp + 0x1334], 0xffffffff
mov dword [rbp - 0x4c], eax
mov ecx, 1
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 0x140013d71
mov dword [rbp - 0x50], 0x270
mov r15d, dword [rbp - 0x60]
dec r15d
xorps xmm0, xmm0
movups xmmword [rdi], xmm0
mov qword [rdi + 0x10], rsi
mov qword [rdi + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rdi], 0
mov dword [rsp + 0x24], 1
mov r13, qword [rbp - 0x70]
test ebx, ebx
jle 0x140013e94
lea rax, [rbp - 0x50]
mov qword [rsp + 0x30], rax
mov r12, rbx
movzx ebx, byte [rsp + 0x20]
nop dword [rax + rax]
lea rcx, [rsp + 0x30]
cmp r15d, 0xffffffff
jne 0x140013df4
call fcn.14000e800
mov ecx, eax
jmp 0x140013e38
lea esi, [r15 + 1]
call fcn.14000e800
mov r14d, esi
mov ecx, eax
imul rcx, r14
cmp ecx, esi
jae 0x140013e34
mov eax, esi
neg eax
xor edx, edx
div esi
mov esi, edx
cmp ecx, edx
jae 0x140013e34
nop dword [rax + rax]
lea rcx, [rsp + 0x30]
call fcn.14000e800
mov ecx, eax
imul rcx, r14
cmp ecx, esi
jb 0x140013e20
shr rcx, 0x20
lea rdx, [rbp - 0x70]
cmp qword [rbp - 0x58], 0xf
cmova rdx, r13
movsxd rax, ecx
movzx r9d, byte [rax + rdx]
mov rcx, qword [rdi + 0x10]
mov rdx, qword [rdi + 0x18]
cmp rcx, rdx
jae 0x140013e79
lea rax, [rcx + 1]
mov qword [rdi + 0x10], rax
mov rax, rdi
cmp rdx, 0xf
jbe 0x140013e6e
mov rax, qword [rdi]
mov byte [rax + rcx], r9b
mov byte [rax + rcx + 1], 0
jmp 0x140013e8a
movzx r8d, bl
mov edx, 1
mov rcx, rdi
call fcn.140004470
sub r12, 1
jne 0x140013de0
mov rax, qword [rbp - 0x58]
cmp rax, 0xf
jbe 0x140013ed2
lea rdx, [rax + 1]
mov rax, r13
cmp rdx, 0x1000
jb 0x140013eca
add rdx, 0x27
mov r13, qword [r13 - 8]
sub rax, r13
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140013eca
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, r13
call fcn.140039fd0
mov rax, rdi
mov rcx, qword [rbp + 0x1340]
xor rcx, rsp
call fcn.14003a390
lea r11, [rsp + 0x1460]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
movaps xmm6, xmmword [r11 - 0x10]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret