Function at 0x14003a650
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rcx
push rsi
push rdi
push r15
sub rsp, 0x40
mov r15, rcx
xor edi, edi
mov rcx, qword [rcx]
mov rsi, rdx
mov dword [rsp + 0x70], edi
cmp dword [r15 + 0x14], edi
jle 0x14003ad8a
mov qword [rsp + 0x68], rbx
mov qword [rsp + 0x38], rbp
mov qword [rsp + 0x30], r12
mov qword [rsp + 0x28], r13
mov qword [rsp + 0x20], r14
nop
movsxd rax, dword [r15 + 0x1c]
mov r14, rcx
mov r13d, dword [r14]
lea rcx, [rcx + rax*4]
dec r13d
mov qword [rsp + 0x78], rcx
test r13d, r13d
jle 0x14003ad61
mov edx, dword [r15 + 0xc]
add r14, 4
mov r10, qword [rsi]
add edx, edi
mov rbx, qword [rsi + 8]
xor r8d, r8d
movsxd rax, edx
mov r9d, dword [r14]
movsxd rcx, dword [r10 + 0x14]
sub edx, dword [rsi + 0x18]
imul rcx, rax
add rcx, qword [r10]
mov qword [rsi + 0x20], rcx
movsxd rax, dword [rbx + 0x14]
movsxd rcx, edx
imul rcx, rax
add rcx, qword [rbx]
sub r13d, 1
mov qword [rsi + 0x28], rcx
js 0x14003ab78
nop word [rax + rax]
mov ebp, dword [r14 + 4]
lea r14, [r14 + 8]
mov r12d, dword [r14]
mov eax, r12d
cdq
movzx ebx, dl
add ebx, eax
mov eax, r9d
cdq
sar ebx, 8
movzx edx, dl
add eax, edx
sar eax, 8
mov edi, eax
cmp ebx, eax
jne 0x14003a73a
mov eax, r12d
sub eax, r9d
imul eax, ebp
add r8d, eax
jmp 0x14003ab5b
movzx eax, r9b
mov ecx, 0x100
sub ecx, eax
imul ecx, ebp
lea eax, [r8 + rcx]
cdq
movzx edx, dl
add eax, edx
sar eax, 8
mov r11d, eax
test eax, eax
jle 0x14003a924
mov rcx, qword [rsi]
mov eax, edi
imul eax, dword [rcx + 0x18]
mov ecx, edi
sub ecx, dword [rsi + 0x14]
cmp r11d, 0xff
jl 0x14003a84e
movsxd r11, eax
mov rax, qword [rsi + 8]
add r11, qword [rsi + 0x20]
imul ecx, dword [rax + 0x18]
mov rax, qword [rsi + 0x28]
movsxd rcx, ecx
mov edx, dword [rcx + rax]
mov r10d, edx
and edx, 0xff00ff
shr r10d, 8
imul edx, dword [rsi + 0x10]
and r10d, 0xff00ff
imul r10d, dword [rsi + 0x10]
mov ecx, 0x100
shr edx, 8
and edx, 0xff00ff
shr r10d, 8
and r10d, 0xff00ff
mov eax, r10d
shr eax, 0x10
sub ecx, eax
mov eax, dword [r11]
mov r9d, eax
shr eax, 8
and eax, 0xff00ff
and r9d, 0xff00ff
imul eax, ecx
imul r9d, ecx
mov ecx, 0x100
shr eax, 8
and eax, 0xff00ff
shr r9d, 8
add r10d, eax
and r9d, 0xff00ff
add r9d, edx
mov eax, r10d
shr eax, 8
mov edx, 0x100
and eax, 0xff00ff
shl r10d, 8
sub edx, eax
mov eax, r9d
shl edx, 8
shr eax, 8
or edx, r10d
and eax, 0xff00ff
and edx, 0xff00ff00
sub ecx, eax
or ecx, r9d
and ecx, 0xff00ff
xor ecx, edx
mov dword [r11], ecx
jmp 0x14003a924
imul r11d, dword [rsi + 0x10]
movsxd r10, eax
mov rax, qword [rsi + 8]
add r10, qword [rsi + 0x20]
sar r11d, 8
imul ecx, dword [rax + 0x18]
mov rax, qword [rsi + 0x28]
movsxd rcx, ecx
mov edx, dword [rcx + rax]
mov r9d, edx
and edx, 0xff00ff
shr r9d, 8
imul edx, r11d
and r9d, 0xff00ff
imul r9d, r11d
mov ecx, 0x100
shr edx, 8
and edx, 0xff00ff
shr r9d, 8
and r9d, 0xff00ff
mov eax, r9d
shr eax, 0x10
sub ecx, eax
mov eax, dword [r10]
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
add r9d, eax
and r8d, 0xff00ff
add r8d, edx
mov eax, r9d
shr eax, 8
mov edx, 0x100
and eax, 0xff00ff
shl r9d, 8
sub edx, eax
mov eax, r8d
shl edx, 8
shr eax, 8
or edx, r9d
and eax, 0xff00ff
and edx, 0xff00ff00
sub ecx, eax
or ecx, r8d
and ecx, 0xff00ff
xor ecx, edx
mov dword [r10], ecx
test ebp, ebp
jle 0x14003ab53
inc edi
sub ebx, edi
test ebx, ebx
jle 0x14003ab53
mov r10, qword [rsi]
mov r11d, ebp
imul r11d, dword [rsi + 0x10]
movsxd r8, dword [r10 + 0x18]
mov eax, r8d
imul eax, edi
sub edi, dword [rsi + 0x14]
sar r11d, 8
cdqe
add rax, qword [rsi + 0x20]
cmp r11d, 0xfe
jge 0x14003aa59
mov r15, r8
nop word [rax + rax]
mov rcx, qword [rsi + 8]
mov edx, edi
inc edi
dec ebx
imul edx, dword [rcx + 0x18]
mov rcx, qword [rsi + 0x28]
movsxd r8, edx
mov edx, 0x100
mov r10d, dword [r8 + rcx]
mov r9d, r10d
mov r8d, dword [rax]
and r10d, 0xff00ff
shr r9d, 8
and r9d, 0xff00ff
imul r10d, r11d
imul r9d, r11d
shr r10d, 8
shr r9d, 8
and r10d, 0xff00ff
and r9d, 0xff00ff
mov ecx, r9d
shr ecx, 0x10
sub edx, ecx
mov ecx, r8d
shr r8d, 8
and ecx, 0xff00ff
imul ecx, edx
and r8d, 0xff00ff
imul r8d, edx
mov edx, 0x100
shr ecx, 8
and ecx, 0xff00ff
shr r8d, 8
add r10d, ecx
and r8d, 0xff00ff
add r9d, r8d
mov r8d, 0x100
mov ecx, r9d
shl r9d, 8
shr ecx, 8
and ecx, 0xff00ff
sub r8d, ecx
mov ecx, r10d
shl r8d, 8
shr ecx, 8
or r8d, r9d
and ecx, 0xff00ff
and r8d, 0xff00ff00
sub edx, ecx
or edx, r10d
and edx, 0xff00ff
xor edx, r8d
mov dword [rax], edx
add rax, r15
test ebx, ebx
jg 0x14003a970
jmp 0x14003ab53
mov r9, qword [rsi + 8]
movsxd rdx, dword [r9 + 0x18]
mov ecx, edx
imul ecx, edi
movsxd r11, ecx
add r11, qword [rsi + 0x28]
cmp r8d, edx
jne 0x14003aa96
cmp dword [r9 + 0x10], 1
jne 0x14003aa96
cmp dword [r10 + 0x10], 1
jne 0x14003aa96
imul edx, ebx
mov rcx, rax
movsxd r8, edx
mov rdx, r11
call fcn.1402a26b0
jmp 0x14003ab53
mov rdi, r8
mov r15, rdx
nop dword [rax]
mov r8d, dword [r11]
mov edx, 0x100
mov r10d, r8d
add r11, r15
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, rdi
test ebx, ebx
jg 0x14003aaa0
movzx r8d, r12b
imul r8d, ebp
sub r13d, 1
mov r9d, r12d
jns 0x14003a700
mov r10, qword [rsi]
mov rbx, qword [rsi + 8]
mov edi, dword [rsp + 0x70]
mov r15, qword [rsp + 0x60]
mov eax, r8d
cdq
movzx edx, dl
add eax, edx
sar eax, 8
mov r11d, eax
test eax, eax
jle 0x14003ad5c
mov eax, r9d
cdq
movzx edx, dl
add eax, edx
sar eax, 8
mov edx, eax
cmp r11d, 0xff
jl 0x14003ac83
sub edx, dword [rsi + 0x14]
mov ecx, eax
imul ecx, dword [r10 + 0x18]
imul edx, dword [rbx + 0x18]
mov rax, qword [rsi + 0x28]
movsxd r11, ecx
add r11, qword [rsi + 0x20]
movsxd rcx, edx
mov edx, dword [r11]
mov r10d, dword [rcx + rax]
mov r9d, r10d
shr r9d, 8
and r10d, 0xff00ff
imul r10d, dword [rsi + 0x10]
and r9d, 0xff00ff
imul r9d, dword [rsi + 0x10]
mov ecx, 0x100
shr r10d, 8
shr r9d, 8
and r10d, 0xff00ff
and r9d, 0xff00ff
mov eax, r9d
shr eax, 0x10
sub ecx, eax
mov eax, edx
shr edx, 8
and eax, 0xff00ff
imul eax, ecx
and edx, 0xff00ff
imul edx, ecx
mov ecx, 0x100
shr eax, 8
and eax, 0xff00ff
shr edx, 8
add r10d, eax
and edx, 0xff00ff
add r9d, edx
mov edx, 0x100
mov eax, r9d
shl r9d, 8
shr eax, 8
and eax, 0xff00ff
sub edx, eax
mov eax, r10d
shl edx, 8
shr eax, 8
or edx, r9d
and eax, 0xff00ff
and edx, 0xff00ff00
sub ecx, eax
or ecx, r10d
and ecx, 0xff00ff
xor ecx, edx
mov dword [r11], ecx
jmp 0x14003ad5c
imul eax, dword [r10 + 0x18]
sub edx, dword [rsi + 0x14]
imul edx, dword [rbx + 0x18]
imul r11d, dword [rsi + 0x10]
movsxd r10, eax
mov rax, qword [rsi + 0x28]
add r10, qword [rsi + 0x20]
movsxd rcx, edx
sar r11d, 8
mov edx, dword [r10]
mov r9d, dword [rcx + rax]
mov r8d, r9d
shr r8d, 8
and r9d, 0xff00ff
and r8d, 0xff00ff
imul r9d, r11d
imul r8d, r11d
mov ecx, 0x100
shr r9d, 8
shr r8d, 8
and r9d, 0xff00ff
and r8d, 0xff00ff
mov eax, r8d
shr eax, 0x10
sub ecx, eax
mov eax, edx
shr edx, 8
and eax, 0xff00ff
imul eax, ecx
and edx, 0xff00ff
imul edx, ecx
mov ecx, 0x100
shr eax, 8
and eax, 0xff00ff
shr edx, 8
add r9d, eax
and edx, 0xff00ff
add r8d, edx
mov edx, 0x100
mov eax, r8d
shl r8d, 8
shr eax, 8
and eax, 0xff00ff
sub edx, eax
mov eax, r9d
shl edx, 8
shr eax, 8
or edx, r8d
and eax, 0xff00ff
and edx, 0xff00ff00
sub ecx, eax
or ecx, r9d
and ecx, 0xff00ff
xor ecx, edx
mov dword [r10], ecx
mov rcx, qword [rsp + 0x78]
inc edi
mov dword [rsp + 0x70], edi
cmp edi, dword [r15 + 0x14]
jl 0x14003a690
mov r14, qword [rsp + 0x20]
mov r13, qword [rsp + 0x28]
mov r12, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x68]
add rsp, 0x40
pop r15
pop rdi
pop rsi
ret