Function at 0x1400ba478
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
push r13
push r14
lea rbp, [rsp - 0x110]
sub rsp, 0x210
mov rax, qword [rbp + 0x160]
mov rdi, r8
and qword [rsp + 0x28], 0
lea r8, [rsp + 0x28]
and qword [rsp + 0x30], 0
mov esi, edx
lea rdx, [rsp + 0x20]
mov qword [rsp + 0x48], rax
mov r13, r9
call fcn.1400cf63c
mov ebx, eax
test eax, eax
jns 0x1400ba4d4
mov ecx, eax
call fcn.14003e600
jmp 0x1400ba6e9
mov edx, 0x20
lea ebx, [rdx + 0x20]
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rdx, rax
lea rcx, [rsp + 0x30]
call fcn.14003bcf0
mov r14, qword [rsp + 0x30]
test r14, r14
jne 0x1400ba504
mov ebx, 0x8007000e
mov ecx, ebx
jmp 0x1400ba4ca
mov edx, reloc.OLEAUT32.dll_SafeArrayGetDim
lea r9, [0x1400b5a70]
lea rcx, [rsp + 0x38]
lea r8d, [rdx - 0xf]
call fcn.14003c25c
lea rcx, [rbp - 0x20]
mov dword [rsp + 0x38], esi
mov qword [rsp + 0x40], rdi
call fcn.14003a604
lea rcx, [rsp + 0x50]
call fcn.14003a604
cmp dword [rsp + 0x20], ebx
jbe 0x1400ba54c
mov ebx, 0x80004005
mov ecx, ebx
jmp 0x1400ba678
mov r8, rbx
lea rcx, [rbp + 0x70]
xor edx, edx
call fcn.14001ba6e
mov r8, rbx
lea rcx, [rbp + 0xb0]
xor edx, edx
call fcn.14001ba6e
mov edi, dword [rsp + 0x20]
lea rcx, [rbp + 0x70]
mov rdx, qword [rsp + 0x28]
mov r8d, edi
call sub.msvcrt.dll_memcpy
mov rdx, qword [rsp + 0x28]
lea rcx, [rbp + 0xb0]
mov r8d, edi
call sub.msvcrt.dll_memcpy
xor eax, eax
lea ecx, [rax + 4]
movdqu xmm0, xmmword [rbp + rax + 0x70]
lea rax, [rax + 0x10]
pxor xmm0, xmmword [str.6666666666666666_]
movdqu xmmword [rbp + rax + 0x60], xmm0
movdqu xmm0, xmmword [rbp + rax + 0xa0]
pxor xmm0, xmmword [0x1403a6380]
movdqu xmmword [rbp + rax + 0xa0], xmm0
sub rcx, 1
jne 0x1400ba599
mov r8d, ebx
lea rdx, [rbp + 0x70]
lea rcx, [rbp - 0x20]
call fcn.14007ae3c
mov ebx, eax
test eax, eax
js 0x1400ba676
xor esi, esi
lea rdi, [rsp + 0x40]
mov r8d, dword [rdi - 8]
lea rcx, [rbp - 0x20]
mov rdx, qword [rdi]
call fcn.14007ae3c
mov ebx, eax
test eax, eax
js 0x1400ba676
inc esi
add rdi, 0x10
cmp esi, 1
jb 0x1400ba5f2
lea rdx, [rbp + 0xf0]
lea rcx, [rbp - 0x20]
call fcn.140062c08
mov ebx, eax
test eax, eax
js 0x1400ba676
mov r8d, 0x40
lea rdx, [rbp + 0xb0]
lea rcx, [rsp + 0x50]
call fcn.14007ae3c
mov ebx, eax
test eax, eax
js 0x1400ba676
mov r8d, 0x20
lea rdx, [rbp + 0xf0]
lea rcx, [rsp + 0x50]
call fcn.14007ae3c
mov ebx, eax
test eax, eax
js 0x1400ba676
mov rdx, r14
lea rcx, [rsp + 0x50]
call fcn.140062c08
mov ebx, eax
test eax, eax
jns 0x1400ba67d
mov ecx, eax
call fcn.14003e600
xor eax, eax
lea rdi, [rbp + 0x70]
lea ecx, [rax + 0x40]
rep stosb byte [rdi], al
lea ecx, [rax + 0x40]
lea rdi, [rbp + 0xb0]
rep stosb byte [rdi], al
mov ecx, ebx
call fcn.14006a86c
test ebx, ebx
jns 0x1400ba6a6
mov ecx, ebx
call fcn.14003e600
mov ecx, ebx
call fcn.14006a86c
test ebx, ebx
jns 0x1400ba6b8
mov ecx, ebx
call fcn.14003e600
mov ecx, ebx
call fcn.14006a86c
test ebx, ebx
js 0x1400ba500
mov ecx, dword [rsp + 0x20]
xor eax, eax
mov rdi, qword [rsp + 0x28]
and qword [rsp + 0x30], rax
rep stosb byte [rdi], al
mov rax, qword [rsp + 0x48]
mov dword [r13], 0x20
mov qword [rax], r14
mov ecx, ebx
call fcn.14006a86c
lea rcx, [rsp + 0x30]
call fcn.14003b618
lea rcx, [rsp + 0x28]
call fcn.14003b618
mov eax, ebx
mov rbx, qword [rsp + 0x248]
add rsp, 0x210
pop r14
pop r13
pop rdi
pop rsi
pop rbp
ret