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

Disassembly:
push rbx
push rbp
push r12
push r13
push r14
sub rsp, 0x60
mov rax, qword [0x140031318]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov r14, qword [rsp + 0xb0]
mov r13d, r9d
mov rbp, r8
mov r12, rdx
mov rbx, rcx
test rcx, rcx
jne 0x14000e8ff
mov eax, 0xffffff9a
jmp 0x14000ed6c
cmp dword [rcx + 0x5c], 0
je 0x14000e8f5
cmp qword [rcx + 0xc0], 0
je 0x14000e914
call fcn.14000e280
lea r9, [rsp + 0x20]
lea r8, [rsp + 0x28]
lea rdx, [rsp + 0x24]
mov rcx, rbx
call fcn.14000dd20
test eax, eax
je 0x14000e939
mov eax, 0xffffff99
jmp 0x14000ed6c
mov ecx, 0xe0
mov qword [rsp + 0x50], rdi
call fcn.14001141c
mov rdi, rax
test rax, rax
jne 0x14000e958
lea eax, [rdi - 0x68]
jmp 0x14000ed67
mov ecx, 0x4000
mov qword [rsp + 0x58], rsi
call fcn.14001141c
mov ecx, dword [rsp + 0x28]
xor esi, esi
mov dword [rdi + 0x68], ecx
mov ecx, dword [rsp + 0x20]
mov dword [rdi + 0x70], esi
mov qword [rdi], rax
mov dword [rdi + 0xd8], r13d
mov dword [rdi + 0x6c], ecx
test rax, rax
jne 0x14000e99b
mov rcx, rdi
call fcn.1400114d4
mov eax, 0xffffff98
jmp 0x14000ed62
mov dword [rdi + 0x64], esi
test r12, r12
je 0x14000e9aa
mov eax, dword [rbx + 0x78]
mov dword [r12], eax
test rbp, rbp
je 0x14000e9e4
mov dword [rbp], 6
mov eax, dword [rbx + 0x74]
and eax, 6
cmp eax, 2
je 0x14000e9dd
cmp eax, 4
je 0x14000e9d4
cmp eax, 6
jne 0x14000e9e4
mov dword [rbp], 1
jmp 0x14000e9e4
mov dword [rbp], 2
jmp 0x14000e9e4
mov dword [rbp], 9
mov eax, dword [rbx + 0x80]
mov dword [rdi + 0x74], esi
mov dword [rdi + 0x78], eax
mov eax, dword [rbx + 0x78]
mov dword [rdi + 0xd0], eax
mov rax, qword [rbx + 0x40]
mov qword [rdi + 0xc8], rax
mov rax, qword [rbx]
mov qword [rdi + 0x88], rax
mov rax, qword [rbx + 8]
mov qword [rdi + 0x90], rax
mov rax, qword [rbx + 0x10]
mov qword [rdi + 0x98], rax
mov rax, qword [rbx + 0x18]
mov qword [rdi + 0xa0], rax
mov rax, qword [rbx + 0x20]
mov qword [rdi + 0xa8], rax
mov rax, qword [rbx + 0x28]
mov qword [rdi + 0xb0], rax
mov rax, qword [rbx + 0x30]
mov qword [rdi + 0xb8], rax
mov rax, qword [rbx + 0x38]
mov qword [rdi + 0xc0], rax
mov eax, dword [rbx + 0x50]
mov dword [rdi + 0x24], esi
mov dword [rdi + 0xd4], eax
cmp dword [rbx + 0x78], 8
jne 0x14000eaad
test r13d, r13d
jne 0x14000eaad
lea rcx, [rdi + 8]
lea r9d, [r13 + 0x58]
lea r8, [0x14002858c]
lea edx, [r13 - 0xf]
mov qword [rdi + 0x38], rsi
mov qword [rdi + 0x40], rsi
mov qword [rcx], rsi
mov qword [rdi + 0x48], rsi
mov dword [rdi + 0x10], esi
call fcn.1400092d0
mov ebp, eax
test eax, eax
jne 0x14000ed86
mov dword [rdi + 0x64], 1
mov eax, dword [rbx + 0x84]
mov dword [rdi + 0x7c], eax
mov eax, dword [rbx + 0x88]
mov dword [rdi + 0x80], eax
mov edx, dword [rbx + 0xbc]
mov eax, dword [rsp + 0x24]
lea edx, [rdx + rax + 0x1e]
mov dword [rdi + 0x10], esi
mov dword [rdi + 0x60], edx
mov qword [rbx + 0xc0], rdi
test r14, r14
je 0x14000ed60
call fcn.140006a80
lea rdx, [rbx + 0xcc]
mov rcx, r14
mov r8, rax
mov qword [rbx + 0xd8], rax
call fcn.14000d310
mov r11, qword [rbx + 0xc0]
mov rdx, qword [rbx + 0x40]
mov r8d, dword [r11 + 0xd4]
mov rcx, qword [rbx + 0x38]
xor r9d, r9d
add r8d, dword [r11 + 0x60]
call qword [rbx + 0x20]
test eax, eax
jne 0x14000e991
mov rdx, qword [rbx + 0x40]
mov rcx, qword [rbx + 0x38]
lea r9d, [rax + 0xc]
lea r8, [rsp + 0x30]
call qword [rbx + 8]
cmp eax, 0xc
jb 0x14000e991
nop dword [rax]
mov ecx, dword [rbx + 0xd4]
mov r8, qword [rbx + 0xd8]
mov edx, dword [rbx + 0xcc]
and ecx, 0xfffd
or ecx, 2
mov eax, ecx
xor eax, 1
imul eax, ecx
shr eax, 8
xor byte [rsp + rsi + 0x30], al
movsx rax, byte [rsp + rsi + 0x30]
xor rax, rdx
shr edx, 8
movzx ecx, al
mov eax, dword [r8 + rcx*4]
mov ecx, dword [rbx + 0xd4]
xor eax, edx
mov dword [rbx + 0xcc], eax
mov edx, dword [rbx + 0xcc]
movzx r9d, al
add r9d, dword [rbx + 0xd0]
imul r9d, r9d, 0x8088405
inc r9d
mov dword [rbx + 0xd0], r9d
mov eax, r9d
shr eax, 0x18
xor rax, rcx
shr ecx, 8
movzx eax, al
mov eax, dword [r8 + rax*4]
xor eax, ecx
mov dword [rbx + 0xd4], eax
mov r8, qword [rbx + 0xd8]
mov ecx, eax
and ecx, 0xfffd
or ecx, 2
mov eax, ecx
xor eax, 1
imul eax, ecx
shr eax, 8
xor byte [rsp + rsi + 0x31], al
movsx rax, byte [rsp + rsi + 0x31]
xor rax, rdx
shr edx, 8
movzx ecx, al
mov eax, dword [r8 + rcx*4]
mov ecx, dword [rbx + 0xd4]
xor eax, edx
mov dword [rbx + 0xcc], eax
mov edx, dword [rbx + 0xcc]
movzx eax, al
add r9d, eax
imul r9d, r9d, 0x8088405
inc r9d
mov dword [rbx + 0xd0], r9d
mov eax, r9d
shr eax, 0x18
xor rax, rcx
shr ecx, 8
movzx eax, al
mov eax, dword [r8 + rax*4]
xor eax, ecx
mov ecx, eax
mov dword [rbx + 0xd4], eax
mov r8, qword [rbx + 0xd8]
and ecx, 0xfffd
or ecx, 2
mov eax, ecx
xor eax, 1
imul eax, ecx
shr eax, 8
xor byte [rsp + rsi + 0x32], al
movsx rax, byte [rsp + rsi + 0x32]
xor rax, rdx
shr edx, 8
movzx ecx, al
mov eax, dword [r8 + rcx*4]
xor eax, edx
mov dword [rbx + 0xcc], eax
movzx eax, al
add r9d, eax
mov ecx, dword [rbx + 0xd4]
mov edx, dword [rbx + 0xcc]
imul r9d, r9d, 0x8088405
inc r9d
add rsi, 4
mov dword [rbx + 0xd0], r9d
mov eax, r9d
shr eax, 0x18
xor rax, rcx
shr ecx, 8
movzx eax, al
mov eax, dword [r8 + rax*4]
xor eax, ecx
mov dword [rbx + 0xd4], eax
mov r8, qword [rbx + 0xd8]
mov ecx, eax
and ecx, 0xfffd
or ecx, 2
mov eax, ecx
xor eax, 1
imul eax, ecx
shr eax, 8
xor byte [rsp + rsi + 0x2f], al
movsx rax, byte [rsp + rsi + 0x2f]
xor rax, rdx
shr edx, 8
movzx ecx, al
mov eax, dword [r8 + rcx*4]
xor eax, edx
mov edx, dword [rbx + 0xd4]
mov dword [rbx + 0xcc], eax
movzx eax, al
add eax, r9d
imul eax, eax, 0x8088405
inc eax
mov ecx, eax
mov dword [rbx + 0xd0], eax
shr ecx, 0x18
xor rcx, rdx
shr edx, 8
movzx eax, cl
mov eax, dword [r8 + rax*4]
xor eax, edx
cmp rsi, 0xc
mov dword [rbx + 0xd4], eax
jl 0x14000eb50
mov rax, qword [rbx + 0xc0]
add dword [rax + 0x60], 0xc
mov dword [rbx + 0xc8], 1
xor eax, eax
mov rsi, qword [rsp + 0x58]
mov rdi, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140011230
add rsp, 0x60
pop r14
pop r13
pop r12
pop rbp
pop rbx
ret
mov rcx, rdi
call fcn.1400114d4
mov eax, ebp
jmp 0x14000ed62