Function at 0x7ff7980ca6b0
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0xb0
movaps xmmword [rsp + 0xa0], xmm6
mov edi, r9d
movzx esi, r8b
mov rbp, rdx
mov rbx, rcx
mov ecx, dword [0x7ff7981d52dc]
mov rax, qword gs:[0x58]
mov edx, 4
mov rax, qword [rax + rcx*8]
mov eax, dword [rdx + rax]
cmp dword [0x7ff7981d4dd0], eax
jg 0x7ff7980ca834
mov r8, qword [0x7ff7981d4dc8]
test r8, r8
je 0x7ff7980ca78c
mov qword [rsp + 0x50], 0
mov eax, dword [rsp + 0x100]
mov dword [rsp + 0x40], eax
mov eax, dword [rsp + 0xf8]
mov dword [rsp + 0x38], eax
mov rax, qword [rsp + 0xf0]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], edi
mov byte [rsp + 0x20], sil
mov r9, rbp
lea rdx, [rsp + 0x50]
mov rcx, rbx
call fcn.7ff7980c3dd0
test al, al
je 0x7ff7980ca78c
mov rax, qword [rsp + 0x50]
jmp 0x7ff7980ca78e
xorps xmm0, xmm0
movups xmmword [rsp + 0x80], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x90], xmm1
lea rax, [rsp + 0x60]
mov r8, 0xffffffffffffffff
nop
inc r8
cmp byte [rax + r8], 0
je 0x7ff7980ca7ba
jmp 0x7ff7980ca780
xor eax, eax
mov rbx, qword [rsp + 0xe0]
movaps xmm6, xmmword [rsp + 0xa0]
add rsp, 0xb0
pop rdi
pop rsi
pop rbp
ret
lea rcx, [0x7ff7981d4dd0]
call fcn.7ff798179cc0
jmp 0x7ff7980ca6fb
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x80]
call fcn.7ff7980c4480
nop
lea r8, [rsp + 0x80]
mov rdx, qword [0x7ff7981d4d88]
mov rcx, rbx
call fcn.7ff7980c8a00
mov qword [0x7ff7981d4dc8], rax
mov rdx, qword [rsp + 0x98]
cmp rdx, 0xf
jbe 0x7ff7980ca7a9
inc rdx
mov rcx, qword [rsp + 0x80]
mov rax, rcx
cmp rdx, 0x1000
jb 0x7ff7980caa13
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x7ff7980caa13
call qword [sym.imp.ucrtbase.dll__invalid_parameter_noinfo_noreturn]
nop
lea rcx, [0x7ff7981d4dd0]
call fcn.7ff798179d2c
cmp dword [0x7ff7981d4dd0], 0xffffffff
jne 0x7ff7980ca6fb
movups xmm0, xmmword [0x7ff798187a80]
movups xmmword [rsp + 0x60], xmm0
movsd xmm0, qword [0x7ff798187a90]
movsd qword [rsp + 0x70], xmm0
mov eax, dword [0x7ff798187a98]
mov dword [rsp + 0x78], eax
movzx eax, byte [0x7ff798187a9c]
mov byte [rsp + 0x7c], al
xor ecx, ecx
cmp dword [0x7ff7981d4360], 2
jl 0x7ff7980ca9ce
movdqa xmm5, xmmword [0x7ff798187ce0]
movdqa xmm4, xmmword [0x7ff798187d30]
movdqa xmm6, xmmword [0x7ff798187d00]
movdqa xmm0, xmmword [0x7ff798187d20]
movdqa xmmword [rsp + 0x50], xmm0
lea rdx, [rsp + 0x64]
mov r8d, dword [rsp + 0x50]
nop dword [rax + rax]
movd xmm2, ecx
pshufd xmm2, xmm2, 0
paddd xmm2, xmm5
movdqa xmm1, xmm2
punpckldq xmm1, xmm2
pmuldq xmm1, xmm4
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
pmuldq xmm0, 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
andps xmm2, xmmword [0x7ff798187d10]
packuswb xmm2, xmm2
movd xmm0, r8d
paddb xmm2, xmm0
movd xmm0, dword [rdx - 4]
xorps xmm2, xmm0
movd dword [rdx - 4], xmm2
lea eax, [rcx + 4]
movd xmm3, eax
pshufd xmm3, xmm3, 0
paddd xmm3, xmm5
movdqa xmm1, xmm3
punpckldq xmm1, xmm3
pmuldq xmm1, xmm4
movdqa xmm0, xmm3
punpckhdq xmm0, xmm3
pmuldq xmm0, xmm4
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
pshufd xmm2, xmm1, 0xd8
andps xmm2, xmmword [0x7ff798187d10]
packuswb xmm2, xmm2
movd xmm0, r8d
paddb xmm2, xmm0
movd xmm0, dword [rdx]
xorps xmm2, xmm0
movd dword [rdx], xmm2
add ecx, 8
lea rdx, [rdx + 8]
cmp ecx, 0x18
jl 0x7ff7980ca8c0
cmp ecx, 0x1d
jge 0x7ff7980ca75b
movsxd rax, ecx
lea r8, [rsp + 0x60]
add r8, rax
nop dword [rax]
mov eax, 0x8d3dcb09
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
sub al, dl
add al, 0x31
xor byte [r8], al
inc ecx
lea r8, [r8 + 1]
cmp ecx, 0x1d
jl 0x7ff7980ca9e0
jmp 0x7ff7980ca75b
call fcn.7ff798179c7c
jmp 0x7ff7980ca7a9