Function at 0x446733
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x7c
lea esi, [ebp - 0x54]
mov dword [ebp - 0x20], ecx
mov ebx, edx
mov ecx, esi
call fcn.004466dd
cmp dword [esi], 2
jne 0x446760
mov edx, dword [ebp - 0x50]
lea ecx, [ebp - 0x88]
call fcn.00446972
jmp 0x44676b
push 0xd
pop ecx
lea edi, [ebp - 0x88]
rep movsd dword es:[edi], dword [esi]
mov esi, dword [ebp - 0x88]
cmp esi, 2
jne 0x4467d4
movzx ecx, word [ebp - 0x84]
mov al, byte [ebp - 0x82]
lea esi, [ebp - 0x54]
mov edx, ebx
mov word [ebp - 0x18], cx
mov ecx, esi
mov byte [ebp - 0x16], al
call fcn.004466dd
mov eax, dword [esi]
cmp eax, 2
jne 0x44685e
movzx ecx, byte [ebp - 0x50]
test cl, cl
js 0x44680f
mov ebx, ecx
mov eax, ecx
and ebx, 0xffffff00
mov ecx, dword [ebp - 0x20]
movzx edx, word [ebp - 0x18]
or ebx, eax
mov al, byte [ebp - 0x16]
mov word [ecx + 8], dx
mov byte [ecx + 0xa], al
mov dword [ecx + 4], ebx
mov dword [ecx], 2
jmp 0x44695f
lea eax, [ebp - 0x81]
mov edi, dword [ebp - 0x20]
mov cl, byte [eax - 1]
mov byte [ebp - 0xe], cl
movzx ecx, word [eax - 3]
mov word [ebp - 0x10], cx
lea ecx, [edi + 7]
push 0x2d
push eax
push ecx
call sub.msvcrt.dll_memcpy
add esp, 0xc
mov al, byte [ebp - 0xe]
movzx ecx, word [ebp - 0x10]
mov byte [edi + 6], al
mov word [edi + 4], cx
mov dword [edi], esi
jmp 0x44695f
xor eax, eax
cmp ecx, 0x80
jne 0x446820
mov ch, 5
jmp 0x4468f6
mov edx, ecx
mov ch, 0xd
cmp dl, 0x84
ja 0x4468f6
mov edi, edx
xor esi, esi
mov dword [ebp - 0x14], edx
xor edi, 0x80
sub edi, 1
jb 0x446897
lea ecx, [ebp - 0x54]
mov edx, ebx
call fcn.004466dd
mov eax, dword [ebp - 0x54]
cmp eax, 2
jne 0x44685e
movzx eax, byte [ebp - 0x50]
shl esi, 8
mov ch, 0xd
or esi, eax
jmp 0x44683a
lea esi, [ebp - 0x48]
mov cl, byte [esi - 8]
movzx edx, word [esi - 7]
mov bl, byte [esi - 4]
mov dword [ebp - 0x14], ecx
movzx ecx, byte [esi - 5]
shl ecx, 0x10
or edx, ecx
movzx ecx, word [esi - 3]
mov word [ebp - 0x1c], cx
mov cl, byte [esi - 1]
mov byte [ebp - 0x1a], cl
push 0xa
pop ecx
lea edi, [ebp - 0x88]
rep movsd dword es:[edi], dword [esi]
mov ch, bl
mov ebx, dword [ebp - 0x14]
jmp 0x4468f6
mov ebx, esi
cmp esi, 0xfffffff
ja 0x446967
mov eax, ebx
mov cl, 1
mov dl, 0x81
and eax, 0xffffff80
cmp eax, 0x80
je 0x4468e3
lea eax, [ebx - 0x100]
mov dl, 0x82
cmp eax, 0xff00
jb 0x4468e3
lea eax, [ebx - 0x10000]
mov dl, 0x83
cmp eax, 0xff0000
jb 0x4468e3
lea eax, [ebx - 0x1000000]
mov dl, 0x84
cmp eax, 0xf000000
setb cl
xor eax, eax
test cl, cl
je 0x4468f6
cmp dl, byte [ebp - 0x14]
jne 0x4468f6
movzx eax, bl
jmp 0x4467ad
shl edx, 8
movzx ebx, bl
or ebx, edx
cmp ch, 0xd
jne 0x446919
mov al, byte [ebp - 0x16]
mov byte [ebp - 0x14], 6
mov byte [ebp - 0xe], al
movzx eax, word [ebp - 0x18]
mov word [ebp - 0x10], ax
xor eax, eax
jmp 0x446938
mov cl, byte [ebp - 0x1a]
mov byte [ebp - 0x14], ch
mov byte [ebp - 0xe], cl
movzx ecx, word [ebp - 0x1c]
mov word [ebp - 0x10], cx
push 0xa
pop ecx
lea edi, [ebp - 0x54]
lea esi, [ebp - 0x88]
rep movsd dword es:[edi], dword [esi]
mov edx, dword [ebp - 0x20]
mov cl, byte [ebp - 0xe]
mov byte [edx + 0xb], cl
movzx ecx, word [ebp - 0x10]
lea edi, [edx + 0xc]
mov word [edx + 9], cx
push 0xa
pop ecx
lea esi, [ebp - 0x54]
rep movsd dword es:[edi], dword [esi]
mov dword [edx], eax
mov dword [edx + 4], ebx
mov al, byte [ebp - 0x14]
mov byte [edx + 8], al
add esp, 0x7c
pop esi
pop edi
pop ebx
pop ebp
ret
mov edx, ebx
xor eax, eax
mov ch, 0xc
shr edx, 8
jmp 0x4468f6