Function at 0x1400354b0
Capabilities:
Encode data using xor

Disassembly:
mov r11, rsp
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x50
mov qword [r11 - 0x58], 0xfffffffffffffffe
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rbp
mov qword [r11 + 0x20], rsi
mov rbx, rcx
xorps xmm0, xmm0
movups xmmword [rsp + 0x28], xmm0
mov ecx, 0x4949
xor ebp, ebp
mov r15d, ebp
mov eax, 3
cmp word [rbx + 0x5d1e0], cx
cmove r15d, eax
movzx eax, word [rbx + 0x12]
lea edi, [rax*4 + 1]
add edi, eax
shr edi, 2
lea edx, [rdi*2 + 4]
lea r8, [r11 + 8]
lea rcx, [r11 - 0x40]
call fcn.14000aa70
nop
mov r14d, ebp
mov rsi, qword [rsp + 0x38]
cmp bp, word [rbx + 0x10]
jae 0x140035687
mov r12d, edi
lea r13, [rsi + rdi]
mov rcx, rbx
call sym.EURawImg.exe_protected:_void___cdecl_LibRaw::checkCancel_void____ptr64
mov rcx, qword [rbx + 0x5d158]
mov rax, qword [rcx]
mov r9, r12
mov r8d, 1
mov rdx, r13
call qword [rax + 0x10]
cmp eax, edi
jge 0x140035564
mov rcx, rbx
call sym.EURawImg.exe_protected:_void___cdecl_LibRaw::derror_void____ptr64
mov edx, ebp
test edi, edi
je 0x14003558a
mov r8, rsi
nop dword [rax]
mov eax, edx
xor eax, r15d
add eax, edi
cdqe
movzx ecx, byte [rax + rsi]
mov byte [r8], cl
inc edx
lea r8, [r8 + 1]
cmp edx, edi
jl 0x140035570
mov r9d, ebp
cmp bp, word [rbx + 0x12]
jae 0x140035677
lea r8, [rsi + 4]
nop dword [rax + rax]
movzx edx, byte [r8 - 4]
shl dx, 2
movzx eax, byte [r8]
and al, 3
movzx ecx, al
or dx, cx
movzx eax, word [rbx + 0x12]
imul eax, r14d
add eax, r9d
movsxd rcx, eax
mov rax, qword [rbx + 0x2f3f0]
mov word [rax + rcx*2], dx
movzx edx, byte [r8 - 3]
shl dx, 2
movzx eax, byte [r8]
shr al, 2
and al, 3
movzx eax, al
or dx, ax
movzx eax, word [rbx + 0x12]
imul eax, r14d
add eax, r9d
movsxd rcx, eax
mov rax, qword [rbx + 0x2f3f0]
mov word [rax + rcx*2 + 2], dx
movzx edx, byte [r8 - 2]
shl dx, 2
movzx eax, byte [r8]
shr al, 4
and al, 3
movzx eax, al
or dx, ax
movzx eax, word [rbx + 0x12]
imul eax, r14d
add eax, r9d
movsxd rcx, eax
mov rax, qword [rbx + 0x2f3f0]
mov word [rax + rcx*2 + 4], dx
movzx edx, byte [r8 - 1]
shl dx, 2
movzx eax, byte [r8]
shr al, 6
movzx ecx, al
or dx, cx
movzx eax, word [rbx + 0x12]
imul eax, r14d
add eax, r9d
movsxd rcx, eax
mov rax, qword [rbx + 0x2f3f0]
mov word [rax + rcx*2 + 6], dx
lea r8, [r8 + 5]
add r9d, 4
movzx eax, word [rbx + 0x12]
cmp r9d, eax
jl 0x1400355a0
inc r14d
movzx eax, word [rbx + 0x10]
cmp r14d, eax
jl 0x140035537
mov dword [rbx + 0x25538], 0x3ff
lea rcx, [rbx + 0xcc]
mov r8d, 0xa
lea rdx, str.OmniVision
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncmp]
test eax, eax
jne 0x140035779
movzx edi, word [rbx + 0x10]
shr edi, 1
movzx r11d, word [rbx + 0x16]
dec r11d
test r11d, r11d
jle 0x140035779
mov r9, qword [rbx + 0x2f3f0]
mov r10, rbp
movzx r8d, word [rbx + 0x12]
mov eax, r8d
imul eax, edi
mov ecx, eax
add r9, 2
lea r9, [r9 + rax*2]
lea eax, [rdi + 1]
imul eax, r8d
movsxd rdx, eax
sub rdx, rcx
nop word [rax + rax]
movzx eax, word [r9 + rdx*2]
movzx ecx, word [r9 - 2]
sub ecx, eax
mov rax, r10
and eax, 1
imul ecx, ecx
movd xmm0, ecx
cvtdq2pd xmm0, xmm0
addsd xmm0, qword [rsp + rax*8 + 0x28]
movsd qword [rsp + rax*8 + 0x28], xmm0
movzx ecx, word [r9 + rdx*2 - 2]
movzx eax, word [r9]
sub ecx, eax
mov eax, ebp
not eax
and eax, 1
imul ecx, ecx
movd xmm0, ecx
cvtdq2pd xmm0, xmm0
addsd xmm0, qword [rsp + rax*8 + 0x28]
movsd qword [rsp + rax*8 + 0x28], xmm0
inc ebp
inc r10
add r9, 2
cmp ebp, r11d
jl 0x140035700
movsd xmm0, qword [rsp + 0x30]
comisd xmm0, xmmword [rsp + 0x28]
jbe 0x140035779
mov dword [rbx + 0x220], 0x4b4b4b4b
test rsi, rsi
je 0x1400357b6
mov rdx, qword [rsp + 0x48]
sub rdx, rsi
mov rax, rsi
cmp rdx, 0x1000
jb 0x1400357ae
add rdx, 0x27
mov rsi, qword [rsi - 8]
sub rax, rsi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400357ae
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, rsi
call fcn.14007c570
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret