Function at 0x14003c1e0
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rcx
push rbx
push rsi
push rdi
sub rsp, 0x40
mov rsi, rcx
xor ebx, ebx
mov rcx, qword [rcx]
mov rdi, rdx
mov dword [rsp + 0x70], ebx
cmp dword [rsi + 0x14], ebx
jle 0x14003c71b
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 0x14003c6f3
mov edx, dword [rsi + 0xc]
add r14, 4
mov r10, qword [rdi]
add edx, ebx
mov r11, qword [rdi + 8]
xor r8d, r8d
movsxd rax, edx
mov r9d, dword [r14]
movsxd rcx, dword [r10 + 0x14]
sub edx, dword [rdi + 0x18]
imul rcx, rax
add rcx, qword [r10]
mov qword [rdi + 0x20], rcx
movsxd rax, dword [r11 + 0x14]
movsxd rcx, edx
imul rcx, rax
add rcx, qword [r11]
sub r13d, 1
mov qword [rdi + 0x28], rcx
js 0x14003c5f5
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 ecx, eax
cmp ebx, eax
jne 0x14003c2ca
mov eax, r15d
sub eax, r9d
imul eax, ebp
add r8d, eax
jmp 0x14003c5d8
movzx eax, r9b
mov edx, 0x100
sub edx, eax
imul edx, ebp
lea eax, [r8 + rdx]
cdq
movzx edx, dl
add eax, edx
sar eax, 8
mov r9d, eax
test eax, eax
jle 0x14003c3d1
mov rdx, qword [rdi]
mov eax, ecx
imul eax, dword [rdx + 0x18]
mov edx, ecx
sub edx, dword [rdi + 0x14]
movsxd r11, eax
mov rax, qword [rdi + 8]
add r11, qword [rdi + 0x20]
imul edx, dword [rax + 0x18]
mov rax, qword [rdi + 0x28]
movsxd rdx, edx
movzx r8d, byte [rdx + rax]
mov edx, 0x100
mov r10d, r8d
shl r10d, 0x10
or r10d, r8d
mov r8d, edx
cmp r9d, 0xff
jl 0x14003c33b
imul r10d, dword [rdi + 0x10]
jmp 0x14003c348
imul r9d, dword [rdi + 0x10]
sar r9d, 8
imul r10d, r9d
shr r10d, 8
and r10d, 0xff00ff
mov eax, r10d
shr eax, 0x10
sub edx, eax
mov eax, dword [r11]
mov r9d, eax
shr eax, 8
and eax, 0xff00ff
and r9d, 0xff00ff
imul eax, edx
imul r9d, edx
mov edx, 0x100
shr eax, 8
and eax, 0xff00ff
shr r9d, 8
and r9d, 0xff00ff
add r9d, r10d
add r10d, eax
mov eax, r10d
shl r10d, 8
shr eax, 8
and eax, 0xff00ff
sub r8d, eax
mov eax, r9d
shl r8d, 8
shr eax, 8
or r8d, r10d
and eax, 0xff00ff
and r8d, 0xff00ff00
sub edx, eax
or edx, r9d
and edx, 0xff00ff
xor edx, r8d
mov dword [r11], edx
test ebp, ebp
jle 0x14003c5d0
inc ecx
sub ebx, ecx
test ebx, ebx
jle 0x14003c5d0
mov r9, qword [rdi]
mov esi, ebp
imul esi, dword [rdi + 0x10]
movsxd rdx, dword [r9 + 0x18]
mov eax, edx
imul eax, ecx
sub ecx, dword [rdi + 0x14]
sar esi, 8
movsxd r11, eax
add r11, qword [rdi + 0x20]
cmp esi, 0xfe
jge 0x14003c4ec
mov r12, rdx
nop dword [rax]
nop word [rax + rax]
mov rax, qword [rdi + 8]
mov edx, ecx
inc ecx
dec ebx
imul edx, dword [rax + 0x18]
mov rax, qword [rdi + 0x28]
movsxd r8, edx
movzx edx, byte [r8 + rax]
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 eax, r10d
shr eax, 0x10
sub edx, eax
mov eax, dword [r11]
mov r9d, eax
shr eax, 8
and eax, 0xff00ff
and r9d, 0xff00ff
imul eax, edx
imul r9d, edx
mov edx, 0x100
shr eax, 8
and eax, 0xff00ff
shr r9d, 8
and r9d, 0xff00ff
add r9d, r10d
add r10d, eax
mov eax, r10d
shl r10d, 8
shr eax, 8
and eax, 0xff00ff
sub r8d, eax
mov eax, r9d
shl r8d, 8
shr eax, 8
or r8d, r10d
and eax, 0xff00ff
and r8d, 0xff00ff00
sub edx, eax
or edx, r9d
and edx, 0xff00ff
xor edx, r8d
mov dword [r11], edx
add r11, r12
test ebx, ebx
jg 0x14003c420
jmp 0x14003c5d0
mov r8, qword [rdi + 8]
movsxd rax, dword [r8 + 0x18]
imul ecx, eax
movsxd r10, ecx
add r10, qword [rdi + 0x28]
cmp edx, eax
jne 0x14003c526
cmp dword [r8 + 0x10], 1
jne 0x14003c526
cmp dword [r9 + 0x10], 1
jne 0x14003c526
imul eax, ebx
mov rdx, r10
mov rcx, r11
movsxd r8, eax
call fcn.1402a26b0
jmp 0x14003c5d0
mov rsi, rdx
mov r12, rax
nop dword [rax]
movzx eax, byte [r10]
mov ecx, 0x100
mov r8d, dword [r11]
sub ecx, eax
mov r9d, r8d
mov edx, eax
shr r8d, 8
and r9d, 0xff00ff
imul r9d, ecx
and r8d, 0xff00ff
imul r8d, ecx
add r10, r12
shl edx, 0x10
mov ecx, 0x100
or edx, eax
dec ebx
shr r9d, 8
shr r8d, 8
and r9d, 0xff00ff
add r9d, edx
and r8d, 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 [r11], ecx
add r11, rsi
test ebx, ebx
jg 0x14003c530
movzx r8d, r15b
imul r8d, ebp
sub r13d, 1
mov r9d, r15d
jns 0x14003c290
mov r10, qword [rdi]
mov r11, qword [rdi + 8]
mov ebx, dword [rsp + 0x70]
mov rsi, qword [rsp + 0x60]
mov eax, r8d
cdq
movzx edx, dl
add eax, edx
sar eax, 8
mov r8d, eax
test eax, eax
jle 0x14003c6ee
mov ecx, dword [r10 + 0x18]
mov eax, r9d
cdq
movzx edx, dl
add eax, edx
mov edx, dword [rdi + 0x14]
sar eax, 8
imul ecx, eax
sub eax, edx
imul eax, dword [r11 + 0x18]
movsxd r10, ecx
add r10, qword [rdi + 0x20]
movsxd rcx, eax
mov rax, qword [rdi + 0x28]
movzx edx, byte [rcx + rax]
mov ecx, 0x100
mov r9d, edx
shl r9d, 0x10
or r9d, edx
mov edx, ecx
cmp r8d, 0xff
jl 0x14003c65c
imul r9d, dword [rdi + 0x10]
jmp 0x14003c669
imul r8d, dword [rdi + 0x10]
sar r8d, 8
imul r9d, r8d
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
and r8d, 0xff00ff
add r8d, r9d
add r9d, eax
mov eax, r9d
shl r9d, 8
shr eax, 8
and eax, 0xff00ff
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
mov rcx, qword [rsp + 0x78]
inc ebx
mov dword [rsp + 0x70], ebx
cmp ebx, dword [rsi + 0x14]
jl 0x14003c220
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