Function at 0x14007db10
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 8], rcx
push rsi
push rdi
sub rsp, 0x68
mov rax, qword [rsp + 0x80]
mov eax, dword [rax + 0x44]
mov dword [rsp + 0x20], eax
mov rax, qword [rsp + 0x80]
mov rcx, qword [rsp + 0x80]
mov ecx, dword [rcx + 0x9c]
mov eax, dword [rax + 0x58]
sub eax, ecx
mov rcx, qword [rsp + 0x80]
sub eax, dword [rcx + 0x94]
mov dword [rsp + 0x2c], eax
xor eax, eax
test eax, eax
je 0x14007dba1
cmp dword [rsp + 0x2c], 0
jne 0x14007db90
mov rax, qword [rsp + 0x80]
cmp dword [rax + 0x94], 0
jne 0x14007db90
mov rax, qword [rsp + 0x80]
cmp dword [rax + 0x9c], 0
jne 0x14007db90
mov eax, dword [rsp + 0x20]
mov dword [rsp + 0x2c], eax
jmp 0x14007dba1
cmp dword [rsp + 0x2c], 0xffffffff
jne 0x14007dba1
mov eax, dword [rsp + 0x2c]
dec eax
mov dword [rsp + 0x2c], eax
mov rax, qword [rsp + 0x80]
mov eax, dword [rax + 0x44]
mov ecx, dword [rsp + 0x20]
lea eax, [rcx + rax - 0x106]
mov rcx, qword [rsp + 0x80]
cmp dword [rcx + 0x94], eax
jb 0x14007dd69
mov eax, dword [rsp + 0x20]
mov ecx, dword [rsp + 0x20]
mov rdx, qword [rsp + 0x80]
add rcx, qword [rdx + 0x50]
mov rdx, qword [rsp + 0x80]
mov rdi, qword [rdx + 0x50]
mov rsi, rcx
mov ecx, eax
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x80]
mov ecx, dword [rsp + 0x20]
mov eax, dword [rax + 0x98]
sub eax, ecx
mov rcx, qword [rsp + 0x80]
mov dword [rcx + 0x98], eax
mov rax, qword [rsp + 0x80]
mov ecx, dword [rsp + 0x20]
mov eax, dword [rax + 0x94]
sub eax, ecx
mov rcx, qword [rsp + 0x80]
mov dword [rcx + 0x94], eax
mov rax, qword [rsp + 0x80]
mov ecx, dword [rsp + 0x20]
mov eax, dword [rax + 0x84]
sub eax, ecx
mov rcx, qword [rsp + 0x80]
mov dword [rcx + 0x84], eax
mov rax, qword [rsp + 0x80]
mov eax, dword [rax + 0x74]
mov dword [rsp + 0x24], eax
mov eax, dword [rsp + 0x24]
mov rcx, qword [rsp + 0x80]
mov rcx, qword [rcx + 0x68]
lea rax, [rcx + rax*2]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
sub rax, 2
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
movzx eax, word [rax]
mov dword [rsp + 0x34], eax
mov eax, dword [rsp + 0x20]
cmp dword [rsp + 0x34], eax
jb 0x14007dcb6
mov eax, dword [rsp + 0x20]
mov ecx, dword [rsp + 0x34]
sub ecx, eax
mov eax, ecx
mov dword [rsp + 0x40], eax
jmp 0x14007dcbe
mov dword [rsp + 0x40], 0
mov rax, qword [rsp + 0x38]
movzx ecx, word [rsp + 0x40]
mov word [rax], cx
mov eax, dword [rsp + 0x24]
dec eax
mov dword [rsp + 0x24], eax
cmp dword [rsp + 0x24], 0
jne 0x14007dc80
mov eax, dword [rsp + 0x20]
mov dword [rsp + 0x24], eax
mov eax, dword [rsp + 0x24]
mov rcx, qword [rsp + 0x80]
mov rcx, qword [rcx + 0x60]
lea rax, [rcx + rax*2]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
sub rax, 2
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
movzx eax, word [rax]
mov dword [rsp + 0x34], eax
mov eax, dword [rsp + 0x20]
cmp dword [rsp + 0x34], eax
jb 0x14007dd33
mov eax, dword [rsp + 0x20]
mov ecx, dword [rsp + 0x34]
sub ecx, eax
mov eax, ecx
mov dword [rsp + 0x44], eax
jmp 0x14007dd3b
mov dword [rsp + 0x44], 0
mov rax, qword [rsp + 0x38]
movzx ecx, word [rsp + 0x44]
mov word [rax], cx
mov eax, dword [rsp + 0x24]
dec eax
mov dword [rsp + 0x24], eax
cmp dword [rsp + 0x24], 0
jne 0x14007dcfd
mov eax, dword [rsp + 0x20]
mov ecx, dword [rsp + 0x2c]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x2c], eax
mov rax, qword [rsp + 0x80]
mov rax, qword [rax]
cmp dword [rax + 8], 0
jne 0x14007dd7f
jmp 0x14007e03a
mov rax, qword [rsp + 0x80]
mov eax, dword [rax + 0x94]
mov rcx, qword [rsp + 0x80]
mov rcx, qword [rcx + 0x50]
add rcx, rax
mov rax, rcx
mov rcx, qword [rsp + 0x80]
mov ecx, dword [rcx + 0x9c]
add rax, rcx
mov r8d, dword [rsp + 0x2c]
mov rdx, rax
mov rax, qword [rsp + 0x80]
mov rcx, qword [rax]
call fcn.14007d5c0
mov dword [rsp + 0x24], eax
mov rax, qword [rsp + 0x80]
mov eax, dword [rax + 0x9c]
add eax, dword [rsp + 0x24]
mov rcx, qword [rsp + 0x80]
mov dword [rcx + 0x9c], eax
mov rax, qword [rsp + 0x80]
cmp dword [rax + 0x9c], 3
jb 0x14007de8c
mov rax, qword [rsp + 0x80]
mov eax, dword [rax + 0x94]
mov rcx, qword [rsp + 0x80]
mov rcx, qword [rcx + 0x50]
movzx eax, byte [rcx + rax]
mov rcx, qword [rsp + 0x80]
mov dword [rcx + 0x70], eax
mov rax, qword [rsp + 0x80]
mov eax, dword [rax + 0x80]
mov rcx, qword [rsp + 0x80]
mov qword [rsp + 0x48], rcx
movzx ecx, al
mov rax, qword [rsp + 0x48]
mov eax, dword [rax + 0x70]
shl eax, cl
mov rcx, qword [rsp + 0x80]
mov ecx, dword [rcx + 0x94]
inc ecx
mov ecx, ecx
mov rdx, qword [rsp + 0x80]
mov rdx, qword [rdx + 0x50]
movzx ecx, byte [rdx + rcx]
xor eax, ecx
mov rcx, qword [rsp + 0x80]
and eax, dword [rcx + 0x7c]
mov rcx, qword [rsp + 0x80]
mov dword [rcx + 0x70], eax
mov rax, qword [rsp + 0x80]
cmp dword [rax + 0x9c], 0x106
jae 0x14007deb5
mov rax, qword [rsp + 0x80]
mov rax, qword [rax]
cmp dword [rax + 8], 0
jne 0x14007db2a
mov rax, qword [rsp + 0x80]
mov rcx, qword [rsp + 0x80]
mov ecx, dword [rcx + 0x58]
cmp dword [rax + 0x1718], ecx
jae 0x14007e03a
mov rax, qword [rsp + 0x80]
mov eax, dword [rax + 0x94]
mov rcx, qword [rsp + 0x80]
add eax, dword [rcx + 0x9c]
mov dword [rsp + 0x30], eax
mov rax, qword [rsp + 0x80]
mov ecx, dword [rsp + 0x30]
cmp dword [rax + 0x1718], ecx
jae 0x14007df73
mov rax, qword [rsp + 0x80]
mov ecx, dword [rsp + 0x30]
mov eax, dword [rax + 0x58]
sub eax, ecx
mov dword [rsp + 0x28], eax
cmp dword [rsp + 0x28], 0x102
jbe 0x14007df2f
mov dword [rsp + 0x28], 0x102
mov eax, dword [rsp + 0x28]
mov qword [rsp + 0x50], rax
mov ecx, dword [rsp + 0x30]
mov rdx, qword [rsp + 0x80]
add rcx, qword [rdx + 0x50]
mov rdi, rcx
xor eax, eax
mov rcx, qword [rsp + 0x50]
rep stosb byte [rdi], al
mov eax, dword [rsp + 0x28]
mov ecx, dword [rsp + 0x30]
add ecx, eax
mov eax, ecx
mov rcx, qword [rsp + 0x80]
mov dword [rcx + 0x1718], eax
jmp 0x14007e03a
mov eax, dword [rsp + 0x30]
add eax, 0x102
mov rcx, qword [rsp + 0x80]
cmp dword [rcx + 0x1718], eax
jae 0x14007e03a
mov eax, dword [rsp + 0x30]
add eax, 0x102
mov rcx, qword [rsp + 0x80]
sub eax, dword [rcx + 0x1718]
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0x80]
mov rcx, qword [rsp + 0x80]
mov ecx, dword [rcx + 0x1718]
mov eax, dword [rax + 0x58]
sub eax, ecx
cmp dword [rsp + 0x28], eax
jbe 0x14007dfeb
mov rax, qword [rsp + 0x80]
mov rcx, qword [rsp + 0x80]
mov ecx, dword [rcx + 0x1718]
mov eax, dword [rax + 0x58]
sub eax, ecx
mov dword [rsp + 0x28], eax
mov eax, dword [rsp + 0x28]
mov qword [rsp + 0x58], rax
mov rcx, qword [rsp + 0x80]
mov ecx, dword [rcx + 0x1718]
mov rdx, qword [rsp + 0x80]
add rcx, qword [rdx + 0x50]
mov rdi, rcx
xor eax, eax
mov rcx, qword [rsp + 0x58]
rep stosb byte [rdi], al
mov rax, qword [rsp + 0x80]
mov eax, dword [rax + 0x1718]
add eax, dword [rsp + 0x28]
mov rcx, qword [rsp + 0x80]
mov dword [rcx + 0x1718], eax
add rsp, 0x68
pop rdi
pop rsi
ret