Function at 0x180003730
Capabilities:
Encode data using xor

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r14
lea rbp, [rsp - 0x37]
sub rsp, 0x100
mov rax, qword [0x180026008]
xor rax, rsp
mov qword [rbp - 0x19], rax
xor ebx, ebx
mov r10, rcx
mov qword [rsp + 0x30], rbx
lea r9, [rbx - 1]
cmp word [rcx], bx
je 0x180003793
mov rcx, r9
nop word [rax + rax]
inc rcx
cmp word [r10 + rcx*2], bx
jne 0x180003770
add ecx, 1
mov rax, rbx
mov dword [rsp + 0x38], ecx
cmovne rax, r10
mov dword [rsp + 0x3c], ecx
mov qword [rsp + 0x30], rax
jmp 0x180003798
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x40], rbx
cmp word [rdx], bx
je 0x1800037c7
inc r9
cmp word [rdx + r9*2], bx
jne 0x1800037a2
add r9d, 1
mov rax, rbx
mov dword [rsp + 0x48], r9d
cmovne rax, rdx
mov dword [rbp - 0x7d], r9d
mov qword [rsp + 0x40], rax
jmp 0x1800037cc
mov qword [rsp + 0x48], rbx
movzx eax, byte [r8]
mov esi, 4
movups xmm0, xmmword [0x180022e60]
movups xmm1, xmmword [0x180022e70]
mov edi, dword [0x180026018]
movaps xmmword [rsp + 0xf0], xmm6
lea r14d, [rsi + 0x1b]
mov byte [rbp - 0x79], al
xor eax, eax
movups xmmword [rbp - 0x69], xmm0
movups xmm0, xmmword [0x180022e80]
movaps xmmword [rsp + 0xe0], xmm7
mov dword [rbp - 0x78], eax
mov word [rbp - 0x74], ax
mov byte [rbp - 0x72], al
mov eax, dword [0x180022ea8]
movups xmmword [rbp - 0x59], xmm1
movups xmm1, xmmword [0x180022e90]
movups xmmword [rbp - 0x49], xmm0
movsd xmm0, qword [0x180022ea0]
mov dword [rbp - 0x21], eax
movaps xmmword [rsp + 0xd0], xmm8
movaps xmmword [rsp + 0xc0], xmm9
movups xmmword [rbp - 0x39], xmm1
movsd qword [rbp - 0x29], xmm0
cmp word [rbp - 0x1f], bx
je 0x1800039d1
mov ecx, ebx
cmp edi, 2
jl 0x18000398e
movdqa xmm5, xmmword [0x180023100]
lea rdx, [rbp - 0x69]
movdqa xmm4, xmmword [0x180023130]
movdqa xmm7, xmmword [0x180023110]
movdqa xmm9, xmmword [0x180023120]
movd xmm6, esi
movd xmm8, r14d
nop word [rax + rax]
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
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
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 [rdx - 8]
pshufd xmm3, xmm1, 0xd8
paddw xmm3, xmm2
pxor xmm3, xmm0
movq qword [rdx - 8], xmm3
cmp ecx, 0x20
jl 0x1800038a0
cmp ecx, 0x26
jge 0x1800039d1
movsxd rax, ecx
lea r8, [rbp - 0x69]
lea r8, [r8 + rax*2]
nop dword [rax]
mov eax, 0x4325c53f
lea r8, [r8 + 2]
imul ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add edx, eax
movzx eax, dx
imul edx, eax, 0x3d
movzx eax, cx
inc ecx
sub ax, dx
add ax, 0x3a
xor word [r8 - 2], ax
cmp ecx, 0x26
jl 0x1800039a0
xor edx, edx
lea rcx, [rbp - 0x69]
call fcn.180009470
mov rcx, qword [0x180028998]
lea r8, [rsp + 0x30]
mov rdx, rax
call fcn.180001200
cmp word [rbp - 0x1f], bx
jne 0x180003b71
cmp edi, 2
jl 0x180003b30
movdqa xmm5, xmmword [0x180023100]
lea rcx, [rbp - 0x69]
movdqa xmm4, xmmword [0x180023130]
movdqa xmm7, xmmword [0x180023110]
movdqa xmm9, xmmword [0x180023120]
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
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
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 ebx, 0x20
jl 0x180003a40
cmp eax, 0x26
jge 0x180003b71
movsxd rax, ebx
lea r8, [rbp - 0x69]
lea r8, [r8 + rax*2]
nop dword [rax + rax]
mov eax, 0x4325c53f
lea r8, [r8 + 2]
imul ebx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add edx, eax
movzx eax, dx
imul ecx, eax, 0x3d
movzx eax, bx
inc ebx
sub ax, cx
add ax, 0x3a
xor word [r8 - 2], ax
cmp ebx, 0x26
jl 0x180003b40
movzx eax, byte [rbp - 0x78]
movaps xmm9, xmmword [rsp + 0xc0]
movaps xmm8, xmmword [rsp + 0xd0]
movaps xmm7, xmmword [rsp + 0xe0]
movaps xmm6, xmmword [rsp + 0xf0]
mov rcx, qword [rbp - 0x19]
xor rcx, rsp
call fcn.180009d60
add rsp, 0x100
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret