Function at 0x1400fc230
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov rax, rcx
mov rcx, r8
mov r8, rax
jmp 0x1400fc6d0
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x58
mov rsi, r8
mov rax, qword [0x1401fdbb8]
xor rax, rsp
mov qword [rsp + 0x50], rax
movzx r13d, byte [rdx]
lea r14, [rdx + 1]
test r13b, r13b
js 0x1400fc709
test r14, r14
jne 0x1400fc776
jmp 0x1400fc91e
movzx r8d, byte [r14]
mov eax, r8d
shl eax, 7
add r13d, eax
add r13d, 0xffffff80
mov eax, 1
test r8b, r8b
jns 0x1400fc766
movzx r8d, byte [rdx + 2]
mov eax, r8d
shl eax, 0xe
add r13d, eax
add r13d, 0xffffc000
mov eax, 2
test r8b, r8b
jns 0x1400fc766
movzx r8d, byte [rdx + 3]
mov eax, r8d
shl eax, 0x15
add r13d, eax
add r13d, 0xffe00000
mov eax, 3
test r8b, r8b
js 0x1400fc8ef
lea r14, [rdx + rax]
inc r14
test r14, r14
je 0x1400fc91e
mov qword [rsp + 0x20], rcx
mov rdi, qword [rcx + 8]
mov ebx, edi
sub ebx, r14d
cmp r13d, ebx
jle 0x1400fc870
cmp r14, rdi
jb 0x1400fc7b4
test r14, r14
jne 0x1400fc819
jmp 0x1400fc91e
mov rax, qword [rsi + 8]
mov qword [rax + r12*8], r15
lea ebp, [r12 + 1]
mov dword [rsi], ebp
cmp r14, rdi
jae 0x1400fc810
movabs rax, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0x30], rax
mov rcx, r14
lea rdx, [rsp + 0x30]
call fcn.1400fc550
test rax, rax
je 0x1400fc91e
mov r14, rax
mov r15, qword [rsp + 0x30]
mov r12d, dword [rsi]
cmp r12d, dword [rsi + 4]
jne 0x1400fc7a0
lea ebp, [r12 + 1]
mov rcx, rsi
mov edx, ebp
call fcn.1400faa70
mov rax, qword [rsi + 8]
mov qword [rax + r12*8], r15
jmp 0x1400fc7ad
mov rax, qword [rsp + 0x20]
mov rdi, qword [rax + 8]
sub r14, rdi
mov eax, r13d
sub eax, ebx
cmp eax, 0x10
jle 0x1400fc941
mov rdi, qword [rsp + 0x20]
cmp dword [rdi + 0x1c], 0x11
jl 0x1400fc91e
mov rcx, rdi
call fcn.1400fb4d0
test rax, rax
je 0x1400fc91e
mov r12, rax
add ebx, r14d
sub r13d, ebx
movsxd rax, r14d
add r12, rax
mov rdi, qword [rdi + 8]
mov ebx, edi
sub ebx, r12d
mov r14, r12
cmp r13d, ebx
jg 0x1400fc78d
jmp 0x1400fc873
mov r12, r14
movsxd rax, r13d
lea r14, [r12 + rax]
test eax, eax
jle 0x1400fc8e4
movabs r15, 0xaaaaaaaaaaaaaaaa
lea rdi, [rsp + 0x30]
jmp 0x1400fc8a3
mov rax, qword [rsi + 8]
mov qword [rax + r13*8], rbp
lea ebx, [r13 + 1]
mov dword [rsi], ebx
cmp r12, r14
jae 0x1400fc8e4
mov qword [rsp + 0x30], r15
mov rcx, r12
mov rdx, rdi
call fcn.1400fc550
test rax, rax
je 0x1400fc8e1
mov r12, rax
mov rbp, qword [rsp + 0x30]
mov r13d, dword [rsi]
cmp r13d, dword [rsi + 4]
jne 0x1400fc890
lea ebx, [r13 + 1]
mov rcx, rsi
mov edx, ebx
call fcn.1400faa70
mov rax, qword [rsi + 8]
mov qword [rax + r13*8], rbp
jmp 0x1400fc89c
xor r12d, r12d
xor esi, esi
cmp r14, r12
cmove rsi, r12
jmp 0x1400fc920
movzx eax, byte [rdx + 4]
cmp eax, 7
ja 0x1400fc91e
shl eax, 0x1c
add r13d, eax
add r13d, 0xf0000000
cmp r13d, 0x7fffffef
ja 0x1400fc91e
add rdx, 5
mov r14, rdx
test r14, r14
jne 0x1400fc776
xor esi, esi
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.140174050
mov rax, rsi
add rsp, 0x58
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
xorps xmm0, xmm0
movups xmmword [rsp + 0x3a], xmm0
movaps xmmword [rsp + 0x30], xmm0
movups xmm0, xmmword [rdi]
movaps xmmword [rsp + 0x30], xmm0
movsxd rdi, eax
lea r15, [rsp + rdi]
add r15, 0x30
movsxd rax, r14d
lea r14, [rsp + rax]
add r14, 0x30
cmp rax, rdi
jge 0x1400fc9d9
lea rbx, [rsp + 0x28]
jmp 0x1400fc98c
mov rax, qword [rsi + 8]
mov qword [rax + r12*8], r13
lea ebp, [r12 + 1]
mov dword [rsi], ebp
cmp r14, r15
jae 0x1400fc9d9
movabs rax, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0x28], rax
mov rcx, r14
mov rdx, rbx
call fcn.1400fc550
test rax, rax
je 0x1400fc91e
mov r14, rax
mov r13, qword [rsp + 0x28]
mov r12d, dword [rsi]
cmp r12d, dword [rsi + 4]
jne 0x1400fc978
lea ebp, [r12 + 1]
mov rcx, rsi
mov edx, ebp
call fcn.1400faa70
mov rax, qword [rsi + 8]
mov qword [rax + r12*8], r13
jmp 0x1400fc985
xor esi, esi
test r14, r14
je 0x1400fc920
cmp r14, r15
jne 0x1400fc920
mov rax, qword [rsp + 0x20]
add rdi, qword [rax + 8]
mov rsi, rdi
jmp 0x1400fc920