Function at 0x7ff65a70e7c0
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rbx
push rsi
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0xf0]
sub rsp, 0x1f0
mov r14, r8
mov rdi, rdx
mov rbx, rcx
xor r15d, r15d
mov dword [rsp + 0x40], r15d
mov rcx, qword [rdx + 0x10]
mov rax, rdx
cmp qword [rdx + 0x18], 0xf
jbe 0x7ff65a70e80a
mov rax, qword [rdx]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x38], rcx
xor r8d, r8d
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x58]
call fcn.7ff65a6febb0
nop
lea rcx, [rsp + 0x58]
cmp qword [rsp + 0x70], 7
cmova rcx, qword [rsp + 0x58]
mov r9d, 0xffffffff
mov r8d, 3
lea rdx, [rsp + 0x78]
call fcn.7ff65a77f028
mov edx, eax
test eax, eax
jne 0x7ff65a70e89f
mov eax, dword [rbp - 0x78]
test al, 1
mov ecx, 0x1ff
mov r8d, 0x16d
cmovne ecx, r8d
mov dword [rsp + 0x34], ecx
bt eax, 0xa
jae 0x7ff65a70e891
mov ecx, dword [rbp - 0x74]
cmp ecx, 0xa000000c
jne 0x7ff65a70e882
lea eax, [rdx + 4]
jmp 0x7ff65a70e8c3
cmp ecx, 0xa0000003
jne 0x7ff65a70e891
mov eax, 0xa
jmp 0x7ff65a70e8c3
movzx eax, al
and eax, 0x10
or eax, 0x20
shr eax, 4
jmp 0x7ff65a70e8c3
mov dword [rsp + 0x34], 0xffff
sub eax, 2
je 0x7ff65a70e8be
sub eax, 1
je 0x7ff65a70e8be
sub eax, 0x32
je 0x7ff65a70e8be
cmp eax, 0x46
mov eax, r15d
jne 0x7ff65a70e8c3
mov eax, 1
mov dword [rsp + 0x30], edx
lea rcx, [0x7ff65a7b0120]
mov qword [rsp + 0x38], rcx
movaps xmm0, xmmword [rsp + 0x30]
movdqa xmmword [rsp + 0x30], xmm0
test eax, eax
je 0x7ff65a70eabc
cmp eax, 1
sete sil
lea rcx, [rsp + 0x58]
call fcn.7ff65a6f8010
test sil, sil
je 0x7ff65a70eacc
movsd xmm0, qword [0x7ff65a7859d0]
movsd qword [rsp + 0x30], xmm0
mov eax, dword [0x7ff65a7859d8]
mov dword [rsp + 0x38], eax
movzx eax, word [0x7ff65a7859dc]
mov word [rsp + 0x3c], ax
movzx eax, byte [0x7ff65a7859de]
mov byte [rsp + 0x3e], al
mov ecx, r15d
cmp dword [0x7ff65a7b01b0], 2
jl 0x7ff65a70ea3a
movdqa xmm4, xmmword [0x7ff65a787430]
movdqa xmm2, xmmword [0x7ff65a787350]
movdqa xmm1, xmm2
punpckldq xmm1, xmm2
pmuldq xmm1, xmm4
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
pmuldq xmm0, xmm4
shufps xmm1, xmm0, 0xdd
psrad xmm1, 4
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmmword [0x7ff65a787370]
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
andps xmm2, xmmword [0x7ff65a7873f0]
packuswb xmm2, xmm2
paddb xmm2, xmmword [0x7ff65a787410]
movd xmm0, dword [0x7ff65a7859d0]
xorps xmm2, xmm0
movd dword [rsp + 0x30], xmm2
movdqa xmm3, xmmword [0x7ff65a787360]
movdqa xmm1, xmm3
punpckldq xmm1, xmm3
pmuldq xmm1, xmm4
movdqa xmm0, xmm3
punpckhdq xmm0, xmm3
pmuldq xmm0, xmm4
shufps xmm1, xmm0, 0xdd
psrad xmm1, 4
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmmword [0x7ff65a787370]
psubd xmm3, xmm0
pshuflw xmm0, xmm3, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
andps xmm2, xmmword [0x7ff65a7873f0]
packuswb xmm2, xmm2
paddb xmm2, xmmword [0x7ff65a787410]
movd xmm0, dword [rsp + 0x34]
xorps xmm2, xmm0
movd dword [rsp + 0x34], xmm2
mov ecx, 8
movsxd rax, ecx
lea r8, [rsp + 0x30]
add r8, rax
nop word [rax + rax]
mov eax, 0x51eb851f
imul ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add edx, eax
mov eax, 1
sub al, dl
movsx eax, al
imul edx, eax, 0x32
add dl, cl
xor byte [r8], dl
inc ecx
lea r8, [r8 + 1]
cmp ecx, 0xf
jl 0x7ff65a70ea50
xorps xmm0, xmm0
movups xmmword [rbx], xmm0
mov qword [rbx + 0x10], r15
mov qword [rbx + 0x18], r15
lea rax, [rsp + 0x30]
mov r8, 0xffffffffffffffff
nop dword [rax + rax]
inc r8
cmp byte [rax + r8], 0
jne 0x7ff65a70eaa0
lea rdx, [rsp + 0x30]
mov rcx, rbx
call fcn.7ff65a6f3710
jmp 0x7ff65a70ebec
mov sil, 1
test edx, edx
jne 0x7ff65a70ec5f
jmp 0x7ff65a70e8ed
mov rdx, rdi
cmp qword [rdi + 0x18], 0xf
jbe 0x7ff65a70ead9
mov rdx, qword [rdi]
mov dword [rsp + 0x20], 1
mov r9d, 0x40
lea r8d, [r9 - 0x3f]
lea rcx, [rbp - 0x20]
call fcn.7ff65a7065b0
mov rax, qword [rbp - 0x20]
movsxd rcx, dword [rax + 4]
lea r12, [0x7ff65a785330]
mov qword [rbp + rcx - 0x20], r12
mov rax, qword [rbp - 0x20]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xb0]
mov dword [rbp + rcx - 0x24], edx
mov qword [rbp - 0x30], r15
mov byte [rsp + 0x20], 0
mov r9b, 1
lea r8, [rbp - 0x68]
lea rdx, [rbp - 0x20]
lea rcx, [rsp + 0x48]
call fcn.7ff65a704390
nop
mov rdx, r14
lea rcx, [rsp + 0x78]
call fcn.7ff65a6fc0a0
mov rdx, rax
lea rcx, [rsp + 0x48]
call fcn.7ff65a709180
mov rsi, rax
xorps xmm0, xmm0
movups xmmword [rbx], xmm0
mov qword [rbx + 0x10], r15
mov qword [rbx + 0x18], 0xf
mov byte [rbx], 0
mov dword [rsp + 0x40], 0x12
cmp byte [rax], 3
jne 0x7ff65a70ec12
mov rdx, qword [rax + 8]
cmp rbx, rdx
je 0x7ff65a70eb9c
mov r8, qword [rdx + 0x10]
cmp qword [rdx + 0x18], 0xf
jbe 0x7ff65a70eb93
mov rdx, qword [rdx]
mov rcx, rbx
call fcn.7ff65a6fb360
nop
movzx edx, byte [rsp + 0x48]
lea rcx, [rsp + 0x50]
call fcn.7ff65a710c20
nop
mov rax, qword [rbp - 0x20]
movsxd rcx, dword [rax + 4]
mov qword [rbp + rcx - 0x20], r12
mov rax, qword [rbp - 0x20]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xb0]
mov dword [rbp + rcx - 0x24], edx
lea rcx, [rbp - 0x10]
call fcn.7ff65a6f7e60
lea rcx, [rbp - 8]
call qword [sym.imp.msvcp140.dll_public_virtual:_void___cdecl_std::basic_istream_char__struct_std::char_traits_char__::destructor_void____ptr64]
lea rcx, [rbp + 0x90]
call qword [sym.imp.msvcp140.dll_public_virtual:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::destructor_void____ptr64]
nop
mov rcx, rdi
call fcn.7ff65a6f2e10
nop
mov rcx, r14
call fcn.7ff65a6f2e10
mov rax, rbx
add rsp, 0x1f0
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
mov rcx, rsi
call fcn.7ff65a717930
mov qword [rbp + 0x148], rax
lea r8, [rbp + 0x148]
lea rdx, [0x7ff65a787310]
lea rcx, [rsp + 0x58]
call fcn.7ff65a701140
nop
mov r9, rsi
mov r8, rax
mov edx, 0x12e
lea rcx, [rbp - 0x68]
call fcn.7ff65a701d50
lea rdx, [0x7ff65a7ab3a8]
lea rcx, [rbp - 0x68]
call sub.VCRUNTIME140.dll__CxxThrowException
nop
lea r8, [rsp + 0x58]
lea rdx, [rsp + 0x30]
lea rcx, [0x7ff65a7853dc]
call fcn.7ff65a710280
int3