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

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x26d0]
mov eax, 0x27d0
call fcn.140046a70
sub rsp, rax
mov rax, qword [0x14005b028]
xor rax, rsp
mov qword [rbp + 0x26c0], rax
mov r14, r9
mov r15, r8
mov rsi, rdx
mov qword [rsp + 0x48], rdx
mov qword [rbp + 0x12e0], r8
mov r12, qword [rbp + 0x2730]
mov edi, 1
mov dword [rsp + 0x20], edi
cmp qword [r8 + 0x10], r12
ja 0x14001248e
mov rdx, r8
mov rcx, rsi
call fcn.140005a50
mov r13d, 0xffffffff
mov dword [rbp + 0x12d4], r13d
mov dword [rsp + 0x54], r14d
nop dword [rax]
nop word [rax + rax]
mov eax, r14d
shr eax, 0x1e
xor eax, r14d
imul ecx, eax, 0x6c078965
add ecx, edi
mov dword [rsp + rdi*4 + 0x54], ecx
mov r14d, ecx
inc rdi
cmp rdi, 0x270
jb 0x1400123c0
mov dword [rsp + 0x50], 0x270
cmp qword [rsi + 0x18], 0x10
jb 0x1400123ff
mov rdx, qword [rsi]
mov r9, rdx
add rdx, qword [rsi + 0x10]
jmp 0x140012409
mov rdx, qword [rsi + 0x10]
add rdx, rsi
mov r9, rsi
lea rax, [rsp + 0x50]
mov qword [rsp + 0x28], rax
mov rbx, 0xffffffffffffffff
mov qword [rsp + 0x38], rbx
mov eax, 0x40
dec rax
shr rbx, 1
cmp rbx, r13
ja 0x140012424
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x30], rax
lea r8, [rsp + 0x28]
mov rcx, r9
call fcn.140014e70
nop
mov rdx, qword [r15 + 0x18]
cmp rdx, 0x10
jb 0x140012481
inc rdx
mov rcx, qword [r15]
cmp rdx, 0x1000
jb 0x14001247c
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x1400129cd
mov rcx, r8
call fcn.140045a90
mov qword [r15 + 0x10], 0
jmp 0x140012994
xorps xmm0, xmm0
movups xmmword [rdx], xmm0
xor r13d, r13d
mov qword [rdx + 0x10], r13
mov qword [rdx + 0x18], r13
mov r8, r12
cmp qword [r15 + 0x10], r12
cmovb r8, qword [r15 + 0x10]
mov rdx, r15
cmp qword [r15 + 0x18], 0x10
jb 0x1400124b8
mov rdx, qword [r15]
mov rcx, rsi
call fcn.140006b30
nop
mov dword [rsp + 0x20], 0xb
xorps xmm0, xmm0
movups xmmword [rbp + 0x1308], xmm0
mov qword [rbp + 0x1318], r13
mov qword [rbp + 0x1320], r13
mov rax, qword [r15 + 0x10]
cmp rax, r12
jb 0x1400129da
sub rax, r12
mov rbx, 0xffffffffffffffff
mov r8, rbx
cmp rax, rbx
cmovb r8, rax
mov rax, r15
cmp qword [r15 + 0x18], 0x10
jb 0x14001250f
mov rax, qword [r15]
lea rdx, [r12 + rax]
lea rcx, [rbp + 0x1308]
call fcn.140006b30
mov dword [rsp + 0x20], 0xf
xorps xmm0, xmm0
movups xmmword [rbp + 0x12e8], xmm0
mov qword [rbp + 0x12f8], r13
mov qword [rbp + 0x1300], r13
mov r8, qword [rbp + 0x1318]
mov qword [rsp + 0x40], r8
lea r13, [rbp + 0x1308]
cmp qword [rbp + 0x1320], 0x10
cmovae r13, qword [rbp + 0x1308]
movabs r12, 0x7fffffffffffffff
cmp r8, r12
ja 0x1400129e0
cmp r8, 0x10
jae 0x14001259f
mov qword [rbp + 0x12f8], r8
mov edx, 0xf
mov qword [rbp + 0x1300], rdx
movups xmm0, xmmword [r13]
movups xmmword [rbp + 0x12e8], xmm0
jmp 0x140012651
mov qword [rbp + 0x1300], 0xf
mov rax, r8
or rax, 0xf
cmp rax, r12
ja 0x1400125c5
mov r12, rax
mov ecx, 0x16
cmp rax, rcx
cmovb r12, rcx
mov rcx, r12
add rcx, 1
cmovb rcx, rbx
cmp rcx, 0x1000
jb 0x14001260d
lea rax, [rcx + 0x27]
cmp rax, rcx
jbe 0x1400129d4
mov rcx, rax
call fcn.140045a98
mov rcx, rax
test rax, rax
je 0x1400128d4
add rax, 0x27
and rax, 0xffffffffffffffe0
mov qword [rax - 8], rcx
mov r8, qword [rsp + 0x40]
jmp 0x140012620
test rcx, rcx
je 0x14001261e
call fcn.140045a98
mov r8, qword [rsp + 0x40]
jmp 0x140012620
xor eax, eax
mov qword [rbp + 0x12e8], rax
mov qword [rbp + 0x12f8], r8
mov qword [rbp + 0x1300], r12
inc r8
mov rdx, r13
mov rcx, rax
call sub.VCRUNTIME140.dll_memcpy
mov rdx, qword [rbp + 0x1300]
mov r8, qword [rbp + 0x12f8]
mov r13d, 0xffffffff
mov dword [rbp + 0x26b4], r13d
mov dword [rbp + 0x1334], r14d
nop word [rax + rax]
mov eax, r14d
shr eax, 0x1e
xor eax, r14d
imul ecx, eax, 0x6c078965
add ecx, edi
mov dword [rbp + rdi*4 + 0x1334], ecx
mov r14d, ecx
inc rdi
cmp rdi, 0x270
jb 0x140012670
mov dword [rbp + 0x1330], 0x270
lea r12, [rbp + 0x12e8]
mov rcx, qword [rbp + 0x12e8]
cmp rdx, 0x10
cmovae r12, rcx
add r12, r8
lea rdi, [rbp + 0x12e8]
cmp rdx, 0x10
cmovae rdi, rcx
cmp rdi, r12
je 0x14001272e
nop
movsx ecx, byte [rdi]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_isalnum]
test eax, eax
je 0x1400126e5
inc rdi
cmp rdi, r12
jne 0x1400126d0
mov rdx, qword [rbp + 0x1300]
mov rcx, qword [rbp + 0x12e8]
cmp rdi, r12
je 0x14001272e
lea r14, [rdi + 1]
cmp r14, r12
je 0x14001272e
movsx ecx, byte [r14]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_isalnum]
test eax, eax
je 0x140012718
movzx eax, byte [r14]
mov byte [rdi], al
inc rdi
inc r14
cmp r14, r12
jne 0x140012701
mov rdx, qword [rbp + 0x1300]
mov rcx, qword [rbp + 0x12e8]
lea r9, [rbp + 0x12e8]
cmp rdx, 0x10
cmovae r9, rcx
lea rax, [rbp + 0x1330]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x38], rbx
mov eax, 0x40
dec rax
shr rbx, 1
cmp rbx, r13
ja 0x140012753
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x30], rax
lea r8, [rsp + 0x28]
mov rdx, rdi
mov rcx, r9
call fcn.140014e70
lea rdi, [rbp + 0x12e8]
cmp qword [rbp + 0x1300], 0x10
cmovae rdi, qword [rbp + 0x12e8]
lea rbx, [rbp + 0x1308]
mov r8, qword [rbp + 0x1308]
mov rdx, qword [rbp + 0x1320]
cmp rdx, 0x10
cmovae rbx, r8
nop dword [rax]
lea rcx, [rbp + 0x1308]
cmp rdx, 0x10
cmovae rcx, r8
add rcx, qword [rbp + 0x1318]
cmp rbx, rcx
je 0x14001289b
movsx ecx, byte [rbx]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_isalnum]
mov rcx, qword [rsi + 0x10]
mov rdx, qword [rsi + 0x18]
test eax, eax
je 0x140012841
movzx r9d, byte [rdi]
cmp rcx, rdx
jae 0x140012820
lea rax, [rcx + 1]
mov qword [rsi + 0x10], rax
mov rax, rsi
cmp rdx, 0x10
jb 0x140012801
mov rax, qword [rsi]
mov byte [rax + rcx], r9b
mov byte [rax + rcx + 1], 0
inc rdi
inc rbx
mov rdx, qword [rbp + 0x1320]
mov r8, qword [rbp + 0x1308]
jmp 0x1400127b0
mov rcx, rsi
call fcn.140006f60
inc rdi
inc rbx
mov rdx, qword [rbp + 0x1320]
mov r8, qword [rbp + 0x1308]
jmp 0x1400127b0
movzx r9d, byte [rbx]
cmp rcx, rdx
jae 0x14001287d
lea rax, [rcx + 1]
mov qword [rsi + 0x10], rax
mov rax, rsi
cmp rdx, 0x10
jb 0x14001285e
mov rax, qword [rsi]
mov byte [rax + rcx], r9b
mov byte [rax + rcx + 1], 0
inc rbx
mov rdx, qword [rbp + 0x1320]
mov r8, qword [rbp + 0x1308]
jmp 0x1400127b0
mov rcx, rsi
call fcn.140006f60
inc rbx
mov rdx, qword [rbp + 0x1320]
mov r8, qword [rbp + 0x1308]
jmp 0x1400127b0
mov rax, qword [rbp + 0x1300]
cmp rax, 0x10
jb 0x1400128ee
lea rdx, [rax + 1]
mov rcx, qword [rbp + 0x12e8]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400128db
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400128db
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140045a90
mov rdx, qword [rbp + 0x1320]
mov r8, qword [rbp + 0x1308]
xor ebx, ebx
mov qword [rbp + 0x12f8], rbx
mov qword [rbp + 0x1300], 0xf
mov byte [rbp + 0x12e8], bl
cmp rdx, 0x10
jb 0x140012941
inc rdx
mov rax, r8
cmp rdx, 0x1000
jb 0x140012939
add rdx, 0x27
mov r8, qword [r8 - 8]
sub rax, r8
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140012939
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, r8
call fcn.140045a90
mov qword [rbp + 0x1318], rbx
mov qword [rbp + 0x1320], 0xf
mov byte [rbp + 0x1308], 0
mov rdx, qword [r15 + 0x18]
cmp rdx, 0x10
jb 0x140012990
inc rdx
mov rcx, qword [r15]
cmp rdx, 0x1000
jb 0x14001298b
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x1400129cd
mov rcx, r8
call fcn.140045a90
mov qword [r15 + 0x10], rbx
mov rax, rsi
mov byte [r15], 0
mov qword [r15 + 0x18], 0xf
mov rcx, qword [rbp + 0x26c0]
xor rcx, rsp
call fcn.140045a70
mov rbx, qword [rsp + 0x2810]
add rsp, 0x27d0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call fcn.1400012b0
nop
call fcn.140006340
nop
call fcn.140001350
int3