Function at 0x4aca30
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f4104
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push esi
push edi
mov eax, dword [0x526b24]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov dword [edi + 0x14], 0
movzx ecx, word [esi]
mov eax, ecx
cmp eax, 0x17
ja case.0x4aca79.6
movzx eax, byte [eax + 0x4aced8]
jmp dword [eax*4 + 0x4aceb0]
mov dword [edi + 8], 0
mov dword [edi], 0x4f5b70
mov dword [edi + 4], 0
push dword [esi + 8]
call dword [sym.imp.OLEAUT32.dll_VariantInit]
test eax, eax
je 0x4acace
cmp byte [ebp + 0x10], 0
mov ecx, dword [esi + 8]
je 0x4acac0
mov dword [edi], ecx
mov dword [edi + 4], eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push eax
push ecx
mov ecx, edi
call fcn.004e7dc0
jmp 0x4ace97
cmp byte [ebp + 0x10], 0
jmp 0x4ace95
mov dword [edi + 8], 1
mov eax, dword [esi + 8]
cdq
mov dword [edi], eax
mov dword [edi + 4], edx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov dword [edi + 8], 2
movsd xmm0, qword [esi + 8]
movsd qword [edi], xmm0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov dword [edi + 8], 2
movss xmm0, dword [esi + 8]
cvtps2pd xmm0, xmm0
movsd qword [edi], xmm0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov dword [edi + 8], 1
cmp word [esi + 8], 0
je 0x4acb68
mov eax, 1
xor ecx, ecx
mov dword [edi], eax
mov dword [edi + 4], ecx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
xorps xmm0, xmm0
movlpd qword [ebp - 0x14], xmm0
mov ecx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
mov dword [edi], eax
mov dword [edi + 4], ecx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov ecx, dword [esi + 8]
test ecx, ecx
je case.0x4aca79.9
mov eax, dword [ecx]
lea edx, [ebp + 0xc]
push edx
push 0x5083f4
push ecx
call dword [eax]
test eax, eax
js 0x4acc41
cmp byte [ebp + 0x10], 0
jne 0x4acbbc
mov eax, dword [esi + 8]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
push 0x48
call fcn.004ebb43
add esp, 4
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], 0
test eax, eax
je 0x4acbec
mov esi, dword [ebp + 0xc]
mov ecx, eax
call fcn.004a95c0
mov eax, dword [ebp - 0x10]
mov dword [eax], vtable.ComEnum.0
mov dword [eax + 0x40], esi
jmp 0x4acbee
xor eax, eax
mov dword [ebp - 4], 0xffffffff
test eax, eax
je 0x4acc13
mov dword [edi + 8], 5
mov dword [edi], eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov dword [edi], 0x4f5b70
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov ecx, dword [esi + 8]
lea edx, [ebp + 8]
push edx
push 0x504814
push ecx
mov eax, dword [ecx]
call dword [eax]
test eax, eax
js case.0x4aca79.9
cmp byte [ebp + 0x10], 0
jne 0x4acc65
mov eax, dword [esi + 8]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
push 0x18
call fcn.004ebb43
add esp, 4
mov dword [ebp - 0x10], eax
test eax, eax
je 0x4acc88
push dword [ebp + 8]
mov ecx, eax
call fcn.004a9550
test eax, eax
jne 0x4acbf9
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov dword [edi], 0x4f5b70
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov ecx, dword [esi + 8]
test ecx, ecx
je case.0x4aca79.0
mov eax, dword [ecx]
lea edx, [ebp + 0xc]
push edx
push 0x504824
push ecx
call dword [eax]
test eax, eax
js 0x4acd03
cmp byte [ebp + 0x10], 0
mov eax, dword [ebp + 0xc]
mov dword [edi], eax
mov dword [edi + 8], 5
jne 0x4ace9e
mov eax, dword [esi + 8]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
cmp byte [ebp + 0x10], 0
je 0x4acd12
mov eax, dword [esi + 8]
push eax
mov ecx, dword [eax]
call dword [ecx + 4]
push 0x18
call fcn.004ebb43
add esp, 4
mov dword [ebp + 0xc], eax
test eax, eax
je 0x4acd51
movzx ecx, word [esi]
mov eax, dword [esi + 8]
push 0
push ecx
mov ecx, dword [ebp + 0xc]
cdq
push edx
push eax
call fcn.004a9580
mov dword [edi], eax
mov dword [edi + 8], 5
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
xor eax, eax
mov dword [edi + 8], 5
mov dword [edi], eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov dword [edi + 8], 0
mov dword [edi], 0x4f5b70
mov dword [edi + 4], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push 0x14
push 0
push esi
lea eax, [ebp - 0x1c]
xorps xmm0, xmm0
push eax
movups xmmword [ebp - 0x1c], xmm0
call dword [sym.imp.OLEAUT32.dll_VariantTimeToDosDateTime]
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x10]
mov dword [edi + 8], 1
mov dword [edi], eax
mov dword [edi + 4], ecx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov eax, 0x2000
xorps xmm0, xmm0
movups xmmword [ebp - 0x1c], xmm0
cmp cx, ax
jae 0x4ace0f
push 8
push 0
push esi
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantTimeToDosDateTime]
test eax, eax
js 0x4ace0f
push 0
lea eax, [ebp - 0x1c]
push edi
push eax
call fcn.004aca30
add esp, 0xc
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push 0x18
call fcn.004ebb43
add esp, 4
mov dword [ebp + 8], eax
test eax, eax
mov al, byte [ebp + 0x10]
je 0x4ace7f
mov eax, dword [esi + 8]
mov edi, dword [ebp + 8]
movzx ecx, word [esi]
cdq
mov dword [edi + 8], eax
mov eax, edi
mov dword [edi + 4], 1
mov dword [edi], vtable.ComObject.0
mov dword [eax + 0xc], edx
mov edx, edi
mov al, byte [ebp + 0x10]
mov edi, dword [ebp + 0xc]
xor al, 1
movzx eax, al
mov dword [edx + 0x10], 0
mov word [edx + 0x14], cx
mov word [edx + 0x16], ax
test edx, edx
je 0x4ace7c
mov dword [edi + 8], 5
mov dword [edi], edx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov al, byte [ebp + 0x10]
mov dword [edi + 4], 0
test al, al
mov dword [edi + 8], 0
mov dword [edi], 0x4f5b70
jne 0x4ace9e
push esi
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret