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, 0x3b4
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [ebp - 0x174], eax
mov dword [ebp - 0x160], 0
mov dword [ebp - 8], 1
mov dword [ebp - 0x148], 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov dword [0x416870], eax
push 0x104
push 0x416eb8
push 1
mov eax, dword [ebp - 0x174]
push eax
call dword [sym.imp.USER32.dll_LoadStringA]
push 8
push 0x416c9c
push 0x11
mov ecx, dword [ebp - 0x174]
push ecx
call dword [sym.imp.USER32.dll_LoadStringA]
push 0xc8
lea edx, [ebp - 0x140]
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 - 0x188], eax
cmp dword [ebp - 0x188], 0
jne 0x40cbc0
jmp 0x40effe
push 0x79
push 5
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov dword [ebp - 0x17c], eax
cmp dword [ebp - 0x17c], 0
je 0x40cc48
mov ecx, dword [ebp - 0x17c]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x178], eax
cmp dword [ebp - 0x178], 0
je 0x40cc48
mov edx, dword [ebp - 0x178]
push edx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x150], eax
cmp dword [ebp - 0x150], 0
je 0x40cc48
mov eax, dword [ebp - 0x17c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0x1a8], eax
cmp dword [ebp - 0x1a8], 1
jne 0x40cc48
mov ecx, dword [ebp - 0x150]
movzx edx, byte [ecx]
cmp edx, 1
jne 0x40cc48
mov dword [ebp - 8], 0
push 0x79
push 7
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov dword [ebp - 0x17c], eax
cmp dword [ebp - 0x17c], 0
je 0x40ccc9
mov eax, dword [ebp - 0x17c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x178], eax
cmp dword [ebp - 0x178], 0
je 0x40ccc9
mov ecx, dword [ebp - 0x178]
push ecx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x150], eax
cmp dword [ebp - 0x150], 0
je 0x40ccc9
mov edx, dword [ebp - 0x17c]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0x1a8], eax
cmp dword [ebp - 0x1a8], 4
jne 0x40ccc9
mov eax, dword [ebp - 0x150]
mov ecx, dword [eax]
mov dword [ebp - 0x148], ecx
mov byte [0x416888], 0
push 0x204
push 0
mov edx, dword [0x416870]
push edx
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [ebp - 0x1a4], eax
push 0x79
push 3
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov dword [ebp - 0x17c], eax
cmp dword [ebp - 0x17c], 0
je 0x40cdfc
mov eax, dword [ebp - 0x17c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x178], eax
cmp dword [ebp - 0x178], 0
jne 0x40cd2f
push 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov ecx, dword [ebp - 0x178]
push ecx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x150], eax
cmp dword [ebp - 0x150], 0
jne 0x40cd53
push 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov edx, dword [ebp - 0x17c]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0x1ac], eax
cmp dword [ebp - 0x1ac], 0x100
jbe 0x40cd7c
push 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push 0x100
push 0
push 0x416b98
call fcn.0040f1c0
add esp, 0xc
push str.Everstrike_Software
push 0x416b98
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 0x100
push 0x416b98
mov eax, dword [ebp - 0x1a4]
push eax
call fcn.004015d0
add esp, 0xc
mov ecx, dword [ebp - 0x1ac]
mov byte [ecx + 0x416888], 0
mov edx, dword [ebp - 0x1ac]
push edx
mov eax, dword [ebp - 0x150]
push eax
push 0x416888
call fcn.0040f270
add esp, 0xc
mov ecx, dword [ebp - 0x1a4]
push ecx
mov edx, dword [ebp - 0x1ac]
push edx
push 0x416888
call fcn.0040b5e0
add esp, 0xc
push 0x416888
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
jne 0x40cefb
push 0x104
push 0x416db0
push 0x21
mov eax, dword [ebp - 0x174]
push eax
call dword [sym.imp.USER32.dll_LoadStringA]
cmp dword [ebp - 8], 0
jne 0x40ce4c
push 0
push str.Warning
push 0x416db0
call dword [sym.imp.USER32.dll_GetForegroundWindow]
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
jmp 0x40cefb
push 0xfffffffffffffff5
call fcn.00405fc0
add esp, 4
mov dword [ebp - 0x1b0], eax
push 0xfffffffffffffff6
call fcn.00405fc0
add esp, 4
mov dword [ebp - 0x1c8], eax
cmp dword [ebp - 0x1b0], 0xffffffff
je 0x40cefb
push 0x416db0
push 0x416db0
call dword [sym.imp.USER32.dll_CharToOemA]
push 0
lea ecx, [ebp - 0x1a8]
push ecx
push 0x416db0
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
push 0x416db0
mov edx, dword [ebp - 0x1b0]
push edx
call fcn.00406010
add esp, 0x14
mov eax, 1
test eax, eax
je 0x40cefb
lea ecx, [ebp - 0x1a8]
push ecx
push 1
lea edx, [ebp - 0x1c4]
push edx
mov eax, dword [ebp - 0x1c8]
push eax
call dword [sym.imp.KERNEL32.dll_ReadConsoleInputA]
test eax, eax
jne 0x40cede
jmp 0x40cefb
movzx ecx, word [ebp - 0x1c4]
cmp ecx, 1
je 0x40ceec
jmp 0x40ceb2
cmp dword [ebp - 0x1c0], 0
jne 0x40cef7
jmp 0x40ceb2
jmp 0x40cefb
push 0x79
push 4
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov dword [ebp - 0x17c], eax
cmp dword [ebp - 0x17c], 0
je 0x40d28c
mov edx, dword [ebp - 0x17c]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x178], eax
cmp dword [ebp - 0x178], 0
jne 0x40cf40
push 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov eax, dword [ebp - 0x178]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x150], eax
cmp dword [ebp - 0x150], 0
jne 0x40cf64
push 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov ecx, dword [ebp - 0x17c]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0x1a8], eax
cmp dword [ebp - 0x1a8], 0x10
je 0x40cf8a
push 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push 0x10
mov edx, dword [ebp - 0x150]
push edx
lea eax, [ebp - 0x1a0]
push eax
call fcn.0040f270
add esp, 0xc
mov dword [ebp - 0x160], 1
mov dword [ebp - 0x210], 0
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [ebp - 0x20c], eax
lea ecx, [ebp - 0x204]
call fcn.00410630
mov dword [ebp - 0x208], 0
mov byte [ebp - 0x215], 0x20
mov dword [ebp - 0x1cc], 0
mov ecx, dword [ebp - 0x20c]
movsx edx, byte [ecx]
cmp edx, 0x22
jne 0x40d007
mov byte [ebp - 0x215], 0x22
mov dword [ebp - 0x208], 1
jmp 0x40d018
mov eax, dword [ebp - 0x208]
add eax, 1
mov dword [ebp - 0x208], eax
mov ecx, dword [ebp - 0x20c]
add ecx, dword [ebp - 0x208]
movsx edx, byte [ecx]
test edx, edx
je 0x40d058
mov eax, dword [ebp - 0x20c]
add eax, dword [ebp - 0x208]
movsx ecx, byte [eax]
movsx edx, byte [ebp - 0x215]
cmp ecx, edx
jne 0x40d056
mov eax, dword [ebp - 0x208]
add eax, 1
mov dword [ebp - 0x208], eax
jmp 0x40d058
jmp 0x40d009
mov ecx, dword [ebp - 0x20c]
add ecx, dword [ebp - 0x208]
movsx edx, byte [ecx]
cmp edx, 0x20
jne 0x40d07d
mov eax, dword [ebp - 0x208]
add eax, 1
mov dword [ebp - 0x208], eax
jmp 0x40d058
mov ecx, dword [ebp - 0x20c]
add ecx, dword [ebp - 0x208]
push ecx
lea ecx, [ebp - 0x204]
call fcn.00407380
lea edx, [ebp - 0x1cc]
push edx
lea eax, [ebp - 0x204]
push eax
call fcn.004079e0
mov dword [ebp - 0x208], 0
jmp 0x40d0c3
mov ecx, dword [ebp - 0x208]
add ecx, 1
mov dword [ebp - 0x208], ecx
mov edx, dword [ebp - 0x208]
cmp edx, dword [ebp - 0x1cc]
jge 0x40d254
lea eax, [ebp - 0x214]
push eax
mov ecx, dword [ebp - 0x208]
push ecx
lea edx, [ebp - 0x204]
push edx
call fcn.00407940
push str._pass
mov eax, dword [ebp - 0x214]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
jne 0x40d242
mov ecx, dword [ebp - 0x1cc]
sub ecx, 1
cmp dword [ebp - 0x208], ecx
jge 0x40d242
lea edx, [ebp - 0x28c]
push edx
mov eax, dword [ebp - 0x208]
add eax, 1
push eax
lea ecx, [ebp - 0x204]
push ecx
call fcn.00407940
mov edx, dword [ebp - 0x28c]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, 1
mov dword [ebp - 0x274], eax
mov eax, dword [ebp - 0x274]
push eax
push 0
mov ecx, dword [0x416870]
push ecx
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [ebp - 0x278], eax
push 0
push 0
mov edx, dword [ebp - 0x274]
push edx
mov eax, dword [ebp - 0x278]
push eax
push 0xffffffffffffffff
mov ecx, dword [ebp - 0x28c]
push ecx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edx, dword [ebp - 0x278]
push edx
push 0x416db0
call fcn.0040f300
add esp, 8
mov eax, dword [ebp - 0x28c]
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
lea ecx, [ebp - 0x270]
push ecx
call fcn.00403ff0
add esp, 4
push 0x416db0
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
push 0x416db0
lea edx, [ebp - 0x270]
push edx
call fcn.00404f40
add esp, 0xc
lea eax, [ebp - 0x288]
push eax
lea ecx, [ebp - 0x270]
push ecx
call fcn.00405040
add esp, 8
push 0x10
lea edx, [ebp - 0x288]
push edx
lea eax, [ebp - 0x1a0]
push eax
call fcn.0040f200
add esp, 0xc
test eax, eax
jne 0x40d21e
mov dword [ebp - 0x210], 1
mov ecx, dword [ebp - 0x214]
push ecx
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov edx, dword [ebp - 0x278]
push edx
push 0
mov eax, dword [0x416870]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x40d254
mov ecx, dword [ebp - 0x214]
push ecx
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
jmp 0x40d0b4
lea ecx, [ebp - 0x204]
call fcn.00407730
cmp dword [ebp - 0x210], 0
jne 0x40d28c
mov edx, dword [ebp - 8]
push edx
lea eax, [ebp - 0x1a0]
push eax
push 0x416db0
call fcn.0040b860
add esp, 0xc
test eax, eax
jne 0x40d28c
push 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push 0x416888
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
jle 0x40d32e
push 0x100
push 0
push 0x416b98
call fcn.0040f1c0
add esp, 0xc
cmp dword [ebp - 0x160], 0
jne 0x40d31c
push 0x416888
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov dword [ebp - 0x290], eax
mov dword [ebp - 0x294], 0
jmp 0x40d2e8
mov ecx, dword [ebp - 0x294]
add ecx, 1
mov dword [ebp - 0x294], ecx
mov edx, dword [ebp - 0x294]
cmp edx, dword [ebp - 0x290]
jae 0x40d31a
mov eax, dword [ebp - 0x294]
movsx ecx, byte [eax + 0x416888]
movsx edx, byte [ebp - 0x294]
xor ecx, edx
mov eax, dword [ebp - 0x294]
mov byte [eax + 0x416b98], cl
jmp 0x40d2d9
jmp 0x40d32c
push 0x416db0
push 0x416b98
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
jmp 0x40d352
push 0x100
push 0
push 0x416b98
call fcn.0040f1c0
add esp, 0xc
push 0x4114e8
push 0x416b98
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 0x100
push 0x416b98
mov ecx, dword [ebp - 0x1a4]
push ecx
call fcn.004015d0
add esp, 0xc
push 0x79
push 2
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov dword [ebp - 0x17c], eax
cmp dword [ebp - 0x17c], 0
jne 0x40d3a3
mov edx, dword [ebp - 0x1a4]
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 - 0x17c]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x178], eax
cmp dword [ebp - 0x178], 0
jne 0x40d3de
mov edx, dword [ebp - 0x1a4]
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 - 0x178]
push ecx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x150], eax
cmp dword [ebp - 0x150], 0
jne 0x40d417
mov edx, dword [ebp - 0x1a4]
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 - 0x17c]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0x1c], eax
mov edx, dword [ebp - 0x1c]
push edx
push 0
mov eax, dword [0x416870]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [ebp - 0x184], eax
cmp dword [ebp - 0x184], 0
jne 0x40d472
mov ecx, dword [ebp - 0x1a4]
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 - 0x1c]
sub eax, 4
push eax
mov ecx, dword [ebp - 0x150]
add ecx, 4
push ecx
mov edx, dword [ebp - 0x184]
push edx
call fcn.0040f270
add esp, 0xc
mov eax, dword [ebp - 0x1a4]
push eax
mov ecx, dword [ebp - 0x1c]
sub ecx, 4
push ecx
mov edx, dword [ebp - 0x184]
push edx
call fcn.0040b5e0
add esp, 0xc
mov eax, dword [ebp - 0x150]
mov ecx, dword [eax]
mov dword [ebp - 0x1c], ecx
mov edx, dword [ebp - 0x184]
add edx, dword [ebp - 0x1c]
mov byte [edx], 0
push 0x79
push 1
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov dword [ebp - 0x17c], eax
cmp dword [ebp - 0x17c], 0
jne 0x40d514
mov eax, dword [ebp - 0x184]
push eax
push 0
mov ecx, dword [0x416870]
push ecx
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov edx, dword [ebp - 0x1a4]
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 - 0x17c]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x178], eax
cmp dword [ebp - 0x178], 0
jne 0x40d565
mov edx, dword [ebp - 0x184]
push edx
push 0
mov eax, dword [0x416870]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov ecx, dword [ebp - 0x1a4]
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 - 0x178]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x150], eax
cmp dword [ebp - 0x150], 0
jne 0x40d5b5
mov ecx, dword [ebp - 0x184]
push ecx
push 0
mov edx, dword [0x416870]
push edx
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [ebp - 0x1a4]
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 - 0x17c]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
add eax, 1
push eax
push 0
mov ecx, dword [0x416870]
push ecx
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [ebp - 0x15c], eax
cmp dword [ebp - 0x15c], 0
jne 0x40d61f
mov edx, dword [ebp - 0x184]
push edx
push 0
mov eax, dword [0x416870]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov ecx, dword [ebp - 0x1a4]
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 - 0x10]
push eax
mov ecx, dword [ebp - 0x150]
push ecx
mov edx, dword [ebp - 0x15c]
push edx
call fcn.0040f270
add esp, 0xc
mov eax, dword [ebp - 0x1a4]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
mov edx, dword [ebp - 0x15c]
push edx
call fcn.0040b5e0
add esp, 0xc
mov eax, dword [ebp - 0x15c]
add eax, dword [ebp - 0x10]
mov byte [eax], 0
push 0x20
call fcn.0040f170
add esp, 4
mov dword [ebp - 0x320], eax
cmp dword [ebp - 0x320], 0
je 0x40d692
mov ecx, dword [ebp - 0x15c]
push ecx
mov ecx, dword [ebp - 0x320]
call fcn.00405570
mov dword [ebp - 0x380], eax
jmp 0x40d69c
mov dword [ebp - 0x380], 0
mov edx, dword [ebp - 0x380]
mov dword [ebp - 0x14c], edx
mov eax, dword [ebp - 0x14c]
mov ecx, dword [eax + 0x14]
mov dword [ebp - 0x384], ecx
cmp dword [ebp - 0x384], 0
je 0x40d6d7
cmp dword [ebp - 0x384], 1
je 0x40d6ec
cmp dword [ebp - 0x384], 2
je 0x40d701
jmp 0x40d7a4
push 0x416ca8
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
jmp 0x40d7a4
push 0x416ca8
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
jmp 0x40d7a4
mov ecx, dword [ebp - 0x14c]
call fcn.00405870
push eax
push 0x416ca8
call fcn.0040f300
add esp, 8
push 0x104
push 0x416db0
push 0x416ca8
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
mov ecx, dword [ebp - 0x14c]
call fcn.00405870
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov dword [ebp - 0x298], eax
cmp dword [ebp - 0x298], 0xffffffff
jne 0x40d75d
push 0
push 0x416db0
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push 0x416db0
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov dword [ebp - 0x298], eax
cmp dword [ebp - 0x298], 0xffffffff
je 0x40d794
mov edx, dword [ebp - 0x298]
and edx, 0x10
je 0x40d794
push 0x416db0
push 0x416ca8
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
jmp 0x40d7a4
push 0x416ca8
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
push 0x416ca8
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov dword [ebp - 0x154], eax
cmp dword [ebp - 0x154], 0
jle 0x40d7dd
mov eax, dword [ebp - 0x154]
movsx ecx, byte [eax + 0x416ca7]
cmp ecx, 0x5c
jne 0x40d7dd
mov edx, dword [ebp - 0x154]
mov byte [edx + 0x416ca7], 0
call fcn.0040f0d0
mov dword [ebp - 0x180], eax
mov eax, dword [ebp - 0x180]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
jne 0x40d80a
mov ecx, dword [ebp - 0x14c]
call fcn.004058a0
mov dword [ebp - 0x180], eax
mov dword [ebp - 0x70], 0
push 0x416c9c
push 0x416eb8
push 0x416ca8
push 0x4114f4
mov ecx, dword [ebp - 0x188]
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x14
push 0
push 0x80
push 3
push 0
push 7
push 0x40000000
mov edx, dword [ebp - 0x188]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x158], eax
cmp dword [ebp - 0x158], 0xffffffff
jne 0x40d88f
mov dword [ebp - 0x70], 1
push 0
push 0x80
push 1
push 0
push 7
push 0x40000000
mov eax, dword [ebp - 0x188]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x158], eax
cmp dword [ebp - 0x158], 0xffffffff
jne 0x40d8e3
push 0x416ca8
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
push 0x416ca8
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov dword [ebp - 0x154], eax
cmp dword [ebp - 0x154], 0
jle 0x40d8e1
mov ecx, dword [ebp - 0x154]
movsx edx, byte [ecx + 0x416ca7]
cmp edx, 0x5c
jne 0x40d8e1
mov eax, dword [ebp - 0x154]
mov byte [eax + 0x416ca7], 0
jmp 0x40d903
mov ecx, dword [ebp - 0x158]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x70], 0
je 0x40d903
mov edx, dword [ebp - 0x188]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, dword [ebp - 0x14c]
mov dword [0x4170cc], eax
mov ecx, dword [ebp - 0x1a4]
mov dword [0x416874], ecx
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 edx, [ebp - 0x1c]
push edx
mov eax, dword [ebp - 0x184]
push eax
call fcn.0040c830
add esp, 0x10
mov dword [ebp - 0x184], eax
push 0x416db0
call dword [sym.imp.KERNEL32.dll_lstrlenA]
sub eax, 1
mov dword [ebp - 0x20], eax
jmp 0x40d978
mov ecx, dword [ebp - 0x20]
sub ecx, 1
mov dword [ebp - 0x20], ecx
cmp dword [ebp - 0x20], 0
jl 0x40da37
mov edx, dword [ebp - 0x20]
movsx eax, byte [edx + 0x416db0]
cmp eax, 0x5c
jne 0x40da32
mov ecx, dword [ebp - 0x20]
add ecx, 0x416db1
push ecx
push str.ES.exe.name
lea edx, [ebp - 0x1c]
push edx
mov eax, dword [ebp - 0x184]
push eax
call fcn.0040c830
add esp, 0x10
mov dword [ebp - 0x184], eax
mov ecx, dword [ebp - 0x20]
mov byte [ecx + 0x416db0], 0
push 0x411520
push 0x416c9c
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
jne 0x40d9e5
mov edx, dword [ebp - 0x20]
mov byte [edx + 0x416daf], 0
push 0x416db0
push str.ES.exe.path
lea eax, [ebp - 0x1c]
push eax
mov ecx, dword [ebp - 0x184]
push ecx
call fcn.0040c830
add esp, 0x10
mov dword [ebp - 0x184], eax
mov edx, dword [ebp - 0x20]
mov byte [edx + 0x416db0], 0x5c
push 0x411534
push 0x416c9c
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
jne 0x40da30
mov eax, dword [ebp - 0x20]
mov byte [eax + 0x416daf], 0x5c
jmp 0x40da37
jmp 0x40d96f
push 0x416db0
call fcn.0040ca40
add esp, 4
push 0x416c9c
push 0x416eb8
push 0x416ca8
push 0x411538
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 ecx, [ebp - 0x1c]
push ecx
mov edx, dword [ebp - 0x184]
push edx
call fcn.0040c830
add esp, 0x10
mov dword [ebp - 0x184], eax
push 0x416db0
call fcn.0040ca40
add esp, 4
push 0x416c9c
push 0x416eb8
push 0x411554
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 eax, [ebp - 0x1c]
push eax
mov ecx, dword [ebp - 0x184]
push ecx
call fcn.0040c830
add esp, 0x10
mov dword [ebp - 0x184], 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 edx, [ebp - 0x1c]
push edx
mov eax, dword [ebp - 0x184]
push eax
call fcn.0040c830
add esp, 0x10
mov dword [ebp - 0x184], eax
push 0x416ca8
push str.ES.script.path
lea ecx, [ebp - 0x1c]
push ecx
mov edx, dword [ebp - 0x184]
push edx
call fcn.0040c830
add esp, 0x10
mov dword [ebp - 0x184], eax
push 0x416ca8
call fcn.0040ca40
add esp, 4
cmp dword [ebp - 0x148], 0
jne 0x40e0ac
mov eax, dword [ebp - 0x14c]
mov ecx, dword [eax + 0x10]
mov edx, dword [ecx + 8]
mov dword [ebp - 0x29c], edx
mov eax, dword [ebp - 0x14c]
mov ecx, dword [eax + 0x10]
mov edx, dword [ecx]
mov dword [ebp - 0x2a4], edx
mov dword [ebp - 0x2a8], 0
push 0x208
push 0
mov eax, dword [0x416870]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [ebp - 0x2a0], eax
mov dword [ebp - 0x20], 0
jmp 0x40dbc2
mov ecx, dword [ebp - 0x20]
add ecx, 1
mov dword [ebp - 0x20], ecx
mov edx, dword [ebp - 0x20]
cmp edx, dword [ebp - 0x29c]
jge 0x40dd29
mov eax, dword [ebp - 0x2a4]
push eax
push 0x416ca8
push 0x41158c
mov ecx, dword [ebp - 0x2a0]
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
mov edx, dword [ebp - 0x2a0]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x40dcf7
mov eax, dword [ebp - 0x2a4]
mov ecx, dword [eax + 0x104]
mov dword [ebp - 0x2ac], ecx
mov edx, dword [ebp - 0x14c]
mov eax, dword [edx + 0x10]
mov ecx, dword [ebp - 0x2a4]
cmp ecx, dword [eax]
jne 0x40dc44
mov edx, dword [ebp - 0x14c]
mov eax, dword [edx + 0x10]
mov ecx, dword [ebp - 0x2a4]
mov edx, dword [ecx + 0x104]
mov dword [eax], edx
mov eax, dword [ebp - 0x14c]
mov ecx, dword [eax + 0x10]
mov edx, dword [ebp - 0x2a4]
cmp edx, dword [ecx + 4]
jne 0x40dc6a
mov eax, dword [ebp - 0x14c]
mov ecx, dword [eax + 0x10]
mov edx, dword [ebp - 0x2a8]
mov dword [ecx + 4], edx
cmp dword [ebp - 0x2a8], 0
je 0x40dc8b
mov eax, dword [ebp - 0x2a8]
mov ecx, dword [ebp - 0x2a4]
mov edx, dword [ecx + 0x104]
mov dword [eax + 0x104], edx
mov eax, dword [ebp - 0x14c]
mov ecx, dword [eax + 0x10]
mov edx, dword [ecx + 8]
sub edx, 1
mov eax, dword [ebp - 0x14c]
mov ecx, dword [eax + 0x10]
mov dword [ecx + 8], edx
mov edx, dword [ebp - 0x2a4]
mov dword [ebp - 0x328], edx
mov eax, dword [ebp - 0x328]
mov dword [ebp - 0x324], eax
cmp dword [ebp - 0x324], 0
je 0x40dcdc
push 1
mov ecx, dword [ebp - 0x324]
call fcn.00405d60
mov dword [ebp - 0x388], eax
jmp 0x40dce6
mov dword [ebp - 0x388], 0
mov ecx, dword [ebp - 0x2ac]
mov dword [ebp - 0x2a4], ecx
jmp 0x40dbb9
mov edx, dword [ebp - 0x2a4]
mov dword [ebp - 0x2a8], edx
mov eax, dword [ebp - 0x2a4]
mov ecx, dword [eax + 0x104]
mov dword [ebp - 0x2a4], ecx
push 0
mov edx, dword [ebp - 0x2a0]
push edx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
jmp 0x40dbb9
mov eax, dword [ebp - 0x14c]
mov ecx, dword [eax + 0xc]
mov edx, dword [ecx + 8]
mov dword [ebp - 0x29c], edx
mov eax, dword [ebp - 0x14c]
mov ecx, dword [eax + 0xc]
mov edx, dword [ecx]
mov dword [ebp - 0x2a4], edx
mov dword [ebp - 0x2a8], 0
mov dword [ebp - 0x20], 0
jmp 0x40dd68
mov eax, dword [ebp - 0x20]
add eax, 1
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 0x20]
cmp ecx, dword [ebp - 0x29c]
jge 0x40e097
mov edx, dword [ebp - 0x2a4]
movsx eax, byte [edx]
test eax, eax
jne 0x40dda4
mov ecx, dword [ebp - 0x2a4]
mov dword [ebp - 0x2a8], ecx
mov edx, dword [ebp - 0x2a4]
mov eax, dword [edx + 0x104]
mov dword [ebp - 0x2a4], eax
jmp 0x40dd5f
mov dword [ebp - 0x2b0], 0
push 0xa
mov ecx, dword [ebp - 0x20]
add ecx, 1
movzx edx, cx
push edx
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov dword [ebp - 0x17c], eax
cmp dword [ebp - 0x17c], 0
je 0x40de20
mov eax, dword [ebp - 0x17c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x178], eax
cmp dword [ebp - 0x178], 0
je 0x40de20
mov ecx, dword [ebp - 0x178]
push ecx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x150], eax
cmp dword [ebp - 0x150], 0
je 0x40de20
mov edx, dword [ebp - 0x17c]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0x2b0], eax
cmp dword [ebp - 0x2b0], 0
je 0x40debd
cmp dword [ebp - 0x2b0], 0
je 0x40de57
mov eax, dword [ebp - 0x2b0]
sub eax, 4
push eax
push 0
mov ecx, dword [0x416870]
push ecx
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [ebp - 0x2b4], eax
jmp 0x40de61
mov dword [ebp - 0x2b4], 0
cmp dword [ebp - 0x2b4], 0
je 0x40debb
mov edx, dword [ebp - 0x2b0]
sub edx, 4
push edx
mov eax, dword [ebp - 0x150]
add eax, 4
push eax
mov ecx, dword [ebp - 0x2b4]
push ecx
call fcn.0040f270
add esp, 0xc
mov edx, dword [ebp - 0x1a4]
push edx
mov eax, dword [ebp - 0x2b0]
sub eax, 4
push eax
mov ecx, dword [ebp - 0x2b4]
push ecx
call fcn.0040b5e0
add esp, 0xc
mov edx, dword [ebp - 0x150]
mov eax, dword [edx]
mov dword [ebp - 0x2b0], eax
jmp 0x40dec7
mov dword [ebp - 0x2b4], 0
mov ecx, dword [ebp - 0x2a4]
push ecx
push 0x416ca8
push 0x411594
mov edx, dword [ebp - 0x2a0]
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
mov eax, dword [ebp - 0x2a0]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x40dfed
mov ecx, dword [ebp - 0x2a4]
mov edx, dword [ecx + 0x104]
mov dword [ebp - 0x2b8], edx
mov eax, dword [ebp - 0x14c]
mov ecx, dword [eax + 0xc]
mov edx, dword [ebp - 0x2a4]
cmp edx, dword [ecx]
jne 0x40df3a
mov eax, dword [ebp - 0x14c]
mov ecx, dword [eax + 0xc]
mov edx, dword [ebp - 0x2a4]
mov eax, dword [edx + 0x104]
mov dword [ecx], eax
mov ecx, dword [ebp - 0x14c]
mov edx, dword [ecx + 0xc]
mov eax, dword [ebp - 0x2a4]
cmp eax, dword [edx + 4]
jne 0x40df60
mov ecx, dword [ebp - 0x14c]
mov edx, dword [ecx + 0xc]
mov eax, dword [ebp - 0x2a8]
mov dword [edx + 4], eax
cmp dword [ebp - 0x2a8], 0
je 0x40df81
mov ecx, dword [ebp - 0x2a8]
mov edx, dword [ebp - 0x2a4]
mov eax, dword [edx + 0x104]
mov dword [ecx + 0x104], eax
mov ecx, dword [ebp - 0x14c]
mov edx, dword [ecx + 0xc]
mov eax, dword [edx + 8]
sub eax, 1
mov ecx, dword [ebp - 0x14c]
mov edx, dword [ecx + 0xc]
mov dword [edx + 8], eax
mov eax, dword [ebp - 0x2a4]
mov dword [ebp - 0x330], eax
mov ecx, dword [ebp - 0x330]
mov dword [ebp - 0x32c], ecx
cmp dword [ebp - 0x32c], 0
je 0x40dfd2
push 1
mov ecx, dword [ebp - 0x32c]
call fcn.00405d60
mov dword [ebp - 0x38c], eax
jmp 0x40dfdc
mov dword [ebp - 0x38c], 0
mov edx, dword [ebp - 0x2b8]
mov dword [ebp - 0x2a4], edx
jmp 0x40dd5f
mov eax, dword [ebp - 0x2a4]
mov dword [ebp - 0x2a8], eax
mov ecx, dword [ebp - 0x2a4]
mov edx, dword [ecx + 0x104]
mov dword [ebp - 0x2a4], edx
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
mov eax, dword [ebp - 0x2a0]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x158], eax
cmp dword [ebp - 0x158], 0xffffffff
je 0x40e073
cmp dword [ebp - 0x2b4], 0
je 0x40e066
push 0
lea ecx, [ebp - 0x1a8]
push ecx
mov edx, dword [ebp - 0x2b0]
push edx
mov eax, dword [ebp - 0x2b4]
push eax
mov ecx, dword [ebp - 0x158]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov edx, dword [ebp - 0x158]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x2b4], 0
je 0x40e092
mov eax, dword [ebp - 0x2b4]
push eax
push 0
mov ecx, dword [0x416870]
push ecx
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x40dd5f
mov edx, dword [ebp - 0x2a0]
push edx
push 0
mov eax, dword [0x416870]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
push 0x41159c
push 0x416c9c
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x40e1c1
mov ecx, dword [ebp - 0x14c]
mov edx, dword [ecx + 0x18]
and edx, 0x20
je 0x40e1c1
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 eax, dword [ebp - 0x14c]
mov ecx, dword [eax + 0x18]
and ecx, 0x10
setne dl
movzx eax, dl
push eax
mov ecx, dword [ebp - 0x180]
push ecx
mov edx, dword [ebp - 0x184]
push edx
call fcn.0040bcc0
add esp, 0xc
mov eax, dword [ebp - 0x15c]
push eax
push 0
mov ecx, dword [0x416870]
push ecx
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov edx, dword [ebp - 0x184]
push edx
push 0
mov eax, dword [0x416870]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov ecx, dword [ebp - 0x1a4]
push ecx
push 0
mov edx, dword [0x416870]
push edx
call dword [sym.imp.KERNEL32.dll_HeapFree]
push 0x416ca8
mov eax, dword [ebp - 0x14c]
push eax
call fcn.0040f010
add esp, 8
mov ecx, dword [ebp - 0x14c]
mov dword [ebp - 0x338], ecx
mov edx, dword [ebp - 0x338]
mov dword [ebp - 0x334], edx
cmp dword [ebp - 0x334], 0
je 0x40e1af
push 1
mov ecx, dword [ebp - 0x334]
call fcn.004106f0
mov dword [ebp - 0x390], eax
jmp 0x40e1b9
mov dword [ebp - 0x390], 0
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov eax, dword [ebp - 0x14c]
mov ecx, dword [eax + 0x18]
and ecx, 0x20
je 0x40e79a
mov dword [ebp - 0x2dc], 0
mov dword [ebp - 0x2d8], 0
xor edx, edx
mov word [ebp - 0x2fc], dx
xor eax, eax
mov dword [ebp - 0x2fa], eax
mov dword [ebp - 0x2f6], eax
mov dword [ebp - 0x2f2], eax
mov dword [ebp - 0x2ee], eax
mov dword [ebp - 0x2ea], eax
mov dword [ebp - 0x2e6], eax
mov dword [ebp - 0x2e2], eax
mov word [ebp - 0x2de], ax
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 0x40e267
lea ecx, [ebp - 0x2d0]
push ecx
lea edx, [ebp - 0x140]
push edx
call dword [sym.imp.ole32.dll_CLSIDFromProgID]
jmp 0x40e304
mov eax, dword [ebp - 0x15c]
push eax
push 0
mov ecx, dword [0x416870]
push ecx
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov edx, dword [ebp - 0x184]
push edx
push 0
mov eax, dword [0x416870]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov ecx, dword [ebp - 0x1a4]
push ecx
push 0
mov edx, dword [0x416870]
push edx
call dword [sym.imp.KERNEL32.dll_HeapFree]
push 0x416ca8
mov eax, dword [ebp - 0x14c]
push eax
call fcn.0040f010
add esp, 8
mov ecx, dword [ebp - 0x14c]
mov dword [ebp - 0x340], ecx
mov edx, dword [ebp - 0x340]
mov dword [ebp - 0x33c], edx
cmp dword [ebp - 0x33c], 0
je 0x40e2f2
push 1
mov ecx, dword [ebp - 0x33c]
call fcn.004106f0
mov dword [ebp - 0x394], eax
jmp 0x40e2fc
mov dword [ebp - 0x394], 0
push 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
push 0x4d0
call fcn.0040f170
add esp, 4
mov dword [ebp - 0x344], eax
cmp dword [ebp - 0x344], 0
je 0x40e33b
mov ecx, dword [ebp - 0x344]
call fcn.00410720
mov dword [ebp - 0x398], eax
jmp 0x40e345
mov dword [ebp - 0x398], 0
mov eax, dword [ebp - 0x398]
mov dword [ebp - 0x2c0], eax
mov ecx, dword [ebp - 0x180]
push ecx
push 0x416c9c
push 0x416eb8
push 0x416ca8
mov edx, dword [ebp - 0x14c]
push edx
mov ecx, dword [ebp - 0x2c0]
call fcn.004091a0
mov dword [ebp - 0x300], eax
cmp dword [ebp - 0x300], 0
je 0x40e469
mov eax, dword [ebp - 0x2c0]
mov dword [ebp - 0x34c], eax
mov ecx, dword [ebp - 0x34c]
mov dword [ebp - 0x348], ecx
cmp dword [ebp - 0x348], 0
je 0x40e3c2
push 1
mov ecx, dword [ebp - 0x348]
call fcn.00410790
mov dword [ebp - 0x39c], eax
jmp 0x40e3cc
mov dword [ebp - 0x39c], 0
mov edx, dword [ebp - 0x15c]
push edx
push 0
mov eax, dword [0x416870]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov ecx, dword [ebp - 0x184]
push ecx
push 0
mov edx, dword [0x416870]
push edx
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [ebp - 0x1a4]
push eax
push 0
mov ecx, dword [0x416870]
push ecx
call dword [sym.imp.KERNEL32.dll_HeapFree]
push 0x416ca8
mov edx, dword [ebp - 0x14c]
push edx
call fcn.0040f010
add esp, 8
mov eax, dword [ebp - 0x14c]
mov dword [ebp - 0x354], eax
mov ecx, dword [ebp - 0x354]
mov dword [ebp - 0x350], ecx
cmp dword [ebp - 0x350], 0
je 0x40e457
push 1
mov ecx, dword [ebp - 0x350]
call fcn.004106f0
mov dword [ebp - 0x3a0], eax
jmp 0x40e461
mov dword [ebp - 0x3a0], 0
push 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]
lea edx, [ebp - 0x2dc]
push edx
push 0x411ab0
push 1
push 0
lea eax, [ebp - 0x2d0]
push eax
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov dword [ebp - 0x300], eax
mov ecx, dword [ebp - 0x2c0]
mov edx, dword [ebp - 0x2dc]
mov dword [ecx + 0x4a8], edx
lea eax, [ebp - 0x2d8]
push eax
push 0x411ac0
mov ecx, dword [ebp - 0x2dc]
mov edx, dword [ecx]
mov eax, dword [ebp - 0x2dc]
push eax
mov ecx, dword [edx]
call ecx
mov dword [ebp - 0x300], eax
mov edx, dword [ebp - 0x1c]
lea eax, [edx + edx + 2]
push eax
push 0
mov ecx, dword [0x416870]
push ecx
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [ebp - 0x2bc], eax
mov edx, dword [ebp - 0x1c]
add edx, 1
push edx
mov eax, dword [ebp - 0x2bc]
push eax
push 0xffffffffffffffff
mov ecx, dword [ebp - 0x184]
push ecx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push 0xc
call fcn.0040f170
add esp, 4
mov dword [ebp - 0x358], eax
cmp dword [ebp - 0x358], 0
je 0x40e52d
mov ecx, dword [ebp - 0x358]
call fcn.004107c0
mov dword [ebp - 0x3a4], eax
jmp 0x40e537
mov dword [ebp - 0x3a4], 0
mov edx, dword [ebp - 0x3a4]
mov dword [ebp - 0x2d4], edx
mov eax, dword [ebp - 0x2d4]
mov ecx, dword [ebp - 0x2c0]
mov dword [eax + 8], ecx
mov edx, dword [ebp - 0x2d4]
push edx
mov eax, dword [ebp - 0x2dc]
mov ecx, dword [eax]
mov edx, dword [ebp - 0x2dc]
push edx
mov eax, dword [ecx + 0xc]
call eax
mov dword [ebp - 0x300], eax
mov ecx, dword [ebp - 0x2d8]
mov edx, dword [ecx]
mov eax, dword [ebp - 0x2d8]
push eax
mov ecx, dword [edx + 0xc]
call ecx
mov dword [ebp - 0x300], eax
push 6
push str.WScript
mov edx, dword [ebp - 0x2dc]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x2dc]
push ecx
mov edx, dword [eax + 0x20]
call edx
lea eax, [ebp - 0x2fc]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push 0
mov ecx, dword [ebp - 0x2bc]
push ecx
mov edx, dword [ebp - 0x2d8]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x2d8]
push ecx
mov edx, dword [eax + 0x14]
call edx
mov dword [ebp - 0x300], eax
mov eax, dword [ebp - 0x14c]
cmp dword [eax + 0x1c], 0
je 0x40e607
push 0
push 0
mov ecx, dword [ebp - 0x14c]
mov edx, dword [ecx + 0x1c]
push edx
push 0x409c60
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push 2
mov eax, dword [ebp - 0x2dc]
mov ecx, dword [eax]
mov edx, dword [ebp - 0x2dc]
push edx
mov eax, dword [ecx + 0x14]
call eax
mov dword [ebp - 0x300], eax
mov ecx, dword [ebp - 0x2bc]
push ecx
push 0
mov edx, dword [0x416870]
push edx
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [ebp - 0x2dc]
mov ecx, dword [eax]
mov edx, dword [ebp - 0x2dc]
push edx
mov eax, dword [ecx + 0x1c]
call eax
mov ecx, dword [ebp - 0x2d8]
mov edx, dword [ecx]
mov eax, dword [ebp - 0x2d8]
push eax
mov ecx, dword [edx + 8]
call ecx
mov edx, dword [ebp - 0x2dc]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x2dc]
push ecx
mov edx, dword [eax + 8]
call edx
mov eax, dword [ebp - 0x2d4]
mov dword [ebp - 0x35c], eax
mov ecx, dword [ebp - 0x35c]
push ecx
call fcn.0040f1a0
add esp, 4
mov ecx, dword [ebp - 0x2c0]
call fcn.004094d0
mov edx, dword [ebp - 0x2c0]
mov dword [ebp - 0x364], edx
mov eax, dword [ebp - 0x364]
mov dword [ebp - 0x360], eax
cmp dword [ebp - 0x360], 0
je 0x40e6d1
push 1
mov ecx, dword [ebp - 0x360]
call fcn.00410790
mov dword [ebp - 0x3a8], eax
jmp 0x40e6db
mov dword [ebp - 0x3a8], 0
mov ecx, dword [0x416880]
mov dword [ebp - 0x18c], ecx
mov edx, dword [ebp - 0x15c]
push edx
push 0
mov eax, dword [0x416870]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov ecx, dword [ebp - 0x184]
push ecx
push 0
mov edx, dword [0x416870]
push edx
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [ebp - 0x1a4]
push eax
push 0
mov ecx, dword [0x416870]
push ecx
call dword [sym.imp.KERNEL32.dll_HeapFree]
push 0xc8
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0x416ca8
mov edx, dword [ebp - 0x14c]
push edx
call fcn.0040f010
add esp, 8
mov eax, dword [ebp - 0x14c]
mov dword [ebp - 0x36c], eax
mov ecx, dword [ebp - 0x36c]
mov dword [ebp - 0x368], ecx
cmp dword [ebp - 0x368], 0
je 0x40e77d
push 1
mov ecx, dword [ebp - 0x368]
call fcn.004106f0
mov dword [ebp - 0x3ac], eax
jmp 0x40e787
mov dword [ebp - 0x3ac], 0
call dword [sym.imp.ole32.dll_CoUninitialize]
mov edx, dword [ebp - 0x18c]
push edx
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push 0x416c9c
push 0x416eb8
push 0x416ca8
push str._s_s_s
mov eax, dword [ebp - 0x188]
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 - 0x188]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x158], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x18c], eax
cmp dword [ebp - 0x158], 0xffffffff
jne 0x40e85a
cmp dword [ebp - 0x18c], 0xb7
je 0x40e80d
cmp dword [ebp - 0x18c], 0x50
jne 0x40e85a
push 0x416c9c
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
push 0x416ca8
push str._s_d_s
mov edx, dword [ebp - 0x188]
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x14
push 0
push 0x80
push 1
push 0
push 0
push 0x40000000
mov eax, dword [ebp - 0x188]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x158], eax
jmp 0x40e7ef
cmp dword [ebp - 0x158], 0xffffffff
jne 0x40e904
mov ecx, dword [ebp - 0x15c]
push ecx
push 0
mov edx, dword [0x416870]
push edx
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [ebp - 0x184]
push eax
push 0
mov ecx, dword [0x416870]
push ecx
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov edx, dword [ebp - 0x1a4]
push edx
push 0
mov eax, dword [0x416870]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
push 0x416ca8
mov ecx, dword [ebp - 0x14c]
push ecx
call fcn.0040f010
add esp, 8
mov edx, dword [ebp - 0x14c]
mov dword [ebp - 0x374], edx
mov eax, dword [ebp - 0x374]
mov dword [ebp - 0x370], eax
cmp dword [ebp - 0x370], 0
je 0x40e8f2
push 1
mov ecx, dword [ebp - 0x370]
call fcn.004106f0
mov dword [ebp - 0x3b0], eax
jmp 0x40e8fc
mov dword [ebp - 0x3b0], 0
push 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push 0x4115c4
push 0x416c9c
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x40ea4c
mov dword [ebp - 0x310], str.___________ExeScript_Options_Begin______
mov dword [ebp - 0x304], str.______ExeScript_Options_End__________
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0x308], ecx
mov edx, dword [ebp - 0x310]
push edx
mov eax, dword [ebp - 0x184]
push eax
call fcn.0040f5b0
add esp, 8
mov dword [ebp - 0x314], eax
cmp dword [ebp - 0x314], 0
je 0x40e994
mov ecx, dword [ebp - 0x314]
sub ecx, dword [ebp - 0x184]
mov dword [ebp - 0x30c], ecx
push 0
lea edx, [ebp - 0x1a8]
push edx
mov eax, dword [ebp - 0x30c]
push eax
mov ecx, dword [ebp - 0x184]
push ecx
mov edx, dword [ebp - 0x158]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [ebp - 0x304]
push eax
mov ecx, dword [ebp - 0x184]
push ecx
call fcn.0040f5b0
add esp, 8
mov dword [ebp - 0x314], eax
cmp dword [ebp - 0x314], 0
je 0x40ea1a
mov edx, dword [ebp - 0x314]
sub edx, dword [ebp - 0x184]
mov dword [ebp - 0x30c], edx
mov eax, dword [ebp - 0x308]
sub eax, dword [ebp - 0x30c]
mov dword [ebp - 0x308], eax
mov ecx, dword [ebp - 0x304]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
add eax, 2
mov edx, dword [ebp - 0x308]
sub edx, eax
mov dword [ebp - 0x308], edx
mov eax, dword [ebp - 0x304]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [ebp - 0x314]
lea edx, [ecx + eax + 2]
mov dword [ebp - 0x314], edx
jmp 0x40ea26
mov eax, dword [ebp - 0x184]
mov dword [ebp - 0x314], eax
push 0
lea ecx, [ebp - 0x1a8]
push ecx
mov edx, dword [ebp - 0x308]
push edx
mov eax, dword [ebp - 0x314]
push eax
mov ecx, dword [ebp - 0x158]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x40ea6d
push 0
lea edx, [ebp - 0x1a8]
push edx
mov eax, dword [ebp - 0x1c]
push eax
mov ecx, dword [ebp - 0x184]
push ecx
mov edx, dword [ebp - 0x158]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [ebp - 0x158]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x10
push 0
lea ecx, [ebp - 0x170]
push ecx
call fcn.0040f1c0
add esp, 0xc
push 0x44
push 0
lea edx, [ebp - 0x68]
push edx
call fcn.0040f1c0
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 0x40eb25
push str..cmd
push 0x416c9c
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x40eb25
push 0x411630
push 0x416c9c
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x40eb71
mov eax, dword [ebp - 0x14c]
mov ecx, dword [eax + 0x18]
and ecx, 0x10
je 0x40eb71
call dword [sym.imp.KERNEL32.dll_GetVersion]
mov dword [ebp - 0x318], eax
push str.___NUL
mov edx, dword [ebp - 0x180]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
cmp dword [ebp - 0x318], 0x80000000
jb 0x40eb65
xor eax, eax
mov word [ebp - 0x38], ax
jmp 0x40eb71
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 0x40ebb1
push str..wsf
push 0x416c9c
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x40ebb1
push str..wsh
push 0x416c9c
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x40ec0b
mov ecx, dword [ebp - 0x14c]
mov edx, dword [ecx + 0x18]
and edx, 8
je 0x40ebe5
mov eax, dword [ebp - 0x14c]
mov ecx, dword [eax + 0x18]
and ecx, 0x10
je 0x40ebd9
mov dword [ebp - 0x190], str.wscript.exe__B
jmp 0x40ebe3
mov dword [ebp - 0x190], str.wscript.exe
jmp 0x40ec09
mov edx, dword [ebp - 0x14c]
mov eax, dword [edx + 0x18]
and eax, 0x10
je 0x40ebff
mov dword [ebp - 0x190], str.cscript.exe__B
jmp 0x40ec09
mov dword [ebp - 0x190], str.cscript.exe
jmp 0x40ec62
push str..hta
push 0x416c9c
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x40ec2b
mov dword [ebp - 0x190], str.mshta.exe
jmp 0x40ec62
push 0x41169c
push 0x416c9c
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x40ec58
push 0x416990
call fcn.00405dc0
add esp, 4
mov dword [ebp - 0x190], 0x416990
jmp 0x40ec62
mov dword [ebp - 0x190], 0
cmp dword [ebp - 0x190], 0
je 0x40ed94
mov ecx, dword [ebp - 0x190]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
mov edx, dword [ebp - 0x188]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
add esi, eax
mov eax, dword [ebp - 0x180]
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 0x40ed2b
mov eax, dword [ebp - 0x180]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
jle 0x40ed09
mov ecx, dword [ebp - 0x188]
push ecx
mov edx, dword [ebp - 0x190]
push edx
push 0x4116ac
mov eax, dword [ebp - 0x74]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
mov ecx, dword [ebp - 0x180]
push ecx
mov edx, dword [ebp - 0x74]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
jmp 0x40ed29
mov eax, dword [ebp - 0x188]
push eax
mov ecx, dword [ebp - 0x190]
push ecx
push str._s__s
mov edx, dword [ebp - 0x74]
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
jmp 0x40ed8f
mov eax, dword [ebp - 0x180]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
jle 0x40ed6f
mov ecx, dword [ebp - 0x188]
push ecx
mov edx, dword [ebp - 0x190]
push edx
push 0x4116c4
mov eax, dword [ebp - 0x74]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
mov ecx, dword [ebp - 0x180]
push ecx
mov edx, dword [ebp - 0x74]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
jmp 0x40ed8f
mov eax, dword [ebp - 0x188]
push eax
mov ecx, dword [ebp - 0x190]
push ecx
push str._s___s_
mov edx, dword [ebp - 0x74]
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
jmp 0x40ee23
mov eax, dword [ebp - 0x188]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
mov ecx, dword [ebp - 0x180]
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 - 0x180]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
jle 0x40ee0a
mov edx, dword [ebp - 0x180]
push edx
mov eax, dword [ebp - 0x188]
push eax
push 0x4116d8
mov ecx, dword [ebp - 0x74]
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
mov edx, dword [ebp - 0x180]
push edx
mov eax, dword [ebp - 0x74]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
jmp 0x40ee23
mov ecx, dword [ebp - 0x188]
push ecx
push 0x4116e0
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 - 0x144], 1
lea edx, [ebp - 0x170]
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 0x40eefc
mov dword [ebp - 0x31c], 0xffffffff
mov ecx, dword [ebp - 0x14c]
cmp dword [ecx + 0x1c], 0
je 0x40eea4
mov edx, dword [ebp - 0x14c]
mov eax, dword [edx + 0x1c]
imul eax, eax, 0x3e8
mov dword [ebp - 0x31c], eax
mov ecx, dword [ebp - 0x31c]
push ecx
mov edx, dword [ebp - 0x170]
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x40eece
push 0
mov eax, dword [ebp - 0x170]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
lea ecx, [ebp - 0x144]
push ecx
mov edx, dword [ebp - 0x170]
push edx
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov eax, dword [ebp - 0x170]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x16c]
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 0x40ef2a
cmp dword [ebp - 0x18], 0
je 0x40ef2a
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 - 0x15c]
push ecx
push 0
mov edx, dword [0x416870]
push edx
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [ebp - 0x184]
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 - 0x1a4]
push ecx
push 0
mov edx, dword [0x416870]
push edx
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [ebp - 0x188]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0x416ca8
mov ecx, dword [ebp - 0x14c]
push ecx
call fcn.0040f010
add esp, 8
mov edx, dword [ebp - 0x14c]
mov dword [ebp - 0x37c], edx
mov eax, dword [ebp - 0x37c]
mov dword [ebp - 0x378], eax
cmp dword [ebp - 0x378], 0
je 0x40efe7
push 1
mov ecx, dword [ebp - 0x378]
call fcn.004106f0
mov dword [ebp - 0x3b4], eax
jmp 0x40eff1
mov dword [ebp - 0x3b4], 0
mov ecx, dword [ebp - 0x144]
push ecx
call dword [sym.imp.KERNEL32.dll_ExitProcess]
jmp 0x40f002
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret