Function at 0x14004af10
Capabilities:
Encode data using xor

Disassembly:
mov r11, rsp
push rdi
sub rsp, 0x60
mov rax, qword [rcx + 0x10]
mov rdi, rdx
movsxd rcx, dword [rcx + 0x1c]
shl rcx, 4
add rcx, rax
mov qword [rsp + 0x88], rax
mov qword [rsp + 0x20], rcx
cmp rax, rcx
je 0x14004b231
mov qword [r11 + 0x10], rbx
mov qword [r11 - 0x10], rbp
mov qword [r11 - 0x18], rsi
mov qword [r11 - 0x20], r12
mov qword [r11 - 0x28], r13
mov qword [r11 - 0x30], r14
mov qword [r11 - 0x38], r15
nop dword [rax]
mov r11d, dword [rax]
movsxd r14, dword [rax + 4]
mov r13d, dword [rax + 8]
mov eax, dword [rax + 0xc]
add eax, r14d
mov dword [rsp + 0x80], r11d
mov dword [rsp + 0x70], eax
cmp r14d, eax
jge 0x14004b1f1
mov r12, r14
nop dword [rax]
mov r10, qword [rdi]
mov eax, r14d
sub eax, dword [rdi + 0x18]
mov esi, r11d
mov r9, qword [rdi + 8]
mov r15d, r13d
sub esi, dword [rdi + 0x14]
movsxd rdx, dword [r10 + 0x14]
movsxd rbp, eax
imul rdx, r12
add rdx, qword [r10]
mov qword [rdi + 0x20], rdx
movsxd rax, dword [r9 + 0x14]
imul rbp, rax
add rbp, qword [r9]
mov qword [rdi + 0x28], rbp
movsxd r8, dword [r10 + 0x18]
mov eax, r8d
imul eax, r11d
cdqe
add rax, rdx
cmp dword [rdi + 0x10], 0xfe
jge 0x14004b0d2
mov rbp, r8
nop word [rax + rax]
mov rcx, qword [rdi + 8]
mov edx, esi
inc esi
dec r15d
imul edx, dword [rcx + 0x18]
mov rcx, qword [rdi + 0x28]
movsxd r8, edx
mov edx, 0x100
mov r10d, dword [r8 + rcx]
mov ebx, r10d
shr ebx, 8
and r10d, 0xff00ff
imul r10d, dword [rdi + 0x10]
and ebx, 0xff00ff
imul ebx, dword [rdi + 0x10]
mov r8d, 0x100
shr r10d, 8
shr ebx, 8
and r10d, 0xff00ff
and ebx, 0xff00ff
mov ecx, ebx
shr ecx, 0x10
sub edx, ecx
mov ecx, dword [rax]
mov r11d, ecx
shr ecx, 8
and ecx, 0xff00ff
and r11d, 0xff00ff
imul ecx, edx
imul r11d, edx
mov edx, 0x100
shr ecx, 8
and ecx, 0xff00ff
shr r11d, 8
add ebx, ecx
and r11d, 0xff00ff
add r11d, r10d
mov ecx, ebx
shr ecx, 8
and ecx, 0xff00ff
shl ebx, 8
sub r8d, ecx
mov ecx, r11d
shl r8d, 8
shr ecx, 8
or r8d, ebx
and ecx, 0xff00ff
and r8d, 0xff00ff00
sub edx, ecx
or edx, r11d
and edx, 0xff00ff
xor edx, r8d
mov dword [rax], edx
add rax, rbp
test r15d, r15d
jg 0x14004aff0
jmp 0x14004b1d3
movsxd rdx, dword [r9 + 0x18]
mov ebx, r13d
mov ecx, edx
imul ecx, esi
movsxd r11, ecx
add r11, rbp
cmp r8d, edx
jne 0x14004b10e
cmp dword [r9 + 0x10], 1
jne 0x14004b10e
cmp dword [r10 + 0x10], 1
jne 0x14004b10e
imul edx, r13d
mov rcx, rax
movsxd r8, edx
mov rdx, r11
call fcn.1402a26b0
jmp 0x14004b1d3
mov rsi, r8
mov rbp, rdx
nop dword [rax]
nop dword [rax + rax]
mov r8d, dword [r11]
mov edx, 0x100
mov r10d, r8d
add r11, rbp
and r8d, 0xff00ff
shr r10d, 8
and r10d, 0xff00ff
dec ebx
mov ecx, r10d
shr ecx, 0x10
sub edx, ecx
mov ecx, dword [rax]
mov r9d, ecx
shr ecx, 8
and ecx, 0xff00ff
and r9d, 0xff00ff
imul ecx, edx
imul r9d, edx
mov edx, 0x100
shr ecx, 8
and ecx, 0xff00ff
shr r9d, 8
add r10d, ecx
and r9d, 0xff00ff
add r9d, r8d
mov ecx, r10d
shr ecx, 8
mov r8d, 0x100
and ecx, 0xff00ff
shl r10d, 8
sub r8d, ecx
mov ecx, r9d
shl r8d, 8
shr ecx, 8
or r8d, r10d
and ecx, 0xff00ff
and r8d, 0xff00ff00
sub edx, ecx
or edx, r9d
and edx, 0xff00ff
xor edx, r8d
mov dword [rax], edx
add rax, rsi
test ebx, ebx
jg 0x14004b120
mov r11d, dword [rsp + 0x80]
inc r14d
inc r12
cmp r14d, dword [rsp + 0x70]
jl 0x14004af90
mov rcx, qword [rsp + 0x20]
mov rax, qword [rsp + 0x88]
add rax, 0x10
mov qword [rsp + 0x88], rax
cmp rax, rcx
jne 0x14004af60
mov r15, qword [rsp + 0x30]
mov r14, qword [rsp + 0x38]
mov r13, qword [rsp + 0x40]
mov r12, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rbx, qword [rsp + 0x78]
add rsp, 0x60
pop rdi
ret