Function at 0x1401f9980
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 - 0x12f0]
mov eax, 0x13f0
call fcn.14026ed30
sub rsp, rax
mov rax, qword [0x140291040]
xor rax, rsp
mov qword [rbp + 0x12e0], rax
mov rsi, rdx
mov r15, rcx
mov qword [rsp + 0x28], rcx
xor edi, edi
xorps xmm0, xmm0
movups xmmword [rsp + 0x38], xmm0
lea r13, [rbp + 0x1328]
movabs rcx, 0xff00ff00ff00ff00
mov qword [rsp + 0x40], rcx
mov qword [rsp + 0x48], r13
mov rax, qword [r13]
xor rax, rcx
mov qword [rsp + 0x38], rax
mov qword [r13], rdi
call qword [sym.imp.MSVCP140.dll_unsigned_int___cdecl_std::_Random_device_void_]
mov edx, eax
mov dword [rbp + 0x12d4], 0xffffffff
mov dword [rsp + 0x54], eax
mov r12d, 1
mov ecx, r12d
nop word [rax + rax]
mov eax, edx
shr eax, 0x1e
xor eax, edx
imul edx, eax, 0x6c078965
add edx, ecx
mov dword [rsp + rcx*4 + 0x54], edx
inc rcx
cmp rcx, 0x270
jb 0x1401f9a20
mov dword [rsp + 0x50], 0x270
mov dword [rsp + 0x20], edi
lea rcx, [rsp + 0x28]
call fcn.1401f2240
mov r14, qword [rsp + 0x28]
add r14, 0x5f5e100
lea rcx, [rsp + 0x28]
call fcn.1401f2240
cmp qword [rax], r14
jge 0x1401f9bd4
mov edi, 0x186a0
nop dword [rax]
lea rcx, [rsp + 0x50]
call fcn.14025a000
mov ecx, eax
imul rax, rcx, 0xc9
cmp eax, 0x63
ja 0x1401f9ab8
nop dword [rax + rax]
lea rcx, [rsp + 0x50]
call fcn.14025a000
mov ecx, eax
imul rax, rcx, 0xc9
cmp eax, 0x64
jb 0x1401f9aa0
shr rax, 0x20
lea ebx, [rax + 0x7fffff9c]
xor ebx, 0x80000000
cmove ebx, r12d
lea rcx, [rsp + 0x50]
call fcn.14025a000
mov ecx, eax
imul rcx, rcx, 0xc9
cmp ecx, 0x63
ja 0x1401f9afc
lea rcx, [rsp + 0x50]
call fcn.14025a000
mov ecx, eax
imul rcx, rcx, 0xc9
cmp ecx, 0x64
jb 0x1401f9ae4
shr rcx, 0x20
add ecx, 0x7fffff9c
btc ecx, 0x1f
mov eax, dword [rsp + 0x20]
add eax, ecx
mov dword [rsp + 0x20], eax
lea rcx, [rsp + 0x50]
call fcn.14025a000
mov ecx, eax
imul rcx, rcx, 0xc9
cmp ecx, 0x63
ja 0x1401f9b48
nop dword [rax]
lea rcx, [rsp + 0x50]
call fcn.14025a000
mov ecx, eax
imul rcx, rcx, 0xc9
cmp ecx, 0x64
jb 0x1401f9b30
shr rcx, 0x20
add ecx, 0x7fffff9c
btc ecx, 0x1f
mov eax, dword [rsp + 0x20]
imul eax, ecx
mov dword [rsp + 0x20], eax
lea rcx, [rsp + 0x50]
call fcn.14025a000
mov ecx, eax
imul rcx, rcx, 0xc9
cmp ecx, 0x63
ja 0x1401f9b98
nop dword [rax]
lea rcx, [rsp + 0x50]
call fcn.14025a000
mov ecx, eax
imul rcx, rcx, 0xc9
cmp ecx, 0x64
jb 0x1401f9b80
shr rcx, 0x20
add ecx, 0x7fffff9c
btc ecx, 0x1f
mov eax, dword [rsp + 0x20]
sub eax, ecx
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x20]
cdq
idiv ebx
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x20]
cdq
idiv ebx
mov dword [rsp + 0x20], edx
sub rdi, r12
jne 0x1401f9a80
jmp 0x1401f9a61
mov eax, dword [rsp + 0x20]
mov r8, qword [rsi + 0x10]
mov rbx, rsi
cmp qword [rsi + 0x18], 0xf
jbe 0x1401f9be9
mov rbx, qword [rsi]
test r8, r8
je 0x1401f9c54
mov edx, 0x2e
mov rcx, rbx
call sub.VCRUNTIME140.dll_memchr
mov r8, rax
test rax, rax
je 0x1401f9c54
sub r8, rbx
cmp r8, 0xffffffffffffffff
je 0x1401f9c54
xorps xmm0, xmm0
movups xmmword [r15], xmm0
xor eax, eax
mov qword [r15 + 0x10], rax
mov qword [r15 + 0x18], rax
cmp qword [rsi + 0x10], r8
cmovb r8, qword [rsi + 0x10]
cmp qword [rsi + 0x18], 0xf
jbe 0x1401f9c30
mov rsi, qword [rsi]
mov rdx, rsi
mov rcx, r15
call fcn.14020c680
nop
mov rcx, qword [rsp + 0x38]
movabs rdx, 0xff00ff00ff00ff00
xor rcx, rdx
mov qword [r13], rcx
jmp 0x1401f9c76
mov rdx, rsi
mov rcx, r15
call fcn.140247310
nop
mov rax, qword [rsp + 0x38]
movabs rdx, 0xff00ff00ff00ff00
xor rax, rdx
mov qword [r13], rax
mov rax, r15
mov rcx, qword [rbp + 0x12e0]
xor rcx, rsp
call fcn.14026d9f0
mov rbx, qword [rsp + 0x1440]
add rsp, 0x13f0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret