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

Disassembly:
push rbx
push rdi
push r14
push r15
sub rsp, 0x48
mov rax, qword [0x1400a75c0]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov rdi, qword [rsp + 0x90]
mov rbx, r9
mov r15, rdx
mov r14, rcx
cmp r8d, 0xc
jge 0x140037b18
xor eax, eax
jmp 0x140037d61
mov eax, dword [0x1400a8afc]
mov qword [rsp + 0x80], rbp
mov qword [rsp + 0x40], rsi
inc eax
mov dword [0x1400a8afc], eax
cmp eax, 1
jne 0x140037b4d
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.140037ee0
xor esi, esi
mov ebp, esi
nop
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, 0xfffd
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 0x140037b60
mov r8, rdi
mov rdx, rbx
mov rcx, r14
call fcn.140037ee0
mov rbp, qword [rsp + 0x80]
lea rax, [rsp + 0x20]
mov r14, r15
sub r14, rax
nop dword [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, 0xfffd
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 0x140037c00
mov r9d, dword [rbx + 8]
mov edx, dword [rbx]
mov r11d, dword [rsp + 0x98]
mov rsi, qword [rsp + 0x40]
mov r8d, r11d
mov r10d, r9d
shr r8d, 0x10
and r10d, 0xfffd
shr r11d, 0x18
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, 0xfffd
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, 0xc
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.14005cb00
add rsp, 0x48
pop r15
pop r14
pop rdi
pop rbx
ret