Function at 0x140060780
Capabilities:
Encode data using xor

Disassembly:
push rbx
push rsi
sub rsp, 0x28
mov rsi, rdx
mov rbx, rcx
mov r8d, 0x18
mov rcx, rsi
mov edx, 0x564342
call fcn.14006a9f0
mov edx, dword [rbx]
mov r8d, 0x10
mov rcx, rsi
call fcn.14006a9f0
mov edx, dword [rbx + 4]
mov r8d, 0x18
mov rcx, rsi
call fcn.14006a9f0
movsxd r10, dword [rbx + 4]
mov r8d, 1
cmp r10d, r8d
jle 0x1400607f1
mov rax, qword [rbx + 8]
mov ecx, r8d
mov edx, dword [rax]
test edx, edx
je 0x1400607f1
cmp dword [rax + 4], edx
jl 0x1400607f1
inc rcx
inc r8d
add rax, 4
cmp rcx, r10
jl 0x1400607d7
mov qword [rsp + 0x40], rbp
mov qword [rsp + 0x48], rdi
mov rcx, rsi
mov qword [rsp + 0x20], r15
cmp r8d, r10d
jne 0x1400608b9
mov edx, 1
xor r15d, r15d
mov r8d, edx
mov ebp, r15d
call fcn.14006a9f0
mov rax, qword [rbx + 8]
lea r8d, [r15 + 5]
mov edx, dword [rax]
mov rcx, rsi
dec edx
call fcn.14006a9f0
mov edi, 1
cmp dword [rbx + 4], edi
jle 0x14006089b
mov qword [rsp + 0x50], r12
mov qword [rsp + 0x58], r14
mov r12d, 4
nop dword [rax]
mov rax, qword [rbx + 8]
mov ecx, dword [r12 + rax]
mov edx, dword [r12 + rax - 4]
cmp ecx, edx
jle 0x140060886
sub ecx, edx
mov r14d, ecx
mov ecx, dword [rbx + 4]
sub ecx, ebp
call fcn.1400586a0
mov edx, edi
mov rcx, rsi
mov r8d, eax
sub edx, ebp
call fcn.14006a9f0
mov ebp, edi
dec r14
jne 0x140060866
inc edi
add r12, 4
cmp edi, dword [rbx + 4]
jl 0x140060850
mov r14, qword [rsp + 0x58]
mov r12, qword [rsp + 0x50]
mov ecx, dword [rbx + 4]
sub ecx, ebp
call fcn.1400586a0
sub edi, ebp
mov rcx, rsi
mov r8d, eax
mov edx, edi
call fcn.14006a9f0
jmp 0x1400609a4
xor edx, edx
lea r8d, [rdx + 1]
call fcn.14006a9f0
movsxd r9, dword [rbx + 4]
xor r15d, r15d
mov edx, r15d
test r9d, r9d
jle 0x1400608f3
mov rax, qword [rbx + 8]
mov ecx, r15d
nop word [rax + rax]
cmp dword [rax], r15d
je 0x1400608f3
inc rcx
inc edx
add rax, 4
cmp rcx, r9
jl 0x1400608e0
mov rcx, rsi
cmp edx, r9d
jne 0x140060944
xor edx, edx
lea r8d, [rdx + 1]
call fcn.14006a9f0
mov ebp, r15d
cmp dword [rbx + 4], r15d
jle 0x1400609a4
mov rdi, r15
nop word [rax + rax]
mov rax, qword [rbx + 8]
mov r8d, 5
mov rcx, rsi
mov edx, dword [rdi + rax]
dec edx
call fcn.14006a9f0
inc ebp
lea rdi, [rdi + 4]
cmp ebp, dword [rbx + 4]
jl 0x140060920
jmp 0x1400609a4
mov edx, 1
mov r8d, edx
call fcn.14006a9f0
mov ebp, r15d
cmp dword [rbx + 4], r15d
jle 0x1400609a4
mov rdi, r15
nop dword [rax]
mov rax, qword [rbx + 8]
mov rcx, rsi
cmp dword [rdi + rax], r15d
jne 0x140060975
xor edx, edx
lea r8d, [rdx + 1]
jmp 0x140060994
mov edx, 1
mov r8d, edx
call fcn.14006a9f0
mov rax, qword [rbx + 8]
mov r8d, 5
mov edx, dword [rdi + rax]
mov rcx, rsi
dec edx
call fcn.14006a9f0
inc ebp
add rdi, 4
cmp ebp, dword [rbx + 4]
jl 0x140060960
mov edx, dword [rbx + 0x10]
mov r8d, 4
mov rcx, rsi
call fcn.14006a9f0
mov eax, dword [rbx + 0x10]
mov rbp, qword [rsp + 0x40]
test eax, eax
je 0x140060a83
dec eax
cmp eax, 1
ja 0x1400609d3
cmp qword [rbx + 0x28], 0
jne 0x1400609e7
or eax, 0xffffffff
mov r15, qword [rsp + 0x20]
mov rdi, qword [rsp + 0x48]
add rsp, 0x28
pop rsi
pop rbx
ret
mov edx, dword [rbx + 0x14]
mov r8d, 0x20
mov rcx, rsi
call fcn.14006a9f0
mov edx, dword [rbx + 0x18]
mov r8d, 0x20
mov rcx, rsi
call fcn.14006a9f0
mov edx, dword [rbx + 0x1c]
mov r8d, 4
dec edx
mov rcx, rsi
call fcn.14006a9f0
mov edx, dword [rbx + 0x20]
mov r8d, 1
mov rcx, rsi
call fcn.14006a9f0
mov ecx, dword [rbx + 0x10]
dec ecx
je 0x140060a45
dec ecx
je 0x140060a3d
or eax, 0xffffffff
jmp 0x140060a4d
mov eax, dword [rbx + 4]
imul eax, dword [rbx]
jmp 0x140060a4d
mov rcx, rbx
call fcn.140057d80
movsxd rdi, eax
test eax, eax
jle 0x140060a83
nop dword [rax]
nop dword [rax + rax]
mov rax, qword [rbx + 0x28]
mov r8d, dword [rbx + 0x1c]
mov rcx, rsi
mov eax, dword [rax + r15*4]
cdq
xor eax, edx
sub eax, edx
mov edx, eax
call fcn.14006a9f0
inc r15
cmp r15, rdi
jl 0x140060a60
mov r15, qword [rsp + 0x20]
mov rdi, qword [rsp + 0x48]
xor eax, eax
add rsp, 0x28
pop rsi
pop rbx
ret