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

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rdx
mov qword [r11 + 8], rcx
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0xa8
movaps xmmword [r11 - 0x58], xmm6
mov rdi, rcx
xor ebp, ebp
mov dword [rsp + 0x20], ebp
mov esi, 0x10
lea rcx, [rsp + 0xe8]
movabs rdx, 0xff00ff00ff00ff00
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], rcx
mov rax, qword [rcx]
xor rax, rdx
mov qword [r11 + 0x20], rax
mov qword [rsp + 0x50], rax
mov qword [rcx], rbp
movups xmm0, xmmword [0x1400560c8]
movups xmmword [rsp + 0x68], xmm0
movups xmm1, xmmword [0x1400560d8]
movups xmmword [rsp + 0x78], xmm1
mov eax, dword [0x1400560e8]
mov dword [r11 - 0x60], eax
movzx eax, byte [0x1400560ec]
mov byte [r11 - 0x5c], al
mov r8d, ebp
cmp dword [0x14005f010], 2
jl 0x14003a6d9
movdqa xmm4, xmmword [0x140056630]
movdqa xmm3, xmmword [0x1400567d0]
movdqa xmm5, xmmword [0x140056670]
movdqa xmm0, xmmword [str.6666666666666666]
movdqa xmmword [rsp + 0x30], xmm0
lea rcx, [r11 - 0x7c]
movdqa xmm6, xmmword [0x140056680]
mov edx, dword [rsp + 0x30]
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, 0x20
jl 0x14003a5f2
cmp r8d, 0x25
jge 0x14003a720
movsxd rax, r8d
lea r9, [rsp + 0x68]
add r9, rax
nop dword [rax]
nop dword [rax + rax]
mov eax, 0x4ec4ec4f
imul r8d
sar edx, 4
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul ecx, eax, 0x34
movzx eax, r8b
sub al, cl
add al, 0x36
xor byte [r9], al
inc r8d
lea r9, [r9 + 1]
cmp r8d, 0x25
jl 0x14003a6f0
lea rdx, [rsp + 0x68]
lea rcx, [rsp + 0x30]
call fcn.14003b570
nop
mov rax, qword gs:[0x58]
mov r12, qword [rax]
mov r14d, 0x14
mov eax, dword [r14 + r12]
mov r15d, 0x30
test al, 1
jne 0x14003a7a8
or eax, 1
mov dword [r14 + r12], eax
mov ebx, r15d
add rbx, r12
call qword [sym.imp.MSVCP140.dll_unsigned_int___cdecl_std::_Random_device_void_]
mov dword [rbx + 0x1384], 0xffffffff
mov dword [rbx + 4], eax
mov edx, 1
lea r8, [rbx + 8]
nop dword [rax]
mov ecx, eax
shr ecx, 0x1e
xor ecx, eax
imul eax, ecx, 0x6c078965
add eax, edx
mov dword [r8], eax
inc rdx
lea r8, [r8 + 4]
cmp rdx, 0x270
jb 0x14003a780
mov dword [rbx], 0x270
mov eax, dword [r14 + r12]
mov ebx, 0x18
mov qword [rsp + 0xf8], rbx
test al, 2
jne 0x14003a7d7
or eax, 2
mov dword [r14 + r12], eax
mov rax, qword [rsp + 0x40]
dec rax
mov qword [r12 + rbx], rbp
mov qword [r12 + rbx + 8], rax
jmp 0x14003a7df
mov qword [rsp + 0xf8], rbx
xorps xmm0, xmm0
movups xmmword [rdi], xmm0
mov qword [rdi + 0x10], rbp
mov qword [rdi + 0x18], 0xf
mov byte [rdi], 0
mov dword [rsp + 0x20], 1
mov rdx, rsi
mov rcx, rdi
call fcn.1400444e0
mov qword [rdi + 0x10], rbp
mov r14d, r15d
add r14, r12
mov qword [rsp + 0x100], r14
mov r13, qword [rsp + 0x48]
mov r15, qword [rsp + 0x30]
nop dword [rax]
nop word [rax + rax]
dec rsi
mov rdx, qword [r12 + rbx + 8]
mov rbp, qword [r12 + rbx]
sub rdx, rbp
cmp rdx, 0xffffffffffffffff
jne 0x14003a862
mov rcx, r14
call fcn.140044dc0
mov ebx, eax
shl rbx, 0x20
mov rcx, r14
call fcn.140044dc0
mov eax, eax
or rbx, rax
jmp 0x14003a875
inc rdx
lea rcx, [rsp + 0x100]
call fcn.140044be0
mov rbx, rax
lea rcx, [rbx + rbp]
lea rax, [rsp + 0x30]
cmp r13, 0xf
cmova rax, r15
movzx r9d, byte [rcx + rax]
mov rcx, qword [rdi + 0x10]
mov rdx, qword [rdi + 0x18]
cmp rcx, rdx
jae 0x14003a8b7
lea rax, [rcx + 1]
mov qword [rdi + 0x10], rax
mov rax, rdi
cmp rdx, 0xf
jbe 0x14003a8ac
mov rax, qword [rdi]
mov byte [rax + rcx], r9b
mov byte [rax + rcx + 1], 0
jmp 0x14003a8bf
mov rcx, rdi
call fcn.140044630
test rsi, rsi
mov rbx, qword [rsp + 0xf8]
jne 0x14003a830
cmp r13, 0xf
jbe 0x14003a90b
lea rdx, [r13 + 1]
mov rax, r15
cmp rdx, 0x1000
jb 0x14003a902
add rdx, 0x27
mov r15, qword [r15 - 8]
sub rax, r15
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14003a902
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, r15
call fcn.140045390
nop
mov rax, qword [rsp + 0x108]
movabs rcx, 0xff00ff00ff00ff00
xor rax, rcx
lea rcx, [rsp + 0xe8]
mov qword [rcx], rax
mov rax, rdi
movaps xmm6, xmmword [rsp + 0x90]
add rsp, 0xa8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret