Function at 0x40c5f0
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, 0x730
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [ebp - 0x184], eax
mov dword [ebp - 0x170], 0
mov dword [ebp - 8], 1
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov dword [0x416870], eax
push 0x104
push 0x416eb8
push 1
mov eax, dword [ebp - 0x184]
push eax
call dword [sym.imp.USER32.dll_LoadStringA]
push 8
push 0x416c9c
push 0x11
mov ecx, dword [ebp - 0x184]
push ecx
call dword [sym.imp.USER32.dll_LoadStringA]
push 0xc8
lea edx, [ebp - 0x148]
push edx
push 0x416c9c
call fcn.0040ba40
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 - 0x1a0], eax
cmp dword [ebp - 0x1a0], 0
jne 0x40c696
jmp 0x40f099
push 0x79
push 5
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov dword [ebp - 0x18c], eax
cmp dword [ebp - 0x18c], 0
je 0x40c71e
mov ecx, dword [ebp - 0x18c]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x188], eax
cmp dword [ebp - 0x188], 0
je 0x40c71e
mov edx, dword [ebp - 0x188]
push edx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x15c], eax
cmp dword [ebp - 0x15c], 0
je 0x40c71e
mov eax, dword [ebp - 0x18c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0x1c0], eax
cmp dword [ebp - 0x1c0], 1
jne 0x40c71e
mov ecx, dword [ebp - 0x15c]
movzx edx, byte [ecx]
cmp edx, 1
jne 0x40c71e
mov dword [ebp - 8], 0
mov byte [0x416888], 0
push 0x204
push 0
mov eax, dword [0x416870]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [ebp - 0x1bc], eax
push 0x79
push 3
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov dword [ebp - 0x18c], eax
cmp dword [ebp - 0x18c], 0
je 0x40c850
mov ecx, dword [ebp - 0x18c]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x188], eax
cmp dword [ebp - 0x188], 0
jne 0x40c783
push 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov edx, dword [ebp - 0x188]
push edx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x15c], eax
cmp dword [ebp - 0x15c], 0
jne 0x40c7a7
push 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov eax, dword [ebp - 0x18c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0x1c4], eax
cmp dword [ebp - 0x1c4], 0x100
jbe 0x40c7d0
push 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push 0x100
push 0
push 0x416b98
call fcn.0040f260
add esp, 0xc
push str.Everstrike_Software
push 0x416b98
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 0x100
push 0x416b98
mov ecx, dword [ebp - 0x1bc]
push ecx
call fcn.004015d0
add esp, 0xc
mov edx, dword [ebp - 0x1c4]
mov byte [edx + 0x416888], 0
mov eax, dword [ebp - 0x1c4]
push eax
mov ecx, dword [ebp - 0x15c]
push ecx
push 0x416888
call fcn.0040f310
add esp, 0xc
mov edx, dword [ebp - 0x1bc]
push edx
mov eax, dword [ebp - 0x1c4]
push eax
push 0x416888
call fcn.0040b490
add esp, 0xc
push 0x416888
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
jne 0x40c94f
push 0x104
push 0x416db0
push 0x21
mov ecx, dword [ebp - 0x184]
push ecx
call dword [sym.imp.USER32.dll_LoadStringA]
cmp dword [ebp - 8], 0
jne 0x40c8a0
push 0
push 0x411480
push 0x416db0
call dword [sym.imp.USER32.dll_GetForegroundWindow]
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
jmp 0x40c94f
push 0xfffffffffffffff5
call fcn.00405fc0
add esp, 4
mov dword [ebp - 0x1c8], eax
push 0xfffffffffffffff6
call fcn.00405fc0
add esp, 4
mov dword [ebp - 0x1e0], eax
cmp dword [ebp - 0x1c8], 0xffffffff
je 0x40c94f
push 0x416db0
push 0x416db0
call dword [sym.imp.USER32.dll_CharToOemA]
push 0
lea edx, [ebp - 0x1c0]
push edx
push 0x416db0
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
push 0x416db0
mov eax, dword [ebp - 0x1c8]
push eax
call fcn.00406010
add esp, 0x14
mov ecx, 1
test ecx, ecx
je 0x40c94f
lea edx, [ebp - 0x1c0]
push edx
push 1
lea eax, [ebp - 0x1dc]
push eax
mov ecx, dword [ebp - 0x1e0]
push ecx
call dword [sym.imp.KERNEL32.dll_ReadConsoleInputA]
test eax, eax
jne 0x40c932
jmp 0x40c94f
movzx edx, word [ebp - 0x1dc]
cmp edx, 1
je 0x40c940
jmp 0x40c906
cmp dword [ebp - 0x1d8], 0
jne 0x40c94b
jmp 0x40c906
jmp 0x40c94f
movsx eax, byte [0x416888]
cmp eax, 0x31
jne 0x40cbfb
mov byte [ebp - 0x1e1], 1
push 0x20
push 0x85
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov dword [ebp - 0x18c], eax
cmp dword [ebp - 0x18c], 0
jne 0x40c98c
push 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov ecx, dword [ebp - 0x18c]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x188], eax
cmp dword [ebp - 0x188], 0
jne 0x40c9b2
push 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov edx, dword [ebp - 0x188]
push edx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x15c], eax
cmp dword [ebp - 0x15c], 0
jne 0x40c9d6
push 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov eax, dword [ebp - 0x18c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0x1c0], eax
cmp dword [ebp - 0x1c0], 9
jne 0x40ca15
push 9
push 0x411488
mov ecx, dword [ebp - 0x15c]
push ecx
call fcn.0040f2a0
add esp, 0xc
test eax, eax
jne 0x40ca15
mov byte [ebp - 0x1e1], 0
movzx edx, byte [ebp - 0x1e1]
test edx, edx
je 0x40cbfb
mov dword [ebp - 0x1e8], 0
lea eax, [ebp - 0x3f0]
push eax
push 0
push 0
push 0x2e
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
mov dword [ebp - 0x3f4], eax
cmp dword [ebp - 0x3f4], 0
jl 0x40cab4
push str.EverstrikeExeScript_Prokey.txt
lea ecx, [ebp - 0x3f0]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push 0
push 0x80
push 3
push 0
push 3
push SysReAllocString
lea edx, [ebp - 0x3f0]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x3f8], eax
cmp dword [ebp - 0x3f8], 0xffffffff
je 0x40cab4
push 0
mov eax, dword [ebp - 0x3f8]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x1e8], eax
mov ecx, dword [ebp - 0x3f8]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x1e8], 0xb7
jae 0x40cbfb
mov byte [0x416db0], 0
mov byte [ebp - 0x508], 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 - 0x3fc], eax
mov edx, dword [ebp - 0x3fc]
sub edx, 1
mov dword [ebp - 0x28], edx
jmp 0x40cb0c
mov eax, dword [ebp - 0x28]
sub eax, 1
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0
jl 0x40cb39
mov ecx, dword [ebp - 0x28]
movsx edx, byte [ecx + 0x416db0]
cmp edx, 0x5c
jne 0x40cb37
mov eax, dword [ebp - 0x28]
add eax, 0x416db1
push eax
lea ecx, [ebp - 0x508]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
jmp 0x40cb03
push 0x104
lea edx, [ebp - 0x3f0]
push edx
push 0x51
mov eax, dword [ebp - 0x184]
push eax
call dword [sym.imp.USER32.dll_LoadStringA]
lea ecx, [ebp - 0x508]
push ecx
lea edx, [ebp - 0x3f0]
push edx
push 0x416db0
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
cmp dword [ebp - 8], 0
jne 0x40cb91
push 0
push str.Warning
push 0x416db0
call dword [sym.imp.USER32.dll_GetForegroundWindow]
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
jmp 0x40cbf3
push 0xfffffffffffffff5
call fcn.00405fc0
add esp, 4
mov dword [ebp - 0x50c], eax
push 0xfffffffffffffff6
call fcn.00405fc0
add esp, 4
mov dword [ebp - 0x510], eax
cmp dword [ebp - 0x50c], 0xffffffff
je 0x40cbf3
push 0x416db0
push 0x416db0
call dword [sym.imp.USER32.dll_CharToOemA]
push 0
lea eax, [ebp - 0x1c0]
push eax
push 0x416db0
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
push 0x416db0
mov ecx, dword [ebp - 0x50c]
push ecx
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 - 0x18c], eax
cmp dword [ebp - 0x18c], 0
je 0x40cf8c
mov edx, dword [ebp - 0x18c]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x188], eax
cmp dword [ebp - 0x188], 0
jne 0x40cc40
push 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov eax, dword [ebp - 0x188]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x15c], eax
cmp dword [ebp - 0x15c], 0
jne 0x40cc64
push 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov ecx, dword [ebp - 0x18c]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0x1c0], eax
cmp dword [ebp - 0x1c0], 0x10
je 0x40cc8a
push 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push 0x10
mov edx, dword [ebp - 0x15c]
push edx
lea eax, [ebp - 0x1b8]
push eax
call fcn.0040f310
add esp, 0xc
mov dword [ebp - 0x170], 1
mov dword [ebp - 0x558], 0
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [ebp - 0x554], eax
lea ecx, [ebp - 0x54c]
call fcn.004106d0
mov dword [ebp - 0x550], 0
mov byte [ebp - 0x55d], 0x20
mov dword [ebp - 0x514], 0
mov ecx, dword [ebp - 0x554]
movsx edx, byte [ecx]
cmp edx, 0x22
jne 0x40cd07
mov byte [ebp - 0x55d], 0x22
mov dword [ebp - 0x550], 1
jmp 0x40cd18
mov eax, dword [ebp - 0x550]
add eax, 1
mov dword [ebp - 0x550], eax
mov ecx, dword [ebp - 0x554]
add ecx, dword [ebp - 0x550]
movsx edx, byte [ecx]
test edx, edx
je 0x40cd58
mov eax, dword [ebp - 0x554]
add eax, dword [ebp - 0x550]
movsx ecx, byte [eax]
movsx edx, byte [ebp - 0x55d]
cmp ecx, edx
jne 0x40cd56
mov eax, dword [ebp - 0x550]
add eax, 1
mov dword [ebp - 0x550], eax
jmp 0x40cd58
jmp 0x40cd09
mov ecx, dword [ebp - 0x554]
add ecx, dword [ebp - 0x550]
movsx edx, byte [ecx]
cmp edx, 0x20
jne 0x40cd7d
mov eax, dword [ebp - 0x550]
add eax, 1
mov dword [ebp - 0x550], eax
jmp 0x40cd58
mov ecx, dword [ebp - 0x554]
add ecx, dword [ebp - 0x550]
push ecx
lea ecx, [ebp - 0x54c]
call fcn.00407380
lea edx, [ebp - 0x514]
push edx
lea eax, [ebp - 0x54c]
push eax
call fcn.004079e0
mov dword [ebp - 0x550], 0
jmp 0x40cdc3
mov ecx, dword [ebp - 0x550]
add ecx, 1
mov dword [ebp - 0x550], ecx
mov edx, dword [ebp - 0x550]
cmp edx, dword [ebp - 0x514]
jge 0x40cf54
lea eax, [ebp - 0x55c]
push eax
mov ecx, dword [ebp - 0x550]
push ecx
lea edx, [ebp - 0x54c]
push edx
call fcn.00407940
push str._pass
mov eax, dword [ebp - 0x55c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
jne 0x40cf42
mov ecx, dword [ebp - 0x514]
sub ecx, 1
cmp dword [ebp - 0x550], ecx
jge 0x40cf42
lea edx, [ebp - 0x5d4]
push edx
mov eax, dword [ebp - 0x550]
add eax, 1
push eax
lea ecx, [ebp - 0x54c]
push ecx
call fcn.00407940
mov edx, dword [ebp - 0x5d4]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, 1
mov dword [ebp - 0x5bc], eax
mov eax, dword [ebp - 0x5bc]
push eax
push 0
mov ecx, dword [0x416870]
push ecx
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [ebp - 0x5c0], eax
push 0
push 0
mov edx, dword [ebp - 0x5bc]
push edx
mov eax, dword [ebp - 0x5c0]
push eax
push 0xffffffffffffffff
mov ecx, dword [ebp - 0x5d4]
push ecx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edx, dword [ebp - 0x5c0]
push edx
push 0x416db0
call fcn.0040f3a0
add esp, 8
mov eax, dword [ebp - 0x5d4]
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
lea ecx, [ebp - 0x5b8]
push ecx
call fcn.00403ff0
add esp, 4
push 0x416db0
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
push 0x416db0
lea edx, [ebp - 0x5b8]
push edx
call fcn.00404f40
add esp, 0xc
lea eax, [ebp - 0x5d0]
push eax
lea ecx, [ebp - 0x5b8]
push ecx
call fcn.00405040
add esp, 8
push 0x10
lea edx, [ebp - 0x5d0]
push edx
lea eax, [ebp - 0x1b8]
push eax
call fcn.0040f2a0
add esp, 0xc
test eax, eax
jne 0x40cf1e
mov dword [ebp - 0x558], 1
mov ecx, dword [ebp - 0x55c]
push ecx
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov edx, dword [ebp - 0x5c0]
push edx
push 0
mov eax, dword [0x416870]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x40cf54
mov ecx, dword [ebp - 0x55c]
push ecx
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
jmp 0x40cdb4
lea ecx, [ebp - 0x54c]
call fcn.00407730
cmp dword [ebp - 0x558], 0
jne 0x40cf8c
mov edx, dword [ebp - 8]
push edx
lea eax, [ebp - 0x1b8]
push eax
push 0x416db0
call fcn.0040b710
add esp, 0xc
test eax, eax
jne 0x40cf8c
push 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push 0x416888
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
jle 0x40d02e
push 0x100
push 0
push 0x416b98
call fcn.0040f260
add esp, 0xc
cmp dword [ebp - 0x170], 0
jne 0x40d01c
push 0x416888
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov dword [ebp - 0x5d8], eax
mov dword [ebp - 0x5dc], 0
jmp 0x40cfe8
mov ecx, dword [ebp - 0x5dc]
add ecx, 1
mov dword [ebp - 0x5dc], ecx
mov edx, dword [ebp - 0x5dc]
cmp edx, dword [ebp - 0x5d8]
jae 0x40d01a
mov eax, dword [ebp - 0x5dc]
movsx ecx, byte [eax + 0x416888]
movsx edx, byte [ebp - 0x5dc]
xor ecx, edx
mov eax, dword [ebp - 0x5dc]
mov byte [eax + 0x416b98], cl
jmp 0x40cfd9
jmp 0x40d02c
push 0x416db0
push 0x416b98
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
jmp 0x40d052
push 0x100
push 0
push 0x416b98
call fcn.0040f260
add esp, 0xc
push 0x4114cc
push 0x416b98
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 0x100
push 0x416b98
mov ecx, dword [ebp - 0x1bc]
push ecx
call fcn.004015d0
add esp, 0xc
push 0x79
push 2
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov dword [ebp - 0x18c], eax
cmp dword [ebp - 0x18c], 0
jne 0x40d0a3
mov edx, dword [ebp - 0x1bc]
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 - 0x18c]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x188], eax
cmp dword [ebp - 0x188], 0
jne 0x40d0de
mov edx, dword [ebp - 0x1bc]
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 - 0x188]
push ecx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x15c], eax
cmp dword [ebp - 0x15c], 0
jne 0x40d117
mov edx, dword [ebp - 0x1bc]
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 - 0x18c]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0x24], eax
mov edx, dword [ebp - 0x24]
push edx
push 0
mov eax, dword [0x416870]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [ebp - 0x19c], eax
cmp dword [ebp - 0x19c], 0
jne 0x40d172
mov ecx, dword [ebp - 0x1bc]
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 - 0x24]
sub eax, 4
push eax
mov ecx, dword [ebp - 0x15c]
add ecx, 4
push ecx
mov edx, dword [ebp - 0x19c]
push edx
call fcn.0040f310
add esp, 0xc
mov eax, dword [ebp - 0x1bc]
push eax
mov ecx, dword [ebp - 0x24]
sub ecx, 4
push ecx
mov edx, dword [ebp - 0x19c]
push edx
call fcn.0040b490
add esp, 0xc
mov eax, dword [ebp - 0x15c]
mov ecx, dword [eax]
mov dword [ebp - 0x24], ecx
mov edx, dword [ebp - 0x19c]
add edx, dword [ebp - 0x24]
mov byte [edx], 0
push 0x79
push 1
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov dword [ebp - 0x18c], eax
cmp dword [ebp - 0x18c], 0
jne 0x40d214
mov eax, dword [ebp - 0x19c]
push eax
push 0
mov ecx, dword [0x416870]
push ecx
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov edx, dword [ebp - 0x1bc]
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 - 0x18c]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x188], eax
cmp dword [ebp - 0x188], 0
jne 0x40d265
mov edx, dword [ebp - 0x19c]
push edx
push 0
mov eax, dword [0x416870]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov ecx, dword [ebp - 0x1bc]
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 - 0x188]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x15c], eax
cmp dword [ebp - 0x15c], 0
jne 0x40d2b5
mov ecx, dword [ebp - 0x19c]
push ecx
push 0
mov edx, dword [0x416870]
push edx
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [ebp - 0x1bc]
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 - 0x18c]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
add eax, 1
push eax
push 0
mov ecx, dword [0x416870]
push ecx
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [ebp - 0x168], eax
cmp dword [ebp - 0x168], 0
jne 0x40d31f
mov edx, dword [ebp - 0x19c]
push edx
push 0
mov eax, dword [0x416870]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov ecx, dword [ebp - 0x1bc]
push ecx
push 0
mov edx, dword [0x416870]
push edx
call dword [sym.imp.KERNEL32.dll_HeapFree]
push 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [ebp - 0x15c]
push ecx
mov edx, dword [ebp - 0x168]
push edx
call fcn.0040f310
add esp, 0xc
mov eax, dword [ebp - 0x1bc]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
mov edx, dword [ebp - 0x168]
push edx
call fcn.0040b490
add esp, 0xc
mov eax, dword [ebp - 0x168]
add eax, dword [ebp - 0x10]
mov byte [eax], 0
push 0x20
call fcn.0040f210
add esp, 4
mov dword [ebp - 0x69c], eax
cmp dword [ebp - 0x69c], 0
je 0x40d392
mov ecx, dword [ebp - 0x168]
push ecx
mov ecx, dword [ebp - 0x69c]
call fcn.00405570
mov dword [ebp - 0x6fc], eax
jmp 0x40d39c
mov dword [ebp - 0x6fc], 0
mov edx, dword [ebp - 0x6fc]
mov dword [ebp - 0x158], edx
mov eax, dword [ebp - 0x158]
mov ecx, dword [eax + 0x14]
mov dword [ebp - 0x700], ecx
cmp dword [ebp - 0x700], 0
je 0x40d3d7
cmp dword [ebp - 0x700], 1
je 0x40d3ec
cmp dword [ebp - 0x700], 2
je 0x40d401
jmp 0x40d48b
push 0x416ca8
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
jmp 0x40d48b
push 0x416ca8
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
jmp 0x40d48b
mov ecx, dword [ebp - 0x158]
call fcn.00405870
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov dword [ebp - 0x5e0], eax
cmp dword [ebp - 0x5e0], 0xffffffff
jne 0x40d436
push 0
mov ecx, dword [ebp - 0x158]
call fcn.00405870
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov ecx, dword [ebp - 0x158]
call fcn.00405870
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov dword [ebp - 0x5e0], eax
cmp dword [ebp - 0x5e0], 0xffffffff
je 0x40d47b
mov edx, dword [ebp - 0x5e0]
and edx, 0x10
je 0x40d47b
mov ecx, dword [ebp - 0x158]
call fcn.00405870
push eax
push 0x416ca8
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
jmp 0x40d48b
push 0x416ca8
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
push 0x416ca8
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov dword [ebp - 0x160], eax
cmp dword [ebp - 0x160], 0
jle 0x40d4c4
mov eax, dword [ebp - 0x160]
movsx ecx, byte [eax + 0x416ca7]
cmp ecx, 0x5c
jne 0x40d4c4
mov edx, dword [ebp - 0x160]
mov byte [edx + 0x416ca7], 0
call fcn.0040f170
mov dword [ebp - 0x198], eax
mov eax, dword [ebp - 0x198]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
jne 0x40d4f1
mov ecx, dword [ebp - 0x158]
call fcn.004058a0
mov dword [ebp - 0x198], eax
mov dword [ebp - 0x78], 0
push 0x416c9c
push 0x416eb8
push 0x416ca8
push 0x4114d8
mov ecx, dword [ebp - 0x1a0]
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x14
push 0
push 0x80
push 3
push 0
push 7
push 0x40000000
mov edx, dword [ebp - 0x1a0]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x164], eax
cmp dword [ebp - 0x164], 0xffffffff
jne 0x40d576
mov dword [ebp - 0x78], 1
push 0
push 0x80
push 1
push 0
push 7
push 0x40000000
mov eax, dword [ebp - 0x1a0]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x164], eax
cmp dword [ebp - 0x164], 0xffffffff
jne 0x40d5ca
push 0x416ca8
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
push 0x416ca8
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov dword [ebp - 0x160], eax
cmp dword [ebp - 0x160], 0
jle 0x40d5c8
mov ecx, dword [ebp - 0x160]
movsx edx, byte [ecx + 0x416ca7]
cmp edx, 0x5c
jne 0x40d5c8
mov eax, dword [ebp - 0x160]
mov byte [eax + 0x416ca7], 0
jmp 0x40d5ea
mov ecx, dword [ebp - 0x164]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x78], 0
je 0x40d5ea
mov edx, dword [ebp - 0x1a0]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, dword [ebp - 0x158]
mov dword [0x4170cc], eax
mov ecx, dword [ebp - 0x1bc]
mov dword [0x416874], ecx
mov edx, dword [ebp - 0x158]
mov eax, dword [edx + 0x10]
mov ecx, dword [eax + 8]
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp - 0x158]
mov eax, dword [edx + 0x10]
mov ecx, dword [eax]
mov dword [ebp - 0x154], ecx
mov dword [ebp - 0x190], 0
push 0x208
push 0
mov edx, dword [0x416870]
push edx
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x28], 0
jmp 0x40d654
mov eax, dword [ebp - 0x28]
add eax, 1
mov dword [ebp - 0x28], eax
mov ecx, dword [ebp - 0x28]
cmp ecx, dword [ebp - 0x18]
jge 0x40d7af
mov edx, dword [ebp - 0x154]
push edx
push 0x416ca8
push 0x4114e0
mov eax, dword [ebp - 0x20]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
mov ecx, dword [ebp - 0x20]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x40d780
mov edx, dword [ebp - 0x154]
mov eax, dword [edx + 0x104]
mov dword [ebp - 0x5e4], eax
mov ecx, dword [ebp - 0x158]
mov edx, dword [ecx + 0x10]
mov eax, dword [ebp - 0x154]
cmp eax, dword [edx]
jne 0x40d6cd
mov ecx, dword [ebp - 0x158]
mov edx, dword [ecx + 0x10]
mov eax, dword [ebp - 0x154]
mov ecx, dword [eax + 0x104]
mov dword [edx], ecx
mov edx, dword [ebp - 0x158]
mov eax, dword [edx + 0x10]
mov ecx, dword [ebp - 0x154]
cmp ecx, dword [eax + 4]
jne 0x40d6f3
mov edx, dword [ebp - 0x158]
mov eax, dword [edx + 0x10]
mov ecx, dword [ebp - 0x190]
mov dword [eax + 4], ecx
cmp dword [ebp - 0x190], 0
je 0x40d714
mov edx, dword [ebp - 0x190]
mov eax, dword [ebp - 0x154]
mov ecx, dword [eax + 0x104]
mov dword [edx + 0x104], ecx
mov edx, dword [ebp - 0x158]
mov eax, dword [edx + 0x10]
mov ecx, dword [eax + 8]
sub ecx, 1
mov edx, dword [ebp - 0x158]
mov eax, dword [edx + 0x10]
mov dword [eax + 8], ecx
mov ecx, dword [ebp - 0x154]
mov dword [ebp - 0x6a4], ecx
mov edx, dword [ebp - 0x6a4]
mov dword [ebp - 0x6a0], edx
cmp dword [ebp - 0x6a0], 0
je 0x40d765
push 1
mov ecx, dword [ebp - 0x6a0]
call fcn.00405d60
mov dword [ebp - 0x704], eax
jmp 0x40d76f
mov dword [ebp - 0x704], 0
mov eax, dword [ebp - 0x5e4]
mov dword [ebp - 0x154], eax
jmp 0x40d64b
mov ecx, dword [ebp - 0x154]
mov dword [ebp - 0x190], ecx
mov edx, dword [ebp - 0x154]
mov eax, dword [edx + 0x104]
mov dword [ebp - 0x154], eax
push 0
mov ecx, dword [ebp - 0x20]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
jmp 0x40d64b
mov dword [ebp - 0x150], 0
mov dword [ebp - 0x16c], 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 - 0x80], eax
push 2
push 0
push 0xfffffffffffffffc
mov edx, dword [ebp - 0x80]
push edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea eax, [ebp - 0x1c0]
push eax
push 4
lea ecx, [ebp - 0x150]
push ecx
mov edx, dword [ebp - 0x80]
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
push 0
push 0
mov eax, dword [ebp - 0x150]
push eax
mov ecx, dword [ebp - 0x80]
push ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov edx, dword [ebp - 0x158]
mov eax, dword [edx + 0xc]
mov ecx, dword [eax + 8]
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp - 0x158]
mov eax, dword [edx + 0xc]
mov ecx, dword [eax]
mov dword [ebp - 0x154], ecx
mov dword [ebp - 0x190], 0
mov dword [ebp - 0x28], 0
jmp 0x40d872
mov edx, dword [ebp - 0x28]
add edx, 1
mov dword [ebp - 0x28], edx
mov eax, dword [ebp - 0x28]
cmp eax, dword [ebp - 0x18]
jge 0x40dc27
mov ecx, dword [ebp - 0x154]
movsx edx, byte [ecx]
test edx, edx
jne 0x40d8ab
mov eax, dword [ebp - 0x154]
mov dword [ebp - 0x190], eax
mov ecx, dword [ebp - 0x154]
mov edx, dword [ecx + 0x104]
mov dword [ebp - 0x154], edx
jmp 0x40d869
mov dword [ebp - 0x5e8], 0
push 0xa
mov eax, dword [ebp - 0x28]
add eax, 1
movzx ecx, ax
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov dword [ebp - 0x18c], eax
cmp dword [ebp - 0x18c], 0
je 0x40d927
mov edx, dword [ebp - 0x18c]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x188], eax
cmp dword [ebp - 0x188], 0
je 0x40d927
mov eax, dword [ebp - 0x188]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x15c], eax
cmp dword [ebp - 0x15c], 0
je 0x40d927
mov ecx, dword [ebp - 0x18c]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0x5e8], eax
cmp dword [ebp - 0x5e8], 4
je 0x40d935
jmp 0x40d869
push 4
mov edx, dword [ebp - 0x15c]
push edx
lea eax, [ebp - 0x5e8]
push eax
call fcn.0040f310
add esp, 0xc
mov ecx, dword [ebp - 0x154]
push ecx
push 0x416ca8
push 0x4114e8
mov edx, dword [ebp - 0x20]
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
mov eax, dword [ebp - 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x40da6d
mov ecx, dword [ebp - 0x154]
mov edx, dword [ecx + 0x104]
mov dword [ebp - 0x5ec], edx
mov eax, dword [ebp - 0x158]
mov ecx, dword [eax + 0xc]
mov edx, dword [ebp - 0x154]
cmp edx, dword [ecx]
jne 0x40d9ba
mov eax, dword [ebp - 0x158]
mov ecx, dword [eax + 0xc]
mov edx, dword [ebp - 0x154]
mov eax, dword [edx + 0x104]
mov dword [ecx], eax
mov ecx, dword [ebp - 0x158]
mov edx, dword [ecx + 0xc]
mov eax, dword [ebp - 0x154]
cmp eax, dword [edx + 4]
jne 0x40d9e0
mov ecx, dword [ebp - 0x158]
mov edx, dword [ecx + 0xc]
mov eax, dword [ebp - 0x190]
mov dword [edx + 4], eax
cmp dword [ebp - 0x190], 0
je 0x40da01
mov ecx, dword [ebp - 0x190]
mov edx, dword [ebp - 0x154]
mov eax, dword [edx + 0x104]
mov dword [ecx + 0x104], eax
mov ecx, dword [ebp - 0x158]
mov edx, dword [ecx + 0xc]
mov eax, dword [edx + 8]
sub eax, 1
mov ecx, dword [ebp - 0x158]
mov edx, dword [ecx + 0xc]
mov dword [edx + 8], eax
mov eax, dword [ebp - 0x154]
mov dword [ebp - 0x6ac], eax
mov ecx, dword [ebp - 0x6ac]
mov dword [ebp - 0x6a8], ecx
cmp dword [ebp - 0x6a8], 0
je 0x40da52
push 1
mov ecx, dword [ebp - 0x6a8]
call fcn.00405d60
mov dword [ebp - 0x708], eax
jmp 0x40da5c
mov dword [ebp - 0x708], 0
mov edx, dword [ebp - 0x5ec]
mov dword [ebp - 0x154], edx
jmp 0x40d869
mov eax, dword [ebp - 0x154]
mov dword [ebp - 0x190], eax
mov ecx, dword [ebp - 0x154]
mov edx, dword [ecx + 0x104]
mov dword [ebp - 0x154], edx
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
mov eax, dword [ebp - 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x164], eax
cmp dword [ebp - 0x164], 0xffffffff
je 0x40dc22
cmp dword [ebp - 0x5e8], 0
je 0x40dc15
mov ecx, dword [ebp - 0x5e8]
shr ecx, 0x14
mov dword [ebp - 0x5f0], ecx
mov edx, dword [ebp - 0x5f0]
shl edx, 0xa
shl edx, 0xa
mov eax, dword [ebp - 0x5e8]
sub eax, edx
mov dword [ebp - 0x5f8], eax
je 0x40db01
mov ecx, dword [ebp - 0x5f0]
add ecx, 1
mov dword [ebp - 0x5f0], ecx
cmp dword [ebp - 0x16c], 0
jne 0x40db24
push 0x100000
push 0
mov edx, dword [0x416870]
push edx
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [ebp - 0x16c], eax
mov dword [ebp - 0x600], 0
jmp 0x40db3f
mov eax, dword [ebp - 0x600]
add eax, 1
mov dword [ebp - 0x600], eax
mov ecx, dword [ebp - 0x600]
cmp ecx, dword [ebp - 0x5f0]
jae 0x40dc15
mov edx, dword [ebp - 0x5f0]
sub edx, 1
cmp dword [ebp - 0x600], edx
jae 0x40db6e
mov dword [ebp - 0x5f4], 0x100000
jmp 0x40db7a
mov eax, dword [ebp - 0x5f8]
mov dword [ebp - 0x5f4], eax
mov ecx, dword [ebp - 0x5f4]
mov dword [ebp - 0x5fc], ecx
mov eax, dword [ebp - 0x5fc]
xor edx, edx
mov ecx, 0x10
div ecx
test edx, edx
je 0x40dbae
mov edx, dword [ebp - 0x5fc]
shr edx, 4
add edx, 1
shl edx, 4
mov dword [ebp - 0x5fc], edx
push 0
lea eax, [ebp - 0x1c0]
push eax
mov ecx, dword [ebp - 0x5fc]
push ecx
mov edx, dword [ebp - 0x16c]
push edx
mov eax, dword [ebp - 0x80]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [ebp - 0x1bc]
push ecx
mov edx, dword [ebp - 0x5fc]
push edx
mov eax, dword [ebp - 0x16c]
push eax
call fcn.0040b490
add esp, 0xc
push 0
lea ecx, [ebp - 0x1c0]
push ecx
mov edx, dword [ebp - 0x5f4]
push edx
mov eax, dword [ebp - 0x16c]
push eax
mov ecx, dword [ebp - 0x164]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x40db30
mov edx, dword [ebp - 0x164]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x40d869
cmp dword [ebp - 0x16c], 0
je 0x40dc46
mov eax, dword [ebp - 0x16c]
push eax
push 0
mov ecx, dword [0x416870]
push ecx
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov edx, dword [ebp - 0x20]
push edx
push 0
mov eax, dword [0x416870]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov ecx, 1
test ecx, ecx
je 0x40e117
mov dword [ebp - 0x624], str.es.include
mov edx, dword [ebp - 0x624]
push edx
mov eax, dword [ebp - 0x19c]
push eax
call fcn.0040f650
add esp, 8
mov dword [ebp - 0x618], eax
cmp dword [ebp - 0x618], 0
jne 0x40dc99
jmp 0x40e117
mov ecx, dword [ebp - 0x618]
sub ecx, dword [ebp - 0x19c]
mov dword [ebp - 0x194], ecx
mov edx, dword [ebp - 0x624]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
add eax, dword [ebp - 0x194]
mov dword [ebp - 0x608], eax
mov eax, dword [ebp - 0x608]
cmp eax, dword [ebp - 0x24]
jae 0x40dcf4
mov ecx, dword [ebp - 0x19c]
add ecx, dword [ebp - 0x608]
movsx edx, byte [ecx]
cmp edx, 0x22
je 0x40dcf4
mov eax, dword [ebp - 0x608]
add eax, 1
mov dword [ebp - 0x608], eax
jmp 0x40dcc4
mov ecx, dword [ebp - 0x608]
cmp ecx, dword [ebp - 0x24]
jb 0x40dd04
jmp 0x40e117
mov edx, dword [ebp - 0x19c]
add edx, dword [ebp - 0x608]
movsx eax, byte [edx]
cmp eax, 0x22
je 0x40dd1d
jmp 0x40e117
mov ecx, dword [ebp - 0x608]
add ecx, 1
mov dword [ebp - 0x620], ecx
mov edx, dword [ebp - 0x620]
cmp edx, dword [ebp - 0x24]
jae 0x40dd5c
mov eax, dword [ebp - 0x19c]
add eax, dword [ebp - 0x620]
movsx ecx, byte [eax]
cmp ecx, 0x22
je 0x40dd5c
mov edx, dword [ebp - 0x620]
add edx, 1
mov dword [ebp - 0x620], edx
jmp 0x40dd2c
mov eax, dword [ebp - 0x620]
cmp eax, dword [ebp - 0x24]
jb 0x40dd6c
jmp 0x40e117
mov ecx, dword [ebp - 0x19c]
add ecx, dword [ebp - 0x620]
movsx edx, byte [ecx]
cmp edx, 0x22
je 0x40dd85
jmp 0x40e117
mov eax, dword [ebp - 0x620]
sub eax, dword [ebp - 0x608]
push eax
push 0
mov ecx, dword [0x416870]
push ecx
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [ebp - 0x610], eax
cmp dword [ebp - 0x610], 0
jne 0x40ddb5
jmp 0x40e117
mov edx, dword [ebp - 0x620]
sub edx, dword [ebp - 0x608]
sub edx, 1
push edx
mov eax, dword [ebp - 0x608]
mov ecx, dword [ebp - 0x19c]
lea edx, [ecx + eax + 1]
push edx
mov eax, dword [ebp - 0x610]
push eax
call fcn.0040f310
add esp, 0xc
mov ecx, dword [ebp - 0x620]
sub ecx, dword [ebp - 0x608]
mov edx, dword [ebp - 0x610]
mov byte [edx + ecx - 1], 0
mov eax, dword [ebp - 0x158]
mov ecx, dword [eax + 0xc]
mov edx, dword [ecx + 8]
mov dword [ebp - 0x628], edx
mov eax, dword [ebp - 0x158]
mov ecx, dword [eax + 0xc]
mov edx, dword [ecx]
mov dword [ebp - 0x614], edx
mov eax, dword [ebp - 0x620]
sub eax, dword [ebp - 0x194]
add eax, 1
mov dword [ebp - 0x604], eax
mov dword [ebp - 0x28], 0
jmp 0x40de46
mov ecx, dword [ebp - 0x28]
add ecx, 1
mov dword [ebp - 0x28], ecx
mov edx, dword [ebp - 0x28]
cmp edx, dword [ebp - 0x628]
jge 0x40e0e7
mov eax, dword [ebp - 0x614]
push eax
mov ecx, dword [ebp - 0x610]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x40e0d0
mov dword [ebp - 0x60c], 0
push 0xa
mov edx, dword [ebp - 0x28]
add edx, 1
movzx eax, dx
push eax
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov dword [ebp - 0x18c], eax
cmp dword [ebp - 0x18c], 0
je 0x40deed
mov ecx, dword [ebp - 0x18c]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x188], eax
cmp dword [ebp - 0x188], 0
je 0x40deed
mov edx, dword [ebp - 0x188]
push edx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x15c], eax
cmp dword [ebp - 0x15c], 0
je 0x40deed
mov eax, dword [ebp - 0x18c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0x60c], eax
cmp dword [ebp - 0x60c], 4
je 0x40defb
jmp 0x40de3d
push 4
mov ecx, dword [ebp - 0x15c]
push ecx
lea edx, [ebp - 0x60c]
push edx
call fcn.0040f310
add esp, 0xc
cmp dword [ebp - 0x60c], 0
je 0x40dfb9
mov eax, dword [ebp - 0x60c]
mov dword [ebp - 0x634], eax
mov eax, dword [ebp - 0x634]
xor edx, edx
mov ecx, 0x10
div ecx
test edx, edx
je 0x40df54
mov edx, dword [ebp - 0x634]
shr edx, 4
add edx, 1
shl edx, 4
mov dword [ebp - 0x634], edx
mov eax, dword [ebp - 0x634]
push eax
push 0
mov ecx, dword [0x416870]
push ecx
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [ebp - 0x61c], eax
cmp dword [ebp - 0x61c], 0
je 0x40dfb7
push 0
lea edx, [ebp - 0x1c0]
push edx
mov eax, dword [ebp - 0x634]
push eax
mov ecx, dword [ebp - 0x61c]
push ecx
mov edx, dword [ebp - 0x80]
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [ebp - 0x1bc]
push eax
mov ecx, dword [ebp - 0x634]
push ecx
mov edx, dword [ebp - 0x61c]
push edx
call fcn.0040b490
add esp, 0xc
jmp 0x40dfc3
mov dword [ebp - 0x61c], 0
cmp dword [ebp - 0x61c], 0
jne 0x40dfd1
jmp 0x40e0e7
mov eax, dword [ebp - 0x614]
mov byte [eax], 0
mov ecx, dword [ebp - 0x24]
mov dword [ebp - 0x62c], ecx
mov edx, dword [ebp - 0x24]
sub edx, dword [ebp - 0x604]
add edx, dword [ebp - 0x60c]
mov dword [ebp - 0x24], edx
mov eax, dword [ebp - 0x24]
add eax, 1
push eax
push 0
mov ecx, dword [0x416870]
push ecx
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [ebp - 0x630], eax
cmp dword [ebp - 0x630], 0
jne 0x40e01f
jmp 0x40e0e7
mov edx, dword [ebp - 0x194]
push edx
mov eax, dword [ebp - 0x19c]
push eax
mov ecx, dword [ebp - 0x630]
push ecx
call fcn.0040f310
add esp, 0xc
mov edx, dword [ebp - 0x60c]
push edx
mov eax, dword [ebp - 0x61c]
push eax
mov ecx, dword [ebp - 0x630]
add ecx, dword [ebp - 0x194]
push ecx
call fcn.0040f310
add esp, 0xc
mov edx, dword [ebp - 0x62c]
sub edx, dword [ebp - 0x194]
sub edx, dword [ebp - 0x604]
push edx
mov eax, dword [ebp - 0x19c]
add eax, dword [ebp - 0x194]
add eax, dword [ebp - 0x604]
push eax
mov ecx, dword [ebp - 0x630]
add ecx, dword [ebp - 0x194]
add ecx, dword [ebp - 0x60c]
push ecx
call fcn.0040f310
add esp, 0xc
mov edx, dword [ebp - 0x630]
add edx, dword [ebp - 0x24]
mov byte [edx], 0
mov eax, dword [ebp - 0x19c]
push eax
push 0
mov ecx, dword [0x416870]
push ecx
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov edx, dword [ebp - 0x630]
mov dword [ebp - 0x19c], edx
jmp 0x40e0e7
mov eax, dword [ebp - 0x614]
mov ecx, dword [eax + 0x104]
mov dword [ebp - 0x614], ecx
jmp 0x40de3d
mov edx, dword [ebp - 0x61c]
push edx
push 0
mov eax, dword [0x416870]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov ecx, dword [ebp - 0x624]
push ecx
push 0
mov edx, dword [0x416870]
push edx
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x40dc58
mov eax, dword [ebp - 0x80]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x4114fc
push 0x416c9c
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x40e236
mov ecx, dword [ebp - 0x158]
mov edx, dword [ecx + 0x18]
and edx, 0x20
je 0x40e236
push 0x416ca8
call fcn.0040b430
add esp, 4
push 0x416ca8
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
push 0x416ca8
call fcn.0040b460
add esp, 4
mov eax, dword [ebp - 0x158]
mov ecx, dword [eax + 0x18]
and ecx, 0x10
setne dl
movzx eax, dl
push eax
mov ecx, dword [ebp - 0x198]
push ecx
mov edx, dword [ebp - 0x19c]
push edx
call fcn.0040bba0
add esp, 0xc
mov eax, dword [ebp - 0x168]
push eax
push 0
mov ecx, dword [0x416870]
push ecx
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov edx, dword [ebp - 0x19c]
push edx
push 0
mov eax, dword [0x416870]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov ecx, dword [ebp - 0x1bc]
push ecx
push 0
mov edx, dword [0x416870]
push edx
call dword [sym.imp.KERNEL32.dll_HeapFree]
push 0x416ca8
mov eax, dword [ebp - 0x158]
push eax
call fcn.0040f0b0
add esp, 8
mov ecx, dword [ebp - 0x158]
mov dword [ebp - 0x6b4], ecx
mov edx, dword [ebp - 0x6b4]
mov dword [ebp - 0x6b0], edx
cmp dword [ebp - 0x6b0], 0
je 0x40e224
push 1
mov ecx, dword [ebp - 0x6b0]
call fcn.00410790
mov dword [ebp - 0x70c], eax
jmp 0x40e22e
mov dword [ebp - 0x70c], 0
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov eax, dword [ebp - 0x158]
mov ecx, dword [eax + 0x18]
and ecx, 0x20
je 0x40e80f
mov dword [ebp - 0x658], 0
mov dword [ebp - 0x654], 0
xor edx, edx
mov word [ebp - 0x678], dx
xor eax, eax
mov dword [ebp - 0x676], eax
mov dword [ebp - 0x672], eax
mov dword [ebp - 0x66e], eax
mov dword [ebp - 0x66a], eax
mov dword [ebp - 0x666], eax
mov dword [ebp - 0x662], eax
mov dword [ebp - 0x65e], eax
mov word [ebp - 0x65a], ax
push 0x416ca8
call fcn.0040b430
add esp, 4
push 0x416ca8
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
push 0x416ca8
call fcn.0040b460
add esp, 4
cmp dword [ebp - 4], 0
je 0x40e2dc
lea ecx, [ebp - 0x64c]
push ecx
lea edx, [ebp - 0x148]
push edx
call dword [sym.imp.ole32.dll_CLSIDFromProgID]
jmp 0x40e379
mov eax, dword [ebp - 0x168]
push eax
push 0
mov ecx, dword [0x416870]
push ecx
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov edx, dword [ebp - 0x19c]
push edx
push 0
mov eax, dword [0x416870]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov ecx, dword [ebp - 0x1bc]
push ecx
push 0
mov edx, dword [0x416870]
push edx
call dword [sym.imp.KERNEL32.dll_HeapFree]
push 0x416ca8
mov eax, dword [ebp - 0x158]
push eax
call fcn.0040f0b0
add esp, 8
mov ecx, dword [ebp - 0x158]
mov dword [ebp - 0x6bc], ecx
mov edx, dword [ebp - 0x6bc]
mov dword [ebp - 0x6b8], edx
cmp dword [ebp - 0x6b8], 0
je 0x40e367
push 1
mov ecx, dword [ebp - 0x6b8]
call fcn.00410790
mov dword [ebp - 0x710], eax
jmp 0x40e371
mov dword [ebp - 0x710], 0
push 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
push 0x4cc
call fcn.0040f210
add esp, 4
mov dword [ebp - 0x6c0], eax
cmp dword [ebp - 0x6c0], 0
je 0x40e3b0
mov ecx, dword [ebp - 0x6c0]
call fcn.004107c0
mov dword [ebp - 0x714], eax
jmp 0x40e3ba
mov dword [ebp - 0x714], 0
mov eax, dword [ebp - 0x714]
mov dword [ebp - 0x63c], eax
mov ecx, dword [ebp - 0x198]
push ecx
push 0x416c9c
push 0x416eb8
push 0x416ca8
mov edx, dword [ebp - 0x158]
push edx
mov ecx, dword [ebp - 0x63c]
call fcn.004091a0
mov dword [ebp - 0x67c], eax
cmp dword [ebp - 0x67c], 0
je 0x40e4de
mov eax, dword [ebp - 0x63c]
mov dword [ebp - 0x6c8], eax
mov ecx, dword [ebp - 0x6c8]
mov dword [ebp - 0x6c4], ecx
cmp dword [ebp - 0x6c4], 0
je 0x40e437
push 1
mov ecx, dword [ebp - 0x6c4]
call fcn.00410830
mov dword [ebp - 0x718], eax
jmp 0x40e441
mov dword [ebp - 0x718], 0
mov edx, dword [ebp - 0x168]
push edx
push 0
mov eax, dword [0x416870]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov ecx, dword [ebp - 0x19c]
push ecx
push 0
mov edx, dword [0x416870]
push edx
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [ebp - 0x1bc]
push eax
push 0
mov ecx, dword [0x416870]
push ecx
call dword [sym.imp.KERNEL32.dll_HeapFree]
push 0x416ca8
mov edx, dword [ebp - 0x158]
push edx
call fcn.0040f0b0
add esp, 8
mov eax, dword [ebp - 0x158]
mov dword [ebp - 0x6d0], eax
mov ecx, dword [ebp - 0x6d0]
mov dword [ebp - 0x6cc], ecx
cmp dword [ebp - 0x6cc], 0
je 0x40e4cc
push 1
mov ecx, dword [ebp - 0x6cc]
call fcn.00410790
mov dword [ebp - 0x71c], eax
jmp 0x40e4d6
mov dword [ebp - 0x71c], 0
push 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]
lea edx, [ebp - 0x658]
push edx
push 0x411a00
push 1
push 0
lea eax, [ebp - 0x64c]
push eax
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov dword [ebp - 0x67c], eax
mov ecx, dword [ebp - 0x63c]
mov edx, dword [ebp - 0x658]
mov dword [ecx + 0x4a4], edx
lea eax, [ebp - 0x654]
push eax
push 0x411a10
mov ecx, dword [ebp - 0x658]
mov edx, dword [ecx]
mov eax, dword [ebp - 0x658]
push eax
mov ecx, dword [edx]
call ecx
mov dword [ebp - 0x67c], eax
mov edx, dword [ebp - 0x24]
lea eax, [edx + edx + 2]
push eax
push 0
mov ecx, dword [0x416870]
push ecx
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [ebp - 0x638], eax
mov edx, dword [ebp - 0x24]
add edx, 1
push edx
mov eax, dword [ebp - 0x638]
push eax
push 0xffffffffffffffff
mov ecx, dword [ebp - 0x19c]
push ecx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push 0xc
call fcn.0040f210
add esp, 4
mov dword [ebp - 0x6d4], eax
cmp dword [ebp - 0x6d4], 0
je 0x40e5a2
mov ecx, dword [ebp - 0x6d4]
call fcn.00410860
mov dword [ebp - 0x720], eax
jmp 0x40e5ac
mov dword [ebp - 0x720], 0
mov edx, dword [ebp - 0x720]
mov dword [ebp - 0x650], edx
mov eax, dword [ebp - 0x650]
mov ecx, dword [ebp - 0x63c]
mov dword [eax + 8], ecx
mov edx, dword [ebp - 0x650]
push edx
mov eax, dword [ebp - 0x658]
mov ecx, dword [eax]
mov edx, dword [ebp - 0x658]
push edx
mov eax, dword [ecx + 0xc]
call eax
mov dword [ebp - 0x67c], eax
mov ecx, dword [ebp - 0x654]
mov edx, dword [ecx]
mov eax, dword [ebp - 0x654]
push eax
mov ecx, dword [edx + 0xc]
call ecx
mov dword [ebp - 0x67c], eax
push 6
push str.WScript
mov edx, dword [ebp - 0x658]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x658]
push ecx
mov edx, dword [eax + 0x20]
call edx
lea eax, [ebp - 0x678]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push 0
mov ecx, dword [ebp - 0x638]
push ecx
mov edx, dword [ebp - 0x654]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x654]
push ecx
mov edx, dword [eax + 0x14]
call edx
mov dword [ebp - 0x67c], eax
mov eax, dword [ebp - 0x158]
cmp dword [eax + 0x1c], 0
je 0x40e67c
push 0
push 0
mov ecx, dword [ebp - 0x158]
mov edx, dword [ecx + 0x1c]
push edx
push 0x40bb70
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push 2
mov eax, dword [ebp - 0x658]
mov ecx, dword [eax]
mov edx, dword [ebp - 0x658]
push edx
mov eax, dword [ecx + 0x14]
call eax
mov dword [ebp - 0x67c], eax
mov ecx, dword [ebp - 0x638]
push ecx
push 0
mov edx, dword [0x416870]
push edx
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [ebp - 0x658]
mov ecx, dword [eax]
mov edx, dword [ebp - 0x658]
push edx
mov eax, dword [ecx + 0x1c]
call eax
mov ecx, dword [ebp - 0x654]
mov edx, dword [ecx]
mov eax, dword [ebp - 0x654]
push eax
mov ecx, dword [edx + 8]
call ecx
mov edx, dword [ebp - 0x658]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x658]
push ecx
mov edx, dword [eax + 8]
call edx
mov eax, dword [ebp - 0x650]
mov dword [ebp - 0x6d8], eax
mov ecx, dword [ebp - 0x6d8]
push ecx
call fcn.0040f240
add esp, 4
mov ecx, dword [ebp - 0x63c]
call fcn.004094c0
mov edx, dword [ebp - 0x63c]
mov dword [ebp - 0x6e0], edx
mov eax, dword [ebp - 0x6e0]
mov dword [ebp - 0x6dc], eax
cmp dword [ebp - 0x6dc], 0
je 0x40e746
push 1
mov ecx, dword [ebp - 0x6dc]
call fcn.00410830
mov dword [ebp - 0x724], eax
jmp 0x40e750
mov dword [ebp - 0x724], 0
mov ecx, dword [0x416880]
mov dword [ebp - 0x1a4], ecx
mov edx, dword [ebp - 0x168]
push edx
push 0
mov eax, dword [0x416870]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov ecx, dword [ebp - 0x19c]
push ecx
push 0
mov edx, dword [0x416870]
push edx
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [ebp - 0x1bc]
push eax
push 0
mov ecx, dword [0x416870]
push ecx
call dword [sym.imp.KERNEL32.dll_HeapFree]
push 0xc8
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0x416ca8
mov edx, dword [ebp - 0x158]
push edx
call fcn.0040f0b0
add esp, 8
mov eax, dword [ebp - 0x158]
mov dword [ebp - 0x6e8], eax
mov ecx, dword [ebp - 0x6e8]
mov dword [ebp - 0x6e4], ecx
cmp dword [ebp - 0x6e4], 0
je 0x40e7f2
push 1
mov ecx, dword [ebp - 0x6e4]
call fcn.00410790
mov dword [ebp - 0x728], eax
jmp 0x40e7fc
mov dword [ebp - 0x728], 0
call dword [sym.imp.ole32.dll_CoUninitialize]
mov edx, dword [ebp - 0x1a4]
push edx
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push 0x416c9c
push 0x416eb8
push 0x416ca8
push str._s_s_s
mov eax, dword [ebp - 0x1a0]
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 - 0x1a0]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x164], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x1a4], eax
cmp dword [ebp - 0x164], 0xffffffff
jne 0x40e8cf
cmp dword [ebp - 0x1a4], 0xb7
je 0x40e882
cmp dword [ebp - 0x1a4], 0x50
jne 0x40e8cf
push 0x416c9c
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
push 0x416ca8
push str._s_d_s
mov edx, dword [ebp - 0x1a0]
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x14
push 0
push 0x80
push 1
push 0
push 0
push 0x40000000
mov eax, dword [ebp - 0x1a0]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x164], eax
jmp 0x40e864
cmp dword [ebp - 0x164], 0xffffffff
jne 0x40e979
mov ecx, dword [ebp - 0x168]
push ecx
push 0
mov edx, dword [0x416870]
push edx
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [ebp - 0x19c]
push eax
push 0
mov ecx, dword [0x416870]
push ecx
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov edx, dword [ebp - 0x1bc]
push edx
push 0
mov eax, dword [0x416870]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
push 0x416ca8
mov ecx, dword [ebp - 0x158]
push ecx
call fcn.0040f0b0
add esp, 8
mov edx, dword [ebp - 0x158]
mov dword [ebp - 0x6f0], edx
mov eax, dword [ebp - 0x6f0]
mov dword [ebp - 0x6ec], eax
cmp dword [ebp - 0x6ec], 0
je 0x40e967
push 1
mov ecx, dword [ebp - 0x6ec]
call fcn.00410790
mov dword [ebp - 0x72c], eax
jmp 0x40e971
mov dword [ebp - 0x72c], 0
push 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push 0x411524
push 0x416c9c
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x40eac1
mov dword [ebp - 0x68c], str.___________ExeScript_Options_Begin______
mov dword [ebp - 0x680], str.______ExeScript_Options_End__________
mov ecx, dword [ebp - 0x24]
mov dword [ebp - 0x684], ecx
mov edx, dword [ebp - 0x68c]
push edx
mov eax, dword [ebp - 0x19c]
push eax
call fcn.0040f650
add esp, 8
mov dword [ebp - 0x690], eax
cmp dword [ebp - 0x690], 0
je 0x40ea09
mov ecx, dword [ebp - 0x690]
sub ecx, dword [ebp - 0x19c]
mov dword [ebp - 0x688], ecx
push 0
lea edx, [ebp - 0x1c0]
push edx
mov eax, dword [ebp - 0x688]
push eax
mov ecx, dword [ebp - 0x19c]
push ecx
mov edx, dword [ebp - 0x164]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [ebp - 0x680]
push eax
mov ecx, dword [ebp - 0x19c]
push ecx
call fcn.0040f650
add esp, 8
mov dword [ebp - 0x690], eax
cmp dword [ebp - 0x690], 0
je 0x40ea8f
mov edx, dword [ebp - 0x690]
sub edx, dword [ebp - 0x19c]
mov dword [ebp - 0x688], edx
mov eax, dword [ebp - 0x684]
sub eax, dword [ebp - 0x688]
mov dword [ebp - 0x684], eax
mov ecx, dword [ebp - 0x680]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
add eax, 2
mov edx, dword [ebp - 0x684]
sub edx, eax
mov dword [ebp - 0x684], edx
mov eax, dword [ebp - 0x680]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [ebp - 0x690]
lea edx, [ecx + eax + 2]
mov dword [ebp - 0x690], edx
jmp 0x40ea9b
mov eax, dword [ebp - 0x19c]
mov dword [ebp - 0x690], eax
push 0
lea ecx, [ebp - 0x1c0]
push ecx
mov edx, dword [ebp - 0x684]
push edx
mov eax, dword [ebp - 0x690]
push eax
mov ecx, dword [ebp - 0x164]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x40eae2
push 0
lea edx, [ebp - 0x1c0]
push edx
mov eax, dword [ebp - 0x24]
push eax
mov ecx, dword [ebp - 0x19c]
push ecx
mov edx, dword [ebp - 0x164]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [ebp - 0x164]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x10
push 0
lea ecx, [ebp - 0x180]
push ecx
call fcn.0040f260
add esp, 0xc
push 0x44
push 0
lea edx, [ebp - 0x70]
push edx
call fcn.0040f260
add esp, 0xc
mov dword [ebp - 0x44], 1
mov eax, 0xa
mov word [ebp - 0x40], ax
mov dword [ebp - 0x70], 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 - 0x74], eax
mov dword [ebp - 0xc], 0
push 0x411580
push 0x416c9c
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x40eb9a
push 0x411588
push 0x416c9c
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x40eb9a
push 0x411590
push 0x416c9c
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x40ebe6
mov eax, dword [ebp - 0x158]
mov ecx, dword [eax + 0x18]
and ecx, 0x10
je 0x40ebe6
call dword [sym.imp.KERNEL32.dll_GetVersion]
mov dword [ebp - 0x694], eax
push str.___NUL
mov edx, dword [ebp - 0x198]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
cmp dword [ebp - 0x694], 0x80000000
jb 0x40ebda
xor eax, eax
mov word [ebp - 0x40], ax
jmp 0x40ebe6
mov ecx, dword [ebp - 0xc]
or ecx, 0x8000000
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 0x74]
push edx
push 0
mov eax, dword [0x416870]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
cmp dword [ebp - 4], 0
jne 0x40ec26
push str..wsf
push 0x416c9c
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x40ec26
push str..wsh
push 0x416c9c
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x40ec80
mov ecx, dword [ebp - 0x158]
mov edx, dword [ecx + 0x18]
and edx, 8
je 0x40ec5a
mov eax, dword [ebp - 0x158]
mov ecx, dword [eax + 0x18]
and ecx, 0x10
je 0x40ec4e
mov dword [ebp - 0x1a8], str.wscript.exe__B
jmp 0x40ec58
mov dword [ebp - 0x1a8], str.wscript.exe
jmp 0x40ec7e
mov edx, dword [ebp - 0x158]
mov eax, dword [edx + 0x18]
and eax, 0x10
je 0x40ec74
mov dword [ebp - 0x1a8], str.cscript.exe__B
jmp 0x40ec7e
mov dword [ebp - 0x1a8], str.cscript.exe
jmp 0x40ecd7
push str..hta
push 0x416c9c
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x40eca0
mov dword [ebp - 0x1a8], str.mshta.exe
jmp 0x40ecd7
push str..ps1
push 0x416c9c
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x40eccd
push 0x416990
call fcn.00405dc0
add esp, 4
mov dword [ebp - 0x1a8], 0x416990
jmp 0x40ecd7
mov dword [ebp - 0x1a8], 0
cmp dword [ebp - 0x1a8], 0
je 0x40ed8f
mov ecx, dword [ebp - 0x1a8]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
mov edx, dword [ebp - 0x1a0]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
add esi, eax
mov eax, dword [ebp - 0x198]
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 - 0x7c], eax
mov eax, dword [ebp - 0x198]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
jle 0x40ed6a
mov ecx, dword [ebp - 0x1a0]
push ecx
mov edx, dword [ebp - 0x1a8]
push edx
push 0x411604
mov eax, dword [ebp - 0x7c]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
mov ecx, dword [ebp - 0x198]
push ecx
mov edx, dword [ebp - 0x7c]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
jmp 0x40ed8a
mov eax, dword [ebp - 0x1a0]
push eax
mov ecx, dword [ebp - 0x1a8]
push ecx
push str._s___s_
mov edx, dword [ebp - 0x7c]
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
jmp 0x40ee1e
mov eax, dword [ebp - 0x1a0]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
mov ecx, dword [ebp - 0x198]
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 - 0x7c], eax
mov ecx, dword [ebp - 0x198]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
jle 0x40ee05
mov edx, dword [ebp - 0x198]
push edx
mov eax, dword [ebp - 0x1a0]
push eax
push 0x411618
mov ecx, dword [ebp - 0x7c]
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
mov edx, dword [ebp - 0x198]
push edx
mov eax, dword [ebp - 0x7c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
jmp 0x40ee1e
mov ecx, dword [ebp - 0x1a0]
push ecx
push str.__s_
mov edx, dword [ebp - 0x7c]
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
mov dword [ebp - 0x1c], 0x416ca8
push 0x411628
push 0x416c9c
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x40ee4d
push str..cmd
push 0x416c9c
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x40eec5
push 0x104
push 0
mov eax, dword [0x416870]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x40eec5
mov ecx, dword [ebp - 0x1c]
mov byte [ecx], 0
push 0x104
mov edx, dword [ebp - 0x1c]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov dword [ebp - 0x160], eax
mov ecx, dword [ebp - 0x160]
mov dword [ebp - 0x28], ecx
jmp 0x40eea4
mov edx, dword [ebp - 0x28]
sub edx, 1
mov dword [ebp - 0x28], edx
cmp dword [ebp - 0x28], 0
jl 0x40eec5
mov eax, dword [ebp - 0x1c]
add eax, dword [ebp - 0x28]
movsx ecx, byte [eax]
cmp ecx, 0x5c
jne 0x40eec3
mov edx, dword [ebp - 0x1c]
add edx, dword [ebp - 0x28]
mov byte [edx], 0
jmp 0x40eec5
jmp 0x40ee9b
mov eax, dword [ebp - 0x1c]
push eax
call fcn.0040b430
add esp, 4
mov ecx, dword [ebp - 0x1c]
push ecx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
mov dword [ebp - 0x14c], 1
lea edx, [ebp - 0x180]
push edx
lea eax, [ebp - 0x70]
push eax
mov ecx, dword [ebp - 0x1c]
push ecx
push 0
mov edx, dword [ebp - 0xc]
push edx
push 1
push 0
push 0
mov eax, dword [ebp - 0x7c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x40ef97
mov dword [ebp - 0x698], 0xffffffff
mov ecx, dword [ebp - 0x158]
cmp dword [ecx + 0x1c], 0
je 0x40ef3f
mov edx, dword [ebp - 0x158]
mov eax, dword [edx + 0x1c]
imul eax, eax, 0x3e8
mov dword [ebp - 0x698], eax
mov ecx, dword [ebp - 0x698]
push ecx
mov edx, dword [ebp - 0x180]
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x40ef69
push 0
mov eax, dword [ebp - 0x180]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
lea ecx, [ebp - 0x14c]
push ecx
mov edx, dword [ebp - 0x180]
push edx
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov eax, dword [ebp - 0x180]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x17c]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 0x1c]
push edx
call fcn.0040b460
add esp, 4
cmp dword [ebp - 0x1c], 0x416ca8
je 0x40efc5
cmp dword [ebp - 0x1c], 0
je 0x40efc5
mov eax, dword [ebp - 0x1c]
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 - 0x168]
push ecx
push 0
mov edx, dword [0x416870]
push edx
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [ebp - 0x19c]
push eax
push 0
mov ecx, dword [0x416870]
push ecx
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov edx, dword [ebp - 0x7c]
push edx
push 0
mov eax, dword [0x416870]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov ecx, dword [ebp - 0x1bc]
push ecx
push 0
mov edx, dword [0x416870]
push edx
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [ebp - 0x1a0]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0x416ca8
mov ecx, dword [ebp - 0x158]
push ecx
call fcn.0040f0b0
add esp, 8
mov edx, dword [ebp - 0x158]
mov dword [ebp - 0x6f8], edx
mov eax, dword [ebp - 0x6f8]
mov dword [ebp - 0x6f4], eax
cmp dword [ebp - 0x6f4], 0
je 0x40f082
push 1
mov ecx, dword [ebp - 0x6f4]
call fcn.00410790
mov dword [ebp - 0x730], eax
jmp 0x40f08c
mov dword [ebp - 0x730], 0
mov ecx, dword [ebp - 0x14c]
push ecx
call dword [sym.imp.KERNEL32.dll_ExitProcess]
jmp 0x40f09d
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret