Function at 0x7ff7980cad50
Capabilities:
Encode data using xor

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x18], rbp
mov qword [r11 + 0x20], rsi
push rdi
sub rsp, 0x90
mov esi, r9d
mov ebp, r8d
mov rdi, rdx
mov rbx, rcx
test rdx, rdx
je 0x7ff7980cb1c5
mov rax, qword [0x7ff7981d4db0]
test rax, rax
jne 0x7ff7980cb191
movups xmm0, xmmword [0x7ff798187a48]
mov eax, dword [0x7ff798187a60]
xor ecx, ecx
cmp byte [0x7ff798187a65], cl
mov r10d, dword [0x7ff7981d4360]
movups xmmword [rsp + 0x40], xmm0
mov dword [rsp + 0x58], eax
movsd xmm0, qword [0x7ff798187a58]
movzx eax, word [0x7ff798187a64]
movsd qword [rsp + 0x50], xmm0
movaps xmmword [r11 - 0x18], xmm6
mov word [rsp + 0x5c], ax
je 0x7ff7980caf64
mov r8d, ecx
cmp r10d, 2
jl 0x7ff7980caf23
movdqa xmm0, xmmword [0x7ff798187d20]
lea rdx, [r11 - 0x54]
movdqa xmm5, xmmword [0x7ff798187ce0]
movdqa xmm4, xmmword [0x7ff798187d30]
movdqa xmm6, xmmword [0x7ff798187d00]
movdqa xmmword [rsp + 0x30], xmm0
mov r9d, dword [rsp + 0x30]
movd xmm2, r8d
lea eax, [r8 + 4]
pshufd xmm2, xmm2, 0
lea rdx, [rdx + 8]
paddd xmm2, xmm5
movd xmm3, eax
movdqa xmm1, xmm2
pshufd xmm3, xmm3, 0
punpckldq xmm1, xmm2
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
paddd xmm3, xmm5
pmuldq xmm0, xmm4
add r8d, 8
pmuldq xmm1, xmm4
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm2
psrad xmm1, 5
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm6
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
movdqa xmm1, xmm3
andps xmm2, xmmword [0x7ff798187d10]
packuswb xmm2, xmm2
punpckldq xmm1, xmm3
pmuldq xmm1, xmm4
movd xmm0, r9d
paddb xmm2, xmm0
movd xmm0, dword [rdx - 0xc]
xorps xmm2, xmm0
movdqa xmm0, xmm3
punpckhdq xmm0, xmm3
pmuldq xmm0, xmm4
movd dword [rdx - 0xc], xmm2
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm3
psrad xmm1, 5
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm6
psubd xmm3, xmm0
pshuflw xmm0, xmm3, 0xd8
pshufhw xmm1, xmm0, 0xd8
movd xmm0, r9d
pshufd xmm2, xmm1, 0xd8
andps xmm2, xmmword [0x7ff798187d10]
packuswb xmm2, xmm2
paddb xmm2, xmm0
movd xmm0, dword [rdx - 8]
xorps xmm2, xmm0
movd dword [rdx - 8], xmm2
cmp r8d, 0x18
jl 0x7ff7980cae12
cmp r8d, 0x1e
jge 0x7ff7980caf64
movsxd rax, r8d
lea r9, [rsp + 0x40]
add r9, rax
nop
mov eax, 0x8d3dcb09
lea r9, [r9 + 1]
imul r8d
add edx, r8d
sar edx, 5
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul edx, eax, 0x3a
movzx eax, r8b
inc r8d
sub al, dl
add al, 0x31
xor byte [r9 - 1], al
cmp r8d, 0x1e
jl 0x7ff7980caf30
cmp byte [0x7ff798187a45], cl
movups xmm0, xmmword [0x7ff798187a28]
mov eax, dword [0x7ff798187a40]
mov dword [rsp + 0x78], eax
movzx eax, word [0x7ff798187a44]
movups xmmword [rsp + 0x60], xmm0
mov word [rsp + 0x7c], ax
movsd xmm0, qword [0x7ff798187a38]
movsd qword [rsp + 0x70], xmm0
je 0x7ff7980cb12f
cmp r10d, 2
jl 0x7ff7980cb0ec
movdqa xmm0, xmmword [0x7ff798187d20]
lea rdx, [rsp + 0x64]
movdqa xmm5, xmmword [0x7ff798187ce0]
movdqa xmm4, xmmword [0x7ff798187d30]
movdqa xmm6, xmmword [0x7ff798187d00]
movdqa xmmword [rsp + 0x30], xmm0
mov r8d, dword [rsp + 0x30]
nop word [rax + rax]
movd xmm2, ecx
lea eax, [rcx + 4]
pshufd xmm2, xmm2, 0
lea rdx, [rdx + 8]
paddd xmm2, xmm5
movd xmm3, eax
movdqa xmm1, xmm2
pshufd xmm3, xmm3, 0
punpckldq xmm1, xmm2
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
paddd xmm3, xmm5
pmuldq xmm0, xmm4
add ecx, 8
pmuldq xmm1, xmm4
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm2
psrad xmm1, 5
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm6
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
movdqa xmm1, xmm3
andps xmm2, xmmword [0x7ff798187d10]
packuswb xmm2, xmm2
punpckldq xmm1, xmm3
pmuldq xmm1, xmm4
movd xmm0, r8d
paddb xmm2, xmm0
movd xmm0, dword [rdx - 0xc]
xorps xmm2, xmm0
movdqa xmm0, xmm3
punpckhdq xmm0, xmm3
pmuldq xmm0, xmm4
movd dword [rdx - 0xc], xmm2
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm3
psrad xmm1, 5
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm6
psubd xmm3, xmm0
pshuflw xmm0, xmm3, 0xd8
pshufhw xmm1, xmm0, 0xd8
movd xmm0, r8d
pshufd xmm2, xmm1, 0xd8
andps xmm2, xmmword [0x7ff798187d10]
packuswb xmm2, xmm2
paddb xmm2, xmm0
movd xmm0, dword [rdx - 8]
xorps xmm2, xmm0
movd dword [rdx - 8], xmm2
cmp ecx, 0x18
jl 0x7ff7980cafe0
cmp ecx, 0x1e
jge 0x7ff7980cb12f
movsxd rax, ecx
lea r8, [rsp + 0x60]
add r8, rax
nop word [rax + rax]
mov eax, 0x8d3dcb09
lea r8, [r8 + 1]
imul ecx
add edx, ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul edx, eax, 0x3a
movzx eax, cl
inc ecx
sub al, dl
add al, 0x31
xor byte [r8 - 1], al
cmp ecx, 0x1e
jl 0x7ff7980cb100
mov r8, qword [0x7ff7981d4d88]
lea rax, [rsp + 0x40]
lea r9, [rsp + 0x60]
mov qword [rsp + 0x20], rax
lea rdx, [0x7ff798187900]
mov rcx, rbx
call fcn.7ff7980c8360
movaps xmm6, xmmword [rsp + 0x80]
mov qword [0x7ff7981d4db0], rax
test rax, rax
je 0x7ff7980cb1c5
mov r9d, 5
lea rdx, [rax + 0xc]
mov rcx, rbx
mov qword [0x7ff7981d4db0], rdx
lea r8d, [r9 - 4]
call fcn.7ff7980cb4f0
mov qword [0x7ff7981d4db0], rax
test rax, rax
je 0x7ff7980cb1c5
mov dword [rsp + 0x28], esi
lea rdx, [rsp + 0xa8]
mov r9, rdi
mov dword [rsp + 0x20], ebp
mov r8, rax
mov byte [rsp + 0xa8], 0
mov rcx, rbx
call fcn.7ff7980c28d0
test al, al
je 0x7ff7980cb1c5
movzx eax, byte [rsp + 0xa8]
jmp 0x7ff7980cb1c7
xor al, al
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret