Function at 0x140099410
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x78
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0x28], rax
mov eax, 2
imul rax, rax, 3
mov rcx, qword [rsp + 0x28]
movzx eax, word [rcx + rax]
and eax, 0x7ff0
sar eax, 4
mov word [rsp + 0x30], ax
movsx eax, word [rsp + 0x30]
cmp eax, 0x7ff
jne 0x1400994ce
mov eax, 2
imul rax, rax, 3
mov rcx, qword [rsp + 0x28]
movzx eax, word [rcx + rax]
and eax, 0xf
test eax, eax
jne 0x1400994ba
mov eax, 2
imul rax, rax, 2
mov rcx, qword [rsp + 0x28]
movzx eax, word [rcx + rax]
test eax, eax
jne 0x1400994ba
mov eax, 2
imul rax, rax, 1
mov rcx, qword [rsp + 0x28]
movzx eax, word [rcx + rax]
test eax, eax
jne 0x1400994ba
mov eax, 2
imul rax, rax, 0
mov rcx, qword [rsp + 0x28]
movzx eax, word [rcx + rax]
test eax, eax
jne 0x1400994ba
mov dword [rsp + 0x44], 1
jmp 0x1400994c2
mov dword [rsp + 0x44], 2
movzx eax, word [rsp + 0x44]
jmp 0x140099af0
movsx eax, word [rsp + 0x30]
test eax, eax
jne 0x1400994f6
mov rcx, qword [rsp + 0x28]
call fcn.14009d240
mov word [rsp + 0x30], ax
movsx eax, word [rsp + 0x30]
test eax, eax
jle 0x1400994f6
xor eax, eax
jmp 0x140099af0
cmp dword [rsp + 0x88], 0
jle 0x140099578
movsx eax, word [rsp + 0x30]
mov ecx, 0x7ff
sub ecx, eax
mov eax, ecx
cmp eax, dword [rsp + 0x88]
jg 0x140099578
mov eax, 2
imul rax, rax, 3
mov rcx, qword [rsp + 0x28]
movzx eax, word [rcx + rax]
and eax, 0x8000
test eax, eax
je 0x140099549
movsd xmm0, qword [0x1401e01b8]
xorps xmm0, xmmword [0x14019a050]
movsd qword [rsp + 0x60], xmm0
jmp 0x140099557
movsd xmm0, qword [0x1401e01b8]
movsd qword [rsp + 0x60], xmm0
mov rax, qword [rsp + 0x80]
movsd xmm0, qword [rsp + 0x60]
movsd qword [rax], xmm0
mov eax, 1
jmp 0x140099af0
movsx eax, word [rsp + 0x30]
neg eax
cmp eax, dword [rsp + 0x88]
jge 0x1400995d5
mov eax, 2
imul rax, rax, 3
mov rcx, qword [rsp + 0x28]
movzx eax, word [rcx + rax]
and eax, 0xffff800f
movsx ecx, word [rsp + 0x30]
mov edx, dword [rsp + 0x88]
add edx, ecx
mov ecx, edx
shl ecx, 4
or eax, ecx
mov ecx, 2
imul rcx, rcx, 3
mov rdx, qword [rsp + 0x28]
mov word [rdx + rcx], ax
mov eax, 0xffffffff
jmp 0x140099af0
mov eax, 2
imul rax, rax, 3
mov rcx, qword [rsp + 0x28]
movzx eax, word [rcx + rax]
and eax, 0x8000
mov word [rsp + 0x38], ax
mov eax, 2
imul rax, rax, 3
mov rcx, qword [rsp + 0x28]
movzx eax, word [rcx + rax]
and eax, 0xf
or eax, 0x10
mov ecx, 2
imul rcx, rcx, 3
mov rdx, qword [rsp + 0x28]
mov word [rdx + rcx], ax
movsx eax, word [rsp + 0x30]
mov ecx, dword [rsp + 0x88]
lea eax, [rcx + rax - 1]
mov dword [rsp + 0x88], eax
cmp dword [rsp + 0x88], 0xffffffcb
jl 0x140099646
cmp dword [rsp + 0x88], 0
jl 0x1400996a5
mov eax, 2
imul rax, rax, 3
mov rcx, qword [rsp + 0x28]
movzx edx, word [rsp + 0x38]
mov word [rcx + rax], dx
mov eax, 2
imul rax, rax, 2
xor ecx, ecx
mov rdx, qword [rsp + 0x28]
mov word [rdx + rax], cx
mov eax, 2
imul rax, rax, 1
xor ecx, ecx
mov rdx, qword [rsp + 0x28]
mov word [rdx + rax], cx
mov eax, 2
imul rax, rax, 0
xor ecx, ecx
mov rdx, qword [rsp + 0x28]
mov word [rdx + rax], cx
xor eax, eax
jmp 0x140099af0
movzx eax, word [rsp + 0x88]
mov word [rsp + 0x20], ax
xor eax, eax
mov word [rsp + 0x34], ax
jmp 0x1400996c8
movsx eax, word [rsp + 0x20]
add eax, 0x10
mov word [rsp + 0x20], ax
movsx eax, word [rsp + 0x20]
cmp eax, 0xfffffff0
jg 0x140099794
movzx eax, word [rsp + 0x34]
test eax, eax
je 0x1400996e9
mov dword [rsp + 0x48], 1
jmp 0x1400996f1
mov dword [rsp + 0x48], 0
mov eax, 2
imul rax, rax, 0
mov rcx, qword [rsp + 0x28]
movzx eax, word [rcx + rax]
or eax, dword [rsp + 0x48]
mov word [rsp + 0x34], ax
mov eax, 2
imul rax, rax, 1
mov ecx, 2
imul rcx, rcx, 0
mov rdx, qword [rsp + 0x28]
mov r8, qword [rsp + 0x28]
movzx eax, word [r8 + rax]
mov word [rdx + rcx], ax
mov eax, 2
imul rax, rax, 2
mov ecx, 2
imul rcx, rcx, 1
mov rdx, qword [rsp + 0x28]
mov r8, qword [rsp + 0x28]
movzx eax, word [r8 + rax]
mov word [rdx + rcx], ax
mov eax, 2
imul rax, rax, 3
mov ecx, 2
imul rcx, rcx, 2
mov rdx, qword [rsp + 0x28]
mov r8, qword [rsp + 0x28]
movzx eax, word [r8 + rax]
mov word [rdx + rcx], ax
mov eax, 2
imul rax, rax, 3
xor ecx, ecx
mov rdx, qword [rsp + 0x28]
mov word [rdx + rax], cx
jmp 0x1400996bb
movsx eax, word [rsp + 0x20]
neg eax
mov word [rsp + 0x20], ax
movsx eax, word [rsp + 0x20]
test eax, eax
je 0x14009993c
movzx eax, word [rsp + 0x34]
test eax, eax
je 0x1400997c0
mov dword [rsp + 0x4c], 1
jmp 0x1400997c8
mov dword [rsp + 0x4c], 0
mov eax, 2
imul rax, rax, 0
mov rcx, qword [rsp + 0x28]
movzx eax, word [rcx + rax]
movsx ecx, word [rsp + 0x20]
mov edx, 0x10
sub edx, ecx
mov ecx, edx
shl eax, cl
or eax, dword [rsp + 0x4c]
mov word [rsp + 0x34], ax
mov eax, 2
imul rax, rax, 0
mov rcx, qword [rsp + 0x28]
movzx eax, word [rcx + rax]
movsx ecx, word [rsp + 0x20]
sar eax, cl
mov ecx, 2
imul rcx, rcx, 1
mov rdx, qword [rsp + 0x28]
movzx ecx, word [rdx + rcx]
mov dword [rsp + 0x54], ecx
movsx edx, word [rsp + 0x20]
mov r8d, 0x10
sub r8d, edx
mov edx, r8d
movzx ecx, dl
mov edx, dword [rsp + 0x54]
shl edx, cl
mov ecx, edx
or eax, ecx
mov ecx, 2
imul rcx, rcx, 0
mov rdx, qword [rsp + 0x28]
mov word [rdx + rcx], ax
mov eax, 2
imul rax, rax, 1
mov rcx, qword [rsp + 0x28]
movzx eax, word [rcx + rax]
movsx ecx, word [rsp + 0x20]
sar eax, cl
mov ecx, 2
imul rcx, rcx, 2
mov rdx, qword [rsp + 0x28]
movzx ecx, word [rdx + rcx]
mov dword [rsp + 0x50], ecx
movsx edx, word [rsp + 0x20]
mov r8d, 0x10
sub r8d, edx
mov edx, r8d
movzx ecx, dl
mov edx, dword [rsp + 0x50]
shl edx, cl
mov ecx, edx
or eax, ecx
mov ecx, 2
imul rcx, rcx, 1
mov rdx, qword [rsp + 0x28]
mov word [rdx + rcx], ax
mov eax, 2
imul rax, rax, 2
mov rcx, qword [rsp + 0x28]
movzx eax, word [rcx + rax]
movsx ecx, word [rsp + 0x20]
sar eax, cl
mov ecx, 2
imul rcx, rcx, 3
mov rdx, qword [rsp + 0x28]
movzx ecx, word [rdx + rcx]
mov dword [rsp + 0x58], ecx
movsx edx, word [rsp + 0x20]
mov r8d, 0x10
sub r8d, edx
mov edx, r8d
movzx ecx, dl
mov edx, dword [rsp + 0x58]
shl edx, cl
mov ecx, edx
or eax, ecx
mov ecx, 2
imul rcx, rcx, 2
mov rdx, qword [rsp + 0x28]
mov word [rdx + rcx], ax
mov eax, 2
imul rax, rax, 3
movsx ecx, word [rsp + 0x20]
mov rdx, qword [rsp + 0x28]
movzx eax, word [rdx + rax]
shr ax, cl
mov ecx, 2
imul rcx, rcx, 3
mov rdx, qword [rsp + 0x28]
mov word [rdx + rcx], ax
mov eax, 2
imul rax, rax, 3
movzx ecx, word [rsp + 0x38]
mov rdx, qword [rsp + 0x28]
movzx eax, word [rdx + rax]
or eax, ecx
mov ecx, 2
imul rcx, rcx, 3
mov rdx, qword [rsp + 0x28]
mov word [rdx + rcx], ax
movzx eax, word [rsp + 0x34]
cmp eax, 0x8000
jg 0x1400999a0
movzx eax, word [rsp + 0x34]
cmp eax, 0x8000
jne 0x140099a8a
mov eax, 2
imul rax, rax, 0
mov rcx, qword [rsp + 0x28]
movzx eax, word [rcx + rax]
and eax, 1
test eax, eax
je 0x140099a8a
mov eax, 2
imul rax, rax, 0
mov rcx, qword [rsp + 0x28]
movzx eax, word [rcx + rax]
inc ax
mov word [rsp + 0x40], ax
mov eax, 2
imul rax, rax, 0
mov rcx, qword [rsp + 0x28]
movzx edx, word [rsp + 0x40]
mov word [rcx + rax], dx
movzx eax, word [rsp + 0x40]
and eax, 0xffff
test eax, eax
jne 0x140099a8a
mov eax, 2
imul rax, rax, 1
mov rcx, qword [rsp + 0x28]
movzx eax, word [rcx + rax]
inc ax
mov word [rsp + 0x3e], ax
mov eax, 2
imul rax, rax, 1
mov rcx, qword [rsp + 0x28]
movzx edx, word [rsp + 0x3e]
mov word [rcx + rax], dx
movzx eax, word [rsp + 0x3e]
and eax, 0xffff
test eax, eax
jne 0x140099a8a
mov eax, 2
imul rax, rax, 2
mov rcx, qword [rsp + 0x28]
movzx eax, word [rcx + rax]
inc ax
mov word [rsp + 0x3c], ax
mov eax, 2
imul rax, rax, 2
mov rcx, qword [rsp + 0x28]
movzx edx, word [rsp + 0x3c]
mov word [rcx + rax], dx
movzx eax, word [rsp + 0x3c]
and eax, 0xffff
test eax, eax
jne 0x140099a8a
mov eax, 2
imul rax, rax, 3
mov rcx, qword [rsp + 0x28]
movzx eax, word [rcx + rax]
inc ax
mov ecx, 2
imul rcx, rcx, 3
mov rdx, qword [rsp + 0x28]
mov word [rdx + rcx], ax
jmp 0x140099aeb
mov eax, 2
imul rax, rax, 3
mov rcx, qword [rsp + 0x28]
movzx eax, word [rcx + rax]
movzx ecx, word [rsp + 0x38]
cmp eax, ecx
jne 0x140099aeb
mov eax, 2
imul rax, rax, 2
mov rcx, qword [rsp + 0x28]
movzx eax, word [rcx + rax]
test eax, eax
jne 0x140099aeb
mov eax, 2
imul rax, rax, 1
mov rcx, qword [rsp + 0x28]
movzx eax, word [rcx + rax]
test eax, eax
jne 0x140099aeb
mov eax, 2
imul rax, rax, 0
mov rcx, qword [rsp + 0x28]
movzx eax, word [rcx + rax]
test eax, eax
jne 0x140099aeb
xor eax, eax
jmp 0x140099af0
mov eax, 0xffffffff
add rsp, 0x78
ret