Function at 0x496f31
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4bdd11
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
sub esp, 0x7c
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
movzx eax, byte [ebp + 8]
test eax, eax
je 0x497144
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x2c], 0x1135
mov dword [ebp - 0x40], 0xabffb0
cmp dword [ebp - 0x2c], 0x12db
jle 0x496ff1
and dword [ebp - 0x18], 0
jmp 0x496f89
mov eax, dword [ebp - 0x18]
inc eax
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0x119
jge 0x496ff1
and dword [ebp - 0x1c], 0
jmp 0x496f9f
mov eax, dword [ebp - 0x1c]
inc eax
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0x229d
jge 0x496fef
and dword [ebp - 0x20], 0
jmp 0x496fb5
mov eax, dword [ebp - 0x20]
inc eax
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0x1e3a
jge 0x496fed
mov eax, dword [ebp - 0x18]
imul eax, dword [ebp - 0x1c]
xor eax, dword [ebp - 0x20]
cdq
mov dword [ebp - 0x8c], eax
mov dword [ebp - 0x88], edx
push dword [ebp - 0x88]
push dword [ebp - 0x8c]
mov ecx, 0xace718
call fcn.00414b0c
jmp 0x496fae
jmp 0x496f98
jmp 0x496f82
mov eax, dword [ebp + 0x20]
mov dword [ebp - 0x64], eax
and dword [ebp - 4], 0
cmp dword [ebp - 0x2c], 0xfad
jge 0x497011
mov edx, dword [ebp - 0x40]
mov ecx, 0xace718
call fcn.00417008
jmp 0x49702d
or dword [ebp - 4], 0xffffffff
jmp 0x497037
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x60], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x4c], eax
lea eax, [ebp + 0x24]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x44]
movzx eax, byte [eax]
test eax, eax
je 0x4970a9
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x50], eax
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x54], eax
mov eax, dword [ebp - 0x50]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x54]
mov dword [ebp - 0x58], eax
mov eax, dword [ebp - 0x14]
mov dword [eax], 0
jmp 0x497087
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
inc eax
mov ecx, dword [ebp - 0x14]
mov dword [ecx], eax
mov eax, dword [ebp - 0x14]
cmp dword [eax], 4
jge 0x4970a4
mov eax, dword [ebp - 0x14]
push dword [eax]
mov ecx, dword [ebp - 0x58]
call fcn.00414e25
mov dword [eax], 0x6c1f5e2d
jmp 0x49707c
jmp 0x497142
mov eax, dword [ebp - 0x5c]
mov dword [ebp - 0x68], eax
mov eax, dword [ebp - 0x60]
mov dword [ebp - 0x6c], eax
mov eax, dword [ebp - 0x64]
mov dword [ebp - 0x70], eax
mov eax, dword [ebp - 0x68]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x6c]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x70]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x24]
mov eax, dword [eax]
mov dword [ebp - 0x84], eax
mov eax, dword [ebp - 0x24]
mov eax, dword [eax]
shl eax, 2
mov ecx, dword [ebp - 0x30]
mov dword [ecx], eax
mov eax, dword [ebp - 0x30]
mov eax, dword [eax]
sub eax, 0x174feded
mov ecx, dword [ebp - 0x28]
cmp dword [ecx], eax
jge 0x4970ff
mov dword [ebp - 0x34], 1
jmp 0x497103
and dword [ebp - 0x34], 0
mov eax, dword [ebp - 0x24]
mov eax, dword [eax]
add eax, dword [ebp - 0x34]
jne 0x49711c
mov eax, 0x4b15d3e9
test eax, eax
jne 0x49711c
and dword [ebp - 0x38], 0
jmp 0x497123
mov dword [ebp - 0x38], 1
mov eax, dword [ebp - 0x28]
mov eax, dword [eax]
cmp eax, dword [ebp - 0x38]
jge 0x497136
mov dword [ebp - 0x3c], 1
jmp 0x49713a
and dword [ebp - 0x3c], 0
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x3c]
mov dword [eax], ecx
jmp 0x49718a
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x78], eax
lea eax, [ebp + 0x28]
mov dword [ebp - 0x74], eax
mov eax, dword [ebp - 0x74]
movzx eax, byte [eax]
test eax, eax
je 0x497168
push 0
push 0
push 0
call dword [0xad1358]
jmp 0x49718a
mov eax, dword [ebp - 0x78]
mov dword [ebp - 0x7c], eax
mov eax, dword [ebp - 0x7c]
mov dword [ebp - 0x80], eax
mov eax, dword [ebp - 0x80]
movzx eax, byte [eax]
test eax, eax
je 0x49718a
push 0
push 0
push 0
call dword [0xad1358]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret