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

Disassembly:
push rbx
push rbp
sub rsp, 0x58
mov rax, qword [0x1803df868]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov rbx, qword [rcx + 0x9a8]
mov rbp, rcx
mov rbx, qword [rbx]
cmp byte [rbx + 0x1efc], 0
je 0x180284693
xor eax, eax
jmp 0x1802848ec
mov rax, qword [rbx + 0x68]
test byte [rax + 0x7e], 8
jne 0x1802846c2
mov r9, qword [rbx + 0x70]
cmp r9, 0xc
jge 0x1802846c2
lea r8, str.Truncated_Zip_encrypted_body:_only__jd_bytes_available
mov edx, 0x2a
call fcn.180253290
mov eax, 0xffffffe2
jmp 0x1802848ec
xor r8d, r8d
mov qword [rsp + 0x50], r15
lea edx, [r8 + 0xc]
call fcn.1802543e0
mov r15, rax
mov rcx, rbp
test rax, rax
jne 0x1802846f6
lea r8, str.Truncated_ZIP_file_data
lea edx, [rax + 0x2a]
call fcn.180253290
lea eax, [r15 - 0x1e]
jmp 0x1802848e7
mov qword [rsp + 0x78], rsi
mov qword [rsp + 0x80], rdi
mov qword [rsp + 0x88], r14
xor r14d, r14d
call fcn.18028ec70
mov rsi, rax
test rax, rax
je 0x1802848ab
lea rax, [rsp + 0x30]
sub r15, rax
nop word [rax + rax]
mov rdi, 0xffffffffffffffff
inc rdi
cmp byte [rsi + rdi], 0
jne 0x180284737
mov dword [rbx + 0x1ef0], 0x12345678
mov dword [rbx + 0x1ef4], 0x23456789
mov dword [rbx + 0x1ef8], 0x34567890
test rdi, rdi
je 0x1802847df
nop dword [rax]
nop word [rax + rax]
mov ecx, dword [rbx + 0x1ef0]
lea rdx, [rsp + 0x20]
movzx eax, byte [rsi]
not ecx
mov r8d, 1
mov byte [rsp + 0x20], al
call fcn.18012cce0
not eax
lea rdx, [rsp + 0x28]
mov dword [rbx + 0x1ef0], eax
mov r8d, 1
movzx eax, al
add eax, dword [rbx + 0x1ef4]
imul ecx, eax, 0x8088405
inc ecx
mov dword [rbx + 0x1ef4], ecx
shr ecx, 0x18
mov byte [rsp + 0x28], cl
mov ecx, dword [rbx + 0x1ef8]
not ecx
call fcn.18012cce0
lea rsi, [rsi + 1]
not eax
mov dword [rbx + 0x1ef8], eax
sub rdi, 1
jne 0x180284770
lea rdi, [rsp + 0x30]
mov esi, 0xc
nop dword [rax]
mov eax, dword [rbx + 0x1ef8]
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 + 0x1ef0]
not ecx
call fcn.18012cce0
not eax
lea rdx, [rsp + 0x29]
mov dword [rbx + 0x1ef0], eax
mov r8d, 1
movzx eax, al
add eax, dword [rbx + 0x1ef4]
imul ecx, eax, 0x8088405
inc ecx
mov dword [rbx + 0x1ef4], ecx
shr ecx, 0x18
mov byte [rsp + 0x29], cl
mov ecx, dword [rbx + 0x1ef8]
not ecx
call fcn.18012cce0
lea rdi, [rdi + 1]
not eax
mov dword [rbx + 0x1ef8], eax
sub rsi, 1
jne 0x1802847f0
mov rax, qword [rbx + 0x68]
movzx ecx, byte [rax + 0x83]
cmp byte [rsp + 0x3b], cl
mov rcx, rbp
je 0x180284909
cmp r14d, 0x2710
jg 0x180284900
inc r14d
call fcn.18028ec70
mov rsi, rax
test rax, rax
jne 0x180284730
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.180253290
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.180296ce0
add rsp, 0x58
pop rbp
pop rbx
ret
lea r8, str.Too_many_incorrect_passphrases
jmp 0x1802848c3
mov edx, 0xc
call fcn.1802543f0
mov rax, qword [rbx + 0x68]
mov byte [rbx + 0x1efc], 1
test byte [rax + 0x7e], 8
jne 0x180284929
add qword [rbx + 0x70], 0xfffffffffffffff4
add qword [rbx + 0x78], 0xc
mov rcx, rbp
mov qword [rbx + 0x1ee0], 0
call fcn.180285ef0
jmp 0x1802848d2