Function at 0x14009fece
Capabilities:
Encrypt data using rc4 prga

Disassembly:
jmp 0x140118a80
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 0x140118b3e
mov eax, 2
imul rax, rax, 3
mov rcx, qword [rsp + 0x28]
movzx eax, word [rcx + rax]
and eax, 0xf
test eax, eax
jne 0x140118b2a
mov eax, 2
imul rax, rax, 2
mov rcx, qword [rsp + 0x28]
movzx eax, word [rcx + rax]
test eax, eax
jne 0x140118b2a
mov eax, 2
imul rax, rax, 1
mov rcx, qword [rsp + 0x28]
movzx eax, word [rcx + rax]
test eax, eax
jne 0x140118b2a
mov eax, 2
imul rax, rax, 0
mov rcx, qword [rsp + 0x28]
movzx eax, word [rcx + rax]
test eax, eax
jne 0x140118b2a
mov dword [rsp + 0x44], 1
jmp 0x140118b32
mov dword [rsp + 0x44], 2
movzx eax, word [rsp + 0x44]
jmp 0x140119160
movsx eax, word [rsp + 0x30]
test eax, eax
jne 0x140118b66
mov rcx, qword [rsp + 0x28]
call fcn.1400a25e8
mov word [rsp + 0x30], ax
movsx eax, word [rsp + 0x30]
test eax, eax
jle 0x140118b66
xor eax, eax
jmp 0x140119160
cmp dword [rsp + 0x88], 0
jle 0x140118be8
movsx eax, word [rsp + 0x30]
mov ecx, 0x7ff
sub ecx, eax
mov eax, ecx
cmp eax, dword [rsp + 0x88]
jg 0x140118be8
mov eax, 2
imul rax, rax, 3
mov rcx, qword [rsp + 0x28]
movzx eax, word [rcx + rax]
and eax, 0x8000
test eax, eax
je 0x140118bb9
movsd xmm0, qword [0x14023e138]
xorps xmm0, xmmword [0x1401fc090]
movsd qword [rsp + 0x60], xmm0
jmp 0x140118bc7
movsd xmm0, qword [0x14023e138]
movsd qword [rsp + 0x60], xmm0
mov rax, qword [rsp + 0x80]
movsd xmm0, qword [rsp + 0x60]
movsd qword [rax], xmm0
mov eax, 1
jmp 0x140119160
movsx eax, word [rsp + 0x30]
neg eax
cmp eax, dword [rsp + 0x88]
jge 0x140118c45
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 0x140119160
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 0x140118cb6
cmp dword [rsp + 0x88], 0
jl 0x140118d15
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 0x140119160
movzx eax, word [rsp + 0x88]
mov word [rsp + 0x20], ax
xor eax, eax
mov word [rsp + 0x34], ax
jmp 0x140118d38
movsx eax, word [rsp + 0x20]
add eax, 0x10
mov word [rsp + 0x20], ax
movsx eax, word [rsp + 0x20]
cmp eax, 0xfffffff0
jg 0x140118e04
movzx eax, word [rsp + 0x34]
test eax, eax
je 0x140118d59
mov dword [rsp + 0x48], 1
jmp 0x140118d61
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 0x140118d2b
movsx eax, word [rsp + 0x20]
neg eax
mov word [rsp + 0x20], ax
movsx eax, word [rsp + 0x20]
test eax, eax
je 0x140118fac
movzx eax, word [rsp + 0x34]
test eax, eax
je 0x140118e30
mov dword [rsp + 0x4c], 1
jmp 0x140118e38
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 + 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, 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 + 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, 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 0x140119010
movzx eax, word [rsp + 0x34]
cmp eax, 0x8000
jne 0x1401190fa
mov eax, 2
imul rax, rax, 0
mov rcx, qword [rsp + 0x28]
movzx eax, word [rcx + rax]
and eax, 1
test eax, eax
je 0x1401190fa
mov eax, 2
imul rax, rax, 0
mov rcx, qword [rsp + 0x28]
movzx eax, word [rcx + rax]
inc ax
mov word [rsp + 0x3c], ax
mov eax, 2
imul rax, rax, 0
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 0x1401190fa
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 0x1401190fa
mov eax, 2
imul rax, rax, 2
mov rcx, qword [rsp + 0x28]
movzx eax, word [rcx + rax]
inc ax
mov word [rsp + 0x40], ax
mov eax, 2
imul rax, rax, 2
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 0x1401190fa
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 0x14011915b
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 0x14011915b
mov eax, 2
imul rax, rax, 2
mov rcx, qword [rsp + 0x28]
movzx eax, word [rcx + rax]
test eax, eax
jne 0x14011915b
mov eax, 2
imul rax, rax, 1
mov rcx, qword [rsp + 0x28]
movzx eax, word [rcx + rax]
test eax, eax
jne 0x14011915b
mov eax, 2
imul rax, rax, 0
mov rcx, qword [rsp + 0x28]
movzx eax, word [rcx + rax]
test eax, eax
jne 0x14011915b
xor eax, eax
jmp 0x140119160
mov eax, 0xffffffff
add rsp, 0x78
ret