Function at 0x14003b540
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov rax, rsp
mov qword [rax + 8], rcx
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x80
mov qword [rax - 0x78], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov r14, r9
movzx r13d, r8b
mov r12, rdx
mov rsi, qword [rcx]
mov rbx, qword [rsi + 8]
mov dil, 1
xor r15d, r15d
nop
cmp byte [rbx + 0x19], 0
jne 0x14003b69a
mov rsi, rbx
test r13b, r13b
je 0x14003b60e
lea rax, [rsp + 0x60]
mov qword [rsp + 0x38], rax
mov rax, qword [r14]
mov qword [rsp + 0x60], rax
lea rdx, [r14 + 8]
lea rcx, [rsp + 0x68]
call fcn.14000bcd0
nop
mov rax, qword [rbx + 0x20]
mov qword [rsp + 0x48], rax
lea rdx, [rbx + 0x28]
lea rcx, [rsp + 0x50]
call fcn.14000bcd0
nop
mov rax, qword [rsp + 0x48]
mov rdx, qword [rsp + 0x60]
sub rdx, rax
movzx ecx, byte [rax]
cmp cl, byte [rax + rdx]
jne 0x14003b5ec
inc rax
test cl, cl
jne 0x14003b5d8
mov edi, r15d
jmp 0x14003b5f1
sbb edi, edi
or edi, 1
lea rcx, [rsp + 0x50]
call fcn.140009af0
lea rcx, [rsp + 0x68]
call fcn.140009af0
shr edi, 0x1f
xor dil, 1
jmp 0x14003b684
lea rax, [rsp + 0x48]
mov qword [rsp + 0x40], rax
mov rax, qword [rbx + 0x20]
mov qword [rsp + 0x48], rax
lea rdx, [rbx + 0x28]
lea rcx, [rsp + 0x50]
call fcn.14000bcd0
nop
mov rax, qword [r14]
mov qword [rsp + 0x60], rax
lea rdx, [r14 + 8]
lea rcx, [rsp + 0x68]
call fcn.14000bcd0
nop
mov rax, qword [rsp + 0x60]
mov rdx, qword [rsp + 0x48]
sub rdx, rax
movzx ecx, byte [rax]
cmp cl, byte [rax + rdx]
jne 0x14003b668
inc rax
test cl, cl
jne 0x14003b654
mov edi, r15d
jmp 0x14003b66d
sbb edi, edi
or edi, 1
lea rcx, [rsp + 0x68]
call fcn.140009af0
lea rcx, [rsp + 0x50]
call fcn.140009af0
shr edi, 0x1f
test dil, dil
je 0x14003b691
mov rbx, qword [rbx]
jmp 0x14003b580
mov rbx, qword [rbx + 0x10]
jmp 0x14003b580
mov rbx, rsi
test dil, dil
je 0x14003b74e
mov rcx, qword [rsp + 0xb0]
mov rax, qword [rcx]
cmp rsi, qword [rax]
jne 0x14003b6ef
movzx eax, byte [rsp + 0xd0]
mov byte [rsp + 0x28], al
mov qword [rsp + 0x20], r14
mov r9, rsi
mov r8b, 1
lea rdx, [rsp + 0xb0]
call fcn.14003b100
mov rax, qword [rax]
mov qword [r12], rax
mov byte [r12 + 8], 1
mov rax, r12
jmp 0x14003b812
cmp byte [rsi + 0x19], 0
je 0x14003b6fb
mov rbx, qword [rsi + 0x10]
jmp 0x14003b74e
mov rax, qword [rsi]
cmp byte [rax + 0x19], 0
je 0x14003b734
mov rax, qword [rsi + 8]
cmp byte [rax + 0x19], 0
jne 0x14003b729
mov rcx, rsi
mov rdx, rax
cmp rcx, qword [rax]
jne 0x14003b729
mov rbx, rax
mov rax, qword [rax + 8]
mov rcx, rbx
cmp byte [rax + 0x19], 0
je 0x14003b711
cmp byte [rbx + 0x19], 0
jne 0x14003b74e
mov rbx, rax
jmp 0x14003b74e
mov rbx, rax
mov rax, qword [rax + 0x10]
cmp byte [rax + 0x19], 0
jne 0x14003b74e
mov rbx, rax
mov rax, qword [rax + 0x10]
cmp byte [rax + 0x19], 0
je 0x14003b741
lea rax, [rsp + 0x48]
mov qword [rsp + 0x40], rax
mov rax, qword [r14]
mov qword [rsp + 0x48], rax
lea rdx, [r14 + 8]
lea rcx, [rsp + 0x50]
call fcn.14000bcd0
nop
mov rax, qword [rbx + 0x20]
mov qword [rsp + 0x60], rax
lea rdx, [rbx + 0x28]
lea rcx, [rsp + 0x68]
call fcn.14000bcd0
nop
mov rax, qword [rsp + 0x60]
mov rdx, qword [rsp + 0x48]
sub rdx, rax
movzx ecx, byte [rax]
cmp cl, byte [rax + rdx]
jne 0x14003b7a5
inc rax
test cl, cl
jne 0x14003b794
jmp 0x14003b7ac
sbb r15d, r15d
or r15d, 1
shr r15d, 0x1f
lea rcx, [rsp + 0x68]
call fcn.140009af0
lea rcx, [rsp + 0x50]
call fcn.140009af0
test r15b, r15b
je 0x14003b805
movzx eax, byte [rsp + 0xd0]
mov byte [rsp + 0x28], al
mov qword [rsp + 0x20], r14
mov r9, rsi
movzx r8d, dil
lea rdx, [rsp + 0x40]
mov rcx, qword [rsp + 0xb0]
call fcn.14003b100
mov rax, qword [rax]
mov qword [r12], rax
mov byte [r12 + 8], 1
mov rax, r12
jmp 0x14003b812
mov qword [r12], rbx
mov byte [r12 + 8], 0
mov rax, r12
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret