Function at 0x440500
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, ecx
xor ecx, ecx
push ebx
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], ecx
mov ebx, dword [eax]
cmp dword [eax + 0x10], ecx
jle 0x4407eb
push esi
push edi
nop
mov eax, dword [eax + 0x18]
mov edx, ebx
mov edi, dword [edx]
lea ebx, [ebx + eax*4]
dec edi
mov dword [ebp - 0xc], ebx
test edi, edi
jle 0x4407d1
mov eax, dword [ebp - 0x14]
add edx, 4
mov ebx, dword [ebp + 8]
xor esi, esi
mov dword [ebp - 0x18], edx
mov edx, dword [edx]
mov dword [ebp - 4], edx
mov edx, dword [eax + 8]
add edx, ecx
mov ecx, dword [ebx]
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 edi, 1
mov ecx, dword [ebp - 4]
mov dword [ebx + 0x18], edx
mov dword [ebp - 0x24], edi
js 0x440731
nop
mov edx, dword [ebp - 0x18]
mov eax, dword [edx + 4]
add edx, 8
mov dword [ebp - 8], eax
mov dword [ebp - 0x18], edx
mov eax, dword [edx]
mov dword [ebp - 0x20], eax
cdq
and edx, 0xff
lea edi, [edx + eax]
mov eax, ecx
cdq
and edx, 0xff
sar edi, 8
lea ecx, [edx + eax]
sar ecx, 8
cmp edi, ecx
jne 0x4405c7
mov ecx, dword [ebp - 0x20]
mov eax, ecx
sub eax, dword [ebp - 4]
imul eax, dword [ebp - 8]
add esi, eax
jmp 0x440724
mov edx, dword [ebp - 4]
movzx eax, dl
mov edx, 0x100
sub edx, eax
imul edx, dword [ebp - 8]
lea eax, [esi + edx]
cdq
and edx, 0xff
add eax, edx
sar eax, 8
mov dword [ebp - 0x1c], eax
test eax, eax
jle 0x44064a
mov eax, dword [ebx]
mov esi, dword [ebx + 4]
mov eax, dword [eax + 0x10]
imul eax, ecx
add eax, dword [ebx + 0x14]
mov dword [ebp - 4], eax
mov eax, ecx
sub eax, dword [ebx + 0xc]
cdq
idiv dword [esi + 0x14]
mov eax, dword [ebx + 0x18]
imul edx, dword [esi + 0x10]
mov ebx, dword [ebx + 8]
mov esi, dword [ebp - 4]
mov dl, byte [edx + eax + 3]
mov eax, dword [ebp - 0x1c]
cmp eax, 0xff
jge 0x440629
imul ebx, eax
sar ebx, 8
movzx eax, dl
inc ebx
imul ebx, eax
mov edx, 0x100
movzx eax, byte [esi]
shr ebx, 8
sub edx, ebx
imul edx, eax
sar edx, 8
add dl, bl
mov ebx, dword [ebp + 8]
mov byte [esi], dl
mov edx, dword [ebp - 8]
test edx, edx
jle 0x440718
inc ecx
sub edi, ecx
mov dword [ebp - 4], edi
test edi, edi
jle 0x440718
mov eax, dword [ebx]
mov eax, dword [eax + 0x10]
mov edi, eax
mov dword [ebp - 0x1c], eax
mov eax, dword [ebx + 8]
imul edi, ecx
sub ecx, dword [ebx + 0xc]
imul eax, edx
add edi, dword [ebx + 0x14]
sar eax, 8
cmp eax, 0xfe
jge 0x4406d6
inc eax
mov dword [ebp - 0x28], eax
nop word [eax + eax]
mov esi, dword [ebx + 4]
mov eax, ecx
cdq
inc ecx
idiv dword [esi + 0x14]
mov esi, dword [esi + 0x10]
mov eax, dword [ebx + 0x18]
imul esi, edx
mov edx, 0x100
movzx ebx, byte [esi + eax + 3]
imul ebx, dword [ebp - 0x28]
movzx eax, byte [edi]
shr ebx, 8
sub edx, ebx
imul edx, eax
mov eax, dword [ebp - 4]
dec eax
mov dword [ebp - 4], eax
sar edx, 8
add dl, bl
mov ebx, dword [ebp + 8]
mov byte [edi], dl
add edi, dword [ebp - 0x1c]
test eax, eax
jg 0x440690
jmp 0x440715
mov esi, dword [ebx + 4]
mov eax, ecx
cdq
inc ecx
idiv dword [esi + 0x14]
mov esi, dword [esi + 0x10]
mov eax, dword [ebx + 0x18]
imul esi, edx
mov edx, 0x100
mov bl, byte [esi + eax + 3]
movzx eax, bl
sub edx, eax
movzx eax, byte [edi]
imul edx, eax
mov eax, dword [ebp - 4]
dec eax
mov dword [ebp - 4], eax
sar edx, 8
add dl, bl
mov ebx, dword [ebp + 8]
mov byte [edi], dl
add edi, dword [ebp - 0x1c]
test eax, eax
jg 0x4406d6
mov edx, dword [ebp - 8]
mov ecx, dword [ebp - 0x20]
mov ebx, dword [ebp + 8]
movzx esi, cl
imul esi, edx
sub dword [ebp - 0x24], 1
mov dword [ebp - 4], ecx
jns 0x440580
mov eax, esi
cdq
and edx, 0xff
add eax, edx
sar eax, 8
mov dword [ebp - 0x28], eax
test eax, eax
jle 0x4407ce
mov esi, dword [ebx + 4]
mov eax, ecx
mov ecx, dword [ebx]
cdq
and edx, 0xff
add eax, edx
mov edi, dword [ecx + 0x10]
sar eax, 8
imul edi, eax
sub eax, dword [ebx + 0xc]
cdq
idiv dword [esi + 0x14]
mov eax, dword [ebx + 0x18]
imul edx, dword [esi + 0x10]
add edi, dword [ebx + 0x14]
mov cl, byte [edx + eax + 3]
mov eax, dword [ebp - 0x28]
mov edx, dword [ebx + 8]
mov ebx, dword [ebp - 0xc]
cmp eax, 0xff
jl 0x4407a8
movzx eax, cl
inc edx
imul edx, eax
mov ecx, 0x100
movzx eax, byte [edi]
shr edx, 8
sub ecx, edx
imul ecx, eax
sar ecx, 8
add cl, dl
mov byte [edi], cl
jmp 0x4407d1
imul edx, eax
movzx eax, cl
mov ecx, 0x100
sar edx, 8
inc edx
imul edx, eax
movzx eax, byte [edi]
shr edx, 8
sub ecx, edx
imul ecx, eax
sar ecx, 8
add cl, dl
mov byte [edi], cl
jmp 0x4407d1
mov ebx, 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 0x440520
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4