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

Disassembly:
cmp rcx, rdx
je 0x140082e74
nop
push 0x37e030ef
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
xchg r14, rdi
mov rdi, r8
xchg rdi, r14
xchg r14, rdx
mov r9, r14
xchg rdx, r14
xchg r10, rdx
mov rdx, rcx
xchg r10, rdx
mov r13d, 0x410ee605
add r13d, 0x3dd523d6
sub r13d, 0x7bda1999
xor r13d, 0x536bba05
sub r13d, 0xd2481ea
sub r13d, 0x18389325
sub r13d, 0x22893b7b
sub r13d, 0x87bf9bc
cmp rax, rdx
je 0x140082e54
mov qword [rsp + 0x38], rbx
xchg rbp, r9
mov qword [rsp + 0x40], r9
xchg r9, rbp
xchg r13, rsi
mov qword [rsp + 0x48], r13
xchg r13, rsi
mov qword [rsp + 0x18], rdi
mov qword [rsp + 0x10], r12
mov qword [rsp], r15
lea r12, [r13 + 1]
nop word [rax + rax]
xor ebp, ebp
xor r15d, r15d
test r13, r13
je 0x140082d63
nop
movzx ecx, byte [r14 + 8]
neg cl
add cl, 1
neg cl
shl rbp, cl
add rbp, rbp
nop
mov rbx, qword [r14]
mov ecx, dword [rbx]
cmp ecx, 0x270
jne 0x140082b6a
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 0x140082b23
mov ecx, dword [rbx]
jmp 0x140082cc9
cmp ecx, 0x4e0
jb 0x140082cc9
lea rdi, [rbx + 0x9c4]
mov esi, 0x1da93bef
add esi, 0x3a983e62
xor esi, 0x5f809f0b
add esi, 0x613bbcd7
sub esi, 0x36ab3fb
xor esi, 0x5c7db63f
xor esi, 0x39ef58ea
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 0x140082bab
lea rdi, [rbx + 0xd50]
mov esi, 0x3e271dfe
xor esi, 0x6717a651
sub esi, 0x1b608689
add esi, 0x6626c7
xor esi, 0x6b4586d9
xor esi, 0x4fe89ede
sub esi, 0x1a9b425e
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 0x140082c23
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], 0x2b2d6d0b
sub dword [rbx], 0x1b14a756
xor dword [rbx], 0x66f2e087
xor dword [rbx], 0x3028ba6
sub dword [rbx], 0x3d8318f1
xor dword [rbx], 0x73a9a303
xor dword [rbx], 0x1b86560d
sub dword [rbx], 0x21ecb617
xor dword [rbx], 0x2e5daa96
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, 0xa
shr ecx, 1
and eax, ecx
xor edx, eax
mov eax, edx
and eax, 0xff3a58ad
shl eax, 2
shl eax, 2
shl eax, 2
shl eax, 1
xor edx, eax
mov eax, edx
and eax, 0xffffdf8c
shl eax, 0xd
shl eax, 2
xor edx, eax
mov ecx, edx
shr rcx, 0x11
shr rcx, 1
mov eax, edx
mov rdx, qword [r14 + 0x10]
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 0x140082aff
or rbp, rcx
movzx ecx, byte [r14 + 8]
sub cl, 0x3d
add cl, 0x3c
shl r15, cl
add r15, r15
or r15, rdx
cmp r15, r13
jb 0x140082aeb
xor edx, edx
xchg r15, r12
mov rax, r12
xchg r15, r12
div r12
xor edx, edx
xchg rbx, rax
mov rcx, rbx
xchg rbx, rax
xchg r11, rax
mov r11, rbp
xchg r11, rax
div r12
cmp rax, rcx
jb 0x140082da2
xor edx, edx
xchg r15, rax
mov r15, rax
xchg r15, rax
div r12
cmp rdx, r13
jne 0x140082adb
xor edx, edx
xchg rbp, rax
mov rbp, rax
xchg rbp, rax
div r12
mov rax, qword [rsp + 0x30]
cmp rdx, r13
je 0x140082e10
shl rdx, 3
shl rdx, 1
shl rdx, 1
add rdx, r10
cmp rax, rdx
je 0x140082e10
xchg rdx, r11
movups xmm0, xmmword [r11]
xchg r11, rdx
xchg rsi, rax
movups xmm2, xmmword [rsi]
xchg rsi, rax
xchg rdi, rax
movups xmm3, xmmword [rdi + 0x10]
xchg rdi, rax
xchg rbp, rax
movups xmmword [rbp], xmm0
xchg rbp, rax
xchg r8, rdx
movups xmm1, xmmword [r8 + 0x10]
xchg r8, rdx
movups xmmword [rax + 0x10], xmm1
xchg rdx, r8
movups xmmword [r8], xmm2
xchg rdx, r8
movups xmmword [rdx + 0x10], xmm3
sub rax, 0xffffffffffffffe0
mov r13, r12
mov qword [rsp + 0x30], rax
cmp rax, r9
jne 0x140082acd
mov r15, qword [rsp]
xchg r12, r14
mov r14, qword [rsp + 0x10]
xchg r14, r12
xchg rdi, rsi
mov rsi, qword [rsp + 0x18]
xchg rdi, rsi
mov rsi, qword [rsp + 0x48]
xchg r12, rbp
mov r12, qword [rsp + 0x40]
xchg rbp, r12
mov rbx, qword [rsp + 0x38]
mov r13, qword [rsp + 8]
add rsp, 0x20
push rax
push rbx
push rcx
push rax
push rdx
push rdx
push rcx
xchg qword [rsp + 0x38], r14
pop rcx
pop rdx
pop rdx
pop rax
pop rcx
pop rbx
pop rax
add rsp, 8
ret