Function at 0x402500
Capabilities:
Encrypt data using rc4 prga

Disassembly:
sub esp, 8
mov eax, dword [esp + 0x14]
mov cl, byte [eax]
mov dl, byte [eax + 1]
push esi
mov esi, dword [esp + 0x14]
test esi, esi
mov dword [esp + 8], 0
jle 0x402754
push ebx
push ebp
push edi
movzx edi, cl
movzx ebp, dl
lea ebx, [ebx]
lea eax, [edi + 1]
cdq
mov ecx, 0x2f3
idiv ecx
mov ecx, dword [0x416398]
mov esi, 0x2f3
push 0x4111f6
push 0x416460
movzx edi, dl
movzx eax, byte [edi + ecx]
add eax, ebp
mov byte [esp + 0x1a], dl
cdq
idiv esi
movzx ebp, dl
mov bl, byte [ecx + ebp]
lea eax, [ecx + ebp]
mov byte [esp + 0x1b], dl
mov dl, byte [edi + ecx]
mov byte [edi + ecx], bl
mov byte [eax], dl
mov ecx, dword [0x416398]
movzx edx, byte [edi + ecx]
movzx eax, byte [ecx + ebp]
add eax, edx
cdq
mov ecx, esi
idiv ecx
mov byte [esp + 0x19], dl
call fcn.00401f00
add esp, 8
mov esi, eax
push 0xa
mov ecx, esi
call fcn.00402200
mov edx, dword [esi]
mov eax, dword [edx + 4]
mov cl, byte [eax + esi + 8]
add eax, esi
xor ebx, ebx
test cl, 6
jne 0x4025c7
mov eax, dword [eax + 0x28]
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0x2c]
cmp eax, 0xffffffff
jne 0x4025c7
mov ebx, 4
mov eax, dword [esi]
mov ecx, dword [eax + 4]
add ecx, esi
test ebx, ebx
je 0x4025e9
mov eax, dword [ecx + 8]
mov edx, dword [ecx + 0x28]
or eax, ebx
test edx, edx
jne 0x4025e1
or eax, 4
push 0
push eax
call fcn.0040315d
push 0x4111f6
push 0x416460
call fcn.00401f00
add esp, 8
mov esi, eax
push 0xa
mov ecx, esi
call fcn.00402200
mov ecx, dword [esi]
mov edx, dword [ecx + 4]
mov cl, byte [edx + esi + 8]
lea eax, [edx + esi]
xor ebx, ebx
test cl, 6
jne 0x40262d
mov eax, dword [eax + 0x28]
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0x2c]
cmp eax, 0xffffffff
jne 0x40262d
mov ebx, 4
mov eax, dword [esi]
mov ecx, dword [eax + 4]
add ecx, esi
test ebx, ebx
je 0x40264f
mov eax, dword [ecx + 8]
mov edx, dword [ecx + 0x28]
or eax, ebx
test edx, edx
jne 0x402647
or eax, 4
push 0
push eax
call fcn.0040315d
push 0x4111f6
push 0x416460
call fcn.00401f00
add esp, 8
mov esi, eax
push 0xa
mov ecx, esi
call fcn.00402200
mov ecx, dword [esi]
mov edx, dword [ecx + 4]
mov cl, byte [edx + esi + 8]
lea eax, [edx + esi]
xor ebx, ebx
test cl, 6
jne 0x402693
mov eax, dword [eax + 0x28]
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0x2c]
cmp eax, 0xffffffff
jne 0x402693
mov ebx, 4
mov eax, dword [esi]
mov ecx, dword [eax + 4]
add ecx, esi
test ebx, ebx
je 0x4026b5
mov eax, dword [ecx + 8]
mov edx, dword [ecx + 0x28]
or eax, ebx
test edx, edx
jne 0x4026ad
or eax, 4
push 0
push eax
call fcn.0040315d
push 0x4111f6
push 0x416460
call fcn.00401f00
add esp, 8
mov esi, eax
push 0xa
mov ecx, esi
call fcn.00402200
mov ecx, dword [esi]
mov edx, dword [ecx + 4]
mov cl, byte [edx + esi + 8]
lea eax, [edx + esi]
xor ebx, ebx
test cl, 6
jne 0x4026f9
mov eax, dword [eax + 0x28]
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0x2c]
cmp eax, 0xffffffff
jne 0x4026f9
mov ebx, 4
mov eax, dword [esi]
mov ecx, dword [eax + 4]
add ecx, esi
test ebx, ebx
je 0x40271b
mov eax, dword [ecx + 8]
mov edx, dword [ecx + 0x28]
or eax, ebx
test edx, edx
jne 0x402713
or eax, 4
push 0
push eax
call fcn.0040315d
movzx ecx, byte [esp + 0x11]
mov edx, dword [0x416398]
mov dl, byte [ecx + edx]
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x1c]
xor byte [eax + ecx], dl
mov ecx, dword [esp + 0x20]
inc eax
cmp eax, ecx
mov dword [esp + 0x14], eax
jl 0x402530
mov cl, byte [esp + 0x12]
mov eax, dword [esp + 0x24]
mov dl, byte [esp + 0x13]
pop edi
pop ebp
pop ebx
mov byte [eax], cl
mov byte [eax + 1], dl
pop esi
add esp, 8
ret