Function at 0x49f7f0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0x50]
push ebx
push esi
mov dword [ebp - 4], eax
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x48], 0
xor eax, eax
push fcn.0049f7d0
push ebp
push 0x4154e0
push dword fs:[eax]
mov dword fs:[eax], esp
xor ecx, ecx
mov edx, 1
mov eax, 0x63cee0
call fcn.00495400
mov edx, dword [ebp - 4]
mov dword [edx - 0x10], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax - 8]
mov eax, dword [eax + 0x1c]
lea ebx, [eax - 1]
test ebx, ebx
jl 0x49f8b4
mov dword [ebp - 0xc], 0xffffffff
lea esi, [esi]
add dword [ebp - 0xc], 1
mov eax, dword [ebp - 4]
mov eax, dword [eax - 8]
mov eax, dword [eax + 0x20]
lea esi, [eax - 1]
test esi, esi
jl 0x49f8ac
mov dword [ebp - 8], 0xffffffff
lea esi, [esi]
nop
add dword [ebp - 8], 1
lea eax, [ebp - 0x34]
push eax
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.0049fb40
lea edx, [ebp - 0x34]
mov eax, dword [ebp - 4]
mov eax, dword [eax - 0x10]
mov ecx, dword [ebp - 4]
mov ecx, dword [ecx - 0x10]
mov ecx, dword [ecx]
call dword [ecx + pe_nt_image_headers32]
cmp esi, dword [ebp - 8]
jg 0x49f878
mov esi, esi
cmp ebx, dword [ebp - 0xc]
jg 0x49f858
lea esi, [esi]
mov eax, dword [ebp - 4]
mov dword [eax - 0x1c], 0
mov eax, dword [ebp - 4]
mov eax, dword [eax - 0x10]
call fcn.00495780
mov dword [ebp - 0x14], eax
jmp 0x49f8ee
mov ecx, dword [ebp - 0x14]
mov eax, 0xd20d20d3
imul ecx
add edx, ecx
sar edx, 6
shr ecx, 0x1f
add edx, ecx
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 4]
add dword [eax - 0x1c], 1
cmp dword [ebp - 0x14], 0
jg 0x49f8d0
mov eax, dword [ebp - 4]
mov eax, dword [eax - 0x10]
call fcn.00495780
shl eax, 2
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 4]
sub eax, 0x14
mov edx, dword [ebp - 0x10]
call fcn.0040fc10
mov eax, dword [ebp - 4]
mov eax, dword [eax - 0x14]
mov edx, dword [ebp - 0x10]
xor cl, cl
call fcn.004037d0
mov eax, dword [ebp - 4]
mov eax, dword [eax - 0x10]
call fcn.00495780
mov ebx, eax
sub ebx, 1
test ebx, ebx
jl 0x49f9e4
mov dword [ebp - 0x14], 0xffffffff
lea esi, [esi]
add dword [ebp - 0x14], 1
mov eax, dword [ebp - 4]
mov edx, dword [eax - 0x14]
mov eax, dword [ebp - 0x14]
lea eax, [edx + eax*4]
mov edx, dword [ebp - 4]
mov edx, dword [edx - 0x1c]
xor cx, cx
call fcn.00409800
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax - 0x1c]
cmp eax, 1
jl 0x49f9d8
mov dword [ebp - 0x20], eax
add eax, 1
mov dword [ebp - 0x20], eax
sub dword [ebp - 0x20], 1
mov eax, dword [ebp - 0x18]
cdq
mov ecx, 0x4e
idiv ecx
lea eax, [edx + 1]
and eax, 0xff
mov al, byte [eax + str.N.__abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789__:______]
mov byte [ebp - 0x1c], al
mov eax, dword [ebp - 4]
mov edx, dword [eax - 0x14]
mov eax, dword [ebp - 0x14]
lea eax, [edx + eax*4]
call fcn.00403cb0
mov ecx, dword [ebp - 0x20]
mov dl, byte [ebp - 0x1c]
mov byte [eax + ecx - 1], dl
mov ecx, dword [ebp - 0x18]
mov eax, 0xd20d20d3
imul ecx
add edx, ecx
sar edx, 6
shr ecx, 0x1f
add edx, ecx
mov dword [ebp - 0x18], edx
cmp dword [ebp - 0x20], 1
jg 0x49f980
cmp ebx, dword [ebp - 0x14]
jg 0x49f948
lea esi, [esi]
mov eax, dword [ebp - 4]
mov eax, dword [eax - 0x10]
call fcn.00495780
shl eax, 2
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 4]
sub eax, 0x18
mov edx, dword [ebp - 0x24]
call fcn.0040fc10
mov eax, dword [ebp - 4]
mov eax, dword [eax - 0x18]
mov edx, dword [ebp - 0x24]
xor cl, cl
call fcn.004037d0
mov eax, dword [ebp - 4]
mov eax, dword [eax - 0x10]
call fcn.00495780
mov ebx, eax
sub ebx, 1
test ebx, ebx
jl 0x49fad8
mov dword [ebp - 0x14], 0xffffffff
lea esi, [esi]
add dword [ebp - 0x14], 1
mov eax, dword [ebp - 4]
mov eax, dword [eax - 0x10]
lea ecx, [ebp - 0x2c]
mov edx, dword [ebp - 0x14]
call fcn.00495750
cmp word [ebp - 0x26], 0
jne 0x49fa6d
mov eax, dword [ebp - 4]
mov eax, dword [eax - 0x18]
mov edx, dword [ebp - 0x14]
lea eax, [eax + edx*4]
mov edx, str.None
call fcn.00408b60
jmp 0x49facf
push 0
mov eax, 0x63e0d4
mov dword [ebp - 0x44], eax
mov dx, word [ebp - 0x2c]
lea ecx, [ebp - 0x48]
mov eax, dword [ebp - 4]
call fcn.0049faf0
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x40], eax
mov dx, word [ebp - 0x2a]
lea ecx, [ebp - 0x4c]
mov eax, dword [ebp - 4]
call fcn.0049faf0
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x3c], eax
mov dx, word [ebp - 0x28]
lea ecx, [ebp - 0x50]
mov eax, dword [ebp - 4]
call fcn.0049faf0
mov eax, dword [ebp - 0x50]
mov dword [ebp - 0x38], eax
lea edx, [ebp - 0x44]
mov eax, dword [ebp - 4]
mov ecx, dword [eax - 0x18]
mov eax, dword [ebp - 0x14]
lea eax, [ecx + eax*4]
mov ecx, 3
call fcn.00408ef0
cmp ebx, dword [ebp - 0x14]
jg 0x49fa38
xor edx, edx
pop eax
add esp, 0xc
mov dword fs:[edx], eax
mov eax, ebp
call fcn.0049f7d0
pop esi
pop ebx
mov esp, ebp
pop ebp
ret