Function at 0x18005b040
Capabilities:
Encode data using xor

Disassembly:
mov rax, rsp
push rbp
push rbx
push rsi
push rdi
push r12
push r14
push r15
lea rbp, [rax - 0x4f]
sub rsp, 0x100
movaps xmmword [rax - 0x48], xmm6
movaps xmmword [rax - 0x58], xmm7
mov rax, qword [0x18011f040]
xor rax, rsp
mov qword [rbp - 0x11], rax
mov rbx, rdx
mov r14, rcx
mov qword [rbp - 0x19], rdx
xor r12d, r12d
mov rcx, r8
call fcn.180063f10
mov r15, rax
mov edi, r12d
mov rdx, qword [0x18021e7f0]
test rdx, rdx
jne 0x18005b0e8
mov esi, r12d
nop dword [rax + rax]
mov r10, qword [rbx]
mov rcx, qword [rbx + 8]
sub rcx, r10
sar rcx, 3
movsxd rax, edi
cmp rax, rcx
jae 0x18005b0e8
mov dword [rsp + 0x20], 0xffffffff
mov r9b, 1
mov r8d, 0x32
mov rdx, r15
mov rcx, qword [rsi + r10]
call fcn.180059eb0
mov rdx, rax
mov qword [0x18021e7f0], rax
inc edi
add rsi, 8
test rax, rax
je 0x18005b0a0
mov rax, qword [rbx]
cmp rax, qword [rbx + 8]
je 0x18005b0fc
mov qword [rbx + 8], rax
mov rdx, qword [0x18021e7f0]
test rdx, rdx
je 0x18005b11a
mov rax, qword gs:[0x60]
sub rdx, qword [rax + 0x10]
mov qword [0x18021e7f0], rdx
jmp 0x18005b6f1
movups xmm3, xmmword [0x1800fbac8]
movups xmmword [rsp + 0x30], xmm3
movzx eax, word [0x1800fbad8]
mov word [rsp + 0x40], ax
mov esi, dword [0x18011f090]
movdqa xmm7, xmmword [0x18010ad90]
cmp byte [0x1800fbad9], 0
je 0x18005b330
mov r8d, r12d
cmp esi, 2
jl 0x18005b2f5
movdqa xmm4, xmmword [0x18010b0e0]
movdqa xmm5, xmmword [0x18010acd0]
movdqa xmm6, xmmword [0x18010ae10]
movdqa xmm2, xmmword [0x18010ac10]
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 eax, xmm3
movd xmm0, eax
xorps xmm2, xmm0
movd dword [rsp + 0x30], xmm2
movdqa xmm2, xmmword [0x18010ac30]
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 [0x18010ac40]
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, dword [rsp + 0x38]
xorps xmm3, xmm0
movd dword [rsp + 0x38], xmm3
movdqa xmm2, xmmword [0x18010ac50]
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 + 0x3c]
xorps xmm2, xmm0
movd dword [rsp + 0x3c], xmm2
mov r8d, 0x10
mov eax, r8d
lea r9, [rsp + 0x30]
add r9, rax
mov eax, 0x4d4873ed
imul r8d
sar edx, 4
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul ecx, eax, 0x35
movzx eax, r8b
sub al, cl
add al, 0x36
xor byte [r9], al
inc r8d
lea r9, [r9 + 1]
cmp r8d, 0x12
jl 0x18005b300
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
nop
inc r8
cmp byte [rax + r8], 0
jne 0x18005b350
lea rdx, [rsp + 0x30]
lea rcx, [rbp - 0x59]
call fcn.180015c40
nop
xorps xmm0, xmm0
movups xmmword [rbp - 0x79], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x69], xmm1
mov r8, rdi
nop dword [rax + rax]
inc r8
cmp byte [r14 + r8], 0
jne 0x18005b380
mov rdx, r14
lea rcx, [rbp - 0x79]
call fcn.180015c40
nop
movups xmm6, xmmword [0x1800fb500]
movups xmmword [rsp + 0x30], xmm6
movdqa xmm0, xmm6
psrldq xmm0, 0xf
movd eax, xmm0
test al, al
je 0x18005b59d
mov ecx, r12d
cmp esi, 2
jl 0x18005b56a
movdqa xmm4, xmmword [0x18010b0e0]
movdqa xmm5, xmmword [0x18010acd0]
movdqa xmm3, xmmword [0x18010ac10]
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 [0x18010ae10]
movd xmm0, ecx
paddb xmm3, xmm0
movd eax, xmm6
movd xmm0, eax
xorps xmm3, xmm0
movd dword [rsp + 0x30], xmm3
movdqa xmm2, xmmword [0x18010ac30]
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 [0x18010ac40]
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 [0x18010ac50]
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 0x18005b59d
lea r8, [rsp + 0x30]
nop
mov eax, 0x3521cfb3
mul ecx
mov eax, ecx
sub eax, edx
shr eax, 1
add eax, edx
shr eax, 5
movsx eax, al
imul edx, eax, 0x35
movzx eax, cl
sub al, dl
add al, 0x36
xor byte [r8], al
inc ecx
lea r8, [r8 + 1]
cmp ecx, 0x10
jl 0x18005b570
xorps xmm0, xmm0
movups xmmword [rsp + 0x50], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x60], xmm1
lea rax, [rsp + 0x30]
inc rdi
cmp byte [rax + rdi], 0
jne 0x18005b5b3
mov r8, rdi
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x50]
call fcn.180015c40
nop
lea r9, [rbp - 0x79]
lea r8, [rsp + 0x50]
lea rcx, [rsp + 0x30]
call fcn.180025c70
nop
lea r9, [rbp - 0x59]
lea r8, [rsp + 0x30]
lea rcx, [rbp - 0x39]
call fcn.180025c70
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.18002c520
nop
mov rdx, qword [rsp + 0x48]
cmp rdx, 0xf
jbe 0x18005b63f
inc rdx
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18005b639
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18005b76f
call fcn.1800c3c28
nop
mov rdx, qword [rsp + 0x68]
cmp rdx, 0xf
jbe 0x18005b67d
inc rdx
mov rcx, qword [rsp + 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18005b677
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18005b775
call fcn.1800c3c28
nop
mov rdx, qword [rbp - 0x61]
cmp rdx, 0xf
jbe 0x18005b6b9
inc rdx
mov rcx, qword [rbp - 0x79]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18005b6b3
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18005b77b
call fcn.1800c3c28
nop
mov rdx, qword [rbp - 0x41]
cmp rdx, 0xf
jbe 0x18005b6f1
inc rdx
mov rcx, qword [rbp - 0x59]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18005b6eb
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18005b763
call fcn.1800c3c28
nop
mov rcx, qword [rbx]
test rcx, rcx
je 0x18005b735
mov rdx, qword [rbx + 0x10]
sub rdx, rcx
and rdx, 0xfffffffffffffff8
cmp rdx, 0x1000
jb 0x18005b725
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x18005b769
mov rcx, r8
call fcn.1800c3c28
mov qword [rbx], r12
mov qword [rbx + 8], r12
mov qword [rbx + 0x10], r12
mov rcx, qword [rbp - 0x11]
xor rcx, rsp
call fcn.1800c3890
movaps xmm6, xmmword [rsp + 0xf0]
movaps xmm7, xmmword [rsp + 0xe0]
add rsp, 0x100
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
call fcn.1800c99b4
nop
call fcn.1800c99b4
nop
call fcn.1800c99b4
nop
call fcn.1800c99b4
nop
call fcn.1800c99b4
int3