Function at 0x18005c8f0
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 0x18005c935
test r13d, r13d
jne 0x18005cce7
mov rax, qword [str.QZASOL9]
mov qword [rsp + 0x90], rbx
movabs rbx, 0x47ae147ae147ae15
mov qword [rsp + 0x80], rdi
xor edi, edi
cmp byte [0x180076dbf], dil
mov qword [rbp + 0x7f], rax
je 0x18005c9a2
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 0x18005c970
xor edx, edx
lea rcx, [rbp + 0x7f]
call fcn.18002fe50
test al, al
je 0x18005ccd7
mov rax, qword [0x1800801d0]
mov qword [rsp + 0x78], r14
mov r14, rax
test r15d, r15d
jne 0x18005cc0b
mov qword [rsp + 0x88], rsi
movaps xmmword [rsp + 0x60], xmm7
movss xmm7, dword [rax + 0x1928]
mulss xmm7, dword [0x1800713e0]
call fcn.180033950
addss xmm0, dword [r14 + 0x15b8]
subss xmm7, xmm0
movss xmm0, dword [r14 + 0x1928]
mulss xmm0, dword [0x1800713e0]
maxss xmm7, dword [0x1800713bc]
movss dword [rbp + 0x7f], xmm0
movss dword [rbp + 0x83], xmm7
call fcn.18003b110
movaps xmm7, xmmword [rsp + 0x60]
and r12d, 2
mov esi, edi
mov r15d, 0x1a8
test esi, esi
je 0x18005ca65
mov rax, qword [0x1800801d0]
mov rcx, qword [rax + 0x1a80]
cmp byte [rcx + 0x83], dil
jne 0x18005ca65
mov eax, dword [rcx + 0x1a8]
neg eax
sbb ecx, ecx
add ecx, 6
call fcn.180063210
mov ecx, esi
call fcn.18003adc0
test esi, esi
mov ebx, 0x20001a8
cmovne ebx, r15d
or ebx, r12d
cmp esi, 1
jne 0x18005ca83
bts ebx, 0x1a
lea rcx, [rbp - 0x39]
call fcn.1800338e0
mov eax, dword [0x180076dc8]
mov r8, rdi
movsd xmm0, qword [0x180076dc0]
movabs r13, 0x47ae147ae147ae15
mov dword [rbp - 0x21], eax
movzx eax, byte [0x180076dcc]
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 0x18005cac0
lea r9, [rbp + 0x7f]
xor r8d, r8d
xor edx, edx
lea rcx, [rbp - 0x29]
call fcn.180062d70
mov r13, qword [rbp + 0x67]
test al, al
je 0x18005cb25
and dword [r14 + 0x2f24], 0xf9ffffff
mov eax, ebx
and eax, 0x6000000
or dword [r14 + 0x2f24], eax
lea rcx, [rbp - 0x39]
call fcn.18003e020
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.180066d20
cmp byte [0x180076ddd], dil
mov eax, dword [0x180076dd8]
movsd xmm0, qword [0x180076dd0]
mov dword [rbp - 0x14], eax
movzx eax, word [0x180076ddc]
mov word [rbp - 0x10], ax
movsd qword [rbp - 0x1c], xmm0
je 0x18005cbc2
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 0x18005cb90
xor r9d, r9d
lea rdx, [rbp - 9]
mov r8d, ebx
lea rcx, [rbp - 0x1c]
call fcn.18005aa20
call fcn.18003a860
inc esi
cmp esi, 2
jl 0x18005ca38
call fcn.18003a8d0
mov rax, qword [0x1800801d0]
movabs rbx, 0x47ae147ae147ae15
mov r15d, dword [rbp + 0x6f]
mov r13d, dword [rbp + 0x77]
mov rsi, qword [rsp + 0x88]
test r13d, r13d
jne 0x18005cccd
test r15d, r15d
jne 0x18005cc3b
mov rcx, qword [rax + 0x1a80]
cmp byte [rcx + 0x83], dil
jne 0x18005cc3b
mov eax, dword [rcx + 0x1a8]
neg eax
sbb ecx, ecx
add ecx, 6
call fcn.180063210
cmp byte [0x180076de9], dil
movsd xmm0, qword [str.s_D_W]
movzx eax, word [0x180076de8]
movsd qword [rbp - 0x39], xmm0
mov word [rbp - 0x31], ax
je 0x18005cc91
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 0x18005cc60
movzx eax, byte [r14 + 0x2f26]
lea rdx, [rbp + 0x6f]
and al, 1
lea rcx, [rbp - 0x39]
mov byte [rbp + 0x6f], al
call fcn.1800572e0
test al, al
je 0x18005cccd
cmp byte [rbp + 0x6f], 0
mov eax, dword [r14 + 0x2f24]
je 0x18005ccc2
bts eax, 0x10
jmp 0x18005ccc6
btr eax, 0x10
mov dword [r14 + 0x2f24], eax
call fcn.180032980
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