Function at 0x40cb20
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
Query environment variable
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.0040bcc0
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 0x40cbd0
jmp 0x40f386
push 0x79
push 5
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov dword [ebp - 0x180], eax
cmp dword [ebp - 0x180], 0
je 0x40cc58
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 0x40cc58
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 0x40cc58
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 0x40cc58
mov ecx, dword [ebp - 0x154]
movzx edx, byte [ecx]
cmp edx, 1
jne 0x40cc58
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 0x40ccd9
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 0x40ccd9
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 0x40ccd9
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 0x40ccd9
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 0x40ce0c
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 0x40cd3f
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 0x40cd63
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 0x40cd8c
push 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push 0x100
push 0
push 0x416b98
call fcn.0040f550
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.0040f600
add esp, 0xc
mov ecx, dword [ebp - 0x1a8]
push ecx
mov edx, dword [ebp - 0x1b0]
push edx
push 0x416888
call fcn.0040b710
add esp, 0xc
push 0x416888
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
jne 0x40cf0b
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 0x40ce5c
push 0
push 0x4114c4
push 0x416db0
call dword [sym.imp.USER32.dll_GetForegroundWindow]
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
jmp 0x40cf0b
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 0x40cf0b
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 0x40cf0b
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 0x40ceee
jmp 0x40cf0b
movzx ecx, word [ebp - 0x1c8]
cmp ecx, 1
je 0x40cefc
jmp 0x40cec2
cmp dword [ebp - 0x1c4], 0
jne 0x40cf07
jmp 0x40cec2
jmp 0x40cf0b
movsx edx, byte [0x416888]
cmp edx, 0x31
jne 0x40d1b8
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 0x40cf48
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 0x40cf6e
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 0x40cf92
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 0x40cfd1
push 9
push 0x4114cc
mov eax, dword [ebp - 0x154]
push eax
call fcn.0040f590
add esp, 0xc
test eax, eax
jne 0x40cfd1
mov byte [ebp - 0x1cd], 0
movzx ecx, byte [ebp - 0x1cd]
test ecx, ecx
je 0x40d1b8
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 0x40d070
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 0x40d070
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 0x40d1b8
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 0x40d0c8
mov edx, dword [ebp - 0x20]
sub edx, 1
mov dword [ebp - 0x20], edx
cmp dword [ebp - 0x20], 0
jl 0x40d0f6
mov eax, dword [ebp - 0x20]
movsx ecx, byte [eax + 0x416db0]
cmp ecx, 0x5c
jne 0x40d0f4
mov edx, dword [ebp - 0x20]
add edx, 0x416db1
push edx
lea eax, [ebp - 0x4f8]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
jmp 0x40d0bf
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 0x40d14e
push 0
push str.Warning
push 0x416db0
call dword [sym.imp.USER32.dll_GetForegroundWindow]
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
jmp 0x40d1b0
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 0x40d1b0
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 0x40d549
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 0x40d1fd
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 0x40d221
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 0x40d247
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.0040f600
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.004109c0
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 0x40d2c4
mov byte [ebp - 0x54d], 0x22
mov dword [ebp - 0x540], 1
jmp 0x40d2d5
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 0x40d315
mov edx, dword [ebp - 0x544]
add edx, dword [ebp - 0x540]
movsx eax, byte [edx]
movsx ecx, byte [ebp - 0x54d]
cmp eax, ecx
jne 0x40d313
mov edx, dword [ebp - 0x540]
add edx, 1
mov dword [ebp - 0x540], edx
jmp 0x40d315
jmp 0x40d2c6
mov eax, dword [ebp - 0x544]
add eax, dword [ebp - 0x540]
movsx ecx, byte [eax]
cmp ecx, 0x20
jne 0x40d33a
mov edx, dword [ebp - 0x540]
add edx, 1
mov dword [ebp - 0x540], edx
jmp 0x40d315
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 0x40d380
mov eax, dword [ebp - 0x540]
add eax, 1
mov dword [ebp - 0x540], eax
mov ecx, dword [ebp - 0x540]
cmp ecx, dword [ebp - 0x504]
jge 0x40d511
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 0x40d4ff
mov eax, dword [ebp - 0x504]
sub eax, 1
cmp dword [ebp - 0x540], eax
jge 0x40d4ff
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.0040f690
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.0040f590
add esp, 0xc
test eax, eax
jne 0x40d4da
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 0x40d511
mov eax, dword [ebp - 0x54c]
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
jmp 0x40d371
lea ecx, [ebp - 0x53c]
call fcn.00407730
cmp dword [ebp - 0x548], 0
jne 0x40d549
mov ecx, dword [ebp - 8]
push ecx
lea edx, [ebp - 0x1a4]
push edx
push 0x416db0
call fcn.0040b990
add esp, 0xc
test eax, eax
jne 0x40d549
push 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push 0x416888
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
jle 0x40d5eb
push 0x100
push 0
push 0x416b98
call fcn.0040f550
add esp, 0xc
cmp dword [ebp - 0x164], 0
jne 0x40d5d9
push 0x416888
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov dword [ebp - 0x5c8], eax
mov dword [ebp - 0x5cc], 0
jmp 0x40d5a5
mov eax, dword [ebp - 0x5cc]
add eax, 1
mov dword [ebp - 0x5cc], eax
mov ecx, dword [ebp - 0x5cc]
cmp ecx, dword [ebp - 0x5c8]
jae 0x40d5d7
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 0x40d596
jmp 0x40d5e9
push 0x416db0
push 0x416b98
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
jmp 0x40d60f
push 0x100
push 0
push 0x416b98
call fcn.0040f550
add esp, 0xc
push 0x411510
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 0x40d661
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 0x40d69d
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 0x40d6d7
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 0x40d733
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.0040f600
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.0040b710
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 0x40d7d5
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 0x40d827
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 0x40d876
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 0x40d8e0
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.0040f600
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.0040b710
add esp, 0xc
mov edx, dword [ebp - 0x160]
add edx, dword [ebp - 0x10]
mov byte [edx], 0
push 0x20
call fcn.0040f500
add esp, 4
mov dword [ebp - 0x66c], eax
cmp dword [ebp - 0x66c], 0
je 0x40d953
mov eax, dword [ebp - 0x160]
push eax
mov ecx, dword [ebp - 0x66c]
call fcn.00405570
mov dword [ebp - 0x6cc], eax
jmp 0x40d95d
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 0x40d998
cmp dword [ebp - 0x6d0], 1
je 0x40d9ad
cmp dword [ebp - 0x6d0], 2
je 0x40d9c2
jmp 0x40da65
push 0x416ca8
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
jmp 0x40da65
push 0x416ca8
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
jmp 0x40da65
mov ecx, dword [ebp - 0x150]
call fcn.00405870
push eax
push 0x416ca8
call fcn.0040f690
add esp, 8
push 0x104
push 0x416db0
push 0x416ca8
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
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 0x40da1e
push 0
push 0x416db0
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push 0x416db0
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov dword [ebp - 0x5d0], eax
cmp dword [ebp - 0x5d0], 0xffffffff
je 0x40da55
mov ecx, dword [ebp - 0x5d0]
and ecx, 0x10
je 0x40da55
push 0x416db0
push 0x416ca8
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
jmp 0x40da65
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 0x40da9e
mov edx, dword [ebp - 0x158]
movsx eax, byte [edx + 0x416ca7]
cmp eax, 0x5c
jne 0x40da9e
mov ecx, dword [ebp - 0x158]
mov byte [ecx + 0x416ca7], 0
call fcn.0040f460
mov dword [ebp - 0x184], eax
mov edx, dword [ebp - 0x184]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
jne 0x40dacb
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 0x41151c
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 0x40db50
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 0x40dba4
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 0x40dba2
mov eax, dword [ebp - 0x158]
movsx ecx, byte [eax + 0x416ca7]
cmp ecx, 0x5c
jne 0x40dba2
mov edx, dword [ebp - 0x158]
mov byte [edx + 0x416ca7], 0
jmp 0x40dbc4
mov eax, dword [ebp - 0x15c]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x70], 0
je 0x40dbc4
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.0040c970
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.0040c840
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 0x40dc39
mov eax, dword [ebp - 0x20]
sub eax, 1
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jl 0x40dcf7
mov ecx, dword [ebp - 0x20]
movsx edx, byte [ecx + 0x416db0]
cmp edx, 0x5c
jne 0x40dcf2
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.0040c840
add esp, 0x10
mov dword [ebp - 0x188], eax
mov eax, dword [ebp - 0x20]
mov byte [eax + 0x416db0], 0
push 0x411548
push 0x416c9c
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
jne 0x40dca5
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.0040c840
add esp, 0x10
mov dword [ebp - 0x188], eax
mov ecx, dword [ebp - 0x20]
mov byte [ecx + 0x416db0], 0x5c
push 0x41155c
push 0x416c9c
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
jne 0x40dcf0
mov edx, dword [ebp - 0x20]
mov byte [edx + 0x416daf], 0x5c
jmp 0x40dcf7
jmp 0x40dc30
push 0x416db0
call fcn.0040ca50
add esp, 4
push 0x416c9c
push 0x416eb8
push 0x416ca8
push 0x411560
push 0x416db0
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x14
push 0x416db0
call fcn.0040c970
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.0040c840
add esp, 0x10
mov dword [ebp - 0x188], eax
push 0x416db0
call fcn.0040ca50
add esp, 4
push 0x416c9c
push 0x416eb8
push 0x41157c
push 0x416db0
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
push 0x416db0
call fcn.0040c970
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.0040c840
add esp, 0x10
mov dword [ebp - 0x188], eax
push 0x416db0
call fcn.0040ca50
add esp, 4
push 0x416ca8
call fcn.0040c970
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.0040c840
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.0040c840
add esp, 0x10
mov dword [ebp - 0x188], eax
push 0x416ca8
call fcn.0040ca50
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 0x40e4a5
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 0x40df00
mov eax, dword [ebp - 0x20]
add eax, 1
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 0x20]
cmp ecx, dword [ebp - 0x5d4]
jge 0x40e067
mov edx, dword [ebp - 0x5dc]
push edx
push 0x416ca8
push 0x4115b4
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 0x40e035
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 0x40df82
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 0x40dfa8
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 0x40dfc9
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 0x40e01a
push 1
mov ecx, dword [ebp - 0x670]
call fcn.00405d60
mov dword [ebp - 0x6d4], eax
jmp 0x40e024
mov dword [ebp - 0x6d4], 0
mov eax, dword [ebp - 0x5e8]
mov dword [ebp - 0x5dc], eax
jmp 0x40def7
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 0x40def7
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 0x40e0b0
mov edx, dword [ebp - 0x20]
add edx, 1
mov dword [ebp - 0x20], edx
mov eax, dword [ebp - 0x20]
cmp eax, dword [ebp - 0x5d4]
jge 0x40e471
mov ecx, dword [ebp - 0x5dc]
movsx edx, byte [ecx]
test edx, edx
jne 0x40e0ec
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 0x40e0a7
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 0x40e168
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 0x40e168
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 0x40e168
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 0x40e176
jmp 0x40e0a7
push 4
mov edx, dword [ebp - 0x154]
push edx
lea eax, [ebp - 0x5ec]
push eax
call fcn.0040f600
add esp, 0xc
mov ecx, dword [ebp - 0x5dc]
push ecx
push 0x416ca8
push 0x4115bc
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 0x40e2b4
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 0x40e201
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 0x40e227
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 0x40e248
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 0x40e299
push 1
mov ecx, dword [ebp - 0x678]
call fcn.00405d60
mov dword [ebp - 0x6d8], eax
jmp 0x40e2a3
mov dword [ebp - 0x6d8], 0
mov edx, dword [ebp - 0x5f0]
mov dword [ebp - 0x5dc], edx
jmp 0x40e0a7
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 0x40e46c
cmp dword [ebp - 0x5ec], 0
je 0x40e45f
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 0x40e34b
mov ecx, dword [ebp - 0x5f4]
add ecx, 1
mov dword [ebp - 0x5f4], ecx
cmp dword [ebp - 0x5e0], 0
jne 0x40e36e
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 0x40e389
mov eax, dword [ebp - 0x604]
add eax, 1
mov dword [ebp - 0x604], eax
mov ecx, dword [ebp - 0x604]
cmp ecx, dword [ebp - 0x5f4]
jae 0x40e45f
mov edx, dword [ebp - 0x5f4]
sub edx, 1
cmp dword [ebp - 0x604], edx
jae 0x40e3b8
mov dword [ebp - 0x5f8], 0x100000
jmp 0x40e3c4
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 0x40e3f8
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.0040b710
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 0x40e37a
mov edx, dword [ebp - 0x15c]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x40e0a7
cmp dword [ebp - 0x5e0], 0
je 0x40e490
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 0x4115c4
push 0x416c9c
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x40e5c4
mov edx, dword [ebp - 0x150]
mov eax, dword [edx + 0x18]
and eax, 0x20
je 0x40e5c4
push 0x416ca8
call fcn.0040b6b0
add esp, 4
push 0x416ca8
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
push 0x416ca8
call fcn.0040b6e0
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.0040bdf0
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.0040f3a0
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 0x40e5b2
push 1
mov ecx, dword [ebp - 0x680]
call fcn.00410a80
mov dword [ebp - 0x6dc], eax
jmp 0x40e5bc
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 0x40eb9c
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.0040b6b0
add esp, 4
push 0x416ca8
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
push 0x416ca8
call fcn.0040b6e0
add esp, 4
cmp dword [ebp - 4], 0
je 0x40e66a
lea edx, [ebp - 0x61c]
push edx
lea eax, [ebp - 0x140]
push eax
call dword [sym.imp.ole32.dll_CLSIDFromProgID]
jmp 0x40e707
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.0040f3a0
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 0x40e6f5
push 1
mov ecx, dword [ebp - 0x688]
call fcn.00410a80
mov dword [ebp - 0x6e0], eax
jmp 0x40e6ff
mov dword [ebp - 0x6e0], 0
push 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
push 0x4d0
call fcn.0040f500
add esp, 4
mov dword [ebp - 0x690], eax
cmp dword [ebp - 0x690], 0
je 0x40e73e
mov ecx, dword [ebp - 0x690]
call fcn.00410ab0
mov dword [ebp - 0x6e4], eax
jmp 0x40e748
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 0x40e86c
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 0x40e7c5
push 1
mov ecx, dword [ebp - 0x694]
call fcn.00410b20
mov dword [ebp - 0x6e8], eax
jmp 0x40e7cf
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.0040f3a0
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 0x40e85a
push 1
mov ecx, dword [ebp - 0x69c]
call fcn.00410a80
mov dword [ebp - 0x6ec], eax
jmp 0x40e864
mov dword [ebp - 0x6ec], 0
push 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]
lea eax, [ebp - 0x628]
push eax
push 0x411ab8
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 + 0x4a8], eax
lea ecx, [ebp - 0x624]
push ecx
push 0x411ac8
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.0040f500
add esp, 4
mov dword [ebp - 0x6a4], eax
cmp dword [ebp - 0x6a4], 0
je 0x40e930
mov ecx, dword [ebp - 0x6a4]
call fcn.00410b50
mov dword [ebp - 0x6f0], eax
jmp 0x40e93a
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 0x40ea0a
push 0
push 0
mov edx, dword [ebp - 0x150]
mov eax, dword [edx + 0x1c]
push eax
push 0x409c60
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push 2
mov ecx, dword [ebp - 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.0040f530
add esp, 4
mov ecx, dword [ebp - 0x60c]
call fcn.004094d0
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 0x40ead3
push 1
mov ecx, dword [ebp - 0x6ac]
call fcn.00410b20
mov dword [ebp - 0x6f4], eax
jmp 0x40eadd
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.0040f3a0
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 0x40eb7f
push 1
mov ecx, dword [ebp - 0x6b4]
call fcn.00410a80
mov dword [ebp - 0x6f8], eax
jmp 0x40eb89
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 0x40ec5c
cmp dword [ebp - 0x190], 0xb7
je 0x40ec0f
cmp dword [ebp - 0x190], 0x50
jne 0x40ec5c
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 0x40ebf1
cmp dword [ebp - 0x15c], 0xffffffff
jne 0x40ed06
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.0040f3a0
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 0x40ecf4
push 1
mov ecx, dword [ebp - 0x6bc]
call fcn.00410a80
mov dword [ebp - 0x6fc], eax
jmp 0x40ecfe
mov dword [ebp - 0x6fc], 0
push 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push 0x4115ec
push 0x416c9c
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x40ee4e
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.0040f940
add esp, 8
mov dword [ebp - 0x660], eax
cmp dword [ebp - 0x660], 0
je 0x40ed96
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.0040f940
add esp, 8
mov dword [ebp - 0x660], eax
cmp dword [ebp - 0x660], 0
je 0x40ee1c
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 0x40ee28
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 0x40ee6f
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.0040f550
add esp, 0xc
push 0x44
push 0
lea edx, [ebp - 0x68]
push edx
call fcn.0040f550
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 0x411648
push 0x416c9c
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x40ef27
push str..cmd
push 0x416c9c
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x40ef27
push 0x411658
push 0x416c9c
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x40ef73
mov eax, dword [ebp - 0x150]
mov ecx, dword [eax + 0x18]
and ecx, 0x10
je 0x40ef73
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 0x40ef67
xor eax, eax
mov word [ebp - 0x38], ax
jmp 0x40ef73
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 0x40efb3
push str..wsf
push 0x416c9c
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x40efb3
push str..wsh
push 0x416c9c
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x40f00d
mov ecx, dword [ebp - 0x150]
mov edx, dword [ecx + 0x18]
and edx, 8
je 0x40efe7
mov eax, dword [ebp - 0x150]
mov ecx, dword [eax + 0x18]
and ecx, 0x10
je 0x40efdb
mov dword [ebp - 0x194], str.wscript.exe__B
jmp 0x40efe5
mov dword [ebp - 0x194], str.wscript.exe
jmp 0x40f00b
mov edx, dword [ebp - 0x150]
mov eax, dword [edx + 0x18]
and eax, 0x10
je 0x40f001
mov dword [ebp - 0x194], str.cscript.exe__B
jmp 0x40f00b
mov dword [ebp - 0x194], str.cscript.exe
jmp 0x40f064
push str..hta
push 0x416c9c
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x40f02d
mov dword [ebp - 0x194], str.mshta.exe
jmp 0x40f064
push str..ps1
push 0x416c9c
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x40f05a
push 0x416990
call fcn.00405dc0
add esp, 4
mov dword [ebp - 0x194], 0x416990
jmp 0x40f064
mov dword [ebp - 0x194], 0
cmp dword [ebp - 0x194], 0
je 0x40f11c
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 0x40f0f7
mov ecx, dword [ebp - 0x18c]
push ecx
mov edx, dword [ebp - 0x194]
push edx
push 0x4116cc
mov eax, dword [ebp - 0x74]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
mov ecx, dword [ebp - 0x184]
push ecx
mov edx, dword [ebp - 0x74]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
jmp 0x40f117
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 0x40f1ab
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 0x40f192
mov edx, dword [ebp - 0x184]
push edx
mov eax, dword [ebp - 0x18c]
push eax
push 0x4116e0
mov ecx, dword [ebp - 0x74]
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
mov edx, dword [ebp - 0x184]
push edx
mov eax, dword [ebp - 0x74]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
jmp 0x40f1ab
mov ecx, dword [ebp - 0x18c]
push ecx
push str.__s_
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.0040b6b0
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 0x40f284
mov dword [ebp - 0x668], 0xffffffff
mov ecx, dword [ebp - 0x150]
cmp dword [ecx + 0x1c], 0
je 0x40f22c
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 0x40f256
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.0040b6e0
add esp, 4
cmp dword [ebp - 0x18], 0x416ca8
je 0x40f2b2
cmp dword [ebp - 0x18], 0
je 0x40f2b2
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.0040f3a0
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 0x40f36f
push 1
mov ecx, dword [ebp - 0x6c4]
call fcn.00410a80
mov dword [ebp - 0x700], eax
jmp 0x40f379
mov dword [ebp - 0x700], 0
mov ecx, dword [ebp - 0x144]
push ecx
call dword [sym.imp.KERNEL32.dll_ExitProcess]
jmp 0x40f38a
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret