Function at 0x1400017f0
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 8], rcx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x420]
sub rsp, 0x520
mov r12, rcx
xor edi, edi
lea rcx, [rsp + 0x58]
call fcn.1400021a0
nop
mov rsi, qword [rsp + 0x68]
mov qword [rsp + 0x50], rsi
lea rcx, [rsi + 1]
call fcn.14000337c
mov r13, rax
mov qword [rbp - 0x70], rax
lea rdx, [rsp + 0x58]
cmp qword [rsp + 0x70], 0xf
cmova rdx, qword [rsp + 0x58]
lea r8, [rsi + 1]
mov rcx, rax
call sub.VCRUNTIME140.dll_memcpy
lea rcx, [rsi + 1]
call fcn.14000337c
mov r15, rax
mov qword [rbp - 0x78], rax
lea rdx, [rsp + 0x58]
cmp qword [rsp + 0x70], 0xf
cmova rdx, qword [rsp + 0x58]
lea r8, [rsi + 1]
mov rcx, rax
call sub.VCRUNTIME140.dll_memcpy
lea rax, vtable.AES.0
mov qword [rbp - 0x60], rax
mov byte [rbp - 0x58], dil
mov qword [rbp + 0x36c], rdi
mov dword [rbp + 0x374], edi
lea rcx, [rbp - 0x60]
call fcn.140002c20
cmp byte [rbp - 0x58], dil
je 0x140001d57
test rsi, rsi
je 0x140001d57
movsxd r10, dword [rbp + 0x370]
xor edx, edx
mov rax, rsi
div r10
test rdx, rdx
jne 0x140001d57
xor r14d, r14d
mov dword [rbp + 0x478], r14d
mov rdi, r13
mov qword [rsp + 0x48], r13
mov rbx, r15
mov qword [rsp + 0x38], rbx
test rax, rax
je 0x140001d57
lea r15, [0x140000000]
nop dword [rax]
mov r9, rdi
cmp byte [rbp - 0x58], 0
je 0x140001c19
cmp r10d, 0x10
jne 0x14000193e
mov r8, rbx
mov rdx, rdi
lea rcx, [rbp - 0x60]
call fcn.140002810
mov r10d, dword [rbp + 0x370]
jmp 0x140001c19
mov eax, r10d
cdq
and edx, 3
add eax, edx
sar eax, 2
movsxd r13, eax
xor ecx, ecx
cmp r13d, 4
je 0x14000195f
cmp r13d, 6
setne cl
inc rcx
shl rcx, 5
mov r12d, dword [rcx + r15 + 0x6e5c]
mov dword [rsp + 0x40], r12d
mov esi, dword [rcx + r15 + 0x6e64]
mov dword [rsp + 0x30], esi
mov r14d, dword [rcx + r15 + 0x6e6c]
mov dword [rsp + 0x34], r14d
lea r11, [rbp + 0x3f8]
xor ebx, ebx
test eax, eax
jle 0x1400019f0
nop word [rax + rax]
movzx r8d, byte [r9]
movzx eax, byte [r9 + 1]
movzx ecx, byte [r9 + 2]
mov rdx, r11
shl r8d, 8
or r8d, eax
shl r8d, 8
or r8d, ecx
shl r8d, 8
movzx eax, byte [r9 + 3]
or r8d, eax
mov dword [r11], r8d
lea r9, [r9 + 4]
add r11, 4
xor r8d, dword [rbp + rbx*4 + 0x18c]
mov dword [rdx], r8d
inc rbx
cmp rbx, r13
jl 0x1400019a0
mov r10d, dword [rbp + 0x370]
mov r15d, 1
mov dword [rbp + 0x470], r15d
mov eax, dword [rbp + 0x374]
cmp eax, r15d
jle 0x140001b26
lea eax, [r13*4]
cdqe
mov qword [rbp - 0x80], rax
mov r14, 0xfffffffffffffdb4
xor esi, esi
test r13d, r13d
jle 0x140001ae2
mov ebx, r12d
mov r10d, dword [rsp + 0x30]
sub r10d, r12d
mov r11d, dword [rsp + 0x34]
sub r11d, r12d
lea r12, [rbp + 0x3f8]
add r12, r14
lea r15, [0x140000000]
lea eax, [r10 + rbx]
cdq
idiv r13d
movsxd rax, edx
mov ecx, dword [rbp + rax*4 + 0x3f8]
sar rcx, 8
movzx r8d, cl
lea eax, [r11 + rbx]
cdq
idiv r13d
movsxd rax, edx
movzx ecx, byte [rbp + rax*4 + 0x3f8]
mov r9d, dword [r15 + r8*4 + 0x5550]
xor r9d, dword [r15 + rcx*4 + 0x6650]
mov eax, ebx
cdq
idiv r13d
movsxd rax, edx
mov ecx, dword [rbp + rax*4 + 0x3f8]
sar rcx, 0x10
movzx eax, cl
xor r9d, dword [r15 + rax*4 + 0x4550]
movzx eax, byte [rbp + rsi*4 + 0x3fb]
xor r9d, dword [r15 + rax*4 + 0x6a50]
xor r9d, dword [r12 + rsi*4]
mov dword [rbp + rsi*4 + 0x3d8], r9d
inc ebx
inc rsi
cmp rsi, r13
jl 0x140001a50
mov r15d, dword [rbp + 0x470]
mov r12d, dword [rsp + 0x40]
mov r8, qword [rbp - 0x80]
lea rdx, [rbp + 0x3d8]
lea rcx, [rbp + 0x3f8]
call sub.VCRUNTIME140.dll_memcpy
inc r15d
mov dword [rbp + 0x470], r15d
add r14, 0x20
mov eax, dword [rbp + 0x374]
cmp r15d, eax
jl 0x140001a21
mov r10d, dword [rbp + 0x370]
mov esi, dword [rsp + 0x30]
mov r14d, dword [rsp + 0x34]
xor r11d, r11d
lea r15, [0x140000000]
test r13d, r13d
jle 0x140001c03
cdqe
mov r9, qword [rsp + 0x38]
sub r12d, esi
sub r14d, esi
shl rax, 5
lea rbx, [rbp + 0x18c]
add rbx, rax
nop dword [rax]
nop dword [rax + rax]
mov r8d, dword [rbx + r11*4]
movzx ecx, byte [rbp + r11*4 + 0x3fb]
mov eax, r8d
sar eax, 0x18
xor al, byte [rcx + r15 + 0x4450]
mov byte [r9], al
lea eax, [rsi + r12]
cdq
idiv r13d
movsxd rax, edx
mov ecx, dword [rbp + rax*4 + 0x3f8]
sar rcx, 0x10
movzx edx, cl
mov eax, r8d
sar eax, 0x10
xor al, byte [rdx + r15 + 0x4450]
mov byte [r9 + 1], al
mov eax, esi
cdq
idiv r13d
movsxd rax, edx
mov ecx, dword [rbp + rax*4 + 0x3f8]
sar rcx, 8
movzx edx, cl
mov eax, r8d
sar eax, 8
xor al, byte [rdx + r15 + 0x4450]
mov byte [r9 + 2], al
lea eax, [rsi + r14]
cdq
idiv r13d
movsxd rax, edx
movzx ecx, byte [rbp + rax*4 + 0x3f8]
xor r8b, byte [rcx + r15 + 0x4450]
mov byte [r9 + 3], r8b
lea r9, [r9 + 4]
inc esi
inc r11
cmp r11, r13
jl 0x140001b60
mov r14d, dword [rbp + 0x478]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x38]
lea r8, [rbp + 0x398]
mov rax, rbx
cmp byte [rbp - 0x58], 0
je 0x140001d01
xor r9d, r9d
test r10d, r10d
jle 0x140001d01
cmp r10d, 0x40
jb 0x140001cda
lea ecx, [r10 - 1]
movsxd rdx, ecx
lea r11, [rdx + rbx]
lea rcx, [rbp + 0x398]
add rcx, rdx
cmp rbx, rcx
ja 0x140001c69
lea rcx, [rbp + 0x398]
cmp r11, rcx
jae 0x140001cda
mov ecx, r10d
and ecx, 0x8000003f
jge 0x140001c7b
dec ecx
or ecx, 0xffffffc0
inc ecx
mov edx, r10d
sub edx, ecx
movdqu xmm1, xmmword [r8]
movdqu xmm0, xmmword [rax]
xorps xmm1, xmm0
movdqu xmmword [rax], xmm1
movdqu xmm1, xmmword [r8 + 0x10]
movdqu xmm0, xmmword [rax + 0x10]
xorps xmm1, xmm0
movdqu xmmword [rax + 0x10], xmm1
movdqu xmm1, xmmword [r8 + 0x20]
movdqu xmm0, xmmword [rax + 0x20]
xorps xmm1, xmm0
movdqu xmmword [rax + 0x20], xmm1
movdqu xmm1, xmmword [r8 + 0x30]
movdqu xmm0, xmmword [rax + 0x30]
xorps xmm1, xmm0
movdqu xmmword [rax + 0x30], xmm1
add r8, 0x40
add rax, 0x40
add r9d, 0x40
cmp r9d, edx
jl 0x140001c80
cmp r9d, r10d
jge 0x140001d01
sub r8, rax
mov edx, r10d
sub edx, r9d
nop dword [rax + rax]
movzx ecx, byte [r8 + rax]
xor byte [rax], cl
lea rax, [rax + 1]
sub rdx, 1
jne 0x140001cf0
movsxd r8, r10d
mov rdx, rdi
lea rcx, [rbp + 0x398]
call sub.VCRUNTIME140.dll_memcpy
movsxd r10, dword [rbp + 0x370]
add rdi, r10
mov qword [rsp + 0x48], rdi
add rbx, r10
mov qword [rsp + 0x38], rbx
inc r14d
mov dword [rbp + 0x478], r14d
xor edx, edx
mov rax, rsi
div r10
movsxd rcx, r14d
cmp rcx, rax
jb 0x140001910
mov r15, qword [rbp - 0x78]
mov r12, qword [rbp + 0x460]
mov r13, qword [rbp - 0x70]
movzx r9d, byte [r15 + rsi - 1]
lea edx, [rsi - 1]
movsx rax, r9b
mov r8, rsi
sub r8, rax
movsxd rax, edx
cmp rax, r8
jb 0x140001db6
lea rcx, [rax + r15]
cmp byte [rcx], r9b
jne 0x140001d8d
mov byte [rcx], 0
dec edx
dec rcx
movsxd rax, edx
cmp rax, r8
jae 0x140001d76
jmp 0x140001db6
mov r8, rsi
xor edx, edx
mov rcx, r15
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.140001fb0
mov rcx, rax
lea rdx, [0x140002160]
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]
mov rdx, r15
mov rcx, r12
call fcn.1400016b0
mov rcx, r13
call fcn.1400030d4
mov rcx, r15
call fcn.1400030d4
nop
mov rdx, qword [rsp + 0x70]
cmp rdx, 0xf
jbe 0x140001e12
inc rdx
mov rcx, qword [rsp + 0x58]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140001e0d
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140001e0d
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400030d4
mov rax, r12
mov rbx, qword [rsp + 0x568]
add rsp, 0x520
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret