Function at 0x7ff810aebd50
Capabilities:
Encode data using xor
Generate random numbers using the delphi lcg

Disassembly:
mov qword [rsp + 0x18], rbx
push rsi
push rdi
push r14
sub rsp, 0x90
mov rax, qword [0x7ff810b3e288]
xor rax, rsp
mov qword [rsp + 0x80], rax
cmp byte [rcx + 0x38], 0
mov r14, rdx
mov rdi, rcx
jne 0x7ff810aebf96
cmp dword [rcx + 0x30], 0
jbe 0x7ff810aebf86
cmp byte [rcx + 0x4d], 0
jne 0x7ff810aebf96
xor esi, esi
cmp byte [rcx + 0x4c], sil
jne 0x7ff810aebf78
mov ebx, esi
nop dword [rax]
nop dword [rax + rax]
mov r8d, 0xc
lea rdx, [rsp + 0x70]
sub r8, rbx
add rdx, rbx
mov r9d, 1
mov rcx, rdi
call fcn.7ff810aeaf70
test rax, rax
js 0x7ff810aebde7
je 0x7ff810aebde1
add rbx, rax
cmp rbx, 0xc
jb 0x7ff810aebdb0
jmp 0x7ff810aebdf4
mov byte [rdi + 0x4c], 1
jmp 0x7ff810aebdf4
mov byte [rdi + 0x4d], 1
test rbx, rbx
je 0x7ff810aebf96
test rbx, rbx
js 0x7ff810aebf96
cmp rbx, 0xc
jne 0x7ff810aebf78
movzx eax, word [r14 + 0x18]
mov rbx, rsi
nop
movzx eax, ax
lea rdx, [rsp + 0x20]
or eax, 2
mov r8d, 1
mov ecx, eax
xor ecx, 1
imul ecx, eax
shr ecx, 8
xor cl, byte [rsp + rbx + 0x70]
mov byte [rsp + 0x20], cl
mov byte [rsp + rbx + 0x70], cl
mov ecx, dword [r14 + 0x10]
not ecx
call fcn.7ff810b02e30
not eax
lea rdx, [rsp + 0x20]
mov dword [r14 + 0x10], eax
mov r8d, 1
movzx eax, al
add eax, dword [r14 + 0x14]
imul ecx, eax, 0x8088405
inc ecx
mov dword [r14 + 0x14], ecx
shr ecx, 0x18
mov byte [rsp + 0x20], cl
mov ecx, dword [r14 + 0x18]
not ecx
call fcn.7ff810b02e30
inc rbx
not eax
mov dword [r14 + 0x18], eax
cmp rbx, 0xc
jb 0x7ff810aebe10
cmp byte [rdi + 0x38], sil
jne 0x7ff810aebee6
mov rcx, qword [rdi]
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x38], rsi
mov qword [rsp + 0x40], 0xffffffffffffffff
mov qword [rsp + 0x60], rsi
mov qword [rsp + 0x58], 0xffffffffffffffff
mov qword [rsp + 0x48], rsi
mov qword [rsp + 0x50], rsi
test rcx, rcx
je 0x7ff810aebeed
lea rdx, [rsp + 0x30]
call fcn.7ff810aea790
test eax, eax
jns 0x7ff810aebeed
mov rcx, qword [rdi]
lea rdx, [rdi + 0x18]
test rdx, rdx
je 0x7ff810aebee6
mov eax, dword [rcx + 0x18]
mov dword [rdx], eax
mov eax, dword [rcx + 0x1c]
mov dword [rdx + 4], eax
xor eax, eax
jmp 0x7ff810aebfad
mov r9d, 3
lea rdx, [rsp + 0x30]
mov rcx, rdi
lea r8d, [r9 + 0x3d]
call fcn.7ff810aeaf70
test rax, rax
js 0x7ff810aebee6
mov rax, qword [rsp + 0x58]
lea rcx, [rsp + 0x28]
mov qword [rsp + 0x28], rax
call fcn.7ff810b1813c
test rax, rax
jne 0x7ff810aebf28
movzx r8d, si
jmp 0x7ff810aebf51
cmp dword [rax + 0x14], 0x50
jge 0x7ff810aebf35
mov dword [rax + 0x14], 0x50
movzx r8d, word [rax + 8]
shl r8w, 6
add r8w, word [rax + 4]
mov eax, dword [rax]
sar eax, 1
shl r8w, 5
add r8w, ax
mov edx, dword [rsp + 0x60]
movzx eax, byte [rsp + 0x7b]
shr edx, 0x18
cmp al, dl
je 0x7ff810aebee6
shr r8w, 8
cmp al, r8b
je 0x7ff810aebee6
mov qword [r14], 0x1b
jmp 0x7ff810aebfa8
test r14, r14
je 0x7ff810aebfa8
mov qword [r14], 0x11
jmp 0x7ff810aebfa8
lea rax, [rcx + 0x18]
test rax, rax
je 0x7ff810aebf96
mov qword [rax], 0x12
test r14, r14
je 0x7ff810aebfa8
mov eax, dword [rdi + 0x18]
mov dword [r14], eax
mov eax, dword [rdi + 0x1c]
mov dword [r14 + 4], eax
mov eax, 0xffffffff
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.7ff810afee80
mov rbx, qword [rsp + 0xc0]
add rsp, 0x90
pop r14
pop rdi
pop rsi
ret