Function at 0x14000ff20
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x78
movaps xmmword [rsp + 0x60], xmm6
mov r12, rdx
mov rdi, rcx
mov rax, qword [0x1400f6398]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp byte [rdx + 0x17], 0
js 0x14001019d
mov word [r12], 0
mov byte [r12 + 0x17], 0
cmp byte [r8 + 0x17], 0
js 0x1400101b4
mov word [r8], 0
mov byte [r8 + 0x17], 0
mov qword [rsp + 0x38], r8
movzx r15d, byte [rdi + 0x17]
mov r13, rdi
test r15b, r15b
jns 0x14000ff90
mov r13, qword [rdi]
mov r15, qword [rdi + 8]
xor ebp, ebp
lea rcx, [0x1400bfbf0]
xorps xmm6, xmm6
lea rbx, [rsp + 0x40]
mov rax, rbp
shl rax, 4
mov rdx, qword [rax + rcx]
mov rsi, qword [rax + rcx + 8]
movaps xmmword [rsp + 0x40], xmm6
mov qword [rsp + 0x50], 0
mov byte [rsp + 0x57], sil
lea r8, [rsi + rsi]
mov rcx, rbx
call fcn.14008e630
mov word [rsp + rsi*2 + 0x40], 0
movzx eax, byte [rsp + 0x57]
mov rcx, rax
test al, al
jns 0x14000ffe8
mov rcx, qword [rsp + 0x48]
cmp r15, rcx
jb 0x140010186
test rcx, rcx
je 0x140010060
mov rdx, rbx
test al, al
jns 0x140010002
mov rdx, qword [rsp + 0x40]
xor esi, esi
movzx ebx, word [r13 + rsi*2]
cmp bx, word [rdx + rsi*2]
sete r14b
jne 0x140010021
inc rsi
cmp rcx, rsi
jne 0x140010004
mov rsi, rcx
jmp 0x140010026
mov rsi, qword [rsp + 0x30]
test al, al
js 0x14001018e
test r14b, r14b
jne 0x140010067
mov qword [rsp + 0x30], rsi
inc rbp
movzx eax, byte [0x1400f9a10]
xor rax, 3
cmp rbp, rax
lea rcx, [0x1400bfbf0]
lea rbx, [rsp + 0x40]
jb 0x14000ffa1
jmp 0x140010182
mov r14b, 1
xor esi, esi
jmp 0x140010026
test rsi, rsi
je 0x140010182
movzx edx, byte [rdi + 0x17]
mov rax, rdx
test dl, dl
jns 0x14001007f
mov rax, qword [rdi + 8]
cmp rsi, rax
je 0x140010182
mov rcx, rdi
test dl, dl
jns 0x140010092
mov rcx, qword [rdi]
lea rbp, [rcx + rax*2]
mov rdx, rbp
test rax, rax
jle 0x1400100c3
btr rax, 0x3f
mov rdx, rcx
nop word cs:[rax + rax]
cmp word [rdx], 0x3d
je 0x1400100c3
add rdx, 2
add rax, 0xffffffffffffffff
jne 0x1400100b0
mov rdx, rbp
mov rax, rdx
sub rax, rcx
sar rax, 1
cmp rdx, rbp
mov rsi, 0xffffffffffffffff
cmovne rsi, rax
lea rbp, [rdi + 0x18]
mov qword [rsp + 0x20], rbp
lea rcx, [rsp + 0x40]
mov rdx, rdi
xor r8d, r8d
mov r9, rsi
call fcn.14000c2d0
cmp byte [r12 + 0x17], 0
js 0x1400101c9
mov rax, qword [rsp + 0x50]
mov qword [r12 + 0x10], rax
movups xmm0, xmmword [rsp + 0x40]
movups xmmword [r12], xmm0
mov bl, 1
cmp rsi, 0xffffffffffffffff
je 0x14001015d
inc rsi
mov qword [rsp + 0x20], rbp
lea rcx, [rsp + 0x40]
mov rdx, rdi
mov r8, rsi
mov r9, 0xffffffffffffffff
call fcn.14000c2d0
mov rsi, qword [rsp + 0x38]
cmp byte [rsi + 0x17], 0
js 0x1400101f5
mov rax, qword [rsp + 0x50]
mov qword [rsi + 0x10], rax
movups xmm0, xmmword [rsp + 0x40]
movups xmmword [rsi], xmm0
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14008b870
mov eax, ebx
movaps xmm6, xmmword [rsp + 0x60]
add rsp, 0x78
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
xor ebx, ebx
jmp 0x14001015d
xor r14d, r14d
jmp 0x140010021
mov rcx, qword [rsp + 0x40]
call fcn.1400897cc
jmp 0x14001002e
mov rax, qword [r12]
mov word [rax], 0
mov qword [r12 + 8], 0
jmp 0x14000ff61
mov rax, qword [r8]
mov word [rax], 0
mov qword [r8 + 8], 0
jmp 0x14000ff77
mov rax, qword [r12]
mov word [rax], 0
mov qword [r12 + 8], 0
cmp byte [r12 + 0x17], 0
jns 0x140010102
mov rcx, qword [r12]
call fcn.1400897cc
jmp 0x140010102
mov rax, qword [rsi]
mov word [rax], 0
mov qword [rsi + 8], 0
cmp byte [rsi + 0x17], 0
jns 0x14001014c
mov rcx, qword [rsi]
call fcn.1400897cc
jmp 0x14001014c