Function at 0x140046e00
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.14005ac18
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.14005ce90
xor r9d, r9d
mov edx, r9d
mov ecx, r9d
lea r12d, [r9 + 1]
cmp dword [rbx + 0x1c], r9d
jbe 0x140046e97
mov r8, qword [rbx + 0x20]
mov eax, ecx
cmp byte [rax + r8], r9b
je 0x140046e80
add ecx, r12d
cmp byte [rcx + r8], r9b
jne 0x140046e77
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 0x140046e6b
mov esi, r9d
mov r10d, r9d
cmp dword [rbx + 0x14], r9d
jbe 0x14004701e
mov rax, qword [rbx + 0x20]
mov ecx, r10d
cmp byte [rcx + rax], r9b
je 0x140046ef0
mov edx, dword [rbx + 0x1c]
cmp r10d, dword [rbx + 0x14]
jae 0x140046ef4
mov r8d, r9d
test edx, edx
je 0x140046ee3
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 0x140046ec4
mov rax, qword [rbx + 0x20]
add r10d, r12d
cmp byte [r10 + rax], r9b
jne 0x140046eb7
cmp r10d, dword [rbx + 0x14]
je 0x14004701e
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 0x140046f1f
mov eax, r9d
jmp 0x140046f35
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 0x140046f7c
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 0x140046f40
mov r11d, r9d
cmp dword [rbx + 0x1c], r9d
jbe 0x14004700e
cmp r11d, esi
je 0x140047001
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 0x140047001
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 0x140046fb6
mov rdi, qword [rsp + 0x70]
mov r12d, 1
mov r13d, r10d
add r11d, r12d
cmp r11d, dword [rbx + 0x1c]
jb 0x140046f89
add esi, r12d
add r10d, r12d
cmp r10d, dword [rbx + 0x14]
jb 0x140046ea7
mov eax, dword [rbx + 0x14]
imul eax, dword [rbx + 0x1c]
test eax, eax
je 0x140047044
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 0x140047029
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.14005ac10