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

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
mov eax, 0x13d0
call fcn.1402aa5b0
sub rsp, rax
mov rax, qword [0x140554040]
xor rax, rsp
mov qword [rsp + 0x13c0], rax
mov eax, dword [0x140530808]
xor esi, esi
cmp dword [0x140554008], 2
mov r8d, esi
movsd xmm0, qword [0x140530800]
mov dword [rsp + 0x28], eax
movzx eax, byte [0x14053080c]
mov byte [rsp + 0x2c], al
movsd qword [rsp + 0x20], xmm0
jl 0x140006490
movdqa xmm2, xmmword [0x140534190]
mov r8d, 8
movdqa xmm4, xmmword [0x140534350]
movdqa xmm1, xmm2
movdqa xmm3, xmmword [0x1405341b0]
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
punpckldq xmm1, xmm2
pmuldq xmm0, xmm4
pmuldq xmm1, xmm4
shufps xmm1, xmm0, 0xdd
psrad xmm1, 4
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmmword [0x1405341f0]
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm1, xmm0, 0xd8
movd xmm0, dword [0x140530800]
pshufd xmm2, xmm1, 0xd8
movdqa xmm1, xmm3
andps xmm2, xmmword [0x140534260]
packuswb xmm2, xmm2
paddb xmm2, xmmword [0x1405342f0]
xorps xmm2, xmm0
punpckldq xmm1, xmm3
movd dword [rsp + 0x20], xmm2
movdqa xmm0, xmm3
punpckhdq xmm0, xmm3
pmuldq xmm0, xmm4
pmuldq xmm1, xmm4
shufps xmm1, xmm0, 0xdd
psrad xmm1, 4
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmmword [0x1405341f0]
psubd xmm3, xmm0
pshuflw xmm0, xmm3, 0xd8
pshufhw xmm1, xmm0, 0xd8
movd xmm0, dword [rsp + 0x24]
pshufd xmm2, xmm1, 0xd8
andps xmm2, xmmword [0x140534260]
packuswb xmm2, xmm2
paddb xmm2, xmmword [0x1405342f0]
xorps xmm2, xmm0
movd dword [rsp + 0x24], xmm2
movsxd rax, r8d
lea r9, [rsp + 0x20]
add r9, rax
nop dword [rax + rax]
mov eax, 0x4d4873ed
lea r9, [r9 + 1]
imul r8d
sar edx, 4
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul ecx, eax, 0x35
movzx eax, r8b
inc r8d
sub al, cl
add al, 0x37
xor byte [r9 - 1], al
cmp r8d, 0xd
jl 0x1400064a0
lea rax, [rsp + 0x20]
mov rdi, 0xffffffffffffffff
nop dword [rax]
inc rdi
cmp byte [rax + rdi], sil
jne 0x1400064e0
call qword [sym.imp.MSVCP140.dll_unsigned_int___cdecl_std::_Random_device_void_]
mov dword [rsp + 0x13b4], 0xffffffff
mov ecx, 1
mov dword [rsp + 0x34], eax
nop dword [rax]
nop word [rax + rax]
mov edx, eax
shr edx, 0x1e
xor edx, eax
imul eax, edx, 0x6c078965
add eax, ecx
mov dword [rsp + rcx*4 + 0x34], eax
inc rcx
cmp rcx, 0x270
jb 0x140006510
lea rcx, [rsp + 0x30]
mov dword [rsp + 0x30], 0x270
call fcn.1400280f0
mov ecx, eax
imul rbx, rcx, 0x11
test ebx, ebx
jne 0x140006565
nop dword [rax + rax]
lea rcx, [rsp + 0x30]
call fcn.1400280f0
mov ecx, eax
imul rbx, rcx, 0x11
cmp ebx, 1
jb 0x140006550
shr rbx, 0x20
lea rcx, [rbx + 1]
call fcn.1400ea118
mov rbp, rax
test rbx, rbx
je 0x1400065a5
nop word [rax + rax]
call qword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_rand]
cdq
idiv edi
movsxd rax, edx
movzx ecx, byte [rsp + rax + 0x20]
mov byte [rsi + rbp], cl
inc rsi
cmp rsi, rbx
jl 0x140006580
mov byte [rbx + rbp], 0
mov rax, rbp
jmp 0x1400065a9
mov byte [rbx + rax], sil
mov rcx, qword [rsp + 0x13c0]
xor rcx, rsp
call fcn.1400e9c90
lea r11, [rsp + 0x13d0]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret