Function at 0x14003bcf0
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rcx
push rsi
push rdi
push r15
sub rsp, 0x40
mov r15, rcx
xor esi, esi
mov rcx, qword [rcx]
mov rdi, rdx
mov dword [rsp + 0x70], esi
cmp dword [r15 + 0x14], esi
jle 0x14003c437
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 0x14003c40e
mov edx, dword [r15 + 0xc]
add r14, 4
mov r11, qword [rdi]
add edx, esi
mov rbx, qword [rdi + 8]
xor r8d, r8d
movsxd rax, edx
mov r9d, dword [r14]
movsxd rcx, dword [r11 + 0x14]
sub edx, dword [rdi + 0x18]
imul rcx, rax
add rcx, qword [r11]
mov qword [rdi + 0x20], rcx
movsxd rax, dword [rbx + 0x14]
movsxd rcx, edx
imul rcx, rax
add rcx, qword [rbx]
sub r13d, 1
mov qword [rdi + 0x28], rcx
js 0x14003c22d
nop word [rax + rax]
mov ebp, dword [r14 + 4]
lea r14, [r14 + 8]
mov r15d, dword [r14]
mov eax, r15d
cdq
movzx r11d, dl
add r11d, eax
mov eax, r9d
cdq
sar r11d, 8
movzx edx, dl
add eax, edx
sar eax, 8
mov ebx, eax
cmp r11d, eax
jne 0x14003bdde
mov eax, r15d
sub eax, r9d
imul eax, ebp
add r8d, eax
jmp 0x14003c210
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 r10d, eax
test eax, eax
jle 0x14003bfcb
mov rcx, qword [rdi]
mov eax, ebx
imul eax, dword [rcx + 0x18]
mov ecx, ebx
sub ecx, dword [rdi + 0x14]
cmp r10d, 0xff
jl 0x14003bef5
movsxd r10, eax
mov rax, qword [rdi + 8]
add r10, qword [rdi + 0x20]
imul ecx, dword [rax + 0x18]
mov rax, qword [rdi + 0x28]
movsxd rcx, ecx
movzx edx, byte [rcx + rax]
mov ecx, 0x100
mov r9d, edx
shl r9d, 0x10
or r9d, edx
mov edx, 0x100
imul r9d, dword [rdi + 0x10]
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
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
jmp 0x14003bfcb
imul r10d, dword [rdi + 0x10]
movsxd r9, eax
mov rax, qword [rdi + 8]
add r9, qword [rdi + 0x20]
sar r10d, 8
imul ecx, dword [rax + 0x18]
mov rax, qword [rdi + 0x28]
movsxd rcx, ecx
movzx edx, byte [rcx + rax]
mov ecx, 0x100
mov eax, edx
shl eax, 0x10
or eax, edx
mov edx, 0x100
imul r10d, eax
shr r10d, 8
and r10d, 0xff00ff
mov eax, r10d
shr eax, 0x10
sub ecx, eax
mov eax, dword [r9]
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, r10d
add r10d, eax
mov eax, r10d
shr eax, 8
and eax, 0xff00ff
sub edx, eax
mov eax, r10d
shl eax, 8
shl edx, 8
or edx, eax
mov eax, r8d
shr eax, 8
and eax, 0xff00ff
sub ecx, eax
mov eax, r10d
or ecx, r8d
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 [r9], edx
test ebp, ebp
jle 0x14003c208
inc ebx
sub r11d, ebx
test r11d, r11d
jle 0x14003c208
mov r10, qword [rdi]
mov esi, ebp
imul esi, dword [rdi + 0x10]
movsxd r8, dword [r10 + 0x18]
mov eax, r8d
imul eax, ebx
sub ebx, dword [rdi + 0x14]
sar esi, 8
cdqe
add rax, qword [rdi + 0x20]
cmp esi, 0xfe
jge 0x14003c0fd
mov r12, r8
nop
mov rcx, qword [rdi + 8]
mov edx, ebx
inc ebx
dec r11d
imul edx, dword [rcx + 0x18]
mov rcx, qword [rdi + 0x28]
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 [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
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 [rax], r8d
add rax, r12
test r11d, r11d
jg 0x14003c010
jmp 0x14003c208
mov r9, qword [rdi + 8]
movsxd rdx, dword [r9 + 0x18]
mov ecx, edx
imul ecx, ebx
movsxd rbx, ecx
add rbx, qword [rdi + 0x28]
cmp r8d, edx
jne 0x14003c13b
cmp dword [r9 + 0x10], 1
jne 0x14003c13b
cmp dword [r10 + 0x10], 1
jne 0x14003c13b
imul edx, r11d
mov rcx, rax
movsxd r8, edx
mov rdx, rbx
call fcn.1400dd3e0
jmp 0x14003c208
mov rsi, r8
mov r12, rdx
movzx ecx, byte [rbx]
mov edx, 0x100
mov r10d, ecx
mov r8d, 0x100
shl r10d, 0x10
add rbx, r12
or r10d, ecx
dec r11d
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
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 [rax], r8d
add rax, rsi
test r11d, r11d
jg 0x14003c141
movzx r8d, r15b
imul r8d, ebp
sub r13d, 1
mov r9d, r15d
jns 0x14003bda0
mov r11, qword [rdi]
mov rbx, qword [rdi + 8]
mov esi, dword [rsp + 0x70]
mov r15, qword [rsp + 0x60]
mov eax, r8d
cdq
movzx edx, dl
add eax, edx
sar eax, 8
mov r10d, eax
test eax, eax
jle 0x14003c409
mov ecx, dword [r11 + 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 [rbx + 0x18]
cmp r10d, 0xff
jl 0x14003c33b
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, 0x100
imul r9d, dword [rdi + 0x10]
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
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
jmp 0x14003c409
imul r10d, dword [rdi + 0x10]
movsxd r9, ecx
add r9, qword [rdi + 0x20]
movsxd rcx, eax
mov rax, qword [rdi + 0x28]
sar r10d, 8
movzx edx, byte [rcx + rax]
mov ecx, 0x100
mov eax, edx
shl eax, 0x10
or eax, edx
mov edx, 0x100
imul r10d, eax
shr r10d, 8
and r10d, 0xff00ff
mov eax, r10d
shr eax, 0x10
sub ecx, eax
mov eax, dword [r9]
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, r10d
add r10d, eax
mov eax, r10d
shr eax, 8
and eax, 0xff00ff
sub edx, eax
mov eax, r10d
shl eax, 8
shl edx, 8
or edx, eax
mov eax, r8d
shr eax, 8
and eax, 0xff00ff
sub ecx, eax
mov eax, r10d
or ecx, r8d
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 [r9], edx
mov rcx, qword [rsp + 0x78]
inc esi
mov dword [rsp + 0x70], esi
cmp esi, dword [r15 + 0x14]
jl 0x14003bd30
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