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

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x1348]
mov eax, 0x1420
call fcn.140092cc0
sub rsp, rax
mov rax, qword [0x1400dc3e8]
xor rax, rsp
mov qword [rbp + 0x1310], rax
mov edi, r8d
mov rbx, rdx
mov qword [rsp + 0x38], rdx
mov qword [rsp + 0x58], rdx
xor r15d, r15d
mov dword [rsp + 0x24], r15d
mov qword [rsp + 0x60], r15
mov qword [rsp + 0x70], r15
mov qword [rsp + 0x78], r15
lea r8d, [r15 + 0x3e]
lea rdx, str.abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789
lea rcx, [rsp + 0x60]
call fcn.140016878
nop
call qword [sym.imp.MSVCP140.dll_unsigned_int___cdecl_std::_Random_device_void_]
mov edx, eax
mov r10d, 0xffffffff
mov dword [rbp + 0x1304], r10d
mov dword [rbp - 0x7c], eax
lea r9d, [r15 + 1]
mov ecx, r9d
mov r8d, 0x270
mov eax, edx
shr eax, 0x1e
xor eax, edx
imul edx, eax, 0x6c078965
add edx, ecx
mov dword [rbp + rcx*4 - 0x7c], edx
add rcx, r9
cmp rcx, r8
jb 0x14004158b
mov dword [rbp - 0x80], r8d
mov r13, qword [rsp + 0x70]
dec r13
mov qword [rsp + 0x28], r13
mov qword [rbx], r15
mov qword [rbx + 0x10], r15
mov qword [rbx + 0x18], 0xf
mov byte [rbx], r15b
mov dword [rsp + 0x24], r9d
mov rsi, qword [rsp + 0x60]
test edi, edi
jle 0x14004171d
cmp qword [rsp + 0x78], 0x10
setae byte [rsp + 0x20]
mov qword [rsp + 0x30], rdi
lea rax, [rbp - 0x80]
mov qword [rsp + 0x40], rax
mov r14d, 0x40
or r12, 0xffffffffffffffff
dec r14
shr r12, 1
cmp r12, r10
ja 0x1400415fe
mov qword [rsp + 0x48], r14
mov qword [rsp + 0x50], r12
cmp r13, 0xffffffffffffffff
jne 0x14004163e
mov rdi, r15
lea rcx, [rsp + 0x40]
call fcn.140041970
lea rcx, [r14 - 1]
shl rdi, cl
add rdi, rdi
or rdi, rax
add r15, r14
cmp r15, 0x40
jb 0x14004161c
jmp 0x1400416ba
mov rbx, qword [rsp + 0x28]
lea r13, [rbx + 1]
jmp 0x14004164c
xor r15d, r15d
xor edi, edi
test rbx, rbx
je 0x140041680
lea rcx, [rsp + 0x40]
call fcn.140041970
lea rcx, [r14 - 1]
shl r15, cl
add r15, r15
or r15, rax
lea rcx, [r14 - 1]
shl rdi, cl
add rdi, rdi
or rdi, r12
cmp rdi, rbx
jb 0x140041653
lea r13, [rbx + 1]
xor edx, edx
mov rax, rdi
div r13
mov rcx, rax
xor edx, edx
mov rax, r15
div r13
cmp rax, rcx
jb 0x1400416a5
xor edx, edx
mov rax, rdi
div r13
cmp rdx, rbx
jne 0x140041649
xor edx, edx
mov rax, r15
div r13
mov rdi, rdx
mov rbx, qword [rsp + 0x38]
mov r13, qword [rsp + 0x28]
lea rax, [rsp + 0x60]
xor r15d, r15d
cmp byte [rsp + 0x20], r15b
cmovne rax, rsi
mov r9b, byte [rdi + rax]
mov rcx, qword [rbx + 0x10]
cmp rcx, qword [rbx + 0x18]
jae 0x1400416f9
lea rax, [rcx + 1]
mov qword [rbx + 0x10], rax
mov rax, rbx
cmp qword [rbx + 0x18], 0x10
jb 0x1400416ee
mov rax, qword [rbx]
mov byte [rax + rcx], r9b
mov byte [rax + rcx + 1], r15b
jmp 0x14004170b
mov r8b, byte [rsp + 0x20]
mov edx, 1
mov rcx, rbx
call fcn.14002de68
sub qword [rsp + 0x30], 1
mov r10d, 0xffffffff
jne 0x1400415eb
mov rax, qword [rsp + 0x78]
cmp rax, 0x10
jb 0x14004175c
lea rdx, [rax + 1]
mov rax, rsi
cmp rdx, 0x1000
jb 0x140041754
add rdx, 0x27
mov rsi, qword [rsi - 8]
sub rax, rsi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140041754
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, rsi
call fcn.1400928f8
mov rax, rbx
mov rcx, qword [rbp + 0x1310]
xor rcx, rsp
call fcn.140092030
lea r11, [rsp + 0x1420]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret