Function at 0x41d870
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]
jmp 0x41d87e
push eax
test esi, esi
sets bl
mov eax, esi
sub eax, 1
sete al
or bl, al
cmp esi, 0x24
setg bh
call fcn.0041e060
or bl, bh
test bl, 1
jne 0x41d8a2
jmp 0x41d8a7
jmp 0x41da34
mov ecx, edi
mov eax, dword [ebp + 0x10]
add ecx, eax
add ecx, 0xffffffff
mov byte [edi + eax - 1], 0
mov ebx, dword [ebp + 8]
cmp ebx, 0
jne 0x41d8cc
mov edi, ecx
add edi, 0xffffffff
mov byte [ecx - 1], 0x30
jmp 0x41da32
cmp esi, 0xa
sete al
test al, 1
jne 0x41d8db
jmp 0x41d95e
jmp 0x41d8dd
cmp ebx, 0x64
setae al
test al, 1
jne 0x41d8e9
jmp 0x41d923
mov esi, 0x64
mov eax, ebx
xor edx, edx
div esi
shl edx, 1
mov al, byte [edx + 0x44270d]
mov esi, ecx
add esi, 0xffffffff
mov byte [ecx - 1], al
mov al, byte [edx + str.00010203040506070809101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899]
add esi, 0xffffffff
mov byte [ecx - 2], al
mov ecx, 0x64
mov eax, ebx
xor edx, edx
div ecx
mov ebx, eax
mov ecx, esi
jmp 0x41d8dd
cmp ebx, 0xa
jae 0x41d939
mov al, byte [ebx + str.0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ]
mov edi, ecx
add edi, 0xffffffff
mov byte [ecx - 1], al
jmp 0x41d959
shl ebx, 1
mov al, byte [ebx + 0x44270d]
mov edi, ecx
add edi, 0xffffffff
mov byte [ecx - 1], al
mov al, byte [ebx + str.00010203040506070809101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899]
add edi, 0xffffffff
mov byte [ecx - 2], al
jmp 0x41d959
jmp 0x41da32
cmp esi, 0x10
sete al
test al, 1
jne 0x41d96f
jmp 0x41d96a
jmp 0x41da08
jmp 0x41d971
cmp ebx, 0x100
setae al
test al, 1
jne 0x41d980
jmp 0x41d9cb
mov eax, ebx
and eax, 0xff
mov edx, eax
xor edx, 0xffffffff
and edx, 2
mov esi, eax
and esi, 0xfffffffd
imul esi, edx
mov edx, eax
and edx, 2
or eax, 2
imul eax, edx
add eax, esi
mov esi, ebx
mov bl, byte [eax + 0x4427d6]
mov edx, ecx
add edx, 0xffffffff
mov byte [ecx - 1], bl
mov ebx, esi
mov al, byte [eax + str.000102030405060708090A0B0C0D0E0F101112131415161718191A1B1C1D1E1F202122232425262728292A2B2C2D2E2F303132333435363738393A3B3C3D3E3F404142434445464748494A4B4C4D4E4F505152535455565758595A5B5C5D5E5F606162636465666768696A6B6C6D6E6F707172737475767778797A7B7C7D7E7F808182838485868788898A8B8C8D8E8F909192939495969798999A9B9C9D9E9FA0A1A2A3A4A5A6A7A8A9AAABACADAEAFB0B1B2B3B4B5B6B7B8B9BABBBCBDBEBFC0C1C2C3C4C5C6C7C8C9CACBCCCDCECFD0D1D2D3D4D5D6D7D8D9DADBDCDDDEDFE0E1E2E3E4E5E6E7E8E9EAEBECEDEEEFF0F1F2F3F4F5F6F7F8F9FAFBFCFDFEFF]
add edx, 0xffffffff
mov byte [ecx - 2], al
shr ebx, 8
mov ecx, edx
jmp 0x41d971
cmp ebx, 0x10
setb al
test al, 1
jne 0x41d9d7
jmp 0x41d9e8
mov al, byte [ebx + str.0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ]
mov edi, ecx
add edi, 0xffffffff
mov byte [ecx - 1], al
jmp 0x41da32
shl ebx, 1
mov al, byte [ebx + 0x4427d6]
mov edi, ecx
add edi, 0xffffffff
mov byte [ecx - 1], al
mov al, byte [ebx + str.000102030405060708090A0B0C0D0E0F101112131415161718191A1B1C1D1E1F202122232425262728292A2B2C2D2E2F303132333435363738393A3B3C3D3E3F404142434445464748494A4B4C4D4E4F505152535455565758595A5B5C5D5E5F606162636465666768696A6B6C6D6E6F707172737475767778797A7B7C7D7E7F808182838485868788898A8B8C8D8E8F909192939495969798999A9B9C9D9E9FA0A1A2A3A4A5A6A7A8A9AAABACADAEAFB0B1B2B3B4B5B6B7B8B9BABBBCBDBEBFC0C1C2C3C4C5C6C7C8C9CACBCCCDCECFD0D1D2D3D4D5D6D7D8D9DADBDCDDDEDFE0E1E2E3E4E5E6E7E8E9EAEBECEDEEEFF0F1F2F3F4F5F6F7F8F9FAFBFCFDFEFF]
add edi, 0xffffffff
mov byte [ecx - 2], al
jmp 0x41da32
cmp ebx, 0
jbe 0x41da2e
mov eax, ebx
xor edx, edx
div esi
mov al, byte [edx + str.0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ]
mov edi, ecx
add edi, 0xffffffff
mov byte [ecx - 1], al
mov eax, ebx
xor edx, edx
div esi
mov ebx, eax
mov ecx, edi
jmp 0x41da08
mov edi, ecx
jmp 0x41da32
jmp 0x41da34
mov eax, edi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret