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

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x30
mov eax, dword [0x140026b88]
mov rbx, r9
inc eax
mov r14, rdx
mov dword [0x140026b88], eax
mov rbp, rcx
cmp eax, 1
jne 0x1400046fb
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_time_l1_1_0.dll__time64]
xor eax, 0xbb40e64e
mov ecx, eax
call qword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_srand]
mov rsi, qword [rsp + 0x60]
mov rdx, rbx
mov r8, rsi
mov rcx, rbp
call fcn.140004610
xor edi, edi
call qword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_rand]
mov r8d, dword [rbx + 8]
mov edx, dword [rbx]
mov r9d, r8d
sar eax, 7
and r9d, 0xfffd
mov r10d, eax
or r9d, 2
mov eax, edx
shr edx, 8
xor rax, r10
movzx ecx, al
xor edx, dword [rsi + rcx*4]
movzx ecx, r8b
movzx eax, dl
add eax, dword [rbx + 4]
imul eax, eax, 0x8088405
shr r8d, 8
mov dword [rbx], edx
inc eax
mov dword [rbx + 4], eax
shr rax, 0x18
xor rcx, rax
mov eax, r9d
xor eax, 1
imul eax, r9d
xor r8d, dword [rsi + rcx*4]
mov dword [rbx + 8], r8d
shr eax, 8
xor al, r10b
mov byte [rsp + rdi + 0x20], al
inc rdi
cmp rdi, 0xa
jl 0x140004710
mov r8, rsi
mov rdx, rbx
mov rcx, rbp
call fcn.140004610
mov edx, dword [rbx]
mov ecx, edx
mov r9d, dword [rbx + 8]
movzx r8d, byte [rsp + 0x20]
mov r10d, r9d
shr edx, 8
xor rcx, r8
movzx eax, cl
and r10d, 0xfffd
or r10d, 2
movzx ecx, r9b
shr r9d, 8
xor edx, dword [rsi + rax*4]
mov dword [rbx], edx
movzx eax, dl
add eax, dword [rbx + 4]
imul eax, eax, 0x8088405
inc eax
mov dword [rbx + 4], eax
shr rax, 0x18
xor rcx, rax
mov eax, r10d
xor eax, 1
imul eax, r10d
xor r9d, dword [rsi + rcx*4]
mov dword [rbx + 8], r9d
shr eax, 8
xor al, r8b
mov r8, qword [rsp + 0x21]
mov byte [r14], al
mov r9d, dword [rbx + 8]
mov edx, dword [rbx]
mov r10d, r9d
mov ecx, edx
movzx eax, r8b
xor rcx, rax
shr edx, 8
movzx eax, cl
and r10d, 0xfffd
or r10d, 2
xor edx, dword [rsi + rax*4]
mov dword [rbx], edx
movzx eax, dl
add eax, dword [rbx + 4]
imul edx, eax, 0x8088405
movzx eax, r9b
shr r9d, 8
inc edx
mov dword [rbx + 4], edx
shr rdx, 0x18
xor rdx, rax
mov eax, r10d
xor eax, 1
imul eax, r10d
xor r9d, dword [rsi + rdx*4]
mov dword [rbx + 8], r9d
shr eax, 8
xor al, r8b
mov r8, qword [rsp + 0x22]
mov byte [r14 + 1], al
mov edx, dword [rbx]
mov ecx, edx
mov r9d, dword [rbx + 8]
shr edx, 8
mov r10d, r9d
movzx eax, r8b
and r10d, 0xfffd
xor rcx, rax
or r10d, 2
movzx eax, cl
xor edx, dword [rsi + rax*4]
mov dword [rbx], edx
movzx eax, dl
add eax, dword [rbx + 4]
imul edx, eax, 0x8088405
inc edx
mov dword [rbx + 4], edx
shr rdx, 0x18
movzx eax, r9b
xor rdx, rax
shr r9d, 8
mov eax, r10d
xor eax, 1
imul eax, r10d
xor r9d, dword [rsi + rdx*4]
mov dword [rbx + 8], r9d
shr eax, 8
xor al, r8b
movzx r8d, byte [rsp + 0x23]
mov byte [r14 + 2], al
mov r9d, dword [rbx + 8]
mov edx, dword [rbx]
mov r10d, r9d
mov ecx, edx
and r10d, 0xfffd
shr edx, 8
or r10d, 2
xor rcx, r8
movzx eax, cl
xor edx, dword [rsi + rax*4]
mov dword [rbx], edx
movzx eax, dl
add eax, dword [rbx + 4]
imul edx, eax, 0x8088405
movzx eax, r9b
shr r9d, 8
inc edx
mov dword [rbx + 4], edx
shr rdx, 0x18
xor rdx, rax
mov eax, r10d
xor eax, 1
imul eax, r10d
xor r9d, dword [rsi + rdx*4]
mov dword [rbx + 8], r9d
shr eax, 8
xor al, r8b
movzx r8d, byte [rsp + 0x24]
mov byte [r14 + 3], al
mov r9d, dword [rbx + 8]
mov edx, dword [rbx]
mov r10d, r9d
mov ecx, edx
and r10d, 0xfffd
shr edx, 8
or r10d, 2
xor rcx, r8
movzx eax, cl
xor edx, dword [rsi + rax*4]
mov dword [rbx], edx
movzx eax, dl
add eax, dword [rbx + 4]
imul edx, eax, 0x8088405
movzx eax, r9b
shr r9d, 8
inc edx
mov dword [rbx + 4], edx
shr rdx, 0x18
xor rdx, rax
mov eax, r10d
xor eax, 1
imul eax, r10d
xor r9d, dword [rsi + rdx*4]
mov dword [rbx + 8], r9d
shr eax, 8
xor al, r8b
movzx r8d, byte [rsp + 0x25]
mov byte [r14 + 4], al
mov edx, dword [rbx]
mov ecx, edx
mov r9d, dword [rbx + 8]
xor rcx, r8
mov r10d, r9d
movzx eax, cl
and r10d, 0xfffd
shr edx, 8
or r10d, 2
xor edx, dword [rsi + rax*4]
mov dword [rbx], edx
movzx eax, dl
add eax, dword [rbx + 4]
imul edx, eax, 0x8088405
movzx eax, r9b
shr r9d, 8
inc edx
mov dword [rbx + 4], edx
shr rdx, 0x18
xor rdx, rax
mov eax, r10d
xor eax, 1
imul eax, r10d
xor r9d, dword [rsi + rdx*4]
mov dword [rbx + 8], r9d
shr eax, 8
xor al, r8b
movzx r8d, byte [rsp + 0x26]
mov byte [r14 + 5], al
mov r9d, dword [rbx + 8]
mov edx, dword [rbx]
mov r10d, r9d
mov ecx, edx
and r10d, 0xfffd
shr edx, 8
or r10d, 2
xor rcx, r8
movzx eax, cl
xor edx, dword [rsi + rax*4]
mov dword [rbx], edx
movzx eax, dl
add eax, dword [rbx + 4]
imul edx, eax, 0x8088405
movzx eax, r9b
shr r9d, 8
inc edx
mov dword [rbx + 4], edx
shr rdx, 0x18
xor rdx, rax
mov eax, r10d
xor eax, 1
imul eax, r10d
xor r9d, dword [rsi + rdx*4]
mov dword [rbx + 8], r9d
shr eax, 8
xor al, r8b
movzx r8d, byte [rsp + 0x27]
mov byte [r14 + 6], al
mov r9d, dword [rbx + 8]
mov edx, dword [rbx]
mov r10d, r9d
mov ecx, edx
and r10d, 0xfffd
shr edx, 8
or r10d, 2
xor rcx, r8
movzx eax, cl
xor edx, dword [rsi + rax*4]
mov dword [rbx], edx
movzx eax, dl
add eax, dword [rbx + 4]
imul edx, eax, 0x8088405
movzx eax, r9b
shr r9d, 8
inc edx
mov dword [rbx + 4], edx
shr rdx, 0x18
xor rdx, rax
mov eax, r10d
xor eax, 1
imul eax, r10d
xor r9d, dword [rsi + rdx*4]
mov dword [rbx + 8], r9d
shr eax, 8
xor al, r8b
mov byte [r14 + 7], al
mov r9d, dword [rbx + 8]
mov edx, dword [rbx]
mov r10d, r9d
and r10d, 0xfffd
or r10d, 2
movzx r8d, byte [rsp + 0x28]
mov ecx, edx
mov r11d, dword [rsp + 0x68]
xor rcx, r8
shr edx, 8
movzx eax, cl
xor edx, dword [rsi + rax*4]
mov dword [rbx], edx
movzx eax, dl
add eax, dword [rbx + 4]
imul edx, eax, 0x8088405
movzx eax, r9b
shr r9d, 8
inc edx
mov dword [rbx + 4], edx
shr rdx, 0x18
xor rdx, rax
mov eax, r10d
xor eax, 1
imul eax, r10d
xor r9d, dword [rsi + rdx*4]
mov dword [rbx + 8], r9d
shr eax, 8
xor al, r8b
movzx r8d, byte [rsp + 0x29]
mov byte [r14 + 8], al
mov r9d, dword [rbx + 8]
mov edx, dword [rbx]
mov r10d, r9d
mov ecx, edx
and r10d, 0xfffd
xor rcx, r8
shr edx, 8
movzx eax, cl
or r10d, 2
xor edx, dword [rsi + rax*4]
mov dword [rbx], edx
movzx eax, dl
add eax, dword [rbx + 4]
imul edx, eax, 0x8088405
movzx eax, r9b
shr r9d, 8
inc edx
mov dword [rbx + 4], edx
shr rdx, 0x18
xor rdx, rax
mov eax, r10d
xor eax, 1
imul eax, r10d
xor r9d, dword [rsi + rdx*4]
mov dword [rbx + 8], r9d
shr eax, 8
xor al, r8b
mov r8d, r11d
mov byte [r14 + 9], al
mov edx, dword [rbx]
mov r10d, dword [rbx + 8]
mov r9d, r10d
shr r8d, 0x10
and r10d, 0xfffd
mov eax, r8d
or r10d, 2
xor rax, rdx
shr edx, 8
movzx ecx, al
xor edx, dword [rsi + rcx*4]
movzx eax, dl
add eax, dword [rbx + 4]
imul ecx, eax, 0x8088405
mov dword [rbx], edx
inc ecx
mov dword [rbx + 4], ecx
shr rcx, 0x18
xor rcx, r9
shr r9d, 8
movzx eax, cl
xor r9d, dword [rsi + rax*4]
mov eax, r10d
xor eax, 1
mov dword [rbx + 8], r9d
imul eax, r10d
mov rbp, qword [rsp + 0x48]
mov rdi, qword [rsp + 0x58]
shr eax, 8
xor al, r8b
shr r11d, 0x18
mov byte [r14 + 0xa], al
mov r8d, r11d
mov edx, dword [rbx]
xor r8, rdx
mov r10d, dword [rbx + 8]
mov r9d, r10d
movzx ecx, r8b
and r10d, 0xfffd
or r10d, 2
shr edx, 8
xor edx, dword [rsi + rcx*4]
mov dword [rbx], edx
movzx eax, dl
add eax, dword [rbx + 4]
imul ecx, eax, 0x8088405
inc ecx
mov dword [rbx + 4], ecx
shr rcx, 0x18
xor rcx, r9
shr r9d, 8
movzx eax, cl
xor r9d, dword [rsi + rax*4]
mov eax, r10d
mov rsi, qword [rsp + 0x50]
xor eax, 1
imul eax, r10d
mov dword [rbx + 8], r9d
mov rbx, qword [rsp + 0x40]
shr eax, 8
xor al, r11b
mov byte [r14 + 0xb], al
mov eax, 0xc
add rsp, 0x30
pop r14
ret