Function at 0x4e40a4
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd0
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
mov ecx, 3
cdq
idiv ecx
mov dword [ebp - 0x28], edx
mov eax, dword [ebp + 0xc]
sub eax, dword [ebp - 0x28]
add eax, dword [ebp - 0xc]
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x28], 0
je 0x4e40dc
mov dword [ebp - 0x30], 4
jmp 0x4e40e1
xor eax, eax
mov dword [ebp - 0x30], eax
mov eax, dword [ebp + 0xc]
mov ecx, 3
cdq
idiv ecx
shl eax, 2
add dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x30]
push eax
mov eax, dword [ebp + 8]
mov ecx, 1
mov edx, dword [0x4b8420]
call fcn.004059d8
add esp, 4
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x20], eax
xor eax, eax
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x20]
cmp eax, dword [ebp - 0x2c]
jge 0x4e4211
mov eax, dword [ebp - 0x20]
mov edx, dword [ebp - 8]
mov al, byte [edx + eax]
and al, 0xfc
and eax, 0xff
shr eax, 2
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x20]
mov edx, dword [ebp - 8]
mov al, byte [edx + eax]
and al, 3
and eax, 0xff
shl eax, 4
mov edx, dword [ebp - 0x20]
mov ecx, dword [ebp - 8]
mov dl, byte [ecx + edx + 1]
and dl, 0xf0
and edx, 0xff
shr edx, 4
or eax, edx
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x20]
mov edx, dword [ebp - 8]
mov al, byte [edx + eax + 1]
and al, 0xf
and eax, 0xff
shl eax, 2
mov edx, dword [ebp - 0x20]
mov ecx, dword [ebp - 8]
mov dl, byte [ecx + edx + 2]
and dl, 0xc0
and edx, 0xff
shr edx, 6
or eax, edx
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x20]
mov edx, dword [ebp - 8]
mov al, byte [edx + eax + 2]
and al, 0x3f
and eax, 0xff
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov edx, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x10]
mov cl, byte [ecx + 0x597818]
mov byte [eax + edx], cl
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov edx, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x14]
mov cl, byte [ecx + 0x597818]
mov byte [eax + edx + 1], cl
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov edx, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x18]
mov cl, byte [ecx + 0x597818]
mov byte [eax + edx + 2], cl
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov edx, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x1c]
mov cl, byte [ecx + 0x597818]
mov byte [eax + edx + 3], cl
add dword [ebp - 0x20], 3
add dword [ebp - 0x24], 4
mov eax, dword [ebp - 0x20]
cmp eax, dword [ebp - 0x2c]
jl 0x4e4123
cmp dword [ebp - 0x28], 0
je 0x4e42e4
mov eax, dword [ebp - 0x20]
mov edx, dword [ebp - 8]
mov al, byte [edx + eax]
and al, 0xfc
and eax, 0xff
shr eax, 2
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x20]
mov edx, dword [ebp - 8]
mov al, byte [edx + eax]
and al, 3
and eax, 0xff
shl eax, 4
mov dword [ebp - 0x14], eax
mov eax, dword [0x597814]
mov dword [ebp - 0x18], eax
mov eax, dword [0x597814]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x28], 2
jne 0x4e428b
mov eax, dword [ebp - 0x20]
mov edx, dword [ebp - 8]
mov al, byte [edx + eax + 1]
and al, 0xf0
and eax, 0xff
shr eax, 4
or dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x20]
mov edx, dword [ebp - 8]
mov al, byte [edx + eax + 1]
and al, 0xf
and eax, 0xff
shl eax, 2
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov edx, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x10]
mov cl, byte [ecx + 0x597818]
mov byte [eax + edx], cl
inc dword [ebp - 0x24]
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov edx, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x14]
mov cl, byte [ecx + 0x597818]
mov byte [eax + edx], cl
inc dword [ebp - 0x24]
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov edx, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x18]
mov cl, byte [ecx + 0x597818]
mov byte [eax + edx], cl
inc dword [ebp - 0x24]
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov edx, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x1c]
mov cl, byte [ecx + 0x597818]
mov byte [eax + edx], cl
mov esp, ebp
pop ebp
ret 8