Function at 0x14001d548
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
mov rbx, rcx
imul edx, dword [rcx + 0x1c]
mov eax, 4
mov rcx, 0xffffffffffffffff
mul rdx
cmovo rax, rcx
mov rcx, rax
call fcn.14002f24c
mov r8d, dword [rbx + 0x14]
xor edx, edx
imul r8d, dword [rbx + 0x1c]
mov rcx, rax
mov rdi, rax
mov qword [rsp + 0x70], rax
shl r8, 2
call fcn.140030c80
xor r9d, r9d
mov edx, r9d
mov ecx, r9d
lea r12d, [r9 + 1]
cmp dword [rbx + 0x1c], r9d
jbe 0x14001d5df
mov r8, qword [rbx + 0x20]
mov eax, ecx
cmp byte [rax + r8], r9b
je 0x14001d5c8
add ecx, r12d
cmp byte [rcx + r8], r9b
jne 0x14001d5bf
mov eax, dword [rbx + 0x14]
imul eax, edx
add edx, r12d
add eax, ecx
add ecx, r12d
mov dword [rdi + rax*4], r12d
cmp edx, dword [rbx + 0x1c]
jb 0x14001d5b3
mov esi, r9d
mov r10d, r9d
cmp dword [rbx + 0x14], r9d
jbe 0x14001d766
mov rax, qword [rbx + 0x20]
mov ecx, r10d
cmp byte [rcx + rax], r9b
je 0x14001d638
mov edx, dword [rbx + 0x1c]
cmp r10d, dword [rbx + 0x14]
jae 0x14001d63c
mov r8d, r9d
test edx, edx
je 0x14001d62b
mov edx, dword [rbx + 0x14]
mov rax, qword [rbx + 0x28]
imul edx, r8d
add r8d, r12d
add edx, r10d
mov ecx, dword [rax + rdx*4]
xor dword [rdi + rdx*4], ecx
mov edx, dword [rbx + 0x1c]
cmp r8d, edx
jb 0x14001d60c
mov rax, qword [rbx + 0x20]
add r10d, r12d
cmp byte [r10 + rax], r9b
jne 0x14001d5ff
cmp r10d, dword [rbx + 0x14]
je 0x14001d766
mov ecx, dword [rbx + 0x14]
mov rax, qword [rbx + 0x28]
imul ecx, esi
mov r13d, r10d
lea r15, [rax + rcx*4]
lea r14, [rdi + rcx*4]
mov qword [rsp + 0x68], r14
cmp dword [r15 + r13*4], r9d
jne 0x14001d667
mov eax, r9d
jmp 0x14001d67d
mov rax, qword [rbx + 8]
mov ecx, 0xffff
mov edx, dword [r15 + r13*4]
sub ecx, dword [rax + rdx*4]
mov rax, qword [rbx]
mov eax, dword [rax + rcx*4]
mov r11d, r9d
cmp dword [rbx + 0x14], r9d
jbe 0x14001d6c4
mov ebp, eax
mov rdx, qword [rbx + 8]
mov r8d, r11d
add r11d, r12d
mov eax, dword [r15 + r8*4]
mov ecx, dword [rdx + rax*4]
add ecx, dword [rdx + rbp*4]
mov rax, qword [rbx]
mov ecx, dword [rax + rcx*4]
mov dword [r15 + r8*4], ecx
mov rdx, qword [rbx + 8]
mov eax, dword [r14 + r8*4]
mov ecx, dword [rdx + rax*4]
add ecx, dword [rdx + rbp*4]
mov rax, qword [rbx]
mov ecx, dword [rax + rcx*4]
mov dword [r14 + r8*4], ecx
cmp r11d, dword [rbx + 0x14]
jb 0x14001d688
mov r11d, r9d
cmp dword [rbx + 0x1c], r9d
jbe 0x14001d756
cmp r11d, esi
je 0x14001d749
mov ecx, dword [rbx + 0x14]
mov ebp, r9d
mov rax, qword [rbx + 0x28]
imul ecx, r11d
lea r14, [rax + rcx*4]
lea rax, [rdi + rcx*4]
cmp dword [rbx + 0x14], r9d
jbe 0x14001d749
mov r12d, dword [r14 + r13*4]
mov r13, rax
mov rdi, qword [rsp + 0x68]
mov rdx, qword [rbx + 8]
mov r8d, ebp
inc ebp
mov eax, dword [r15 + r8*4]
mov ecx, dword [rdx + rax*4]
add ecx, dword [rdx + r12*4]
mov rax, qword [rbx]
mov ecx, dword [rax + rcx*4]
xor dword [r14 + r8*4], ecx
mov rdx, qword [rbx + 8]
mov eax, dword [rdi + r8*4]
mov ecx, dword [rdx + rax*4]
add ecx, dword [rdx + r12*4]
mov rax, qword [rbx]
mov ecx, dword [rax + rcx*4]
xor dword [r13 + r8*4], ecx
cmp ebp, dword [rbx + 0x14]
jb 0x14001d6fe
mov rdi, qword [rsp + 0x70]
mov r12d, 1
mov r13d, r10d
add r11d, r12d
cmp r11d, dword [rbx + 0x1c]
jb 0x14001d6d1
add esi, r12d
add r10d, r12d
cmp r10d, dword [rbx + 0x14]
jb 0x14001d5ef
mov eax, dword [rbx + 0x14]
imul eax, dword [rbx + 0x1c]
test eax, eax
je 0x14001d78c
mov eax, dword [rdi + r9*4]
mov rcx, qword [rbx + 0x28]
mov dword [rcx + r9*4], eax
add r9d, r12d
mov eax, dword [rbx + 0x14]
imul eax, dword [rbx + 0x1c]
cmp r9d, eax
jb 0x14001d771
mov rcx, rdi
mov rbx, qword [rsp + 0x78]
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
jmp fcn.14002f254