Function at 0x140193180
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rcx
push rbx
push rdi
push r14
sub rsp, 0x20
mov rdi, rcx
xor ebx, ebx
mov rcx, qword [rcx]
mov r14, rdx
mov dword [rsp + 0x50], ebx
cmp dword [rdi + 0x14], ebx
jle 0x1401935ee
mov qword [rsp + 0x48], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x10], r12
mov qword [rsp + 8], r13
mov qword [rsp], r15
nop dword [rax]
movsxd rax, dword [rdi + 0x1c]
mov rsi, rcx
mov r13d, dword [rsi]
lea rcx, [rcx + rax*4]
dec r13d
mov qword [rsp + 0x58], rcx
test r13d, r13d
jle 0x1401935c7
mov eax, dword [rdi + 0xc]
add rsi, 4
mov rcx, qword [r14]
add eax, ebx
xor edx, edx
mov r8d, dword [rsi]
imul eax, dword [rcx + 0xc]
cdqe
add rax, qword [rcx]
sub r13d, 1
mov qword [r14 + 8], rax
js 0x1401934c3
nop word [rax + rax]
mov ebp, dword [rsi + 4]
lea rsi, [rsi + 8]
mov r15d, dword [rsi]
mov edi, r8d
mov eax, r15d
sar edi, 8
sar eax, 8
cmp eax, edi
jne 0x14019323a
mov eax, r15d
sub eax, r8d
imul eax, ebp
add edx, eax
jmp 0x1401934ad
movzx ecx, r8b
mov r8d, 0x100
sub r8d, ecx
imul r8d, ebp
add r8d, edx
sar r8d, 8
test r8d, r8d
jle 0x140193354
mov rcx, qword [r14]
mov ebx, dword [r14 + 0x10]
mov r10d, ebx
shr r10d, 8
and ebx, 0xff00ff
and r10d, 0xff00ff
mov edx, dword [rcx + 0x10]
mov rcx, qword [r14 + 8]
imul edx, edi
movsxd r11, edx
mov edx, 0x100
add r11, rcx
cmp r8d, 0xff
jge 0x1401932b0
imul r10d, r8d
imul ebx, r8d
shr r10d, 8
and r10d, 0xff00ff
shr ebx, 8
and ebx, 0xff00ff
mov ecx, r10d
mov r8d, 0x100
shr ecx, 0x10
sub edx, ecx
mov ecx, dword [r11]
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, ebx
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
mov edx, 0x100
sub edx, ecx
and r8d, 0xff00ff
shl edx, 8
or edx, r10d
xor r8d, edx
mov dword [r11], r8d
test ebp, ebp
jle 0x1401934a6
inc edi
sub eax, edi
test eax, eax
jle 0x1401934a6
mov r8d, dword [r14 + 0x10]
lea edx, [rbp + 1]
mov ecx, r8d
mov ebx, r8d
shr ecx, 8
and ebx, 0xff00ff
and ecx, 0xffff00ff
imul ebx, edx
imul ecx, edx
shr r8d, 8
and r8d, 0xff00ff
imul r8d, edx
shr ebx, 8
xor ebx, ecx
mov rcx, qword [r14]
and ebx, 0xff00ff
xor ebx, r8d
movsxd rdx, dword [rcx + 0x10]
mov ecx, edx
imul ecx, edi
movsxd r11, ecx
mov ecx, ebx
add r11, qword [r14 + 8]
shr ecx, 0x18
cmp cl, 0xff
jb 0x1401933d5
mov dword [r11], ebx
dec eax
add r11, rdx
test eax, eax
jg 0x1401933c4
jmp 0x1401934a6
mov edi, ebx
mov r12, rdx
shr edi, 8
and edi, 0xff00ff
and ebx, 0xff00ff
nop dword [rax]
mov ecx, edi
mov edx, 0x100
shr ecx, 0x10
mov r8d, 0x100
sub edx, ecx
dec eax
mov ecx, dword [r11]
mov r9d, ecx
shr ecx, 8
and r9d, 0xff00ff
and ecx, 0xff00ff
imul r9d, edx
imul ecx, edx
mov edx, 0x100
shr r9d, 8
shr ecx, 8
and r9d, 0xff00ff
and ecx, 0xff00ff
add r9d, ebx
lea r10d, [rcx + rdi]
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 [r11], r8d
add r11, r12
test eax, eax
jg 0x1401933f0
movzx edx, r15b
imul edx, ebp
sub r13d, 1
mov r8d, r15d
jns 0x140193210
mov ebx, dword [rsp + 0x50]
mov rdi, qword [rsp + 0x40]
sar edx, 8
test edx, edx
jle 0x1401935c2
mov rax, qword [r14]
mov r11d, dword [r14 + 0x10]
mov r9d, r11d
sar r8d, 8
and r11d, 0xff00ff
shr r9d, 8
mov ecx, dword [rax + 0x10]
and r9d, 0xff00ff
mov rax, qword [r14 + 8]
imul ecx, r8d
movsxd r10, ecx
mov ecx, 0x100
add r10, rax
cmp edx, 0xff
jge 0x14019352a
imul r9d, edx
imul r11d, edx
shr r9d, 8
and r9d, 0xff00ff
shr r11d, 8
and r11d, 0xff00ff
mov eax, r9d
mov edx, 0x100
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, r11d
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 + 0x58]
inc ebx
mov dword [rsp + 0x50], ebx
cmp ebx, dword [rdi + 0x14]
jl 0x1401931c0
mov r15, qword [rsp]
mov r13, qword [rsp + 8]
mov r12, qword [rsp + 0x10]
mov rsi, qword [rsp + 0x18]
mov rbp, qword [rsp + 0x48]
add rsp, 0x20
pop r14
pop rdi
pop rbx
ret