Function at 0x4e66ec
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
push esi
mov esi, dword [ebp + 0xc]
movzx esi, word [esi]
mov dword [ebp - 0x28], esi
mov esi, dword [ebp + 8]
movzx esi, word [esi]
mov dword [ebp - 0x2c], esi
mov esi, edx
shl esi, 2
xor esi, edx
xor eax, eax
push edi
mov dword [ebp - 0x18], edx
cmp esi, 4
jae 0x4e67a9
push 8
pop edi
push 0x10
lea eax, [ecx + 2]
mov edx, edi
mov esi, edi
pop ecx
movzx ebx, byte [eax - 2]
add edx, ebx
movzx ebx, byte [eax - 1]
add esi, ebx
movzx ebx, byte [eax]
add edi, ebx
add eax, 4
dec ecx
jne 0x4e6729
sar esi, 4
lea ecx, [esi + esi]
sar edx, 4
sar edi, 4
lea eax, [edx + edx]
movzx si, byte [eax + 0x71b530]
movzx ax, byte [eax + 0x71b531]
lea edx, [edi + edi]
movzx di, byte [ecx + 0x71b330]
movzx cx, byte [ecx + 0x71b331]
shl si, 6
or si, di
movzx di, byte [edx + 0x71b530]
shl ax, 6
or ax, cx
movzx cx, byte [edx + 0x71b531]
shl si, 5
or si, di
shl ax, 5
or ax, cx
movzx edi, si
movzx esi, ax
jmp 0x4e69d9
xor edi, edi
xor esi, esi
mov dword [ebp - 0x10], eax
mov dword [ebp - 8], eax
mov dword [ebp - 4], eax
mov dword [ebp - 0xc], eax
add ecx, 2
mov dword [ebp - 0x1c], 0x10
mov edx, dword [ebp - 0x18]
and edx, 3
shl edx, 2
mov ebx, dword [edx + 0x68f00c]
add eax, dword [edx + 0x68f01c]
movzx edx, byte [ecx - 1]
mov dword [ebp - 0x14], ebx
imul edx, dword [ebp - 0x14]
add dword [ebp - 8], edx
movzx edx, byte [ecx]
imul edx, dword [ebp - 0x14]
movzx ebx, byte [ecx - 2]
imul ebx, dword [ebp - 0x14]
add dword [ebp - 0x10], edx
movzx edx, byte [ecx - 2]
add dword [ebp - 4], ebx
movzx ebx, byte [ecx]
shr dword [ebp - 0x18], 2
add esi, edx
movzx edx, byte [ecx - 1]
add edi, edx
mov edx, dword [ebp - 0xc]
add edx, ebx
add ecx, 4
dec dword [ebp - 0x1c]
mov dword [ebp - 0xc], edx
jne 0x4e67c3
imul esi, esi, 3
imul edi, edi, 3
imul edx, edx, 3
sub esi, dword [ebp - 4]
sub edi, dword [ebp - 8]
mov dword [ebp - 0x1c], esi
mov esi, eax
mov ecx, 0xff
mov dword [ebp - 0x18], edi
mov edi, eax
and eax, ecx
sar esi, 8
and esi, ecx
mov ebx, eax
imul eax, ebx
sar edi, 0x10
mov ecx, esi
imul ecx, edi
sub ecx, eax
mov dword [ebp - 0x20], ecx
sub edx, dword [ebp - 0x10]
mov eax, ebx
fild dword [ebp - 0x20]
imul eax, dword [ebp - 0x1c]
fdivr qword [0x68f5e0]
mov ecx, esi
mov dword [ebp - 0xc], edx
fstp dword [ebp - 0x20]
imul ecx, dword [ebp - 4]
fld dword [ebp - 0x20]
fld qword [0x68f5c0]
fmul st(1)
fdiv qword [0x68f5c8]
sub ecx, eax
mov dword [ebp - 0x14], ecx
fstp dword [ebp - 0x20]
fild dword [ebp - 0x14]
fld st(1)
fmulp st(1)
fld qword [0x68f558]
fadd st(1), st(0)
fxch st(1)
fstp dword [ebp - 0x14]
fld dword [ebp - 0x14]
call fcn.005bf510
test eax, eax
jge 0x4e68b0
xor eax, eax
jmp 0x4e68b8
cmp eax, 0x1f
jle 0x4e68b8
push 0x1f
pop eax
shl eax, 0xb
movzx eax, ax
mov dword [ebp - 0x14], eax
mov eax, ebx
imul eax, dword [ebp - 0x18]
mov ecx, esi
imul ecx, dword [ebp - 8]
sub ecx, eax
mov dword [ebp - 0x24], ecx
fild dword [ebp - 0x24]
fmul dword [ebp - 0x20]
fadd st(1)
fstp dword [ebp - 0x24]
fld dword [ebp - 0x24]
call fcn.005bf510
test eax, eax
jge 0x4e68ed
xor eax, eax
jmp 0x4e68f5
cmp eax, 0x3f
jle 0x4e68f5
push 0x3f
pop eax
imul esi, dword [ebp - 0x10]
shl eax, 5
or dword [ebp - 0x14], eax
mov eax, ebx
imul eax, dword [ebp - 0xc]
sub esi, eax
mov dword [ebp - 0x24], esi
fild dword [ebp - 0x24]
fld st(2)
fmulp st(1)
fadd st(1)
fstp dword [ebp - 0x24]
fld dword [ebp - 0x24]
call fcn.005bf510
test eax, eax
jge 0x4e6926
xor eax, eax
jmp 0x4e692e
cmp eax, 0x1f
jle 0x4e692e
push 0x1f
pop eax
or dword [ebp - 0x14], eax
mov eax, edi
imul eax, dword [ebp - 0x1c]
mov ecx, ebx
imul ecx, dword [ebp - 4]
sub eax, ecx
mov dword [ebp - 0x24], eax
fild dword [ebp - 0x24]
fld st(2)
fmulp st(1)
fadd st(1)
fstp dword [ebp - 0x24]
fld dword [ebp - 0x24]
call fcn.005bf510
test eax, eax
jge 0x4e695e
xor eax, eax
jmp 0x4e6966
cmp eax, 0x1f
jle 0x4e6966
push 0x1f
pop eax
shl eax, 0xb
movzx esi, ax
mov eax, edi
imul eax, dword [ebp - 0x18]
mov ecx, ebx
imul ecx, dword [ebp - 8]
sub eax, ecx
mov dword [ebp - 0x24], eax
fild dword [ebp - 0x24]
fmul dword [ebp - 0x20]
fadd st(1)
fstp dword [ebp - 0x24]
fld dword [ebp - 0x24]
call fcn.005bf510
test eax, eax
jge 0x4e6998
xor eax, eax
jmp 0x4e69a0
cmp eax, 0x3f
jle 0x4e69a0
push 0x3f
pop eax
imul edi, dword [ebp - 0xc]
imul ebx, dword [ebp - 0x10]
sub edi, ebx
mov dword [ebp - 0x24], edi
shl eax, 5
or esi, eax
fild dword [ebp - 0x24]
fmulp st(2)
faddp st(1)
fstp dword [ebp - 0x24]
fld dword [ebp - 0x24]
call fcn.005bf510
test eax, eax
jge 0x4e69cc
xor eax, eax
jmp 0x4e69d4
cmp eax, 0x1f
jle 0x4e69d4
push 0x1f
pop eax
mov edi, dword [ebp - 0x14]
or esi, eax
mov eax, dword [ebp + 0xc]
mov word [eax], si
mov eax, dword [ebp + 8]
mov word [eax], di
cmp word [ebp - 0x28], si
jne 0x4e69f5
cmp word [ebp - 0x2c], di
jne 0x4e69f5
xor eax, eax
jmp 0x4e69f8
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret