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

Disassembly:
cmp rcx, rdx
je 0x140066d0a
nop
sub rsp, 8
mov qword [rsp], r14
sub rsp, 0x20
lea rax, [rcx + 0x20]
mov qword [rsp + 8], r13
xchg r12, rax
mov qword [rsp + 0x30], r12
xchg r12, rax
mov r14, r8
xchg rdx, rdi
mov r9, rdi
xchg rdi, rdx
xchg rcx, r10
mov rcx, r10
xchg r10, rcx
mov r13d, 1
cmp rax, rdx
je 0x140066cf8
xchg rbx, rdi
mov qword [rsp + 0x38], rdi
xchg rbx, rdi
mov qword [rsp + 0x40], rbp
mov qword [rsp + 0x48], rsi
mov qword [rsp + 0x18], rdi
xchg r8, r12
mov qword [rsp + 0x10], r8
xchg r12, r8
mov qword [rsp], r15
lea r12, [r13 + 1]
nop word [rax + rax]
xor ebp, ebp
xor r15d, r15d
test r13, r13
je 0x140066bfc
nop
movzx ecx, byte [r14 + 8]
add cl, 1
sub cl, 2
shl rbp, cl
add rbp, rbp
nop
xchg r15, r11
mov r15, qword [r14]
xchg r11, r15
mov ecx, dword [r11]
cmp ecx, 0x270
jne 0x140066a88
lea rax, [r11 + 8]
mov ebx, ecx
nop dword [rax]
nop dword [rax + rax]
mov r8d, dword [rax - 4]
xor r8d, dword [rax]
lea rax, [rax + 4]
btr r8d, 0x1f
xor r8d, dword [rax - 8]
mov ecx, r8d
and cl, 1
neg cl
sbb edx, edx
shr r8d, 1
and edx, 0x9908b0df
xor edx, dword [rax + 0x62c]
xor edx, r8d
mov dword [rax + 0x9b8], edx
sub rbx, 1
jne 0x140066a40
mov ecx, dword [r11]
jmp 0x140066b6b
cmp ecx, 0x4e0
jb 0x140066b6b
lea rbx, [r11 + 0x9c4]
mov edi, 0xe3
mov esi, dword [rbx]
nop
mov eax, esi
mov esi, dword [rbx + 4]
mov edx, eax
lea rbx, [rbx + 4]
xor edx, esi
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [rbx + 0x630]
xor ecx, edx
mov dword [rbx - 0x9c4], ecx
sub rdi, 1
jne 0x140066aa4
lea rbx, [r11 + 0xd50]
mov edi, 0x18c
mov esi, dword [rbx]
nop word [rax + rax]
mov eax, esi
mov esi, dword [rbx + 4]
mov edx, esi
lea rbx, [rbx + 4]
xor edx, eax
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [rbx - 0xd50]
xor ecx, edx
mov dword [rbx - 0x9c4], ecx
sub rdi, 1
jne 0x140066af8
mov eax, dword [r11 + 0x1380]
mov edx, eax
xor edx, dword [r11 + 4]
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r11 + 0x634]
xor ecx, edx
mov dword [r11 + 0x9c0], ecx
xor ecx, ecx
mov dword [r11], edi
mov eax, ecx
mov edx, dword [r11 + rax*4 + 4]
lea eax, [rcx + 1]
mov dword [r11], eax
mov ecx, edx
mov eax, dword [r11 + 0x1384]
shr ecx, 8
shr ecx, 2
shr ecx, 1
and eax, ecx
xor edx, eax
mov eax, edx
and eax, 0xff3a58ad
shl eax, 6
shl eax, 1
xor edx, eax
mov eax, edx
and eax, 0xffffdf8c
shl eax, 2
shl eax, 4
shl eax, 6
shl eax, 2
shl eax, 1
xor edx, eax
mov eax, edx
mov ecx, edx
shr rcx, 0xa
shr rcx, 2
shr rcx, 2
shr rcx, 1
shr rcx, 2
shr rcx, 1
xor rcx, rax
mov rax, qword [r14 + 0x10]
cmp rcx, rax
ja 0x140066a16
or rbp, rcx
movzx ecx, byte [r14 + 8]
sub cl, 0x3e
add cl, 0x3d
shl r15, cl
add r15, r15
or r15, rax
cmp r15, r13
jb 0x140066a03
xor edx, edx
xchg rsi, rax
mov rsi, r15
xchg rsi, rax
div r12
xor edx, edx
xchg rbx, rcx
mov rbx, rax
xchg rcx, rbx
mov rax, rbp
div r12
cmp rax, rcx
jb 0x140066c37
xor edx, edx
xchg r15, rax
mov r15, rax
xchg r15, rax
div r12
cmp rdx, r13
jne 0x1400669f3
xor edx, edx
xchg r8, rax
mov r8, rbp
xchg r8, rax
div r12
xchg rdx, rax
mov rdx, qword [rsp + 0x30]
xchg rdx, rax
cmp rdx, r13
je 0x140066ca2
shl rdx, 1
shl rdx, 3
shl rdx, 1
add rdx, r10
cmp rax, rdx
je 0x140066ca2
movups xmm0, xmmword [rdx]
xchg rbp, rax
movups xmm2, xmmword [rbp]
xchg rbp, rax
xchg r11, rax
movups xmm3, xmmword [r11 + 0x10]
xchg r11, rax
xchg r15, rax
movups xmmword [r15], xmm0
xchg r15, rax
xchg rcx, rdx
movups xmm1, xmmword [rcx + 0x10]
xchg rdx, rcx
movups xmmword [rax + 0x10], xmm1
movups xmmword [rdx], xmm2
xchg rsi, rdx
movups xmmword [rsi + 0x10], xmm3
xchg rdx, rsi
add rax, 0x20
xchg r13, r12
mov r12, r13
xchg r12, r13
mov qword [rsp + 0x30], rax
cmp rax, r9
jne 0x1400669e5
xchg rdx, r15
mov rdx, qword [rsp]
xchg rdx, r15
xchg r9, r12
mov r9, qword [rsp + 0x10]
xchg r12, r9
xchg r15, rdi
mov r15, qword [rsp + 0x18]
xchg r15, rdi
xchg rsi, rdi
mov rdi, qword [rsp + 0x48]
xchg rsi, rdi
xchg rbx, rbp
mov rbx, qword [rsp + 0x40]
xchg rbx, rbp
mov rbx, qword [rsp + 0x38]
mov r13, qword [rsp + 8]
add rsp, 0x20
nop
xchg qword [rsp], r14
add rsp, 8
ret