Function at 0x42f500
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
mov esi, dword [ebp + 0x14]
mov edi, dword [ebp + 0xc]
mov bx, word [ebp + 8]
call fcn.00413bd0
sub esp, 8
push eax
test esi, esi
sets al
mov ecx, esi
sub ecx, 1
sete cl
or al, cl
mov ecx, esi
sub ecx, 0x25
setge cl
or al, cl
test al, 1
jne 0x42f538
jmp 0x42f53d
jmp 0x42f6df
mov eax, ebx
movzx ecx, ax
mov ebx, edi
mov edx, dword [ebp + 0x10]
add ebx, edx
add ebx, 0xffffffff
mov byte [edi + edx - 1], 0
cmp ecx, 0
sete cl
test cl, 1
jne 0x42f55e
jmp 0x42f56c
mov edi, ebx
add edi, 0xffffffff
mov byte [ebx - 1], 0x30
jmp 0x42f6df
cmp esi, 0xa
sete cl
test cl, 1
jne 0x42f57c
jmp 0x42f609
jmp 0x42f57e
movzx ecx, ax
cmp ecx, 0x64
jb 0x42f5c2
mov esi, 0x64
mov eax, ecx
xor edx, edx
div esi
jmp 0x42f593
shl edx, 1
mov al, byte [edx + 0x4422d7]
mov esi, ebx
add esi, 0xffffffff
mov byte [ebx - 1], al
mov al, byte [edx + str.00010203040506070809101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899]
add esi, 0xffffffff
mov byte [ebx - 2], al
mov edi, 0x64
mov eax, ecx
xor edx, edx
div edi
jmp 0x42f5be
mov ebx, esi
jmp 0x42f57e
cmp ecx, 0xa
setb al
test al, 1
jne 0x42f5ce
jmp 0x42f5e0
mov al, byte [ecx + str.0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ]
jmp 0x42f5d7
add ebx, 0xffffffff
jmp 0x42f5dc
mov byte [ebx], al
jmp 0x42f602
shl ecx, 1
mov dl, byte [ecx + 0x4422d7]
mov eax, ebx
add eax, 0xffffffff
mov byte [ebx - 1], dl
mov cl, byte [ecx + str.00010203040506070809101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899]
add eax, 0xffffffff
mov byte [ebx - 2], cl
mov ebx, eax
jmp 0x42f602
mov edi, ebx
jmp 0x42f6df
cmp esi, 0x10
je 0x42f613
jmp 0x42f6ad
jmp 0x42f615
movzx eax, ax
cmp eax, 0x100
setge cl
test cl, 1
jne 0x42f627
jmp 0x42f66f
mov esi, eax
and esi, 0xff
mov ecx, esi
xor ecx, 0xffffffff
and ecx, 2
mov edx, esi
and edx, 0xfffffffd
imul edx, ecx
mov ecx, esi
and ecx, 2
or esi, 2
imul esi, ecx
add esi, edx
mov dl, byte [esi + 0x4423a0]
mov ecx, ebx
add ecx, 0xffffffff
mov byte [ebx - 1], dl
mov dl, byte [esi + str.000102030405060708090A0B0C0D0E0F101112131415161718191A1B1C1D1E1F202122232425262728292A2B2C2D2E2F303132333435363738393A3B3C3D3E3F404142434445464748494A4B4C4D4E4F505152535455565758595A5B5C5D5E5F606162636465666768696A6B6C6D6E6F707172737475767778797A7B7C7D7E7F808182838485868788898A8B8C8D8E8F909192939495969798999A9B9C9D9E9FA0A1A2A3A4A5A6A7A8A9AAABACADAEAFB0B1B2B3B4B5B6B7B8B9BABBBCBDBEBFC0C1C2C3C4C5C6C7C8C9CACBCCCDCECFD0D1D2D3D4D5D6D7D8D9DADBDCDDDEDFE0E1E2E3E4E5E6E7E8E9EAEBECEDEEEFF0F1F2F3F4F5F6F7F8F9FAFBFCFDFEFF]
add ecx, 0xffffffff
mov byte [ebx - 2], dl
shr eax, 8
mov ebx, ecx
jmp 0x42f615
cmp eax, 0x10
setl cl
test cl, 1
jne 0x42f67c
jmp 0x42f68d
mov al, byte [eax + str.0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ]
mov edi, ebx
add edi, 0xffffffff
mov byte [ebx - 1], al
jmp 0x42f6df
shl eax, 1
mov cl, byte [eax + 0x4423a0]
mov edi, ebx
add edi, 0xffffffff
mov byte [ebx - 1], cl
mov al, byte [eax + str.000102030405060708090A0B0C0D0E0F101112131415161718191A1B1C1D1E1F202122232425262728292A2B2C2D2E2F303132333435363738393A3B3C3D3E3F404142434445464748494A4B4C4D4E4F505152535455565758595A5B5C5D5E5F606162636465666768696A6B6C6D6E6F707172737475767778797A7B7C7D7E7F808182838485868788898A8B8C8D8E8F909192939495969798999A9B9C9D9E9FA0A1A2A3A4A5A6A7A8A9AAABACADAEAFB0B1B2B3B4B5B6B7B8B9BABBBCBDBEBFC0C1C2C3C4C5C6C7C8C9CACBCCCDCECFD0D1D2D3D4D5D6D7D8D9DADBDCDDDEDFE0E1E2E3E4E5E6E7E8E9EAEBECEDEEEFF0F1F2F3F4F5F6F7F8F9FAFBFCFDFEFF]
add edi, 0xffffffff
mov byte [ebx - 2], al
jmp 0x42f6df
movzx ecx, ax
cmp ecx, 0
seta al
test al, 1
jne 0x42f6bc
jmp 0x42f6db
mov eax, ecx
xor edx, edx
div esi
lea eax, str.0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ
add eax, edx
jmp 0x42f6cc
mov al, byte [eax]
add ebx, 0xffffffff
mov byte [ebx], al
mov eax, ecx
xor edx, edx
div esi
jmp 0x42f6ad
mov edi, ebx
jmp 0x42f6df
mov eax, edi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret