Function at 0x1400081f0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x38
mov edx, dword [rcx + 0x24]
mov rbx, rcx
mov r9d, dword [rcx + 0x54]
mov r8d, edx
mov r10d, dword [rcx + 0x50]
and r8d, 0x7fff
mov r14d, dword [rcx + 0x28]
xor edi, edi
mov ebp, dword [rcx + 0x2c]
mov rsi, qword [rcx + 0x30]
mov r15, qword [rcx + 0x38]
lea r13d, [rdi + 1]
mov dword [rsp + 0x90], edx
mov dword [rsp + 0x88], r9d
mov dword [rsp + 0x80], r10d
mov dword [rsp + 0x98], r8d
mov rcx, qword [rbx + 0xb8]
test rcx, rcx
jne 0x14000826e
cmp dword [rbx + 0xa8], edi
je 0x140008757
test r14d, r14d
je 0x140008757
mov r13d, 0x1000
lea r12d, [r14 + rdx]
and r12d, 0x7fff
sub r13d, r14d
cmp rcx, r13
jae 0x14000828e
mov r13d, dword [rbx + 0xb8]
mov eax, r13d
add r14d, r13d
sub rcx, rax
mov qword [rbx + 0xb8], rcx
test r13d, r13d
je 0x140008357
mov rdx, qword [rbx + 0xb0]
mov eax, 0x8000
sub eax, r12d
mov ecx, r13d
cmp eax, r13d
cmovb ecx, eax
mov eax, ecx
mov dword [rsp + 0x20], ecx
mov r8d, eax
mov ecx, r12d
add rcx, 0xc8
mov qword [rsp + 0x28], rax
add rcx, rbx
call fcn.140013e90
cmp r12d, 0x101
jae 0x140008315
mov rdx, qword [rbx + 0xb0]
lea rcx, [rbx + 0x80c8]
mov eax, 0x101
sub eax, r12d
cmp dword [rsp + 0x20], eax
cmovb eax, dword [rsp + 0x20]
mov r8d, eax
mov eax, r12d
add rcx, rax
call fcn.140013e90
add r12d, dword [rsp + 0x20]
mov rax, qword [rsp + 0x28]
and r12d, 0x7fff
add qword [rbx + 0xb0], rax
sub r13d, dword [rsp + 0x20]
jne 0x1400082a7
mov r10d, dword [rsp + 0x80]
mov edx, dword [rsp + 0x90]
mov r8d, dword [rsp + 0x98]
mov r9d, dword [rsp + 0x88]
mov eax, 0x8000
sub eax, r14d
cmp eax, ebp
cmovb ebp, eax
cmp dword [rbx + 0xa8], edi
jne 0x140008379
cmp r14d, 0x1000
jb 0x140008751
mov r13d, 1
cmp r14d, 4
jb 0x140008660
mov eax, r8d
mov r11d, r13d
add rax, 0xc8
add rax, rbx
mov qword [rsp + 0x80], rax
mov r12d, dword [rax]
and r12d, 0xffffff
mov eax, r12d
mov ecx, r12d
shr rcx, 0x11
xor rcx, rax
movzx eax, dx
and ecx, 0xfff
movzx r8d, word [rbx + rcx*2 + 0x292aa]
sub ax, r8w
mov word [rbx + rcx*2 + 0x292aa], dx
movzx r13d, ax
cmp r13d, ebp
ja 0x14000855e
mov edx, r8d
lea r9, [rbx + 0xc8]
mov eax, r8d
mov ecx, 0x7fff
and rax, rcx
and edx, ecx
add r9, rax
lea eax, [rdx + 2]
movzx r8d, byte [rax + rbx + 0xc8]
lea eax, [rdx + 1]
movzx eax, byte [rax + rbx + 0xc8]
shl r8d, 8
or r8d, eax
movzx eax, byte [r9]
shl r8d, 8
or r8d, eax
cmp r8d, r12d
jne 0x14000855e
mov rcx, qword [rsp + 0x80]
mov r11d, 0x20
mov r8, rcx
add r9, 2
add r8, 2
movzx eax, word [r9]
cmp word [r8], ax
jne 0x14000848d
add r9, 2
add r8, 2
movzx eax, word [r9]
cmp word [r8], ax
jne 0x14000848d
add r9, 2
add r8, 2
movzx eax, word [r9]
cmp word [r8], ax
jne 0x14000848d
add r9, 2
add r8, 2
movzx eax, word [r9]
cmp word [r8], ax
jne 0x14000848d
add r11d, 0xffffffff
jne 0x14000843f
mov al, byte [r9]
mov rdx, r8
sub rdx, rcx
mov ecx, edi
sar rdx, 1
cmp byte [r8], al
sete cl
lea eax, [rcx + rdx*2]
test r11d, r11d
jne 0x1400084b5
mov eax, r13d
neg eax
sbb eax, eax
and eax, 0x102
mov r8d, 3
cmp eax, r8d
jb 0x140008553
jne 0x1400084d3
cmp r13d, 0x2000
jae 0x140008553
cmp eax, r14d
lea r9, [0x140000000]
mov r11d, r14d
cmovb r11d, eax
dec r13d
mov word [rsi + 1], r13w
mov al, r11b
sub al, r8b
mov edx, r13d
mov byte [rsi], al
mov al, byte [r15]
shr al, 1
or al, 0x80
shr rdx, 8
mov byte [r15], al
mov eax, r13d
and eax, 0x1ff
cmp r13d, 0x200
mov r13d, 1
movzx ecx, byte [rax + r9 + 0x35f80]
movzx eax, byte [rdx + r9 + 0x358f0]
cmovb eax, ecx
add word [rbx + rax*2 + 0x840a], r13w
lea eax, [r11 - 3]
movzx eax, word [r9 + rax*2 + 0x35d80]
add word [rbx + rax*2 + 0x81ca], r13w
mov rax, r8
jmp 0x14000857a
mov r13d, 1
mov r11d, r13d
jmp 0x140008564
mov r13d, 1
movzx eax, r12b
mov byte [rsi], r12b
shr byte [r15], 1
add word [rbx + rax*2 + 0x81ca], r13w
mov rax, r13
add rsi, rax
add r10d, 0xffffffff
mov dword [rsp + 0x80], r10d
jne 0x14000859f
mov r10d, 8
mov r15, rsi
mov dword [rsp + 0x80], r10d
inc rsi
mov r9d, dword [rsp + 0x88]
lea eax, [r11 + rbp]
mov edx, dword [rsp + 0x90]
add r9d, r11d
mov r8d, dword [rsp + 0x98]
add edx, r11d
mov ecx, 0x8000
mov dword [rsp + 0x88], r9d
cmp eax, ecx
mov dword [rsp + 0x90], edx
mov ebp, ecx
cmovb ebp, eax
add r8d, r11d
and r8d, 0x7fff
lea rax, [rbx + 0x192a2]
sub r14d, r11d
mov dword [rsp + 0x98], r8d
cmp rsi, rax
jbe 0x14000837f
mov dword [rbx + 0x24], edx
mov rcx, rbx
xor edx, edx
mov dword [rbx + 0x28], r14d
mov dword [rbx + 0x2c], ebp
mov dword [rbx + 0x54], r9d
mov qword [rbx + 0x30], rsi
mov qword [rbx + 0x38], r15
mov dword [rbx + 0x50], r10d
call fcn.140007ca0
test eax, eax
jne 0x140008776
mov r9d, dword [rbx + 0x54]
mov r10d, dword [rbx + 0x50]
mov rsi, qword [rbx + 0x30]
mov r15, qword [rbx + 0x38]
mov edx, dword [rsp + 0x90]
mov r8d, dword [rsp + 0x98]
mov dword [rsp + 0x88], r9d
mov dword [rsp + 0x80], r10d
jmp 0x14000837f
test r14d, r14d
je 0x14000824d
lea r12, [rbx + 0x192a2]
add r9d, r13d
mov eax, r8d
mov dword [rsp + 0x88], r9d
mov cl, byte [rax + rbx + 0xc8]
mov byte [rsi], cl
add rsi, r13
shr byte [r15], 1
add r10d, 0xffffffff
mov dword [rsp + 0x80], r10d
jne 0x1400086af
mov r10d, 8
mov r15, rsi
mov dword [rsp + 0x80], r10d
add rsi, r13
add edx, r13d
movzx eax, cl
mov dword [rsp + 0x90], edx
add word [rbx + rax*2 + 0x81ca], r13w
lea eax, [rbp + 1]
mov ebp, 0x8000
cmp eax, ebp
inc r8d
cmovb ebp, eax
and r8d, 0x7fff
dec r14d
mov dword [rsp + 0x98], r8d
cmp rsi, r12
jbe 0x140008743
mov dword [rbx + 0x24], edx
mov rcx, rbx
xor edx, edx
mov dword [rbx + 0x28], r14d
mov dword [rbx + 0x2c], ebp
mov dword [rbx + 0x54], r9d
mov qword [rbx + 0x30], rsi
mov qword [rbx + 0x38], r15
mov dword [rbx + 0x50], r10d
call fcn.140007ca0
test eax, eax
jne 0x140008776
mov r9d, dword [rbx + 0x54]
mov r10d, dword [rbx + 0x50]
mov rsi, qword [rbx + 0x30]
mov r15, qword [rbx + 0x38]
mov edx, dword [rsp + 0x90]
mov r8d, dword [rsp + 0x98]
mov dword [rsp + 0x88], r9d
mov dword [rsp + 0x80], r10d
test r14d, r14d
jne 0x140008670
jmp 0x14000824d
mov r13d, 1
mov dword [rbx + 0x24], edx
mov eax, r13d
mov dword [rbx + 0x28], r14d
mov dword [rbx + 0x2c], ebp
mov dword [rbx + 0x54], r9d
mov qword [rbx + 0x30], rsi
mov qword [rbx + 0x38], r15
mov dword [rbx + 0x50], r10d
jmp 0x14000877c
setns dil
mov eax, edi
add rsp, 0x38
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret