Function at 0x1402cdac0
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x40
mov r13, rcx
xor edi, edi
cmp dword [rcx + 4], edi
jle 0x1402cdb29
nop word [rax + rax]
movzx ebx, dil
not bl
and bl, 1
movzx r9d, bl
mov r8d, edi
mov edx, 6
mov rcx, r13
call fcn.1402d0f00
movzx r9d, bl
mov r8d, 6
mov edx, edi
mov rcx, r13
call fcn.1402d0f00
inc edi
cmp edi, dword [r13 + 4]
jl 0x1402cdaf0
mov edx, 3
mov r8d, edx
mov rcx, r13
call fcn.1402cd680
mov edx, dword [r13 + 4]
sub edx, 4
mov r8d, 3
mov rcx, r13
call fcn.1402cd680
mov r8d, dword [r13 + 4]
sub r8d, 4
mov edx, 3
mov rcx, r13
call fcn.1402cd680
lea rdx, [rsp + 0x20]
mov rcx, r13
call fcn.1402cee80
nop
mov r12, qword [rsp + 0x28]
mov rbx, qword [rsp + 0x20]
sub r12, rbx
sar r12, 2
xor ecx, ecx
mov qword [rsp + 0x70], rcx
test r12, r12
je 0x1402cdc48
xor ebp, ebp
test rcx, rcx
jne 0x1402cdbae
test rbp, rbp
je 0x1402cdc2b
lea rax, [r12 - 1]
cmp rbp, rax
je 0x1402cdc2b
jmp 0x1402cdbb3
lea rax, [r12 - 1]
cmp rcx, rax
jne 0x1402cdbbd
test rbp, rbp
je 0x1402cdc2b
cmp r12, rbp
jbe 0x1402cdcba
mov r14d, dword [rbx + rbp*4]
cmp r12, rcx
jbe 0x1402cdcba
mov r15d, dword [rbx + rcx*4]
mov esi, 0xfffffffe
nop dword [rax]
mov ebx, 0xfffffffe
mov eax, esi
cdq
mov edi, eax
xor edi, edx
sub edi, edx
nop
mov eax, ebx
cdq
xor eax, edx
sub eax, edx
cmp eax, edi
cmovl eax, edi
cmp eax, 1
setne r9b
lea r8d, [r14 + rsi]
lea edx, [r15 + rbx]
mov rcx, r13
call fcn.1402d0f00
inc ebx
cmp ebx, 2
jle 0x1402cdbf0
inc esi
cmp esi, 2
jle 0x1402cdbe0
mov rcx, qword [rsp + 0x70]
mov rbx, qword [rsp + 0x20]
inc rbp
cmp rbp, r12
jb 0x1402cdb94
inc rcx
mov qword [rsp + 0x70], rcx
cmp rcx, r12
jb 0x1402cdb92
xor edx, edx
mov rcx, r13
call fcn.1402cd800
mov rcx, r13
call 0x1402cdcc0
nop
test rbx, rbx
je 0x1402cdc9c
mov rdx, qword [rsp + 0x30]
sub rdx, rbx
and rdx, 0xfffffffffffffffc
mov rax, rbx
cmp rdx, 0x1000
jb 0x1402cdc94
add rdx, 0x27
mov rbx, qword [rbx - 8]
sub rax, rbx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1402cdc94
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, rbx
call fcn.140322dc0
lea r11, [rsp + 0x40]
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
call fcn.14001e420
nop
push rbx
push rsi
sub rsp, 0x28
mov esi, dword [rcx]
mov rbx, rcx
cmp esi, 7
jl 0x1402cde02
mov qword [rsp + 0x40], rbp
mov r8d, esi
mov qword [rsp + 0x48], rdi
mov r9d, 0xc
mov qword [rsp + 0x50], r14
nop dword [rax]
mov eax, r8d
sar eax, 0xb
imul edx, eax, 0x1f25
lea eax, [r8 + r8]
xor edx, eax
mov r8d, edx
sub r9, 1
jne 0x1402cdcf0
shl esi, 0xc
or esi, edx
mov qword [rsp + 0x20], r15
xor edi, edi
nop word [rax + rax]
mov eax, 0x55555556
lea ebp, [rdi - 0xb]
imul edi
mov ecx, edi
mov r9d, esi
sar r9d, cl
mov r14d, edx
mov ecx, dword [rbx + 4]
and r9b, 1
shr r14d, 0x1f
add r14d, edx
mov rdx, qword [rbx + 0x10]
movsxd r11, r14d
lea eax, [r14 + r14*2]
sub ecx, eax
mov rax, qword [rbx + 0x18]
sub rax, rdx
add ebp, ecx
sar rax, 5
movsxd r8, ebp
cmp rax, r11
jbe 0x1402cde12
mov rcx, r11
shl rcx, 5
add rdx, rcx
cmp qword [rdx + 0x18], r8
jbe 0x1402cde09
mov r10, qword [rdx]
mov rax, r8
shr rax, 5
mov edx, r8d
and edx, 0x1f
lea r15, [rax*4]
mov eax, dword [r10 + rax*4]
test r9b, r9b
je 0x1402cdda3
bts eax, edx
jmp 0x1402cdda6
btr eax, edx
mov dword [r10 + r15], eax
mov r10, qword [rbx + 0x28]
mov rax, qword [rbx + 0x30]
sub rax, r10
sar rax, 5
cmp rax, r11
jbe 0x1402cde12
add rcx, r10
cmp qword [rcx + 0x18], r8
jbe 0x1402cde18
mov rcx, qword [rcx]
mov r8d, ebp
mov eax, dword [rcx + r15]
bts eax, edx
mov edx, r14d
mov dword [rcx + r15], eax
mov rcx, rbx
call fcn.1402d0f00
inc edi
cmp edi, 0x12
jl 0x1402cdd20
mov r15, qword [rsp + 0x20]
mov rdi, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x40]
mov r14, qword [rsp + 0x50]
add rsp, 0x28
pop rsi
pop rbx
ret
mov rcx, rdx
call fcn.1402cc9e0
int3
call fcn.14001e420
int3
call fcn.1402cc9e0
int3