Function at 0x40cad0
Capabilities:
Accept command line arguments
Check for foreground window switch
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
Get file size
Read file on windows
Set current directory
Terminate process
Write and execute a file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x700
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [ebp - 0x178], eax
mov dword [ebp - 0x164], 0
mov dword [ebp - 8], 1
mov dword [ebp - 0x14c], 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov dword [0x416870], eax
push 0x104
push 0x416eb8
push 1
mov eax, dword [ebp - 0x178]
push eax
call dword [sym.imp.USER32.dll_LoadStringA]
push 8
push 0x416c9c
push 0x11
mov ecx, dword [ebp - 0x178]
push ecx
call dword [sym.imp.USER32.dll_LoadStringA]
push 0xc8
lea edx, [ebp - 0x140]
push edx
push 0x416c9c
call fcn.0040bc40
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 - 0x18c], eax
cmp dword [ebp - 0x18c], 0
jne 0x40cb80
jmp 0x40f31d
push 0x79
push 5
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov dword [ebp - 0x180], eax
cmp dword [ebp - 0x180], 0
je 0x40cc08
mov ecx, dword [ebp - 0x180]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x17c], eax
cmp dword [ebp - 0x17c], 0
je 0x40cc08
mov edx, dword [ebp - 0x17c]
push edx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x154], eax
cmp dword [ebp - 0x154], 0
je 0x40cc08
mov eax, dword [ebp - 0x180]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0x1ac], eax
cmp dword [ebp - 0x1ac], 1
jne 0x40cc08
mov ecx, dword [ebp - 0x154]
movzx edx, byte [ecx]
cmp edx, 1
jne 0x40cc08
mov dword [ebp - 8], 0
push 0x79
push 7
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov dword [ebp - 0x180], eax
cmp dword [ebp - 0x180], 0
je 0x40cc89
mov eax, dword [ebp - 0x180]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x17c], eax
cmp dword [ebp - 0x17c], 0
je 0x40cc89
mov ecx, dword [ebp - 0x17c]
push ecx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x154], eax
cmp dword [ebp - 0x154], 0
je 0x40cc89
mov edx, dword [ebp - 0x180]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0x1ac], eax
cmp dword [ebp - 0x1ac], 4
jne 0x40cc89
mov eax, dword [ebp - 0x154]
mov ecx, dword [eax]
mov dword [ebp - 0x14c], 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 - 0x1a8], eax
push 0x79
push 3
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov dword [ebp - 0x180], eax
cmp dword [ebp - 0x180], 0
je 0x40cdbc
mov eax, dword [ebp - 0x180]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x17c], eax
cmp dword [ebp - 0x17c], 0
jne 0x40ccef
push 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov ecx, dword [ebp - 0x17c]
push ecx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x154], eax
cmp dword [ebp - 0x154], 0
jne 0x40cd13
push 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov edx, dword [ebp - 0x180]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0x1b0], eax
cmp dword [ebp - 0x1b0], 0x100
jbe 0x40cd3c
push 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push 0x100
push 0
push 0x416b98
call fcn.0040f4e0
add esp, 0xc
push str.Everstrike_Software
push 0x416b98
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 0x100
push 0x416b98
mov eax, dword [ebp - 0x1a8]
push eax
call fcn.004015d0
add esp, 0xc
mov ecx, dword [ebp - 0x1b0]
mov byte [ecx + 0x416888], 0
mov edx, dword [ebp - 0x1b0]
push edx
mov eax, dword [ebp - 0x154]
push eax
push 0x416888
call fcn.0040f590
add esp, 0xc
mov ecx, dword [ebp - 0x1a8]
push ecx
mov edx, dword [ebp - 0x1b0]
push edx
push 0x416888
call fcn.0040b690
add esp, 0xc
push 0x416888
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
jne 0x40cebb
push 0x104
push 0x416db0
push 0x21
mov eax, dword [ebp - 0x178]
push eax
call dword [sym.imp.USER32.dll_LoadStringA]
cmp dword [ebp - 8], 0
jne 0x40ce0c
push 0
push 0x4114bc
push 0x416db0
call dword [sym.imp.USER32.dll_GetForegroundWindow]
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
jmp 0x40cebb
push 0xfffffffffffffff5
call fcn.00405fc0
add esp, 4
mov dword [ebp - 0x1b4], eax
push 0xfffffffffffffff6
call fcn.00405fc0
add esp, 4
mov dword [ebp - 0x1cc], eax
cmp dword [ebp - 0x1b4], 0xffffffff
je 0x40cebb
push 0x416db0
push 0x416db0
call dword [sym.imp.USER32.dll_CharToOemA]
push 0
lea ecx, [ebp - 0x1ac]
push ecx
push 0x416db0
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
push 0x416db0
mov edx, dword [ebp - 0x1b4]
push edx
call fcn.00406010
add esp, 0x14
mov eax, 1
test eax, eax
je 0x40cebb
lea ecx, [ebp - 0x1ac]
push ecx
push 1
lea edx, [ebp - 0x1c8]
push edx
mov eax, dword [ebp - 0x1cc]
push eax
call dword [sym.imp.KERNEL32.dll_ReadConsoleInputA]
test eax, eax
jne 0x40ce9e
jmp 0x40cebb
movzx ecx, word [ebp - 0x1c8]
cmp ecx, 1
je 0x40ceac
jmp 0x40ce72
cmp dword [ebp - 0x1c4], 0
jne 0x40ceb7
jmp 0x40ce72
jmp 0x40cebb
movsx edx, byte [0x416888]
cmp edx, 0x31
jne 0x40d168
mov byte [ebp - 0x1cd], 1
push 0x20
push 0x85
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov dword [ebp - 0x180], eax
cmp dword [ebp - 0x180], 0
jne 0x40cef8
push 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov eax, dword [ebp - 0x180]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x17c], eax
cmp dword [ebp - 0x17c], 0
jne 0x40cf1e
push 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov ecx, dword [ebp - 0x17c]
push ecx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x154], eax
cmp dword [ebp - 0x154], 0
jne 0x40cf42
push 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov edx, dword [ebp - 0x180]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0x1ac], eax
cmp dword [ebp - 0x1ac], 9
jne 0x40cf81
push 9
push 0x4114c4
mov eax, dword [ebp - 0x154]
push eax
call fcn.0040f520
add esp, 0xc
test eax, eax
jne 0x40cf81
mov byte [ebp - 0x1cd], 0
movzx ecx, byte [ebp - 0x1cd]
test ecx, ecx
je 0x40d168
mov dword [ebp - 0x1d4], 0
lea edx, [ebp - 0x3e0]
push edx
push 0
push 0
push 0x2e
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
mov dword [ebp - 0x3e4], eax
cmp dword [ebp - 0x3e4], 0
jl 0x40d020
push str.EverstrikeExeScript_Prokey.txt
lea eax, [ebp - 0x3e0]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push 0
push 0x80
push 3
push 0
push 3
push SysReAllocString
lea ecx, [ebp - 0x3e0]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x3e8], eax
cmp dword [ebp - 0x3e8], 0xffffffff
je 0x40d020
push 0
mov edx, dword [ebp - 0x3e8]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x1d4], eax
mov eax, dword [ebp - 0x3e8]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x1d4], 0xb7
jae 0x40d168
mov byte [0x416db0], 0
mov byte [ebp - 0x4f8], 0
push 0x104
push 0x416db0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0x416db0
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov dword [ebp - 0x3ec], eax
mov ecx, dword [ebp - 0x3ec]
sub ecx, 1
mov dword [ebp - 0x20], ecx
jmp 0x40d078
mov edx, dword [ebp - 0x20]
sub edx, 1
mov dword [ebp - 0x20], edx
cmp dword [ebp - 0x20], 0
jl 0x40d0a6
mov eax, dword [ebp - 0x20]
movsx ecx, byte [eax + 0x416db0]
cmp ecx, 0x5c
jne 0x40d0a4
mov edx, dword [ebp - 0x20]
add edx, 0x416db1
push edx
lea eax, [ebp - 0x4f8]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
jmp 0x40d06f
push 0x104
lea ecx, [ebp - 0x3e0]
push ecx
push 0x51
mov edx, dword [ebp - 0x178]
push edx
call dword [sym.imp.USER32.dll_LoadStringA]
lea eax, [ebp - 0x4f8]
push eax
lea ecx, [ebp - 0x3e0]
push ecx
push 0x416db0
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
cmp dword [ebp - 8], 0
jne 0x40d0fe
push 0
push str.Warning
push 0x416db0
call dword [sym.imp.USER32.dll_GetForegroundWindow]
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
jmp 0x40d160
push 0xfffffffffffffff5
call fcn.00405fc0
add esp, 4
mov dword [ebp - 0x4fc], eax
push 0xfffffffffffffff6
call fcn.00405fc0
add esp, 4
mov dword [ebp - 0x500], eax
cmp dword [ebp - 0x4fc], 0xffffffff
je 0x40d160
push 0x416db0
push 0x416db0
call dword [sym.imp.USER32.dll_CharToOemA]
push 0
lea edx, [ebp - 0x1ac]
push edx
push 0x416db0
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
push 0x416db0
mov eax, dword [ebp - 0x4fc]
push eax
call fcn.00406010
add esp, 0x14
push 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push 0x79
push 4
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov dword [ebp - 0x180], eax
cmp dword [ebp - 0x180], 0
je 0x40d4f9
mov ecx, dword [ebp - 0x180]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x17c], eax
cmp dword [ebp - 0x17c], 0
jne 0x40d1ad
push 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov edx, dword [ebp - 0x17c]
push edx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x154], eax
cmp dword [ebp - 0x154], 0
jne 0x40d1d1
push 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov eax, dword [ebp - 0x180]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0x1ac], eax
cmp dword [ebp - 0x1ac], 0x10
je 0x40d1f7
push 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push 0x10
mov ecx, dword [ebp - 0x154]
push ecx
lea edx, [ebp - 0x1a4]
push edx
call fcn.0040f590
add esp, 0xc
mov dword [ebp - 0x164], 1
mov dword [ebp - 0x548], 0
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [ebp - 0x544], eax
lea ecx, [ebp - 0x53c]
call fcn.00410950
mov dword [ebp - 0x540], 0
mov byte [ebp - 0x54d], 0x20
mov dword [ebp - 0x504], 0
mov eax, dword [ebp - 0x544]
movsx ecx, byte [eax]
cmp ecx, 0x22
jne 0x40d274
mov byte [ebp - 0x54d], 0x22
mov dword [ebp - 0x540], 1
jmp 0x40d285
mov edx, dword [ebp - 0x540]
add edx, 1
mov dword [ebp - 0x540], edx
mov eax, dword [ebp - 0x544]
add eax, dword [ebp - 0x540]
movsx ecx, byte [eax]
test ecx, ecx
je 0x40d2c5
mov edx, dword [ebp - 0x544]
add edx, dword [ebp - 0x540]
movsx eax, byte [edx]
movsx ecx, byte [ebp - 0x54d]
cmp eax, ecx
jne 0x40d2c3
mov edx, dword [ebp - 0x540]
add edx, 1
mov dword [ebp - 0x540], edx
jmp 0x40d2c5
jmp 0x40d276
mov eax, dword [ebp - 0x544]
add eax, dword [ebp - 0x540]
movsx ecx, byte [eax]
cmp ecx, 0x20
jne 0x40d2ea
mov edx, dword [ebp - 0x540]
add edx, 1
mov dword [ebp - 0x540], edx
jmp 0x40d2c5
mov eax, dword [ebp - 0x544]
add eax, dword [ebp - 0x540]
push eax
lea ecx, [ebp - 0x53c]
call fcn.00407380
lea ecx, [ebp - 0x504]
push ecx
lea edx, [ebp - 0x53c]
push edx
call fcn.004079e0
mov dword [ebp - 0x540], 0
jmp 0x40d330
mov eax, dword [ebp - 0x540]
add eax, 1
mov dword [ebp - 0x540], eax
mov ecx, dword [ebp - 0x540]
cmp ecx, dword [ebp - 0x504]
jge 0x40d4c1
lea edx, [ebp - 0x54c]
push edx
mov eax, dword [ebp - 0x540]
push eax
lea ecx, [ebp - 0x53c]
push ecx
call fcn.00407940
push str._pass
mov edx, dword [ebp - 0x54c]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
jne 0x40d4af
mov eax, dword [ebp - 0x504]
sub eax, 1
cmp dword [ebp - 0x540], eax
jge 0x40d4af
lea ecx, [ebp - 0x5c4]
push ecx
mov edx, dword [ebp - 0x540]
add edx, 1
push edx
lea eax, [ebp - 0x53c]
push eax
call fcn.00407940
mov ecx, dword [ebp - 0x5c4]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, 1
mov dword [ebp - 0x5ac], eax
mov edx, dword [ebp - 0x5ac]
push edx
push 0
mov eax, dword [0x416870]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [ebp - 0x5b0], eax
push 0
push 0
mov ecx, dword [ebp - 0x5ac]
push ecx
mov edx, dword [ebp - 0x5b0]
push edx
push 0xffffffffffffffff
mov eax, dword [ebp - 0x5c4]
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov ecx, dword [ebp - 0x5b0]
push ecx
push 0x416db0
call fcn.0040f620
add esp, 8
mov edx, dword [ebp - 0x5c4]
push edx
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
lea eax, [ebp - 0x5a8]
push eax
call fcn.00403ff0
add esp, 4
push 0x416db0
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
push 0x416db0
lea ecx, [ebp - 0x5a8]
push ecx
call fcn.00404f40
add esp, 0xc
lea edx, [ebp - 0x5c0]
push edx
lea eax, [ebp - 0x5a8]
push eax
call fcn.00405040
add esp, 8
push 0x10
lea ecx, [ebp - 0x5c0]
push ecx
lea edx, [ebp - 0x1a4]
push edx
call fcn.0040f520
add esp, 0xc
test eax, eax
jne 0x40d48a
mov dword [ebp - 0x548], 1
mov eax, dword [ebp - 0x54c]
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov ecx, dword [ebp - 0x5b0]
push ecx
push 0
mov edx, dword [0x416870]
push edx
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x40d4c1
mov eax, dword [ebp - 0x54c]
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
jmp 0x40d321
lea ecx, [ebp - 0x53c]
call fcn.00407730
cmp dword [ebp - 0x548], 0
jne 0x40d4f9
mov ecx, dword [ebp - 8]
push ecx
lea edx, [ebp - 0x1a4]
push edx
push 0x416db0
call fcn.0040b910
add esp, 0xc
test eax, eax
jne 0x40d4f9
push 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push 0x416888
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
jle 0x40d59b
push 0x100
push 0
push 0x416b98
call fcn.0040f4e0
add esp, 0xc
cmp dword [ebp - 0x164], 0
jne 0x40d589
push 0x416888
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov dword [ebp - 0x5c8], eax
mov dword [ebp - 0x5cc], 0
jmp 0x40d555
mov eax, dword [ebp - 0x5cc]
add eax, 1
mov dword [ebp - 0x5cc], eax
mov ecx, dword [ebp - 0x5cc]
cmp ecx, dword [ebp - 0x5c8]
jae 0x40d587
mov edx, dword [ebp - 0x5cc]
movsx eax, byte [edx + 0x416888]
movsx ecx, byte [ebp - 0x5cc]
xor eax, ecx
mov edx, dword [ebp - 0x5cc]
mov byte [edx + 0x416b98], al
jmp 0x40d546
jmp 0x40d599
push 0x416db0
push 0x416b98
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
jmp 0x40d5bf
push 0x100
push 0
push 0x416b98
call fcn.0040f4e0
add esp, 0xc
push 0x411508
push 0x416b98
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 0x100
push 0x416b98
mov eax, dword [ebp - 0x1a8]
push eax
call fcn.004015d0
add esp, 0xc
push 0x79
push 2
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov dword [ebp - 0x180], eax
cmp dword [ebp - 0x180], 0
jne 0x40d611
mov ecx, dword [ebp - 0x1a8]
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 - 0x180]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x17c], eax
cmp dword [ebp - 0x17c], 0
jne 0x40d64d
mov ecx, dword [ebp - 0x1a8]
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 - 0x17c]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x154], eax
cmp dword [ebp - 0x154], 0
jne 0x40d687
mov ecx, dword [ebp - 0x1a8]
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 - 0x180]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x1c]
push ecx
push 0
mov edx, dword [0x416870]
push edx
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [ebp - 0x188], eax
cmp dword [ebp - 0x188], 0
jne 0x40d6e3
mov eax, dword [ebp - 0x1a8]
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 - 0x1c]
sub edx, 4
push edx
mov eax, dword [ebp - 0x154]
add eax, 4
push eax
mov ecx, dword [ebp - 0x188]
push ecx
call fcn.0040f590
add esp, 0xc
mov edx, dword [ebp - 0x1a8]
push edx
mov eax, dword [ebp - 0x1c]
sub eax, 4
push eax
mov ecx, dword [ebp - 0x188]
push ecx
call fcn.0040b690
add esp, 0xc
mov edx, dword [ebp - 0x154]
mov eax, dword [edx]
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x188]
add ecx, dword [ebp - 0x1c]
mov byte [ecx], 0
push 0x79
push 1
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov dword [ebp - 0x180], eax
cmp dword [ebp - 0x180], 0
jne 0x40d785
mov edx, dword [ebp - 0x188]
push edx
push 0
mov eax, dword [0x416870]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov ecx, dword [ebp - 0x1a8]
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 - 0x180]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x17c], eax
cmp dword [ebp - 0x17c], 0
jne 0x40d7d7
mov ecx, dword [ebp - 0x188]
push ecx
push 0
mov edx, dword [0x416870]
push edx
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [ebp - 0x1a8]
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
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x154], eax
cmp dword [ebp - 0x154], 0
jne 0x40d826
mov eax, dword [ebp - 0x188]
push eax
push 0
mov ecx, dword [0x416870]
push ecx
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov edx, dword [ebp - 0x1a8]
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
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0x10], eax
mov edx, dword [ebp - 0x10]
add edx, 1
push edx
push 0
mov eax, dword [0x416870]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [ebp - 0x160], eax
cmp dword [ebp - 0x160], 0
jne 0x40d890
mov ecx, dword [ebp - 0x188]
push ecx
push 0
mov edx, dword [0x416870]
push edx
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [ebp - 0x1a8]
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 - 0x10]
push edx
mov eax, dword [ebp - 0x154]
push eax
mov ecx, dword [ebp - 0x160]
push ecx
call fcn.0040f590
add esp, 0xc
mov edx, dword [ebp - 0x1a8]
push edx
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [ebp - 0x160]
push ecx
call fcn.0040b690
add esp, 0xc
mov edx, dword [ebp - 0x160]
add edx, dword [ebp - 0x10]
mov byte [edx], 0
push 0x20
call fcn.0040f490
add esp, 4
mov dword [ebp - 0x66c], eax
cmp dword [ebp - 0x66c], 0
je 0x40d903
mov eax, dword [ebp - 0x160]
push eax
mov ecx, dword [ebp - 0x66c]
call fcn.00405570
mov dword [ebp - 0x6cc], eax
jmp 0x40d90d
mov dword [ebp - 0x6cc], 0
mov ecx, dword [ebp - 0x6cc]
mov dword [ebp - 0x150], ecx
mov edx, dword [ebp - 0x150]
mov eax, dword [edx + 0x14]
mov dword [ebp - 0x6d0], eax
cmp dword [ebp - 0x6d0], 0
je 0x40d948
cmp dword [ebp - 0x6d0], 1
je 0x40d95d
cmp dword [ebp - 0x6d0], 2
je 0x40d972
jmp 0x40d9fc
push 0x416ca8
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
jmp 0x40d9fc
push 0x416ca8
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
jmp 0x40d9fc
mov ecx, dword [ebp - 0x150]
call fcn.00405870
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov dword [ebp - 0x5d0], eax
cmp dword [ebp - 0x5d0], 0xffffffff
jne 0x40d9a7
push 0
mov ecx, dword [ebp - 0x150]
call fcn.00405870
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov ecx, dword [ebp - 0x150]
call fcn.00405870
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov dword [ebp - 0x5d0], eax
cmp dword [ebp - 0x5d0], 0xffffffff
je 0x40d9ec
mov ecx, dword [ebp - 0x5d0]
and ecx, 0x10
je 0x40d9ec
mov ecx, dword [ebp - 0x150]
call fcn.00405870
push eax
push 0x416ca8
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
jmp 0x40d9fc
push 0x416ca8
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
push 0x416ca8
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov dword [ebp - 0x158], eax
cmp dword [ebp - 0x158], 0
jle 0x40da35
mov edx, dword [ebp - 0x158]
movsx eax, byte [edx + 0x416ca7]
cmp eax, 0x5c
jne 0x40da35
mov ecx, dword [ebp - 0x158]
mov byte [ecx + 0x416ca7], 0
call fcn.0040f3f0
mov dword [ebp - 0x184], eax
mov edx, dword [ebp - 0x184]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
jne 0x40da62
mov ecx, dword [ebp - 0x150]
call fcn.004058a0
mov dword [ebp - 0x184], eax
mov dword [ebp - 0x70], 0
push 0x416c9c
push 0x416eb8
push 0x416ca8
push 0x411514
mov eax, dword [ebp - 0x18c]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x14
push 0
push 0x80
push 3
push 0
push 7
push 0x40000000
mov ecx, dword [ebp - 0x18c]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x15c], eax
cmp dword [ebp - 0x15c], 0xffffffff
jne 0x40dae7
mov dword [ebp - 0x70], 1
push 0
push 0x80
push 1
push 0
push 7
push 0x40000000
mov edx, dword [ebp - 0x18c]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x15c], eax
cmp dword [ebp - 0x15c], 0xffffffff
jne 0x40db3b
push 0x416ca8
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
push 0x416ca8
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov dword [ebp - 0x158], eax
cmp dword [ebp - 0x158], 0
jle 0x40db39
mov eax, dword [ebp - 0x158]
movsx ecx, byte [eax + 0x416ca7]
cmp ecx, 0x5c
jne 0x40db39
mov edx, dword [ebp - 0x158]
mov byte [edx + 0x416ca7], 0
jmp 0x40db5b
mov eax, dword [ebp - 0x15c]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x70], 0
je 0x40db5b
mov ecx, dword [ebp - 0x18c]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov edx, dword [ebp - 0x150]
mov dword [0x4170cc], edx
mov eax, dword [ebp - 0x1a8]
mov dword [0x416874], eax
push 0x104
push 0x416db0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0x416db0
call fcn.0040c920
add esp, 4
push 0x416db0
push str.ES.exe.pathname
lea ecx, [ebp - 0x1c]
push ecx
mov edx, dword [ebp - 0x188]
push edx
call fcn.0040c7f0
add esp, 0x10
mov dword [ebp - 0x188], eax
push 0x416db0
call dword [sym.imp.KERNEL32.dll_lstrlenA]
sub eax, 1
mov dword [ebp - 0x20], eax
jmp 0x40dbd0
mov eax, dword [ebp - 0x20]
sub eax, 1
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jl 0x40dc8e
mov ecx, dword [ebp - 0x20]
movsx edx, byte [ecx + 0x416db0]
cmp edx, 0x5c
jne 0x40dc89
mov eax, dword [ebp - 0x20]
add eax, 0x416db1
push eax
push str.ES.exe.name
lea ecx, [ebp - 0x1c]
push ecx
mov edx, dword [ebp - 0x188]
push edx
call fcn.0040c7f0
add esp, 0x10
mov dword [ebp - 0x188], eax
mov eax, dword [ebp - 0x20]
mov byte [eax + 0x416db0], 0
push 0x411540
push 0x416c9c
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
jne 0x40dc3c
mov ecx, dword [ebp - 0x20]
mov byte [ecx + 0x416daf], 0
push 0x416db0
push str.ES.exe.path
lea edx, [ebp - 0x1c]
push edx
mov eax, dword [ebp - 0x188]
push eax
call fcn.0040c7f0
add esp, 0x10
mov dword [ebp - 0x188], eax
mov ecx, dword [ebp - 0x20]
mov byte [ecx + 0x416db0], 0x5c
push 0x411554
push 0x416c9c
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
jne 0x40dc87
mov edx, dword [ebp - 0x20]
mov byte [edx + 0x416daf], 0x5c
jmp 0x40dc8e
jmp 0x40dbc7
push 0x416db0
call fcn.0040ca00
add esp, 4
push 0x416c9c
push 0x416eb8
push 0x416ca8
push 0x411558
push 0x416db0
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x14
push 0x416db0
call fcn.0040c920
add esp, 4
push 0x416db0
push str.ES.script.pathname
lea eax, [ebp - 0x1c]
push eax
mov ecx, dword [ebp - 0x188]
push ecx
call fcn.0040c7f0
add esp, 0x10
mov dword [ebp - 0x188], eax
push 0x416db0
call fcn.0040ca00
add esp, 4
push 0x416c9c
push 0x416eb8
push 0x411574
push 0x416db0
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
push 0x416db0
call fcn.0040c920
add esp, 4
push 0x416db0
push str.ES.script.name
lea edx, [ebp - 0x1c]
push edx
mov eax, dword [ebp - 0x188]
push eax
call fcn.0040c7f0
add esp, 0x10
mov dword [ebp - 0x188], eax
push 0x416db0
call fcn.0040ca00
add esp, 4
push 0x416ca8
call fcn.0040c920
add esp, 4
push 0x416ca8
push str.ES.res.path
lea ecx, [ebp - 0x1c]
push ecx
mov edx, dword [ebp - 0x188]
push edx
call fcn.0040c7f0
add esp, 0x10
mov dword [ebp - 0x188], eax
push 0x416ca8
push str.ES.script.path
lea eax, [ebp - 0x1c]
push eax
mov ecx, dword [ebp - 0x188]
push ecx
call fcn.0040c7f0
add esp, 0x10
mov dword [ebp - 0x188], eax
push 0x416ca8
call fcn.0040ca00
add esp, 4
mov dword [ebp - 0x148], 0
push 0x104
push 0x416db0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0
push 0x80
push 3
push 0
push 3
push SysReAllocString
push 0x416db0
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x78], eax
push 2
push 0
push 0xfffffffffffffffc
mov edx, dword [ebp - 0x78]
push edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea eax, [ebp - 0x1ac]
push eax
push 4
lea ecx, [ebp - 0x148]
push ecx
mov edx, dword [ebp - 0x78]
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
push 0
push 0
mov eax, dword [ebp - 0x148]
push eax
mov ecx, dword [ebp - 0x78]
push ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp dword [ebp - 0x14c], 0
jne 0x40e43c
mov edx, dword [ebp - 0x150]
mov eax, dword [edx + 0x10]
mov ecx, dword [eax + 8]
mov dword [ebp - 0x5d4], ecx
mov edx, dword [ebp - 0x150]
mov eax, dword [edx + 0x10]
mov ecx, dword [eax]
mov dword [ebp - 0x5dc], ecx
mov dword [ebp - 0x5e4], 0
push 0x208
push 0
mov edx, dword [0x416870]
push edx
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [ebp - 0x5d8], eax
mov dword [ebp - 0x20], 0
jmp 0x40de97
mov eax, dword [ebp - 0x20]
add eax, 1
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 0x20]
cmp ecx, dword [ebp - 0x5d4]
jge 0x40dffe
mov edx, dword [ebp - 0x5dc]
push edx
push 0x416ca8
push 0x4115ac
mov eax, dword [ebp - 0x5d8]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
mov ecx, dword [ebp - 0x5d8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x40dfcc
mov edx, dword [ebp - 0x5dc]
mov eax, dword [edx + 0x104]
mov dword [ebp - 0x5e8], eax
mov ecx, dword [ebp - 0x150]
mov edx, dword [ecx + 0x10]
mov eax, dword [ebp - 0x5dc]
cmp eax, dword [edx]
jne 0x40df19
mov ecx, dword [ebp - 0x150]
mov edx, dword [ecx + 0x10]
mov eax, dword [ebp - 0x5dc]
mov ecx, dword [eax + 0x104]
mov dword [edx], ecx
mov edx, dword [ebp - 0x150]
mov eax, dword [edx + 0x10]
mov ecx, dword [ebp - 0x5dc]
cmp ecx, dword [eax + 4]
jne 0x40df3f
mov edx, dword [ebp - 0x150]
mov eax, dword [edx + 0x10]
mov ecx, dword [ebp - 0x5e4]
mov dword [eax + 4], ecx
cmp dword [ebp - 0x5e4], 0
je 0x40df60
mov edx, dword [ebp - 0x5e4]
mov eax, dword [ebp - 0x5dc]
mov ecx, dword [eax + 0x104]
mov dword [edx + 0x104], ecx
mov edx, dword [ebp - 0x150]
mov eax, dword [edx + 0x10]
mov ecx, dword [eax + 8]
sub ecx, 1
mov edx, dword [ebp - 0x150]
mov eax, dword [edx + 0x10]
mov dword [eax + 8], ecx
mov ecx, dword [ebp - 0x5dc]
mov dword [ebp - 0x674], ecx
mov edx, dword [ebp - 0x674]
mov dword [ebp - 0x670], edx
cmp dword [ebp - 0x670], 0
je 0x40dfb1
push 1
mov ecx, dword [ebp - 0x670]
call fcn.00405d60
mov dword [ebp - 0x6d4], eax
jmp 0x40dfbb
mov dword [ebp - 0x6d4], 0
mov eax, dword [ebp - 0x5e8]
mov dword [ebp - 0x5dc], eax
jmp 0x40de8e
mov ecx, dword [ebp - 0x5dc]
mov dword [ebp - 0x5e4], ecx
mov edx, dword [ebp - 0x5dc]
mov eax, dword [edx + 0x104]
mov dword [ebp - 0x5dc], eax
push 0
mov ecx, dword [ebp - 0x5d8]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
jmp 0x40de8e
mov dword [ebp - 0x5e0], 0
mov edx, dword [ebp - 0x150]
mov eax, dword [edx + 0xc]
mov ecx, dword [eax + 8]
mov dword [ebp - 0x5d4], ecx
mov edx, dword [ebp - 0x150]
mov eax, dword [edx + 0xc]
mov ecx, dword [eax]
mov dword [ebp - 0x5dc], ecx
mov dword [ebp - 0x5e4], 0
mov dword [ebp - 0x20], 0
jmp 0x40e047
mov edx, dword [ebp - 0x20]
add edx, 1
mov dword [ebp - 0x20], edx
mov eax, dword [ebp - 0x20]
cmp eax, dword [ebp - 0x5d4]
jge 0x40e408
mov ecx, dword [ebp - 0x5dc]
movsx edx, byte [ecx]
test edx, edx
jne 0x40e083
mov eax, dword [ebp - 0x5dc]
mov dword [ebp - 0x5e4], eax
mov ecx, dword [ebp - 0x5dc]
mov edx, dword [ecx + 0x104]
mov dword [ebp - 0x5dc], edx
jmp 0x40e03e
mov dword [ebp - 0x5ec], 0
push 0xa
mov eax, dword [ebp - 0x20]
add eax, 1
movzx ecx, ax
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov dword [ebp - 0x180], eax
cmp dword [ebp - 0x180], 0
je 0x40e0ff
mov edx, dword [ebp - 0x180]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x17c], eax
cmp dword [ebp - 0x17c], 0
je 0x40e0ff
mov eax, dword [ebp - 0x17c]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x154], eax
cmp dword [ebp - 0x154], 0
je 0x40e0ff
mov ecx, dword [ebp - 0x180]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0x5ec], eax
cmp dword [ebp - 0x5ec], 4
je 0x40e10d
jmp 0x40e03e
push 4
mov edx, dword [ebp - 0x154]
push edx
lea eax, [ebp - 0x5ec]
push eax
call fcn.0040f590
add esp, 0xc
mov ecx, dword [ebp - 0x5dc]
push ecx
push 0x416ca8
push 0x4115b4
mov edx, dword [ebp - 0x5d8]
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
mov eax, dword [ebp - 0x5d8]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x40e24b
mov ecx, dword [ebp - 0x5dc]
mov edx, dword [ecx + 0x104]
mov dword [ebp - 0x5f0], edx
mov eax, dword [ebp - 0x150]
mov ecx, dword [eax + 0xc]
mov edx, dword [ebp - 0x5dc]
cmp edx, dword [ecx]
jne 0x40e198
mov eax, dword [ebp - 0x150]
mov ecx, dword [eax + 0xc]
mov edx, dword [ebp - 0x5dc]
mov eax, dword [edx + 0x104]
mov dword [ecx], eax
mov ecx, dword [ebp - 0x150]
mov edx, dword [ecx + 0xc]
mov eax, dword [ebp - 0x5dc]
cmp eax, dword [edx + 4]
jne 0x40e1be
mov ecx, dword [ebp - 0x150]
mov edx, dword [ecx + 0xc]
mov eax, dword [ebp - 0x5e4]
mov dword [edx + 4], eax
cmp dword [ebp - 0x5e4], 0
je 0x40e1df
mov ecx, dword [ebp - 0x5e4]
mov edx, dword [ebp - 0x5dc]
mov eax, dword [edx + 0x104]
mov dword [ecx + 0x104], eax
mov ecx, dword [ebp - 0x150]
mov edx, dword [ecx + 0xc]
mov eax, dword [edx + 8]
sub eax, 1
mov ecx, dword [ebp - 0x150]
mov edx, dword [ecx + 0xc]
mov dword [edx + 8], eax
mov eax, dword [ebp - 0x5dc]
mov dword [ebp - 0x67c], eax
mov ecx, dword [ebp - 0x67c]
mov dword [ebp - 0x678], ecx
cmp dword [ebp - 0x678], 0
je 0x40e230
push 1
mov ecx, dword [ebp - 0x678]
call fcn.00405d60
mov dword [ebp - 0x6d8], eax
jmp 0x40e23a
mov dword [ebp - 0x6d8], 0
mov edx, dword [ebp - 0x5f0]
mov dword [ebp - 0x5dc], edx
jmp 0x40e03e
mov eax, dword [ebp - 0x5dc]
mov dword [ebp - 0x5e4], eax
mov ecx, dword [ebp - 0x5dc]
mov edx, dword [ecx + 0x104]
mov dword [ebp - 0x5dc], edx
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
mov eax, dword [ebp - 0x5d8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x15c], eax
cmp dword [ebp - 0x15c], 0xffffffff
je 0x40e403
cmp dword [ebp - 0x5ec], 0
je 0x40e3f6
mov ecx, dword [ebp - 0x5ec]
shr ecx, 0x14
mov dword [ebp - 0x5f4], ecx
mov edx, dword [ebp - 0x5f4]
shl edx, 0xa
shl edx, 0xa
mov eax, dword [ebp - 0x5ec]
sub eax, edx
mov dword [ebp - 0x5fc], eax
je 0x40e2e2
mov ecx, dword [ebp - 0x5f4]
add ecx, 1
mov dword [ebp - 0x5f4], ecx
cmp dword [ebp - 0x5e0], 0
jne 0x40e305
push 0x100000
push 0
mov edx, dword [0x416870]
push edx
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [ebp - 0x5e0], eax
mov dword [ebp - 0x604], 0
jmp 0x40e320
mov eax, dword [ebp - 0x604]
add eax, 1
mov dword [ebp - 0x604], eax
mov ecx, dword [ebp - 0x604]
cmp ecx, dword [ebp - 0x5f4]
jae 0x40e3f6
mov edx, dword [ebp - 0x5f4]
sub edx, 1
cmp dword [ebp - 0x604], edx
jae 0x40e34f
mov dword [ebp - 0x5f8], 0x100000
jmp 0x40e35b
mov eax, dword [ebp - 0x5fc]
mov dword [ebp - 0x5f8], eax
mov ecx, dword [ebp - 0x5f8]
mov dword [ebp - 0x600], ecx
mov eax, dword [ebp - 0x600]
xor edx, edx
mov ecx, 0x10
div ecx
test edx, edx
je 0x40e38f
mov edx, dword [ebp - 0x600]
shr edx, 4
add edx, 1
shl edx, 4
mov dword [ebp - 0x600], edx
push 0
lea eax, [ebp - 0x1ac]
push eax
mov ecx, dword [ebp - 0x600]
push ecx
mov edx, dword [ebp - 0x5e0]
push edx
mov eax, dword [ebp - 0x78]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [ebp - 0x1a8]
push ecx
mov edx, dword [ebp - 0x600]
push edx
mov eax, dword [ebp - 0x5e0]
push eax
call fcn.0040b690
add esp, 0xc
push 0
lea ecx, [ebp - 0x1ac]
push ecx
mov edx, dword [ebp - 0x5f8]
push edx
mov eax, dword [ebp - 0x5e0]
push eax
mov ecx, dword [ebp - 0x15c]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x40e311
mov edx, dword [ebp - 0x15c]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x40e03e
cmp dword [ebp - 0x5e0], 0
je 0x40e427
mov eax, dword [ebp - 0x5e0]
push eax
push 0
mov ecx, dword [0x416870]
push ecx
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov edx, dword [ebp - 0x5d8]
push edx
push 0
mov eax, dword [0x416870]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov ecx, dword [ebp - 0x78]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x4115bc
push 0x416c9c
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x40e55b
mov edx, dword [ebp - 0x150]
mov eax, dword [edx + 0x18]
and eax, 0x20
je 0x40e55b
push 0x416ca8
call fcn.0040b630
add esp, 4
push 0x416ca8
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
push 0x416ca8
call fcn.0040b660
add esp, 4
mov ecx, dword [ebp - 0x150]
mov edx, dword [ecx + 0x18]
and edx, 0x10
setne al
movzx ecx, al
push ecx
mov edx, dword [ebp - 0x184]
push edx
mov eax, dword [ebp - 0x188]
push eax
call fcn.0040bda0
add esp, 0xc
mov ecx, dword [ebp - 0x160]
push ecx
push 0
mov edx, dword [0x416870]
push edx
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [ebp - 0x188]
push eax
push 0
mov ecx, dword [0x416870]
push ecx
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov edx, dword [ebp - 0x1a8]
push edx
push 0
mov eax, dword [0x416870]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
push 0x416ca8
mov ecx, dword [ebp - 0x150]
push ecx
call fcn.0040f330
add esp, 8
mov edx, dword [ebp - 0x150]
mov dword [ebp - 0x684], edx
mov eax, dword [ebp - 0x684]
mov dword [ebp - 0x680], eax
cmp dword [ebp - 0x680], 0
je 0x40e549
push 1
mov ecx, dword [ebp - 0x680]
call fcn.00410a10
mov dword [ebp - 0x6dc], eax
jmp 0x40e553
mov dword [ebp - 0x6dc], 0
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov ecx, dword [ebp - 0x150]
mov edx, dword [ecx + 0x18]
and edx, 0x20
je 0x40eb33
mov dword [ebp - 0x628], 0
mov dword [ebp - 0x624], 0
xor eax, eax
mov word [ebp - 0x648], ax
xor ecx, ecx
mov dword [ebp - 0x646], ecx
mov dword [ebp - 0x642], ecx
mov dword [ebp - 0x63e], ecx
mov dword [ebp - 0x63a], ecx
mov dword [ebp - 0x636], ecx
mov dword [ebp - 0x632], ecx
mov dword [ebp - 0x62e], ecx
mov word [ebp - 0x62a], cx
push 0x416ca8
call fcn.0040b630
add esp, 4
push 0x416ca8
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
push 0x416ca8
call fcn.0040b660
add esp, 4
cmp dword [ebp - 4], 0
je 0x40e601
lea edx, [ebp - 0x61c]
push edx
lea eax, [ebp - 0x140]
push eax
call dword [sym.imp.ole32.dll_CLSIDFromProgID]
jmp 0x40e69e
mov ecx, dword [ebp - 0x160]
push ecx
push 0
mov edx, dword [0x416870]
push edx
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [ebp - 0x188]
push eax
push 0
mov ecx, dword [0x416870]
push ecx
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov edx, dword [ebp - 0x1a8]
push edx
push 0
mov eax, dword [0x416870]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
push 0x416ca8
mov ecx, dword [ebp - 0x150]
push ecx
call fcn.0040f330
add esp, 8
mov edx, dword [ebp - 0x150]
mov dword [ebp - 0x68c], edx
mov eax, dword [ebp - 0x68c]
mov dword [ebp - 0x688], eax
cmp dword [ebp - 0x688], 0
je 0x40e68c
push 1
mov ecx, dword [ebp - 0x688]
call fcn.00410a10
mov dword [ebp - 0x6e0], eax
jmp 0x40e696
mov dword [ebp - 0x6e0], 0
push 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
push 0x4cc
call fcn.0040f490
add esp, 4
mov dword [ebp - 0x690], eax
cmp dword [ebp - 0x690], 0
je 0x40e6d5
mov ecx, dword [ebp - 0x690]
call fcn.00410a40
mov dword [ebp - 0x6e4], eax
jmp 0x40e6df
mov dword [ebp - 0x6e4], 0
mov ecx, dword [ebp - 0x6e4]
mov dword [ebp - 0x60c], ecx
mov edx, dword [ebp - 0x184]
push edx
push 0x416c9c
push 0x416eb8
push 0x416ca8
mov eax, dword [ebp - 0x150]
push eax
mov ecx, dword [ebp - 0x60c]
call fcn.004091a0
mov dword [ebp - 0x64c], eax
cmp dword [ebp - 0x64c], 0
je 0x40e803
mov ecx, dword [ebp - 0x60c]
mov dword [ebp - 0x698], ecx
mov edx, dword [ebp - 0x698]
mov dword [ebp - 0x694], edx
cmp dword [ebp - 0x694], 0
je 0x40e75c
push 1
mov ecx, dword [ebp - 0x694]
call fcn.00410ab0
mov dword [ebp - 0x6e8], eax
jmp 0x40e766
mov dword [ebp - 0x6e8], 0
mov eax, dword [ebp - 0x160]
push eax
push 0
mov ecx, dword [0x416870]
push ecx
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov edx, dword [ebp - 0x188]
push edx
push 0
mov eax, dword [0x416870]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov ecx, dword [ebp - 0x1a8]
push ecx
push 0
mov edx, dword [0x416870]
push edx
call dword [sym.imp.KERNEL32.dll_HeapFree]
push 0x416ca8
mov eax, dword [ebp - 0x150]
push eax
call fcn.0040f330
add esp, 8
mov ecx, dword [ebp - 0x150]
mov dword [ebp - 0x6a0], ecx
mov edx, dword [ebp - 0x6a0]
mov dword [ebp - 0x69c], edx
cmp dword [ebp - 0x69c], 0
je 0x40e7f1
push 1
mov ecx, dword [ebp - 0x69c]
call fcn.00410a10
mov dword [ebp - 0x6ec], eax
jmp 0x40e7fb
mov dword [ebp - 0x6ec], 0
push 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]
lea eax, [ebp - 0x628]
push eax
push 0x411ab0
push 1
push 0
lea ecx, [ebp - 0x61c]
push ecx
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov dword [ebp - 0x64c], eax
mov edx, dword [ebp - 0x60c]
mov eax, dword [ebp - 0x628]
mov dword [edx + 0x4a4], eax
lea ecx, [ebp - 0x624]
push ecx
push 0x411ac0
mov edx, dword [ebp - 0x628]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x628]
push ecx
mov edx, dword [eax]
call edx
mov dword [ebp - 0x64c], 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 - 0x608], eax
mov eax, dword [ebp - 0x1c]
add eax, 1
push eax
mov ecx, dword [ebp - 0x608]
push ecx
push 0xffffffffffffffff
mov edx, dword [ebp - 0x188]
push edx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push 0xc
call fcn.0040f490
add esp, 4
mov dword [ebp - 0x6a4], eax
cmp dword [ebp - 0x6a4], 0
je 0x40e8c7
mov ecx, dword [ebp - 0x6a4]
call fcn.00410ae0
mov dword [ebp - 0x6f0], eax
jmp 0x40e8d1
mov dword [ebp - 0x6f0], 0
mov eax, dword [ebp - 0x6f0]
mov dword [ebp - 0x620], eax
mov ecx, dword [ebp - 0x620]
mov edx, dword [ebp - 0x60c]
mov dword [ecx + 8], edx
mov eax, dword [ebp - 0x620]
push eax
mov ecx, dword [ebp - 0x628]
mov edx, dword [ecx]
mov eax, dword [ebp - 0x628]
push eax
mov ecx, dword [edx + 0xc]
call ecx
mov dword [ebp - 0x64c], eax
mov edx, dword [ebp - 0x624]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x624]
push ecx
mov edx, dword [eax + 0xc]
call edx
mov dword [ebp - 0x64c], eax
push 6
push str.WScript
mov eax, dword [ebp - 0x628]
mov ecx, dword [eax]
mov edx, dword [ebp - 0x628]
push edx
mov eax, dword [ecx + 0x20]
call eax
lea ecx, [ebp - 0x648]
push ecx
push 0
push 0
push 0
push 0
push 0
push 0
push 0
mov edx, dword [ebp - 0x608]
push edx
mov eax, dword [ebp - 0x624]
mov ecx, dword [eax]
mov edx, dword [ebp - 0x624]
push edx
mov eax, dword [ecx + 0x14]
call eax
mov dword [ebp - 0x64c], eax
mov ecx, dword [ebp - 0x150]
cmp dword [ecx + 0x1c], 0
je 0x40e9a1
push 0
push 0
mov edx, dword [ebp - 0x150]
mov eax, dword [edx + 0x1c]
push eax
push 0x40bd70
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push 2
mov ecx, dword [ebp - 0x628]
mov edx, dword [ecx]
mov eax, dword [ebp - 0x628]
push eax
mov ecx, dword [edx + 0x14]
call ecx
mov dword [ebp - 0x64c], eax
mov edx, dword [ebp - 0x608]
push edx
push 0
mov eax, dword [0x416870]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov ecx, dword [ebp - 0x628]
mov edx, dword [ecx]
mov eax, dword [ebp - 0x628]
push eax
mov ecx, dword [edx + 0x1c]
call ecx
mov edx, dword [ebp - 0x624]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x624]
push ecx
mov edx, dword [eax + 8]
call edx
mov eax, dword [ebp - 0x628]
mov ecx, dword [eax]
mov edx, dword [ebp - 0x628]
push edx
mov eax, dword [ecx + 8]
call eax
mov ecx, dword [ebp - 0x620]
mov dword [ebp - 0x6a8], ecx
mov edx, dword [ebp - 0x6a8]
push edx
call fcn.0040f4c0
add esp, 4
mov ecx, dword [ebp - 0x60c]
call fcn.004094c0
mov eax, dword [ebp - 0x60c]
mov dword [ebp - 0x6b0], eax
mov ecx, dword [ebp - 0x6b0]
mov dword [ebp - 0x6ac], ecx
cmp dword [ebp - 0x6ac], 0
je 0x40ea6a
push 1
mov ecx, dword [ebp - 0x6ac]
call fcn.00410ab0
mov dword [ebp - 0x6f4], eax
jmp 0x40ea74
mov dword [ebp - 0x6f4], 0
mov edx, dword [0x416880]
mov dword [ebp - 0x190], edx
mov eax, dword [ebp - 0x160]
push eax
push 0
mov ecx, dword [0x416870]
push ecx
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov edx, dword [ebp - 0x188]
push edx
push 0
mov eax, dword [0x416870]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov ecx, dword [ebp - 0x1a8]
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 - 0x150]
push eax
call fcn.0040f330
add esp, 8
mov ecx, dword [ebp - 0x150]
mov dword [ebp - 0x6b8], ecx
mov edx, dword [ebp - 0x6b8]
mov dword [ebp - 0x6b4], edx
cmp dword [ebp - 0x6b4], 0
je 0x40eb16
push 1
mov ecx, dword [ebp - 0x6b4]
call fcn.00410a10
mov dword [ebp - 0x6f8], eax
jmp 0x40eb20
mov dword [ebp - 0x6f8], 0
call dword [sym.imp.ole32.dll_CoUninitialize]
mov eax, dword [ebp - 0x190]
push eax
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push 0x416c9c
push 0x416eb8
push 0x416ca8
push str._s_s_s
mov ecx, dword [ebp - 0x18c]
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 - 0x18c]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x15c], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x190], eax
cmp dword [ebp - 0x15c], 0xffffffff
jne 0x40ebf3
cmp dword [ebp - 0x190], 0xb7
je 0x40eba6
cmp dword [ebp - 0x190], 0x50
jne 0x40ebf3
push 0x416c9c
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
push 0x416ca8
push str._s_d_s
mov eax, dword [ebp - 0x18c]
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 - 0x18c]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x15c], eax
jmp 0x40eb88
cmp dword [ebp - 0x15c], 0xffffffff
jne 0x40ec9d
mov edx, dword [ebp - 0x160]
push edx
push 0
mov eax, dword [0x416870]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov ecx, dword [ebp - 0x188]
push ecx
push 0
mov edx, dword [0x416870]
push edx
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [ebp - 0x1a8]
push eax
push 0
mov ecx, dword [0x416870]
push ecx
call dword [sym.imp.KERNEL32.dll_HeapFree]
push 0x416ca8
mov edx, dword [ebp - 0x150]
push edx
call fcn.0040f330
add esp, 8
mov eax, dword [ebp - 0x150]
mov dword [ebp - 0x6c0], eax
mov ecx, dword [ebp - 0x6c0]
mov dword [ebp - 0x6bc], ecx
cmp dword [ebp - 0x6bc], 0
je 0x40ec8b
push 1
mov ecx, dword [ebp - 0x6bc]
call fcn.00410a10
mov dword [ebp - 0x6fc], eax
jmp 0x40ec95
mov dword [ebp - 0x6fc], 0
push 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push 0x4115e4
push 0x416c9c
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x40ede5
mov dword [ebp - 0x65c], str.___________ExeScript_Options_Begin______
mov dword [ebp - 0x650], str.______ExeScript_Options_End__________
mov edx, dword [ebp - 0x1c]
mov dword [ebp - 0x654], edx
mov eax, dword [ebp - 0x65c]
push eax
mov ecx, dword [ebp - 0x188]
push ecx
call fcn.0040f8d0
add esp, 8
mov dword [ebp - 0x660], eax
cmp dword [ebp - 0x660], 0
je 0x40ed2d
mov edx, dword [ebp - 0x660]
sub edx, dword [ebp - 0x188]
mov dword [ebp - 0x658], edx
push 0
lea eax, [ebp - 0x1ac]
push eax
mov ecx, dword [ebp - 0x658]
push ecx
mov edx, dword [ebp - 0x188]
push edx
mov eax, dword [ebp - 0x15c]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebp - 0x650]
push ecx
mov edx, dword [ebp - 0x188]
push edx
call fcn.0040f8d0
add esp, 8
mov dword [ebp - 0x660], eax
cmp dword [ebp - 0x660], 0
je 0x40edb3
mov eax, dword [ebp - 0x660]
sub eax, dword [ebp - 0x188]
mov dword [ebp - 0x658], eax
mov ecx, dword [ebp - 0x654]
sub ecx, dword [ebp - 0x658]
mov dword [ebp - 0x654], ecx
mov edx, dword [ebp - 0x650]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
add eax, 2
mov ecx, dword [ebp - 0x654]
sub ecx, eax
mov dword [ebp - 0x654], ecx
mov edx, dword [ebp - 0x650]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [ebp - 0x660]
lea edx, [ecx + eax + 2]
mov dword [ebp - 0x660], edx
jmp 0x40edbf
mov eax, dword [ebp - 0x188]
mov dword [ebp - 0x660], eax
push 0
lea ecx, [ebp - 0x1ac]
push ecx
mov edx, dword [ebp - 0x654]
push edx
mov eax, dword [ebp - 0x660]
push eax
mov ecx, dword [ebp - 0x15c]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x40ee06
push 0
lea edx, [ebp - 0x1ac]
push edx
mov eax, dword [ebp - 0x1c]
push eax
mov ecx, dword [ebp - 0x188]
push ecx
mov edx, dword [ebp - 0x15c]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [ebp - 0x15c]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x10
push 0
lea ecx, [ebp - 0x174]
push ecx
call fcn.0040f4e0
add esp, 0xc
push 0x44
push 0
lea edx, [ebp - 0x68]
push edx
call fcn.0040f4e0
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 0x40eebe
push str..cmd
push 0x416c9c
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x40eebe
push 0x411650
push 0x416c9c
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x40ef0a
mov eax, dword [ebp - 0x150]
mov ecx, dword [eax + 0x18]
and ecx, 0x10
je 0x40ef0a
call dword [sym.imp.KERNEL32.dll_GetVersion]
mov dword [ebp - 0x664], eax
push str.___NUL
mov edx, dword [ebp - 0x184]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
cmp dword [ebp - 0x664], 0x80000000
jb 0x40eefe
xor eax, eax
mov word [ebp - 0x38], ax
jmp 0x40ef0a
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 0x40ef4a
push str..wsf
push 0x416c9c
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x40ef4a
push str..wsh
push 0x416c9c
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x40efa4
mov ecx, dword [ebp - 0x150]
mov edx, dword [ecx + 0x18]
and edx, 8
je 0x40ef7e
mov eax, dword [ebp - 0x150]
mov ecx, dword [eax + 0x18]
and ecx, 0x10
je 0x40ef72
mov dword [ebp - 0x194], str.wscript.exe__B
jmp 0x40ef7c
mov dword [ebp - 0x194], str.wscript.exe
jmp 0x40efa2
mov edx, dword [ebp - 0x150]
mov eax, dword [edx + 0x18]
and eax, 0x10
je 0x40ef98
mov dword [ebp - 0x194], str.cscript.exe__B
jmp 0x40efa2
mov dword [ebp - 0x194], str.cscript.exe
jmp 0x40effb
push str..hta
push 0x416c9c
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x40efc4
mov dword [ebp - 0x194], str.mshta.exe
jmp 0x40effb
push str..ps1
push 0x416c9c
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x40eff1
push 0x416990
call fcn.00405dc0
add esp, 4
mov dword [ebp - 0x194], 0x416990
jmp 0x40effb
mov dword [ebp - 0x194], 0
cmp dword [ebp - 0x194], 0
je 0x40f0b3
mov ecx, dword [ebp - 0x194]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
mov edx, dword [ebp - 0x18c]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
add esi, eax
mov eax, dword [ebp - 0x184]
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
mov eax, dword [ebp - 0x184]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
jle 0x40f08e
mov ecx, dword [ebp - 0x18c]
push ecx
mov edx, dword [ebp - 0x194]
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 - 0x184]
push ecx
mov edx, dword [ebp - 0x74]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
jmp 0x40f0ae
mov eax, dword [ebp - 0x18c]
push eax
mov ecx, dword [ebp - 0x194]
push ecx
push str._s___s_
mov edx, dword [ebp - 0x74]
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
jmp 0x40f142
mov eax, dword [ebp - 0x18c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
mov ecx, dword [ebp - 0x184]
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 - 0x184]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
jle 0x40f129
mov edx, dword [ebp - 0x184]
push edx
mov eax, dword [ebp - 0x18c]
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 - 0x184]
push edx
mov eax, dword [ebp - 0x74]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
jmp 0x40f142
mov ecx, dword [ebp - 0x18c]
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.0040b630
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 - 0x174]
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 0x40f21b
mov dword [ebp - 0x668], 0xffffffff
mov ecx, dword [ebp - 0x150]
cmp dword [ecx + 0x1c], 0
je 0x40f1c3
mov edx, dword [ebp - 0x150]
mov eax, dword [edx + 0x1c]
imul eax, eax, 0x3e8
mov dword [ebp - 0x668], eax
mov ecx, dword [ebp - 0x668]
push ecx
mov edx, dword [ebp - 0x174]
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x40f1ed
push 0
mov eax, dword [ebp - 0x174]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
lea ecx, [ebp - 0x144]
push ecx
mov edx, dword [ebp - 0x174]
push edx
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov eax, dword [ebp - 0x174]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x170]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 0x18]
push edx
call fcn.0040b660
add esp, 4
cmp dword [ebp - 0x18], 0x416ca8
je 0x40f249
cmp dword [ebp - 0x18], 0
je 0x40f249
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 - 0x160]
push ecx
push 0
mov edx, dword [0x416870]
push edx
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [ebp - 0x188]
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 - 0x1a8]
push ecx
push 0
mov edx, dword [0x416870]
push edx
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [ebp - 0x18c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0x416ca8
mov ecx, dword [ebp - 0x150]
push ecx
call fcn.0040f330
add esp, 8
mov edx, dword [ebp - 0x150]
mov dword [ebp - 0x6c8], edx
mov eax, dword [ebp - 0x6c8]
mov dword [ebp - 0x6c4], eax
cmp dword [ebp - 0x6c4], 0
je 0x40f306
push 1
mov ecx, dword [ebp - 0x6c4]
call fcn.00410a10
mov dword [ebp - 0x700], eax
jmp 0x40f310
mov dword [ebp - 0x700], 0
mov ecx, dword [ebp - 0x144]
push ecx
call dword [sym.imp.KERNEL32.dll_ExitProcess]
jmp 0x40f321
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret