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

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
mov eax, 0x13d0
call fcn.1800ff9f0
sub rsp, rax
mov rax, qword [0x180152040]
xor rax, rsp
mov qword [rsp + 0x13c0], rax
mov rdi, rcx
mov qword [rsp + 0x28], rcx
xor ebp, ebp
mov dword [rsp + 0x20], ebp
xorps xmm0, xmm0
movups xmmword [rcx], xmm0
mov qword [rcx + 0x10], rbp
mov qword [rcx + 0x18], 0xf
mov byte [rcx], bpl
mov ebx, 1
mov dword [rsp + 0x20], ebx
call qword [sym.imp.MSVCP140.dll_unsigned_int___cdecl_std::_Random_device_void_]
mov ecx, eax
mov dword [rsp + 0x13b4], 0xffffffff
mov dword [rsp + 0x34], eax
mov eax, ecx
shr eax, 0x1e
xor eax, ecx
imul ecx, eax, 0x6c078965
add ecx, ebx
mov dword [rsp + rbx*4 + 0x34], ecx
inc rbx
cmp rbx, 0x270
jb 0x180065600
mov ebx, 0x270
mov dword [rsp + 0x30], ebx
mov esi, 4
mov r14d, 0x37
cmp ebx, 0x270
jne 0x180065695
lea rax, [rsp + 0x38]
mov r9d, 0x270
nop word [rax + rax]
mov r8d, dword [rax - 4]
xor r8d, dword [rax]
btr r8d, 0x1f
xor r8d, dword [rax - 4]
mov ecx, r8d
and cl, 1
neg cl
sbb edx, edx
and edx, 0x9908b0df
xor edx, dword [rax + 0x630]
shr r8d, 1
xor edx, r8d
mov dword [rax + 0x9bc], edx
lea rax, [rax + 4]
sub r9, 1
jne 0x180065650
mov ebx, dword [rsp + 0x30]
jmp 0x180065770
cmp ebx, 0x4e0
jb 0x180065770
mov r8, rbp
mov eax, dword [rsp + r8*4 + 0x9f4]
mov edx, eax
xor edx, dword [rsp + r8*4 + 0x9f8]
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
and ecx, 0x9908b0df
xor ecx, dword [rsp + r8*4 + 0x1028]
shr edx, 1
xor ecx, edx
mov dword [rsp + r8*4 + 0x34], ecx
inc r8
cmp r8, 0xe3
jb 0x1800656a4
mov r8d, 0xe3
nop dword [rax]
mov eax, dword [rsp + r8*4 + 0x9f4]
mov edx, eax
xor edx, dword [rsp + r8*4 + 0x9f8]
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
and ecx, 0x9908b0df
xor ecx, dword [rsp + r8*4 - 0x358]
shr edx, 1
xor ecx, edx
mov dword [rsp + r8*4 + 0x34], ecx
inc r8
cmp r8, 0x26f
jb 0x1800656f0
mov edx, dword [rsp + 0x13b0]
and edx, 0x80000000
mov eax, dword [rsp + 0x34]
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 [rsp + 0x664]
mov dword [rsp + 0x9f0], ecx
mov ebx, ebp
mov dword [rsp + 0x30], ebx
mov eax, ebx
mov ecx, dword [rsp + rax*4 + 0x34]
inc ebx
mov dword [rsp + 0x30], ebx
mov eax, ecx
shr eax, 0xb
and eax, dword [rsp + 0x13b4]
xor ecx, eax
mov eax, ecx
and eax, 0xff3a58ad
shl eax, 7
xor ecx, eax
mov eax, ecx
and eax, 0xffffdf8c
shl eax, 0xf
xor ecx, eax
mov r8d, ecx
shr r8d, 0x12
xor r8d, ecx
mov eax, 0x38e38e39
mul r8d
shr edx, 3
movzx eax, dl
shl al, 3
add dl, al
shl dl, 2
sub r8b, dl
mov r9d, 0x30
cmp r8b, 0xa
cmovge r9d, r14d
add r9b, r8b
mov rcx, qword [rdi + 0x10]
mov rdx, qword [rdi + 0x18]
cmp rcx, rdx
jae 0x180065802
lea rax, [rcx + 1]
mov qword [rdi + 0x10], rax
mov rax, rdi
cmp rdx, 0xf
jbe 0x1800657f7
mov rax, qword [rdi]
mov byte [rax + rcx], r9b
mov byte [rax + rcx + 1], 0
jmp 0x18006580a
mov rcx, rdi
call fcn.180007420
sub rsi, 1
jne 0x180065633
mov rax, rdi
mov rcx, qword [rsp + 0x13c0]
xor rcx, rsp
call fcn.1800fed70
lea r11, [rsp + 0x13d0]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret