Function at 0x180016db0
Capabilities:
Encode data using xor

Disassembly:
test rcx, rcx
je 0x18001740b
mov r11, rsp
push rbp
push rsi
push r15
lea rbp, [rsp - 0x70]
sub rsp, 0x170
mov rax, qword [0x1800a5010]
xor rax, rsp
mov qword [rbp], rax
mov qword [r11 + 0x18], rbx
mov r15, rdx
mov ebx, dword [0x1800a5018]
mov rsi, rcx
mov qword [r11 - 0x20], rdi
mov rdi, qword [0x1800a77e0]
mov qword [r11 - 0x28], r12
mov qword [r11 - 0x30], r13
xor r13d, r13d
mov qword [r11 - 0x38], r14
movaps xmmword [r11 - 0x48], xmm6
movaps xmmword [r11 - 0x58], xmm7
movaps xmmword [r11 - 0x68], xmm8
lea r14d, [r13 + 4]
movaps xmmword [r11 - 0x78], xmm9
lea r12d, [r13 + 0x1f]
test rdi, rdi
jne 0x180017021
movups xmm0, xmmword [0x180093e40]
mov r8d, r13d
movups xmm1, xmmword [0x180093e50]
mov eax, dword [0x180093eb8]
movups xmmword [rsp + 0x70], xmm0
movups xmm0, xmmword [0x180093e60]
movups xmmword [rbp - 0x80], xmm1
movups xmm1, xmmword [0x180093e70]
movups xmmword [rbp - 0x70], xmm0
movups xmm0, xmmword [0x180093e80]
movups xmmword [rbp - 0x60], xmm1
movups xmm1, xmmword [0x180093e90]
movups xmmword [rbp - 0x50], xmm0
movups xmm0, xmmword [0x180093ea0]
movups xmmword [rbp - 0x40], xmm1
movsd xmm1, qword [0x180093eb0]
movups xmmword [rbp - 0x30], xmm0
movsd qword [rbp - 0x20], xmm1
mov dword [rbp - 0x18], eax
cmp ebx, 2
jl 0x180016fc3
movdqa xmm5, xmmword [0x18009d8f0]
lea rcx, [rsp + 0x70]
movdqa xmm4, xmmword [0x18009dd00]
movdqa xmm7, xmmword [0x18009d930]
movdqa xmm9, xmmword [0x18009d9d0]
movd xmm6, r14d
movd xmm8, r12d
nop dword [rax]
movd xmm2, r8d
lea eax, [r8 + 4]
pshufd xmm2, xmm2, 0
lea rcx, [rcx + 0x10]
paddd xmm2, xmm5
add r8d, 8
movdqa xmm1, xmm2
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
punpckldq xmm1, xmm2
pmuldq xmm0, xmm4
pmuldq xmm1, xmm4
shufps xmm1, xmm0, 0xdd
psrad xmm1, xmm6
movdqa xmm0, xmm1
psrld xmm0, xmm8
paddd xmm0, xmm1
pmulld xmm0, xmm7
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
movq xmm2, xmm9
pshufhw xmm1, xmm0, 0xd8
movq xmm0, qword [rcx - 0x10]
pshufd xmm3, xmm1, 0xd8
paddw xmm3, xmm2
movd xmm2, eax
pshufd xmm2, xmm2, 0
pxor xmm3, xmm0
movq qword [rcx - 0x10], xmm3
paddd xmm2, xmm5
movdqa xmm1, xmm2
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
pmuldq xmm0, xmm4
punpckldq xmm1, xmm2
pmuldq xmm1, xmm4
shufps xmm1, xmm0, 0xdd
psrad xmm1, xmm6
movdqa xmm0, xmm1
psrld xmm0, xmm8
paddd xmm0, xmm1
pmulld xmm0, xmm7
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
movq xmm2, xmm9
pshufhw xmm1, xmm0, 0xd8
movq xmm0, qword [rcx - 8]
pshufd xmm3, xmm1, 0xd8
paddw xmm3, xmm2
pxor xmm3, xmm0
movq qword [rcx - 8], xmm3
cmp r8d, 0x38
jl 0x180016ed0
cmp r8d, 0x3e
jge 0x180017005
movsxd rax, r8d
lea r9, [rsp + 0x70]
lea r9, [r9 + rax*2]
nop
mov eax, 0x51eb851f
lea r9, [r9 + 2]
imul r8d
sar edx, 4
mov eax, edx
shr eax, 0x1f
add edx, eax
movzx eax, dx
imul ecx, eax, 0x32
movzx eax, r8w
inc r8d
sub ax, cx
add ax, 0x30
xor word [r9 - 2], ax
cmp r8d, 0x3e
jl 0x180016fd0
xor r9d, r9d
lea r8, [rsp + 0x70]
xor edx, edx
xor ecx, ecx
call qword [0x1800a7758]
mov rdi, rax
mov qword [0x1800a77e0], rax
cmp qword [0x1800a77d8], r13
jne 0x1800171f5
movzx eax, word [0x180093e28]
mov r8d, r13d
mov word [rsp + 0x60], ax
movups xmm0, xmmword [0x180093e00]
movups xmm1, xmmword [0x180093e10]
movups xmmword [rsp + 0x38], xmm0
movsd xmm0, qword [0x180093e20]
movsd qword [rsp + 0x58], xmm0
movups xmmword [rsp + 0x48], xmm1
cmp ebx, 2
jl 0x180017193
movdqa xmm5, xmmword [0x18009d8f0]
lea rcx, [rsp + 0x38]
movdqa xmm4, xmmword [0x18009dd00]
movdqa xmm7, xmmword [0x18009d930]
movdqa xmm9, xmmword [0x18009d9d0]
movd xmm6, r14d
movd xmm8, r12d
nop dword [rax]
movd xmm2, r8d
lea eax, [r8 + 4]
pshufd xmm2, xmm2, 0
lea rcx, [rcx + 0x10]
paddd xmm2, xmm5
add r8d, 8
movdqa xmm1, xmm2
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
punpckldq xmm1, xmm2
pmuldq xmm0, xmm4
pmuldq xmm1, xmm4
shufps xmm1, xmm0, 0xdd
psrad xmm1, xmm6
movdqa xmm0, xmm1
psrld xmm0, xmm8
paddd xmm0, xmm1
pmulld xmm0, xmm7
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
movq xmm2, xmm9
pshufhw xmm1, xmm0, 0xd8
movq xmm0, qword [rcx - 0x10]
pshufd xmm3, xmm1, 0xd8
paddw xmm3, xmm2
movd xmm2, eax
pshufd xmm2, xmm2, 0
pxor xmm3, xmm0
movq qword [rcx - 0x10], xmm3
paddd xmm2, xmm5
movdqa xmm1, xmm2
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
pmuldq xmm0, xmm4
punpckldq xmm1, xmm2
pmuldq xmm1, xmm4
shufps xmm1, xmm0, 0xdd
psrad xmm1, xmm6
movdqa xmm0, xmm1
psrld xmm0, xmm8
paddd xmm0, xmm1
pmulld xmm0, xmm7
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
movq xmm2, xmm9
pshufhw xmm1, xmm0, 0xd8
movq xmm0, qword [rcx - 8]
pshufd xmm3, xmm1, 0xd8
paddw xmm3, xmm2
pxor xmm3, xmm0
movq qword [rcx - 8], xmm3
cmp r8d, 0x10
jl 0x1800170a0
cmp r8d, 0x15
jge 0x1800171d5
movsxd rax, r8d
lea r9, [rsp + 0x38]
lea r9, [r9 + rax*2]
nop
mov eax, 0x51eb851f
lea r9, [r9 + 2]
imul r8d
sar edx, 4
mov eax, edx
shr eax, 0x1f
add edx, eax
movzx eax, dx
imul ecx, eax, 0x32
movzx eax, r8w
inc r8d
sub ax, cx
add ax, 0x30
xor word [r9 - 2], ax
cmp r8d, 0x15
jl 0x1800171a0
xor r9d, r9d
lea r8, [rsp + 0x38]
xor edx, edx
xor ecx, ecx
call qword [0x1800a7758]
mov rdi, qword [0x1800a77e0]
mov qword [0x1800a77d8], rax
movaps xmm9, xmmword [rsp + 0x110]
movaps xmm8, xmmword [rsp + 0x120]
movaps xmm7, xmmword [rsp + 0x130]
movaps xmm6, xmmword [rsp + 0x140]
test rdi, rdi
je 0x1800173cc
mov rcx, qword [0x1800a7670]
lea r8, [rsp + 0x30]
mov rdx, rdi
mov qword [rsp + 0x30], r13
call fcn.180061b80
mov r14, rax
test rax, rax
je 0x1800173cc
mov rcx, rax
call fcn.18006ce30
mov rcx, r14
or byte [rax + 0x188], 1
call fcn.18006ce30
mov rcx, r14
mov byte [rax + 0xf9], 0xa
call fcn.18006ce30
mov rcx, r14
mov byte [rax + 0x144], r13b
call fcn.18006ce30
movzx ebx, byte [0x1800a5a85]
shl bl, 6
movzx ecx, byte [rax + 0x198]
and cl, 0xbf
or bl, cl
mov rcx, r14
call fcn.18006ce30
mov rdx, rdi
mov rcx, r14
mov byte [rax + 0x198], bl
call fcn.18006d390
cmp word [0x180093e3a], r13w
movsd xmm0, qword [str.sF5]
mov eax, dword [0x180093e38]
movsd qword [rsp + 0x20], xmm0
mov dword [rsp + 0x28], eax
je 0x1800172f5
xor word [rsp + 0x22], 0x31
mov eax, 0x43
xor word [rsp + 0x24], 0x32
xor word [rsp + 0x26], 0x33
xor word [rsp + 0x28], 0x34
xor word [rsp + 0x2a], 0x35
mov word [rsp + 0x20], ax
jmp 0x1800172fa
movzx eax, word [rsp + 0x20]
mov qword [rbp - 0x10], r13
test ax, ax
je 0x180017335
lea rax, [rsp + 0x20]
mov ecx, r13d
nop dword [rax + rax]
lea rax, [rax + 2]
lea ecx, [rcx + 1]
cmp word [rax], r13w
jne 0x180017310
lea eax, [rcx + 1]
mov dword [rbp - 8], eax
mov dword [rbp - 4], eax
test eax, eax
je 0x180017339
lea rax, [rsp + 0x20]
mov qword [rbp - 0x10], rax
jmp 0x180017339
mov qword [rbp - 8], r13
lea rdx, [rbp - 0x10]
lea rcx, [rsp + 0x30]
call fcn.18005df10
mov r8, r15
mov rcx, r14
mov rdx, qword [rax]
call fcn.18006d0c0
mov r8, qword [0x1800a77d8]
lea rdx, [rbp - 0x10]
xorps xmm0, xmm0
mov rcx, rsi
movups xmmword [rbp - 0x10], xmm0
call fcn.18006b430
mov eax, dword [rbp - 8]
test eax, eax
jle 0x1800173cc
mov r15, qword [rbp - 0x10]
mov r12d, eax
nop dword [rax]
mov rdi, qword [r15]
test rdi, rdi
je 0x1800173c2
mov rcx, rdi
call fcn.18006db60
mov esi, eax
mov ebx, r13d
test eax, eax
jle 0x1800173c2
nop dword [rax]
mov edx, ebx
mov rcx, rdi
call fcn.18006d8d0
test rax, rax
je 0x1800173bc
mov r8, r14
mov edx, ebx
mov rcx, rdi
call fcn.18006d650
inc ebx
cmp ebx, esi
jl 0x1800173a0
add r15, 8
sub r12, 1
jne 0x180017380
mov r13, qword [rsp + 0x158]
mov r12, qword [rsp + 0x160]
mov rdi, qword [rsp + 0x168]
mov rbx, qword [rsp + 0x1a0]
mov r14, qword [rsp + 0x150]
mov rcx, qword [rbp]
xor rcx, rsp
call fcn.180079a30
add rsp, 0x170
pop r15
pop rsi
pop rbp
ret