Function at 0x14004c0b0
Capabilities:
Encode data using xor

Disassembly:
push rdi
push r13
sub rsp, 0x58
mov r13, qword [rcx + 0x10]
mov rdi, rdx
movsxd rax, dword [rcx + 0x1c]
shl rax, 4
add rax, r13
mov qword [rsp + 0x88], r13
mov qword [rsp + 0x20], rax
cmp r13, rax
je 0x14004c3ee
mov qword [rsp + 0x78], rbx
mov qword [rsp + 0x50], rbp
mov qword [rsp + 0x48], rsi
mov qword [rsp + 0x40], r12
mov qword [rsp + 0x38], r14
mov qword [rsp + 0x30], r15
nop
mov eax, dword [r13]
mov r14d, dword [r13 + 4]
mov r12d, dword [r13 + 8]
mov dword [rsp + 0x70], eax
mov eax, dword [r13 + 0xc]
add eax, r14d
mov dword [rsp + 0x80], eax
cmp r14d, eax
jge 0x14004c3b9
mov r13d, dword [rsp + 0x70]
nop dword [rax]
mov r10, qword [rdi]
mov esi, r13d
mov r9, qword [rdi + 8]
mov r15d, r12d
sub esi, dword [rdi + 0x14]
mov eax, dword [r10 + 0xc]
imul eax, r14d
movsxd rdx, eax
mov eax, r14d
sub eax, dword [rdi + 0x18]
add rdx, qword [r10]
mov qword [rdi + 0x20], rdx
imul eax, dword [r9 + 0xc]
movsxd rbp, eax
add rbp, qword [r9]
mov qword [rdi + 0x28], rbp
movsxd r8, dword [r10 + 0x10]
mov eax, r8d
imul eax, r13d
cdqe
add rax, rdx
cmp dword [rdi + 0x10], 0xfe
jge 0x14004c28c
mov rbp, r8
nop word [rax + rax]
mov rcx, qword [rdi + 8]
dec r15d
mov edx, dword [rcx + 0x10]
mov rcx, qword [rdi + 0x28]
imul edx, esi
inc esi
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
sub r8d, ecx
mov ecx, ebx
shl ecx, 8
shl r8d, 8
or r8d, ecx
mov ecx, r11d
shr ecx, 8
and ecx, 0xff00ff
sub edx, ecx
mov ecx, ebx
or edx, r11d
shr ecx, 8
xor r8d, edx
shl ebx, 8
and ecx, 0xff00ff
and r8d, 0xff00ff
mov edx, 0x100
sub edx, ecx
shl edx, 8
or edx, ebx
xor r8d, edx
mov dword [rax], r8d
add rax, rbp
test r15d, r15d
jg 0x14004c190
jmp 0x14004c3a0
movsxd rdx, dword [r9 + 0x10]
mov ebx, r12d
mov ecx, edx
imul ecx, esi
movsxd r11, ecx
add r11, rbp
cmp r8d, edx
jne 0x14004c2c8
cmp dword [r9 + 8], 1
jne 0x14004c2c8
cmp dword [r10 + 8], 1
jne 0x14004c2c8
imul edx, r12d
mov rcx, rax
movsxd r8, edx
mov rdx, r11
call sub.VCRUNTIME140.dll_memcpy
jmp 0x14004c3a0
mov rsi, r8
mov rbp, rdx
nop
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
sub r8d, ecx
mov ecx, r10d
shl ecx, 8
shl r8d, 8
or r8d, ecx
mov ecx, r9d
shr ecx, 8
and ecx, 0xff00ff
sub edx, ecx
mov ecx, r10d
or edx, r9d
shr ecx, 8
xor r8d, edx
shl r10d, 8
and ecx, 0xff00ff
and r8d, 0xff00ff
mov edx, 0x100
sub edx, ecx
shl edx, 8
or edx, r10d
xor r8d, edx
mov dword [rax], r8d
add rax, rsi
test ebx, ebx
jg 0x14004c2d0
inc r14d
cmp r14d, dword [rsp + 0x80]
jl 0x14004c130
mov r13, qword [rsp + 0x88]
add r13, 0x10
mov qword [rsp + 0x88], r13
cmp r13, qword [rsp + 0x20]
jne 0x14004c100
mov r15, qword [rsp + 0x30]
mov r14, qword [rsp + 0x38]
mov r12, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x78]
add rsp, 0x58
pop r13
pop rdi
ret