Function at 0x14003d9c0
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rcx
push rsi
push rdi
sub rsp, 0x28
mov rsi, rcx
xor edi, edi
mov rcx, qword [rcx]
mov r11, rdx
mov dword [rsp + 0x50], edi
cmp dword [rsi + 0x14], edi
jle 0x14003df4b
mov qword [rsp + 0x48], rbx
mov qword [rsp + 0x20], rbp
mov qword [rsp + 0x18], r12
mov qword [rsp + 0x10], r13
mov qword [rsp + 8], r14
mov qword [rsp], r15
movsxd rax, dword [rsi + 0x1c]
mov r14, rcx
mov r13d, dword [r14]
lea rcx, [rcx + rax*4]
dec r13d
mov qword [rsp + 0x58], rcx
test r13d, r13d
jle 0x14003df1f
mov rdx, qword [r11]
add r14, 4
mov r8d, dword [rsi + 0xc]
xor r10d, r10d
add r8d, edi
mov eax, dword [rdx + 0xc]
mov r9d, dword [r14]
imul eax, r8d
sub r8d, dword [r11 + 0x18]
movsxd rcx, eax
mov eax, r8d
add rcx, qword [rdx]
cdq
mov qword [r11 + 0x20], rcx
mov rcx, qword [r11 + 8]
idiv dword [rcx + 0x18]
imul edx, dword [rcx + 0xc]
movsxd rax, edx
add rax, qword [rcx]
sub r13d, 1
mov qword [r11 + 0x28], rax
js 0x14003de09
nop dword [rax + rax]
mov ebp, dword [r14 + 4]
lea r14, [r14 + 8]
mov r15d, dword [r14]
mov ecx, r9d
mov ebx, r15d
sar ecx, 8
sar ebx, 8
cmp ebx, ecx
jne 0x14003da9c
mov eax, r15d
sub eax, r9d
imul eax, ebp
add r10d, eax
jmp 0x14003ddf3
movzx eax, r9b
mov r9d, 0x100
sub r9d, eax
imul r9d, ebp
add r9d, r10d
sar r9d, 8
test r9d, r9d
jle 0x14003dbd2
mov rax, qword [r11]
mov r8, qword [r11 + 8]
mov edx, dword [rax + 0x10]
mov eax, ecx
sub eax, dword [r11 + 0x14]
imul edx, ecx
movsxd rdi, edx
cdq
idiv dword [r8 + 0x14]
mov rax, qword [r11 + 0x28]
imul edx, dword [r8 + 0x10]
add rdi, qword [r11 + 0x20]
movsxd r8, edx
movzx edx, byte [r8 + rax]
cmp r9d, 0xff
jl 0x14003db0a
movzx eax, dl
mov r10d, eax
shl r10d, 0x10
or r10d, eax
imul r10d, dword [r11 + 0x10]
jmp 0x14003db24
mov r10d, dword [r11 + 0x10]
imul r10d, r9d
movzx edx, dl
mov eax, edx
shl eax, 0x10
or eax, edx
sar r10d, 8
imul r10d, eax
shr r10d, 8
mov edx, 0x100
and r10d, 0xff00ff
mov r8d, 0x100
mov eax, r10d
shr eax, 0x10
sub edx, eax
mov eax, dword [rdi]
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
shr eax, 8
and eax, 0xff00ff
sub r8d, eax
mov eax, r10d
shl eax, 8
shl r8d, 8
or r8d, eax
mov eax, r9d
shr eax, 8
and eax, 0xff00ff
sub edx, eax
mov eax, r10d
or edx, r9d
shr eax, 8
xor r8d, edx
shl r10d, 8
and eax, 0xff00ff
mov edx, 0x100
sub edx, eax
and r8d, 0xff00ff
shl edx, 8
or edx, r10d
xor r8d, edx
mov dword [rdi], r8d
test ebp, ebp
jle 0x14003ddeb
inc ecx
sub ebx, ecx
test ebx, ebx
jle 0x14003ddeb
mov rax, qword [r11]
mov esi, dword [r11 + 0x10]
imul esi, ebp
movsxd rdx, dword [rax + 0x10]
mov eax, edx
imul eax, ecx
sub ecx, dword [r11 + 0x14]
sar esi, 8
movsxd rdi, eax
add rdi, qword [r11 + 0x20]
cmp esi, 0xfe
jge 0x14003dd0e
mov r12, rdx
nop word [rax + rax]
mov r8, qword [r11 + 8]
mov eax, ecx
cdq
inc ecx
dec ebx
idiv dword [r8 + 0x14]
mov eax, dword [r8 + 0x10]
imul eax, edx
movsxd rdx, eax
mov rax, qword [r11 + 0x28]
movzx r8d, byte [rdx + rax]
mov edx, 0x100
mov r10d, r8d
shl r10d, 0x10
or r10d, r8d
mov r8d, 0x100
imul r10d, esi
shr r10d, 8
and r10d, 0xff00ff
mov eax, r10d
shr eax, 0x10
sub edx, eax
mov eax, dword [rdi]
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
shr eax, 8
and eax, 0xff00ff
sub r8d, eax
mov eax, r10d
shl eax, 8
shl r8d, 8
or r8d, eax
mov eax, r9d
shr eax, 8
and eax, 0xff00ff
sub edx, eax
mov eax, r10d
or edx, r9d
shr eax, 8
xor r8d, edx
shl r10d, 8
and eax, 0xff00ff
and r8d, 0xff00ff
mov edx, 0x100
sub edx, eax
shl edx, 8
or edx, r10d
xor r8d, edx
mov dword [rdi], r8d
add rdi, r12
test ebx, ebx
jg 0x14003dc20
jmp 0x14003ddeb
mov rsi, rdx
mov r8, qword [r11 + 8]
mov eax, ecx
cdq
inc ecx
dec ebx
idiv dword [r8 + 0x14]
mov eax, dword [r8 + 0x10]
imul eax, edx
movsxd rdx, eax
mov rax, qword [r11 + 0x28]
movzx r8d, byte [rdx + rax]
mov edx, 0x100
mov r10d, r8d
shl r10d, 0x10
or r10d, r8d
mov r8d, 0x100
mov eax, r10d
shr eax, 0x10
sub edx, eax
mov eax, dword [rdi]
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
shr eax, 8
and eax, 0xff00ff
sub r8d, eax
mov eax, r10d
shl eax, 8
shl r8d, 8
or r8d, eax
mov eax, r9d
shr eax, 8
and eax, 0xff00ff
sub edx, eax
mov eax, r10d
or edx, r9d
shr eax, 8
xor r8d, edx
shl r10d, 8
and eax, 0xff00ff
and r8d, 0xff00ff
mov edx, 0x100
sub edx, eax
shl edx, 8
or edx, r10d
xor r8d, edx
mov dword [rdi], r8d
add rdi, rsi
test ebx, ebx
jg 0x14003dd11
movzx r10d, r15b
imul r10d, ebp
sub r13d, 1
mov r9d, r15d
jns 0x14003da70
mov edi, dword [rsp + 0x50]
mov rsi, qword [rsp + 0x40]
sar r10d, 8
test r10d, r10d
jle 0x14003df1a
mov rcx, qword [r11]
mov r8, qword [r11 + 8]
sar r9d, 8
mov edx, dword [rcx + 0x10]
imul edx, r9d
sub r9d, dword [r11 + 0x14]
mov eax, r9d
movsxd rbx, edx
cdq
idiv dword [r8 + 0x14]
mov rax, qword [r11 + 0x28]
imul edx, dword [r8 + 0x10]
add rbx, qword [r11 + 0x20]
movsxd rcx, edx
movzx edx, byte [rcx + rax]
mov ecx, 0x100
movzx eax, dl
mov edx, ecx
mov r9d, eax
shl r9d, 0x10
or r9d, eax
cmp r10d, 0xff
jl 0x14003de6f
imul r9d, dword [r11 + 0x10]
jmp 0x14003de7e
mov eax, dword [r11 + 0x10]
imul eax, r10d
sar eax, 8
imul r9d, eax
shr r9d, 8
and r9d, 0xff00ff
mov eax, r9d
shr eax, 0x10
sub ecx, eax
mov eax, dword [rbx]
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 [rbx], edx
mov rcx, qword [rsp + 0x58]
inc edi
mov dword [rsp + 0x50], edi
cmp edi, dword [rsi + 0x14]
jl 0x14003da00
mov r15, qword [rsp]
mov r14, qword [rsp + 8]
mov r13, qword [rsp + 0x10]
mov r12, qword [rsp + 0x18]
mov rbp, qword [rsp + 0x20]
mov rbx, qword [rsp + 0x48]
add rsp, 0x28
pop rdi
pop rsi
ret