Function at 0x430880
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 8
mov esi, dword [esp + 0x1c]
mov ebx, dword [esp + 0x24]
cmp byte [esi + 8], 3
je 0x4308a0
add esp, 8
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esi]
movzx ecx, byte [esi + 9]
mov dword [esp], eax
cmp cl, 7
ja 0x430970
lea edx, [eax - 1]
mov eax, dword [esp + 0x20]
add eax, edx
cmp cl, 2
je 0x430990
cmp cl, 4
je 0x4309f8
cmp cl, 1
je 0x430a50
mov edi, dword [esp]
mov byte [esi + 9], 8
mov byte [esi + 0xb], 8
mov dword [esi + 4], edi
mov edx, dword [esp + 0x28]
test edx, edx
je 0x430ab0
mov edi, dword [esp]
mov edx, dword [esp + 0x20]
mov ebp, eax
lea edx, [edx + edi*4 - 1]
sub ebp, edi
test edi, edi
je 0x430955
lea esi, [esi]
nop
movzx edi, byte [eax]
mov ecx, 0xffffffff
cmp edi, dword [esp + 0x2c]
jge 0x43091e
mov ecx, dword [esp + 0x28]
movzx ecx, byte [ecx + edi]
mov byte [edx], cl
movzx ecx, byte [eax]
sub edx, 4
sub eax, 1
lea ecx, [ecx + ecx*2]
movzx ecx, byte [ebx + ecx + 2]
mov byte [edx + 3], cl
movzx ecx, byte [eax + 1]
lea ecx, [ecx + ecx*2]
movzx ecx, byte [ebx + ecx + 1]
mov byte [edx + 2], cl
movzx ecx, byte [eax + 1]
lea ecx, [ecx + ecx*2]
movzx ecx, byte [ebx + ecx]
mov byte [edx + 1], cl
cmp ebp, eax
jne 0x430908
mov eax, dword [esp]
mov dword [esi + 8], 0x20040806
shl eax, 2
mov dword [esi + 4], eax
jmp 0x430895
cmp cl, 8
jne 0x430895
mov eax, dword [esp + 0x20]
mov edi, dword [esp]
lea eax, [eax + edi - 1]
jmp 0x4308e4
mov edi, dword [esp + 0x20]
shr edx, 2
add edi, edx
mov edx, dword [esp]
lea ecx, [edx + edx + 6]
xor ecx, 0xfffffffe
and ecx, 6
test edx, edx
je 0x4308d6
mov edx, dword [esp + 0x20]
mov dword [esp + 4], eax
mov ebp, eax
sub edx, 1
jmp 0x4309ca
add ecx, 2
sub ebp, 1
cmp edx, ebp
je 0x4309e8
movzx eax, byte [edi]
sar eax, cl
and eax, 3
mov byte [ebp], al
cmp ecx, 6
jne 0x4309c0
sub edi, 1
xor ecx, ecx
jmp 0x4309c3
mov eax, dword [esp + 4]
jmp 0x4308d6
mov edi, dword [esp]
shr edx, 1
add edx, dword [esp + 0x20]
lea ecx, [edi*4]
and ecx, 4
test edi, edi
je 0x4308d6
mov edi, dword [esp + 0x20]
mov dword [esp + 4], eax
mov ebp, eax
sub edi, 1
jmp 0x430a32
add ecx, 4
sub ebp, 1
cmp ebp, edi
je 0x4309e8
movzx eax, byte [edx]
sar eax, cl
and eax, 0xf
mov byte [ebp], al
cmp ecx, 4
jne 0x430a28
sub edx, 1
xor ecx, ecx
jmp 0x430a2b
shr edx, 3
add edx, dword [esp + 0x20]
mov edi, dword [esp + 0x20]
mov ebp, edx
mov edx, dword [esp]
sub edi, 1
lea ecx, [edx + 7]
mov dword [esp + 4], edi
mov edi, eax
not ecx
and ecx, 7
test edx, edx
je 0x4308d6
mov edx, dword [esp + 4]
mov dword [esp + 4], eax
jmp 0x430a96
add ecx, 1
sub edi, 1
cmp edx, edi
je 0x4309e8
movzx eax, byte [ebp]
sar eax, cl
and eax, 1
mov byte [edi], al
cmp ecx, 7
jne 0x430a88
sub ebp, 1
xor ecx, ecx
jmp 0x430a8b
mov ebp, dword [esp]
mov edx, dword [esp + 0x20]
mov ecx, eax
lea edi, [ebp + ebp*2]
sub ecx, ebp
lea edx, [edx + edi - 1]
test ebp, ebp
je 0x430b09
mov dword [esp], ecx
lea esi, [esi]
movzx ebp, byte [eax]
sub edx, 3
sub eax, 1
lea ebp, [ebp + ebp*2]
movzx ecx, byte [ebx + ebp + 2]
mov byte [edx + 3], cl
movzx ebp, byte [eax + 1]
lea ebp, [ebp + ebp*2]
movzx ecx, byte [ebx + ebp + 1]
mov byte [edx + 2], cl
movzx ebp, byte [eax + 1]
lea ebp, [ebp + ebp*2]
movzx ecx, byte [ebx + ebp]
mov byte [edx + 1], cl
cmp eax, dword [esp]
jne 0x430ad0
mov dword [esi + 4], edi
mov dword [esi + 8], 0x18030802
jmp 0x430895