Function at 0x440ae0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, ecx
xor ecx, ecx
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], ecx
mov edx, dword [eax]
cmp dword [eax + 0x10], ecx
jle 0x440d00
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov eax, dword [eax + 0x18]
mov esi, edx
lea edx, [edx + eax*4]
mov eax, dword [esi]
dec eax
mov dword [ebp - 0xc], edx
mov dword [ebp - 8], eax
test eax, eax
jle 0x440ce5
mov eax, dword [ebp - 0x14]
add esi, 4
mov dword [ebp - 0x18], esi
xor edi, edi
mov edx, dword [eax + 8]
mov esi, dword [esi]
add edx, ecx
mov ecx, dword [ebx]
mov dword [ebp - 4], esi
mov eax, dword [ecx + 0xc]
imul eax, edx
sub edx, dword [ebx + 0x10]
add eax, dword [ecx]
mov ecx, dword [ebx + 4]
mov dword [ebx + 0x14], eax
mov eax, edx
cdq
idiv dword [ecx + 0x18]
imul edx, dword [ecx + 0xc]
add edx, dword [ecx]
sub dword [ebp - 8], 1
mov dword [ebx + 0x18], edx
js 0x440c88
mov ecx, esi
nop dword [eax]
mov edx, dword [ebp - 0x18]
mov eax, dword [edx + 4]
add edx, 8
mov dword [ebp - 4], eax
mov dword [ebp - 0x18], edx
mov eax, dword [edx]
mov dword [ebp - 0x1c], eax
cdq
and edx, 0xff
lea esi, [edx + eax]
mov eax, ecx
cdq
and edx, 0xff
sar esi, 8
lea ebx, [edx + eax]
sar ebx, 8
cmp esi, ebx
jne 0x440ba6
mov edx, dword [ebp - 0x1c]
mov eax, edx
sub eax, ecx
imul eax, dword [ebp - 4]
add edi, eax
jmp 0x440c74
movzx eax, cl
mov ecx, 0x100
sub ecx, eax
imul ecx, dword [ebp - 4]
lea eax, [edi + ecx]
cdq
and edx, 0xff
add edx, eax
sar edx, 8
test edx, edx
jle 0x440c04
mov ecx, dword [ebp + 8]
mov eax, dword [ecx]
mov edi, dword [eax + 0x10]
mov eax, dword [ecx + 8]
imul edi, ebx
add edi, dword [ecx + 0x14]
mov ecx, 0x100
cmp edx, 0xff
jge 0x440beb
imul eax, edx
sar eax, 8
inc eax
imul edx, eax, 0xff
movzx eax, byte [edi]
shr edx, 8
sub ecx, edx
imul ecx, eax
sar ecx, 8
add cl, dl
mov byte [edi], cl
mov edi, dword [ebp - 4]
test edi, edi
jle 0x440c6a
inc ebx
sub esi, ebx
test esi, esi
jle 0x440c6a
mov ecx, dword [ebp + 8]
mov eax, dword [ecx]
mov edx, dword [eax + 0x10]
mov eax, edx
imul eax, ebx
add eax, dword [ecx + 0x14]
mov ecx, dword [ecx + 8]
imul ecx, edi
sar ecx, 8
cmp ecx, 0xfe
jge 0x440c60
inc ecx
mov edi, 0x100
imul ebx, ecx, 0xff
shr ebx, 8
sub edi, ebx
movzx ecx, byte [eax]
dec esi
imul ecx, edi
sar ecx, 8
add cl, bl
mov byte [eax], cl
add eax, edx
test esi, esi
jg 0x440c44
jmp 0x440c6a
mov byte [eax], 0xff
dec esi
add eax, edx
test esi, esi
jg 0x440c60
mov edx, dword [ebp - 0x1c]
movzx edi, dl
imul edi, dword [ebp - 4]
sub dword [ebp - 8], 1
mov ecx, edx
jns 0x440b60
mov ebx, dword [ebp + 8]
mov esi, edx
mov dword [ebp - 4], ecx
mov eax, edi
cdq
and edx, 0xff
lea edi, [edx + eax]
sar edi, 8
test edi, edi
jle 0x440ce2
mov ecx, dword [ebx]
mov eax, esi
cdq
and edx, 0xff
lea esi, [edx + eax]
mov eax, dword [ebx + 8]
sar esi, 8
imul esi, dword [ecx + 0x10]
mov ecx, 0x100
add esi, dword [ebx + 0x14]
cmp edi, 0xff
jge 0x440cc9
imul eax, edi
sar eax, 8
inc eax
imul edx, eax, 0xff
movzx eax, byte [esi]
shr edx, 8
sub ecx, edx
imul ecx, eax
sar ecx, 8
add cl, dl
mov byte [esi], cl
mov edx, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x10]
inc eax
mov dword [ebp - 0x10], eax
cmp eax, dword [ecx + 0x10]
mov ecx, eax
mov eax, dword [ebp - 0x14]
jl 0x440b01
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4