Function at 0x1800999c0
Capabilities:
Encode data using xor

Disassembly:
mov rax, rsp
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rsi
push rbp
lea rbp, [rax - 0x5f]
sub rsp, 0xe0
movsd xmm0, qword [0x18012dd68]
xor ebx, ebx
ucomisd xmm0, qword [0x180114690]
mov esi, dword [0x18012c090]
movaps xmmword [rax - 0x18], xmm6
movaps xmmword [rax - 0x28], xmm7
movdqa xmm7, xmmword [0x180114990]
mov qword [rax + 0x10], rdi
jp 0x180099c1a
jne 0x180099c1a
movups xmm0, xmmword [0x18010b3e0]
mov r8d, ebx
movups xmm1, xmmword [str.hqsk]
mov eax, dword [0x18010b460]
movups xmmword [rbp - 0x59], xmm0
movups xmm0, xmmword [0x18010b400]
movups xmmword [rbp - 0x49], xmm1
movups xmm1, xmmword [0x18010b410]
movups xmmword [rbp - 0x39], xmm0
movups xmm0, xmmword [0x18010b420]
movups xmmword [rbp - 0x29], xmm1
movups xmm1, xmmword [0x18010b430]
movups xmmword [rbp - 0x19], xmm0
movups xmm0, xmmword [0x18010b440]
movups xmmword [rbp - 9], xmm1
movups xmm1, xmmword [0x18010b450]
mov dword [rbp + 0x27], eax
movzx eax, byte [0x18010b464]
movups xmmword [rbp + 7], xmm0
movups xmmword [rbp + 0x17], xmm1
mov byte [rbp + 0x2b], al
cmp esi, 2
jl 0x180099ba1
movdqa xmm0, xmmword [0x1801149e0]
lea rcx, [rbp - 0x55]
movdqa xmm4, xmmword [0x1801148f0]
movdqa xmm3, xmmword [0x180114da0]
movdqa xmm5, xmmword [0x180114910]
movdqa xmmword [rbp - 0x69], xmm0
mov edx, dword [rbp - 0x69]
movd xmm2, r8d
lea eax, [r8 + 4]
pshufd xmm2, xmm2, 0
lea rcx, [rcx + 8]
paddd xmm2, xmm4
add r8d, 8
movdqa xmm1, xmm2
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
punpckldq xmm1, xmm2
pmuldq xmm0, xmm3
pmuldq xmm1, xmm3
shufps xmm1, xmm0, 0xdd
psrad xmm1, 4
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm5
psubd xmm2, xmm0
movd xmm0, edx
andps xmm2, xmm7
packuswb xmm2, xmm2
packuswb xmm2, xmm2
paddb xmm2, xmm0
movd xmm0, dword [rcx - 0xc]
xorps xmm2, xmm0
movd dword [rcx - 0xc], xmm2
movd xmm2, eax
pshufd xmm2, xmm2, 0
paddd xmm2, xmm4
movdqa xmm1, xmm2
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
punpckldq xmm1, xmm2
pmuldq xmm0, xmm3
pmuldq xmm1, xmm3
shufps xmm1, xmm0, 0xdd
psrad xmm1, 4
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm5
psubd xmm2, xmm0
movd xmm0, edx
andps xmm2, xmm7
packuswb xmm2, xmm2
packuswb xmm2, xmm2
paddb xmm2, xmm0
movd xmm0, dword [rcx - 8]
xorps xmm2, xmm0
movd dword [rcx - 8], xmm2
cmp r8d, 0x80
jl 0x180099ab2
cmp r8d, 0x85
jge 0x180099be4
movsxd rax, r8d
lea r9, [rbp - 0x59]
add r9, rax
nop dword [rax + rax]
mov eax, 0x5397829d
lea r9, [r9 + 1]
imul r8d
sar edx, 4
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul ecx, eax, 0x31
movzx eax, r8b
inc r8d
sub al, cl
add al, 0x38
xor byte [r9 - 1], al
cmp r8d, 0x85
jl 0x180099bb0
xor r8d, r8d
lea rdx, [rbp - 0x59]
lea rcx, [rbp + 0x67]
call fcn.180026720
mov rdi, qword [rax]
test rdi, rdi
je 0x180099c1a
lea r8, [0x18012e768]
mov rcx, rdi
lea rdx, [0x18009bf40]
call fcn.1800cfba4
mov rcx, rdi
call fcn.1800cfe48
cmp dword [0x18012dd70], 0xc
jl 0x180099e27
movsd xmm0, qword [0x1801145a8]
comisd xmm0, xmmword [0x18012dd68]
jbe 0x180099e27
movups xmm0, xmmword [0x18010b390]
mov r8d, ebx
movups xmm1, xmmword [str._fi_bl]
mov eax, dword [0x18010b3d8]
movups xmmword [rbp - 0x59], xmm0
movups xmm0, xmmword [0x18010b3b0]
movups xmmword [rbp - 0x39], xmm0
movsd xmm0, qword [0x18010b3d0]
movups xmmword [rbp - 0x49], xmm1
movups xmm1, xmmword [0x18010b3c0]
movsd qword [rbp - 0x19], xmm0
movups xmmword [rbp - 0x29], xmm1
mov dword [rbp - 0x11], eax
cmp esi, 2
jl 0x180099da9
movdqa xmm0, xmmword [0x1801149e0]
lea rcx, [rbp - 0x55]
movdqa xmm4, xmmword [0x1801148f0]
movdqa xmm3, xmmword [0x180114da0]
movdqa xmm5, xmmword [0x180114910]
movdqa xmmword [rbp - 0x69], xmm0
mov edx, dword [rbp - 0x69]
nop word [rax + rax]
movd xmm2, r8d
lea eax, [r8 + 4]
pshufd xmm2, xmm2, 0
lea rcx, [rcx + 8]
paddd xmm2, xmm4
add r8d, 8
movdqa xmm1, xmm2
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
punpckldq xmm1, xmm2
pmuldq xmm0, xmm3
pmuldq xmm1, xmm3
shufps xmm1, xmm0, 0xdd
psrad xmm1, 4
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm5
psubd xmm2, xmm0
movd xmm0, edx
andps xmm2, xmm7
packuswb xmm2, xmm2
packuswb xmm2, xmm2
paddb xmm2, xmm0
movd xmm0, dword [rcx - 0xc]
xorps xmm2, xmm0
movd dword [rcx - 0xc], xmm2
movd xmm2, eax
pshufd xmm2, xmm2, 0
paddd xmm2, xmm4
movdqa xmm1, xmm2
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
punpckldq xmm1, xmm2
pmuldq xmm0, xmm3
pmuldq xmm1, xmm3
shufps xmm1, xmm0, 0xdd
psrad xmm1, 4
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm5
psubd xmm2, xmm0
movd xmm0, edx
andps xmm2, xmm7
packuswb xmm2, xmm2
packuswb xmm2, xmm2
paddb xmm2, xmm0
movd xmm0, dword [rcx - 8]
xorps xmm2, xmm0
movd dword [rcx - 8], xmm2
cmp r8d, 0x48
jl 0x180099cc0
cmp r8d, 0x4c
jge 0x180099df1
movsxd rax, r8d
lea r9, [rbp - 0x59]
add r9, rax
nop dword [rax]
nop word [rax + rax]
mov eax, 0x5397829d
lea r9, [r9 + 1]
imul r8d
sar edx, 4
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul ecx, eax, 0x31
movzx eax, r8b
inc r8d
sub al, cl
add al, 0x38
xor byte [r9 - 1], al
cmp r8d, 0x4c
jl 0x180099dc0
xor r8d, r8d
lea rdx, [rbp - 0x59]
lea rcx, [rbp + 0x67]
call fcn.180026720
mov rdi, qword [rax]
test rdi, rdi
je 0x180099e27
lea r8, [0x18012e770]
mov rcx, rdi
lea rdx, [0x18009bfe0]
call fcn.1800cfba4
mov rcx, rdi
call fcn.1800cfe48
movsd xmm6, qword [0x1801144c8]
movsd xmm0, qword [0x18012dd68]
ucomisd xmm0, xmm6
mov rdi, qword [rsp + 0xf8]
jp 0x180099e5f
jne 0x180099e5f
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov dword [rax + 0xaec475], 0x239e9
mov byte [rax + 0xaec479], bl
movsd xmm0, qword [0x18012dd68]
comisd xmm0, xmmword [0x1801144b8]
jb 0x18009a04f
comisd xmm6, xmm0
jbe 0x18009a04f
mov eax, dword [str.RYB__e]
mov dword [rbp - 0x31], eax
movzx eax, word [0x18010b38c]
mov word [rbp - 0x2d], ax
movups xmm0, xmmword [0x18010b360]
movups xmm1, xmmword [str.hq_bksmqooqms__vdky]
movups xmmword [rbp - 0x59], xmm0
movsd xmm0, qword [0x18010b380]
movsd qword [rbp - 0x39], xmm0
movups xmmword [rbp - 0x49], xmm1
cmp esi, 2
jl 0x180099fd4
movdqa xmm0, xmmword [0x1801149e0]
lea rcx, [rbp - 0x55]
movdqa xmm4, xmmword [0x1801148f0]
movdqa xmm3, xmmword [0x180114da0]
movdqa xmm5, xmmword [0x180114910]
movdqa xmmword [rbp - 0x69], xmm0
mov edx, dword [rbp - 0x69]
nop dword [rax + rax]
movd xmm2, ebx
lea eax, [rbx + 4]
pshufd xmm2, xmm2, 0
lea rcx, [rcx + 8]
paddd xmm2, xmm4
add ebx, 8
movdqa xmm1, xmm2
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
punpckldq xmm1, xmm2
pmuldq xmm0, xmm3
pmuldq xmm1, xmm3
shufps xmm1, xmm0, 0xdd
psrad xmm1, 4
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm5
psubd xmm2, xmm0
movd xmm0, edx
andps xmm2, xmm7
packuswb xmm2, xmm2
packuswb xmm2, xmm2
paddb xmm2, xmm0
movd xmm0, dword [rcx - 0xc]
xorps xmm2, xmm0
movd dword [rcx - 0xc], xmm2
movd xmm2, eax
pshufd xmm2, xmm2, 0
paddd xmm2, xmm4
movdqa xmm1, xmm2
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
punpckldq xmm1, xmm2
pmuldq xmm0, xmm3
pmuldq xmm1, xmm3
shufps xmm1, xmm0, 0xdd
psrad xmm1, 4
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm5
psubd xmm2, xmm0
movd xmm0, edx
andps xmm2, xmm7
packuswb xmm2, xmm2
packuswb xmm2, xmm2
paddb xmm2, xmm0
movd xmm0, dword [rcx - 8]
xorps xmm2, xmm0
movd dword [rcx - 8], xmm2
cmp ebx, 0x28
jl 0x180099ef0
cmp ebx, 0x2e
jge 0x18009a00d
movsxd rax, ebx
lea r8, [rbp - 0x59]
add r8, rax
nop
mov eax, 0x5397829d
lea r8, [r8 + 1]
imul ebx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul ecx, eax, 0x31
movzx eax, bl
inc ebx
sub al, cl
add al, 0x38
xor byte [r8 - 1], al
cmp ebx, 0x2e
jl 0x180099fe0
xor r8d, r8d
lea rdx, [rbp - 0x59]
lea rcx, [rbp + 0x67]
call fcn.180026720
mov rdx, qword [rax]
test rdx, rdx
je 0x18009a04f
movsxd rbx, dword [rdx + 1]
add rbx, 5
add rbx, rdx
mov qword [rax], rbx
je 0x18009a04f
xor r8d, r8d
lea rdx, [fcn.18009adb0]
mov rcx, rbx
call fcn.1800cfba4
mov rcx, rbx
call fcn.1800cfe48
lea r11, [rsp + 0xe0]
mov al, 1
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
movaps xmm6, xmmword [r11 - 0x10]
movaps xmm7, xmmword [r11 - 0x20]
mov rsp, r11
pop rbp
ret