Function at 0x14003df60
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rcx
push rbx
push rsi
push rdi
sub rsp, 0x40
mov rsi, rcx
xor edi, edi
mov rcx, qword [rcx]
mov rbx, rdx
mov dword [rsp + 0x70], edi
cmp dword [rsi + 0x14], edi
jle 0x14003e4f1
mov qword [rsp + 0x68], rbp
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x30], r13
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x20], r15
nop dword [rax]
movsxd rax, dword [rsi + 0x1c]
mov r14, rcx
mov r13d, dword [r14]
lea rcx, [rcx + rax*4]
dec r13d
mov qword [rsp + 0x78], rcx
test r13d, r13d
jle 0x14003e4c9
mov r8d, dword [rsi + 0xc]
add r14, 4
mov rdx, qword [rbx]
add r8d, edi
xor r10d, r10d
mov r9d, dword [r14]
mov eax, dword [rdx + 0xc]
imul eax, r8d
sub r8d, dword [rbx + 0x18]
movsxd rcx, eax
add rcx, qword [rdx]
mov qword [rbx + 0x20], rcx
mov rcx, qword [rbx + 8]
imul r8d, dword [rcx + 0xc]
movsxd rax, r8d
add rax, qword [rcx]
sub r13d, 1
mov qword [rbx + 0x28], rax
js 0x14003e3bb
nop word [rax + rax]
mov ebp, dword [r14 + 4]
lea r14, [r14 + 8]
mov r12d, dword [r14]
mov eax, r9d
mov r11d, r12d
sar eax, 8
sar r11d, 8
cmp r11d, eax
jne 0x14003e03e
mov eax, r12d
sub eax, r9d
imul eax, ebp
add r10d, eax
jmp 0x14003e3a5
movzx ecx, r9b
mov r8d, 0x100
sub r8d, ecx
imul r8d, ebp
add r8d, r10d
sar r8d, 8
test r8d, r8d
jle 0x14003e166
mov rcx, qword [rbx]
mov edx, dword [rcx + 0x10]
mov rcx, qword [rbx + 8]
imul edx, eax
movsxd rdi, edx
mov edx, eax
sub edx, dword [rbx + 0x14]
imul edx, dword [rcx + 0x10]
mov rcx, qword [rbx + 0x28]
add rdi, qword [rbx + 0x20]
movsxd rdx, edx
movzx r9d, byte [rdx + rcx]
mov edx, 0x100
movzx ecx, r9b
mov r10d, ecx
shl r10d, 0x10
or r10d, ecx
cmp r8d, 0xff
jl 0x14003e0ab
imul r10d, dword [rbx + 0x10]
jmp 0x14003e0b8
imul r8d, dword [rbx + 0x10]
sar r8d, 8
imul r10d, r8d
shr r10d, 8
mov r8d, 0x100
and r10d, 0xff00ff
mov ecx, r10d
shr ecx, 0x10
sub edx, ecx
mov ecx, dword [rdi]
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
and r9d, 0xff00ff
add r9d, r10d
add r10d, ecx
mov ecx, r10d
shr ecx, 8
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
mov edx, 0x100
sub edx, ecx
and r8d, 0xff00ff
shl edx, 8
or edx, r10d
xor r8d, edx
mov dword [rdi], r8d
test ebp, ebp
jle 0x14003e39d
inc eax
sub r11d, eax
test r11d, r11d
jle 0x14003e39d
mov r15, qword [rbx]
mov esi, dword [rbx + 0x10]
imul esi, ebp
movsxd rdx, dword [r15 + 0x10]
mov ecx, edx
imul ecx, eax
sub eax, dword [rbx + 0x14]
sar esi, 8
movsxd rdi, ecx
add rdi, qword [rbx + 0x20]
cmp esi, 0xfe
jge 0x14003e29d
mov r15, rdx
nop word [rax + rax]
mov rcx, qword [rbx + 8]
dec r11d
mov edx, dword [rcx + 0x10]
mov rcx, qword [rbx + 0x28]
imul edx, eax
inc eax
movsxd r8, edx
movzx edx, byte [r8 + rcx]
mov r8d, 0x100
mov r10d, edx
shl r10d, 0x10
or r10d, edx
mov edx, 0x100
imul r10d, esi
shr r10d, 8
and r10d, 0xff00ff
mov ecx, r10d
shr ecx, 0x10
sub edx, ecx
mov ecx, dword [rdi]
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
and r9d, 0xff00ff
add r9d, r10d
add r10d, ecx
mov ecx, r10d
shr ecx, 8
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 [rdi], r8d
add rdi, r15
test r11d, r11d
jg 0x14003e1b0
jmp 0x14003e39d
mov r9, qword [rbx + 8]
movsxd r8, dword [r9 + 0x10]
mov ecx, r8d
imul ecx, eax
movsxd r10, ecx
add r10, qword [rbx + 0x28]
cmp edx, r8d
jne 0x14003e2dc
cmp dword [r9 + 8], 1
jne 0x14003e2dc
cmp dword [r15 + 8], 1
jne 0x14003e2dc
imul r8d, r11d
mov rdx, r10
mov rcx, rdi
movsxd r8, r8d
call sub.VCRUNTIME140.dll_memcpy
jmp 0x14003e39d
mov rsi, rdx
mov r15, r8
movzx eax, byte [r10]
mov ecx, 0x100
mov r9d, eax
mov edx, 0x100
shl r9d, 0x10
add r10, r15
or r9d, eax
dec r11d
mov eax, r9d
shr eax, 0x10
sub ecx, eax
mov eax, dword [rdi]
mov r8d, eax
shr eax, 8
and eax, 0xff00ff
and r8d, 0xff00ff
imul eax, ecx
imul r8d, ecx
mov ecx, 0x100
shr eax, 8
and eax, 0xff00ff
shr r8d, 8
and r8d, 0xff00ff
add r8d, r9d
add r9d, eax
mov eax, r9d
shr eax, 8
and eax, 0xff00ff
sub edx, eax
mov eax, r9d
shl eax, 8
shl edx, 8
or edx, eax
mov eax, r8d
shr eax, 8
and eax, 0xff00ff
sub ecx, eax
mov eax, r9d
or ecx, r8d
shr eax, 8
xor edx, ecx
shl r9d, 8
and eax, 0xff00ff
and edx, 0xff00ff
mov ecx, 0x100
sub ecx, eax
shl ecx, 8
or ecx, r9d
xor edx, ecx
mov dword [rdi], edx
add rdi, rsi
test r11d, r11d
jg 0x14003e2e2
movzx r10d, r12b
imul r10d, ebp
sub r13d, 1
mov r9d, r12d
jns 0x14003e010
mov edi, dword [rsp + 0x70]
mov rsi, qword [rsp + 0x60]
sar r10d, 8
test r10d, r10d
jle 0x14003e4c4
mov rax, qword [rbx]
sar r9d, 8
mov ecx, dword [rax + 0x10]
mov rax, qword [rbx + 8]
imul ecx, r9d
sub r9d, dword [rbx + 0x14]
imul r9d, dword [rax + 0x10]
mov rax, qword [rbx + 0x28]
movsxd r11, ecx
add r11, qword [rbx + 0x20]
movsxd rcx, r9d
movzx edx, byte [rcx + rax]
mov ecx, 0x100
movzx eax, dl
mov edx, ecx
mov r9d, eax
shl r9d, 0x10
or r9d, eax
cmp r10d, 0xff
jl 0x14003e419
imul r9d, dword [rbx + 0x10]
jmp 0x14003e426
imul r10d, dword [rbx + 0x10]
sar r10d, 8
imul r9d, r10d
shr r9d, 8
and r9d, 0xff00ff
mov eax, r9d
shr eax, 0x10
sub ecx, eax
mov eax, dword [r11]
mov r8d, eax
shr eax, 8
and eax, 0xff00ff
and r8d, 0xff00ff
imul eax, ecx
imul r8d, ecx
mov ecx, 0x100
shr eax, 8
and eax, 0xff00ff
shr r8d, 8
and r8d, 0xff00ff
add r8d, r9d
add r9d, eax
mov eax, r9d
shr eax, 8
and eax, 0xff00ff
sub edx, eax
mov eax, r9d
shl eax, 8
shl edx, 8
or edx, eax
mov eax, r8d
shr eax, 8
and eax, 0xff00ff
sub ecx, eax
mov eax, r9d
or ecx, r8d
shr eax, 8
xor edx, ecx
shl r9d, 8
and eax, 0xff00ff
mov ecx, 0x100
sub ecx, eax
and edx, 0xff00ff
shl ecx, 8
or ecx, r9d
xor edx, ecx
mov dword [r11], edx
mov rcx, qword [rsp + 0x78]
inc edi
mov dword [rsp + 0x70], edi
cmp edi, dword [rsi + 0x14]
jl 0x14003dfa0
mov r15, qword [rsp + 0x20]
mov r14, qword [rsp + 0x28]
mov r13, qword [rsp + 0x30]
mov r12, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x68]
add rsp, 0x40
pop rdi
pop rsi
pop rbx
ret