Function at 0x140012bb0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 8], rcx
push rsi
push rdi
sub rsp, 0x48
mov rax, qword [rsp + 0x60]
mov eax, dword [rax + 0x44]
mov dword [rsp + 0x30], eax
mov rdx, qword [rsp + 0x60]
mov rax, qword [rsp + 0x60]
mov ecx, dword [rax + 0x9c]
mov eax, dword [rdx + 0x58]
sub eax, ecx
mov rcx, qword [rsp + 0x60]
sub eax, dword [rcx + 0x94]
mov dword [rsp + 0x2c], eax
xor eax, eax
test eax, eax
je 0x140012c30
cmp dword [rsp + 0x2c], 0
jne 0x140012c1e
mov rax, qword [rsp + 0x60]
cmp dword [rax + 0x94], 0
jne 0x140012c1e
mov rax, qword [rsp + 0x60]
cmp dword [rax + 0x9c], 0
jne 0x140012c1e
mov eax, dword [rsp + 0x30]
mov dword [rsp + 0x2c], eax
jmp 0x140012c30
cmp dword [rsp + 0x2c], 0xffffffff
jne 0x140012c30
mov eax, dword [rsp + 0x2c]
sub eax, 1
mov dword [rsp + 0x2c], eax
mov rax, qword [rsp + 0x60]
mov ecx, dword [rax + 0x44]
mov eax, dword [rsp + 0x30]
lea ecx, [rax + rcx - 0x106]
mov rax, qword [rsp + 0x60]
cmp dword [rax + 0x94], ecx
jb 0x140012dc8
mov ecx, dword [rsp + 0x30]
mov esi, dword [rsp + 0x30]
mov rax, qword [rsp + 0x60]
add rsi, qword [rax + 0x50]
mov rdi, qword [rsp + 0x60]
mov rdi, qword [rdi + 0x50]
rep movsb byte [rdi], byte [rsi]
mov rdx, qword [rsp + 0x60]
mov eax, dword [rsp + 0x30]
mov ecx, dword [rdx + 0x98]
sub ecx, eax
mov rax, qword [rsp + 0x60]
mov dword [rax + 0x98], ecx
mov rcx, qword [rsp + 0x60]
mov eax, dword [rsp + 0x30]
mov ecx, dword [rcx + 0x94]
sub ecx, eax
mov rax, qword [rsp + 0x60]
mov dword [rax + 0x94], ecx
mov rcx, qword [rsp + 0x60]
mov eax, dword [rsp + 0x30]
mov ecx, dword [rcx + 0x84]
sub ecx, eax
mov rax, qword [rsp + 0x60]
mov dword [rax + 0x84], ecx
mov rax, qword [rsp + 0x60]
mov eax, dword [rax + 0x74]
mov dword [rsp + 0x28], eax
mov ecx, dword [rsp + 0x28]
mov rax, qword [rsp + 0x60]
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 0x140012d1a
mov ecx, dword [rsp + 0x30]
mov eax, dword [rsp + 0x34]
sub eax, ecx
mov dword [rsp + 0x38], eax
jmp 0x140012d22
mov dword [rsp + 0x38], 0
mov rcx, qword [rsp + 0x20]
movzx eax, word [rsp + 0x38]
mov word [rcx], ax
mov eax, dword [rsp + 0x28]
sub eax, 1
mov dword [rsp + 0x28], eax
cmp dword [rsp + 0x28], 0
jne 0x140012ce6
mov eax, dword [rsp + 0x30]
mov dword [rsp + 0x28], eax
mov ecx, dword [rsp + 0x28]
mov rax, qword [rsp + 0x60]
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 0x140012d93
mov ecx, dword [rsp + 0x30]
mov eax, dword [rsp + 0x34]
sub eax, ecx
mov dword [rsp + 0x3c], eax
jmp 0x140012d9b
mov dword [rsp + 0x3c], 0
mov rcx, qword [rsp + 0x20]
movzx eax, word [rsp + 0x3c]
mov word [rcx], ax
mov eax, dword [rsp + 0x28]
sub eax, 1
mov dword [rsp + 0x28], eax
cmp dword [rsp + 0x28], 0
jne 0x140012d5f
mov ecx, dword [rsp + 0x30]
mov eax, dword [rsp + 0x2c]
add eax, ecx
mov dword [rsp + 0x2c], eax
mov rax, qword [rsp + 0x60]
mov rax, qword [rax]
cmp dword [rax + 8], 0
jne 0x140012ddb
jmp 0x140012eda
cmp dword [rsp + 0x2c], 2
jae 0x140012dee
lea rcx, str.more___2
call fcn.140023f60
mov rax, qword [rsp + 0x60]
mov eax, dword [rax + 0x94]
mov rdx, qword [rsp + 0x60]
mov rdx, qword [rdx + 0x50]
add rdx, rax
mov rax, qword [rsp + 0x60]
mov eax, dword [rax + 0x9c]
add rdx, rax
mov r8d, dword [rsp + 0x2c]
mov rcx, qword [rsp + 0x60]
mov rcx, qword [rcx]
call fcn.140012ef0
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0x60]
mov ecx, dword [rax + 0x9c]
add ecx, dword [rsp + 0x28]
mov rax, qword [rsp + 0x60]
mov dword [rax + 0x9c], ecx
mov rax, qword [rsp + 0x60]
cmp dword [rax + 0x9c], 3
jb 0x140012eb7
mov rax, qword [rsp + 0x60]
mov ecx, dword [rax + 0x94]
mov rax, qword [rsp + 0x60]
mov rax, qword [rax + 0x50]
movzx ecx, byte [rax + rcx]
mov rax, qword [rsp + 0x60]
mov dword [rax + 0x70], ecx
mov rax, qword [rsp + 0x60]
mov ecx, dword [rax + 0x80]
mov rax, qword [rsp + 0x60]
mov edx, dword [rax + 0x70]
shl edx, cl
mov rax, qword [rsp + 0x60]
mov eax, dword [rax + 0x94]
add eax, 1
mov ecx, eax
mov rax, qword [rsp + 0x60]
mov rax, qword [rax + 0x50]
movzx eax, byte [rax + rcx]
mov ecx, edx
xor ecx, eax
mov rax, qword [rsp + 0x60]
and ecx, dword [rax + 0x7c]
mov rax, qword [rsp + 0x60]
mov dword [rax + 0x70], ecx
mov rax, qword [rsp + 0x60]
cmp dword [rax + 0x9c], 0x106
jae 0x140012eda
mov rax, qword [rsp + 0x60]
mov rax, qword [rax]
cmp dword [rax + 8], 0
jne 0x140012bc7
add rsp, 0x48
pop rdi
pop rsi
ret