Function at 0x140002660
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x3f0]
sub rsp, 0x4f0
mov rax, qword [0x14000b010]
xor rax, rsp
mov qword [rbp + 0x3e0], rax
mov r12, rcx
mov qword [rsp + 0x30], rcx
lea rcx, [rsp + 0x38]
call fcn.140001e10
nop
mov r14, qword [rsp + 0x48]
lea rcx, [r14 + 1]
call fcn.1400039fc
mov r13, rax
lea rdx, [rsp + 0x38]
cmp qword [rsp + 0x50], 0x10
cmovae rdx, qword [rsp + 0x38]
lea r8, [r14 + 1]
mov rcx, rax
call sub.VCRUNTIME140.dll_memcpy
lea rcx, [r14 + 1]
call fcn.1400039fc
mov rsi, rax
lea rdx, [rsp + 0x38]
cmp qword [rsp + 0x50], 0x10
cmovae rdx, qword [rsp + 0x38]
lea r8, [r14 + 1]
mov rcx, rax
call sub.VCRUNTIME140.dll_memcpy
lea rax, vtable.AES.0
mov qword [rsp + 0x60], rax
mov byte [rsp + 0x68], 0
xor ebx, ebx
mov qword [rbp + 0x32c], rbx
mov dword [rbp + 0x334], ebx
lea rcx, [rsp + 0x60]
call fcn.1400017e0
cmp byte [rsp + 0x68], bl
je 0x1400028b2
test r14, r14
je 0x1400028b2
movsxd rcx, dword [rbp + 0x330]
xor edx, edx
mov rax, r14
div rcx
test rdx, rdx
jne 0x1400028b2
mov r15d, ebx
mov rdi, r13
mov rbx, rsi
test rax, rax
je 0x1400028b2
nop dword [rax]
nop word [rax + rax]
mov r8, rbx
mov rdx, rdi
lea rcx, [rsp + 0x60]
call fcn.140001480
lea r8, [rbp + 0x358]
mov rax, rbx
movsxd r9, dword [rbp + 0x330]
cmp byte [rsp + 0x68], 0
je 0x140002871
xor r10d, r10d
test r9d, r9d
jle 0x140002871
cmp r9d, 0x40
jb 0x14000284e
lea ecx, [r9 - 1]
movsxd rdx, ecx
lea r11, [rdx + rbx]
lea rcx, [rbp + 0x358]
add rcx, rdx
cmp rbx, rcx
ja 0x1400027d8
lea rcx, [rbp + 0x358]
cmp r11, rcx
jae 0x14000284e
mov ecx, r9d
and ecx, 0x8000003f
jge 0x1400027ea
dec ecx
or ecx, 0xffffffc0
inc ecx
mov edx, r9d
sub edx, ecx
nop
movdqu xmm1, xmmword [rax]
movdqu xmm0, xmmword [r8]
pxor xmm1, xmm0
movdqu xmmword [rax], xmm1
movdqu xmm1, xmmword [rax + 0x10]
movdqu xmm0, xmmword [r8 + 0x10]
pxor xmm1, xmm0
movdqu xmmword [rax + 0x10], xmm1
movdqu xmm1, xmmword [rax + 0x20]
movdqu xmm0, xmmword [r8 + 0x20]
pxor xmm1, xmm0
movdqu xmmword [rax + 0x20], xmm1
movdqu xmm1, xmmword [rax + 0x30]
movdqu xmm0, xmmword [r8 + 0x30]
pxor xmm1, xmm0
movdqu xmmword [rax + 0x30], xmm1
add r8, 0x40
add rax, 0x40
add r10d, 0x40
cmp r10d, edx
jl 0x1400027f0
cmp r10d, r9d
jge 0x140002871
sub r8, rax
mov edx, r9d
sub edx, r10d
nop dword [rax]
movzx ecx, byte [r8 + rax]
xor byte [rax], cl
lea rax, [rax + 1]
sub rdx, 1
jne 0x140002860
mov r8, r9
mov rdx, rdi
lea rcx, [rbp + 0x358]
call sub.VCRUNTIME140.dll_memcpy
movsxd rcx, dword [rbp + 0x330]
add rdi, rcx
add rbx, rcx
inc r15d
xor edx, edx
mov rax, r14
div rcx
mov rcx, rax
movsxd rax, r15d
cmp rax, rcx
jb 0x140002770
movzx r9d, byte [r14 + rsi - 1]
jmp 0x1400028b8
movzx r9d, byte [rsi + r14 - 1]
lea edx, [r14 - 1]
movsx rax, r9b
mov r8, r14
sub r8, rax
movsxd rax, edx
cmp rax, r8
jb 0x140002912
lea rcx, [rax + rsi]
cmp byte [rcx], r9b
jne 0x1400028e9
mov byte [rcx], 0
dec edx
dec rcx
movsxd rax, edx
cmp rax, r8
jae 0x1400028d2
jmp 0x140002912
mov r8, r14
xor edx, edx
mov rcx, rsi
call sub.VCRUNTIME140.dll_memset
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.140003200
mov rcx, rax
lea rdx, [0x1400033c0]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
xor eax, eax
mov qword [r12], rax
mov qword [r12 + 0x10], rax
mov qword [r12 + 0x18], 0xf
mov byte [r12], al
mov r8, 0xffffffffffffffff
inc r8
cmp byte [rsi + r8], al
jne 0x140002931
mov rdx, rsi
mov rcx, r12
call fcn.1400022c0
mov rcx, r13
call fcn.1400034a0
mov rcx, rsi
call fcn.1400034a0
nop
mov rdx, qword [rsp + 0x50]
cmp rdx, 0x10
jb 0x140002996
inc rdx
mov rcx, qword [rsp + 0x38]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140002991
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140002991
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400034a0
mov rax, r12
mov rcx, qword [rbp + 0x3e0]
xor rcx, rsp
call fcn.140003480
mov rbx, qword [rsp + 0x540]
add rsp, 0x4f0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret