Function at 0x14003b000
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rcx
push rsi
push rdi
push r14
sub rsp, 0x50
mov rsi, rcx
xor edi, edi
mov rcx, qword [rcx]
mov r14, rdx
mov dword [rsp + 0x20], edi
cmp dword [rsi + 0x14], edi
jle 0x14003b74f
mov qword [rsp + 0x78], rbx
mov qword [rsp + 0x48], rbp
mov qword [rsp + 0x40], r12
mov qword [rsp + 0x38], r13
mov qword [rsp + 0x30], r15
nop
movsxd rax, dword [rsi + 0x1c]
mov r15, rcx
mov r13d, dword [r15]
lea rcx, [rcx + rax*4]
dec r13d
mov qword [rsp + 0x28], rcx
test r13d, r13d
jle 0x14003b727
mov edx, dword [rsi + 0xc]
add r15, 4
mov r10, qword [r14]
add edx, edi
mov r11, qword [r14 + 8]
xor r8d, r8d
movsxd rax, edx
mov r9d, dword [r15]
movsxd rcx, dword [r10 + 0x14]
sub edx, dword [r14 + 0x18]
imul rcx, rax
add rcx, qword [r10]
mov qword [r14 + 0x20], rcx
movsxd rax, dword [r11 + 0x14]
movsxd rcx, edx
imul rcx, rax
add rcx, qword [r11]
sub r13d, 1
mov qword [r14 + 0x28], rcx
mov dword [rsp + 0x88], r13d
js 0x14003b509
nop
mov ebp, dword [r15 + 4]
lea r15, [r15 + 8]
mov r12d, dword [r15]
mov eax, r12d
cdq
movzx ecx, dl
add ecx, eax
mov eax, r9d
cdq
sar ecx, 8
movzx edx, dl
add eax, edx
sar eax, 8
mov esi, eax
cmp ecx, eax
jne 0x14003b0ea
mov eax, r12d
sub eax, r9d
imul eax, ebp
add r8d, eax
jmp 0x14003b4e4
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 edi, eax
test eax, eax
jle 0x14003b30e
mov rax, qword [r14 + 8]
mov edx, esi
sub edx, dword [r14 + 0x14]
imul edx, dword [rax + 0x18]
mov rax, qword [r14]
movsxd r8, edx
mov edx, esi
imul edx, dword [rax + 0x18]
add r8, qword [r14 + 0x28]
cmp edi, 0xff
jl 0x14003b220
movzx ebx, byte [r8 + 1]
mov r9d, 0x100
movzx r11d, byte [r8 + 2]
or ebx, 0xff0000
imul ebx, dword [r14 + 0x10]
movsxd rdi, edx
mov edx, 0x100
add rdi, qword [r14 + 0x20]
shl r11d, 0x10
shr ebx, 8
mov r10d, dword [rdi]
and ebx, 0xff00ff
mov eax, ebx
shr eax, 0x10
sub r9d, eax
movzx eax, byte [r8]
or r11d, eax
mov r8d, 0x100
imul r11d, dword [r14 + 0x10]
mov eax, r10d
and eax, 0xff00ff
shr r10d, 8
imul eax, r9d
and r10d, 0xff00ff
imul r10d, r9d
shr r11d, 8
and r11d, 0xff00ff
shr eax, 8
and eax, 0xff00ff
shr r10d, 8
add r11d, eax
and r10d, 0xff00ff
add ebx, r10d
mov eax, ebx
shr eax, 8
and eax, 0xff00ff
sub r8d, eax
mov eax, ebx
shl eax, 8
shl r8d, 8
or r8d, eax
mov eax, r11d
shr eax, 8
and eax, 0xff00ff
sub edx, eax
mov eax, ebx
or edx, r11d
shr eax, 8
xor r8d, edx
shl ebx, 8
and eax, 0xff00ff
mov edx, 0x100
sub edx, eax
and r8d, 0xff00ff
shl edx, 8
or edx, ebx
xor r8d, edx
mov dword [rdi], r8d
jmp 0x14003b30e
movzx r11d, byte [r8 + 1]
movzx r10d, byte [r8 + 2]
or r11d, 0xff0000
imul edi, dword [r14 + 0x10]
movsxd rbx, edx
mov edx, 0x100
add rbx, qword [r14 + 0x20]
shl r10d, 0x10
sar edi, 8
mov r9d, dword [rbx]
imul r11d, edi
shr r11d, 8
and r11d, 0xff00ff
mov eax, r11d
shr eax, 0x10
sub edx, eax
movzx eax, byte [r8]
or r10d, eax
mov r8d, 0x100
mov eax, r9d
imul r10d, edi
and eax, 0xff00ff
shr r9d, 8
imul eax, edx
and r9d, 0xff00ff
imul r9d, edx
mov edx, 0x100
shr r10d, 8
and r10d, 0xff00ff
shr eax, 8
and eax, 0xff00ff
shr r9d, 8
add r10d, eax
and r9d, 0xff00ff
add r11d, r9d
mov eax, r11d
shr eax, 8
and eax, 0xff00ff
sub r8d, eax
mov eax, r11d
shl eax, 8
shl r8d, 8
or r8d, eax
mov eax, r10d
shr eax, 8
and eax, 0xff00ff
sub edx, eax
mov eax, r11d
or edx, r10d
shr eax, 8
xor r8d, edx
shl r11d, 8
and eax, 0xff00ff
mov edx, 0x100
sub edx, eax
and r8d, 0xff00ff
shl edx, 8
or edx, r11d
xor r8d, edx
mov dword [rbx], r8d
test ebp, ebp
jle 0x14003b4dc
inc esi
sub ecx, esi
test ecx, ecx
jle 0x14003b4dc
mov r11, qword [r14]
mov edi, ebp
imul edi, dword [r14 + 0x10]
movsxd r8, dword [r11 + 0x18]
mov eax, r8d
imul eax, esi
sub esi, dword [r14 + 0x14]
sar edi, 8
movsxd rbx, eax
add rbx, qword [r14 + 0x20]
cmp edi, 0xfe
jge 0x14003b45f
mov r13, r8
mov rax, qword [r14 + 8]
mov edx, esi
mov r9d, dword [rbx]
inc esi
dec ecx
imul edx, dword [rax + 0x18]
movsxd r8, edx
mov edx, 0x100
add r8, qword [r14 + 0x28]
movzx r11d, byte [r8 + 1]
movzx r10d, byte [r8 + 2]
or r11d, 0xff0000
shl r10d, 0x10
imul r11d, edi
shr r11d, 8
and r11d, 0xff00ff
mov eax, r11d
shr eax, 0x10
sub edx, eax
movzx eax, byte [r8]
or r10d, eax
mov r8d, 0x100
mov eax, r9d
imul r10d, edi
and eax, 0xff00ff
shr r9d, 8
imul eax, edx
and r9d, 0xff00ff
imul r9d, edx
mov edx, 0x100
shr r10d, 8
and r10d, 0xff00ff
shr eax, 8
and eax, 0xff00ff
shr r9d, 8
add r10d, eax
and r9d, 0xff00ff
add r11d, r9d
mov eax, r11d
shr eax, 8
and eax, 0xff00ff
sub r8d, eax
mov eax, r11d
shl eax, 8
shl r8d, 8
or r8d, eax
mov eax, r10d
shr eax, 8
and eax, 0xff00ff
sub edx, eax
mov eax, r11d
or edx, r10d
shr eax, 8
xor r8d, edx
shl r11d, 8
and eax, 0xff00ff
and r8d, 0xff00ff
mov edx, 0x100
sub edx, eax
shl edx, 8
or edx, r11d
xor r8d, edx
mov dword [rbx], r8d
add rbx, r13
test ecx, ecx
jg 0x14003b353
mov r13d, dword [rsp + 0x88]
jmp 0x14003b4dc
mov r10, qword [r14 + 8]
movsxd rdx, dword [r10 + 0x18]
mov eax, edx
imul eax, esi
movsxd r9, eax
add r9, qword [r14 + 0x28]
cmp r8d, edx
jne 0x14003b499
cmp dword [r10 + 0x10], 1
jne 0x14003b499
cmp dword [r11 + 0x10], 1
jne 0x14003b499
imul edx, ecx
mov rcx, rbx
movsxd r8, edx
mov rdx, r9
call fcn.1400dd3e0
jmp 0x14003b4dc
mov r10, r8
mov r11, rdx
nop
movzx r8d, word [r9]
dec ecx
movzx edx, byte [r9 + 2]
add r9, r11
or edx, 0xffffff00
mov word [rsp + 0x80], r8w
movzx eax, byte [rsp + 0x81]
shl edx, 8
or edx, eax
movzx eax, r8b
shl edx, 8
or edx, eax
mov dword [rbx], edx
add rbx, r10
test ecx, ecx
jg 0x14003b4a0
movzx r8d, r12b
imul r8d, ebp
sub r13d, 1
mov r9d, r12d
mov dword [rsp + 0x88], r13d
jns 0x14003b0b0
mov r10, qword [r14]
mov r11, qword [r14 + 8]
mov edi, dword [rsp + 0x20]
mov rsi, qword [rsp + 0x70]
mov eax, r8d
cdq
movzx edx, dl
add eax, edx
sar eax, 8
mov ebx, eax
test eax, eax
jle 0x14003b722
mov eax, r9d
cdq
movzx edx, dl
add eax, edx
sar eax, 8
mov ecx, eax
imul eax, dword [r10 + 0x18]
sub ecx, dword [r14 + 0x14]
imul ecx, dword [r11 + 0x18]
cmp ebx, 0xff
jl 0x14003b635
movsxd rbx, eax
mov r8d, 0x100
add rbx, qword [r14 + 0x20]
movsxd rdx, ecx
mov ecx, 0x100
add rdx, qword [r14 + 0x28]
mov r9d, dword [rbx]
movzx r11d, byte [rdx + 1]
movzx r10d, byte [rdx + 2]
or r11d, 0xff0000
imul r11d, dword [r14 + 0x10]
shl r10d, 0x10
shr r11d, 8
and r11d, 0xff00ff
mov eax, r11d
shr eax, 0x10
sub r8d, eax
movzx eax, byte [rdx]
or r10d, eax
mov edx, 0x100
imul r10d, dword [r14 + 0x10]
mov eax, r9d
and eax, 0xff00ff
shr r9d, 8
imul eax, r8d
and r9d, 0xff00ff
imul r9d, r8d
shr r10d, 8
and r10d, 0xff00ff
shr eax, 8
and eax, 0xff00ff
shr r9d, 8
add r10d, eax
and r9d, 0xff00ff
add r11d, r9d
mov eax, r11d
shr eax, 8
and eax, 0xff00ff
sub edx, eax
mov eax, r11d
shl eax, 8
shl edx, 8
or edx, eax
mov eax, r10d
shr eax, 8
and eax, 0xff00ff
sub ecx, eax
mov eax, r11d
or ecx, r10d
shr eax, 8
xor edx, ecx
shl r11d, 8
and eax, 0xff00ff
mov ecx, 0x100
sub ecx, eax
and edx, 0xff00ff
shl ecx, 8
or ecx, r11d
xor edx, ecx
mov dword [rbx], edx
jmp 0x14003b722
imul ebx, dword [r14 + 0x10]
mov edx, 0x100
movsxd r11, eax
add r11, qword [r14 + 0x20]
movsxd rcx, ecx
add rcx, qword [r14 + 0x28]
sar ebx, 8
mov r8d, dword [r11]
movzx r10d, byte [rcx + 1]
movzx r9d, byte [rcx + 2]
or r10d, 0xff0000
shl r9d, 0x10
imul r10d, ebx
shr r10d, 8
and r10d, 0xff00ff
mov eax, r10d
shr eax, 0x10
sub edx, eax
movzx eax, byte [rcx]
or r9d, eax
mov ecx, 0x100
mov eax, r8d
imul r9d, ebx
and eax, 0xff00ff
shr r8d, 8
imul eax, edx
and r8d, 0xff00ff
imul r8d, edx
mov edx, 0x100
shr r9d, 8
and r9d, 0xff00ff
shr eax, 8
and eax, 0xff00ff
shr r8d, 8
add r9d, eax
and r8d, 0xff00ff
add r10d, r8d
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, r9d
shr eax, 8
and eax, 0xff00ff
sub ecx, eax
mov eax, r10d
or ecx, r9d
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 [r11], edx
mov rcx, qword [rsp + 0x28]
inc edi
mov dword [rsp + 0x20], edi
cmp edi, dword [rsi + 0x14]
jl 0x14003b040
mov r15, qword [rsp + 0x30]
mov r13, qword [rsp + 0x38]
mov r12, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x78]
add rsp, 0x50
pop r14
pop rdi
pop rsi
ret