Function at 0x14016edd0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x158
mov rdi, rdx
mov rbx, rcx
mov rsi, qword [rcx + 8]
mov r14, qword [rdx + 8]
movzx r12d, byte [rcx + 0x38]
movzx ebp, byte [rdx + 0x38]
movzx r13d, byte [rcx + 0x39]
movzx r11d, byte [rdx + 0x39]
movzx r15d, byte [rcx + 0x10]
cmp rsi, r14
jne 0x14016ee52
cmp r12b, bpl
jne 0x14016ee52
cmp r13b, 2
jne 0x14016ee52
cmp r11b, 2
jne 0x14016ee52
cmp r15b, 3
setae al
cmp byte [rdi + 0x10], 3
setb cl
xor cl, al
je 0x14016ee52
mov rcx, qword [rbx]
mov rdx, qword [rdi]
mov r8, rsi
mov byte [rsp + 0x2f], r11b
call sub.VCRUNTIME140.dll_memcmp
movzx r11d, byte [rsp + 0x2f]
test eax, eax
je 0x14016f0ea
cmp r15b, 6
je 0x14016ee73
mov rax, qword [rbx + 0x30]
mov qword [rsp + 0x4f], rax
movups xmm0, xmmword [rbx + 0x11]
movups xmm1, xmmword [rbx + 0x21]
movaps xmmword [rsp + 0x40], xmm1
movaps xmmword [rsp + 0x30], xmm0
mov r8, qword [rbx]
movzx eax, byte [rbx + 0x3a]
mov rcx, qword [rsp + 0x4f]
mov qword [rsp + 0x10f], rcx
movaps xmm0, xmmword [rsp + 0x30]
movaps xmm1, xmmword [rsp + 0x40]
movaps xmmword [rsp + 0x100], xmm1
movaps xmmword [rsp + 0xf0], xmm0
mov rdx, qword [rdi]
movzx ecx, byte [rdi + 0x10]
cmp cl, 6
je 0x14016eece
mov r9, qword [rdi + 0x30]
mov qword [rsp + 0x8f], r9
movups xmm0, xmmword [rdi + 0x11]
movups xmm1, xmmword [rdi + 0x21]
movaps xmmword [rsp + 0x80], xmm1
movaps xmmword [rsp + 0x70], xmm0
movzx r9d, byte [rdi + 0x3a]
mov r10, qword [rsp + 0x8f]
mov qword [rsp + 0x60], r10
movaps xmm0, xmmword [rsp + 0x70]
movaps xmm1, xmmword [rsp + 0x80]
movups xmmword [rsp + 0x51], xmm1
movups xmmword [rsp + 0x41], xmm0
mov qword [rsp + 0x70], r8
mov qword [rsp + 0x78], rsi
mov byte [rsp + 0x80], r15b
movaps xmm0, xmmword [rsp + 0xf0]
movaps xmm1, xmmword [rsp + 0x100]
movups xmmword [rsp + 0x81], xmm0
movups xmmword [rsp + 0x91], xmm1
mov r8, qword [rsp + 0x10f]
mov qword [rsp + 0xa0], r8
mov byte [rsp + 0xa8], r12b
mov byte [rsp + 0xa9], r13b
mov byte [rsp + 0xaa], al
mov qword [rsp + 0x30], rdx
mov qword [rsp + 0x38], r14
mov byte [rsp + 0x40], cl
mov byte [rsp + 0x68], bpl
mov byte [rsp + 0x69], r11b
mov byte [rsp + 0x6a], r9b
xor r14d, r14d
lea rcx, [rsp + 0x120]
lea rdx, [rsp + 0x70]
call fcn.140297650
movzx edi, byte [rsp + 0x120]
cmp edi, 0xa
je 0x14016f0cb
movzx esi, byte [rsp + 0x121]
mov rbp, qword [rsp + 0x128]
mov r13, qword [rsp + 0x130]
mov r12, qword [rsp + 0x138]
mov r15, qword [rsp + 0x140]
lea rcx, [rsp + 0xb8]
lea rdx, [rsp + 0x30]
call fcn.140297650
movzx eax, byte [rsp + 0xb8]
cmp al, 0xa
je case.default.0x14016f065
lea ecx, [rdi - 6]
movzx ecx, cl
lea r8, [rcx + 1]
cmp cl, 4
cmovae r8, r14
lea r9d, [rax - 6]
movzx ecx, r9b
lea rdx, [rcx + 1]
cmp cl, 4
cmovae rdx, r14
cmp r8, rdx
jne case.default.0x14016f065
mov rdx, qword [rsp + 0xc0]
mov rcx, qword [rsp + 0xc8]
cmp r8d, 4
je case.0x14016f065.0
test r8, r8
jne 0x14016ef70
cmp r9b, 3
jbe 0x14016ef70
cmp dil, al
jne case.default.0x14016f065
movzx eax, byte [rsp + 0xb9]
mov r10, qword [rsp + 0xd0]
mov rbx, qword [rsp + 0xd8]
mov r8d, edi
lea r9, [0x14016f100]
movsxd r8, dword [r9 + r8*4]
add r8, r9
jmp r8
cmp r13, rcx
jne case.default.0x14016f065
mov rcx, rbp
mov r8, r13
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
je 0x14016ef70
jmp case.default.0x14016f065
cmp sil, al
je 0x14016ef70
jmp case.default.0x14016f065
cmp r13, rcx
jne case.default.0x14016f065
mov rcx, rbp
mov r8, r13
mov rsi, r10
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
jne case.default.0x14016f065
cmp r15, rbx
jne case.default.0x14016f065
mov rdx, rsi
mov rcx, r12
mov r8, r15
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
je 0x14016ef70
xor eax, eax
jmp 0x14016f0ec
lea rcx, [rsp + 0xb8]
lea rdx, [rsp + 0x30]
call fcn.140297650
cmp byte [rsp + 0xb8], 0xa
sete al
jmp 0x14016f0ec
mov al, 1
add rsp, 0x158
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret