Function at 0x140041810
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.140054c7c
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.140055c00
xor r11d, r11d
mov edx, r11d
mov ecx, r11d
cmp dword [rbx + 0x1c], r11d
jbe 0x1400418a3
mov r8, qword [rbx + 0x20]
mov eax, ecx
cmp byte [rax + r8], r11b
je 0x14004188b
inc ecx
cmp byte [rcx + r8], r11b
jne 0x140041883
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 0x140041877
mov esi, r11d
mov r8d, r11d
mov r10, r11
cmp dword [rbx + 0x14], r11d
jbe 0x140041a60
mov rax, qword [rbx + 0x20]
mov ecx, r8d
cmp byte [rcx + rax], r11b
je 0x140041903
mov edx, dword [rbx + 0x1c]
cmp r8d, dword [rbx + 0x14]
jae 0x140041907
mov r9d, r11d
cmp edx, r11d
jbe 0x1400418f3
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 0x1400418d4
mov rax, qword [rbx + 0x20]
inc r8d
inc r10
cmp byte [r8 + rax], r11b
jne 0x1400418c6
cmp r8d, dword [rbx + 0x14]
je 0x140041a60
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 0x140041932
mov eax, r11d
jmp 0x140041948
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 0x14004199a
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 0x14004195d
mov r9d, r11d
cmp dword [rbx + 0x1c], r11d
jbe 0x140041a4e
mov edx, dword [rbx + 0x14]
cmp r9d, esi
je 0x140041a41
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 0x140041a41
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 0x1400419f0
mov rdi, qword [rsp + 0x80]
mov r14, qword [rsp + 0x88]
xor r11d, r11d
inc r9d
cmp r9d, dword [rbx + 0x1c]
jb 0x1400419aa
inc r8d
inc esi
inc r10
cmp r8d, dword [rbx + 0x14]
jb 0x1400418b6
mov eax, dword [rbx + 0x14]
imul eax, dword [rbx + 0x1c]
cmp eax, r11d
jbe 0x140041a8c
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 0x140041a6f
mov rcx, rdi
add rsp, 0x28
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
jmp fcn.140055d7c