Function at 0x14003a0a0
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rcx
push rsi
push rdi
push r15
sub rsp, 0x50
mov r15, rcx
xor edi, edi
mov rcx, qword [rcx]
mov rsi, rdx
mov dword [rsp + 0x88], edi
cmp dword [r15 + 0x14], edi
jle 0x14003a89c
mov qword [rsp + 0x78], rbx
mov qword [rsp + 0x48], rbp
mov qword [rsp + 0x40], r12
mov qword [rsp + 0x38], r13
mov qword [rsp + 0x30], r14
nop dword [rax]
nop word [rax + rax]
movsxd rax, dword [r15 + 0x1c]
mov r14, rcx
mov ebp, dword [r14]
lea rcx, [rcx + rax*4]
dec ebp
mov qword [rsp + 0x20], rcx
test ebp, ebp
jle 0x14003a870
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 ebp, 1
mov qword [rsi + 0x28], rcx
mov dword [rsp + 0x80], ebp
js 0x14003a655
nop dword [rax + rax]
mov r15d, 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 0x14003a19b
mov eax, r12d
sub eax, r9d
imul eax, r15d
add r8d, eax
jmp 0x14003a62f
movzx eax, r9b
mov ecx, 0x100
sub ecx, eax
imul ecx, r15d
lea eax, [r8 + rcx]
cdq
movzx edx, dl
add eax, edx
sar eax, 8
mov r11d, eax
test eax, eax
jle 0x14003a3b8
mov rcx, qword [rsi]
mov eax, edi
imul eax, dword [rcx + 0x18]
mov ecx, edi
sub ecx, dword [rsi + 0x14]
cmp r11d, 0xff
jl 0x14003a2c9
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
sub edx, eax
mov eax, r10d
shl eax, 8
shl edx, 8
or edx, eax
mov eax, r9d
shr eax, 8
and eax, 0xff00ff
sub ecx, eax
mov eax, r10d
or ecx, r9d
shr eax, 8
xor edx, ecx
shl r10d, 8
and eax, 0xff00ff
mov ecx, 0x100
sub ecx, eax
and edx, 0xff00ff
shl ecx, 8
or ecx, r10d
xor edx, ecx
mov dword [r11], edx
jmp 0x14003a3b8
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
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 [r10], edx
test r15d, r15d
jle 0x14003a627
inc edi
sub ebx, edi
test ebx, ebx
jle 0x14003a627
mov r10, qword [rsi]
mov ebp, r15d
imul ebp, dword [rsi + 0x10]
movsxd r8, dword [r10 + 0x18]
mov eax, r8d
imul eax, edi
sub edi, dword [rsi + 0x14]
sar ebp, 8
cdqe
add rax, qword [rsi + 0x20]
cmp ebp, 0xfe
jge 0x14003a504
mov r13, r8
nop dword [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 r9d, dword [r8 + rcx]
mov r11d, r9d
shr r11d, 8
and r9d, 0xff00ff
and r11d, 0xff00ff
imul r9d, ebp
imul r11d, ebp
mov r8d, 0x100
shr r9d, 8
shr r11d, 8
and r9d, 0xff00ff
and r11d, 0xff00ff
mov ecx, r11d
shr ecx, 0x10
sub edx, ecx
mov ecx, dword [rax]
mov r10d, ecx
shr ecx, 8
and ecx, 0xff00ff
and r10d, 0xff00ff
imul ecx, edx
imul r10d, edx
mov edx, 0x100
shr ecx, 8
and ecx, 0xff00ff
shr r10d, 8
add r11d, ecx
and r10d, 0xff00ff
add r10d, r9d
mov ecx, r11d
shr ecx, 8
and ecx, 0xff00ff
sub r8d, ecx
mov ecx, r11d
shl ecx, 8
shl r8d, 8
or r8d, ecx
mov ecx, r10d
shr ecx, 8
and ecx, 0xff00ff
sub edx, ecx
mov ecx, r11d
or edx, r10d
shr ecx, 8
xor r8d, edx
shl r11d, 8
and ecx, 0xff00ff
and r8d, 0xff00ff
mov edx, 0x100
sub edx, ecx
shl edx, 8
or edx, r11d
xor r8d, edx
mov dword [rax], r8d
add rax, r13
test ebx, ebx
jg 0x14003a400
jmp 0x14003a620
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 0x14003a541
cmp dword [r9 + 0x10], 1
jne 0x14003a541
cmp dword [r10 + 0x10], 1
jne 0x14003a541
imul edx, ebx
mov rcx, rax
movsxd r8, edx
mov rdx, r11
call fcn.1400dd3e0
jmp 0x14003a620
mov rdi, r8
mov rbp, rdx
nop word [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
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, rdi
test ebx, ebx
jg 0x14003a550
mov ebp, dword [rsp + 0x80]
movzx r8d, r12b
imul r8d, r15d
sub ebp, 1
mov r9d, r12d
mov dword [rsp + 0x80], ebp
jns 0x14003a160
mov r10, qword [rsi]
mov rbx, qword [rsi + 8]
mov edi, dword [rsp + 0x88]
mov r15, qword [rsp + 0x70]
mov eax, r8d
cdq
movzx edx, dl
add eax, edx
sar eax, 8
mov r11d, eax
test eax, eax
jle 0x14003a86b
mov eax, r9d
cdq
movzx edx, dl
add eax, edx
sar eax, 8
mov edx, eax
cmp r11d, 0xff
jl 0x14003a779
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 [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
sub edx, eax
mov eax, r10d
shl eax, 8
shl edx, 8
or edx, eax
mov eax, r9d
shr eax, 8
and eax, 0xff00ff
sub ecx, eax
mov eax, r10d
or ecx, r9d
shr eax, 8
xor edx, ecx
shl r10d, 8
and eax, 0xff00ff
mov ecx, 0x100
sub ecx, eax
and edx, 0xff00ff
shl ecx, 8
or ecx, r10d
xor edx, ecx
mov dword [r11], edx
jmp 0x14003a86b
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 r8d, dword [rcx + rax]
mov r9d, r8d
shr r9d, 8
and r8d, 0xff00ff
and r9d, 0xff00ff
imul r8d, r11d
imul r9d, r11d
mov ecx, 0x100
shr r8d, 8
shr r9d, 8
and r8d, 0xff00ff
and r9d, 0xff00ff
mov eax, r9d
shr eax, 0x10
sub ecx, eax
mov eax, edx
and eax, 0xff00ff
shr edx, 8
imul eax, ecx
and edx, 0xff00ff
imul edx, ecx
mov ecx, 0x100
shr eax, 8
and eax, 0xff00ff
shr edx, 8
add r8d, eax
and edx, 0xff00ff
add r9d, edx
mov edx, 0x100
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 [r10], edx
mov rcx, qword [rsp + 0x20]
inc edi
mov dword [rsp + 0x88], edi
cmp edi, dword [r15 + 0x14]
jl 0x14003a0f0
mov r14, qword [rsp + 0x30]
mov r13, qword [rsp + 0x38]
mov r12, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x78]
add rsp, 0x50
pop r15
pop rdi
pop rsi
ret