Function at 0x18005a6b0
Capabilities:
Encode data using xor

Disassembly:
mov rax, rsp
mov qword [rax + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x4f]
sub rsp, 0x100
movaps xmmword [rax - 0x48], xmm6
movaps xmmword [rax - 0x58], xmm7
mov rax, qword [0x18011e040]
xor rax, rsp
mov qword [rbp - 0x11], rax
mov rbx, rdx
mov r15, rcx
mov qword [rbp - 0x19], rdx
xor r13d, r13d
mov rcx, r8
call fcn.180063d60
mov r12, rax
mov esi, r13d
mov rcx, qword [0x18021dbe8]
test rcx, rcx
jne 0x18005a77a
mov edi, r13d
nop dword [rax]
mov r10, qword [rbx]
mov rdx, qword [rbx + 8]
sub rdx, r10
sar rdx, 3
movsxd rax, esi
cmp rax, rdx
jae 0x18005a77a
mov dword [rsp + 0x20], r13d
xor r9d, r9d
mov r8d, 0x400
mov rdx, r12
mov rcx, qword [r10 + rdi]
call fcn.180059c20
mov r14, rax
test rax, rax
je 0x18005a768
mov rcx, qword [rbx]
mov rcx, qword [rdi + rcx]
call fcn.180059e70
movsxd rcx, eax
mov ecx, dword [rcx + r14]
shr rcx, 3
mov qword [0x18021dbe8], rcx
jmp 0x18005a76f
mov rcx, qword [0x18021dbe8]
inc esi
add rdi, 8
test rcx, rcx
je 0x18005a710
mov rax, qword [rbx]
cmp rax, qword [rbx + 8]
je 0x18005a78e
mov qword [rbx + 8], rax
mov rcx, qword [0x18021dbe8]
test rcx, rcx
jne 0x18005ad0e
movsd xmm0, qword [0x1800fbb00]
movsd qword [rsp + 0x30], xmm0
mov eax, dword [0x1800fbb08]
mov dword [rsp + 0x38], eax
movdqa xmm7, xmmword [0x18010ac30]
mov esi, dword [0x18011e090]
cmp byte [0x1800fbb0b], cl
je 0x18005a943
mov r8d, r13d
cmp esi, 2
jl 0x18005a90c
movdqa xmm4, xmmword [0x18010af80]
movdqa xmm5, xmmword [0x18010ab70]
movdqa xmm6, xmmword [0x18010aca0]
movdqa xmm2, xmmword [0x18010aac0]
movdqa xmm1, xmm2
punpckldq xmm1, xmm2
pmuldq xmm1, xmm4
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
pmuldq xmm0, xmm4
shufps xmm1, xmm0, 0xdd
psrad xmm1, 4
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm5
psubd xmm2, xmm0
andps xmm2, xmm7
packuswb xmm2, xmm2
packuswb xmm2, xmm2
paddb xmm2, xmm6
movd xmm0, dword [0x1800fbb00]
xorps xmm2, xmm0
movd dword [rsp + 0x30], xmm2
movdqa xmm2, xmmword [0x18010aae0]
movdqa xmm1, xmm2
punpckldq xmm1, xmm2
pmuldq xmm1, xmm4
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
pmuldq xmm0, xmm4
shufps xmm1, xmm0, 0xdd
psrad xmm1, 4
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm5
psubd xmm2, xmm0
andps xmm2, xmm7
packuswb xmm2, xmm2
packuswb xmm2, xmm2
paddb xmm2, xmm6
movd xmm0, dword [rsp + 0x34]
xorps xmm2, xmm0
movd dword [rsp + 0x34], xmm2
movdqa xmm3, xmmword [0x18010aaf0]
movdqa xmm1, xmm3
punpckldq xmm1, xmm3
pmuldq xmm1, xmm4
movdqa xmm0, xmm3
punpckhdq xmm0, xmm3
pmuldq xmm0, xmm4
shufps xmm1, xmm0, 0xdd
psrad xmm1, 4
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm5
psubd xmm3, xmm0
andps xmm3, xmm7
packuswb xmm3, xmm3
packuswb xmm3, xmm3
paddb xmm3, xmm6
movd xmm0, eax
xorps xmm3, xmm0
movd dword [rsp + 0x38], xmm3
jmp 0x18005a943
lea r9, [rsp + 0x30]
mov eax, 0x3521cfb3
mul r8d
mov eax, r8d
sub eax, edx
shr eax, 1
add eax, edx
shr eax, 5
movsx eax, al
imul ecx, eax, 0x35
movzx eax, r8b
sub al, cl
add al, 0x30
xor byte [r9], al
inc r8d
lea r9, [r9 + 1]
cmp r8d, 0xc
jl 0x18005a911
xorps xmm0, xmm0
movups xmmword [rbp - 0x59], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x49], xmm1
lea rax, [rsp + 0x30]
mov rdi, 0xffffffffffffffff
mov r8, rdi
inc r8
cmp byte [rax + r8], 0
jne 0x18005a961
lea rdx, [rsp + 0x30]
lea rcx, [rbp - 0x59]
call fcn.1800160d0
nop
xorps xmm0, xmm0
movups xmmword [rbp - 0x79], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x69], xmm1
mov r8, rdi
nop dword [rax]
inc r8
cmp byte [r15 + r8], 0
jne 0x18005a990
mov rdx, r15
lea rcx, [rbp - 0x79]
call fcn.1800160d0
nop
movups xmm6, xmmword [0x1800fb620]
movups xmmword [rsp + 0x30], xmm6
movdqa xmm0, xmm6
psrldq xmm0, 0xf
movd eax, xmm0
test al, al
je 0x18005abb2
mov r8d, r13d
cmp esi, 2
jl 0x18005ab7a
movdqa xmm4, xmmword [0x18010af80]
movdqa xmm5, xmmword [0x18010ab70]
movdqa xmm3, xmmword [0x18010aac0]
movdqa xmm1, xmm3
punpckldq xmm1, xmm3
pmuldq xmm1, xmm4
movdqa xmm0, xmm3
punpckhdq xmm0, xmm3
pmuldq xmm0, xmm4
shufps xmm1, xmm0, 0xdd
psrad xmm1, 4
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm5
psubd xmm3, xmm0
andps xmm3, xmm7
packuswb xmm3, xmm3
packuswb xmm3, xmm3
mov ecx, dword [0x18010aca0]
movd xmm0, ecx
paddb xmm3, xmm0
movd eax, xmm6
movd xmm0, eax
xorps xmm3, xmm0
movd dword [rsp + 0x30], xmm3
movdqa xmm2, xmmword [0x18010aae0]
movdqa xmm1, xmm2
punpckldq xmm1, xmm2
pmuldq xmm1, xmm4
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
pmuldq xmm0, xmm4
shufps xmm1, xmm0, 0xdd
psrad xmm1, 4
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm5
psubd xmm2, xmm0
andps xmm2, xmm7
packuswb xmm2, xmm2
packuswb xmm2, xmm2
movd xmm0, ecx
paddb xmm2, xmm0
movd xmm1, dword [rsp + 0x34]
xorps xmm2, xmm1
movd dword [rsp + 0x34], xmm2
movdqa xmm3, xmmword [0x18010aaf0]
movdqa xmm1, xmm3
punpckldq xmm1, xmm3
pmuldq xmm1, xmm4
movdqa xmm0, xmm3
punpckhdq xmm0, xmm3
pmuldq xmm0, xmm4
shufps xmm1, xmm0, 0xdd
psrad xmm1, 4
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm5
psubd xmm3, xmm0
andps xmm3, xmm7
packuswb xmm3, xmm3
packuswb xmm3, xmm3
movd xmm0, ecx
paddb xmm3, xmm0
movd xmm1, dword [rsp + 0x38]
xorps xmm3, xmm1
movd dword [rsp + 0x38], xmm3
movdqa xmm2, xmmword [0x18010ab00]
movdqa xmm1, xmm2
punpckldq xmm1, xmm2
pmuldq xmm1, xmm4
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
pmuldq xmm0, xmm4
shufps xmm1, xmm0, 0xdd
psrad xmm1, 4
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm5
psubd xmm2, xmm0
andps xmm2, xmm7
packuswb xmm2, xmm2
packuswb xmm2, xmm2
movd xmm0, ecx
paddb xmm2, xmm0
movd xmm1, dword [rsp + 0x3c]
xorps xmm2, xmm1
movd dword [rsp + 0x3c], xmm2
jmp 0x18005abb2
lea r9, [rsp + 0x30]
nop
mov eax, 0x3521cfb3
mul r8d
mov eax, r8d
sub eax, edx
shr eax, 1
add eax, edx
shr eax, 5
movsx eax, al
imul ecx, eax, 0x35
movzx eax, r8b
sub al, cl
add al, 0x30
xor byte [r9], al
inc r8d
lea r9, [r9 + 1]
cmp r8d, 0x10
jl 0x18005ab80
xorps xmm0, xmm0
movups xmmword [rsp + 0x50], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x60], xmm1
lea rax, [rsp + 0x30]
nop dword [rax + rax]
inc rdi
cmp byte [rax + rdi], 0
jne 0x18005abd0
mov r8, rdi
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x50]
call fcn.1800160d0
nop
lea r9, [rbp - 0x79]
lea r8, [rsp + 0x50]
lea rcx, [rsp + 0x30]
call fcn.180025b20
nop
lea r9, [rbp - 0x59]
lea r8, [rsp + 0x30]
lea rcx, [rbp - 0x39]
call fcn.180025b20
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.18002c3d0
nop
mov rdx, qword [rsp + 0x48]
cmp rdx, 0xf
jbe 0x18005ac5c
inc rdx
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18005ac56
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18005ad8f
call fcn.1800c3978
nop
mov rdx, qword [rsp + 0x68]
cmp rdx, 0xf
jbe 0x18005ac9a
inc rdx
mov rcx, qword [rsp + 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18005ac94
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18005ad95
call fcn.1800c3978
nop
mov rdx, qword [rbp - 0x61]
cmp rdx, 0xf
jbe 0x18005acd6
inc rdx
mov rcx, qword [rbp - 0x79]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18005acd0
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18005ad9b
call fcn.1800c3978
nop
mov rdx, qword [rbp - 0x41]
cmp rdx, 0xf
jbe 0x18005ad0e
inc rdx
mov rcx, qword [rbp - 0x59]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18005ad08
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18005ad83
call fcn.1800c3978
nop
mov rcx, qword [rbx]
test rcx, rcx
je 0x18005ad52
mov rdx, qword [rbx + 0x10]
sub rdx, rcx
and rdx, 0xfffffffffffffff8
cmp rdx, 0x1000
jb 0x18005ad42
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x18005ad89
mov rcx, r8
call fcn.1800c3978
mov qword [rbx], r13
mov qword [rbx + 8], r13
mov qword [rbx + 0x10], r13
mov rcx, qword [rbp - 0x11]
xor rcx, rsp
call fcn.1800c35e0
lea r11, [rsp + 0x100]
mov rbx, qword [r11 + 0x58]
movaps xmm6, xmmword [r11 - 0x10]
movaps xmm7, xmmword [r11 - 0x20]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
call fcn.1800c9824
nop
call fcn.1800c9824
nop
call fcn.1800c9824
nop
call fcn.1800c9824
nop
call fcn.1800c9824
int3