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

Disassembly:
cmp rcx, rdx
je 0x140082c80
nop
mov qword [rsp - 8], r14
sub rsp, 8
sub rsp, 0x20
lea rax, [rcx + 0x20]
mov qword [rsp + 8], r13
mov qword [rsp + 0x30], rax
xchg r9, r14
mov r9, r8
xchg r9, r14
xchg rbp, r9
mov rbp, rdx
xchg r9, rbp
xchg rcx, rdi
mov r10, rdi
xchg rdi, rcx
mov r13d, 0x2c0f238f
add r13d, 0x24fb102d
sub r13d, 0xeda8d68
add r13d, 0x1b7aaa2
sub r13d, 0x312bb3b5
add r13d, 0x591bb429
xor r13d, 0x6bd7516b
cmp rax, rdx
je 0x140082c6e
mov qword [rsp + 0x38], rbx
xchg rbp, r11
mov qword [rsp + 0x40], r11
xchg rbp, r11
xchg rsi, r13
mov qword [rsp + 0x48], r13
xchg rsi, r13
mov qword [rsp + 0x18], rdi
xchg r15, r12
mov qword [rsp + 0x10], r15
xchg r15, r12
mov qword [rsp], r15
lea r12, [r13 + 1]
nop word [rax + rax]
xor ebp, ebp
xor r15d, r15d
test r13, r13
je 0x140082b7c
nop
movzx ecx, byte [r14 + 8]
add cl, 0xc
sub cl, 0xd
shl rbp, cl
add rbp, rbp
nop
mov rbx, qword [r14]
mov ecx, dword [rbx]
cmp ecx, 0x270
jne 0x140082974
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 0x14008292d
mov ecx, dword [rbx]
jmp 0x140082ac7
cmp ecx, 0x4e0
jb 0x140082ac7
lea rdi, [rbx + 0x9c4]
mov esi, 0xed31c85
add esi, 0x249e92dd
add esi, 0x36db6e21
sub esi, 0x41e46ab8
add esi, 0x26b6f994
sub esi, 0x4f1fab7c
mov eax, dword [rdi]
nop dword [rax]
mov edx, dword [rdi + 4]
lea r8, [rdi + 4]
xor edx, eax
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 [rdi + 0x634]
xor ecx, edx
mov dword [rdi - 0x9c0], ecx
lea rdi, [r8]
sub rsi, 1
jne 0x1400829af
lea rdi, [rbx + 0xd50]
mov esi, 0x93451de
add esi, 0x744adc28
sub esi, 0x78b4316c
xor esi, 0x7981de94
sub esi, 0x4aa41ead
sub esi, 0x143ab103
sub esi, 0x1e6c50d2
mov eax, dword [rdi]
nop word [rax + rax]
mov edx, dword [rdi + 4]
lea r8, [rdi + 4]
xor edx, eax
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 [rdi - 0xd4c]
xor ecx, edx
mov dword [rdi - 0x9c0], ecx
lea rdi, [r8]
sub rsi, 1
jne 0x140082a27
mov edx, dword [rbx + 0x1380]
xor edx, dword [rbx + 4]
btr edx, 0x1f
xor edx, dword [rbx + 0x1380]
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], 0x658220e9
sub dword [rbx], 0x5629d20b
add dword [rbx], 0x2526542c
xor dword [rbx], 0x47a00df5
sub dword [rbx], 0x577388be
xor dword [rbx], 0x27ad16ee
xor dword [rbx], 0x469224c3
sub dword [rbx], 0x7d54146c
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, 3
shr ecx, 4
shr ecx, 1
shr ecx, 2
shr ecx, 1
and eax, ecx
xor edx, eax
mov eax, edx
and eax, 0xff3a58ad
shl eax, 1
shl eax, 6
xor edx, eax
mov eax, edx
and eax, 0xffffdf8c
shl eax, 0xf
xor edx, eax
mov ecx, edx
shr rcx, 2
shr rcx, 2
shr rcx, 5
shr rcx, 4
shr rcx, 1
shr rcx, 1
shr rcx, 2
shr rcx, 1
mov eax, edx
xchg r13, rdx
mov r13, qword [r14 + 0x10]
xchg rdx, r13
push rcx
xor ecx, eax
push rcx
xor rcx, qword [rsp + 8]
shr rcx, 0x20
ror rax, 0x20
xor ecx, eax
ror rax, 0x20
shl rcx, 0x20
or rcx, qword [rsp]
add rsp, 0x10
cmp rcx, rdx
ja 0x140082909
or rbp, rcx
movzx ecx, byte [r14 + 8]
sub cl, 0x35
add cl, 0x34
shl r15, cl
add r15, r15
or r15, rdx
cmp r15, r13
jb 0x1400828f6
xor edx, edx
xchg r15, rax
mov r15, rax
xchg r15, rax
div r12
xor edx, edx
mov rcx, rax
xchg r9, rax
mov r9, rbp
xchg r9, rax
div r12
cmp rax, rcx
jb 0x140082bb1
xor edx, edx
mov rax, r15
div r12
cmp rdx, r13
jne 0x1400828e6
xor edx, edx
xchg rbp, rax
mov rbp, rax
xchg rbp, rax
div r12
xchg rsi, rax
mov rsi, qword [rsp + 0x30]
xchg rsi, rax
cmp rdx, r13
je 0x140082c20
shl rdx, 5
add rdx, r10
cmp rax, rdx
je 0x140082c20
xchg rdx, r8
movups xmm0, xmmword [r8]
xchg rdx, r8
movups xmm2, xmmword [rax]
xchg rdx, rax
movups xmm3, xmmword [rdx + 0x10]
xchg rdx, rax
xchg r15, rax
movups xmmword [r15], xmm0
xchg r15, rax
movups xmm1, xmmword [rdx + 0x10]
xchg r12, rax
movups xmmword [r12 + 0x10], xmm1
xchg r12, rax
xchg r13, rdx
movups xmmword [r13], xmm2
xchg rdx, r13
xchg rdx, r13
movups xmmword [r13 + 0x10], xmm3
xchg rdx, r13
sub rax, 0xffffffffffffffe0
xchg r12, rdx
mov r13, rdx
xchg rdx, r12
xchg rdi, rax
mov qword [rsp + 0x30], rdi
xchg rdi, rax
cmp rax, r9
jne 0x1400828d8
mov r15, qword [rsp]
xchg rbx, r12
mov rbx, qword [rsp + 0x10]
xchg r12, rbx
xchg rdi, r12
mov r12, qword [rsp + 0x18]
xchg r12, rdi
mov rsi, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x40]
xchg r14, rbx
mov r14, qword [rsp + 0x38]
xchg rbx, r14
mov r13, qword [rsp + 8]
add rsp, 0x20
nop
xchg qword [rsp], r14
add rsp, 8
nop
add rsp, 8
jmp qword [rsp - 8]