Function at 0x14014f880
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 8], rcx
push rsi
push rdi
sub rsp, 0x58
mov rax, qword [rsp + 0x70]
mov eax, dword [rax + 0x44]
mov dword [rsp + 0x30], eax
mov rdx, qword [rsp + 0x70]
mov rax, qword [rsp + 0x70]
mov ecx, dword [rax + 0x9c]
mov eax, dword [rdx + 0x58]
sub eax, ecx
mov rcx, qword [rsp + 0x70]
sub eax, dword [rcx + 0x94]
mov dword [rsp + 0x2c], eax
xor eax, eax
test eax, eax
je 0x14014f900
cmp dword [rsp + 0x2c], 0
jne 0x14014f8ee
mov rax, qword [rsp + 0x70]
cmp dword [rax + 0x94], 0
jne 0x14014f8ee
mov rax, qword [rsp + 0x70]
cmp dword [rax + 0x9c], 0
jne 0x14014f8ee
mov eax, dword [rsp + 0x30]
mov dword [rsp + 0x2c], eax
jmp 0x14014f900
cmp dword [rsp + 0x2c], 0xffffffff
jne 0x14014f900
mov eax, dword [rsp + 0x2c]
sub eax, 1
mov dword [rsp + 0x2c], eax
mov rax, qword [rsp + 0x70]
mov ecx, dword [rax + 0x44]
mov eax, dword [rsp + 0x30]
lea ecx, [rax + rcx - 0x106]
mov rax, qword [rsp + 0x70]
cmp dword [rax + 0x94], ecx
jb 0x14014fa98
mov ecx, dword [rsp + 0x30]
mov esi, dword [rsp + 0x30]
mov rax, qword [rsp + 0x70]
add rsi, qword [rax + 0x50]
mov rdi, qword [rsp + 0x70]
mov rdi, qword [rdi + 0x50]
rep movsb byte [rdi], byte [rsi]
mov rdx, qword [rsp + 0x70]
mov eax, dword [rsp + 0x30]
mov ecx, dword [rdx + 0x98]
sub ecx, eax
mov rax, qword [rsp + 0x70]
mov dword [rax + 0x98], ecx
mov rcx, qword [rsp + 0x70]
mov eax, dword [rsp + 0x30]
mov ecx, dword [rcx + 0x94]
sub ecx, eax
mov rax, qword [rsp + 0x70]
mov dword [rax + 0x94], ecx
mov rcx, qword [rsp + 0x70]
mov eax, dword [rsp + 0x30]
mov ecx, dword [rcx + 0x84]
sub ecx, eax
mov rax, qword [rsp + 0x70]
mov dword [rax + 0x84], ecx
mov rax, qword [rsp + 0x70]
mov eax, dword [rax + 0x74]
mov dword [rsp + 0x28], eax
mov ecx, dword [rsp + 0x28]
mov rax, qword [rsp + 0x70]
mov rax, qword [rax + 0x68]
lea rax, [rax + rcx*2]
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x20]
sub rax, 2
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
mov dword [rsp + 0x34], eax
mov eax, dword [rsp + 0x30]
cmp dword [rsp + 0x34], eax
jb 0x14014f9ea
mov ecx, dword [rsp + 0x30]
mov eax, dword [rsp + 0x34]
sub eax, ecx
mov dword [rsp + 0x40], eax
jmp 0x14014f9f2
mov dword [rsp + 0x40], 0
mov rcx, qword [rsp + 0x20]
movzx eax, word [rsp + 0x40]
mov word [rcx], ax
mov eax, dword [rsp + 0x28]
sub eax, 1
mov dword [rsp + 0x28], eax
cmp dword [rsp + 0x28], 0
jne 0x14014f9b6
mov eax, dword [rsp + 0x30]
mov dword [rsp + 0x28], eax
mov ecx, dword [rsp + 0x28]
mov rax, qword [rsp + 0x70]
mov rax, qword [rax + 0x60]
lea rax, [rax + rcx*2]
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x20]
sub rax, 2
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
mov dword [rsp + 0x34], eax
mov eax, dword [rsp + 0x30]
cmp dword [rsp + 0x34], eax
jb 0x14014fa63
mov ecx, dword [rsp + 0x30]
mov eax, dword [rsp + 0x34]
sub eax, ecx
mov dword [rsp + 0x44], eax
jmp 0x14014fa6b
mov dword [rsp + 0x44], 0
mov rcx, qword [rsp + 0x20]
movzx eax, word [rsp + 0x44]
mov word [rcx], ax
mov eax, dword [rsp + 0x28]
sub eax, 1
mov dword [rsp + 0x28], eax
cmp dword [rsp + 0x28], 0
jne 0x14014fa2f
mov ecx, dword [rsp + 0x30]
mov eax, dword [rsp + 0x2c]
add eax, ecx
mov dword [rsp + 0x2c], eax
mov rax, qword [rsp + 0x70]
mov rax, qword [rax]
cmp dword [rax + 8], 0
jne 0x14014faab
jmp 0x14014fccb
mov rax, qword [rsp + 0x70]
mov eax, dword [rax + 0x94]
mov rdx, qword [rsp + 0x70]
mov rdx, qword [rdx + 0x50]
add rdx, rax
mov rax, qword [rsp + 0x70]
mov eax, dword [rax + 0x9c]
add rdx, rax
mov r8d, dword [rsp + 0x2c]
mov rcx, qword [rsp + 0x70]
mov rcx, qword [rcx]
call fcn.14014fce0
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0x70]
mov ecx, dword [rax + 0x9c]
add ecx, dword [rsp + 0x28]
mov rax, qword [rsp + 0x70]
mov dword [rax + 0x9c], ecx
mov rax, qword [rsp + 0x70]
cmp dword [rax + 0x9c], 3
jb 0x14014fb74
mov rax, qword [rsp + 0x70]
mov ecx, dword [rax + 0x94]
mov rax, qword [rsp + 0x70]
mov rax, qword [rax + 0x50]
movzx ecx, byte [rax + rcx]
mov rax, qword [rsp + 0x70]
mov dword [rax + 0x70], ecx
mov rax, qword [rsp + 0x70]
mov ecx, dword [rax + 0x80]
mov rax, qword [rsp + 0x70]
mov edx, dword [rax + 0x70]
shl edx, cl
mov rax, qword [rsp + 0x70]
mov eax, dword [rax + 0x94]
add eax, 1
mov ecx, eax
mov rax, qword [rsp + 0x70]
mov rax, qword [rax + 0x50]
movzx eax, byte [rax + rcx]
mov ecx, edx
xor ecx, eax
mov rax, qword [rsp + 0x70]
and ecx, dword [rax + 0x7c]
mov rax, qword [rsp + 0x70]
mov dword [rax + 0x70], ecx
mov rax, qword [rsp + 0x70]
cmp dword [rax + 0x9c], 0x106
jae 0x14014fb97
mov rax, qword [rsp + 0x70]
mov rax, qword [rax]
cmp dword [rax + 8], 0
jne 0x14014f897
mov rcx, qword [rsp + 0x70]
mov rax, qword [rsp + 0x70]
mov eax, dword [rax + 0x58]
cmp dword [rcx + 0x1718], eax
jae 0x14014fccb
mov rax, qword [rsp + 0x70]
mov eax, dword [rax + 0x94]
mov rcx, qword [rsp + 0x70]
add eax, dword [rcx + 0x9c]
mov dword [rsp + 0x3c], eax
mov rcx, qword [rsp + 0x70]
mov eax, dword [rsp + 0x3c]
cmp dword [rcx + 0x1718], eax
jae 0x14014fc2e
mov rax, qword [rsp + 0x70]
mov ecx, dword [rsp + 0x3c]
mov eax, dword [rax + 0x58]
sub eax, ecx
mov dword [rsp + 0x38], eax
cmp dword [rsp + 0x38], 0x102
jbe 0x14014fbff
mov dword [rsp + 0x38], 0x102
mov ecx, dword [rsp + 0x38]
mov edi, dword [rsp + 0x3c]
mov rax, qword [rsp + 0x70]
add rdi, qword [rax + 0x50]
xor eax, eax
rep stosb byte [rdi], al
mov eax, dword [rsp + 0x38]
mov ecx, dword [rsp + 0x3c]
add ecx, eax
mov rax, qword [rsp + 0x70]
mov dword [rax + 0x1718], ecx
jmp 0x14014fccb
mov ecx, dword [rsp + 0x3c]
add ecx, 0x102
mov rax, qword [rsp + 0x70]
cmp dword [rax + 0x1718], ecx
jae 0x14014fccb
mov eax, dword [rsp + 0x3c]
add eax, 0x102
mov rcx, qword [rsp + 0x70]
sub eax, dword [rcx + 0x1718]
mov dword [rsp + 0x38], eax
mov rdx, qword [rsp + 0x70]
mov rax, qword [rsp + 0x70]
mov ecx, dword [rax + 0x1718]
mov eax, dword [rdx + 0x58]
sub eax, ecx
cmp dword [rsp + 0x38], eax
jbe 0x14014fc95
mov rdx, qword [rsp + 0x70]
mov rax, qword [rsp + 0x70]
mov ecx, dword [rax + 0x1718]
mov eax, dword [rdx + 0x58]
sub eax, ecx
mov dword [rsp + 0x38], eax
mov ecx, dword [rsp + 0x38]
mov rax, qword [rsp + 0x70]
mov edi, dword [rax + 0x1718]
mov rax, qword [rsp + 0x70]
add rdi, qword [rax + 0x50]
xor eax, eax
rep stosb byte [rdi], al
mov rax, qword [rsp + 0x70]
mov ecx, dword [rax + 0x1718]
add ecx, dword [rsp + 0x38]
mov rax, qword [rsp + 0x70]
mov dword [rax + 0x1718], ecx
add rsp, 0x58
pop rdi
pop rsi
ret