Function at 0x1800032c0
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 [0x180026008]
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 0x180003322
mov rcx, r8
nop
inc rcx
cmp word [r9 + rcx*2], bx
jne 0x180003300
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 0x180003327
mov qword [rsp + 0x38], rbx
mov qword [rbp - 0x79], rbx
cmp word [rdx], bx
je 0x180003353
inc r8
cmp word [rdx + r8*2], bx
jne 0x180003330
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 0x180003357
mov qword [rbp - 0x71], rbx
movups xmm0, xmmword [0x180022eb0]
xor eax, eax
movups xmm1, xmmword [0x180022ec0]
mov edi, dword [0x180026018]
movaps xmmword [rsp + 0xf0], xmm6
movups xmmword [rbp - 0x59], xmm0
lea esi, [rax + 4]
movups xmm0, xmmword [0x180022ed0]
lea r14d, [rax + 0x1f]
movaps xmmword [rsp + 0xe0], xmm7
movups xmmword [rbp - 0x39], xmm0
movsd xmm0, qword [0x180022ef0]
movups xmmword [rbp - 0x49], xmm1
movups xmm1, xmmword [0x180022ee0]
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 0x180003541
mov ecx, ebx
cmp edi, 2
jl 0x1800034fe
movdqa xmm5, xmmword [0x180023100]
lea rdx, [rbp - 0x59]
movdqa xmm4, xmmword [0x180023130]
movdqa xmm7, xmmword [0x180023110]
movdqa xmm9, xmmword [0x180023120]
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
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 0x180003410
cmp ecx, 0x24
jge 0x180003541
movsxd rax, ecx
lea r8, [rbp - 0x59]
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, 0x24
jl 0x180003510
xor edx, edx
lea rcx, [rbp - 0x59]
call fcn.180009470
mov rcx, qword [0x180028998]
lea r8, [rsp + 0x30]
mov rdx, rax
call fcn.180001200
cmp word [rbp - 0x13], bx
jne 0x1800036e1
cmp edi, 2
jl 0x1800036a0
movdqa xmm5, xmmword [0x180023100]
lea rcx, [rbp - 0x59]
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 0x1800035b0
cmp eax, 0x24
jge 0x1800036e1
movsxd rax, ebx
lea r8, [rbp - 0x59]
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, 0x24
jl 0x1800036b0
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.180009d60
lea r11, [rsp + 0x100]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret