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

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push r14
sub rsp, 0x30
mov rbx, r9
mov r14, rdx
mov rbp, rcx
cmp r8d, 0xc
jge 0x140015312
xor eax, eax
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
add rsp, 0x30
pop r14
ret
mov eax, dword [0x1400d8698]
inc eax
mov qword [rsp + 0x40], rsi
mov qword [rsp + 0x48], rdi
mov dword [0x1400d8698], eax
cmp eax, 1
jne 0x140015342
xor ecx, ecx
call fcn.14008b4bc
xor eax, 0xbb40e64e
mov ecx, eax
call fcn.14008b4a4
mov rsi, qword [rsp + 0x60]
mov rdx, rbx
mov r8, rsi
mov rcx, rbp
call fcn.1400158d0
xor edi, edi
call fcn.14008b478
mov r9d, dword [rbx + 8]
mov r11d, eax
mov r8d, dword [rbx]
mov r10d, r9d
sar r11d, 7
mov edx, r8d
mov ecx, r11d
shr r8d, 8
xor rdx, rcx
and r10d, 0xfffd
movzx ecx, dl
or r10d, 2
xor r8d, dword [rsi + rcx*4]
movzx eax, r8b
add eax, dword [rbx + 4]
imul ecx, eax, 0x8088405
mov dword [rbx], r8d
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
shr eax, 8
xor al, r11b
mov byte [rsp + rdi + 0x20], al
inc rdi
cmp rdi, 0xa
jl 0x140015357
mov rdi, qword [rsp + 0x48]
mov r8, rsi
mov rdx, rbx
mov rcx, rbp
call fcn.1400158d0
mov edx, dword [rbx]
mov r8d, dword [rbx + 8]
mov r10d, r8d
movzx r9d, byte [rsp + 0x20]
and r10d, 0xfffd
or r10d, 2
mov eax, r9d
xor rax, rdx
shr edx, 8
movzx ecx, al
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, r8
shr r8d, 8
movzx eax, cl
xor r8d, dword [rsi + rax*4]
mov eax, r10d
xor eax, 1
mov dword [rbx + 8], r8d
imul eax, r10d
shr eax, 8
xor al, r9b
mov r9, qword [rsp + 0x21]
mov byte [r14], al
mov edx, dword [rbx]
mov r8d, dword [rbx + 8]
mov r10d, r8d
and r10d, 0xfffd
movzx eax, r9b
xor rax, rdx
or r10d, 2
movzx ecx, al
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, r8
shr r8d, 8
movzx eax, cl
xor r8d, dword [rsi + rax*4]
mov eax, r10d
xor eax, 1
mov dword [rbx + 8], r8d
imul eax, r10d
shr eax, 8
xor al, r9b
mov r9, qword [rsp + 0x22]
mov byte [r14 + 1], al
mov edx, dword [rbx]
mov r8d, dword [rbx + 8]
mov r10d, r8d
and r10d, 0xfffd
movzx eax, r9b
xor rax, rdx
or r10d, 2
movzx ecx, al
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, r8
shr r8d, 8
movzx eax, cl
xor r8d, dword [rsi + rax*4]
mov eax, r10d
mov dword [rbx + 8], r8d
xor eax, 1
movzx r8d, byte [rsp + 0x23]
imul eax, r10d
shr eax, 8
xor al, r9b
mov byte [r14 + 2], al
mov edx, dword [rbx]
mov ecx, edx
mov r9d, dword [rbx + 8]
xor rcx, r8
movzx eax, cl
mov r10d, r9d
shr edx, 8
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 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 dword [rbx + 8], r9d
xor eax, 1
imul eax, r10d
shr eax, 8
xor al, r8b
movzx r8d, byte [rsp + 0x24]
mov byte [r14 + 3], al
mov edx, dword [rbx]
mov ecx, edx
mov r9d, dword [rbx + 8]
xor rcx, r8
movzx eax, cl
mov r10d, r9d
shr edx, 8
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 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
xor eax, 1
mov dword [rbx + 8], r9d
imul eax, r10d
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 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 dword [rbx + 8], r9d
xor eax, 1
imul eax, r10d
shr eax, 8
xor al, r8b
movzx r8d, byte [rsp + 0x26]
mov byte [r14 + 5], al
mov edx, dword [rbx]
mov ecx, edx
mov r9d, dword [rbx + 8]
xor rcx, r8
movzx eax, cl
mov r10d, r9d
shr edx, 8
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 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
xor eax, 1
mov dword [rbx + 8], r9d
imul eax, r10d
shr eax, 8
xor al, r8b
movzx r8d, byte [rsp + 0x27]
mov byte [r14 + 6], al
mov edx, dword [rbx]
mov ecx, edx
mov r9d, dword [rbx + 8]
xor rcx, r8
movzx eax, cl
mov r10d, r9d
shr edx, 8
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 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
xor eax, 1
mov dword [rbx + 8], r9d
imul eax, r10d
shr eax, 8
xor al, r8b
mov byte [r14 + 7], al
mov r9d, dword [rbx + 8]
mov r10d, r9d
mov edx, dword [rbx]
and r10d, 0xfffd
or r10d, 2
mov ecx, edx
movzx r8d, byte [rsp + 0x28]
mov r11d, dword [rsp + 0x68]
xor rcx, r8
movzx eax, cl
shr edx, 8
xor edx, dword [rsi + rax*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
xor eax, 1
mov dword [rbx + 8], r9d
imul eax, r10d
shr eax, 8
xor al, r8b
movzx r8d, byte [rsp + 0x29]
mov byte [r14 + 8], al
mov r9d, dword [rbx + 8]
mov r10d, r9d
mov edx, dword [rbx]
and r10d, 0xfffd
mov ecx, edx
or r10d, 2
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 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
xor eax, 1
mov dword [rbx + 8], r9d
imul eax, r10d
shr eax, 8
xor al, r8b
mov r8d, r11d
mov byte [r14 + 9], al
mov r9d, dword [rbx + 8]
mov r10d, r9d
mov edx, dword [rbx]
and r10d, 0xfffd
mov eax, edx
shr r8d, 0x10
xor rax, r8
shr edx, 8
movzx ecx, al
or r10d, 2
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
shr eax, 8
mov rbp, qword [rsp + 0x58]
xor al, r8b
mov byte [r14 + 0xa], al
mov r9d, dword [rbx + 8]
mov r10d, r9d
mov edx, dword [rbx]
and r10d, 0xfffd
mov eax, edx
shr r11d, 0x18
or r10d, 2
shr edx, 8
mov r8d, r11d
xor rax, r8
movzx ecx, al
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 + 0x40]
xor eax, 1
imul eax, r10d
mov dword [rbx + 8], r9d
mov rbx, qword [rsp + 0x50]
shr eax, 8
xor al, r11b
mov byte [r14 + 0xb], al
mov eax, 0xc
add rsp, 0x30
pop r14
ret