Function at 0x1800029a0
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r14
lea rbp, [rsp - 0x47]
sub rsp, 0x100
mov rax, qword [0x180030030]
xor rax, rsp
mov qword [rbp - 9], rax
xor ebx, ebx
mov r9, rcx
mov qword [rsp + 0x30], rbx
lea r8, [rbx - 1]
cmp word [rcx], bx
je 0x180002a02
mov rcx, r8
nop
inc rcx
cmp word [r9 + rcx*2], bx
jne 0x1800029e0
add ecx, 1
mov rax, rbx
mov dword [rsp + 0x38], ecx
cmovne rax, r9
mov dword [rbp - 0x7d], ecx
mov qword [rsp + 0x30], rax
jmp 0x180002a07
mov qword [rsp + 0x38], rbx
mov qword [rbp - 0x79], rbx
cmp word [rdx], bx
je 0x180002a33
inc r8
cmp word [rdx + r8*2], bx
jne 0x180002a10
add r8d, 1
mov rax, rbx
mov dword [rbp - 0x71], r8d
cmovne rax, rdx
mov dword [rbp - 0x6d], r8d
mov qword [rbp - 0x79], rax
jmp 0x180002a37
mov qword [rbp - 0x71], rbx
movups xmm0, xmmword [0x18002ba60]
xor eax, eax
movups xmm1, xmmword [0x18002ba70]
mov edi, dword [0x180030010]
movaps xmmword [rsp + 0xf0], xmm6
movups xmmword [rbp - 0x59], xmm0
lea esi, [rax + 5]
movups xmm0, xmmword [0x18002ba80]
lea r14d, [rax + 0x1f]
movaps xmmword [rsp + 0xe0], xmm7
movups xmmword [rbp - 0x39], xmm0
movsd xmm0, qword [0x18002baa0]
movups xmmword [rbp - 0x49], xmm1
movups xmm1, xmmword [0x18002ba90]
movsd qword [rbp - 0x19], xmm0
movaps xmmword [rsp + 0xd0], xmm8
movaps xmmword [rsp + 0xc0], xmm9
mov word [rbp - 0x69], bx
mov dword [rbp - 0x67], eax
mov word [rbp - 0x63], ax
movups xmmword [rbp - 0x29], xmm1
cmp word [rbp - 0x13], ax
je 0x180002c33
mov ecx, ebx
cmp edi, 2
jl 0x180002be6
movdqa xmm5, xmmword [0x18002c6a0]
lea rdx, [rbp - 0x59]
movdqa xmm4, xmmword [0x18002c6d0]
movdqa xmm7, xmmword [str.____]
movdqa xmm9, xmmword [0x18002c6c0]
movd xmm6, esi
movd xmm8, r14d
nop
movd xmm2, ecx
lea eax, [rcx + 4]
pshufd xmm2, xmm2, 0
lea rdx, [rdx + 0x10]
paddd xmm2, xmm5
add ecx, 8
movdqa xmm1, xmm2
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
punpckldq xmm1, xmm2
pmuldq xmm0, xmm4
pmuldq xmm1, xmm4
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm2
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 [rdx - 0x10]
pshufd xmm3, xmm1, 0xd8
paddw xmm3, xmm2
movd xmm2, eax
pshufd xmm2, xmm2, 0
pxor xmm3, xmm0
movq qword [rdx - 0x10], xmm3
paddd xmm2, xmm5
movdqa xmm1, xmm2
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
punpckldq xmm1, xmm2
pmuldq xmm0, xmm4
pmuldq xmm1, xmm4
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm2
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 [rdx - 8]
pshufd xmm3, xmm1, 0xd8
paddw xmm3, xmm2
pxor xmm3, xmm0
movq qword [rdx - 8], xmm3
cmp ecx, 0x20
jl 0x180002af0
cmp ecx, 0x24
jge 0x180002c33
movsxd rax, ecx
lea r8, [rbp - 0x59]
lea r8, [r8 + rax*2]
nop dword [rax]
nop word [rax + rax]
mov eax, 0x82082083
lea r8, [r8 + 2]
imul ecx
add edx, ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add edx, eax
movzx eax, dx
imul edx, eax, 0x3f
movzx eax, cx
inc ecx
sub ax, dx
add ax, 0x38
xor word [r8 - 2], ax
cmp ecx, 0x24
jl 0x180002c00
xor edx, edx
lea rcx, [rbp - 0x59]
call fcn.180008940
mov rcx, qword [0x180032d20]
lea r8, [rsp + 0x30]
mov rdx, rax
call fcn.180001280
cmp word [rbp - 0x13], bx
jne 0x180002de3
cmp edi, 2
jl 0x180002d98
movdqa xmm5, xmmword [0x18002c6a0]
lea rcx, [rbp - 0x59]
movdqa xmm4, xmmword [0x18002c6d0]
movdqa xmm7, xmmword [str.____]
movdqa xmm9, xmmword [0x18002c6c0]
movd xmm6, esi
movd xmm8, r14d
nop dword [rax]
nop word [rax + rax]
movd xmm2, ebx
lea eax, [rbx + 4]
pshufd xmm2, xmm2, 0
lea rcx, [rcx + 0x10]
paddd xmm2, xmm5
add ebx, 8
movdqa xmm1, xmm2
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
punpckldq xmm1, xmm2
pmuldq xmm0, xmm4
pmuldq xmm1, xmm4
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm2
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
mov eax, ebx
punpckldq xmm1, xmm2
pmuldq xmm0, xmm4
pmuldq xmm1, xmm4
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm2
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 ebx, 0x20
jl 0x180002ca0
cmp eax, 0x24
jge 0x180002de3
movsxd rax, ebx
lea r8, [rbp - 0x59]
lea r8, [r8 + rax*2]
nop dword [rax]
nop word [rax + rax]
mov eax, 0x82082083
lea r8, [r8 + 2]
imul ebx
add edx, ebx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add edx, eax
movzx eax, dx
imul ecx, eax, 0x3f
movzx eax, bx
inc ebx
sub ax, cx
add ax, 0x38
xor word [r8 - 2], ax
cmp ebx, 0x24
jl 0x180002db0
movzx eax, byte [rbp - 0x67]
movaps xmm9, xmmword [rsp + 0xc0]
movaps xmm8, xmmword [rsp + 0xd0]
movaps xmm7, xmmword [rsp + 0xe0]
movaps xmm6, xmmword [rsp + 0xf0]
mov rcx, qword [rbp - 9]
xor rcx, rsp
call fcn.180009310
lea r11, [rsp + 0x100]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret