Function at 0x140184d50
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r14
lea rbp, [rsp - 0x37]
sub rsp, 0xb0
mov rax, qword [0x1404b41c0]
xor rax, rsp
mov qword [rbp + 0x17], rax
mov rsi, qword [rcx + 8]
mov rbx, rdx
mov r14, qword [rcx]
mov qword [rbp - 0x59], rdx
mov rax, r14
cmp rsi, 4
jb 0x140184dc1
lea rdi, [rsi - 3]
add rdi, rax
cmp rax, rdi
jae 0x140184dc1
nop dword [rax]
nop dword [rax + rax]
mov r8, rax
lea rcx, [rbp - 0x59]
mov rdx, rax
call fcn.140189610
test rax, rax
je 0x140185031
cmp rax, rdi
jb 0x140184da0
mov rbx, qword [rbp - 0x59]
sub rsi, rax
add rsi, r14
je 0x140185031
xor ecx, ecx
mov qword [rsp + 0xf0], r12
mov dword [rbp + 0xf], ecx
mov r8, rsi
mov word [rbp + 0x13], cx
mov rdx, rax
mov byte [rbp + 0x15], cl
lea rcx, [rbp + 0xf]
mov qword [rsp + 0xa8], r13
mov qword [rsp + 0xa0], r15
call fcn.1403b6db0
movdqa xmm0, xmmword [0x1403c1f30]
lea r11, [rbp + 0xf]
movdqa xmm1, xmmword [0x1403c1f40]
lea r12, [0x140480890]
movdqa xmm2, xmmword [0x1403c1f50]
xor r14d, r14d
mov r15d, 0x80
mov r13d, 0x100
nop dword [rax]
nop word [rax + rax]
movzx ecx, byte [r11]
movzx edx, byte [r11 + 3]
mov eax, ecx
movzx r8d, byte [r11 + 1]
movzx edi, byte [r11 + 2]
shr rax, 3
movdqu xmmword [rbp - 0x39], xmm2
mov dword [rbp - 0x29], 7
movdqu xmmword [rbp - 0x21], xmm1
movsx r9, byte [rax + r12]
mov dword [rbp - 0x11], r14d
mov qword [rbp - 0x51], 0x400000
mov dword [rbp - 0x49], r15d
mov eax, dword [rbp + r9*4 - 0x39]
and eax, ecx
mov dword [rbp - 0x45], 0x800
shl eax, 6
mov ecx, r8d
and ecx, 0x3f
mov dword [rbp - 0x41], 0x10000
or eax, ecx
mov dword [rbp + 7], r14d
mov ecx, edi
shl eax, 6
and edi, 0xc0
and ecx, 0x3f
or eax, ecx
and r8d, 0xc0
mov ecx, edx
shl eax, 6
shr edx, 2
and ecx, 0x3f
or edi, edx
or eax, ecx
mov ecx, dword [rbp + r9*4 - 0x21]
shr edi, 2
or edi, r8d
shr eax, cl
shr edi, 2
mov edx, eax
cmp eax, dword [rbp + r9*4 - 0x51]
mov r8d, r14d
movdqu xmmword [rbp - 9], xmm0
sbb ecx, ecx
and edx, 0xfffff800
and ecx, 0x40
or edi, ecx
mov ecx, dword [rbp + r9*4 - 9]
cmp edx, 0xd800
mov edx, r14d
cmove r8d, r15d
or edi, r8d
cmp eax, 0x10ffff
cmova edx, r13d
or edi, edx
mov rdx, r14
xor edi, 0x2a
sar edi, cl
mov ecx, 0xffffffff
test r9b, r9b
sete dl
add rdx, r9
test edi, edi
cmovne eax, ecx
cmp eax, 0x1100
jb 0x140184fee
lea ecx, [rax - 0x1160]
cmp ecx, 0x11c8
jbe 0x140184f54
cmp eax, 0x232b
jb 0x140184fe7
lea ecx, [rax - 0x2e80]
cmp ecx, 0x764f
ja 0x140184f69
cmp eax, 0x303f
jne 0x140184fe7
lea ecx, [rax - 0xac00]
cmp ecx, 0x2ba3
jbe 0x140184fe7
lea ecx, [rax - 0xf900]
cmp ecx, 0x1ff
jbe 0x140184fe7
lea ecx, [rax - 0xfe10]
cmp ecx, 9
jbe 0x140184fe7
lea ecx, [rax - 0xfe30]
cmp ecx, 0x3f
jbe 0x140184fe7
lea ecx, [rax - 0xff00]
cmp ecx, 0x60
jbe 0x140184fe7
lea ecx, [rax - 0xffe0]
cmp ecx, 6
jbe 0x140184fe7
lea ecx, [rax - 0x20000]
cmp ecx, 0xfffd
jbe 0x140184fe7
lea ecx, [rax - 0x30000]
cmp ecx, 0xfffd
jbe 0x140184fe7
lea ecx, [rax - 0x1f300]
cmp ecx, 0x34f
jbe 0x140184fe7
add eax, 0xfffe0700
cmp eax, 0xff
ja 0x140184fee
mov eax, 2
jmp 0x140184ff3
mov eax, 1
add qword [rbx], rax
mov eax, 1
test edi, edi
cmove rax, rdx
add r11, rax
je 0x140185019
lea rcx, [rbp + 0xf]
mov rax, r11
sub rax, rcx
cmp rax, rsi
jl 0x140184e40
mov r13, qword [rsp + 0xa8]
mov r12, qword [rsp + 0xf0]
mov r15, qword [rsp + 0xa0]
mov rcx, qword [rbp + 0x17]
xor rcx, rsp
call fcn.14019b850
add rsp, 0xb0
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret