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

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x40
mov rax, qword [0x140634590]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov rax, qword [rdx]
mov rdi, qword [rsp + 0xa8]
mov r13d, dword [rcx + 0x18]
mov r12d, dword [rcx + 0x10]
mov r14d, dword [rcx + 0x14]
mov qword [rsp + 0x20], rax
mov eax, dword [rdx + 8]
mov esi, r9d
mov ebx, r8d
mov r11, rcx
xor ebp, ebp
lea r15, [0x14062a6a0]
mov dword [rsp + 0x28], eax
nop dword [rax + rax]
mov eax, r13d
and eax, 0xfffd
or eax, 2
mov ecx, eax
xor ecx, 1
imul ecx, eax
movsx eax, byte [rsp + rbp + 0x20]
sar ecx, 8
xor ecx, eax
xor rcx, r12
movzx eax, cl
mov ecx, r12d
mov eax, dword [r15 + rax*4]
shr ecx, 8
xor eax, ecx
mov ecx, r13d
mov edx, eax
mov dword [r11 + 0x10], eax
movzx r9d, al
shr ecx, 8
add r9d, r14d
imul r9d, r9d, 0x8088405
inc r9d
mov dword [r11 + 0x14], r9d
mov eax, r9d
shr eax, 0x18
xor rax, r13
movzx eax, al
mov eax, dword [r15 + rax*4]
xor eax, ecx
mov r8d, eax
mov dword [r11 + 0x18], eax
and eax, 0xfffd
or eax, 2
mov ecx, eax
xor ecx, 1
imul ecx, eax
movsx eax, byte [rsp + rbp + 0x21]
sar ecx, 8
xor ecx, eax
xor rcx, rdx
shr edx, 8
movzx eax, cl
mov eax, dword [r15 + rax*4]
xor eax, edx
mov edx, eax
movzx r10d, al
mov dword [r11 + 0x10], eax
add r10d, r9d
imul r10d, r10d, 0x8088405
inc r10d
mov dword [r11 + 0x14], r10d
mov eax, r10d
shr eax, 0x18
xor rax, r8
shr r8d, 8
movzx eax, al
mov eax, dword [r15 + rax*4]
xor eax, r8d
mov r8d, eax
mov dword [r11 + 0x18], eax
and eax, 0xfffd
or eax, 2
mov ecx, eax
xor ecx, 1
imul ecx, eax
movsx eax, byte [rsp + rbp + 0x22]
sar ecx, 8
xor ecx, eax
xor rcx, rdx
shr edx, 8
movzx eax, cl
mov eax, dword [r15 + rax*4]
xor eax, edx
movzx r9d, al
mov edx, eax
mov dword [r11 + 0x10], eax
add r9d, r10d
imul r9d, r9d, 0x8088405
inc r9d
mov dword [r11 + 0x14], r9d
mov eax, r9d
add rbp, 4
shr eax, 0x18
xor rax, r8
shr r8d, 8
movzx eax, al
mov eax, dword [r15 + rax*4]
xor eax, r8d
mov r8d, eax
mov dword [r11 + 0x18], eax
and eax, 0xfffd
or eax, 2
mov r10d, eax
xor r10d, 1
imul r10d, eax
sar r10d, 8
xor r10b, byte [rsp + rbp + 0x1f]
movsx eax, r10b
xor rax, rdx
shr edx, 8
movzx ecx, al
mov eax, dword [r15 + rcx*4]
xor eax, edx
movzx r14d, al
mov r12d, eax
mov dword [r11 + 0x10], eax
add r14d, r9d
imul r14d, r14d, 0x8088405
inc r14d
mov eax, r14d
mov dword [r11 + 0x14], r14d
shr eax, 0x18
xor rax, r8
shr r8d, 8
movzx eax, al
mov eax, dword [r15 + rax*4]
xor eax, r8d
mov r13d, eax
mov dword [r11 + 0x18], eax
cmp rbp, 0xc
jl 0x14015f240
movzx ecx, byte [rsp + 0xa0]
test cl, cl
je 0x14015f3f8
shr ebx, 8
cmp bl, r10b
jmp 0x14015f400
mov eax, esi
shr eax, 0x18
cmp al, r10b
sete bl
test bl, bl
jne 0x14015f44a
mov r9, qword [rdi]
movzx r8d, cl
lea rdx, str.isDataDescriptor
mov rcx, rdi
call qword [r9 + 0x58]
mov r11, qword [rdi]
lea rdx, str.crc32
mov r8d, esi
mov rcx, rdi
call qword [r11 + 0x68]
lea r8, [rsp + 0x20]
lea rdx, str.PwdProtectData
mov r9d, reloc.OLEAUT32.dll_VariantTimeToDosDateTime
mov rcx, rdi
call fcn.1400aa710
movzx eax, bl
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.140360fe0
mov rbx, qword [rsp + 0x90]
add rsp, 0x40
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret