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

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x40
mov rax, qword [0x1401080e0]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov eax, dword [0x140109f88]
mov rdi, r9
mov rbx, r8
inc eax
mov r15, rdx
mov r14, rcx
mov dword [0x140109f88], eax
cmp eax, 1
jne 0x14005be6e
xor ecx, ecx
call qword [sym.imp.MSVCR120.dll__time64]
xor eax, 0xbb40e64e
mov ecx, eax
call qword [sym.imp.MSVCR120.dll_srand]
mov r8, rdi
mov rdx, rbx
mov rcx, r14
call fcn.14005bd90
xor esi, esi
mov r12d, 0xfffd
mov ebp, esi
call qword [sym.imp.MSVCR120.dll_rand]
mov r8d, dword [rbx + 8]
mov edx, dword [rbx]
sar eax, 7
mov ecx, edx
shr edx, 8
movzx r10d, al
mov r9d, r8d
inc rbp
and r9d, r12d
mov eax, r10d
xor rcx, rax
or r9d, 2
movzx eax, cl
mov ecx, dword [rdi + rax*4]
xor ecx, edx
movzx eax, cl
mov dword [rbx], ecx
add eax, dword [rbx + 4]
imul eax, eax, 0x8088405
inc eax
mov ecx, eax
mov dword [rbx + 4], eax
shr ecx, 0x18
xor rcx, r8
shr r8d, 8
movzx eax, cl
mov eax, dword [rdi + rax*4]
xor eax, r8d
mov dword [rbx + 8], eax
mov eax, r9d
xor eax, 1
imul eax, r9d
shr eax, 8
xor al, r10b
mov byte [rsp + rbp + 0x1f], al
cmp rbp, 0xa
jl 0x14005be86
mov r8, rdi
mov rdx, rbx
mov rcx, r14
call fcn.14005bd90
lea rax, [rsp + 0x20]
mov r14, r15
sub r14, rax
mov r8d, dword [rbx + 8]
mov edx, dword [rbx]
lea r11, [rsp + 0x20]
add r11, rsi
mov r10d, r8d
inc rsi
movzx r9d, byte [r11]
and r10d, r12d
or r10d, 2
mov eax, r9d
xor rax, rdx
shr edx, 8
movzx ecx, al
mov eax, dword [rdi + rcx*4]
xor eax, edx
mov dword [rbx], eax
movzx eax, al
add eax, dword [rbx + 4]
imul eax, eax, 0x8088405
inc eax
mov ecx, eax
mov dword [rbx + 4], eax
shr ecx, 0x18
xor rcx, r8
shr r8d, 8
movzx eax, cl
mov eax, dword [rdi + rax*4]
xor eax, r8d
mov dword [rbx + 8], eax
mov eax, r10d
xor eax, 1
imul eax, r10d
shr eax, 8
xor al, r9b
mov byte [r14 + r11], al
cmp rsi, 0xa
jl 0x14005bf17
mov r9d, dword [rbx + 8]
mov edx, dword [rbx]
mov r11d, dword [rsp + 0xa0]
mov r8d, r11d
mov r10d, r9d
shr r11d, 0x18
shr r8d, 0x10
and r10d, r12d
or r10d, 2
mov eax, r8d
xor rax, rdx
shr edx, 8
movzx ecx, al
mov eax, dword [rdi + rcx*4]
xor eax, edx
mov dword [rbx], eax
movzx eax, al
add eax, dword [rbx + 4]
imul eax, eax, 0x8088405
inc eax
mov dword [rbx + 4], eax
mov ecx, eax
shr ecx, 0x18
xor rcx, r9
shr r9d, 8
movzx eax, cl
mov eax, dword [rdi + rax*4]
xor eax, r9d
mov r9d, r11d
mov dword [rbx + 8], eax
mov eax, r10d
xor eax, 1
imul eax, r10d
shr eax, 8
xor al, r8b
mov byte [r15 + 0xa], al
mov r8d, dword [rbx + 8]
mov edx, dword [rbx]
mov r10d, r8d
mov eax, r9d
xor rax, rdx
shr edx, 8
and r10d, r12d
movzx ecx, al
or r10d, 2
mov eax, dword [rdi + rcx*4]
xor eax, edx
mov dword [rbx], eax
movzx eax, al
add eax, dword [rbx + 4]
imul eax, eax, 0x8088405
inc eax
mov ecx, eax
mov dword [rbx + 4], eax
shr ecx, 0x18
xor rcx, r8
shr r8d, 8
movzx eax, cl
mov eax, dword [rdi + rax*4]
xor eax, r8d
mov dword [rbx + 8], eax
mov eax, r10d
xor eax, 1
imul eax, r10d
shr eax, 8
xor al, r11b
mov byte [r15 + 0xb], al
mov eax, reloc.WS2_32.dll_inet_ntoa
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.1400bf530
add rsp, 0x40
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret