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

Disassembly:
push rbx
push rbp
sub rsp, 0x58
mov rax, qword [0x180e681c0]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov rbx, qword [rcx + 0x818]
mov rbp, rcx
mov rbx, qword [rbx]
cmp byte [rbx + 0x1f5c], 0
je 0x1802118e3
xor eax, eax
jmp 0x180211b3c
mov rax, qword [rbx + 0x70]
test byte [rax + 0x7e], 8
jne 0x180211912
mov r9, qword [rbx + 0x78]
cmp r9, 0xc
jge 0x180211912
lea r8, str.Truncated_Zip_encrypted_body:_only__jd_bytes_available
mov edx, 0x2a
call fcn.1801e5fd0
mov eax, 0xffffffe2
jmp 0x180211b3c
xor r8d, r8d
mov qword [rsp + 0x50], r15
lea edx, [r8 + 0xc]
call fcn.1801dd7c0
mov r15, rax
mov rcx, rbp
test rax, rax
jne 0x180211946
lea r8, str.Truncated_ZIP_file_data
lea edx, [rax + 0x2a]
call fcn.1801e5fd0
lea eax, [r15 - 0x1e]
jmp 0x180211b37
mov qword [rsp + 0x78], rsi
mov qword [rsp + 0x80], rdi
mov qword [rsp + 0x88], r14
xor r14d, r14d
call fcn.18021a790
mov rsi, rax
test rax, rax
je 0x180211afb
lea rax, [rsp + 0x30]
sub r15, rax
nop word [rax + rax]
mov rdi, 0xffffffffffffffff
inc rdi
cmp byte [rsi + rdi], 0
jne 0x180211987
mov dword [rbx + 0x1f50], 0x12345678
mov dword [rbx + 0x1f54], 0x23456789
mov dword [rbx + 0x1f58], 0x34567890
test rdi, rdi
je 0x180211a2f
nop dword [rax]
nop word [rax + rax]
mov ecx, dword [rbx + 0x1f50]
lea rdx, [rsp + 0x20]
movzx eax, byte [rsi]
not ecx
mov r8d, 1
mov byte [rsp + 0x20], al
call fcn.180242340
not eax
lea rdx, [rsp + 0x28]
mov dword [rbx + 0x1f50], eax
mov r8d, 1
movzx eax, al
add eax, dword [rbx + 0x1f54]
imul ecx, eax, 0x8088405
inc ecx
mov dword [rbx + 0x1f54], ecx
shr ecx, 0x18
mov byte [rsp + 0x28], cl
mov ecx, dword [rbx + 0x1f58]
not ecx
call fcn.180242340
lea rsi, [rsi + 1]
not eax
mov dword [rbx + 0x1f58], eax
sub rdi, 1
jne 0x1802119c0
lea rdi, [rsp + 0x30]
mov esi, 0xc
nop dword [rax]
mov eax, dword [rbx + 0x1f58]
lea rdx, [rsp + 0x20]
or eax, 2
mov r8d, 1
mov ecx, eax
xor ecx, 1
imul ecx, eax
shr ecx, 8
xor cl, byte [r15 + rdi]
mov byte [rdi], cl
mov byte [rsp + 0x20], cl
mov ecx, dword [rbx + 0x1f50]
not ecx
call fcn.180242340
not eax
lea rdx, [rsp + 0x29]
mov dword [rbx + 0x1f50], eax
mov r8d, 1
movzx eax, al
add eax, dword [rbx + 0x1f54]
imul ecx, eax, 0x8088405
inc ecx
mov dword [rbx + 0x1f54], ecx
shr ecx, 0x18
mov byte [rsp + 0x29], cl
mov ecx, dword [rbx + 0x1f58]
not ecx
call fcn.180242340
lea rdi, [rdi + 1]
not eax
mov dword [rbx + 0x1f58], eax
sub rsi, 1
jne 0x180211a40
mov rax, qword [rbx + 0x70]
movzx ecx, byte [rax + 0x83]
cmp byte [rsp + 0x3b], cl
mov rcx, rbp
je 0x180211b59
cmp r14d, 0x2710
jg 0x180211b50
inc r14d
call fcn.18021a790
mov rsi, rax
test rax, rax
jne 0x180211980
test r14d, r14d
lea rax, str.Incorrect_passphrase
lea r8, str.Passphrase_required_for_this_entry
mov rcx, rbp
cmovg r8, rax
mov edx, 0xffffffff
call fcn.1801e5fd0
mov eax, 0xffffffe7
mov r14, qword [rsp + 0x88]
mov rdi, qword [rsp + 0x80]
mov rsi, qword [rsp + 0x78]
mov r15, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.18024b290
add rsp, 0x58
pop rbp
pop rbx
ret
lea r8, str.Too_many_incorrect_passphrases
jmp 0x180211b13
mov edx, 0xc
call fcn.1801dd7d0
mov rax, qword [rbx + 0x70]
mov byte [rbx + 0x1f5c], 1
test byte [rax + 0x7e], 8
jne 0x180211b79
add qword [rbx + 0x78], 0xfffffffffffffff4
add qword [rbx + 0x80], 0xc
mov rcx, rbp
mov qword [rbx + 0x1f40], 0
call fcn.1802133c0
jmp 0x180211b22