Function at 0x14030e060
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r15
push r14
push r13
push r12
push rdi
push rsi
push rbp
push rbx
sub rsp, 0x88
movaps xmmword [rsp + 0x70], xmm6
movaps xmmword [rsp + 0x60], xmm7
movaps xmmword [rsp + 0x50], xmm8
movaps xmmword [rsp + 0x40], xmm9
mov rbx, rcx
mov esi, edx
mov rdi, r8
mov rbp, r9
mov edx, esi
mov rcx, rbx
call fcn.1402fe800
mov ecx, eax
lea rbx, [rbx + rcx*2]
sub esi, eax
jne 0x14030e0dd
xor eax, eax
mov qword [rdi], rax
mov dword [rbp], eax
mov rax, rbx
movaps xmm6, xmmword [rsp + 0x70]
movaps xmm7, xmmword [rsp + 0x60]
movaps xmm8, xmmword [rsp + 0x50]
movaps xmm9, xmmword [rsp + 0x40]
add rsp, 0x88
pop rbx
pop rbp
pop rsi
pop rdi
pop r12
pop r13
pop r14
pop r15
ret
xor r14d, r14d
xor r15d, r15d
mov ecx, esi
lea r13, [rbx + rcx*2]
test byte [0x14107d988], 0x10
je 0x14030e1e2
cmp esi, 8
jl 0x14030e31a
movups xmm6, xmmword [0x140d822e0]
movups xmm7, xmmword [0x140d822f0]
movups xmm8, xmmword [0x140d82300]
lea rsi, [r13 - 0x10]
movups xmm9, xmmword [rbx]
add rbx, 0x10
movaps xmm0, xmm9
pminuw xmm0, xmm6
movaps xmm1, xmm9
paddusw xmm1, xmm7
por xmm0, xmm1
pmovmskb ecx, xmm0
test byte [0x14107d988], 0x40
je 0x14030e14d
xor r12d, r12d
popcnt r12d, ecx
jmp 0x14030e155
call fcn.1402d2ad0
mov r12d, eax
mov r12d, r12d
movaps xmm0, xmm9
paddw xmm0, xmm8
movaps xmm1, xmm7
pcmpgtw xmm1, xmm0
pmovmskb ecx, xmm1
cmp ecx, 0xffff
jne 0x14030e181
add r14, r12
cmp rbx, rsi
jbe 0x14030e119
jmp 0x14030e31a
not ecx
psrlw xmm9, 3
pmovmskb eax, xmm9
mov edx, eax
and edx, ecx
xor eax, 0x5555
and ecx, eax
shl ecx, 2
movzx eax, cx
cmp eax, edx
jne 0x14030e1d9
cmp ecx, 0xffff
jbe 0x14030e1b6
movzx ecx, cx
add r12, 0xfffffffffffffffe
add rbx, 0xfffffffffffffffe
test byte [0x14107d988], 0x40
je 0x14030e1c7
xor eax, eax
popcnt eax, ecx
jmp 0x14030e1cc
call fcn.1402d2ad0
mov eax, eax
sub r15d, eax
sub r14, rax
sub r14, rax
jmp 0x14030e174
add rbx, 0xfffffffffffffff0
jmp 0x14030e31a
cmp esi, 8
jl 0x14030e31a
movups xmm0, xmmword [0x140d822e0]
movups xmm1, xmmword [0x140d82310]
movups xmm2, xmmword [0x140d82320]
lea rax, [r13 - 0x10]
movups xmm3, xmmword [0x140d82330]
movups xmm4, xmmword [rbx]
movaps xmm5, xmm4
psubw xmm5, xmm3
movups xmm6, xmmword [0x140d82340]
movaps xmm7, xmm5
pcmpgtw xmm7, xmm6
movaps xmm6, xmm4
pcmpeqw xmm6, xmm0
por xmm6, xmm7
xorps xmm7, xmm7
psubw xmm7, xmm6
movaps xmm6, xmm4
pcmpeqw xmm6, xmm1
movups xmm8, xmmword [0x140d82350]
pcmpgtw xmm5, xmm8
por xmm5, xmm6
psubw xmm7, xmm5
movaps xmmword [rsp + 0x30], xmm7
mov rcx, qword [rsp + 0x30]
movaps xmmword [rsp + 0x30], xmm7
add rcx, qword [rsp + 0x38]
mov edx, ecx
shr rcx, 0x20
add edx, ecx
movzx ecx, dx
shr edx, 0x10
add edx, ecx
psubw xmm4, xmm2
psubw xmm4, xmm3
movups xmm5, xmmword [0x140d82350]
pcmpgtw xmm5, xmm4
xorps xmm6, xmm6
pcmpeqw xmm6, xmm5
pmovmskb ecx, xmm6
cmp ecx, 0xffff
je 0x14030e308
movups xmm6, xmmword [0x140d82360]
pcmpgtw xmm6, xmm4
movaps xmm4, xmm6
pandn xmm4, xmm5
movd ecx, xmm4
movzx ecx, cx
test ecx, ecx
jne 0x14030e372
xor ecx, ecx
xor r8d, r8d
movaps xmmword [rsp + 0x20], xmm6
movzx r10d, word [rsp + r8*2 + 0x20]
sub ecx, r10d
movzx ecx, cx
inc r8d
movaps xmmword [rsp + 0x20], xmm4
movzx r9d, word [rsp + r8*2 + 0x20]
cmp r9d, r10d
jne 0x14030e31a
cmp r8d, 7
jl 0x14030e2c1
pextrw r8d, xmm6, 7
test r8d, r8d
je 0x14030e2fd
add rbx, 0xfffffffffffffffe
add edx, 0xfffffffe
mov ecx, ecx
sub r15d, ecx
sub r14, rcx
sub r14, rcx
mov ecx, edx
add r14, rcx
add rbx, 0x10
cmp rbx, rax
jbe 0x14030e20b
cmp rbx, r13
jae 0x14030e372
nop
movzx eax, word [rbx]
cmp eax, 0x7f
jbe 0x14030e369
lea ecx, [rax + 0x1f800]
shr ecx, 0x10
add r14, rcx
add eax, 0xffff2800
cmp eax, 0x7ff
ja 0x14030e369
add r14, 0xfffffffffffffffe
mov rax, r13
sub rax, rbx
cmp rax, 4
jb 0x14030e372
mov eax, dword [rbx]
add eax, 0x23ff2800
test eax, 0xfc00fc00
jne 0x14030e372
dec r15d
add r14, 2
add rbx, 2
add rbx, 2
cmp rbx, r13
jb 0x14030e320
mov qword [rdi], r14
mov dword [rbp], r15d
mov rax, rbx
movaps xmm6, xmmword [rsp + 0x70]
movaps xmm7, xmmword [rsp + 0x60]
movaps xmm8, xmmword [rsp + 0x50]
movaps xmm9, xmmword [rsp + 0x40]
add rsp, 0x88
pop rbx
pop rbp
pop rsi
pop rdi
pop r12
pop r13
pop r14
pop r15
ret