Function at 0x140097d40
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 0x140097dfe
mov eax, 2
imul rax, rax, 3
mov rcx, qword [rsp + 0x28]
movzx eax, word [rcx + rax]
and eax, 0xf
test eax, eax
jne 0x140097dea
mov eax, 2
imul rax, rax, 2
mov rcx, qword [rsp + 0x28]
movzx eax, word [rcx + rax]
test eax, eax
jne 0x140097dea
mov eax, 2
imul rax, rax, 1
mov rcx, qword [rsp + 0x28]
movzx eax, word [rcx + rax]
test eax, eax
jne 0x140097dea
mov eax, 2
imul rax, rax, 0
mov rcx, qword [rsp + 0x28]
movzx eax, word [rcx + rax]
test eax, eax
jne 0x140097dea
mov dword [rsp + 0x44], 1
jmp 0x140097df2
mov dword [rsp + 0x44], 2
movzx eax, word [rsp + 0x44]
jmp 0x140098420
movsx eax, word [rsp + 0x30]
test eax, eax
jne 0x140097e26
mov rcx, qword [rsp + 0x28]
call fcn.14009bb70
mov word [rsp + 0x30], ax
movsx eax, word [rsp + 0x30]
test eax, eax
jle 0x140097e26
xor eax, eax
jmp 0x140098420
cmp dword [rsp + 0x88], 0
jle 0x140097ea8
movsx eax, word [rsp + 0x30]
mov ecx, 0x7ff
sub ecx, eax
mov eax, ecx
cmp eax, dword [rsp + 0x88]
jg 0x140097ea8
mov eax, 2
imul rax, rax, 3
mov rcx, qword [rsp + 0x28]
movzx eax, word [rcx + rax]
and eax, 0x8000
test eax, eax
je 0x140097e79
movsd xmm0, qword [0x1401dc1b8]
xorps xmm0, xmmword [0x140196440]
movsd qword [rsp + 0x60], xmm0
jmp 0x140097e87
movsd xmm0, qword [0x1401dc1b8]
movsd qword [rsp + 0x60], xmm0
mov rax, qword [rsp + 0x80]
movsd xmm0, qword [rsp + 0x60]
movsd qword [rax], xmm0
mov eax, 1
jmp 0x140098420
movsx eax, word [rsp + 0x30]
neg eax
cmp eax, dword [rsp + 0x88]
jge 0x140097f05
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 0x140098420
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 0x140097f76
cmp dword [rsp + 0x88], 0
jl 0x140097fd5
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 0x140098420
movzx eax, word [rsp + 0x88]
mov word [rsp + 0x20], ax
xor eax, eax
mov word [rsp + 0x34], ax
jmp 0x140097ff8
movsx eax, word [rsp + 0x20]
add eax, 0x10
mov word [rsp + 0x20], ax
movsx eax, word [rsp + 0x20]
cmp eax, 0xfffffff0
jg 0x1400980c4
movzx eax, word [rsp + 0x34]
test eax, eax
je 0x140098019
mov dword [rsp + 0x48], 1
jmp 0x140098021
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 0x140097feb
movsx eax, word [rsp + 0x20]
neg eax
mov word [rsp + 0x20], ax
movsx eax, word [rsp + 0x20]
test eax, eax
je 0x14009826c
movzx eax, word [rsp + 0x34]
test eax, eax
je 0x1400980f0
mov dword [rsp + 0x4c], 1
jmp 0x1400980f8
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 0x1400982d0
movzx eax, word [rsp + 0x34]
cmp eax, 0x8000
jne 0x1400983ba
mov eax, 2
imul rax, rax, 0
mov rcx, qword [rsp + 0x28]
movzx eax, word [rcx + rax]
and eax, 1
test eax, eax
je 0x1400983ba
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 0x1400983ba
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 0x1400983ba
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 0x1400983ba
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 0x14009841b
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 0x14009841b
mov eax, 2
imul rax, rax, 2
mov rcx, qword [rsp + 0x28]
movzx eax, word [rcx + rax]
test eax, eax
jne 0x14009841b
mov eax, 2
imul rax, rax, 1
mov rcx, qword [rsp + 0x28]
movzx eax, word [rcx + rax]
test eax, eax
jne 0x14009841b
mov eax, 2
imul rax, rax, 0
mov rcx, qword [rsp + 0x28]
movzx eax, word [rcx + rax]
test eax, eax
jne 0x14009841b
xor eax, eax
jmp 0x140098420
mov eax, 0xffffffff
add rsp, 0x78
ret