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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5307d7
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
mov eax, dword [0x57254c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov ebx, dword [ebp + 8]
test ebx, ebx
je 0x4b201d
mov edi, dword [0x5768b8]
xchg dword [ebp - 0x2c], eax
test edi, edi
jne 0x4b1e10
mov eax, dword fs:[0x2c]
mov ecx, dword [0x575bd4]
mov ecx, dword [eax + ecx*4]
mov eax, dword [0x5769b0]
cmp eax, dword [ecx + 4]
jg 0x4b203d
push 0x5769b4
mov dword [ebp - 0x38], 0x5769b4
mov dword [ebp - 0x34], 1
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edi, dword [0x5768b8]
mov dword [ebp - 4], 0
test edi, edi
jne 0x4b1dfe
push 0x44
call fcn.004f8c17
add esp, 4
mov dword [ebp - 0x28], eax
mov byte [ebp - 4], 1
test eax, eax
je 0x4b1df3
mov ecx, eax
call fcn.004523a0
mov edi, eax
jmp 0x4b1df5
xor edi, edi
xchg dword [ebp - 0x28], eax
mov dword [0x5768b8], edi
push 0x5769b4
mov dword [ebp - 4], 0xffffffff
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea eax, [ebp - 0x20]
mov ecx, edi
push eax
push str.JScript
call fcn.00452500
lea edi, [esi + 8]
mov dword [esi], eax
push edi
push 0x547aa0
push 0x17
push 0
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov dword [esi], eax
test eax, eax
jne 0x4b1fbb
mov ecx, dword [edi]
lea eax, [esi + 0x18]
push eax
push ecx
mov edx, dword [ecx]
call dword [edx + 0xc]
mov dword [esi], eax
test eax, eax
jne 0x4b1fbb
mov ecx, dword [edi]
lea edi, [esi + 0xc]
push edi
push 0x547ab0
push ecx
mov eax, dword [ecx]
call dword [eax]
mov dword [esi], eax
test eax, eax
jne 0x4b1fb8
mov eax, dword [edi]
push eax
mov ecx, dword [eax]
call dword [ecx + 0xc]
mov dword [esi], eax
test eax, eax
jne 0x4b1fb8
mov ecx, ebx
lea edx, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4b1e90
sub ecx, edx
sar ecx, 1
test ecx, ecx
jle 0x4b1fb8
mov eax, dword [edi]
lea edx, [ebp - 0x58]
push edx
push 0
push 0x42
mov ecx, dword [eax]
push 0
push 0
push 0
push 0
push 0
push ebx
push eax
call dword [ecx + 0x14]
mov dword [esi], eax
lea edi, [esi + 8]
test eax, eax
jne 0x4b1fbb
mov eax, dword [edi]
push 2
push eax
mov ecx, dword [eax]
call dword [ecx + 0x14]
mov dword [esi], eax
test eax, eax
jne 0x4b1fbb
mov ecx, dword [edi]
lea edi, [esi + 0x10]
push edi
push 0
push ecx
mov eax, dword [ecx]
call dword [eax + 0x28]
mov dword [esi], eax
test eax, eax
jne 0x4b1fb8
mov ecx, dword [edi]
lea ebx, [esi + 0x14]
push ebx
push 0x547ac0
push ecx
mov eax, dword [ecx]
call dword [eax]
mov dword [esi], eax
test eax, eax
jne 0x4b1fb8
mov eax, dword [ebx]
lea edx, [ebp - 0x24]
push edx
push 0xffffffffffffffff
push 2
mov ecx, dword [eax]
push eax
call dword [ecx + 0x34]
mov dword [esi], eax
test eax, eax
jne 0x4b1fab
nop
mov eax, dword [ebx]
lea edx, [ebp - 0x30]
push edx
push dword [ebp - 0x24]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x30]
mov edi, dword [ebp - 0x30]
mov ecx, str.CollectGarbage
mov dword [esi], eax
mov eax, edi
nop dword [eax + eax]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4b1f76
test dx, dx
je 0x4b1f72
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4b1f76
add eax, 4
add ecx, 4
test dx, dx
jne 0x4b1f50
xor eax, eax
jmp 0x4b1f7b
sbb eax, eax
or eax, 1
push edi
test eax, eax
je 0x4b1f9f
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [ebx]
lea edx, [ebp - 0x24]
push edx
push dword [ebp - 0x24]
mov ecx, dword [eax]
push 2
push eax
call dword [ecx + 0x34]
mov dword [esi], eax
test eax, eax
je 0x4b1f30
jmp 0x4b1fab
mov eax, dword [ebp - 0x24]
mov dword [esi + 4], eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
cmp dword [esi + 4], 0
je 0x4b1fb8
mov eax, 1
jmp 0x4b201f
lea edi, [esi + 8]
mov ecx, dword [esi + 0x14]
test ecx, ecx
je 0x4b1fcf
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov dword [esi + 0x14], 0
mov ecx, dword [esi + 0x10]
test ecx, ecx
je 0x4b1fe3
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov dword [esi + 0x10], 0
mov ecx, dword [esi + 0xc]
test ecx, ecx
je 0x4b1ff7
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov dword [esi + 0xc], 0
mov ecx, dword [edi]
test ecx, ecx
je 0x4b201d
mov eax, dword [ecx]
push 3
push ecx
call dword [eax + 0x14]
mov eax, dword [edi]
push 4
push eax
mov ecx, dword [eax]
call dword [ecx + 0x14]
mov eax, dword [edi]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov dword [edi], 0
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004f8955
mov esp, ebp
pop ebp
ret 4
push 0x5769b0
call fcn.004f8b23
add esp, 4
cmp dword [0x5769b0], 0xffffffff
jne 0x4b1da9
push 0x5769b4
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push 0x5310f0
call fcn.004f8eaf
push 0x5769b0
call fcn.004f8ad9
add esp, 8
jmp 0x4b1da9