Function at 0x14001b3bc
Capabilities:
Encode data using xor

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x28
mov edx, dword [rcx + 0x14]
mov rbx, rcx
mov eax, 4
imul edx, dword [rcx + 0x1c]
mov rcx, 0xffffffffffffffff
mul rdx
cmovo rax, rcx
mov rcx, rax
call fcn.14002beb0
mov r8d, dword [rbx + 0x14]
xor edx, edx
mov rcx, rax
mov rdi, rax
mov qword [rsp + 0x80], rax
imul r8d, dword [rbx + 0x1c]
shl r8, 2
call fcn.14002c730
xor r11d, r11d
mov edx, r11d
mov ecx, r11d
cmp dword [rbx + 0x1c], r11d
jbe 0x14001b44f
mov r8, qword [rbx + 0x20]
mov eax, ecx
cmp byte [rax + r8], r11b
je 0x14001b437
inc ecx
cmp byte [rcx + r8], r11b
jne 0x14001b42f
mov eax, dword [rbx + 0x14]
imul eax, edx
inc edx
add eax, ecx
inc ecx
mov dword [rdi + rax*4], 1
cmp edx, dword [rbx + 0x1c]
jb 0x14001b423
mov esi, r11d
mov r8d, r11d
mov r10, r11
cmp dword [rbx + 0x14], r11d
jbe 0x14001b60c
mov rax, qword [rbx + 0x20]
mov ecx, r8d
cmp byte [rcx + rax], r11b
je 0x14001b4af
mov edx, dword [rbx + 0x1c]
cmp r8d, dword [rbx + 0x14]
jae 0x14001b4b3
mov r9d, r11d
cmp edx, r11d
jbe 0x14001b49f
mov edx, dword [rbx + 0x14]
mov rax, qword [rbx + 0x28]
imul edx, r9d
add edx, r8d
inc r9d
mov ecx, dword [rax + rdx*4]
xor dword [rdi + rdx*4], ecx
mov edx, dword [rbx + 0x1c]
cmp r9d, edx
jb 0x14001b480
mov rax, qword [rbx + 0x20]
inc r8d
inc r10
cmp byte [r8 + rax], r11b
jne 0x14001b472
cmp r8d, dword [rbx + 0x14]
je 0x14001b60c
mov ecx, dword [rbx + 0x14]
mov rax, qword [rbx + 0x28]
imul ecx, esi
lea r14, [rax + rcx*4]
lea r15, [rdi + rcx*4]
mov qword [rsp + 0x88], r14
cmp dword [r14 + r10*4], r11d
jne 0x14001b4de
mov eax, r11d
jmp 0x14001b4f4
mov rax, qword [rbx + 8]
mov edx, dword [r14 + r10*4]
mov ecx, 0xffff
sub ecx, dword [rax + rdx*4]
mov rax, qword [rbx]
mov eax, dword [rax + rcx*4]
mov r12d, r11d
movsxd r13, eax
cmp dword [rbx + 0x14], r11d
jbe 0x14001b546
mov r9, r14
mov rbp, r15
sub r9, r15
mov rdx, qword [rbx + 8]
mov eax, dword [r9 + rbp]
inc r12d
mov ecx, dword [rdx + rax*4]
mov rax, qword [rbx]
add ecx, dword [rdx + r13*4]
mov ecx, dword [rax + rcx*4]
mov dword [r9 + rbp], ecx
mov eax, dword [rbp]
mov rdx, qword [rbx + 8]
mov ecx, dword [rdx + rax*4]
mov rax, qword [rbx]
add ecx, dword [rdx + r13*4]
mov ecx, dword [rax + rcx*4]
mov dword [rbp], ecx
add rbp, 4
cmp r12d, dword [rbx + 0x14]
jb 0x14001b509
mov r9d, r11d
cmp dword [rbx + 0x1c], r11d
jbe 0x14001b5fa
mov edx, dword [rbx + 0x14]
cmp r9d, esi
je 0x14001b5ed
mov ecx, dword [rbx + 0x14]
mov rax, qword [rbx + 0x28]
mov r13d, r11d
imul ecx, r9d
lea rbp, [rax + rcx*4]
lea r12, [rdi + rcx*4]
movsxd rax, dword [rbp + r10*4]
mov qword [rsp + 0x70], rax
cmp edx, r11d
jbe 0x14001b5ed
mov rdi, qword [rsp + 0x70]
mov rax, rbp
neg rax
lea r11, [rax + r14]
add rax, r15
sub r12, rbp
mov r14, rax
mov rdx, qword [rbx + 8]
mov eax, dword [r11 + rbp]
inc r13d
mov ecx, dword [rdx + rax*4]
mov rax, qword [rbx]
add ecx, dword [rdx + rdi*4]
mov ecx, dword [rax + rcx*4]
xor dword [rbp], ecx
mov rdx, qword [rbx + 8]
mov eax, dword [r14 + rbp]
mov ecx, dword [rdx + rax*4]
mov rax, qword [rbx]
add ecx, dword [rdx + rdi*4]
mov ecx, dword [rax + rcx*4]
xor dword [r12 + rbp], ecx
mov edx, dword [rbx + 0x14]
add rbp, 4
cmp r13d, edx
jb 0x14001b59c
mov rdi, qword [rsp + 0x80]
mov r14, qword [rsp + 0x88]
xor r11d, r11d
inc r9d
cmp r9d, dword [rbx + 0x1c]
jb 0x14001b556
inc r8d
inc esi
inc r10
cmp r8d, dword [rbx + 0x14]
jb 0x14001b462
mov eax, dword [rbx + 0x14]
imul eax, dword [rbx + 0x1c]
cmp eax, r11d
jbe 0x14001b638
mov rdx, r11
mov eax, dword [rdx + rdi]
mov rcx, qword [rbx + 0x28]
inc r11d
mov dword [rdx + rcx], eax
mov eax, dword [rbx + 0x14]
add rdx, 4
imul eax, dword [rbx + 0x1c]
cmp r11d, eax
jb 0x14001b61b
mov rcx, rdi
add rsp, 0x28
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
jmp fcn.14002e23c