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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
push ebx
push esi
push edi
xor ebx, ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
xor esi, esi
inc esi
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x2c], ebx
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov edi, dword [sym.imp.USER32.dll_LoadStringA]
push 0x104
push 0x40fec0
push esi
push dword [ebp - 0xc]
mov dword [0x40f878], eax
call edi
push 8
mov esi, 0x40fca4
push esi
push 0x11
push dword [ebp - 0xc]
call edi
push 0xc8
lea eax, [ebp - 0x230]
push eax
push esi
call fcn.00405ebc
mov esi, dword [sym.imp.KERNEL32.dll_HeapAlloc]
add esp, 0xc
push 0x208
push ebx
push dword [0x40f878]
mov dword [ebp - 0x44], eax
call esi
mov dword [ebp - 0x28], eax
cmp eax, ebx
jne 0x407f72
pop edi
pop esi
xor eax, eax
pop ebx
leave
ret
mov edi, dword [sym.imp.KERNEL32.dll_FindResourceA]
push 0x79
push 5
push ebx
call edi
mov dword [ebp - 0x14], eax
cmp eax, ebx
je 0x407fbd
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, ebx
je 0x407fbd
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x18], eax
cmp eax, ebx
je 0x407fbd
push dword [ebp - 0x14]
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0x40], eax
cmp eax, 1
jne 0x407fbd
mov eax, dword [ebp - 0x18]
cmp byte [eax], 1
jne 0x407fbd
mov dword [ebp - 0x30], ebx
lea eax, [ebp - 0x60]
push eax
mov dword [ebp - 0x60], 8
mov dword [ebp - 0x5c], 0x404
call dword [sym.imp.COMCTL32.dll_InitCommonControlsEx]
push 0x79
push 7
push ebx
call edi
mov edi, eax
cmp edi, ebx
je 0x408014
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, ebx
je 0x408014
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x18], eax
cmp eax, ebx
je 0x408014
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0x40], eax
cmp eax, 4
jne 0x408014
mov eax, dword [ebp - 0x18]
mov eax, dword [eax]
mov dword [ebp - 0x2c], eax
push 0x204
push ebx
push dword [0x40f878]
mov byte [0x40f890], bl
call esi
push 0x79
push 3
push ebx
mov dword [ebp - 0x20], eax
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov dword [ebp - 0x14], eax
mov edi, 0x100
mov esi, 0x40fba0
cmp eax, ebx
je 0x4080c0
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, ebx
jne 0x40805b
push 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x18], eax
cmp eax, ebx
je 0x408053
push dword [ebp - 0x14]
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0x10], eax
cmp eax, edi
ja 0x408053
push edi
push ebx
push esi
call fcn.004095d0
add esp, 0xc
push str.Everstrike_Software
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push edi
push esi
push dword [ebp - 0x20]
call fcn.00401208
mov edi, dword [ebp - 0x10]
push edi
push dword [ebp - 0x18]
mov esi, 0x40f890
push esi
mov byte [edi + 0x40f890], bl
call fcn.00409260
push dword [ebp - 0x20]
push edi
push esi
call fcn.00405aa4
add esp, 0x24
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenA]
push 0x40f890
call edi
mov esi, 0x40fdb8
test eax, eax
jne 0x408162
push 0x104
push esi
push 0x21
push dword [ebp - 0xc]
call dword [sym.imp.USER32.dll_LoadStringA]
cmp dword [ebp - 0x30], ebx
jne 0x408106
push ebx
push str.Warning
push esi
call dword [sym.imp.USER32.dll_GetForegroundWindow]
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
jmp 0x408162
push 0xfffffffffffffff5
call fcn.00403540
push 0xfffffffffffffff6
mov dword [ebp - 0xc], eax
call fcn.00403540
cmp dword [ebp - 0xc], 0xffffffff
pop ecx
pop ecx
mov dword [ebp - 0x10], eax
je 0x408162
push esi
push esi
call dword [sym.imp.USER32.dll_CharToOemA]
push ebx
lea eax, [ebp - 0x40]
push eax
push esi
call edi
push eax
push esi
push dword [ebp - 0xc]
call fcn.00403561
add esp, 0x14
lea eax, [ebp - 0x40]
push eax
push 1
lea eax, [ebp - 0x74]
push eax
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_ReadConsoleInputA]
test eax, eax
je 0x408162
cmp word [ebp - 0x74], 1
jne 0x40813f
cmp dword [ebp - 0x70], ebx
je 0x40813f
push 0x79
push 4
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
cmp edi, ebx
je 0x40835e
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, ebx
je 0x408053
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
cmp esi, ebx
je 0x408053
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0x40], eax
cmp eax, 0x10
jne 0x408053
lea edi, [ebp - 0x84]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov dword [ebp - 0x38], 1
mov dword [ebp - 0x24], ebx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov esi, eax
mov dword [ebp - 0xcc], 0x40a54c
mov dword [ebp - 0xc8], 0x40a4f0
mov dword [ebp - 0xb8], 0x40a520
xor edi, edi
cmp byte [esi], 0x22
mov cl, 0x20
jne 0x4081fa
add cl, 2
inc edi
jmp 0x4081fa
inc edi
cmp al, cl
je 0x408204
mov al, byte [edi + esi]
cmp al, bl
jne 0x4081f5
jmp 0x408204
inc edi
cmp byte [edi + esi], 0x20
je 0x408203
add edi, esi
push edi
lea ecx, [ebp - 0xcc]
call fcn.00406d3d
mov edi, dword [ebp - 0xa0]
xor esi, esi
cmp edi, ebx
jle 0x40832f
lea eax, [ebp - 0x10]
push eax
push esi
lea eax, [ebp - 0xcc]
push eax
call fcn.00403ee8
push str._pass
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
jne 0x408252
lea eax, [edi - 1]
cmp esi, eax
jl 0x408265
push dword [ebp - 0x10]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
inc esi
cmp esi, edi
jl 0x408228
jmp 0x40832f
lea eax, [ebp - 0xc]
push eax
inc esi
push esi
lea eax, [ebp - 0xcc]
push eax
call fcn.00403ee8
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea esi, [eax + 1]
push esi
push ebx
push dword [0x40f878]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
push ebx
push ebx
push esi
mov edi, eax
push edi
push 0xffffffffffffffff
push dword [ebp - 0xc]
mov dword [ebp - 0x14], edi
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov esi, 0x40fdb8
mov eax, edi
sub esi, edi
mov cl, byte [eax]
mov byte [eax + esi], cl
inc eax
cmp cl, bl
jne 0x4082b0
push dword [ebp - 0xc]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
lea eax, [ebp - 0x168]
push eax
call fcn.00402544
pop ecx
mov esi, 0x40fdb8
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
lea eax, [ebp - 0x168]
push esi
push eax
call fcn.00402f4a
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 0x168]
push eax
call fcn.00402fe0
add esp, 0x14
push 4
pop ecx
lea edi, [ebp - 0x70]
lea esi, [ebp - 0x84]
xor eax, eax
repe cmpsd dword [esi], dword es:[edi]
jne 0x408316
mov dword [ebp - 0x24], 1
push dword [ebp - 0x10]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
push dword [ebp - 0x14]
push ebx
push dword [0x40f878]
call dword [sym.imp.KERNEL32.dll_HeapFree]
lea ecx, [ebp - 0xcc]
call fcn.00406ecb
cmp dword [ebp - 0x24], ebx
jne 0x40835e
push dword [ebp - 0x30]
lea eax, [ebp - 0x84]
push eax
push 0x40fdb8
call fcn.00405c7a
add esp, 0xc
test eax, eax
je 0x408053
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenA]
push 0x40f890
call edi
push 0x100
mov esi, 0x40fba0
push ebx
push esi
test eax, eax
jle 0x4083bb
call fcn.004095d0
add esp, 0xc
cmp dword [ebp - 0x38], ebx
jne 0x4083ac
push 0x40f890
call edi
mov edi, eax
xor ecx, ecx
cmp edi, ebx
jbe 0x4083cf
mov al, byte [ecx + 0x40f890]
xor al, cl
mov byte [ecx + 0x40fba0], al
inc ecx
cmp ecx, edi
jb 0x408397
jmp 0x4083cf
mov edi, 0x40fdb8
push edi
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
jmp 0x4083d4
call fcn.004095d0
add esp, 0xc
push 0x40a300
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edi, 0x40fdb8
push 0x100
push esi
push dword [ebp - 0x20]
call fcn.00401208
add esp, 0xc
push 0x79
push 2
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
cmp esi, ebx
jne 0x40840b
push dword [ebp - 0x20]
push ebx
push dword [0x40f878]
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x408053
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, ebx
je 0x4083f6
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x18], eax
cmp eax, ebx
je 0x4083f6
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
push esi
push ebx
push dword [0x40f878]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [ebp - 8], eax
cmp eax, ebx
je 0x4083f6
lea eax, [esi - 4]
push eax
mov eax, dword [ebp - 0x18]
add eax, 4
push eax
push dword [ebp - 8]
call fcn.00409260
push dword [ebp - 0x20]
add esi, 0xfffffffc
push esi
mov esi, dword [ebp - 8]
push esi
call fcn.00405aa4
mov eax, dword [ebp - 0x18]
mov eax, dword [eax]
add esp, 0x18
push 0x79
push 1
push ebx
mov dword [ebp - 0x1c], eax
mov byte [esi + eax], bl
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
cmp esi, ebx
jne 0x4084a9
push dword [ebp - 8]
mov esi, dword [sym.imp.KERNEL32.dll_HeapFree]
push ebx
push dword [0x40f878]
call esi
push dword [ebp - 0x20]
push ebx
push dword [0x40f878]
call esi
jmp 0x408053
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, ebx
je 0x408486
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x18], eax
cmp eax, ebx
je 0x408486
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
lea eax, [esi + 1]
push eax
push ebx
push dword [0x40f878]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [ebp - 0x38], eax
cmp eax, ebx
je 0x408486
push esi
push dword [ebp - 0x18]
push eax
call fcn.00409260
push dword [ebp - 0x20]
push esi
push dword [ebp - 0x38]
call fcn.00405aa4
mov eax, dword [ebp - 0x38]
push 0x20
mov byte [eax + esi], bl
call fcn.00406226
add esp, 0x1c
cmp eax, ebx
je 0x40851e
push dword [ebp - 0x38]
mov ecx, eax
call fcn.004034c1
mov dword [ebp - 4], eax
jmp 0x408521
mov dword [ebp - 4], ebx
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x14]
sub eax, ebx
mov esi, 0x40fcb0
je 0x40859d
dec eax
je 0x40858f
dec eax
jne 0x4085a9
mov ecx, dword [ebp - 4]
call fcn.00403253
mov edx, esi
sub edx, eax
mov cl, byte [eax]
mov byte [eax + edx], cl
inc eax
cmp cl, bl
jne 0x408542
push 0x104
push edi
push esi
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
mov ecx, dword [ebp - 4]
call fcn.00403253
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x408575
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x40858f
test al, 0x10
je 0x40858f
push edi
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
jmp 0x4085a9
push esi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
jmp 0x4085a9
push esi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp eax, ebx
jle 0x4085c1
lea eax, [eax + 0x40fcaf]
cmp byte [eax], 0x5c
jne 0x4085c1
mov byte [eax], bl
call fcn.004061ee
push eax
mov dword [ebp - 0x34], eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
jne 0x4085df
mov ecx, dword [ebp - 4]
call fcn.00403260
mov dword [ebp - 0x34], eax
push 0x40fca4
push 0x40fec0
push esi
push str._s_s_s
push dword [ebp - 0x28]
mov dword [ebp - 0xc], ebx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x14
push ebx
push 0x80
push 3
push ebx
push 7
push 0x40000000
push dword [ebp - 0x28]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
jne 0x408665
push ebx
push 0x80
xor eax, eax
inc eax
push eax
push ebx
push 7
push 0x40000000
push dword [ebp - 0x28]
mov dword [ebp - 0xc], eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
jne 0x408665
push esi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp eax, ebx
jle 0x40867a
lea eax, [eax + 0x40fcaf]
cmp byte [eax], 0x5c
jne 0x40867a
mov byte [eax], bl
jmp 0x40867a
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0xc], ebx
je 0x40867a
push dword [ebp - 0x28]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, dword [ebp - 4]
push 0x104
mov dword [0x4100d4], eax
mov eax, dword [ebp - 0x20]
push edi
push ebx
mov dword [0x40f87c], eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push edi
call fcn.00406062
push edi
push str.ES.exe.pathname
lea eax, [ebp - 0x1c]
push eax
push dword [ebp - 8]
call fcn.00405f80
add esp, 0x14
push edi
mov dword [ebp - 8], eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
dec eax
mov dword [ebp - 0x3c], eax
js 0x408763
mov eax, dword [ebp - 0x3c]
cmp byte [eax + 0x40fdb8], 0x5c
je 0x4086dc
dec dword [ebp - 0x3c]
jns 0x4086c6
jmp 0x408763
mov eax, dword [ebp - 0x3c]
lea eax, [eax + 0x40fdb9]
push eax
push str.ES.exe.name
lea eax, [ebp - 0x1c]
push eax
push dword [ebp - 8]
call fcn.00405f80
add esp, 0x10
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x3c]
push 0x40a324
push 0x40fca4
mov byte [eax + 0x40fdb8], bl
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
jne 0x408723
mov eax, dword [ebp - 0x3c]
mov byte [eax + 0x40fdb7], bl
push edi
push str.ES.exe.path
lea eax, [ebp - 0x1c]
push eax
push dword [ebp - 8]
call fcn.00405f80
add esp, 0x10
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x3c]
push 0x40a324
push 0x40fca4
mov byte [eax + 0x40fdb8], 0x5c
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
jne 0x408763
mov eax, dword [ebp - 0x3c]
mov byte [eax + 0x40fdb7], 0x5c
push edi
call fcn.004060db
mov dword [esp], 0x40fca4
push 0x40fec0
push esi
push str._s_s_s
push edi
call dword [sym.imp.USER32.dll_wsprintfA]
push edi
call fcn.00406062
push edi
push str.ES.script.pathname
lea eax, [ebp - 0x1c]
push eax
push dword [ebp - 8]
call fcn.00405f80
push edi
mov dword [ebp - 8], eax
call fcn.004060db
push 0x40fca4
push 0x40fec0
push str._s_s
push edi
call dword [sym.imp.USER32.dll_wsprintfA]
push edi
call fcn.00406062
add esp, 0x40
push edi
push str.ES.script.name
lea eax, [ebp - 0x1c]
push eax
push dword [ebp - 8]
call fcn.00405f80
push edi
mov dword [ebp - 8], eax
call fcn.004060db
push esi
call fcn.00406062
push esi
push str.ES.res.path
lea eax, [ebp - 0x1c]
push eax
push dword [ebp - 8]
call fcn.00405f80
push esi
push str.ES.script.path
lea ecx, [ebp - 0x1c]
push ecx
push eax
call fcn.00405f80
push esi
mov dword [ebp - 8], eax
call fcn.004060db
add esp, 0x3c
cmp dword [ebp - 0x2c], ebx
jne 0x408a8e
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x10]
mov ecx, dword [eax + 8]
mov edi, dword [eax]
push 0x208
push ebx
push dword [0x40f878]
mov dword [ebp - 0xc], ecx
mov dword [ebp - 0x24], ebx
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0xc], ebx
jle 0x4088db
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x2c], eax
push edi
push esi
push 0x40a328
push dword [ebp - 0x30]
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
push dword [ebp - 0x30]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x4088bf
mov ecx, dword [ebp - 4]
mov eax, dword [ecx + 0x10]
mov edx, dword [edi + 0x104]
mov dword [ebp - 0x10], edx
cmp edi, dword [eax]
jne 0x408885
mov dword [eax], edx
mov eax, dword [ecx + 0x10]
mov ecx, dword [ebp - 0x24]
cmp edi, dword [eax + 4]
jne 0x408893
mov dword [eax + 4], ecx
cmp ecx, ebx
je 0x4088a3
mov eax, dword [edi + 0x104]
mov dword [ecx + 0x104], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x10]
dec dword [eax + 8]
mov ecx, edi
call fcn.00403101
push edi
call fcn.0040623c
mov edi, dword [ebp - 0x10]
pop ecx
jmp 0x4088d2
push ebx
push dword [ebp - 0x30]
mov dword [ebp - 0x24], edi
mov edi, dword [edi + 0x104]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
dec dword [ebp - 0x2c]
jne 0x40884f
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
mov ecx, dword [eax + 8]
mov edi, dword [eax]
mov dword [ebp - 0xc], ecx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x3c], ebx
cmp ecx, ebx
jle 0x408a7e
cmp byte [edi], bl
jne 0x408909
mov dword [ebp - 0x24], edi
mov edi, dword [edi + 0x104]
jmp 0x408a6f
mov eax, dword [ebp - 0x3c]
inc eax
movzx eax, ax
push 0xa
push eax
push ebx
mov dword [ebp - 0x10], ebx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov dword [ebp - 0x14], eax
cmp eax, ebx
je 0x40899c
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, ebx
je 0x40899c
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x18], eax
cmp eax, ebx
je 0x40899c
push dword [ebp - 0x14]
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0x10], eax
cmp eax, ebx
je 0x40899c
add eax, 0xfffffffc
push eax
push ebx
push dword [0x40f878]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [ebp - 0x14], eax
cmp eax, ebx
je 0x40899f
mov eax, dword [ebp - 0x10]
add eax, 0xfffffffc
push eax
mov eax, dword [ebp - 0x18]
add eax, 4
push eax
push dword [ebp - 0x14]
call fcn.00409260
push dword [ebp - 0x20]
mov eax, dword [ebp - 0x10]
add eax, 0xfffffffc
push eax
push dword [ebp - 0x14]
call fcn.00405aa4
mov eax, dword [ebp - 0x18]
mov eax, dword [eax]
add esp, 0x18
mov dword [ebp - 0x10], eax
jmp 0x40899f
mov dword [ebp - 0x14], ebx
push edi
push esi
push 0x40a328
push dword [ebp - 0x30]
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
push dword [ebp - 0x30]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x408a0f
mov ecx, dword [ebp - 4]
mov eax, dword [ecx + 0xc]
mov edx, dword [edi + 0x104]
mov dword [ebp - 0x10], edx
cmp edi, dword [eax]
jne 0x4089d5
mov dword [eax], edx
mov eax, dword [ecx + 0xc]
mov ecx, dword [ebp - 0x24]
cmp edi, dword [eax + 4]
jne 0x4089e3
mov dword [eax + 4], ecx
cmp ecx, ebx
je 0x4089f3
mov eax, dword [edi + 0x104]
mov dword [ecx + 0x104], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
dec dword [eax + 8]
mov ecx, edi
call fcn.00403101
push edi
call fcn.0040623c
mov edi, dword [ebp - 0x10]
pop ecx
jmp 0x408a6f
push ebx
push 0x80
push 2
push ebx
push ebx
push 0x40000000
push dword [ebp - 0x30]
mov dword [ebp - 0x24], edi
mov edi, dword [edi + 0x104]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x18], eax
cmp eax, 0xffffffff
je 0x408a5a
cmp dword [ebp - 0x14], ebx
je 0x408a51
push ebx
lea eax, [ebp - 0x40]
push eax
push dword [ebp - 0x10]
push dword [ebp - 0x14]
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x14], ebx
je 0x408a6f
push dword [ebp - 0x14]
push ebx
push dword [0x40f878]
call dword [sym.imp.KERNEL32.dll_HeapFree]
inc dword [ebp - 0x3c]
mov eax, dword [ebp - 0x3c]
cmp eax, dword [ebp - 0xc]
jl 0x4088f7
push dword [ebp - 0x30]
push ebx
push dword [0x40f878]
call dword [sym.imp.KERNEL32.dll_HeapFree]
push str..ps1
mov edi, 0x40fca4
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x408b2d
mov eax, dword [ebp - 4]
test byte [eax + 0x18], 0x20
je 0x408b2d
push esi
call fcn.00405a66
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
push esi
call fcn.00405a86
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x18]
shr eax, 4
and al, 1
movzx eax, al
push eax
push dword [ebp - 0x34]
push dword [ebp - 8]
call fcn.004077f2
mov edi, dword [sym.imp.KERNEL32.dll_HeapFree]
add esp, 0x10
push dword [ebp - 0x38]
push ebx
push dword [0x40f878]
call edi
push dword [ebp - 8]
push ebx
push dword [0x40f878]
call edi
push dword [ebp - 0x20]
push ebx
push dword [0x40f878]
call edi
push esi
push dword [ebp - 4]
call fcn.00406151
pop ecx
pop ecx
mov ecx, dword [ebp - 4]
call fcn.004034e6
push dword [ebp - 4]
call fcn.0040623c
pop ecx
push ebx
jmp 0x408055
mov eax, dword [ebp - 4]
test byte [eax + 0x18], 0x20
je 0x408dab
xor eax, eax
push 7
mov word [ebp - 0x94], ax
pop ecx
lea edi, [ebp - 0x92]
rep stosd dword es:[edi], eax
push esi
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0xc], ebx
stosw word es:[edi], ax
call fcn.00405a66
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
push esi
call fcn.00405a86
pop ecx
cmp dword [ebp - 0x44], ebx
je 0x408bd1
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 0x230]
push eax
call dword [sym.imp.ole32.dll_CLSIDFromProgID]
push ebx
call dword [sym.imp.ole32.dll_CoInitialize]
push 0x4d0
call fcn.00406226
pop ecx
cmp eax, ebx
je 0x408ba3
mov ecx, eax
call fcn.004077a6
mov dword [ebp - 0x14], eax
jmp 0x408ba6
mov dword [ebp - 0x14], ebx
push dword [ebp - 0x34]
mov ecx, dword [ebp - 0x14]
push 0x40fca4
push 0x40fec0
push esi
push dword [ebp - 4]
call fcn.00406f77
test eax, eax
je 0x408c1c
cmp dword [ebp - 0x14], ebx
je 0x408bd1
push dword [ebp - 0x14]
call fcn.0040623c
pop ecx
push dword [ebp - 0x38]
mov edi, dword [sym.imp.KERNEL32.dll_HeapFree]
push ebx
push dword [0x40f878]
call edi
push dword [ebp - 8]
push ebx
push dword [0x40f878]
call edi
push dword [ebp - 0x20]
push ebx
push dword [0x40f878]
call edi
push esi
push dword [ebp - 4]
call fcn.00406151
pop ecx
pop ecx
mov ecx, dword [ebp - 4]
call fcn.004034e6
push dword [ebp - 4]
call fcn.0040623c
pop ecx
jmp 0x408053
lea eax, [ebp - 0x24]
push eax
push 0x40a964
push 1
push ebx
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x14]
lea edx, [ebp - 0xc]
push edx
mov dword [ecx + 0x4a8], eax
mov eax, dword [ebp - 0x24]
mov ecx, dword [eax]
push 0x40a974
push eax
call dword [ecx]
mov edi, dword [ebp - 0x1c]
lea eax, [edi + edi + 2]
push eax
push ebx
push dword [0x40f878]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
inc edi
push edi
push eax
push 0xffffffffffffffff
push dword [ebp - 8]
mov dword [ebp - 0x2c], eax
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push 0xc
call fcn.00406226
pop ecx
cmp eax, ebx
je 0x408c95
mov dword [eax], 0x40a3e4
mov dword [eax + 4], 0x40a3d0
mov dword [ebp - 0x10], eax
jmp 0x408c98
mov dword [ebp - 0x10], ebx
mov ecx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
mov dword [ecx + 8], eax
mov eax, dword [ebp - 0x24]
mov edx, dword [eax]
push ecx
push eax
call dword [edx + 0xc]
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax]
push eax
call dword [ecx + 0xc]
mov eax, dword [ebp - 0x24]
mov ecx, dword [eax]
push 6
push str.WScript
push eax
call dword [ecx + 0x20]
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax]
lea edx, [ebp - 0x94]
push edx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push dword [ebp - 0x2c]
push eax
call dword [ecx + 0x14]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x1c]
cmp eax, ebx
je 0x408cf8
push ebx
push ebx
push eax
push 0x404f66
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov eax, dword [ebp - 0x24]
mov ecx, dword [eax]
push 2
push eax
call dword [ecx + 0x14]
push dword [ebp - 0x2c]
mov edi, dword [sym.imp.KERNEL32.dll_HeapFree]
push ebx
push dword [0x40f878]
call edi
mov eax, dword [ebp - 0x24]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x1c]
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x24]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push dword [ebp - 0x10]
call fcn.0040623c
pop ecx
mov ecx, dword [ebp - 0x14]
call fcn.0040718f
push dword [ebp - 0x14]
call fcn.0040623c
mov eax, dword [0x40f888]
pop ecx
push dword [ebp - 0x38]
mov dword [ebp - 0x10], eax
push ebx
push dword [0x40f878]
call edi
push dword [ebp - 8]
push ebx
push dword [0x40f878]
call edi
push dword [ebp - 0x20]
push ebx
push dword [0x40f878]
call edi
push 0xc8
call dword [sym.imp.KERNEL32.dll_Sleep]
push esi
push dword [ebp - 4]
call fcn.00406151
pop ecx
pop ecx
mov ecx, dword [ebp - 4]
call fcn.004034e6
push dword [ebp - 4]
call fcn.0040623c
pop ecx
call dword [sym.imp.ole32.dll_CoUninitialize]
push dword [ebp - 0x10]
jmp 0x408055
push edi
push 0x40fec0
push esi
push str._s_s_s
push dword [ebp - 0x28]
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x14
push ebx
push 0x80
push 1
push ebx
push ebx
push 0x40000000
push dword [ebp - 0x28]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x18], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [ebp - 0x18], 0xffffffff
mov dword [ebp - 0x10], eax
jne 0x408e40
cmp dword [ebp - 0x10], 0xb7
je 0x408dfc
cmp dword [ebp - 0x10], 0x50
jne 0x408e36
push edi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
push esi
push str._s_d_s
push dword [ebp - 0x28]
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x14
push ebx
push 0x80
push 1
push ebx
push ebx
push 0x40000000
push dword [ebp - 0x28]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x18], eax
cmp eax, 0xffffffff
je 0x408ded
cmp dword [ebp - 0x18], 0xffffffff
je 0x408bd1
push 0x40a76c
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x408ecd
mov eax, dword [ebp - 0x1c]
push str.___________ExeScript_Options_Begin______
push dword [ebp - 8]
mov dword [ebp - 0xc], eax
call fcn.00406319
pop ecx
pop ecx
cmp eax, ebx
je 0x408e7e
sub eax, dword [ebp - 8]
push ebx
lea ecx, [ebp - 0x40]
push ecx
push eax
push dword [ebp - 8]
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov edi, str.______ExeScript_Options_End__________
push edi
push dword [ebp - 8]
call fcn.00406319
pop ecx
pop ecx
mov dword [ebp - 0x2c], eax
cmp eax, ebx
je 0x408ebf
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, eax
mov eax, dword [ebp - 8]
sub eax, dword [ebp - 0x2c]
push edi
add eax, dword [ebp - 0x1c]
sub eax, ecx
sub eax, 2
mov dword [ebp - 0xc], eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [ebp - 0x2c]
lea eax, [ecx + eax + 2]
jmp 0x408ec2
mov eax, dword [ebp - 8]
push ebx
lea ecx, [ebp - 0x40]
push ecx
push dword [ebp - 0xc]
push eax
jmp 0x408ed8
push ebx
lea eax, [ebp - 0x40]
push eax
push dword [ebp - 0x1c]
push dword [ebp - 8]
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
lea edi, [ebp - 0x58]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push 0x44
stosd dword es:[edi], eax
pop edi
push edi
lea eax, [ebp - 0x110]
push ebx
push eax
call fcn.004095d0
add esp, 0xc
push 0xa
pop eax
push 0x104
push ebx
push dword [0x40f878]
mov dword [ebp - 0x110], edi
mov edi, dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [ebp - 0xe4], 1
mov word [ebp - 0xe0], ax
call edi
push 0x104
push ebx
push dword [0x40f878]
mov dword [ebp - 0x30], eax
call edi
push str..bat
push 0x40fca4
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x2c], ebx
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
mov edi, dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x408f86
push str..cmd
push 0x40fca4
call edi
test eax, eax
je 0x408f86
push str..ps1
push 0x40fca4
call edi
test eax, eax
jne 0x408fc1
mov eax, dword [ebp - 4]
test byte [eax + 0x18], 0x10
je 0x408fc1
call dword [sym.imp.KERNEL32.dll_GetVersion]
push str.___NUL
push dword [ebp - 0x34]
mov dword [ebp - 0xc], eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
cmp dword [ebp - 0xc], 0x80000000
jb 0x408fba
xor eax, eax
mov word [ebp - 0xe0], ax
jmp 0x408fc1
mov dword [ebp - 0x2c], 0x8000000
push dword [ebp - 0x10]
push ebx
push dword [0x40f878]
call dword [sym.imp.KERNEL32.dll_HeapFree]
cmp dword [ebp - 0x44], ebx
jne 0x409034
push str..wsf
push 0x40fca4
call edi
test eax, eax
je 0x409034
push str..wsh
push 0x40fca4
call edi
test eax, eax
je 0x409034
push 0x40a76c
push 0x40fca4
call edi
test eax, eax
jne 0x40900f
mov dword [ebp - 0x1c], str.mshta.exe
jmp 0x409066
push str..ps1
push 0x40fca4
call edi
test eax, eax
jne 0x4090fb
mov edi, 0x40f998
push edi
call fcn.00406b63
pop ecx
mov dword [ebp - 0x1c], edi
jmp 0x409066
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x18]
test al, 8
je 0x409054
test al, 0x10
je 0x40904b
mov dword [ebp - 0x1c], str.wscript.exe__B
jmp 0x409066
mov dword [ebp - 0x1c], str.wscript.exe
jmp 0x409066
mov dword [ebp - 0x1c], str.cscript.exe__B
test al, 0x10
jne 0x409066
mov dword [ebp - 0x1c], str.cscript.exe
push dword [ebp - 0x34]
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenA]
call edi
push dword [ebp - 0x1c]
mov dword [ebp - 0x44], eax
call edi
mov edi, dword [ebp - 0x44]
push dword [ebp - 0x28]
add edi, eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea eax, [eax + edi + 0xa]
push eax
push ebx
push dword [0x40f878]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
push str..ps1
mov edi, eax
push 0x40fca4
mov dword [ebp - 0xc], edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
push dword [ebp - 0x34]
test eax, eax
jne 0x4090d3
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push dword [ebp - 0x28]
push dword [ebp - 0x1c]
test eax, eax
jle 0x4090cc
push str._s__s
jmp 0x409140
push 0x40a694
jmp 0x4090ef
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push dword [ebp - 0x28]
push dword [ebp - 0x1c]
test eax, eax
jle 0x4090ea
push str._s___s_
jmp 0x409140
push 0x40a680
push edi
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
jmp 0x409168
push dword [ebp - 0x34]
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenA]
call edi
push dword [ebp - 0x28]
mov dword [ebp - 0x44], eax
call edi
mov ecx, dword [ebp - 0x44]
lea eax, [ecx + eax + 0xa]
push eax
push ebx
push dword [0x40f878]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
push dword [ebp - 0x34]
mov edi, eax
mov dword [ebp - 0xc], edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
jle 0x409156
push dword [ebp - 0x34]
push dword [ebp - 0x28]
push str.__s_
push edi
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
push dword [ebp - 0x34]
push edi
call dword [sym.imp.KERNEL32.dll_lstrcatA]
jmp 0x409168
push dword [ebp - 0x28]
push 0x40a670
push edi
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
push esi
call fcn.00405a66
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
lea ecx, [ebp - 0x58]
push ecx
lea ecx, [ebp - 0x110]
push ecx
push esi
push ebx
push dword [ebp - 0x2c]
xor eax, eax
inc eax
push eax
push ebx
push ebx
push dword [ebp - 0xc]
mov dword [ebp - 0x48], eax
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x4091ea
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x1c]
or ecx, 0xffffffff
cmp eax, ebx
je 0x4091b2
imul eax, eax, 0x3e8
mov ecx, eax
push ecx
push dword [ebp - 0x58]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x4091cd
push ebx
push dword [ebp - 0x58]
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
lea eax, [ebp - 0x48]
push eax
push dword [ebp - 0x58]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
push dword [ebp - 0x58]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
push dword [ebp - 0x54]
call edi
push esi
call fcn.00405a86
mov edi, dword [sym.imp.KERNEL32.dll_HeapFree]
pop ecx
push dword [ebp - 0x30]
push ebx
push dword [0x40f878]
call edi
push dword [ebp - 0x38]
push ebx
push dword [0x40f878]
call edi
push dword [ebp - 8]
push ebx
push dword [0x40f878]
call edi
push dword [ebp - 0xc]
push ebx
push dword [0x40f878]
call edi
push dword [ebp - 0x20]
push ebx
push dword [0x40f878]
call edi
push dword [ebp - 0x28]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push esi
push dword [ebp - 4]
call fcn.00406151
pop ecx
pop ecx
mov ecx, dword [ebp - 4]
call fcn.004034e6
push dword [ebp - 4]
call fcn.0040623c
pop ecx
push dword [ebp - 0x48]
jmp 0x408055