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

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x1350]
mov eax, 0x1450
call fcn.140059760
sub rsp, rax
movaps xmmword [rsp + 0x1440], xmm6
movsxd rsi, r8d
mov rdi, rdx
xor r14d, r14d
mov dword [rsp + 0x20], r14d
movups xmm0, xmmword [0x1400d79c0]
movups xmmword [rsp + 0x70], xmm0
movups xmm1, xmmword [0x1400d79d0]
movups xmmword [rbp - 0x80], xmm1
movups xmm0, xmmword [0x1400d79e0]
movups xmmword [rbp - 0x70], xmm0
movsd xmm0, qword [0x1400d79f0]
movsd qword [rbp - 0x60], xmm0
mov eax, dword [0x1400d79f8]
mov dword [rbp - 0x58], eax
movzx eax, word [0x1400d79fc]
mov word [rbp - 0x54], ax
movzx eax, byte [0x1400d79fe]
mov byte [rbp - 0x52], al
mov r8d, r14d
cmp dword [0x1400e1258], 2
jl 0x140050477
movdqa xmm4, xmmword [0x1400c2e60]
movdqa xmm3, xmmword [0x1400d7b70]
movdqa xmm5, xmmword [0x1400d7b60]
movdqa xmm0, xmmword [0x1400c9560]
movdqa xmmword [rsp + 0x30], xmm0
lea rcx, [rsp + 0x74]
movdqa xmm6, xmmword [0x1400c2ed0]
mov edx, dword [rsp + 0x30]
nop dword [rax]
nop dword [rax + rax]
movd xmm2, r8d
pshufd xmm2, xmm2, 0
paddd xmm2, xmm4
movdqa xmm1, xmm2
punpckldq xmm1, xmm2
pmuldq xmm1, xmm3
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
pmuldq xmm0, xmm3
shufps xmm1, xmm0, 0xdd
psrad xmm1, 4
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm5
psubd xmm2, xmm0
andps xmm2, xmm6
packuswb xmm2, xmm2
packuswb xmm2, xmm2
movd xmm0, edx
paddb xmm2, xmm0
movd xmm0, dword [rcx - 4]
xorps xmm2, xmm0
movd dword [rcx - 4], xmm2
lea eax, [r8 + 4]
movd xmm2, eax
pshufd xmm2, xmm2, 0
paddd xmm2, xmm4
movdqa xmm1, xmm2
punpckldq xmm1, xmm2
pmuldq xmm1, xmm3
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
pmuldq xmm0, xmm3
shufps xmm1, xmm0, 0xdd
psrad xmm1, 4
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm5
psubd xmm2, xmm0
andps xmm2, xmm6
packuswb xmm2, xmm2
packuswb xmm2, xmm2
movd xmm0, edx
paddb xmm2, xmm0
movd xmm0, dword [rcx]
xorps xmm2, xmm0
movd dword [rcx], xmm2
add r8d, 8
lea rcx, [rcx + 8]
cmp r8d, 0x38
jl 0x140050390
cmp r8d, 0x3f
jge 0x1400504c0
movsxd rax, r8d
lea r9, [rsp + 0x70]
add r9, rax
nop dword [rax]
nop word [rax + rax]
mov eax, 0x51eb851f
imul r8d
sar edx, 4
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul ecx, eax, 0x32
movzx eax, r8b
sub al, cl
add al, 0x36
xor byte [r9], al
inc r8d
lea r9, [r9 + 1]
cmp r8d, 0x3f
jl 0x140050490
xorps xmm0, xmm0
movups xmmword [rsp + 0x50], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x60], xmm1
lea rax, [rsp + 0x70]
mov rbx, 0xffffffffffffffff
mov r8, rbx
inc r8
cmp byte [rax + r8], r14b
jne 0x1400504e0
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x50]
call fcn.140001620
nop
lea rdx, [rsp + 0x50]
cmp qword [rsp + 0x68], 0xf
cmova rdx, qword [rsp + 0x50]
xorps xmm0, xmm0
movups xmmword [rsp + 0x30], xmm0
mov qword [rsp + 0x40], r14
mov qword [rsp + 0x48], r14
nop dword [rax]
inc rbx
cmp byte [rdx + rbx], 0
jne 0x140050520
mov r8, rbx
lea rcx, [rsp + 0x30]
call fcn.140001620
nop
mov rdx, qword [rsp + 0x68]
cmp rdx, 0xf
jbe 0x140050577
inc rdx
mov rcx, qword [rsp + 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140050572
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140050572
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140059504
movdqa xmm0, xmmword [0x1400c2e50]
movdqu xmmword [rsp + 0x60], xmm0
mov byte [rsp + 0x50], 0
call sub.MSVCP140.dll_unsigned_int___cdecl_std::_Random_device_void_
mov dword [rbp + 0x1334], 0xffffffff
mov dword [rbp - 0x4c], eax
mov edx, 1
mov ecx, eax
shr ecx, 0x1e
xor ecx, eax
imul eax, ecx, 0x6c078965
add eax, edx
mov dword [rbp + rdx*4 - 0x4c], eax
inc rdx
cmp rdx, 0x270
jb 0x1400505a1
mov dword [rbp - 0x50], 0x270
mov r13d, dword [rsp + 0x40]
dec r13d
xorps xmm0, xmm0
movups xmmword [rdi], xmm0
mov qword [rdi + 0x10], r14
mov qword [rdi + 0x18], 0xf
mov byte [rdi], 0
mov dword [rsp + 0x20], 1
mov r15, rsi
cmp qword [rdi + 0x18], rsi
jae 0x140050613
mov rbx, qword [rdi + 0x10]
mov rdx, rsi
sub rdx, rbx
movzx r8d, byte [rbp + 0x13a8]
mov rcx, rdi
call fcn.14004d650
mov qword [rdi + 0x10], rbx
mov r12, qword [rsp + 0x30]
test esi, esi
je 0x1400506f4
mov eax, 0x80000000
xor r13d, eax
movzx ebx, byte [rbp + 0x13a8]
nop
lea rcx, [rbp - 0x50]
cmp r13d, 0x7fffffff
jne 0x140050646
call fcn.140001fc0
mov ecx, eax
jmp 0x140050687
lea esi, [r13 - 0x7fffffff]
call fcn.140001fc0
mov r14d, esi
mov ecx, eax
imul rcx, r14
cmp ecx, esi
jae 0x140050683
mov eax, esi
neg eax
xor edx, edx
div esi
mov esi, edx
cmp ecx, edx
jae 0x140050683
nop dword [rax]
lea rcx, [rbp - 0x50]
call fcn.140001fc0
mov ecx, eax
imul rcx, r14
cmp ecx, esi
jb 0x140050670
shr rcx, 0x20
mov r8d, 0x80000000
lea eax, [rcx + r8]
xor eax, r8d
lea rcx, [rsp + 0x30]
cmp qword [rsp + 0x48], 0xf
cmova rcx, r12
cdqe
movzx r9d, byte [rax + rcx]
mov rcx, qword [rdi + 0x10]
mov rdx, qword [rdi + 0x18]
cmp rcx, rdx
jae 0x1400506d6
lea rax, [rcx + 1]
mov qword [rdi + 0x10], rax
mov rax, rdi
cmp rdx, 0xf
jbe 0x1400506cb
mov rax, qword [rdi]
mov byte [rax + rcx], r9b
mov byte [rax + rcx + 1], 0
jmp 0x1400506e7
movzx r8d, bl
mov edx, 1
mov rcx, rdi
call fcn.14004d4e0
sub r15, 1
jne 0x140050630
xor r14d, r14d
mov rax, qword [rsp + 0x48]
cmp rax, 0xf
jbe 0x140050734
lea rdx, [rax + 1]
mov rax, r12
cmp rdx, 0x1000
jb 0x14005072c
add rdx, 0x27
mov r12, qword [r12 - 8]
sub rax, r12
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14005072c
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, r12
call fcn.140059504
mov qword [rsp + 0x40], r14
mov qword [rsp + 0x48], 0xf
mov byte [rsp + 0x30], 0
mov rax, rdi
mov rbx, qword [rsp + 0x1490]
movaps xmm6, xmmword [rsp + 0x1440]
add rsp, 0x1450
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret