Function at 0x40cb10
Capabilities:
Accept command line arguments
Check if file exists
Create directory
Create process on windows
Create thread
Delete file
Execute vbscript javascript or jscript in memory
Extract resource via kernel32 functions
Get common file path
Get file attributes
Query environment variable
Set current directory
Terminate process
Write and execute a file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3bc
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [ebp - 0x17c], eax
mov dword [ebp - 0x168], 0
mov dword [ebp - 8], 1
mov dword [ebp - 0x150], 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov dword [0x416870], eax
push 0x104
push 0x416eb8
push 1
mov eax, dword [ebp - 0x17c]
push eax
call dword [sym.imp.USER32.dll_LoadStringA]
push 8
push 0x416c9c
push 0x11
mov ecx, dword [ebp - 0x17c]
push ecx
call dword [sym.imp.USER32.dll_LoadStringA]
push 0xc8
lea edx, [ebp - 0x148]
push edx
push 0x416c9c
call fcn.0040bb90
add esp, 0xc
mov dword [ebp - 4], eax
push 0x208
push 0
mov eax, dword [0x416870]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [ebp - 0x190], eax
cmp dword [ebp - 0x190], 0
jne 0x40cbc0
jmp 0x40f01b
push 0x79
push 5
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov dword [ebp - 0x184], eax
cmp dword [ebp - 0x184], 0
je 0x40cc48
mov ecx, dword [ebp - 0x184]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x180], eax
cmp dword [ebp - 0x180], 0
je 0x40cc48
mov edx, dword [ebp - 0x180]
push edx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x158], eax
cmp dword [ebp - 0x158], 0
je 0x40cc48
mov eax, dword [ebp - 0x184]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0x1b0], eax
cmp dword [ebp - 0x1b0], 1
jne 0x40cc48
mov ecx, dword [ebp - 0x158]
movzx edx, byte [ecx]
cmp edx, 1
jne 0x40cc48
mov dword [ebp - 8], 0
mov dword [ebp - 0x7c], 8
mov dword [ebp - 0x78], 0x404
lea eax, [ebp - 0x7c]
push eax
call dword [sym.imp.COMCTL32.dll_InitCommonControlsEx]
push 0x79
push 7
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov dword [ebp - 0x184], eax
cmp dword [ebp - 0x184], 0
je 0x40cce1
mov ecx, dword [ebp - 0x184]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x180], eax
cmp dword [ebp - 0x180], 0
je 0x40cce1
mov edx, dword [ebp - 0x180]
push edx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x158], eax
cmp dword [ebp - 0x158], 0
je 0x40cce1
mov eax, dword [ebp - 0x184]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0x1b0], eax
cmp dword [ebp - 0x1b0], 4
jne 0x40cce1
mov ecx, dword [ebp - 0x158]
mov edx, dword [ecx]
mov dword [ebp - 0x150], edx
mov byte [0x416888], 0
push 0x204
push 0
mov eax, dword [0x416870]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [ebp - 0x1ac], eax
push 0x79
push 3
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov dword [ebp - 0x184], eax
cmp dword [ebp - 0x184], 0
je 0x40ce13
mov ecx, dword [ebp - 0x184]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x180], eax
cmp dword [ebp - 0x180], 0
jne 0x40cd46
push 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov edx, dword [ebp - 0x180]
push edx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x158], eax
cmp dword [ebp - 0x158], 0
jne 0x40cd6a
push 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov eax, dword [ebp - 0x184]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0x1b4], eax
cmp dword [ebp - 0x1b4], 0x100
jbe 0x40cd93
push 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push 0x100
push 0
push 0x416b98
call fcn.0040f1e0
add esp, 0xc
push str.Everstrike_Software
push 0x416b98
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 0x100
push 0x416b98
mov ecx, dword [ebp - 0x1ac]
push ecx
call fcn.004015d0
add esp, 0xc
mov edx, dword [ebp - 0x1b4]
mov byte [edx + 0x416888], 0
mov eax, dword [ebp - 0x1b4]
push eax
mov ecx, dword [ebp - 0x158]
push ecx
push 0x416888
call fcn.0040f290
add esp, 0xc
mov edx, dword [ebp - 0x1ac]
push edx
mov eax, dword [ebp - 0x1b4]
push eax
push 0x416888
call fcn.0040b5e0
add esp, 0xc
push 0x416888
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
jne 0x40cf12
push 0x104
push 0x416db0
push 0x21
mov ecx, dword [ebp - 0x17c]
push ecx
call dword [sym.imp.USER32.dll_LoadStringA]
cmp dword [ebp - 8], 0
jne 0x40ce63
push 0
push str.Warning
push 0x416db0
call dword [sym.imp.USER32.dll_GetForegroundWindow]
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
jmp 0x40cf12
push 0xfffffffffffffff5
call fcn.00405fc0
add esp, 4
mov dword [ebp - 0x1b8], eax
push 0xfffffffffffffff6
call fcn.00405fc0
add esp, 4
mov dword [ebp - 0x1d0], eax
cmp dword [ebp - 0x1b8], 0xffffffff
je 0x40cf12
push 0x416db0
push 0x416db0
call dword [sym.imp.USER32.dll_CharToOemA]
push 0
lea edx, [ebp - 0x1b0]
push edx
push 0x416db0
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
push 0x416db0
mov eax, dword [ebp - 0x1b8]
push eax
call fcn.00406010
add esp, 0x14
mov ecx, 1
test ecx, ecx
je 0x40cf12
lea edx, [ebp - 0x1b0]
push edx
push 1
lea eax, [ebp - 0x1cc]
push eax
mov ecx, dword [ebp - 0x1d0]
push ecx
call dword [sym.imp.KERNEL32.dll_ReadConsoleInputA]
test eax, eax
jne 0x40cef5
jmp 0x40cf12
movzx edx, word [ebp - 0x1cc]
cmp edx, 1
je 0x40cf03
jmp 0x40cec9
cmp dword [ebp - 0x1c8], 0
jne 0x40cf0e
jmp 0x40cec9
jmp 0x40cf12
push 0x79
push 4
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov dword [ebp - 0x184], eax
cmp dword [ebp - 0x184], 0
je 0x40d2a4
mov eax, dword [ebp - 0x184]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x180], eax
cmp dword [ebp - 0x180], 0
jne 0x40cf57
push 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov ecx, dword [ebp - 0x180]
push ecx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x158], eax
cmp dword [ebp - 0x158], 0
jne 0x40cf7b
push 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov edx, dword [ebp - 0x184]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0x1b0], eax
cmp dword [ebp - 0x1b0], 0x10
je 0x40cfa1
push 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push 0x10
mov eax, dword [ebp - 0x158]
push eax
lea ecx, [ebp - 0x1a8]
push ecx
call fcn.0040f290
add esp, 0xc
mov dword [ebp - 0x168], 1
mov dword [ebp - 0x218], 0
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [ebp - 0x214], eax
lea ecx, [ebp - 0x20c]
call fcn.00410650
mov dword [ebp - 0x210], 0
mov byte [ebp - 0x21d], 0x20
mov dword [ebp - 0x1d4], 0
mov edx, dword [ebp - 0x214]
movsx eax, byte [edx]
cmp eax, 0x22
jne 0x40d01e
mov byte [ebp - 0x21d], 0x22
mov dword [ebp - 0x210], 1
jmp 0x40d02f
mov ecx, dword [ebp - 0x210]
add ecx, 1
mov dword [ebp - 0x210], ecx
mov edx, dword [ebp - 0x214]
add edx, dword [ebp - 0x210]
movsx eax, byte [edx]
test eax, eax
je 0x40d06f
mov ecx, dword [ebp - 0x214]
add ecx, dword [ebp - 0x210]
movsx edx, byte [ecx]
movsx eax, byte [ebp - 0x21d]
cmp edx, eax
jne 0x40d06d
mov ecx, dword [ebp - 0x210]
add ecx, 1
mov dword [ebp - 0x210], ecx
jmp 0x40d06f
jmp 0x40d020
mov edx, dword [ebp - 0x214]
add edx, dword [ebp - 0x210]
movsx eax, byte [edx]
cmp eax, 0x20
jne 0x40d094
mov ecx, dword [ebp - 0x210]
add ecx, 1
mov dword [ebp - 0x210], ecx
jmp 0x40d06f
mov edx, dword [ebp - 0x214]
add edx, dword [ebp - 0x210]
push edx
lea ecx, [ebp - 0x20c]
call fcn.00407380
lea eax, [ebp - 0x1d4]
push eax
lea ecx, [ebp - 0x20c]
push ecx
call fcn.004079e0
mov dword [ebp - 0x210], 0
jmp 0x40d0da
mov edx, dword [ebp - 0x210]
add edx, 1
mov dword [ebp - 0x210], edx
mov eax, dword [ebp - 0x210]
cmp eax, dword [ebp - 0x1d4]
jge 0x40d26c
lea ecx, [ebp - 0x21c]
push ecx
mov edx, dword [ebp - 0x210]
push edx
lea eax, [ebp - 0x20c]
push eax
call fcn.00407940
push str._pass
mov ecx, dword [ebp - 0x21c]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
jne 0x40d25a
mov edx, dword [ebp - 0x1d4]
sub edx, 1
cmp dword [ebp - 0x210], edx
jge 0x40d25a
lea eax, [ebp - 0x294]
push eax
mov ecx, dword [ebp - 0x210]
add ecx, 1
push ecx
lea edx, [ebp - 0x20c]
push edx
call fcn.00407940
mov eax, dword [ebp - 0x294]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, 1
mov dword [ebp - 0x27c], eax
mov ecx, dword [ebp - 0x27c]
push ecx
push 0
mov edx, dword [0x416870]
push edx
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [ebp - 0x280], eax
push 0
push 0
mov eax, dword [ebp - 0x27c]
push eax
mov ecx, dword [ebp - 0x280]
push ecx
push 0xffffffffffffffff
mov edx, dword [ebp - 0x294]
push edx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov eax, dword [ebp - 0x280]
push eax
push 0x416db0
call fcn.0040f320
add esp, 8
mov ecx, dword [ebp - 0x294]
push ecx
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
lea edx, [ebp - 0x278]
push edx
call fcn.00403ff0
add esp, 4
push 0x416db0
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
push 0x416db0
lea eax, [ebp - 0x278]
push eax
call fcn.00404f40
add esp, 0xc
lea ecx, [ebp - 0x290]
push ecx
lea edx, [ebp - 0x278]
push edx
call fcn.00405040
add esp, 8
push 0x10
lea eax, [ebp - 0x290]
push eax
lea ecx, [ebp - 0x1a8]
push ecx
call fcn.0040f220
add esp, 0xc
test eax, eax
jne 0x40d235
mov dword [ebp - 0x218], 1
mov edx, dword [ebp - 0x21c]
push edx
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [ebp - 0x280]
push eax
push 0
mov ecx, dword [0x416870]
push ecx
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x40d26c
mov edx, dword [ebp - 0x21c]
push edx
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
jmp 0x40d0cb
lea ecx, [ebp - 0x20c]
call fcn.00407730
cmp dword [ebp - 0x218], 0
jne 0x40d2a4
mov eax, dword [ebp - 8]
push eax
lea ecx, [ebp - 0x1a8]
push ecx
push 0x416db0
call fcn.0040b860
add esp, 0xc
test eax, eax
jne 0x40d2a4
push 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push 0x416888
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
jle 0x40d346
push 0x100
push 0
push 0x416b98
call fcn.0040f1e0
add esp, 0xc
cmp dword [ebp - 0x168], 0
jne 0x40d334
push 0x416888
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov dword [ebp - 0x298], eax
mov dword [ebp - 0x29c], 0
jmp 0x40d300
mov edx, dword [ebp - 0x29c]
add edx, 1
mov dword [ebp - 0x29c], edx
mov eax, dword [ebp - 0x29c]
cmp eax, dword [ebp - 0x298]
jae 0x40d332
mov ecx, dword [ebp - 0x29c]
movsx edx, byte [ecx + 0x416888]
movsx eax, byte [ebp - 0x29c]
xor edx, eax
mov ecx, dword [ebp - 0x29c]
mov byte [ecx + 0x416b98], dl
jmp 0x40d2f1
jmp 0x40d344
push 0x416db0
push 0x416b98
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
jmp 0x40d36a
push 0x100
push 0
push 0x416b98
call fcn.0040f1e0
add esp, 0xc
push 0x4114f0
push 0x416b98
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 0x100
push 0x416b98
mov edx, dword [ebp - 0x1ac]
push edx
call fcn.004015d0
add esp, 0xc
push 0x79
push 2
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov dword [ebp - 0x184], eax
cmp dword [ebp - 0x184], 0
jne 0x40d3bc
mov eax, dword [ebp - 0x1ac]
push eax
push 0
mov ecx, dword [0x416870]
push ecx
call dword [sym.imp.KERNEL32.dll_HeapFree]
push 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov edx, dword [ebp - 0x184]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x180], eax
cmp dword [ebp - 0x180], 0
jne 0x40d3f8
mov eax, dword [ebp - 0x1ac]
push eax
push 0
mov ecx, dword [0x416870]
push ecx
call dword [sym.imp.KERNEL32.dll_HeapFree]
push 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov edx, dword [ebp - 0x180]
push edx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x158], eax
cmp dword [ebp - 0x158], 0
jne 0x40d432
mov eax, dword [ebp - 0x1ac]
push eax
push 0
mov ecx, dword [0x416870]
push ecx
call dword [sym.imp.KERNEL32.dll_HeapFree]
push 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov edx, dword [ebp - 0x184]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
push eax
push 0
mov ecx, dword [0x416870]
push ecx
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [ebp - 0x18c], eax
cmp dword [ebp - 0x18c], 0
jne 0x40d48d
mov edx, dword [ebp - 0x1ac]
push edx
push 0
mov eax, dword [0x416870]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
push 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov ecx, dword [ebp - 0x1c]
sub ecx, 4
push ecx
mov edx, dword [ebp - 0x158]
add edx, 4
push edx
mov eax, dword [ebp - 0x18c]
push eax
call fcn.0040f290
add esp, 0xc
mov ecx, dword [ebp - 0x1ac]
push ecx
mov edx, dword [ebp - 0x1c]
sub edx, 4
push edx
mov eax, dword [ebp - 0x18c]
push eax
call fcn.0040b5e0
add esp, 0xc
mov ecx, dword [ebp - 0x158]
mov edx, dword [ecx]
mov dword [ebp - 0x1c], edx
mov eax, dword [ebp - 0x18c]
add eax, dword [ebp - 0x1c]
mov byte [eax], 0
push 0x79
push 1
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov dword [ebp - 0x184], eax
cmp dword [ebp - 0x184], 0
jne 0x40d530
mov ecx, dword [ebp - 0x18c]
push ecx
push 0
mov edx, dword [0x416870]
push edx
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [ebp - 0x1ac]
push eax
push 0
mov ecx, dword [0x416870]
push ecx
call dword [sym.imp.KERNEL32.dll_HeapFree]
push 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov edx, dword [ebp - 0x184]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x180], eax
cmp dword [ebp - 0x180], 0
jne 0x40d581
mov eax, dword [ebp - 0x18c]
push eax
push 0
mov ecx, dword [0x416870]
push ecx
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov edx, dword [ebp - 0x1ac]
push edx
push 0
mov eax, dword [0x416870]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
push 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov ecx, dword [ebp - 0x180]
push ecx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x158], eax
cmp dword [ebp - 0x158], 0
jne 0x40d5d0
mov edx, dword [ebp - 0x18c]
push edx
push 0
mov eax, dword [0x416870]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov ecx, dword [ebp - 0x1ac]
push ecx
push 0
mov edx, dword [0x416870]
push edx
call dword [sym.imp.KERNEL32.dll_HeapFree]
push 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov eax, dword [ebp - 0x184]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x10]
add ecx, 1
push ecx
push 0
mov edx, dword [0x416870]
push edx
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [ebp - 0x164], eax
cmp dword [ebp - 0x164], 0
jne 0x40d63a
mov eax, dword [ebp - 0x18c]
push eax
push 0
mov ecx, dword [0x416870]
push ecx
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov edx, dword [ebp - 0x1ac]
push edx
push 0
mov eax, dword [0x416870]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
push 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov ecx, dword [ebp - 0x10]
push ecx
mov edx, dword [ebp - 0x158]
push edx
mov eax, dword [ebp - 0x164]
push eax
call fcn.0040f290
add esp, 0xc
mov ecx, dword [ebp - 0x1ac]
push ecx
mov edx, dword [ebp - 0x10]
push edx
mov eax, dword [ebp - 0x164]
push eax
call fcn.0040b5e0
add esp, 0xc
mov ecx, dword [ebp - 0x164]
add ecx, dword [ebp - 0x10]
mov byte [ecx], 0
push 0x20
call fcn.0040f190
add esp, 4
mov dword [ebp - 0x328], eax
cmp dword [ebp - 0x328], 0
je 0x40d6ad
mov edx, dword [ebp - 0x164]
push edx
mov ecx, dword [ebp - 0x328]
call fcn.00405570
mov dword [ebp - 0x388], eax
jmp 0x40d6b7
mov dword [ebp - 0x388], 0
mov eax, dword [ebp - 0x388]
mov dword [ebp - 0x154], eax
mov ecx, dword [ebp - 0x154]
mov edx, dword [ecx + 0x14]
mov dword [ebp - 0x38c], edx
cmp dword [ebp - 0x38c], 0
je 0x40d6f2
cmp dword [ebp - 0x38c], 1
je 0x40d707
cmp dword [ebp - 0x38c], 2
je 0x40d71c
jmp 0x40d7bf
push 0x416ca8
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
jmp 0x40d7bf
push 0x416ca8
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
jmp 0x40d7bf
mov ecx, dword [ebp - 0x154]
call fcn.00405870
push eax
push 0x416ca8
call fcn.0040f320
add esp, 8
push 0x104
push 0x416db0
push 0x416ca8
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
mov ecx, dword [ebp - 0x154]
call fcn.00405870
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov dword [ebp - 0x2a0], eax
cmp dword [ebp - 0x2a0], 0xffffffff
jne 0x40d778
push 0
push 0x416db0
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push 0x416db0
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov dword [ebp - 0x2a0], eax
cmp dword [ebp - 0x2a0], 0xffffffff
je 0x40d7af
mov eax, dword [ebp - 0x2a0]
and eax, 0x10
je 0x40d7af
push 0x416db0
push 0x416ca8
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
jmp 0x40d7bf
push 0x416ca8
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
push 0x416ca8
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov dword [ebp - 0x15c], eax
cmp dword [ebp - 0x15c], 0
jle 0x40d7f8
mov ecx, dword [ebp - 0x15c]
movsx edx, byte [ecx + 0x416ca7]
cmp edx, 0x5c
jne 0x40d7f8
mov eax, dword [ebp - 0x15c]
mov byte [eax + 0x416ca7], 0
call fcn.0040f0f0
mov dword [ebp - 0x188], eax
mov ecx, dword [ebp - 0x188]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
jne 0x40d825
mov ecx, dword [ebp - 0x154]
call fcn.004058a0
mov dword [ebp - 0x188], eax
mov dword [ebp - 0x70], 0
push 0x416c9c
push 0x416eb8
push 0x416ca8
push 0x4114fc
mov edx, dword [ebp - 0x190]
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x14
push 0
push 0x80
push 3
push 0
push 7
push 0x40000000
mov eax, dword [ebp - 0x190]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x160], eax
cmp dword [ebp - 0x160], 0xffffffff
jne 0x40d8aa
mov dword [ebp - 0x70], 1
push 0
push 0x80
push 1
push 0
push 7
push 0x40000000
mov ecx, dword [ebp - 0x190]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x160], eax
cmp dword [ebp - 0x160], 0xffffffff
jne 0x40d8fe
push 0x416ca8
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
push 0x416ca8
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov dword [ebp - 0x15c], eax
cmp dword [ebp - 0x15c], 0
jle 0x40d8fc
mov edx, dword [ebp - 0x15c]
movsx eax, byte [edx + 0x416ca7]
cmp eax, 0x5c
jne 0x40d8fc
mov ecx, dword [ebp - 0x15c]
mov byte [ecx + 0x416ca7], 0
jmp 0x40d91e
mov edx, dword [ebp - 0x160]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x70], 0
je 0x40d91e
mov eax, dword [ebp - 0x190]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov ecx, dword [ebp - 0x154]
mov dword [0x4170cc], ecx
mov edx, dword [ebp - 0x1ac]
mov dword [0x416874], edx
push 0x104
push 0x416db0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0x416db0
call fcn.0040c960
add esp, 4
push 0x416db0
push str.ES.exe.pathname
lea eax, [ebp - 0x1c]
push eax
mov ecx, dword [ebp - 0x18c]
push ecx
call fcn.0040c830
add esp, 0x10
mov dword [ebp - 0x18c], eax
push 0x416db0
call dword [sym.imp.KERNEL32.dll_lstrlenA]
sub eax, 1
mov dword [ebp - 0x20], eax
jmp 0x40d994
mov edx, dword [ebp - 0x20]
sub edx, 1
mov dword [ebp - 0x20], edx
cmp dword [ebp - 0x20], 0
jl 0x40da53
mov eax, dword [ebp - 0x20]
movsx ecx, byte [eax + 0x416db0]
cmp ecx, 0x5c
jne 0x40da4e
mov edx, dword [ebp - 0x20]
add edx, 0x416db1
push edx
push str.ES.exe.name
lea eax, [ebp - 0x1c]
push eax
mov ecx, dword [ebp - 0x18c]
push ecx
call fcn.0040c830
add esp, 0x10
mov dword [ebp - 0x18c], eax
mov edx, dword [ebp - 0x20]
mov byte [edx + 0x416db0], 0
push 0x411528
push 0x416c9c
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
jne 0x40da01
mov eax, dword [ebp - 0x20]
mov byte [eax + 0x416daf], 0
push 0x416db0
push str.ES.exe.path
lea ecx, [ebp - 0x1c]
push ecx
mov edx, dword [ebp - 0x18c]
push edx
call fcn.0040c830
add esp, 0x10
mov dword [ebp - 0x18c], eax
mov eax, dword [ebp - 0x20]
mov byte [eax + 0x416db0], 0x5c
push 0x41153c
push 0x416c9c
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
jne 0x40da4c
mov ecx, dword [ebp - 0x20]
mov byte [ecx + 0x416daf], 0x5c
jmp 0x40da53
jmp 0x40d98b
push 0x416db0
call fcn.0040ca40
add esp, 4
push 0x416c9c
push 0x416eb8
push 0x416ca8
push 0x411540
push 0x416db0
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x14
push 0x416db0
call fcn.0040c960
add esp, 4
push 0x416db0
push str.ES.script.pathname
lea edx, [ebp - 0x1c]
push edx
mov eax, dword [ebp - 0x18c]
push eax
call fcn.0040c830
add esp, 0x10
mov dword [ebp - 0x18c], eax
push 0x416db0
call fcn.0040ca40
add esp, 4
push 0x416c9c
push 0x416eb8
push 0x41155c
push 0x416db0
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
push 0x416db0
call fcn.0040c960
add esp, 4
push 0x416db0
push str.ES.script.name
lea ecx, [ebp - 0x1c]
push ecx
mov edx, dword [ebp - 0x18c]
push edx
call fcn.0040c830
add esp, 0x10
mov dword [ebp - 0x18c], eax
push 0x416db0
call fcn.0040ca40
add esp, 4
push 0x416ca8
call fcn.0040c960
add esp, 4
push 0x416ca8
push str.ES.res.path
lea eax, [ebp - 0x1c]
push eax
mov ecx, dword [ebp - 0x18c]
push ecx
call fcn.0040c830
add esp, 0x10
mov dword [ebp - 0x18c], eax
push 0x416ca8
push str.ES.script.path
lea edx, [ebp - 0x1c]
push edx
mov eax, dword [ebp - 0x18c]
push eax
call fcn.0040c830
add esp, 0x10
mov dword [ebp - 0x18c], eax
push 0x416ca8
call fcn.0040ca40
add esp, 4
cmp dword [ebp - 0x150], 0
jne 0x40e0ca
mov ecx, dword [ebp - 0x154]
mov edx, dword [ecx + 0x10]
mov eax, dword [edx + 8]
mov dword [ebp - 0x2a4], eax
mov ecx, dword [ebp - 0x154]
mov edx, dword [ecx + 0x10]
mov eax, dword [edx]
mov dword [ebp - 0x2ac], eax
mov dword [ebp - 0x2b0], 0
push 0x208
push 0
mov ecx, dword [0x416870]
push ecx
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [ebp - 0x2a8], eax
mov dword [ebp - 0x20], 0
jmp 0x40dbdf
mov edx, dword [ebp - 0x20]
add edx, 1
mov dword [ebp - 0x20], edx
mov eax, dword [ebp - 0x20]
cmp eax, dword [ebp - 0x2a4]
jge 0x40dd46
mov ecx, dword [ebp - 0x2ac]
push ecx
push 0x416ca8
push 0x411594
mov edx, dword [ebp - 0x2a8]
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
mov eax, dword [ebp - 0x2a8]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x40dd14
mov ecx, dword [ebp - 0x2ac]
mov edx, dword [ecx + 0x104]
mov dword [ebp - 0x2b4], edx
mov eax, dword [ebp - 0x154]
mov ecx, dword [eax + 0x10]
mov edx, dword [ebp - 0x2ac]
cmp edx, dword [ecx]
jne 0x40dc61
mov eax, dword [ebp - 0x154]
mov ecx, dword [eax + 0x10]
mov edx, dword [ebp - 0x2ac]
mov eax, dword [edx + 0x104]
mov dword [ecx], eax
mov ecx, dword [ebp - 0x154]
mov edx, dword [ecx + 0x10]
mov eax, dword [ebp - 0x2ac]
cmp eax, dword [edx + 4]
jne 0x40dc87
mov ecx, dword [ebp - 0x154]
mov edx, dword [ecx + 0x10]
mov eax, dword [ebp - 0x2b0]
mov dword [edx + 4], eax
cmp dword [ebp - 0x2b0], 0
je 0x40dca8
mov ecx, dword [ebp - 0x2b0]
mov edx, dword [ebp - 0x2ac]
mov eax, dword [edx + 0x104]
mov dword [ecx + 0x104], eax
mov ecx, dword [ebp - 0x154]
mov edx, dword [ecx + 0x10]
mov eax, dword [edx + 8]
sub eax, 1
mov ecx, dword [ebp - 0x154]
mov edx, dword [ecx + 0x10]
mov dword [edx + 8], eax
mov eax, dword [ebp - 0x2ac]
mov dword [ebp - 0x330], eax
mov ecx, dword [ebp - 0x330]
mov dword [ebp - 0x32c], ecx
cmp dword [ebp - 0x32c], 0
je 0x40dcf9
push 1
mov ecx, dword [ebp - 0x32c]
call fcn.00405d60
mov dword [ebp - 0x390], eax
jmp 0x40dd03
mov dword [ebp - 0x390], 0
mov edx, dword [ebp - 0x2b4]
mov dword [ebp - 0x2ac], edx
jmp 0x40dbd6
mov eax, dword [ebp - 0x2ac]
mov dword [ebp - 0x2b0], eax
mov ecx, dword [ebp - 0x2ac]
mov edx, dword [ecx + 0x104]
mov dword [ebp - 0x2ac], edx
push 0
mov eax, dword [ebp - 0x2a8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
jmp 0x40dbd6
mov ecx, dword [ebp - 0x154]
mov edx, dword [ecx + 0xc]
mov eax, dword [edx + 8]
mov dword [ebp - 0x2a4], eax
mov ecx, dword [ebp - 0x154]
mov edx, dword [ecx + 0xc]
mov eax, dword [edx]
mov dword [ebp - 0x2ac], eax
mov dword [ebp - 0x2b0], 0
mov dword [ebp - 0x20], 0
jmp 0x40dd85
mov ecx, dword [ebp - 0x20]
add ecx, 1
mov dword [ebp - 0x20], ecx
mov edx, dword [ebp - 0x20]
cmp edx, dword [ebp - 0x2a4]
jge 0x40e0b4
mov eax, dword [ebp - 0x2ac]
movsx ecx, byte [eax]
test ecx, ecx
jne 0x40ddc1
mov edx, dword [ebp - 0x2ac]
mov dword [ebp - 0x2b0], edx
mov eax, dword [ebp - 0x2ac]
mov ecx, dword [eax + 0x104]
mov dword [ebp - 0x2ac], ecx
jmp 0x40dd7c
mov dword [ebp - 0x2b8], 0
push 0xa
mov edx, dword [ebp - 0x20]
add edx, 1
movzx eax, dx
push eax
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov dword [ebp - 0x184], eax
cmp dword [ebp - 0x184], 0
je 0x40de3d
mov ecx, dword [ebp - 0x184]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x180], eax
cmp dword [ebp - 0x180], 0
je 0x40de3d
mov edx, dword [ebp - 0x180]
push edx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x158], eax
cmp dword [ebp - 0x158], 0
je 0x40de3d
mov eax, dword [ebp - 0x184]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0x2b8], eax
cmp dword [ebp - 0x2b8], 0
je 0x40deda
cmp dword [ebp - 0x2b8], 0
je 0x40de74
mov ecx, dword [ebp - 0x2b8]
sub ecx, 4
push ecx
push 0
mov edx, dword [0x416870]
push edx
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [ebp - 0x2bc], eax
jmp 0x40de7e
mov dword [ebp - 0x2bc], 0
cmp dword [ebp - 0x2bc], 0
je 0x40ded8
mov eax, dword [ebp - 0x2b8]
sub eax, 4
push eax
mov ecx, dword [ebp - 0x158]
add ecx, 4
push ecx
mov edx, dword [ebp - 0x2bc]
push edx
call fcn.0040f290
add esp, 0xc
mov eax, dword [ebp - 0x1ac]
push eax
mov ecx, dword [ebp - 0x2b8]
sub ecx, 4
push ecx
mov edx, dword [ebp - 0x2bc]
push edx
call fcn.0040b5e0
add esp, 0xc
mov eax, dword [ebp - 0x158]
mov ecx, dword [eax]
mov dword [ebp - 0x2b8], ecx
jmp 0x40dee4
mov dword [ebp - 0x2bc], 0
mov edx, dword [ebp - 0x2ac]
push edx
push 0x416ca8
push 0x41159c
mov eax, dword [ebp - 0x2a8]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
mov ecx, dword [ebp - 0x2a8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x40e00a
mov edx, dword [ebp - 0x2ac]
mov eax, dword [edx + 0x104]
mov dword [ebp - 0x2c0], eax
mov ecx, dword [ebp - 0x154]
mov edx, dword [ecx + 0xc]
mov eax, dword [ebp - 0x2ac]
cmp eax, dword [edx]
jne 0x40df57
mov ecx, dword [ebp - 0x154]
mov edx, dword [ecx + 0xc]
mov eax, dword [ebp - 0x2ac]
mov ecx, dword [eax + 0x104]
mov dword [edx], ecx
mov edx, dword [ebp - 0x154]
mov eax, dword [edx + 0xc]
mov ecx, dword [ebp - 0x2ac]
cmp ecx, dword [eax + 4]
jne 0x40df7d
mov edx, dword [ebp - 0x154]
mov eax, dword [edx + 0xc]
mov ecx, dword [ebp - 0x2b0]
mov dword [eax + 4], ecx
cmp dword [ebp - 0x2b0], 0
je 0x40df9e
mov edx, dword [ebp - 0x2b0]
mov eax, dword [ebp - 0x2ac]
mov ecx, dword [eax + 0x104]
mov dword [edx + 0x104], ecx
mov edx, dword [ebp - 0x154]
mov eax, dword [edx + 0xc]
mov ecx, dword [eax + 8]
sub ecx, 1
mov edx, dword [ebp - 0x154]
mov eax, dword [edx + 0xc]
mov dword [eax + 8], ecx
mov ecx, dword [ebp - 0x2ac]
mov dword [ebp - 0x338], ecx
mov edx, dword [ebp - 0x338]
mov dword [ebp - 0x334], edx
cmp dword [ebp - 0x334], 0
je 0x40dfef
push 1
mov ecx, dword [ebp - 0x334]
call fcn.00405d60
mov dword [ebp - 0x394], eax
jmp 0x40dff9
mov dword [ebp - 0x394], 0
mov eax, dword [ebp - 0x2c0]
mov dword [ebp - 0x2ac], eax
jmp 0x40dd7c
mov ecx, dword [ebp - 0x2ac]
mov dword [ebp - 0x2b0], ecx
mov edx, dword [ebp - 0x2ac]
mov eax, dword [edx + 0x104]
mov dword [ebp - 0x2ac], eax
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
mov ecx, dword [ebp - 0x2a8]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x160], eax
cmp dword [ebp - 0x160], 0xffffffff
je 0x40e090
cmp dword [ebp - 0x2bc], 0
je 0x40e083
push 0
lea edx, [ebp - 0x1b0]
push edx
mov eax, dword [ebp - 0x2b8]
push eax
mov ecx, dword [ebp - 0x2bc]
push ecx
mov edx, dword [ebp - 0x160]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [ebp - 0x160]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x2bc], 0
je 0x40e0af
mov ecx, dword [ebp - 0x2bc]
push ecx
push 0
mov edx, dword [0x416870]
push edx
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x40dd7c
mov eax, dword [ebp - 0x2a8]
push eax
push 0
mov ecx, dword [0x416870]
push ecx
call dword [sym.imp.KERNEL32.dll_HeapFree]
push 0x4115a4
push 0x416c9c
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x40e1df
mov edx, dword [ebp - 0x154]
mov eax, dword [edx + 0x18]
and eax, 0x20
je 0x40e1df
push 0x416ca8
call fcn.0040b580
add esp, 4
push 0x416ca8
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
push 0x416ca8
call fcn.0040b5b0
add esp, 4
mov ecx, dword [ebp - 0x154]
mov edx, dword [ecx + 0x18]
and edx, 0x10
setne al
movzx ecx, al
push ecx
mov edx, dword [ebp - 0x188]
push edx
mov eax, dword [ebp - 0x18c]
push eax
call fcn.0040bcc0
add esp, 0xc
mov ecx, dword [ebp - 0x164]
push ecx
push 0
mov edx, dword [0x416870]
push edx
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [ebp - 0x18c]
push eax
push 0
mov ecx, dword [0x416870]
push ecx
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov edx, dword [ebp - 0x1ac]
push edx
push 0
mov eax, dword [0x416870]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
push 0x416ca8
mov ecx, dword [ebp - 0x154]
push ecx
call fcn.0040f030
add esp, 8
mov edx, dword [ebp - 0x154]
mov dword [ebp - 0x340], edx
mov eax, dword [ebp - 0x340]
mov dword [ebp - 0x33c], eax
cmp dword [ebp - 0x33c], 0
je 0x40e1cd
push 1
mov ecx, dword [ebp - 0x33c]
call fcn.00410710
mov dword [ebp - 0x398], eax
jmp 0x40e1d7
mov dword [ebp - 0x398], 0
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov ecx, dword [ebp - 0x154]
mov edx, dword [ecx + 0x18]
and edx, 0x20
je 0x40e7b7
mov dword [ebp - 0x2e4], 0
mov dword [ebp - 0x2e0], 0
xor eax, eax
mov word [ebp - 0x304], ax
xor ecx, ecx
mov dword [ebp - 0x302], ecx
mov dword [ebp - 0x2fe], ecx
mov dword [ebp - 0x2fa], ecx
mov dword [ebp - 0x2f6], ecx
mov dword [ebp - 0x2f2], ecx
mov dword [ebp - 0x2ee], ecx
mov dword [ebp - 0x2ea], ecx
mov word [ebp - 0x2e6], cx
push 0x416ca8
call fcn.0040b580
add esp, 4
push 0x416ca8
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
push 0x416ca8
call fcn.0040b5b0
add esp, 4
cmp dword [ebp - 4], 0
je 0x40e285
lea edx, [ebp - 0x2d8]
push edx
lea eax, [ebp - 0x148]
push eax
call dword [sym.imp.ole32.dll_CLSIDFromProgID]
jmp 0x40e322
mov ecx, dword [ebp - 0x164]
push ecx
push 0
mov edx, dword [0x416870]
push edx
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [ebp - 0x18c]
push eax
push 0
mov ecx, dword [0x416870]
push ecx
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov edx, dword [ebp - 0x1ac]
push edx
push 0
mov eax, dword [0x416870]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
push 0x416ca8
mov ecx, dword [ebp - 0x154]
push ecx
call fcn.0040f030
add esp, 8
mov edx, dword [ebp - 0x154]
mov dword [ebp - 0x348], edx
mov eax, dword [ebp - 0x348]
mov dword [ebp - 0x344], eax
cmp dword [ebp - 0x344], 0
je 0x40e310
push 1
mov ecx, dword [ebp - 0x344]
call fcn.00410710
mov dword [ebp - 0x39c], eax
jmp 0x40e31a
mov dword [ebp - 0x39c], 0
push 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
push 0x4d0
call fcn.0040f190
add esp, 4
mov dword [ebp - 0x34c], eax
cmp dword [ebp - 0x34c], 0
je 0x40e359
mov ecx, dword [ebp - 0x34c]
call fcn.00410740
mov dword [ebp - 0x3a0], eax
jmp 0x40e363
mov dword [ebp - 0x3a0], 0
mov ecx, dword [ebp - 0x3a0]
mov dword [ebp - 0x2c8], ecx
mov edx, dword [ebp - 0x188]
push edx
push 0x416c9c
push 0x416eb8
push 0x416ca8
mov eax, dword [ebp - 0x154]
push eax
mov ecx, dword [ebp - 0x2c8]
call fcn.004091a0
mov dword [ebp - 0x308], eax
cmp dword [ebp - 0x308], 0
je 0x40e487
mov ecx, dword [ebp - 0x2c8]
mov dword [ebp - 0x354], ecx
mov edx, dword [ebp - 0x354]
mov dword [ebp - 0x350], edx
cmp dword [ebp - 0x350], 0
je 0x40e3e0
push 1
mov ecx, dword [ebp - 0x350]
call fcn.004107b0
mov dword [ebp - 0x3a4], eax
jmp 0x40e3ea
mov dword [ebp - 0x3a4], 0
mov eax, dword [ebp - 0x164]
push eax
push 0
mov ecx, dword [0x416870]
push ecx
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov edx, dword [ebp - 0x18c]
push edx
push 0
mov eax, dword [0x416870]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov ecx, dword [ebp - 0x1ac]
push ecx
push 0
mov edx, dword [0x416870]
push edx
call dword [sym.imp.KERNEL32.dll_HeapFree]
push 0x416ca8
mov eax, dword [ebp - 0x154]
push eax
call fcn.0040f030
add esp, 8
mov ecx, dword [ebp - 0x154]
mov dword [ebp - 0x35c], ecx
mov edx, dword [ebp - 0x35c]
mov dword [ebp - 0x358], edx
cmp dword [ebp - 0x358], 0
je 0x40e475
push 1
mov ecx, dword [ebp - 0x358]
call fcn.00410710
mov dword [ebp - 0x3a8], eax
jmp 0x40e47f
mov dword [ebp - 0x3a8], 0
push 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]
lea eax, [ebp - 0x2e4]
push eax
push 0x411ab8
push 1
push 0
lea ecx, [ebp - 0x2d8]
push ecx
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov dword [ebp - 0x308], eax
mov edx, dword [ebp - 0x2c8]
mov eax, dword [ebp - 0x2e4]
mov dword [edx + 0x4a8], eax
lea ecx, [ebp - 0x2e0]
push ecx
push 0x411ac8
mov edx, dword [ebp - 0x2e4]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x2e4]
push ecx
mov edx, dword [eax]
call edx
mov dword [ebp - 0x308], eax
mov eax, dword [ebp - 0x1c]
lea ecx, [eax + eax + 2]
push ecx
push 0
mov edx, dword [0x416870]
push edx
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [ebp - 0x2c4], eax
mov eax, dword [ebp - 0x1c]
add eax, 1
push eax
mov ecx, dword [ebp - 0x2c4]
push ecx
push 0xffffffffffffffff
mov edx, dword [ebp - 0x18c]
push edx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push 0xc
call fcn.0040f190
add esp, 4
mov dword [ebp - 0x360], eax
cmp dword [ebp - 0x360], 0
je 0x40e54b
mov ecx, dword [ebp - 0x360]
call fcn.004107e0
mov dword [ebp - 0x3ac], eax
jmp 0x40e555
mov dword [ebp - 0x3ac], 0
mov eax, dword [ebp - 0x3ac]
mov dword [ebp - 0x2dc], eax
mov ecx, dword [ebp - 0x2dc]
mov edx, dword [ebp - 0x2c8]
mov dword [ecx + 8], edx
mov eax, dword [ebp - 0x2dc]
push eax
mov ecx, dword [ebp - 0x2e4]
mov edx, dword [ecx]
mov eax, dword [ebp - 0x2e4]
push eax
mov ecx, dword [edx + 0xc]
call ecx
mov dword [ebp - 0x308], eax
mov edx, dword [ebp - 0x2e0]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x2e0]
push ecx
mov edx, dword [eax + 0xc]
call edx
mov dword [ebp - 0x308], eax
push 6
push str.WScript
mov eax, dword [ebp - 0x2e4]
mov ecx, dword [eax]
mov edx, dword [ebp - 0x2e4]
push edx
mov eax, dword [ecx + 0x20]
call eax
lea ecx, [ebp - 0x304]
push ecx
push 0
push 0
push 0
push 0
push 0
push 0
push 0
mov edx, dword [ebp - 0x2c4]
push edx
mov eax, dword [ebp - 0x2e0]
mov ecx, dword [eax]
mov edx, dword [ebp - 0x2e0]
push edx
mov eax, dword [ecx + 0x14]
call eax
mov dword [ebp - 0x308], eax
mov ecx, dword [ebp - 0x154]
cmp dword [ecx + 0x1c], 0
je 0x40e625
push 0
push 0
mov edx, dword [ebp - 0x154]
mov eax, dword [edx + 0x1c]
push eax
push 0x409c60
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push 2
mov ecx, dword [ebp - 0x2e4]
mov edx, dword [ecx]
mov eax, dword [ebp - 0x2e4]
push eax
mov ecx, dword [edx + 0x14]
call ecx
mov dword [ebp - 0x308], eax
mov edx, dword [ebp - 0x2c4]
push edx
push 0
mov eax, dword [0x416870]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov ecx, dword [ebp - 0x2e4]
mov edx, dword [ecx]
mov eax, dword [ebp - 0x2e4]
push eax
mov ecx, dword [edx + 0x1c]
call ecx
mov edx, dword [ebp - 0x2e0]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x2e0]
push ecx
mov edx, dword [eax + 8]
call edx
mov eax, dword [ebp - 0x2e4]
mov ecx, dword [eax]
mov edx, dword [ebp - 0x2e4]
push edx
mov eax, dword [ecx + 8]
call eax
mov ecx, dword [ebp - 0x2dc]
mov dword [ebp - 0x364], ecx
mov edx, dword [ebp - 0x364]
push edx
call fcn.0040f1c0
add esp, 4
mov ecx, dword [ebp - 0x2c8]
call fcn.004094d0
mov eax, dword [ebp - 0x2c8]
mov dword [ebp - 0x36c], eax
mov ecx, dword [ebp - 0x36c]
mov dword [ebp - 0x368], ecx
cmp dword [ebp - 0x368], 0
je 0x40e6ee
push 1
mov ecx, dword [ebp - 0x368]
call fcn.004107b0
mov dword [ebp - 0x3b0], eax
jmp 0x40e6f8
mov dword [ebp - 0x3b0], 0
mov edx, dword [0x416880]
mov dword [ebp - 0x194], edx
mov eax, dword [ebp - 0x164]
push eax
push 0
mov ecx, dword [0x416870]
push ecx
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov edx, dword [ebp - 0x18c]
push edx
push 0
mov eax, dword [0x416870]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov ecx, dword [ebp - 0x1ac]
push ecx
push 0
mov edx, dword [0x416870]
push edx
call dword [sym.imp.KERNEL32.dll_HeapFree]
push 0xc8
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0x416ca8
mov eax, dword [ebp - 0x154]
push eax
call fcn.0040f030
add esp, 8
mov ecx, dword [ebp - 0x154]
mov dword [ebp - 0x374], ecx
mov edx, dword [ebp - 0x374]
mov dword [ebp - 0x370], edx
cmp dword [ebp - 0x370], 0
je 0x40e79a
push 1
mov ecx, dword [ebp - 0x370]
call fcn.00410710
mov dword [ebp - 0x3b4], eax
jmp 0x40e7a4
mov dword [ebp - 0x3b4], 0
call dword [sym.imp.ole32.dll_CoUninitialize]
mov eax, dword [ebp - 0x194]
push eax
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push 0x416c9c
push 0x416eb8
push 0x416ca8
push str._s_s_s
mov ecx, dword [ebp - 0x190]
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x14
push 0
push 0x80
push 1
push 0
push 0
push 0x40000000
mov edx, dword [ebp - 0x190]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x160], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x194], eax
cmp dword [ebp - 0x160], 0xffffffff
jne 0x40e877
cmp dword [ebp - 0x194], 0xb7
je 0x40e82a
cmp dword [ebp - 0x194], 0x50
jne 0x40e877
push 0x416c9c
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
push 0x416ca8
push str._s_d_s
mov eax, dword [ebp - 0x190]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x14
push 0
push 0x80
push 1
push 0
push 0
push 0x40000000
mov ecx, dword [ebp - 0x190]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x160], eax
jmp 0x40e80c
cmp dword [ebp - 0x160], 0xffffffff
jne 0x40e921
mov edx, dword [ebp - 0x164]
push edx
push 0
mov eax, dword [0x416870]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov ecx, dword [ebp - 0x18c]
push ecx
push 0
mov edx, dword [0x416870]
push edx
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [ebp - 0x1ac]
push eax
push 0
mov ecx, dword [0x416870]
push ecx
call dword [sym.imp.KERNEL32.dll_HeapFree]
push 0x416ca8
mov edx, dword [ebp - 0x154]
push edx
call fcn.0040f030
add esp, 8
mov eax, dword [ebp - 0x154]
mov dword [ebp - 0x37c], eax
mov ecx, dword [ebp - 0x37c]
mov dword [ebp - 0x378], ecx
cmp dword [ebp - 0x378], 0
je 0x40e90f
push 1
mov ecx, dword [ebp - 0x378]
call fcn.00410710
mov dword [ebp - 0x3b8], eax
jmp 0x40e919
mov dword [ebp - 0x3b8], 0
push 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push 0x4115cc
push 0x416c9c
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x40ea69
mov dword [ebp - 0x318], str.___________ExeScript_Options_Begin______
mov dword [ebp - 0x30c], str.______ExeScript_Options_End__________
mov edx, dword [ebp - 0x1c]
mov dword [ebp - 0x310], edx
mov eax, dword [ebp - 0x318]
push eax
mov ecx, dword [ebp - 0x18c]
push ecx
call fcn.0040f5d0
add esp, 8
mov dword [ebp - 0x31c], eax
cmp dword [ebp - 0x31c], 0
je 0x40e9b1
mov edx, dword [ebp - 0x31c]
sub edx, dword [ebp - 0x18c]
mov dword [ebp - 0x314], edx
push 0
lea eax, [ebp - 0x1b0]
push eax
mov ecx, dword [ebp - 0x314]
push ecx
mov edx, dword [ebp - 0x18c]
push edx
mov eax, dword [ebp - 0x160]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebp - 0x30c]
push ecx
mov edx, dword [ebp - 0x18c]
push edx
call fcn.0040f5d0
add esp, 8
mov dword [ebp - 0x31c], eax
cmp dword [ebp - 0x31c], 0
je 0x40ea37
mov eax, dword [ebp - 0x31c]
sub eax, dword [ebp - 0x18c]
mov dword [ebp - 0x314], eax
mov ecx, dword [ebp - 0x310]
sub ecx, dword [ebp - 0x314]
mov dword [ebp - 0x310], ecx
mov edx, dword [ebp - 0x30c]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
add eax, 2
mov ecx, dword [ebp - 0x310]
sub ecx, eax
mov dword [ebp - 0x310], ecx
mov edx, dword [ebp - 0x30c]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [ebp - 0x31c]
lea edx, [ecx + eax + 2]
mov dword [ebp - 0x31c], edx
jmp 0x40ea43
mov eax, dword [ebp - 0x18c]
mov dword [ebp - 0x31c], eax
push 0
lea ecx, [ebp - 0x1b0]
push ecx
mov edx, dword [ebp - 0x310]
push edx
mov eax, dword [ebp - 0x31c]
push eax
mov ecx, dword [ebp - 0x160]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x40ea8a
push 0
lea edx, [ebp - 0x1b0]
push edx
mov eax, dword [ebp - 0x1c]
push eax
mov ecx, dword [ebp - 0x18c]
push ecx
mov edx, dword [ebp - 0x160]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [ebp - 0x160]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x10
push 0
lea ecx, [ebp - 0x178]
push ecx
call fcn.0040f1e0
add esp, 0xc
push 0x44
push 0
lea edx, [ebp - 0x68]
push edx
call fcn.0040f1e0
add esp, 0xc
mov dword [ebp - 0x3c], 1
mov eax, 0xa
mov word [ebp - 0x38], ax
mov dword [ebp - 0x68], 0x44
push 0x104
push 0
mov ecx, dword [0x416870]
push ecx
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [ebp - 0x14], eax
push 0x104
push 0
mov edx, dword [0x416870]
push edx
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [ebp - 0x6c], eax
mov dword [ebp - 0xc], 0
push str..bat
push 0x416c9c
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x40eb42
push 0x411630
push 0x416c9c
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x40eb42
push 0x411638
push 0x416c9c
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x40eb8e
mov eax, dword [ebp - 0x154]
mov ecx, dword [eax + 0x18]
and ecx, 0x10
je 0x40eb8e
call dword [sym.imp.KERNEL32.dll_GetVersion]
mov dword [ebp - 0x320], eax
push str.___NUL
mov edx, dword [ebp - 0x188]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
cmp dword [ebp - 0x320], 0x80000000
jb 0x40eb82
xor eax, eax
mov word [ebp - 0x38], ax
jmp 0x40eb8e
mov ecx, dword [ebp - 0xc]
or ecx, 0x8000000
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 0x6c]
push edx
push 0
mov eax, dword [0x416870]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
cmp dword [ebp - 4], 0
jne 0x40ebce
push str..wsf
push 0x416c9c
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x40ebce
push str..wsh
push 0x416c9c
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x40ec28
mov ecx, dword [ebp - 0x154]
mov edx, dword [ecx + 0x18]
and edx, 8
je 0x40ec02
mov eax, dword [ebp - 0x154]
mov ecx, dword [eax + 0x18]
and ecx, 0x10
je 0x40ebf6
mov dword [ebp - 0x198], str.wscript.exe__B
jmp 0x40ec00
mov dword [ebp - 0x198], str.wscript.exe
jmp 0x40ec26
mov edx, dword [ebp - 0x154]
mov eax, dword [edx + 0x18]
and eax, 0x10
je 0x40ec1c
mov dword [ebp - 0x198], str.cscript.exe__B
jmp 0x40ec26
mov dword [ebp - 0x198], str.cscript.exe
jmp 0x40ec7f
push str..hta
push 0x416c9c
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x40ec48
mov dword [ebp - 0x198], str.mshta.exe
jmp 0x40ec7f
push 0x4116a4
push 0x416c9c
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x40ec75
push 0x416990
call fcn.00405dc0
add esp, 4
mov dword [ebp - 0x198], 0x416990
jmp 0x40ec7f
mov dword [ebp - 0x198], 0
cmp dword [ebp - 0x198], 0
je 0x40edb1
mov ecx, dword [ebp - 0x198]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
mov edx, dword [ebp - 0x190]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
add esi, eax
mov eax, dword [ebp - 0x188]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea ecx, [esi + eax + 0xa]
push ecx
push 0
mov edx, dword [0x416870]
push edx
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [ebp - 0x74], eax
push str..ps1
push 0x416c9c
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x40ed48
mov eax, dword [ebp - 0x188]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
jle 0x40ed26
mov ecx, dword [ebp - 0x190]
push ecx
mov edx, dword [ebp - 0x198]
push edx
push 0x4116b4
mov eax, dword [ebp - 0x74]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
mov ecx, dword [ebp - 0x188]
push ecx
mov edx, dword [ebp - 0x74]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
jmp 0x40ed46
mov eax, dword [ebp - 0x190]
push eax
mov ecx, dword [ebp - 0x198]
push ecx
push str._s__s
mov edx, dword [ebp - 0x74]
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
jmp 0x40edac
mov eax, dword [ebp - 0x188]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
jle 0x40ed8c
mov ecx, dword [ebp - 0x190]
push ecx
mov edx, dword [ebp - 0x198]
push edx
push 0x4116cc
mov eax, dword [ebp - 0x74]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
mov ecx, dword [ebp - 0x188]
push ecx
mov edx, dword [ebp - 0x74]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
jmp 0x40edac
mov eax, dword [ebp - 0x190]
push eax
mov ecx, dword [ebp - 0x198]
push ecx
push str._s___s_
mov edx, dword [ebp - 0x74]
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
jmp 0x40ee40
mov eax, dword [ebp - 0x190]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
mov ecx, dword [ebp - 0x188]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea edx, [esi + eax + 0xa]
push edx
push 0
mov eax, dword [0x416870]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [ebp - 0x74], eax
mov ecx, dword [ebp - 0x188]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
jle 0x40ee27
mov edx, dword [ebp - 0x188]
push edx
mov eax, dword [ebp - 0x190]
push eax
push 0x4116e0
mov ecx, dword [ebp - 0x74]
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
mov edx, dword [ebp - 0x188]
push edx
mov eax, dword [ebp - 0x74]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
jmp 0x40ee40
mov ecx, dword [ebp - 0x190]
push ecx
push 0x4116e8
mov edx, dword [ebp - 0x74]
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
mov dword [ebp - 0x18], 0x416ca8
mov eax, dword [ebp - 0x18]
push eax
call fcn.0040b580
add esp, 4
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
mov dword [ebp - 0x14c], 1
lea edx, [ebp - 0x178]
push edx
lea eax, [ebp - 0x68]
push eax
mov ecx, dword [ebp - 0x18]
push ecx
push 0
mov edx, dword [ebp - 0xc]
push edx
push 1
push 0
push 0
mov eax, dword [ebp - 0x74]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x40ef19
mov dword [ebp - 0x324], 0xffffffff
mov ecx, dword [ebp - 0x154]
cmp dword [ecx + 0x1c], 0
je 0x40eec1
mov edx, dword [ebp - 0x154]
mov eax, dword [edx + 0x1c]
imul eax, eax, 0x3e8
mov dword [ebp - 0x324], eax
mov ecx, dword [ebp - 0x324]
push ecx
mov edx, dword [ebp - 0x178]
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x40eeeb
push 0
mov eax, dword [ebp - 0x178]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
lea ecx, [ebp - 0x14c]
push ecx
mov edx, dword [ebp - 0x178]
push edx
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov eax, dword [ebp - 0x178]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x174]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 0x18]
push edx
call fcn.0040b5b0
add esp, 4
cmp dword [ebp - 0x18], 0x416ca8
je 0x40ef47
cmp dword [ebp - 0x18], 0
je 0x40ef47
mov eax, dword [ebp - 0x18]
push eax
push 0
mov ecx, dword [0x416870]
push ecx
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov edx, dword [ebp - 0x14]
push edx
push 0
mov eax, dword [0x416870]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov ecx, dword [ebp - 0x164]
push ecx
push 0
mov edx, dword [0x416870]
push edx
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [ebp - 0x18c]
push eax
push 0
mov ecx, dword [0x416870]
push ecx
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov edx, dword [ebp - 0x74]
push edx
push 0
mov eax, dword [0x416870]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov ecx, dword [ebp - 0x1ac]
push ecx
push 0
mov edx, dword [0x416870]
push edx
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [ebp - 0x190]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0x416ca8
mov ecx, dword [ebp - 0x154]
push ecx
call fcn.0040f030
add esp, 8
mov edx, dword [ebp - 0x154]
mov dword [ebp - 0x384], edx
mov eax, dword [ebp - 0x384]
mov dword [ebp - 0x380], eax
cmp dword [ebp - 0x380], 0
je 0x40f004
push 1
mov ecx, dword [ebp - 0x380]
call fcn.00410710
mov dword [ebp - 0x3bc], eax
jmp 0x40f00e
mov dword [ebp - 0x3bc], 0
mov ecx, dword [ebp - 0x14c]
push ecx
call dword [sym.imp.KERNEL32.dll_ExitProcess]
jmp 0x40f01f
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret