Function at 0x1400030e0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 8], rcx
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x98
lea r15, [rcx + 0xd058]
mov r13, rcx
mov ecx, dword [r15 + 0x18]
mov edi, dword [r15]
mov qword [rsp + 0x20], r15
cmp ecx, 1
jge 0x140003126
mov edx, 1
mov rcx, r15
call fcn.14000beb0
mov ecx, dword [r15 + 0x18]
mov edi, eax
dec ecx
xor ebp, ebp
mov dword [r15 + 0x18], ecx
xor ebx, ebx
lea ecx, [rdi + rdi]
shr edi, 0x1f
mov dword [r15], ecx
mov esi, dword [r13 + 0x140]
mov r14, qword [r13 + 0x138]
test esi, esi
je 0x1400031d6
nop
mov rcx, r15
call fcn.140002480
xor r9d, r9d
movzx r8d, dil
cmp eax, 0x1021
setae r9b
add r8b, r8b
nop dword [rax + rax]
movzx ecx, byte [rbx + r14]
add ebp, edi
and cl, 0xfd
or cl, r8b
and cl, 0xfe
mov byte [rbx + r14], cl
inc ebx
add eax, 0xffffffff
je 0x14000318f
cmp ebx, esi
jb 0x140003170
test r9d, r9d
je 0x1400031c8
cmp ebx, esi
jae 0x1400031c8
mov eax, dword [r15 + 0x18]
mov edi, dword [r15]
cmp eax, 1
jge 0x1400031b7
mov edx, 1
mov rcx, r15
call fcn.14000beb0
mov edi, eax
mov eax, dword [r15 + 0x18]
dec eax
mov dword [r15 + 0x18], eax
lea eax, [rdi + rdi]
mov dword [r15], eax
shr edi, 0x1f
jmp 0x1400031cb
xor edi, 1
cmp ebx, esi
jb 0x140003150
mov esi, dword [r13 + 0x140]
cmp ebp, esi
jae 0x1400031e2
mov rcx, r13
call fcn.140002f70
mov r8, r15
test ebp, ebp
je 0x140003222
mov ecx, dword [r15 + 0x18]
mov r14d, dword [r15]
cmp ecx, 1
jge 0x14000320c
mov edx, 1
mov rcx, r15
call fcn.14000beb0
mov ecx, dword [r15 + 0x18]
mov r14d, eax
mov r8, r15
dec ecx
mov dword [r8 + 0x18], ecx
lea ecx, [r14 + r14]
not r14d
mov dword [r8], ecx
shr r14d, 0x1f
jmp 0x140003225
xor r14d, r14d
mov rax, qword [r13 + 0x138]
lea rbx, [r13 + 0x170]
mov r9, qword [r13 + 0x168]
xor ecx, ecx
mov rbp, qword [r13 + 0x130]
xor edx, edx
mov r11, qword [r13 + 0x110]
xor r10d, r10d
mov qword [rsp + 0x68], rax
xor r12d, r12d
mov rax, qword [r13 + 0x128]
mov edi, 3
mov qword [rsp + 0x80], rbp
xor r15d, r15d
mov qword [rsp + 0x78], r11
mov qword [rsp + 0x70], r9
lea rsi, [r9 + rax*8]
mov qword [rsp + 0x48], rcx
lea rax, [r13 + 0xbc]
mov qword [rsp + 0x88], rsi
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x60], rdi
nop
add r10d, dword [rax]
mov dword [rsp + 0xf0], r10d
cmp ecx, r10d
jae 0x1400033f7
mov r13, qword [rsp + 0x68]
mov eax, ecx
add r13, rax
lea rdi, [rax*4]
mov eax, r10d
sub eax, ecx
mov qword [rsp + 0x38], rdi
mov ecx, eax
mov qword [rsp + 0x40], rcx
nop word [rax + rax]
xor r10d, r10d
mov ecx, 1
mov ebx, 4
mov qword [rsp + 0x28], r10
mov dword [rsp + 0xe8], ecx
mov qword [rsp + 0x30], rbx
nop
movzx eax, byte [r13]
shr eax, 2
and eax, ecx
test al, 0xf
je 0x1400033a5
add rdi, r10
lea rax, [r12*8]
sub rsi, rax
shl rdi, 5
add rdi, rbp
mov ebp, 4
nop dword [rax]
mov rbx, qword [rdi]
test rbx, rbx
js 0x140003370
movzx eax, byte [r13]
test al, 1
je 0x14000334f
mov qword [r9 + r15*8], rbx
mov eax, 1
inc r15
jmp 0x140003364
test al, 2
jne 0x140003455
xor eax, eax
inc r12
mov qword [rsi - 8], rbx
sub rsi, 8
and dword [r11 + rbx*4], 0xfffffffe
and eax, 1
or dword [r11 + rbx*4], eax
mov r8, qword [rsp + 0x20]
add rdi, 8
sub rbp, 1
jne 0x140003330
mov ecx, dword [rsp + 0xe8]
mov r10, qword [rsp + 0x28]
mov rbx, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x80]
mov rsi, qword [rsp + 0x88]
mov r8, qword [rsp + 0x20]
inc r10
rol ecx, 1
sub rbx, 1
mov dword [rsp + 0xe8], ecx
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x28], r10
jne 0x140003300
add rdi, 4
inc r13
sub qword [rsp + 0x40], 1
mov qword [rsp + 0x38], rdi
jne 0x1400032e0
mov r10d, dword [rsp + 0xf0]
mov ecx, r10d
mov rbx, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x60]
mov r8, qword [rsp + 0x20]
mov rax, r15
sub rax, qword [rsp + 0x48]
mov qword [rbx], rax
add rbx, 8
mov rax, qword [rsp + 0x58]
add rax, 0x28
mov qword [rsp + 0x48], r15
sub rdi, 1
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x60], rdi
mov qword [rsp + 0x58], rax
jne 0x1400032a0
mov rax, qword [rsp + 0xe0]
mov qword [rax + 0x188], r15
add rsp, 0x98
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
test edx, edx
jg 0x140003478
mov rcx, r8
call fcn.140002610
mov r9, qword [rsp + 0x70]
xor ecx, ecx
mov r11, qword [rsp + 0x78]
test r14d, r14d
mov edx, eax
sete cl
mov r14d, ecx
dec edx
mov eax, r14d
test r14d, r14d
je 0x140003359
mov qword [r9 + r15*8], rbx
inc r15
jmp 0x140003364