Function at 0x18005dbf0
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rcx
push rbp
push r12
push r13
push r15
lea rbp, [rsp - 0x3f]
sub rsp, 0x98
mov r15d, edx
mov r13d, edx
and r15d, 0x6000000
and r13d, 0x10002
mov dword [rbp + 0x6f], r15d
mov r12d, edx
mov dword [rbp + 0x77], r13d
test r15d, r15d
je 0x18005dc35
test r13d, r13d
jne 0x18005dfe7
mov rax, qword [str.QZASOL9]
mov qword [rsp + 0x90], rbx
movabs rbx, 0x47ae147ae147ae15
mov qword [rsp + 0x80], rdi
xor edi, edi
cmp byte [0x180078def], dil
mov qword [rbp + 0x7f], rax
je 0x18005dca2
mov r8d, edi
nop dword [rax + rax]
mov rax, rbx
mul r8
mov rax, r8
sub rax, rdx
shr rax, 1
add rax, rdx
shr rax, 5
movsx eax, al
imul ecx, eax, 0x32
movzx eax, r8b
sub al, cl
add al, 0x32
xor byte [rbp + r8 + 0x7f], al
inc r8
cmp r8, 8
jb 0x18005dc70
xor edx, edx
lea rcx, [rbp + 0x7f]
call fcn.180031150
test al, al
je 0x18005dfd7
mov rax, qword [0x1800821d8]
mov qword [rsp + 0x78], r14
mov r14, rax
test r15d, r15d
jne 0x18005df0b
mov qword [rsp + 0x88], rsi
movaps xmmword [rsp + 0x60], xmm7
movss xmm7, dword [rax + 0x1928]
mulss xmm7, dword [0x180073410]
call fcn.180034c50
addss xmm0, dword [r14 + 0x15b8]
subss xmm7, xmm0
movss xmm0, dword [r14 + 0x1928]
mulss xmm0, dword [0x180073410]
maxss xmm7, dword [0x1800733ec]
movss dword [rbp + 0x7f], xmm0
movss dword [rbp + 0x83], xmm7
call fcn.18003c410
movaps xmm7, xmmword [rsp + 0x60]
and r12d, 2
mov esi, edi
mov r15d, 0x1a8
test esi, esi
je 0x18005dd65
mov rax, qword [0x1800821d8]
mov rcx, qword [rax + 0x1a80]
cmp byte [rcx + 0x83], dil
jne 0x18005dd65
mov eax, dword [rcx + 0x1a8]
neg eax
sbb ecx, ecx
add ecx, 6
call fcn.180064510
mov ecx, esi
call fcn.18003c0c0
test esi, esi
mov ebx, 0x20001a8
cmovne ebx, r15d
or ebx, r12d
cmp esi, 1
jne 0x18005dd83
bts ebx, 0x1a
lea rcx, [rbp - 0x39]
call fcn.180034be0
mov eax, dword [0x180078df8]
mov r8, rdi
movsd xmm0, qword [0x180078df0]
movabs r13, 0x47ae147ae147ae15
mov dword [rbp - 0x21], eax
movzx eax, byte [0x180078dfc]
mov byte [rbp - 0x1d], al
movsd qword [rbp - 0x29], xmm0
nop dword [rax]
mov rax, r13
mul r8
mov rax, r8
sub rax, rdx
shr rax, 1
add rax, rdx
shr rax, 5
movsx eax, al
imul ecx, eax, 0x32
movzx eax, r8b
sub al, cl
add al, 0x32
xor byte [rbp + r8 - 0x29], al
inc r8
cmp r8, 0xd
jb 0x18005ddc0
lea r9, [rbp + 0x7f]
xor r8d, r8d
xor edx, edx
lea rcx, [rbp - 0x29]
call fcn.180064070
mov r13, qword [rbp + 0x67]
test al, al
je 0x18005de25
and dword [r14 + 0x2f24], 0xf9ffffff
mov eax, ebx
and eax, 0x6000000
or dword [r14 + 0x2f24], eax
lea rcx, [rbp - 0x39]
call fcn.18003f320
mov eax, 0xc
mov qword [rbp - 1], rdi
test bl, 2
mov qword [rbp - 9], rdi
mov r8d, 0x10
lea rcx, [rbp - 9]
cmovne r8d, eax
mov rdx, r13
call fcn.180068020
cmp byte [0x180078e0d], dil
mov eax, dword [0x180078e08]
movsd xmm0, qword [0x180078e00]
mov dword [rbp - 0x14], eax
movzx eax, word [0x180078e0c]
mov word [rbp - 0x10], ax
movsd qword [rbp - 0x1c], xmm0
je 0x18005dec2
mov r9, rdi
movabs r13, 0x47ae147ae147ae15
nop dword [rax + rax]
mov rax, r13
mul r9
mov rax, r9
sub rax, rdx
shr rax, 1
add rax, rdx
shr rax, 5
movsx eax, al
imul ecx, eax, 0x32
movzx eax, r9b
sub al, cl
add al, 0x32
xor byte [rbp + r9 - 0x1c], al
inc r9
cmp r9, 0xe
jb 0x18005de90
xor r9d, r9d
lea rdx, [rbp - 9]
mov r8d, ebx
lea rcx, [rbp - 0x1c]
call fcn.18005bd20
call fcn.18003bb60
inc esi
cmp esi, 2
jl 0x18005dd38
call fcn.18003bbd0
mov rax, qword [0x1800821d8]
movabs rbx, 0x47ae147ae147ae15
mov r15d, dword [rbp + 0x6f]
mov r13d, dword [rbp + 0x77]
mov rsi, qword [rsp + 0x88]
test r13d, r13d
jne 0x18005dfcd
test r15d, r15d
jne 0x18005df3b
mov rcx, qword [rax + 0x1a80]
cmp byte [rcx + 0x83], dil
jne 0x18005df3b
mov eax, dword [rcx + 0x1a8]
neg eax
sbb ecx, ecx
add ecx, 6
call fcn.180064510
cmp byte [0x180078e19], dil
movsd xmm0, qword [str.s_D_W]
movzx eax, word [0x180078e18]
movsd qword [rbp - 0x39], xmm0
mov word [rbp - 0x31], ax
je 0x18005df91
nop dword [rax]
mov rax, rbx
mul rdi
mov rax, rdi
sub rax, rdx
shr rax, 1
add rax, rdx
shr rax, 5
movsx eax, al
imul ecx, eax, 0x32
movzx eax, dil
sub al, cl
add al, 0x32
xor byte [rbp + rdi - 0x39], al
inc rdi
cmp rdi, 0xa
jb 0x18005df60
movzx eax, byte [r14 + 0x2f26]
lea rdx, [rbp + 0x6f]
and al, 1
lea rcx, [rbp - 0x39]
mov byte [rbp + 0x6f], al
call fcn.1800585e0
test al, al
je 0x18005dfcd
cmp byte [rbp + 0x6f], 0
mov eax, dword [r14 + 0x2f24]
je 0x18005dfc2
bts eax, 0x10
jmp 0x18005dfc6
btr eax, 0x10
mov dword [r14 + 0x2f24], eax
call fcn.180033c80
mov r14, qword [rsp + 0x78]
mov rbx, qword [rsp + 0x90]
mov rdi, qword [rsp + 0x80]
add rsp, 0x98
pop r15
pop r13
pop r12
pop rbp
ret