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

Disassembly:
cmp rcx, rdx
je 0x1401543f3
mov qword [rsp + 8], rcx
push rdi
push r13
sub rsp, 0x18
mov qword [rsp + 0x10], r12
mov rdi, r8
lea r12, [rcx + 8]
mov r13, rdx
cmp r12, rdx
je 0x1401543e7
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x40], rbp
mov qword [rsp + 0x48], rsi
mov qword [rsp + 8], r14
mov qword [rsp], r15
mov r15d, 2
nop dword [rax + rax]
lea r14, [r15 - 1]
nop dword [rax]
nop dword [rax + rax]
xor esi, esi
xor ebp, ebp
test r14, r14
je 0x140154379
mov rdx, qword [rdi + 8]
lea ecx, [rdx + 0xff]
shl rsi, cl
add rsi, rsi
nop dword [rax]
mov r11, qword [rdi]
mov ecx, dword [r11]
cmp ecx, 0x270
jne 0x140154224
lea rax, [r11 + 8]
mov r9d, ecx
nop word [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 r9, 1
jne 0x1401541e0
mov ecx, dword [r11]
jmp 0x14015430a
cmp ecx, 0x4e0
jb 0x14015430a
lea r10, [r11 + 0x9c4]
mov ebx, 0xe3
mov eax, dword [r10]
nop
mov edx, eax
lea r8, [r10 + 4]
xor edx, dword [r8]
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
mov eax, dword [r8]
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r10 + 0x634]
xor ecx, edx
mov dword [r10 - 0x9c0], ecx
lea r10, [r8]
sub rbx, 1
jne 0x140154240
lea r10, [r11 + 0xd50]
mov ebx, 0x18c
mov eax, dword [r10]
nop word [rax + rax]
mov edx, eax
lea r8, [r10 + 4]
xor edx, dword [r8]
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
mov eax, dword [r8]
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r10 - 0xd4c]
xor ecx, edx
mov dword [r10 - 0x9c0], ecx
lea r10, [r8]
sub rbx, 1
jne 0x140154290
mov edx, dword [r11 + 0x1380]
xor edx, dword [r11 + 4]
btr edx, 0x1f
xor edx, dword [r11 + 0x1380]
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], 0
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]
mov r8, qword [rdi + 0x10]
shr ecx, 0xb
and eax, ecx
xor edx, eax
mov eax, edx
and eax, 0xff3a58ad
shl eax, 7
xor edx, eax
mov eax, edx
and edx, 0xffffdf8c
shl edx, 0xf
mov ecx, edx
xor rcx, rax
mov rax, rcx
shr rax, 0x12
xor rax, rcx
cmp rax, r8
ja 0x1401541c0
mov rdx, qword [rdi + 8]
or rsi, rax
lea ecx, [rdx + 0xff]
shl rbp, cl
add rbp, rbp
or rbp, r8
cmp rbp, r14
jb 0x1401541b1
xor edx, edx
mov rax, rbp
div r15
mov rcx, rax
mov r8, rdx
xor edx, edx
mov rax, rsi
div r15
cmp rax, rcx
jb 0x14015439d
cmp r8, r14
jne 0x1401541a0
xor edx, edx
mov rax, rsi
div r15
cmp rdx, r14
je 0x1401543bf
mov r8, qword [rsp + 0x30]
mov rcx, qword [r12]
mov rax, qword [r8 + rdx*8]
mov qword [r12], rax
mov qword [r8 + rdx*8], rcx
inc r15
add r12, 8
cmp r12, r13
jne 0x140154190
mov r15, qword [rsp]
mov r14, qword [rsp + 8]
mov rsi, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x38]
mov r12, qword [rsp + 0x10]
add rsp, 0x18
pop r13
pop rdi
ret