Function at 0x140052560
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 - 0x1390]
mov eax, 0x1490
call fcn.140068180
sub rsp, rax
movaps xmmword [rsp + 0x1480], xmm6
movaps xmmword [rsp + 0x1470], xmm7
movaps xmmword [rsp + 0x1460], xmm8
mov rax, qword [0x140086010]
xor rax, rsp
mov qword [rbp + 0x1350], rax
mov dword [rsp + 0x20], edx
mov rbx, rcx
mov qword [rsp + 0x58], rcx
mov qword [rsp + 0x40], rcx
movups xmm0, xmmword [str._b_b_b_b_b_b_b_bxx]
movups xmmword [rsp + 0x60], xmm0
movups xmm1, xmmword [0x14007a518]
movups xmmword [rsp + 0x70], xmm1
movups xmm0, xmmword [0x14007a528]
movups xmmword [rbp - 0x80], xmm0
movsd xmm1, qword [0x14007a538]
movsd qword [rbp - 0x70], xmm1
movzx eax, word [0x14007a540]
mov word [rbp - 0x68], ax
xor r8d, r8d
cmp dword [0x140086018], 2
jl 0x14005275f
movdqa xmm5, xmmword [0x14007a980]
movdqa xmm4, xmmword [0x14007b4b0]
mov eax, 5
movd xmm6, eax
movdqa xmm7, xmmword [0x14007a9a0]
mov eax, 0x1f
movd xmm8, eax
movdqa xmm0, xmmword [str.8888888888888888]
movdqa xmmword [rsp + 0x40], xmm0
lea rcx, [rsp + 0x64]
mov edx, dword [rsp + 0x40]
nop dword [rax]
movd xmm2, r8d
pshufd xmm2, xmm2, 0
paddd xmm2, xmm5
movdqa xmm1, xmm2
punpckldq xmm1, xmm2
pmuldq xmm1, xmm4
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
pmuldq xmm0, xmm4
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm2
psrad xmm1, xmm6
movdqa xmm0, xmm1
psrld xmm0, xmm8
paddd xmm0, xmm1
pmulld xmm0, xmm7
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
pand xmm2, xmmword [0x14007a9c0]
packuswb xmm2, xmm2
movd xmm0, edx
paddb xmm2, xmm0
movd xmm0, dword [rcx - 4]
pxor xmm2, xmm0
movd dword [rcx - 4], xmm2
lea eax, [r8 + 4]
movd xmm3, eax
pshufd xmm3, xmm3, 0
paddd xmm3, xmm5
movdqa xmm1, xmm3
punpckldq xmm1, xmm3
pmuldq xmm1, xmm4
movdqa xmm0, xmm3
punpckhdq xmm0, xmm3
pmuldq xmm0, xmm4
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm3
psrad xmm1, xmm6
movdqa xmm0, xmm1
psrld xmm0, xmm8
paddd xmm0, xmm1
pmulld xmm0, xmm7
psubd xmm3, xmm0
pshuflw xmm0, xmm3, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
pand xmm2, xmmword [0x14007a9c0]
packuswb xmm2, xmm2
movd xmm0, edx
paddb xmm2, xmm0
movd xmm0, dword [rcx]
pxor xmm2, xmm0
movd dword [rcx], xmm2
add r8d, 8
lea rcx, [rcx + 8]
cmp r8d, 0x38
jl 0x140052650
cmp r8d, 0x3a
jge 0x1400527a3
movsxd rax, r8d
lea r9, [rsp + 0x60]
add r9, rax
nop word [rax + rax]
mov eax, 0x8fb823ef
imul r8d
add edx, r8d
sar edx, 5
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul ecx, eax, 0x39
movzx eax, r8b
sub al, cl
add al, 0x38
xor byte [r9], al
inc r8d
lea r9, [r9 + 1]
cmp r8d, 0x3a
jl 0x140052770
mov qword [rbp - 0x60], 0
mov qword [rbp - 0x50], 0
mov qword [rbp - 0x48], 0xf
mov byte [rbp - 0x60], 0
lea rax, [rsp + 0x60]
mov rsi, 0xffffffffffffffff
mov r8, rsi
nop
inc r8
cmp byte [rax + r8], 0
jne 0x1400527d0
lea rdx, [rsp + 0x60]
lea rcx, [rbp - 0x60]
call fcn.140053120
nop
call qword [sym.imp.MSVCP140.dll_unsigned_int___cdecl_std::_Random_device_void_]
mov edx, eax
mov r11d, 0xffffffff
mov dword [rbp + 0x1344], r11d
mov dword [rbp - 0x3c], eax
mov r15d, 1
mov ecx, r15d
nop word [rax + rax]
mov eax, edx
shr eax, 0x1e
xor eax, edx
imul edx, eax, 0x6c078965
add edx, ecx
mov dword [rbp + rcx*4 - 0x3c], edx
inc rcx
cmp rcx, 0x270
jb 0x140052810
mov dword [rbp - 0x40], 0x270
lea rax, [rbp - 0x60]
mov r9, qword [rbp - 0x60]
mov r10, qword [rbp - 0x48]
mov rcx, qword [rbp - 0x50]
cmp r10, 0x10
jb 0x140052855
mov r8, r9
lea rdx, [r9 + rcx]
jmp 0x14005285d
lea rdx, [rax + rcx]
lea r8, [rbp - 0x60]
mov qword [rsp + 0x28], r8
mov qword [rsp + 0x30], rdx
mov r13d, 0x40
nop dword [rax]
lea r13, [r13 - 1]
shr rsi, 1
cmp rsi, r11
ja 0x140052870
cmp r8, rdx
je 0x140052964
lea rax, [r8 + 1]
cmp rax, rdx
je 0x140052964
mov rcx, r15
sub rcx, r8
mov qword [rsp + 0x40], rcx
nop dword [rax]
lea rax, [r15 + r8]
mov qword [rsp + 0x50], rax
lea r12, [rax + rcx]
nop dword [rax]
xor edi, edi
xor ebx, ebx
test r15, r15
je 0x1400528f5
nop dword [rax]
lea rcx, [r13 - 1]
shl rdi, cl
add rdi, rdi
nop word [rax + rax]
lea rcx, [rbp - 0x40]
call fcn.140064710
mov eax, eax
cmp rax, rsi
ja 0x1400528d0
or rdi, rax
lea rcx, [r13 - 1]
shl rbx, cl
add rbx, rbx
or rbx, rsi
cmp rbx, r15
jb 0x1400528c0
xor edx, edx
mov rax, rbx
div r12
mov r8, rdx
mov rcx, rax
xor edx, edx
mov rax, rdi
div r12
cmp rax, rcx
jb 0x140052915
cmp r8, r15
jne 0x1400528b0
xor edx, edx
mov rax, rdi
div r12
mov r8, qword [rsp + 0x28]
cmp rdx, r15
je 0x14005293c
mov r9, qword [rsp + 0x50]
movzx ecx, byte [r9]
movzx eax, byte [rdx + r8]
mov byte [r9], al
mov byte [rdx + r8], cl
inc r15
lea rax, [r15 + r8]
cmp rax, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x40]
jne 0x1400528a0
mov r10, qword [rbp - 0x48]
mov rcx, qword [rbp - 0x50]
mov r9, qword [rbp - 0x60]
mov rbx, qword [rsp + 0x58]
mov qword [rbx], 0
mov qword [rbx + 0x10], 0
mov qword [rbx + 0x18], 0xf
mov byte [rbx], 0
movsxd r8, dword [rsp + 0x20]
cmp rcx, r8
cmovb r8, rcx
lea rdx, [rbp - 0x60]
cmp r10, 0x10
cmovae rdx, r9
mov rcx, rbx
call fcn.140053120
nop
mov rdx, qword [rbp - 0x48]
cmp rdx, 0x10
jb 0x1400529dd
inc rdx
mov rcx, qword [rbp - 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400529d8
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400529d8
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140066fd0
mov rax, rbx
mov rcx, qword [rbp + 0x1350]
xor rcx, rsp
call fcn.140066ee0
lea r11, [rsp + 0x1490]
mov rbx, qword [r11 + 0x50]
movaps xmm6, xmmword [r11 - 0x10]
movaps xmm7, xmmword [r11 - 0x20]
movaps xmm8, xmmword [r11 - 0x30]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret