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

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r13
push r14
sub rsp, 0x50
mov rax, qword [0x140132350]
xor rax, rsp
mov qword [rsp + 0x40], rax
inc dword [rcx + 0x10]
cmp dword [rcx + 0x10], 1
mov ebp, r8d
mov rsi, rdx
mov rdi, rcx
jne 0x1400d5f95
xor ecx, ecx
call fcn.1400eff20
mov rbx, rax
call sub.KERNEL32.dll_GetCurrentProcessId
xor eax, ebx
mov ecx, eax
call fcn.1400eff80
mov rdx, rsi
mov rcx, rdi
call fcn.1400d5eb4
xor ebx, ebx
mov r14d, 0xfffd
lea r13, [0x1401c3570]
call fcn.1400eff98
mov r8d, dword [rdi + 0xc]
mov edx, dword [rdi + 4]
sar eax, 7
mov rcx, rdx
shr edx, 8
movzx r10d, al
mov r9d, r8d
inc rbx
and r9d, r14d
mov eax, r10d
xor rcx, rax
or r9d, 2
movzx eax, cl
mov ecx, dword [r13 + rax*4]
xor ecx, edx
movzx eax, cl
mov dword [rdi + 4], ecx
add eax, dword [rdi + 8]
imul eax, eax, 0x8088405
inc eax
mov ecx, eax
mov dword [rdi + 8], eax
shr ecx, 0x18
xor rcx, r8
shr r8d, 8
movzx eax, cl
mov eax, dword [r13 + rax*4]
xor eax, r8d
mov dword [rdi + 0xc], eax
mov eax, r9d
xor eax, 1
imul eax, r9d
shr eax, 8
xor al, r10b
cmp rbx, 0xa
mov byte [rsp + rbx + 0x2f], al
jl 0x1400d5faf
mov rdx, rsi
mov rcx, rdi
call fcn.1400d5eb4
xor r11d, r11d
movzx r9d, byte [rsp + r11 + 0x30]
mov edx, dword [rdi + 4]
mov r8d, dword [rdi + 0xc]
mov rax, r9
mov r10d, r8d
inc r11
xor rax, rdx
shr edx, 8
and r10d, r14d
movzx ecx, al
or r10d, 2
mov eax, dword [r13 + rcx*4]
xor eax, edx
movzx ebx, al
mov dword [rdi + 4], eax
add ebx, dword [rdi + 8]
imul ebx, ebx, 0x8088405
inc ebx
mov eax, ebx
mov dword [rdi + 8], ebx
shr eax, 0x18
xor rax, r8
shr r8d, 8
movzx eax, al
mov ecx, dword [r13 + rax*4]
mov eax, r10d
xor eax, 1
xor ecx, r8d
mov dword [rdi + 0xc], ecx
imul eax, r10d
shr eax, 8
xor al, r9b
cmp r11, 0xa
mov byte [rsp + r11 + 0x2f], al
jl 0x1400d603b
mov edx, dword [rdi + 4]
and dword [rsp + 0x20], 0
mov r8d, ecx
mov r10d, ecx
mov r9d, ebp
shr ebp, 0x18
shr r9d, 0x10
and r10d, r14d
mov rax, r9
or r10d, 2
xor rax, rdx
shr edx, 8
movzx ecx, al
mov eax, dword [r13 + rcx*4]
xor eax, edx
mov dword [rdi + 4], eax
mov edx, dword [rdi + 4]
movzx eax, al
add ebx, eax
imul ebx, ebx, 0x8088405
inc ebx
mov dword [rdi + 8], ebx
mov eax, ebx
shr eax, 0x18
xor rax, r8
shr r8d, 8
movzx eax, al
mov ecx, dword [r13 + rax*4]
mov eax, r10d
xor eax, 1
xor ecx, r8d
mov dword [rdi + 0xc], ecx
mov r11d, ecx
and r11d, r14d
imul eax, r10d
shr eax, 8
or r11d, 2
mov r10d, ebp
xor al, r9b
mov r9d, ecx
mov byte [rsp + 0x3a], al
mov rax, r10
xor rax, rdx
shr edx, 8
movzx ecx, al
mov eax, dword [r13 + rcx*4]
xor eax, edx
lea rdx, [rsp + 0x30]
mov dword [rdi + 4], eax
movzx eax, al
add eax, ebx
imul eax, eax, 0x8088405
inc eax
mov ecx, eax
mov dword [rdi + 8], eax
shr ecx, 0x18
xor rcx, r9
shr r9d, 8
movzx eax, cl
mov rcx, rdi
mov eax, dword [r13 + rax*4]
xor eax, r9d
mov r9d, 0xc
mov dword [rdi + 0xc], eax
mov eax, r11d
lea r8d, [r9 - 0xb]
xor eax, 1
imul eax, r11d
shr eax, 8
xor al, bpl
mov byte [rsp + 0x3b], al
call fcn.1400d5498
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.1400e9d00
mov rbx, qword [rsp + 0x98]
add rsp, 0x50
pop r14
pop r13
pop rdi
pop rsi
pop rbp
ret