Function at 0x40a910
Capabilities:
Execute vbscript javascript or jscript in memory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x423886
mov eax, dword fs:[0]
push eax
sub esp, 0x5c
mov eax, dword [0x42d210]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 8]
xor edi, edi
mov dword [ebp - 0x34], eax
mov dword [eax], edi
lea ecx, [eax + 4]
mov dword [ebp - 4], edi
mov dword [ebp - 0x38], ecx
mov dword [ecx], edi
mov dword [eax + 8], edi
mov byte [ebp - 4], 3
mov eax, dword [section..data]
mov edx, dword [eax + 0xc]
mov ecx, section..data
call edx
add eax, 0x10
mov dword [ebp - 0x30], eax
cmp dword [ebp + 0xc], 1
mov byte [ebp - 4], 4
mov ecx, section..data
jne 0x40a9d6
mov eax, dword [section..data]
mov edx, dword [eax + 0xc]
call edx
add eax, 0x10
mov dword [ebp - 0x2c], eax
mov eax, str.VBScript
mov byte [ebp - 4], 5
test eax, 0xffff0000
jne 0x40a9bd
mov ecx, eax
movzx esi, cx
push esi
call fcn.00401080
add esp, 4
cmp eax, edi
je 0x40a9d0
push eax
mov eax, esi
lea edi, [ebp - 0x2c]
call fcn.004013d0
jmp 0x40a9d0
push str.VBScript
lea edx, [ebp - 0x2c]
push edx
mov ebx, 8
call fcn.004053b0
mov byte [ebp - 4], 6
jmp 0x40aa2d
mov edx, dword [section..data]
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x2c], eax
mov ecx, str.JScript
mov ebx, 7
mov byte [ebp - 4], bl
test ecx, 0xffff0000
jne 0x40aa1b
mov edx, ecx
movzx esi, dx
push esi
call fcn.00401080
add esp, 4
cmp eax, edi
je 0x40aa29
push eax
mov eax, esi
lea edi, [ebp - 0x2c]
call fcn.004013d0
jmp 0x40aa29
push str.JScript
lea eax, [ebp - 0x2c]
push eax
call fcn.004053b0
mov byte [ebp - 4], 8
lea eax, [ebp - 0x2c]
lea edi, [ebp - 0x30]
call fcn.004048a0
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x2c]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40aa5b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edx, dword [section..data]
mov eax, dword [edx + 0xc]
mov ecx, section..data
call eax
add eax, 0x10
mov dword [ebp - 0x28], eax
mov ecx, 0x426f04
lea esi, [ebp - 0x28]
mov byte [ebp - 4], 9
call fcn.00404910
mov edx, dword [ebp - 0x30]
lea ecx, [ebp - 0x24]
push ecx
push edx
call dword [sym.imp.ole32.dll_CLSIDFromProgID]
test eax, eax
jns 0x40aab6
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x28]
add eax, 0xfffffff0
call fcn.00401560
add eax, 0x10
mov dword [ebp - 0x3c], eax
push 0x42ace8
lea eax, [ebp - 0x40]
push eax
call fcn.00411f68
lea esi, [ebp - 0x28]
call fcn.00407450
mov ecx, str.CoCreateInstanceEx
mov esi, eax
call fcn.00404910
mov ebx, dword [ebp - 0x34]
push ebx
push 0x426358
push 1
push 0
lea ecx, [ebp - 0x24]
push ecx
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jns 0x40ab07
mov dword [ebp - 0x58], eax
mov eax, dword [ebp - 0x28]
add eax, 0xfffffff0
call fcn.00401560
push 0x42ace8
lea edx, [ebp - 0x58]
add eax, 0x10
push edx
mov dword [ebp - 0x54], eax
call fcn.00411f68
lea esi, [ebp - 0x28]
call fcn.00407450
mov ecx, str.Create_ScriptSite
mov esi, eax
call fcn.00404910
push 0x18
call fcn.0041131b
mov esi, eax
add esp, 4
test esi, esi
je 0x40ab44
lea eax, [esi + 8]
push eax
mov dword [esi], vtable.jscript::PsiActiveScriptSite.0
mov dword [esi + 4], 0
call dword [sym.imp.OLEAUT32.dll_VariantClear]
jmp 0x40ab46
xor esi, esi
cmp dword [ebx + 8], esi
je 0x40ab69
test esi, esi
je 0x40ab57
mov eax, dword [esi]
mov ecx, dword [eax + 4]
push esi
call ecx
mov eax, dword [ebx + 8]
test eax, eax
je 0x40ab66
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
mov dword [ebx + 8], esi
lea esi, [ebp - 0x28]
call fcn.00407450
mov ecx, str.SetScriptSite
mov esi, eax
call fcn.00404910
mov eax, dword [ebx]
mov ecx, dword [ebx + 8]
mov edx, dword [eax]
push ecx
push eax
mov eax, dword [edx + 0xc]
call eax
test eax, eax
jns 0x40abb1
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x28]
add eax, 0xfffffff0
call fcn.00401560
push 0x42ace8
lea ecx, [ebp - 0x48]
add eax, 0x10
push ecx
mov dword [ebp - 0x44], eax
call fcn.00411f68
lea esi, [ebp - 0x28]
call fcn.00407450
mov ecx, 0x426f4c
mov esi, eax
call fcn.00404910
mov edi, dword [ebp - 0x38]
mov eax, dword [ebx]
mov esi, dword [edi]
cmp esi, eax
je 0x40abf3
mov dword [edi], 0
test eax, eax
je 0x40abe7
mov edx, dword [eax]
push edi
push 0x426fec
push eax
mov eax, dword [edx]
call eax
test esi, esi
je 0x40abf3
mov ecx, dword [esi]
mov edx, dword [ecx + 8]
push esi
call edx
cmp dword [edi], 0
jne 0x40ac1e
mov eax, dword [ebp - 0x28]
add eax, 0xfffffff0
mov dword [ebp - 0x50], 0x80004001
call fcn.00401560
add eax, 0x10
mov dword [ebp - 0x4c], eax
push 0x42ace8
lea eax, [ebp - 0x50]
push eax
call fcn.00411f68
lea esi, [ebp - 0x28]
call fcn.00407450
mov ecx, str.InitNew
mov esi, eax
call fcn.00404910
mov edi, dword [edi]
mov ecx, dword [edi]
mov edx, dword [ecx + 0xc]
push edi
call edx
test eax, eax
jns 0x40ac62
mov dword [ebp - 0x60], eax
mov eax, dword [ebp - 0x28]
add eax, 0xfffffff0
call fcn.00401560
add eax, 0x10
mov dword [ebp - 0x5c], eax
push 0x42ace8
lea eax, [ebp - 0x60]
push eax
call fcn.00411f68
mov eax, dword [ebx]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x14]
push 2
push eax
call edx
lea eax, [ebp - 0x28]
call fcn.004047d0
lea eax, [ebp - 0x30]
call fcn.004047d0
jmp 0x40ad05
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004109a7
mov esp, ebp
pop ebp
ret 8