Function at 0x140047000
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.14005adfc
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.14005d080
xor r9d, r9d
mov edx, r9d
mov ecx, r9d
lea r12d, [r9 + 1]
cmp dword [rbx + 0x1c], r9d
jbe 0x140047097
mov r8, qword [rbx + 0x20]
mov eax, ecx
cmp byte [rax + r8], r9b
je 0x140047080
add ecx, r12d
cmp byte [rcx + r8], r9b
jne 0x140047077
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 0x14004706b
mov esi, r9d
mov r10d, r9d
cmp dword [rbx + 0x14], r9d
jbe 0x14004721e
mov rax, qword [rbx + 0x20]
mov ecx, r10d
cmp byte [rcx + rax], r9b
je 0x1400470f0
mov edx, dword [rbx + 0x1c]
cmp r10d, dword [rbx + 0x14]
jae 0x1400470f4
mov r8d, r9d
test edx, edx
je 0x1400470e3
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 0x1400470c4
mov rax, qword [rbx + 0x20]
add r10d, r12d
cmp byte [r10 + rax], r9b
jne 0x1400470b7
cmp r10d, dword [rbx + 0x14]
je 0x14004721e
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 0x14004711f
mov eax, r9d
jmp 0x140047135
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 0x14004717c
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 0x140047140
mov r11d, r9d
cmp dword [rbx + 0x1c], r9d
jbe 0x14004720e
cmp r11d, esi
je 0x140047201
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 0x140047201
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 0x1400471b6
mov rdi, qword [rsp + 0x70]
mov r12d, 1
mov r13d, r10d
add r11d, r12d
cmp r11d, dword [rbx + 0x1c]
jb 0x140047189
add esi, r12d
add r10d, r12d
cmp r10d, dword [rbx + 0x14]
jb 0x1400470a7
mov eax, dword [rbx + 0x14]
imul eax, dword [rbx + 0x1c]
test eax, eax
je 0x140047244
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 0x140047229
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.14005ae04