Function at 0x14002c8f4
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.1400413a8
mov r8d, dword [rbx + 0x14]
xor edx, edx
imul r8d, dword [rbx + 0x1c]
mov rcx, rax
mov rsi, rax
mov qword [rsp + 0x70], rax
shl r8, 2
call fcn.140043280
mov edx, dword [rbx + 0x1c]
xor r9d, r9d
mov r8d, r9d
mov ecx, r9d
test edx, edx
je 0x14002c98d
mov rdx, qword [rbx + 0x20]
mov eax, ecx
cmp byte [rax + rdx], r9b
je 0x14002c970
inc ecx
cmp byte [rcx + rdx], r9b
jne 0x14002c968
mov eax, r8d
inc r8d
imul eax, dword [rbx + 0x14]
add eax, ecx
inc ecx
mov dword [rsi + rax*4], 1
mov edx, dword [rbx + 0x1c]
cmp r8d, edx
jb 0x14002c95c
mov r8d, dword [rbx + 0x14]
mov r15, rbx
mov r14d, r9d
mov r10d, r9d
test r8d, r8d
je 0x14002cb35
mov r11d, r8d
mov edi, edx
mov rax, qword [r15 + 0x20]
mov r8d, r11d
mov ecx, r10d
mov edx, edi
cmp byte [rcx + rax], r9b
je 0x14002c9fd
mov r8d, r11d
mov edx, edi
cmp r10d, r11d
jae 0x14002c9fd
mov ebp, r9d
test edi, edi
je 0x14002c9eb
mov rax, qword [rbx + 0x28]
mov edx, ebp
imul edx, dword [rbx + 0x14]
inc ebp
add edx, r10d
mov ecx, dword [rax + rdx*4]
xor dword [rsi + rdx*4], ecx
mov edx, dword [rbx + 0x1c]
cmp ebp, edx
jb 0x14002c9cb
mov r8d, dword [rbx + 0x14]
mov rax, qword [r15 + 0x20]
inc r10d
mov r11d, r8d
mov edi, edx
cmp byte [r10 + rax], r9b
jne 0x14002c9ba
cmp r10d, r8d
je 0x14002cb35
mov rax, qword [rbx + 0x28]
mov ecx, r8d
imul ecx, r14d
lea r13, [rax + rcx*4]
mov eax, r10d
lea r12, [rsi + rcx*4]
mov qword [rsp + 0x68], r12
cmp dword [r13 + rax*4], r9d
jne 0x14002ca2d
mov eax, r9d
jmp 0x14002ca44
mov edx, dword [r13 + rax*4]
mov ecx, 0xffff
mov rax, qword [rbx + 8]
sub ecx, dword [rax + rdx*4]
mov rax, qword [rbx]
mov eax, dword [rax + rcx*4]
mov r11d, r9d
test r8d, r8d
je 0x14002ca8c
mov edi, eax
mov rdx, qword [rbx + 8]
mov r8d, r11d
inc r11d
mov eax, dword [r13 + r8*4]
mov ecx, dword [rdx + rax*4]
add ecx, dword [rdx + rdi*4]
mov rax, qword [rbx]
mov ecx, dword [rax + rcx*4]
mov dword [r13 + r8*4], ecx
mov rdx, qword [rbx + 8]
mov eax, dword [r12 + r8*4]
mov ecx, dword [rdx + rax*4]
add ecx, dword [rdx + rdi*4]
mov rax, qword [rbx]
mov ecx, dword [rax + rcx*4]
mov dword [r12 + r8*4], ecx
cmp r11d, dword [rbx + 0x14]
jb 0x14002ca4e
mov edx, dword [rbx + 0x1c]
mov r11d, r9d
test edx, edx
je 0x14002cb1d
mov r15d, r10d
cmp r11d, r14d
je 0x14002cb0f
mov ecx, dword [rbx + 0x14]
mov ebp, r9d
mov rax, qword [rbx + 0x28]
imul ecx, r11d
lea rdi, [rax + rcx*4]
lea rax, [rsi + rcx*4]
cmp dword [rbx + 0x14], r9d
jbe 0x14002cb0f
mov r12d, dword [rdi + r15*4]
mov rsi, rax
mov r15, qword [rsp + 0x68]
mov rdx, qword [rbx + 8]
mov r8d, ebp
inc ebp
mov eax, dword [r13 + 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 [rdi + r8*4], ecx
mov rdx, qword [rbx + 8]
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 [rsi + r8*4], ecx
cmp ebp, dword [rbx + 0x14]
jb 0x14002caca
mov rsi, qword [rsp + 0x70]
mov r15d, r10d
mov edx, dword [rbx + 0x1c]
inc r11d
cmp r11d, edx
jb 0x14002ca9d
mov r15, rbx
mov r8d, dword [rbx + 0x14]
inc r14d
inc r10d
mov r11d, r8d
mov edi, edx
cmp r10d, r8d
jb 0x14002c9a8
imul r8d, edx
test r8d, r8d
je 0x14002cb59
mov eax, dword [rsi + r9*4]
mov rcx, qword [rbx + 0x28]
mov dword [rcx + r9*4], eax
inc r9d
mov eax, dword [rbx + 0x14]
imul eax, dword [rbx + 0x1c]
cmp r9d, eax
jb 0x14002cb3e
mov rcx, rsi
mov rbx, qword [rsp + 0x78]
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
jmp fcn.140040ed4