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

Disassembly:
cmp rcx, rdx
je 0x14000539c
push r14
sub rsp, 0x20
lea rax, [rcx + 1]
mov qword [rsp + 0x10], r12
mov r14, r8
mov r10, rdx
mov r9, rcx
mov r12d, 1
cmp rax, rdx
je 0x140005391
mov qword [rsp + 0x38], rbx
mov ecx, r12d
mov qword [rsp + 0x40], rbp
sub rcx, r9
mov qword [rsp + 0x48], rsi
mov qword [rsp + 0x18], rdi
mov qword [rsp + 8], r13
mov qword [rsp], r15
mov qword [rsp + 0x30], rcx
nop dword [rax + rax]
lea r13, [r12 + r9]
add r13, rcx
nop word [rax + rax]
xor ebp, ebp
xor r15d, r15d
test r12, r12
je 0x140005317
nop
movzx ecx, byte [r14 + 8]
add cl, 0xff
shl rbp, cl
add rbp, rbp
nop
mov rbx, qword [r14]
mov ecx, dword [rbx]
cmp ecx, 0x270
jne 0x1400051d3
lea rax, [rbx + 8]
mov r11d, 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 r11, 1
jne 0x140005190
mov ecx, dword [rbx]
jmp 0x1400052ad
cmp ecx, 0x4e0
jb 0x1400052ad
lea r11, [rbx + 0x9c4]
mov esi, 0xe3
mov edi, dword [r11]
nop
mov eax, edi
mov edi, dword [r11 + 4]
mov edx, eax
lea r11, [r11 + 4]
xor edx, edi
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 + 0x630]
xor ecx, edx
mov dword [r11 - 0x9c4], ecx
sub rsi, 1
jne 0x1400051f0
lea r11, [rbx + 0xd50]
mov esi, 0x18c
mov edi, dword [r11]
nop dword [rax]
mov eax, edi
mov edi, dword [r11 + 4]
mov edx, eax
lea r11, [r11 + 4]
xor edx, edi
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 - 0xd50]
xor ecx, edx
mov dword [r11 - 0x9c4], ecx
sub rsi, 1
jne 0x140005240
mov eax, dword [rbx + 0x1380]
mov edx, eax
xor edx, dword [rbx + 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 [rbx + 0x634]
xor ecx, edx
mov dword [rbx + 0x9c0], ecx
xor ecx, ecx
mov dword [rbx], esi
mov eax, ecx
mov edx, dword [rbx + rax*4 + 4]
lea eax, [rcx + 1]
mov dword [rbx], eax
mov ecx, edx
mov eax, dword [rbx + 0x1384]
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
mov rdx, qword [r14 + 0x10]
xor rcx, rax
mov rax, rcx
shr rax, 0x12
xor rax, rcx
cmp rax, rdx
ja 0x140005170
movzx ecx, byte [r14 + 8]
or rbp, rax
add cl, 0xff
shl r15, cl
add r15, r15
or r15, rdx
cmp r15, r12
jb 0x140005160
xor edx, edx
mov rax, r15
div r13
xor edx, edx
mov rcx, rax
mov rax, rbp
div r13
cmp rax, rcx
jb 0x140005340
xor edx, edx
mov rax, r15
div r13
cmp rdx, r12
jne 0x140005150
xor edx, edx
mov rax, rbp
div r13
cmp rdx, r12
je 0x14000535f
movzx eax, byte [rdx + r9]
movzx ecx, byte [r12 + r9]
mov byte [r12 + r9], al
mov byte [rdx + r9], cl
mov rcx, qword [rsp + 0x30]
inc r12
lea rax, [r12 + r9]
cmp rax, r10
jne 0x140005140
mov r15, qword [rsp]
mov r13, qword [rsp + 8]
mov rdi, qword [rsp + 0x18]
mov rsi, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x38]
mov r12, qword [rsp + 0x10]
add rsp, 0x20
pop r14
ret