Function at 0x420ac0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
sub esp, 0x20
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x38]
mov eax, ecx
mov ebx, 1
mov dword [esp + 0x20], eax
xor edx, edx
mov dword [esp + 0x1c], ebx
movzx ecx, word [edi]
mov esi, ecx
test cx, cx
je 0x420b0b
mov esi, 0xff
jmp 0x420af0
cmp cx, si
ja 0x420b02
movzx ecx, word [edi + edx*2 + 2]
inc edx
test cx, cx
jne 0x420af0
jmp 0x420b0b
mov ebx, ecx
shr ebx, 8
mov dword [esp + 0x1c], ebx
mov ecx, dword [eax + 0xc]
xor ebp, ebp
mov esi, dword [esp + 0x3c]
mov dword [esp + 0x14], ebp
mov byte [esi + ecx], bl
mov ecx, dword [eax + 0xc]
mov ebx, dword [esp + 0x34]
inc ecx
mov dword [eax + 8], ecx
inc ecx
mov dword [eax + 0xc], ecx
lea edx, [ebx + 1]
lea ecx, [ecx]
mov cl, byte [ebx]
inc ebx
test cl, cl
jne 0x420b30
sub ebx, edx
mov dword [esp + 0x24], ebx
cmp word [edi], bp
je 0x420d4d
movzx edx, word [edi + ebp*2]
lea edi, [edi + ebp*2]
mov ebx, edx
mov dword [esp + 0x18], edx
shr ebx, 8
mov dword [esp + 0x2c], ebx
cmp ebp, dword [esp + 0x24]
jae 0x420c87
mov eax, dword [esp + 0x34]
xor ebx, ebx
add eax, ebp
mov esi, edi
mov dword [esp + 0x28], eax
movzx ecx, word [esi]
test cx, cx
je 0x420b8e
movsx edx, byte [eax + ebx]
cmp ecx, edx
jne 0x420b8e
inc ebx
add esi, 2
cmp ebx, 0x81
jl 0x420b72
mov eax, dword [esp + 0x20]
cmp ebx, 2
jl 0x420bde
mov ecx, dword [eax + 4]
add ebp, ebx
mov esi, dword [esp + 0x3c]
mov dword [esp + 0x14], ebp
cmp ecx, 8
jne 0x420bbd
mov edx, dword [eax + 8]
mov cl, byte [eax]
mov byte [esi + edx], cl
mov ecx, dword [eax + 0xc]
mov dword [eax + 8], ecx
inc ecx
mov dword [eax + 0xc], ecx
xor ecx, ecx
add ecx, 2
sub bl, 2
mov dword [eax + 4], ecx
mov cl, byte [eax]
shl cl, 2
or cl, 3
mov byte [eax], cl
mov ecx, dword [eax + 0xc]
mov byte [esi + ecx], bl
inc dword [eax + 0xc]
jmp 0x420d3e
mov ebp, dword [esp + 0x28]
mov cl, byte [esp + 0x18]
sub cl, byte [ebp]
xor ebx, ebx
mov byte [esp + 0x13], cl
mov al, cl
movzx esi, word [edi]
test si, si
je 0x420c1f
mov ecx, esi
shr ecx, 8
cmp cl, byte [esp + 0x1c]
jne 0x420c1f
movsx edx, byte [ebx + ebp]
movzx ecx, al
add edx, ecx
xor edx, esi
test dl, dl
jne 0x420c1f
inc ebx
add edi, 2
cmp ebx, 0x81
jl 0x420bf1
mov eax, dword [esp + 0x20]
mov ebp, dword [esp + 0x14]
mov esi, dword [esp + 0x3c]
cmp ebx, 2
jl 0x420c83
mov ecx, dword [eax + 4]
add ebp, ebx
mov dword [esp + 0x14], ebp
cmp ecx, 8
jne 0x420c52
mov edx, dword [eax + 8]
mov cl, byte [eax]
mov byte [esi + edx], cl
mov ecx, dword [eax + 0xc]
mov dword [eax + 8], ecx
inc ecx
mov dword [eax + 0xc], ecx
xor ecx, ecx
mov dl, byte [esp + 0x13]
add ecx, 2
mov dword [eax + 4], ecx
sub bl, 2
mov cl, byte [eax]
or bl, 0x80
shl cl, 2
or cl, 3
mov byte [eax], cl
mov ecx, dword [eax + 0xc]
mov byte [esi + ecx], bl
inc dword [eax + 0xc]
mov ecx, dword [eax + 0xc]
mov byte [ecx + esi], dl
inc dword [eax + 0xc]
jmp 0x420d3e
mov ebx, dword [esp + 0x2c]
mov ecx, dword [eax + 4]
test bl, bl
jne 0x420cbf
cmp ecx, 8
jne 0x420ca7
mov edx, dword [eax + 8]
mov cl, byte [eax]
mov byte [esi + edx], cl
mov ecx, dword [eax + 0xc]
mov dword [eax + 8], ecx
inc ecx
mov dword [eax + 0xc], ecx
xor ecx, ecx
mov edx, dword [esp + 0x18]
add ecx, 2
shl byte [eax], 2
mov dword [eax + 4], ecx
mov ecx, dword [eax + 0xc]
mov byte [esi + ecx], dl
jmp 0x420d36
cmp bl, byte [esp + 0x1c]
jne 0x420cfa
cmp ecx, 8
jne 0x420cde
mov edx, dword [eax + 8]
mov cl, byte [eax]
mov byte [esi + edx], cl
mov ecx, dword [eax + 0xc]
mov dword [eax + 8], ecx
inc ecx
mov dword [eax + 0xc], ecx
xor ecx, ecx
mov edx, dword [esp + 0x18]
add ecx, 2
mov dword [eax + 4], ecx
mov cl, byte [eax]
shl cl, 2
or cl, 1
mov byte [eax], cl
mov ecx, dword [eax + 0xc]
mov byte [esi + ecx], dl
jmp 0x420d36
cmp ecx, 8
jne 0x420d13
mov edx, dword [eax + 8]
mov cl, byte [eax]
mov byte [esi + edx], cl
mov ecx, dword [eax + 0xc]
mov dword [eax + 8], ecx
inc ecx
mov dword [eax + 0xc], ecx
xor ecx, ecx
mov edx, dword [esp + 0x18]
add ecx, 2
mov dword [eax + 4], ecx
mov cl, byte [eax]
shl cl, 2
or cl, 2
mov byte [eax], cl
mov ecx, dword [eax + 0xc]
mov byte [esi + ecx], dl
inc dword [eax + 0xc]
mov ecx, dword [eax + 0xc]
mov byte [ecx + esi], bl
inc dword [eax + 0xc]
inc ebp
mov dword [esp + 0x14], ebp
mov edi, dword [esp + 0x38]
cmp word [edi + ebp*2], 0
jne 0x420b46
mov dl, byte [eax]
mov ecx, 8
sub ecx, dword [eax + 4]
shl dl, cl
mov ecx, dword [eax + 8]
pop edi
mov byte [esi + ecx], dl
mov eax, dword [eax + 0xc]
pop esi
pop ebp
pop ebx
add esp, 0x20
ret 0xc