Function at 0x14038e360
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov dword [rsp + 0x18], r8d
push rbx
push r13
push r14
sub rsp, 0x30
cmp dword [rdx], 0
mov ebx, r8d
mov r14, rdx
mov r13, rcx
jl 0x14038e6fd
cmp dword [rdx + 4], 0
jl 0x14038e6fd
mov rcx, qword [rcx + 0x10]
mov eax, dword [rcx + 4]
cmp dword [rdx + 8], eax
jg 0x14038e6fd
mov eax, dword [rcx + 8]
cdq
xor eax, edx
sub eax, edx
cmp dword [r14 + 0xc], eax
jg 0x14038e6fd
mov qword [rsp + 0x50], rbp
mov qword [rsp + 0x58], rsi
mov qword [rsp + 0x68], rdi
mov qword [rsp + 0x28], r12
mov qword [rsp + 0x20], r15
call sym.ErrorReportClient.exe_SfGetPixelType
mov rsi, qword [r13 + 0x10]
mov rcx, r13
mov r15d, eax
movzx edi, word [rsi + 0xe]
movzx ebp, di
shr bp, 3
call fcn.14035cd70
mov r10d, dword [rsi + 4]
mov r12, rax
imul r10d, edi
add r10d, 0x1f
shr r10d, 3
and r10d, 0x1ffffffc
cmp dword [rsi + 8], 0
jl 0x14038e407
neg r10d
mov eax, dword [r14 + 4]
mov r8d, dword [r14]
mov r11d, dword [r14 + 8]
imul eax, r10d
sub r11d, r8d
movzx r9d, bp
imul r11d, r9d
imul r9d, r8d
movsxd rcx, eax
movsxd rdi, r9d
lea rax, [r12 + rcx]
movzx ecx, byte [rsp + 0x63]
add rdi, rax
mov eax, dword [r14 + 0xc]
sub eax, dword [r14 + 4]
imul eax, r10d
movsxd rsi, eax
add rsi, rdi
cmp cl, 0xff
jne 0x14038e52b
movsxd r14, r11d
cmp ebx, 0xffffffff
jne 0x14038e47d
movsxd rbx, r10d
nop dword [rax]
mov r8, r14
mov edx, 0xff
mov rcx, rdi
call sub.VCRUNTIME140.dll_memset
add rdi, rbx
cmp rdi, rsi
jne 0x14038e460
jmp 0x14038e6e4
lea eax, [r15 - 0x1c]
mov rcx, rdi
lea rdx, [r14 + rdi]
cmp eax, 1
jbe 0x14038e4c4
lea eax, [r15 - 0x1f]
cmp eax, 1
jbe 0x14038e4c4
movzx r8d, byte [rsp + 0x62]
movzx r9d, byte [rsp + 0x61]
movzx eax, bp
nop word [rax + rax]
mov byte [rcx], bl
mov byte [rcx + 1], r9b
mov byte [rcx + 2], r8b
add rcx, rax
cmp rcx, rdx
jne 0x14038e4b0
jmp 0x14038e4fa
movzx r9d, byte [rsp + 0x62]
lea rcx, [rdi + 2]
movzx r11d, byte [rsp + 0x61]
movzx r8d, bp
nop dword [rax + rax]
mov byte [rcx - 2], bl
mov byte [rcx - 1], r11b
mov byte [rcx], r9b
mov byte [rcx + 1], 0xff
add rcx, r8
lea rax, [rcx - 2]
cmp rax, rdx
jne 0x14038e4e0
movsxd r15, r10d
lea rbx, [r15 + rdi]
cmp rbx, rsi
je 0x14038e6e4
nop word [rax + rax]
mov r8, r14
mov rdx, rdi
mov rcx, rbx
call sub.VCRUNTIME140.dll_memcpy
add rbx, r15
cmp rbx, rsi
jne 0x14038e510
jmp 0x14038e6e4
lea eax, [r15 - 0x1c]
cmp eax, 1
jbe 0x14038e604
lea eax, [r15 - 0x1f]
cmp eax, 1
jbe 0x14038e604
movzx r14d, byte [rsp + 0x61]
add rdi, 2
movzx r15d, byte [rsp + 0x62]
movsxd r11, r11d
add r11, 0xfffffffffffffffe
movzx ebx, bl
movzx r9d, cl
movzx ebp, bp
movsxd r12, r10d
nop dword [rax]
lea r10, [rdi + r11]
mov rax, rdi
nop word [rax + rax]
movzx r8d, byte [rax - 2]
mov edx, ebx
sub edx, r8d
imul edx, r9d
sub edx, 0xffffff80
mov ecx, edx
sar ecx, 8
add ecx, edx
mov edx, r14d
sar ecx, 8
add cl, r8b
movzx r8d, byte [rax - 1]
mov byte [rax - 2], cl
sub edx, r8d
imul edx, r9d
sub edx, 0xffffff80
mov ecx, edx
sar ecx, 8
add ecx, edx
mov edx, r15d
sar ecx, 8
add cl, r8b
movzx r8d, byte [rax]
mov byte [rax - 1], cl
sub edx, r8d
imul edx, r9d
sub edx, 0xffffff80
mov ecx, edx
sar ecx, 8
add ecx, edx
sar ecx, 8
add cl, r8b
mov byte [rax], cl
add rax, rbp
lea rcx, [rax - 2]
cmp rcx, r10
jne 0x14038e580
add rdi, r12
lea rax, [rdi - 2]
cmp rax, rsi
jne 0x14038e570
jmp 0x14038e6e4
movzx r15d, byte [rsp + 0x61]
add rdi, 2
movzx r12d, byte [rsp + 0x62]
movsxd r11, r11d
movzx r14d, bl
add r11, 0xfffffffffffffffe
movzx r9d, cl
movzx ebp, bp
movsxd rbx, r10d
nop dword [rax]
lea r10, [r11 + rdi]
mov r8, rdi
nop word [rax + rax]
movzx edx, byte [r8 - 2]
mov ecx, r14d
sub ecx, edx
imul ecx, r9d
sub ecx, 0xffffff80
mov eax, ecx
sar eax, 8
add eax, ecx
mov ecx, r15d
sar eax, 8
add al, dl
movzx edx, byte [r8 - 1]
mov byte [r8 - 2], al
sub ecx, edx
imul ecx, r9d
sub ecx, 0xffffff80
mov eax, ecx
sar eax, 8
add eax, ecx
mov ecx, r12d
sar eax, 8
add al, dl
movzx edx, byte [r8]
mov byte [r8 - 1], al
sub ecx, edx
imul ecx, r9d
sub ecx, 0xffffff80
mov eax, ecx
sar eax, 8
add eax, ecx
mov ecx, 0xff
sar eax, 8
add al, dl
movzx edx, byte [r8 + 1]
mov byte [r8], al
sub ecx, edx
imul ecx, r9d
sub ecx, 0xffffff80
mov eax, ecx
sar eax, 8
add eax, ecx
sar eax, 8
add al, dl
mov byte [r8 + 1], al
add r8, rbp
lea rax, [r8 - 2]
cmp rax, r10
jne 0x14038e640
add rdi, rbx
lea rax, [rdi - 2]
cmp rax, rsi
jne 0x14038e630
mov r12, qword [rsp + 0x28]
mov rdi, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x50]
mov r15, qword [rsp + 0x20]
add rsp, 0x30
pop r14
pop r13
pop rbx
ret