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

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x50
mov rax, qword [0x180014060]
xor rax, rsp
mov qword [rsp + 0x40], rax
xor esi, esi
mov ebp, r9d
mov r14, r8
mov r15, rdx
mov rbx, rcx
test rcx, rcx
jne 0x180007470
mov eax, 0xffffff9a
jmp 0x1800077b7
cmp dword [rcx + 0x5c], esi
je 0x180007466
cmp qword [rcx + 0xc0], rsi
je 0x180007483
call sym.MonoPosixHelper.dll_unzCloseCurrentFile
lea r9, [rsp + 0x24]
mov rcx, rbx
lea r8, [rsp + 0x20]
lea rdx, [rsp + 0x28]
call fcn.180007b14
test eax, eax
je 0x1800074a8
mov eax, 0xffffff99
jmp 0x1800077b7
mov ecx, 0xe0
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rdi, rax
test rax, rax
jne 0x1800074c5
mov eax, 0xffffff98
jmp 0x1800077b7
mov ecx, 0x4000
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov ecx, dword [rsp + 0x20]
mov dword [rdi + 0x68], ecx
mov ecx, dword [rsp + 0x24]
mov dword [rdi + 0x6c], ecx
mov qword [rdi], rax
mov dword [rdi + 0x70], esi
mov dword [rdi + 0xd8], ebp
test rax, rax
jne 0x180007502
lea ebp, [rax - 0x68]
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov eax, ebp
jmp 0x1800077b7
mov dword [rdi + 0x64], esi
test r15, r15
je 0x180007510
mov eax, dword [rbx + 0x78]
mov dword [r15], eax
mov r15d, 1
test r14, r14
je 0x18000754c
mov dword [r14], 6
mov eax, dword [rbx + 0x74]
and eax, 6
cmp eax, 2
je 0x180007545
cmp eax, 4
je 0x18000753c
cmp eax, 6
jne 0x18000754c
mov dword [r14], r15d
jmp 0x18000754c
mov dword [r14], 2
jmp 0x18000754c
mov dword [r14], 9
mov eax, dword [rbx + 0x80]
mov dword [rdi + 0x78], eax
mov dword [rdi + 0x74], esi
mov eax, dword [rbx + 0x78]
mov dword [rdi + 0xd0], eax
mov rax, qword [rbx + 0x40]
mov qword [rdi + 0xc8], rax
movups xmm0, xmmword [rbx]
movups xmmword [rdi + 0x88], xmm0
movups xmm1, xmmword [rbx + 0x10]
movups xmmword [rdi + 0x98], xmm1
movups xmm0, xmmword [rbx + 0x20]
movups xmmword [rdi + 0xa8], xmm0
movups xmm1, xmmword [rbx + 0x30]
movups xmmword [rdi + 0xb8], xmm1
mov eax, dword [rbx + 0x50]
mov dword [rdi + 0xd4], eax
mov dword [rdi + 0x24], esi
cmp dword [rbx + 0x78], 8
jne 0x1800075e4
test ebp, ebp
jne 0x1800075e4
lea rcx, [rdi + 8]
mov qword [rdi + 0x38], rsi
lea r9d, [rbp + 0x58]
mov qword [rcx], rsi
lea r8, str.1.2.5
mov qword [rdi + 0x40], rsi
lea edx, [rbp - 0xf]
mov qword [rdi + 0x48], rsi
mov dword [rdi + 0x10], esi
call fcn.1800051f8
mov ebp, eax
test eax, eax
jne 0x1800074f2
mov dword [rdi + 0x64], r15d
mov eax, dword [rbx + 0x84]
mov dword [rdi + 0x7c], eax
mov eax, dword [rbx + 0x88]
mov dword [rdi + 0x80], eax
mov ecx, dword [rbx + 0xbc]
mov eax, dword [rsp + 0x28]
add eax, 0x1e
mov dword [rdi + 0x10], esi
add ecx, eax
mov dword [rdi + 0x60], ecx
mov qword [rbx + 0xc0], rdi
mov rdi, qword [rsp + 0xa0]
test rdi, rdi
je 0x1800077b5
call fcn.180001600
mov qword [rbx + 0xd8], rax
mov r8, rax
mov eax, 0x34567890
mov dword [rbx + 0xcc], 0x12345678
mov dword [rbx + 0xd4], eax
mov dword [rbx + 0xd0], 0x23456789
mov cl, byte [rdi]
test cl, cl
je 0x1800076c7
mov r9d, dword [rbx + 0xd0]
mov r10d, eax
mov eax, dword [rbx + 0xcc]
add rdi, r15
xor rcx, rax
movzx eax, cl
mov ecx, dword [rbx + 0xcc]
shr ecx, 8
mov edx, dword [r8 + rax*4]
xor edx, ecx
mov ecx, r10d
shr ecx, 8
movzx eax, dl
add eax, r9d
mov dword [rbx + 0xcc], edx
imul r9d, eax, 0x8088405
add r9d, r15d
mov dword [rbx + 0xd0], r9d
mov eax, r9d
shr rax, 0x18
xor rax, r10
movzx eax, al
mov eax, dword [r8 + rax*4]
xor eax, ecx
mov dword [rbx + 0xd4], eax
mov r10d, eax
mov cl, byte [rdi]
test cl, cl
jne 0x180007664
mov rax, qword [rbx + 0xc0]
xor r9d, r9d
mov rdx, qword [rbx + 0x40]
mov rcx, qword [rbx + 0x38]
mov r8d, dword [rax + 0xd4]
add r8d, dword [rax + 0x60]
call qword [rbx + 0x20]
test eax, eax
jne 0x1800074bb
mov rdx, qword [rbx + 0x40]
lea r9d, [rax + 0xc]
mov rcx, qword [rbx + 0x38]
lea r8, [rsp + 0x30]
call qword [rbx + 8]
cmp eax, 0xc
jb 0x1800074bb
mov ecx, dword [rbx + 0xd4]
mov r8, qword [rbx + 0xd8]
and ecx, 0xfffd
or ecx, 2
mov eax, ecx
xor eax, r15d
imul eax, ecx
mov ecx, dword [rbx + 0xcc]
shr eax, 8
movzx edx, al
movsx eax, byte [rsp + rsi + 0x30]
xor edx, eax
movsx rax, dl
xor rcx, rax
mov byte [rsp + rsi + 0x30], dl
movzx eax, cl
add rsi, r15
mov ecx, dword [rbx + 0xcc]
shr ecx, 8
mov edx, dword [r8 + rax*4]
xor edx, ecx
movzx eax, dl
add eax, dword [rbx + 0xd0]
imul ecx, eax, 0x8088405
mov dword [rbx + 0xcc], edx
mov edx, dword [rbx + 0xd4]
inc ecx
mov dword [rbx + 0xd0], ecx
shr rcx, 0x18
xor rcx, rdx
shr edx, 8
movzx eax, cl
mov eax, dword [r8 + rax*4]
xor eax, edx
mov dword [rbx + 0xd4], eax
cmp rsi, 0xc
jl 0x18000770c
mov rax, qword [rbx + 0xc0]
add dword [rax + 0x60], 0xc
mov dword [rbx + 0xc8], r15d
xor eax, eax
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.18000be20
mov rbx, qword [rsp + 0x98]
add rsp, 0x50
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret