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

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x12f0]
mov eax, 0x13f0
call fcn.140005780
sub rsp, rax
mov rax, qword [0x140009010]
xor rax, rsp
mov qword [rbp + 0x12e0], rax
mov edi, edx
mov rsi, rcx
mov qword [rsp + 0x28], rcx
xor r12d, r12d
mov dword [rsp + 0x20], r12d
xorps xmm0, xmm0
movups xmmword [rsp + 0x30], xmm0
mov qword [rsp + 0x40], r12
mov qword [rsp + 0x48], r12
lea r8d, [r12 + 0x1a]
lea rdx, str.abcdefghijklmnopqrstuvwxyz
lea rcx, [rsp + 0x30]
call fcn.1400024a0
nop
mov rax, qword [rsp + 0x48]
cmp rax, 0x24
jb 0x1400027d0
lea rbx, [rsp + 0x30]
cmp rax, 0x10
cmovae rbx, qword [rsp + 0x30]
mov qword [rsp + 0x40], 0x24
lea r8d, [r12 + 0x24]
lea rdx, str.0123456789abcdefghijklmnopqrstuvwxyz
mov rcx, rbx
call sub.VCRUNTIME140.dll_memmove
mov byte [rbx + 0x24], r12b
jmp 0x1400027e6
lea r9, str.0123456789abcdefghijklmnopqrstuvwxyz
mov edx, 0x24
lea rcx, [rsp + 0x30]
call fcn.140004510
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 ecx, 1
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 0x140002801
mov ebx, 0x270
mov dword [rsp + 0x50], ebx
mov r14d, dword [rsp + 0x40]
dec r14d
xorps xmm0, xmm0
movups xmmword [rsi], xmm0
mov qword [rsi + 0x10], r12
mov qword [rsi + 0x18], 0xf
mov byte [rsi], 0
mov dword [rsp + 0x20], 1
test edi, edi
jle 0x140002a73
mov r15, rdi
nop dword [rax]
cmp r14d, 0xffffffff
jne 0x1400029d8
cmp ebx, 0x270
jne 0x1400028c2
lea r8, [rsp + 0x58]
mov r9d, ebx
nop word [rax + rax]
mov edx, dword [r8 - 4]
xor edx, dword [r8]
btr edx, 0x1f
xor edx, dword [r8 - 4]
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
and ecx, 0x9908b0df
xor ecx, dword [r8 + 0x630]
shr edx, 1
xor ecx, edx
mov dword [r8 + 0x9bc], ecx
lea r8, [r8 + 4]
sub r9, 1
jne 0x140002880
mov ebx, dword [rsp + 0x50]
jmp 0x14000299e
cmp ebx, 0x4e0
jb 0x14000299e
mov r8, r12
mov eax, dword [rbp + r8*4 + 0x914]
mov edx, eax
xor edx, dword [rbp + r8*4 + 0x918]
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
and ecx, 0x9908b0df
xor ecx, dword [rbp + r8*4 + 0xf48]
shr edx, 1
xor ecx, edx
mov dword [rsp + r8*4 + 0x54], ecx
inc r8
cmp r8, 0xe3
jb 0x1400028d1
mov r8d, 0xe3
nop word [rax + rax]
mov eax, dword [rbp + r8*4 + 0x914]
mov edx, eax
xor edx, dword [rbp + r8*4 + 0x918]
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
and ecx, 0x9908b0df
xor ecx, dword [rbp + r8*4 - 0x438]
shr edx, 1
xor ecx, edx
mov dword [rsp + r8*4 + 0x54], ecx
inc r8
cmp r8, 0x26f
jb 0x140002920
mov edx, dword [rbp + 0x12d0]
and edx, 0x80000000
mov eax, dword [rsp + 0x54]
btr eax, 0x1f
or edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
and ecx, 0x9908b0df
shr edx, 1
xor ecx, edx
xor ecx, dword [rbp + 0x584]
mov dword [rbp + 0x910], ecx
mov ebx, r12d
mov dword [rsp + 0x50], ebx
mov eax, ebx
mov edx, dword [rsp + rax*4 + 0x54]
inc ebx
mov dword [rsp + 0x50], ebx
mov eax, edx
shr eax, 0xb
and eax, dword [rbp + 0x12d4]
xor edx, eax
mov eax, edx
and eax, 0xff3a58ad
shl eax, 7
xor edx, eax
mov eax, edx
and eax, 0xffffdf8c
shl eax, 0xf
xor edx, eax
mov ecx, edx
shr ecx, 0x12
xor ecx, edx
jmp 0x140002a1c
lea ebx, [r14 + 1]
lea rcx, [rsp + 0x50]
call fcn.140004650
mov edi, ebx
mov ecx, eax
imul rcx, rdi
cmp ecx, ebx
jae 0x140002a14
mov eax, ebx
neg eax
xor edx, edx
div ebx
mov ebx, edx
cmp ecx, edx
jae 0x140002a14
lea rcx, [rsp + 0x50]
call fcn.140004650
mov ecx, eax
imul rcx, rdi
cmp ecx, ebx
jb 0x140002a00
shr rcx, 0x20
mov ebx, dword [rsp + 0x50]
lea rdx, [rsp + 0x30]
cmp qword [rsp + 0x48], 0x10
cmovae rdx, qword [rsp + 0x30]
movsxd rax, ecx
movzx r9d, byte [rax + rdx]
mov rcx, qword [rsi + 0x10]
mov rdx, qword [rsi + 0x18]
cmp rcx, rdx
jae 0x140002a61
lea rax, [rcx + 1]
mov qword [rsi + 0x10], rax
mov rax, rsi
cmp rdx, 0x10
jb 0x140002a56
mov rax, qword [rsi]
mov byte [rax + rcx], r9b
mov byte [rax + rcx + 1], 0
jmp 0x140002a69
mov rcx, rsi
call fcn.140004220
sub r15, 1
jne 0x140002860
mov rdx, qword [rsp + 0x48]
cmp rdx, 0x10
jb 0x140002ab3
inc rdx
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140002aae
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140002aae
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140004930
mov rax, rsi
mov rcx, qword [rbp + 0x12e0]
xor rcx, rsp
call fcn.1400047f0
lea r11, [rsp + 0x13f0]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret