Function at 0x14007f540
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov rax, rsp
mov dword [rax + 0x18], r8d
mov qword [rax + 8], rcx
push rbx
push rbp
push rsi
push rdi
push r15
sub rsp, 0xb0
mov r11, qword [rcx + 0xc8]
mov r15, rdx
mov rsi, qword [rcx + 0xdf60]
mov r9, rcx
mov qword [rax - 0x38], r13
xor edi, edi
mov qword [rax - 0x40], r14
mov rax, qword [rcx + 0x40]
movsxd r8, r8d
mov qword [rsp + 0x38], rax
lea rax, [rdx + 0x1400]
mov r10, qword [rax + r8*8]
lea rax, [rax + r8*8]
mov qword [rsp + 0x78], rax
mov r14, qword [rdx + r8*8 + 0x1430]
lea rax, [r8 + r8*2]
lea r13, [r8 + 1]
mov qword [rsp + 0x70], r11
shl r13, 9
lea rbp, [r8 + 7]
shl rbp, 9
add r13, rdx
add rbp, rdx
mov qword [rsp + 0x80], r8
mov qword [rsp + 0x60], r10
lea rdx, [rax + rax]
mov rax, qword [r15 + rdx*8 + 0x1460]
mov qword [rsp + 0x58], r14
movzx ecx, word [rax]
mov rax, qword [r15 + rdx*8 + 0x1468]
mov word [rsp + 0xe8], cx
movzx ecx, word [rax]
mov eax, edi
mov qword [rsp + 0xf8], rax
mov word [rsp + 0xea], cx
test r14, r14
jle 0x14007f7fc
lea r8, [r8 + r8*2]
mov qword [rsp + 0xa8], r12
mov qword [rsp + 0x68], r8
nop dword [rax]
mov rax, qword [r10 + rax*8]
mov rdx, rdi
mov ecx, dword [r11 + rax*4]
mov qword [rsp + 0x50], rax
lea rax, [r11 + rax*4]
mov qword [rsp + 0x40], rax
mov r11d, edi
mov eax, ecx
and eax, 0x700
cmp eax, 0x100
setne dl
shr rcx, 2
and ecx, 0xf
mov qword [rsp + 0x48], rdx
add rcx, r8
lea rax, [rdx + rcx*2]
mov rax, qword [r15 + rax*8 + 0x1460]
mov qword [rsp + 0x30], rax
nop dword [rax + rax]
movsxd rax, r11d
mov r12d, r11d
lea rcx, [rax*8]
mov rax, qword [rcx + rbp]
lea rbx, [rcx + rbp]
test rax, rax
jne 0x14007f762
movsxd r8, dword [rcx + r13]
lea r14, [rcx + r13]
lea rax, [0x1402ca740]
movzx r9d, byte [r8 + rsi]
inc r8d
mov r10d, dword [rax + r9*4]
cmp r9b, 0xf
jae 0x14007f6d3
cmp r9b, 0xc
sbb ecx, ecx
and ecx, 0x15
cmp r9b, 2
sbb eax, eax
and eax, 0xfffffff3
add ecx, eax
movsxd rax, r8d
movzx edx, byte [rax + rsi]
shl edx, cl
add r10d, edx
inc r8d
mov eax, r10d
sar rax, 8
and eax, 0xfff
test r9b, r9b
jne 0x14007f703
movsxd rcx, r8d
inc r8d
movzx edx, byte [rcx + rsi]
movabs rcx, 0x7fffffffffffffff
shl rdx, 8
add rax, rdx
cmove rax, rcx
movsxd rcx, r8d
mov edx, r10d
and edx, 0x100000
mov qword [rbx], rax
mov qword [r14], rcx
neg edx
sar edx, 0x15
movzx ecx, r10b
add r11d, ecx
sar r10d, 0x15
mov rcx, qword [rsp + 0x30]
xor dx, r10w
movsxd r8, r11d
movsx edx, dx
movsx ecx, word [rcx + r8*2]
imul edx, ecx
mov rcx, qword [rsp + 0x38]
test rax, rax
movzx ecx, byte [r8 + rcx]
mov word [r15 + rcx*2], dx
mov ecx, edi
sete cl
add r11d, ecx
cmp r11d, 0x40
jl 0x14007f670
jmp 0x14007f769
dec rax
mov qword [rcx + rbp], rax
mov rax, qword [rsp + 0x40]
mov r9, r15
mov r8d, dword [rsp + 0xf0]
mov rdx, qword [rsp + 0x50]
mov rcx, qword [rsp + 0xe0]
movzx eax, word [rax + 2]
mov word [r15], ax
mov rax, qword [rsp + 0x48]
movzx eax, word [rsp + rax*2 + 0xe8]
mov word [rsp + 0x28], ax
mov dword [rsp + 0x20], r12d
call fcn.140085c90
mov rax, qword [rsp + 0xf8]
mov r14, qword [rsp + 0x58]
inc rax
mov r10, qword [rsp + 0x60]
mov r8, qword [rsp + 0x68]
mov r11, qword [rsp + 0x70]
mov qword [rsp + 0xf8], rax
cmp rax, r14
jl 0x14007f620
mov rcx, qword [rsp + 0x78]
mov r8, qword [rsp + 0x80]
mov r9, qword [rsp + 0xe0]
mov r12, qword [rsp + 0xa8]
mov r10, qword [rcx]
jmp 0x14007f807
lea rcx, [r8 + 0x280]
lea rcx, [r15 + rcx*8]
mov r13, qword [rsp + 0xa0]
lea rax, [r10 + r14*8]
mov r10, qword [r15 + r8*8 + 0x1448]
mov r14, qword [rsp + 0x98]
mov qword [rcx], rax
test r10, r10
jle 0x14007f8e0
mov rax, r10
neg rax
shl rax, 3
add qword [r15 + r8*8 + 0x1418], rax
mov r11, qword [r9 + 0xd0]
mov rsi, qword [r9 + 0x318]
mov rbp, qword [r9 + 0x320]
movsxd r9, dword [r9 + r8*4 + 0x348]
mov rbx, qword [r15 + r8*8 + 0x1418]
nop word [rax + rax]
mov rax, qword [rbx + rdi*8]
inc rdi
mov rcx, qword [r11 + rax*8]
mov rax, qword [rcx + rsi]
mov qword [rcx + rbp], rax
lea rdx, [rcx + rsi]
add rdx, r9
lea r8, [rcx + rbp]
add r8, r9
mov rax, qword [rdx]
add rdx, r9
mov qword [r8], rax
add r8, r9
mov rax, qword [rdx]
add rdx, r9
mov qword [r8], rax
add r8, r9
mov rax, qword [rdx]
add rdx, r9
mov qword [r8], rax
add r8, r9
mov rax, qword [rdx]
add rdx, r9
mov qword [r8], rax
add r8, r9
mov rax, qword [rdx]
add rdx, r9
mov qword [r8], rax
add r8, r9
mov rax, qword [rdx]
mov qword [r8], rax
mov rax, qword [r9 + rdx]
mov qword [r9 + r8], rax
cmp rdi, r10
jl 0x14007f870
add rsp, 0xb0
pop r15
pop rdi
pop rsi
pop rbp
pop rbx
ret