Function at 0x140229ea0
Capabilities:
Encode data using xor

Disassembly:
push rbx
push r14
sub rsp, 0x28
mov r14, rdx
mov rbx, rcx
mov rcx, r14
mov edx, 0x564342
mov r8d, reloc.OLEAUT32.dll_SafeArrayGetElement
call fcn.14022ddb0
mov edx, dword [rbx]
mov r8d, reloc.OLEAUT32.dll_SafeArrayGetDim
mov rcx, r14
call fcn.14022ddb0
mov edx, dword [rbx + 4]
mov r8d, reloc.OLEAUT32.dll_SafeArrayGetElement
mov rcx, r14
call fcn.14022ddb0
movsxd r10, dword [rbx + 4]
mov edx, 1
cmp r10d, edx
jle 0x140229f0f
mov r8, qword [rbx + 8]
mov eax, edx
mov ecx, dword [r8 + rax*4 - 4]
test ecx, ecx
je 0x140229f0f
cmp dword [r8 + rax*4], ecx
jl 0x140229f0f
inc edx
inc rax
cmp rax, r10
jl 0x140229ef6
mov qword [rsp + 0x40], rbp
mov rcx, r14
mov qword [rsp + 0x48], rsi
mov qword [rsp + 0x50], rdi
cmp edx, r10d
jne 0x140229fe8
mov edx, 1
xor ebp, ebp
mov r8d, edx
mov esi, ebp
call fcn.14022ddb0
mov rax, qword [rbx + 8]
lea r8d, [rbp + 5]
mov rcx, r14
mov edx, dword [rax]
dec edx
call fcn.14022ddb0
mov edi, 1
cmp dword [rbx + 4], edi
jle 0x140229fc0
mov qword [rsp + 0x58], r12
mov r12d, 4
mov qword [rsp + 0x20], r15
nop dword [rax]
mov rax, qword [rbx + 8]
mov ecx, dword [r12 + rax]
mov edx, dword [r12 + rax - 4]
cmp ecx, edx
jle 0x140229fab
sub ecx, edx
mov r15d, ecx
mov eax, dword [rbx + 4]
mov r8d, ebp
sub eax, esi
je 0x140229f97
inc r8d
shr eax, 1
jne 0x140229f90
mov edx, edi
mov rcx, r14
sub edx, esi
call fcn.14022ddb0
mov esi, edi
sub r15, 1
jne 0x140229f86
inc edi
add r12, 4
cmp edi, dword [rbx + 4]
jl 0x140229f70
mov r15, qword [rsp + 0x20]
mov r12, qword [rsp + 0x58]
mov eax, dword [rbx + 4]
mov r8d, ebp
sub eax, esi
je 0x140229fd7
nop word [rax + rax]
inc r8d
shr eax, 1
jne 0x140229fd0
sub edi, esi
mov rcx, r14
mov edx, edi
call fcn.14022ddb0
jmp 0x14022a0c3
xor edx, edx
lea r8d, [rdx + 1]
call fcn.14022ddb0
movsxd r9, dword [rbx + 4]
xor ebp, ebp
mov edx, ebp
test r9d, r9d
jle 0x14022a018
mov rax, qword [rbx + 8]
mov ecx, ebp
cmp dword [rax], ebp
je 0x14022a018
inc edx
inc rcx
add rax, 4
cmp rcx, r9
jl 0x14022a006
mov rcx, r14
cmp edx, r9d
jne 0x14022a064
xor edx, edx
lea r8d, [rdx + 1]
call fcn.14022ddb0
mov esi, ebp
cmp dword [rbx + 4], ebp
jle 0x14022a0c3
mov rdi, rbp
nop dword [rax]
mov rax, qword [rbx + 8]
mov r8d, 5
mov rcx, r14
mov edx, dword [rdi + rax]
dec edx
call fcn.14022ddb0
inc esi
lea rdi, [rdi + 4]
cmp esi, dword [rbx + 4]
jl 0x14022a040
jmp 0x14022a0c3
mov edx, 1
mov r8d, edx
call fcn.14022ddb0
mov esi, ebp
cmp dword [rbx + 4], ebp
jle 0x14022a0c3
mov rdi, rbp
nop dword [rax + rax]
mov rax, qword [rbx + 8]
mov rcx, r14
cmp dword [rdi + rax], ebp
jne 0x14022a094
xor edx, edx
lea r8d, [rdx + 1]
jmp 0x14022a0b3
mov edx, 1
mov r8d, edx
call fcn.14022ddb0
mov rax, qword [rbx + 8]
mov r8d, 5
mov rcx, r14
mov edx, dword [rdi + rax]
dec edx
call fcn.14022ddb0
inc esi
add rdi, 4
cmp esi, dword [rbx + 4]
jl 0x14022a080
mov edx, dword [rbx + 0x10]
mov r8d, 4
mov rcx, r14
call fcn.14022ddb0
mov eax, dword [rbx + 0x10]
mov rsi, qword [rsp + 0x48]
test eax, eax
je 0x14022a1a2
dec eax
cmp eax, 1
ja 0x14022a0f2
cmp qword [rbx + 0x28], 0
jne 0x14022a107
or eax, 0xffffffff
mov rdi, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x40]
add rsp, 0x28
pop r14
pop rbx
ret
mov edx, dword [rbx + 0x14]
mov r8d, 0x20
mov rcx, r14
call fcn.14022ddb0
mov edx, dword [rbx + 0x18]
mov r8d, 0x20
mov rcx, r14
call fcn.14022ddb0
mov edx, dword [rbx + 0x1c]
mov r8d, 4
dec edx
mov rcx, r14
call fcn.14022ddb0
mov edx, dword [rbx + 0x20]
mov r8d, 1
mov rcx, r14
call fcn.14022ddb0
mov ecx, dword [rbx + 0x10]
sub ecx, 1
je 0x14022a167
cmp ecx, 1
je 0x14022a15f
or eax, 0xffffffff
jmp 0x14022a16f
mov eax, dword [rbx + 4]
imul eax, dword [rbx]
jmp 0x14022a16f
mov rcx, rbx
call fcn.140217970
movsxd rdi, eax
test eax, eax
jle 0x14022a1a2
nop word [rax + rax]
mov rax, qword [rbx + 0x28]
mov rcx, r14
mov r8d, dword [rbx + 0x1c]
mov eax, dword [rax + rbp*4]
cdq
xor eax, edx
sub eax, edx
mov edx, eax
call fcn.14022ddb0
inc rbp
cmp rbp, rdi
jl 0x14022a180
mov rdi, qword [rsp + 0x50]
xor eax, eax
mov rbp, qword [rsp + 0x40]
add rsp, 0x28
pop r14
pop rbx
ret