Function at 0x14003bca0
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 0x14003c3de
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 0x14003c3b5
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 0x14003c1d8
nop word [rax + rax]
mov ebp, dword [r14 + 4]
lea r14, [r14 + 8]
mov r15d, dword [r14]
mov eax, r15d
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 0x14003bd8a
mov eax, r15d
sub eax, r9d
imul eax, ebp
add r8d, eax
jmp 0x14003c1bb
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 0x14003bf7f
mov rax, qword [rsi]
mov ecx, dword [rax + 0x18]
mov eax, dword [rsi + 0x14]
imul ecx, edi
cmp r11d, 0xff
jl 0x14003bea6
movsxd r11, ecx
mov edx, 0x100
add r11, qword [rsi + 0x20]
mov ecx, edi
sub ecx, eax
mov rax, qword [rsi + 8]
mov r8d, dword [r11]
imul ecx, dword [rax + 0x18]
mov rax, qword [rsi + 0x28]
movsxd rcx, ecx
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, r8d
and eax, 0xff00ff
shr r8d, 8
imul eax, ecx
and r8d, 0xff00ff
imul r8d, ecx
mov ecx, 0x100
shr eax, 8
and eax, 0xff00ff
shr r8d, 8
add r10d, eax
and r8d, 0xff00ff
add r9d, r8d
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 0x14003bf7f
imul r11d, dword [rsi + 0x10]
movsxd r10, ecx
mov ecx, edi
add r10, qword [rsi + 0x20]
sub ecx, eax
mov rax, qword [rsi + 8]
sar r11d, 8
mov edx, dword [r10]
imul ecx, dword [rax + 0x18]
mov rax, qword [rsi + 0x28]
movsxd rcx, ecx
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
test ebp, ebp
jle 0x14003c1b3
inc edi
sub ebx, edi
test ebx, ebx
jle 0x14003c1b3
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 0x14003c0b9
mov r12, r8
nop word [rax + rax]
mov rcx, qword [rsi + 8]
mov edx, edi
mov r8d, dword [rax]
inc edi
dec ebx
imul edx, dword [rcx + 0x18]
mov rcx, qword [rsi + 0x28]
movsxd rdx, edx
mov r10d, dword [rdx + rcx]
mov r9d, r10d
shr r9d, 8
and r10d, 0xff00ff
and r9d, 0xff00ff
imul r10d, r11d
imul r9d, r11d
mov edx, 0x100
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, r12
test ebx, ebx
jg 0x14003bfd0
jmp 0x14003c1b3
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 0x14003c0f6
cmp dword [r9 + 0x10], 1
jne 0x14003c0f6
cmp dword [r10 + 0x10], 1
jne 0x14003c0f6
imul edx, ebx
mov rcx, rax
movsxd r8, edx
mov rdx, r11
call fcn.140279770
jmp 0x14003c1b3
mov rdi, r8
mov r12, rdx
nop dword [rax]
mov r8d, dword [r11]
mov edx, 0x100
mov r10d, r8d
add r11, r12
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 0x14003c100
movzx r8d, r15b
imul r8d, ebp
sub r13d, 1
mov r9d, r15d
jns 0x14003bd50
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 0x14003c3b0
mov ecx, dword [r10 + 0x18]
mov eax, r9d
cdq
movzx edx, dl
add eax, edx
mov edx, dword [rsi + 0x14]
sar eax, 8
imul ecx, eax
sub eax, edx
imul eax, dword [rbx + 0x18]
cmp r11d, 0xff
jl 0x14003c2e3
movsxd r11, ecx
add r11, qword [rsi + 0x20]
movsxd rcx, eax
mov rax, qword [rsi + 0x28]
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 0x14003c3b0
imul r11d, dword [rsi + 0x10]
movsxd r10, ecx
add r10, qword [rsi + 0x20]
movsxd rcx, eax
mov rax, qword [rsi + 0x28]
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 0x14003bce0
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