Function at 0x14002f090
Capabilities:
Encode data using xor

Disassembly:
push rbx
push rsi
push r14
sub rsp, 0x20
mov rsi, rdx
mov rbx, rcx
mov r8d, 0x18
mov rcx, rsi
mov edx, 0x564342
call fcn.1400426d0
mov edx, dword [rbx]
mov r8d, 0x10
mov rcx, rsi
call fcn.1400426d0
mov edx, dword [rbx + 4]
mov r8d, 0x18
mov rcx, rsi
call fcn.1400426d0
mov r9d, dword [rbx + 4]
mov edx, 1
xor r14d, r14d
cmp r9d, edx
jle 0x14002f10e
mov r10, qword [rbx + 8]
mov eax, r14d
nop dword [rax + rax]
cmp dword [rax + r10], r14d
je 0x14002f10e
lea r8, [rax + 4]
mov eax, dword [rax + r10]
cmp dword [r8 + r10], eax
jl 0x14002f10e
inc edx
mov rax, r8
cmp edx, r9d
jl 0x14002f0f0
mov qword [rsp + 0x40], rbp
mov rcx, rsi
mov qword [rsp + 0x48], rdi
cmp edx, r9d
jne 0x14002f1e3
mov edx, 1
mov ebp, r14d
mov r8d, edx
call fcn.1400426d0
mov rax, qword [rbx + 8]
mov r8d, 5
mov edx, dword [rax]
mov rcx, rsi
dec edx
call fcn.1400426d0
mov edi, 1
cmp dword [rbx + 4], edi
jle 0x14002f1c5
mov qword [rsp + 0x50], r12
mov qword [rsp + 0x58], r13
mov r13d, 4
nop word [rax + rax]
mov rax, qword [rbx + 8]
mov ecx, dword [r13 + rax]
mov edx, dword [r13 + rax - 4]
cmp ecx, edx
jle 0x14002f1b0
sub ecx, edx
mov r12d, ecx
nop word [rax + rax]
mov ecx, dword [rbx + 4]
sub ecx, ebp
call fcn.140028a00
mov edx, edi
mov rcx, rsi
mov r8d, eax
sub edx, ebp
call fcn.1400426d0
dec r12
mov ebp, edi
jne 0x14002f190
inc edi
add r13, 4
cmp edi, dword [rbx + 4]
jl 0x14002f170
mov r13, qword [rsp + 0x58]
mov r12, qword [rsp + 0x50]
mov ecx, dword [rbx + 4]
sub ecx, ebp
call fcn.140028a00
sub edi, ebp
mov rcx, rsi
mov r8d, eax
mov edx, edi
call fcn.1400426d0
jmp 0x14002f2c5
xor edx, edx
lea r8d, [rdx + 1]
call fcn.1400426d0
mov ecx, dword [rbx + 4]
mov r11d, r14d
test ecx, ecx
jle 0x14002f211
mov rax, qword [rbx + 8]
nop dword [rax]
cmp dword [rax], r14d
je 0x14002f211
inc r11d
add rax, 4
cmp r11d, ecx
jl 0x14002f200
cmp r11d, ecx
mov rcx, rsi
jne 0x14002f264
xor edx, edx
lea r8d, [rdx + 1]
call fcn.1400426d0
mov ebp, r14d
cmp dword [rbx + 4], r14d
jle 0x14002f2c5
mov rdi, r14
nop word [rax + rax]
mov rax, qword [rbx + 8]
mov r8d, 5
mov rcx, rsi
mov edx, dword [rdi + rax]
dec edx
call fcn.1400426d0
inc ebp
add rdi, 4
cmp ebp, dword [rbx + 4]
jl 0x14002f240
jmp 0x14002f2c5
mov edx, 1
mov r8d, edx
call fcn.1400426d0
mov ebp, r14d
cmp dword [rbx + 4], r14d
jle 0x14002f2c5
mov rdi, r14
nop dword [rax]
mov rax, qword [rbx + 8]
mov rcx, rsi
cmp dword [rdi + rax], r14d
jne 0x14002f295
xor edx, edx
lea r8d, [rdx + 1]
jmp 0x14002f2b5
mov edx, 1
mov r8d, edx
call fcn.1400426d0
mov r11, qword [rbx + 8]
mov r8d, 5
mov edx, dword [rdi + r11]
mov rcx, rsi
dec edx
call fcn.1400426d0
inc ebp
add rdi, 4
cmp ebp, dword [rbx + 4]
jl 0x14002f280
mov edx, dword [rbx + 0x10]
mov r8d, 4
mov rcx, rsi
call fcn.1400426d0
mov eax, dword [rbx + 0x10]
mov rbp, qword [rsp + 0x40]
test eax, eax
je 0x14002f3a3
dec eax
cmp eax, 1
ja 0x14002f2f3
cmp qword [rbx + 0x28], r14
jne 0x14002f304
or eax, 0xffffffff
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
pop rsi
pop rbx
ret
mov edx, dword [rbx + 0x14]
mov r8d, 0x20
mov rcx, rsi
call fcn.1400426d0
mov edx, dword [rbx + 0x18]
mov r8d, 0x20
mov rcx, rsi
call fcn.1400426d0
mov edx, dword [rbx + 0x1c]
mov r8d, 4
dec edx
mov rcx, rsi
call fcn.1400426d0
mov edx, dword [rbx + 0x20]
mov r8d, 1
mov rcx, rsi
call fcn.1400426d0
mov eax, dword [rbx + 0x10]
dec eax
je 0x14002f362
dec eax
je 0x14002f35a
or eax, 0xffffffff
jmp 0x14002f36a
mov eax, dword [rbx + 4]
imul eax, dword [rbx]
jmp 0x14002f36a
mov rcx, rbx
call fcn.140028c90
movsxd rdi, eax
test eax, eax
jle 0x14002f3a3
nop word [rax + rax]
mov rax, qword [rbx + 0x28]
mov r8d, dword [rbx + 0x1c]
mov rcx, rsi
mov eax, dword [rax + r14*4]
cdq
xor eax, edx
sub eax, edx
mov edx, eax
call fcn.1400426d0
inc r14
cmp r14, rdi
jl 0x14002f380
xor eax, eax
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
pop rsi
pop rbx
ret