Function at 0x402210
Capabilities:
Check if file exists
Create directory
Create process on windows
Delete file
Extract resource via kernel32 functions
Get common file path
Get file attributes
Get file size
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, 0x534
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 [section..data], eax
push 0x104
push 0x405430
push 1
mov eax, dword [ebp - 0x178]
push eax
call dword [sym.imp.USER32.dll_LoadStringA]
push 8
push 0x405214
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 0x405214
call fcn.004020e0
add esp, 0xc
mov dword [ebp - 4], eax
push 0x208
push 0
mov eax, dword [section..data]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [ebp - 0x18c], eax
cmp dword [ebp - 0x18c], 0
jne 0x4022c0
jmp 0x4037ed
push 0x79
push 5
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov dword [ebp - 0x180], eax
cmp dword [ebp - 0x180], 0
je 0x402348
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 0x402348
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 0x402348
mov eax, dword [ebp - 0x180]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0x198], eax
cmp dword [ebp - 0x198], 1
jne 0x402348
mov ecx, dword [ebp - 0x154]
movzx edx, byte [ecx]
cmp edx, 1
jne 0x402348
mov dword [ebp - 8], 0
mov byte [0x405008], 0
push 0x79
push 3
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov dword [ebp - 0x180], eax
cmp dword [ebp - 0x180], 0
je 0x402441
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 0x402394
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 0x4023b8
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 - 0x19c], eax
cmp dword [ebp - 0x19c], 0x100
jbe 0x4023e1
push 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push 0x100
push 0
push 0x405110
call fcn.004038f0
add esp, 0xc
push str.Everstrike_Software
push 0x405110
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov eax, dword [ebp - 0x19c]
mov byte [eax + 0x405008], 0
mov ecx, dword [ebp - 0x19c]
push ecx
mov edx, dword [ebp - 0x154]
push edx
push 0x405008
call fcn.004039a0
add esp, 0xc
mov eax, dword [ebp - 0x19c]
push eax
push 0x405008
call fcn.00401c30
add esp, 8
push 0x405008
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
jne 0x402540
push 0x104
push 0x405328
push 0x21
mov ecx, dword [ebp - 0x178]
push ecx
call dword [sym.imp.USER32.dll_LoadStringA]
cmp dword [ebp - 8], 0
jne 0x402491
push 0
push 0x40415c
push 0x405328
call dword [sym.imp.USER32.dll_GetForegroundWindow]
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
jmp 0x402540
push 0xfffffffffffffff5
call fcn.00401b20
add esp, 4
mov dword [ebp - 0x1a0], eax
push 0xfffffffffffffff6
call fcn.00401b20
add esp, 4
mov dword [ebp - 0x1b8], eax
cmp dword [ebp - 0x1a0], 0xffffffff
je 0x402540
push 0x405328
push 0x405328
call dword [sym.imp.USER32.dll_CharToOemA]
push 0
lea edx, [ebp - 0x198]
push edx
push 0x405328
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
push 0x405328
mov eax, dword [ebp - 0x1a0]
push eax
call fcn.00401b70
add esp, 0x14
mov ecx, 1
test ecx, ecx
je 0x402540
lea edx, [ebp - 0x198]
push edx
push 1
lea eax, [ebp - 0x1b4]
push eax
mov ecx, dword [ebp - 0x1b8]
push ecx
call dword [sym.imp.KERNEL32.dll_ReadConsoleInputA]
test eax, eax
jne 0x402523
jmp 0x402540
movzx edx, word [ebp - 0x1b4]
cmp edx, 1
je 0x402531
jmp 0x4024f7
cmp dword [ebp - 0x1b0], 0
jne 0x40253c
jmp 0x4024f7
jmp 0x402540
movsx eax, byte [0x405008]
cmp eax, 0x31
jne 0x4027ec
mov byte [ebp - 0x1b9], 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 0x40257d
push 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]
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 0x4025a3
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 0x4025c7
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 - 0x198], eax
cmp dword [ebp - 0x198], 9
jne 0x402606
push 9
push 0x404164
mov ecx, dword [ebp - 0x154]
push ecx
call fcn.00403930
add esp, 0xc
test eax, eax
jne 0x402606
mov byte [ebp - 0x1b9], 0
movzx edx, byte [ebp - 0x1b9]
test edx, edx
je 0x4027ec
mov dword [ebp - 0x1c0], 0
lea eax, [ebp - 0x3c8]
push eax
push 0
push 0
push 0x2e
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
mov dword [ebp - 0x3cc], eax
cmp dword [ebp - 0x3cc], 0
jl 0x4026a5
push str.EverstrikeExeScript_Prokey.txt
lea ecx, [ebp - 0x3c8]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push 0
push 0x80
push 3
push 0
push 3
push SysReAllocString
lea edx, [ebp - 0x3c8]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x3d0], eax
cmp dword [ebp - 0x3d0], 0xffffffff
je 0x4026a5
push 0
mov eax, dword [ebp - 0x3d0]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x1c0], eax
mov ecx, dword [ebp - 0x3d0]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x1c0], 0xb7
jae 0x4027ec
mov byte [0x405328], 0
mov byte [ebp - 0x4e0], 0
push 0x104
push 0x405328
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0x405328
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov dword [ebp - 0x3d4], eax
mov edx, dword [ebp - 0x3d4]
sub edx, 1
mov dword [ebp - 0x20], edx
jmp 0x4026fd
mov eax, dword [ebp - 0x20]
sub eax, 1
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jl 0x40272a
mov ecx, dword [ebp - 0x20]
movsx edx, byte [ecx + 0x405328]
cmp edx, 0x5c
jne 0x402728
mov eax, dword [ebp - 0x20]
add eax, 0x405329
push eax
lea ecx, [ebp - 0x4e0]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
jmp 0x4026f4
push 0x104
lea edx, [ebp - 0x3c8]
push edx
push 0x51
mov eax, dword [ebp - 0x178]
push eax
call dword [sym.imp.USER32.dll_LoadStringA]
lea ecx, [ebp - 0x4e0]
push ecx
lea edx, [ebp - 0x3c8]
push edx
push 0x405328
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
cmp dword [ebp - 8], 0
jne 0x402782
push 0
push str.Warning
push 0x405328
call dword [sym.imp.USER32.dll_GetForegroundWindow]
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
jmp 0x4027e4
push 0xfffffffffffffff5
call fcn.00401b20
add esp, 4
mov dword [ebp - 0x4e4], eax
push 0xfffffffffffffff6
call fcn.00401b20
add esp, 4
mov dword [ebp - 0x4e8], eax
cmp dword [ebp - 0x4e4], 0xffffffff
je 0x4027e4
push 0x405328
push 0x405328
call dword [sym.imp.USER32.dll_CharToOemA]
push 0
lea eax, [ebp - 0x198]
push eax
push 0x405328
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
push 0x405328
mov ecx, dword [ebp - 0x4e4]
push ecx
call fcn.00401b70
add esp, 0x14
push 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push 0x405008
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
jle 0x40288e
push 0x100
push 0
push 0x405110
call fcn.004038f0
add esp, 0xc
cmp dword [ebp - 0x164], 0
jne 0x40287c
push 0x405008
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov dword [ebp - 0x4ec], eax
mov dword [ebp - 0x4f0], 0
jmp 0x402848
mov edx, dword [ebp - 0x4f0]
add edx, 1
mov dword [ebp - 0x4f0], edx
mov eax, dword [ebp - 0x4f0]
cmp eax, dword [ebp - 0x4ec]
jae 0x40287a
mov ecx, dword [ebp - 0x4f0]
movsx edx, byte [ecx + 0x405008]
movsx eax, byte [ebp - 0x4f0]
xor edx, eax
mov ecx, dword [ebp - 0x4f0]
mov byte [ecx + 0x405110], dl
jmp 0x402839
jmp 0x40288c
push 0x405328
push 0x405110
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
jmp 0x4028b2
push 0x100
push 0
push 0x405110
call fcn.004038f0
add esp, 0xc
push str.ExeScript
push 0x405110
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 0x79
push 2
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov dword [ebp - 0x180], eax
cmp dword [ebp - 0x180], 0
jne 0x4028d5
push 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]
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
jne 0x4028fb
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 0x40291f
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 - 0x1c], eax
mov edx, dword [ebp - 0x1c]
push edx
push 0
mov eax, dword [section..data]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [ebp - 0x188], eax
cmp dword [ebp - 0x188], 0
jne 0x40295a
push 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov ecx, dword [ebp - 0x1c]
sub ecx, 4
push ecx
mov edx, dword [ebp - 0x154]
add edx, 4
push edx
mov eax, dword [ebp - 0x188]
push eax
call fcn.004039a0
add esp, 0xc
mov ecx, dword [ebp - 0x1c]
sub ecx, 4
push ecx
mov edx, dword [ebp - 0x188]
push edx
call fcn.00401c30
add esp, 8
mov eax, dword [ebp - 0x154]
mov ecx, dword [eax]
mov dword [ebp - 0x1c], ecx
mov edx, dword [ebp - 0x188]
add edx, dword [ebp - 0x1c]
mov byte [edx], 0
push 0x79
push 1
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov dword [ebp - 0x180], eax
cmp dword [ebp - 0x180], 0
jne 0x4029e0
mov eax, dword [ebp - 0x188]
push eax
push 0
mov ecx, dword [section..data]
push ecx
call dword [sym.imp.KERNEL32.dll_HeapFree]
push 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]
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
jne 0x402a1c
mov eax, dword [ebp - 0x188]
push eax
push 0
mov ecx, dword [section..data]
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 0x402a56
mov eax, dword [ebp - 0x188]
push eax
push 0
mov ecx, dword [section..data]
push ecx
call dword [sym.imp.KERNEL32.dll_HeapFree]
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 - 0x10], eax
mov eax, dword [ebp - 0x10]
add eax, 1
push eax
push 0
mov ecx, dword [section..data]
push ecx
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [ebp - 0x160], eax
cmp dword [ebp - 0x160], 0
jne 0x402aaa
mov edx, dword [ebp - 0x188]
push edx
push 0
mov eax, dword [section..data]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
push 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov ecx, dword [ebp - 0x10]
push ecx
mov edx, dword [ebp - 0x154]
push edx
mov eax, dword [ebp - 0x160]
push eax
call fcn.004039a0
add esp, 0xc
mov ecx, dword [ebp - 0x10]
push ecx
mov edx, dword [ebp - 0x160]
push edx
call fcn.00401c30
add esp, 8
mov eax, dword [ebp - 0x160]
add eax, dword [ebp - 0x10]
mov byte [eax], 0
push 0x18
call fcn.004038a0
add esp, 4
mov dword [ebp - 0x514], eax
cmp dword [ebp - 0x514], 0
je 0x402b16
mov ecx, dword [ebp - 0x160]
push ecx
mov ecx, dword [ebp - 0x514]
call fcn.00401040
mov dword [ebp - 0x528], eax
jmp 0x402b20
mov dword [ebp - 0x528], 0
mov edx, dword [ebp - 0x528]
mov dword [ebp - 0x150], edx
mov eax, dword [ebp - 0x150]
mov ecx, dword [eax + 0xc]
mov dword [ebp - 0x52c], ecx
cmp dword [ebp - 0x52c], 0
je 0x402b5b
cmp dword [ebp - 0x52c], 1
je 0x402b70
cmp dword [ebp - 0x52c], 2
je 0x402b85
jmp 0x402c26
push 0x405220
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
jmp 0x402c26
push 0x405220
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
jmp 0x402c26
mov ecx, dword [ebp - 0x150]
call fcn.00401250
push eax
push 0x405220
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 0x104
push 0x405328
push 0x405220
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
mov ecx, dword [ebp - 0x150]
call fcn.00401250
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov dword [ebp - 0x4f4], eax
cmp dword [ebp - 0x4f4], 0xffffffff
jne 0x402bdf
push 0
push 0x405328
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push 0x405328
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov dword [ebp - 0x4f4], eax
cmp dword [ebp - 0x4f4], 0xffffffff
je 0x402c16
mov edx, dword [ebp - 0x4f4]
and edx, 0x10
je 0x402c16
push 0x405328
push 0x405220
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
jmp 0x402c26
push 0x405220
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
push 0x405220
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov dword [ebp - 0x158], eax
cmp dword [ebp - 0x158], 0
jle 0x402c5f
mov eax, dword [ebp - 0x158]
movsx ecx, byte [eax + 0x40521f]
cmp ecx, 0x5c
jne 0x402c5f
mov edx, dword [ebp - 0x158]
mov byte [edx + 0x40521f], 0
call fcn.00403800
mov dword [ebp - 0x184], eax
mov eax, dword [ebp - 0x184]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
jne 0x402c8c
mov ecx, dword [ebp - 0x150]
call fcn.00401280
mov dword [ebp - 0x184], eax
mov dword [ebp - 0x70], 0
push 0x405214
push 0x405430
push 0x405220
push 0x4041a8
mov ecx, dword [ebp - 0x18c]
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 - 0x18c]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x15c], eax
cmp dword [ebp - 0x15c], 0xffffffff
jne 0x402d11
mov dword [ebp - 0x70], 1
push 0
push 0x80
push 1
push 0
push 7
push 0x40000000
mov eax, dword [ebp - 0x18c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x15c], eax
cmp dword [ebp - 0x15c], 0xffffffff
jne 0x402d65
push 0x405220
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
push 0x405220
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov dword [ebp - 0x158], eax
cmp dword [ebp - 0x158], 0
jle 0x402d63
mov ecx, dword [ebp - 0x158]
movsx edx, byte [ecx + 0x40521f]
cmp edx, 0x5c
jne 0x402d63
mov eax, dword [ebp - 0x158]
mov byte [eax + 0x40521f], 0
jmp 0x402d85
mov ecx, dword [ebp - 0x15c]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x70], 0
je 0x402d85
mov edx, dword [ebp - 0x18c]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, dword [ebp - 0x150]
mov dword [0x405640], eax
push 0x104
push 0x405328
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0x405328
call fcn.00401f30
add esp, 4
push 0x405328
push str.ES.exe.pathname
lea ecx, [ebp - 0x1c]
push ecx
mov edx, dword [ebp - 0x188]
push edx
call fcn.00401e00
add esp, 0x10
mov dword [ebp - 0x188], eax
push 0x405328
call dword [sym.imp.KERNEL32.dll_lstrlenA]
sub eax, 1
mov dword [ebp - 0x20], eax
jmp 0x402dee
mov eax, dword [ebp - 0x20]
sub eax, 1
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jl 0x402eac
mov ecx, dword [ebp - 0x20]
movsx edx, byte [ecx + 0x405328]
cmp edx, 0x5c
jne 0x402ea7
mov eax, dword [ebp - 0x20]
add eax, 0x405329
push eax
push str.ES.exe.name
lea ecx, [ebp - 0x1c]
push ecx
mov edx, dword [ebp - 0x188]
push edx
call fcn.00401e00
add esp, 0x10
mov dword [ebp - 0x188], eax
mov eax, dword [ebp - 0x20]
mov byte [eax + 0x405328], 0
push 0x4041d4
push 0x405214
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
jne 0x402e5a
mov ecx, dword [ebp - 0x20]
mov byte [ecx + 0x405327], 0
push 0x405328
push str.ES.exe.path
lea edx, [ebp - 0x1c]
push edx
mov eax, dword [ebp - 0x188]
push eax
call fcn.00401e00
add esp, 0x10
mov dword [ebp - 0x188], eax
mov ecx, dword [ebp - 0x20]
mov byte [ecx + 0x405328], 0x5c
push 0x4041e8
push 0x405214
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
jne 0x402ea5
mov edx, dword [ebp - 0x20]
mov byte [edx + 0x405327], 0x5c
jmp 0x402eac
jmp 0x402de5
push 0x405328
call fcn.00402010
add esp, 4
push 0x405214
push 0x405430
push 0x405220
push 0x4041ec
push 0x405328
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x14
push 0x405328
call fcn.00401f30
add esp, 4
push 0x405328
push str.ES.script.pathname
lea eax, [ebp - 0x1c]
push eax
mov ecx, dword [ebp - 0x188]
push ecx
call fcn.00401e00
add esp, 0x10
mov dword [ebp - 0x188], eax
push 0x405328
call fcn.00402010
add esp, 4
push 0x405214
push 0x405430
push str._s_s
push 0x405328
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
push 0x405328
call fcn.00401f30
add esp, 4
push 0x405328
push str.ES.script.name
lea edx, [ebp - 0x1c]
push edx
mov eax, dword [ebp - 0x188]
push eax
call fcn.00401e00
add esp, 0x10
mov dword [ebp - 0x188], eax
push 0x405328
call fcn.00402010
add esp, 4
push 0x405220
call fcn.00401f30
add esp, 4
push 0x405220
push str.ES.res.path
lea ecx, [ebp - 0x1c]
push ecx
mov edx, dword [ebp - 0x188]
push edx
call fcn.00401e00
add esp, 0x10
mov dword [ebp - 0x188], eax
push 0x405220
push str.ES.script.path
lea eax, [ebp - 0x1c]
push eax
mov ecx, dword [ebp - 0x188]
push ecx
call fcn.00401e00
add esp, 0x10
mov dword [ebp - 0x188], eax
push 0x405220
call fcn.00402010
add esp, 4
mov dword [ebp - 0x148], 0
push 0x104
push 0x405328
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0x405214
push 0x405430
push 0x405220
push str._s_s_s
mov edx, dword [ebp - 0x18c]
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 - 0x18c]
push eax
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 0x4030ae
cmp dword [ebp - 0x190], 0xb7
je 0x403061
cmp dword [ebp - 0x190], 0x50
jne 0x4030ae
push 0x405214
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
push 0x405220
push str._s_d_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
jmp 0x403043
cmp dword [ebp - 0x15c], 0xffffffff
jne 0x40312a
mov eax, dword [ebp - 0x160]
push eax
push 0
mov ecx, dword [section..data]
push ecx
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov edx, dword [ebp - 0x188]
push edx
push 0
mov eax, dword [section..data]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov ecx, dword [ebp - 0x150]
mov dword [ebp - 0x51c], ecx
mov edx, dword [ebp - 0x51c]
mov dword [ebp - 0x518], edx
cmp dword [ebp - 0x518], 0
je 0x403118
push 1
mov ecx, dword [ebp - 0x518]
call fcn.00403c70
mov dword [ebp - 0x530], eax
jmp 0x403122
mov dword [ebp - 0x530], 0
push 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push 0x404250
push 0x405214
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x403272
mov dword [ebp - 0x504], str.___________ExeScript_Options_Begin______
mov dword [ebp - 0x4f8], str.______ExeScript_Options_End__________
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x4fc], eax
mov ecx, dword [ebp - 0x504]
push ecx
mov edx, dword [ebp - 0x188]
push edx
call fcn.00403a00
add esp, 8
mov dword [ebp - 0x508], eax
cmp dword [ebp - 0x508], 0
je 0x4031ba
mov eax, dword [ebp - 0x508]
sub eax, dword [ebp - 0x188]
mov dword [ebp - 0x500], eax
push 0
lea ecx, [ebp - 0x198]
push ecx
mov edx, dword [ebp - 0x500]
push edx
mov eax, dword [ebp - 0x188]
push eax
mov ecx, dword [ebp - 0x15c]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov edx, dword [ebp - 0x4f8]
push edx
mov eax, dword [ebp - 0x188]
push eax
call fcn.00403a00
add esp, 8
mov dword [ebp - 0x508], eax
cmp dword [ebp - 0x508], 0
je 0x403240
mov ecx, dword [ebp - 0x508]
sub ecx, dword [ebp - 0x188]
mov dword [ebp - 0x500], ecx
mov edx, dword [ebp - 0x4fc]
sub edx, dword [ebp - 0x500]
mov dword [ebp - 0x4fc], edx
mov eax, dword [ebp - 0x4f8]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
add eax, 2
mov ecx, dword [ebp - 0x4fc]
sub ecx, eax
mov dword [ebp - 0x4fc], ecx
mov edx, dword [ebp - 0x4f8]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [ebp - 0x508]
lea edx, [ecx + eax + 2]
mov dword [ebp - 0x508], edx
jmp 0x40324c
mov eax, dword [ebp - 0x188]
mov dword [ebp - 0x508], eax
push 0
lea ecx, [ebp - 0x198]
push ecx
mov edx, dword [ebp - 0x4fc]
push edx
mov eax, dword [ebp - 0x508]
push eax
mov ecx, dword [ebp - 0x15c]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x403293
push 0
lea edx, [ebp - 0x198]
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.004038f0
add esp, 0xc
push 0x44
push 0
lea edx, [ebp - 0x68]
push edx
call fcn.004038f0
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 [section..data]
push ecx
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [ebp - 0x14], eax
push 0x104
push 0
mov edx, dword [section..data]
push edx
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [ebp - 0x6c], eax
mov dword [ebp - 0xc], 0
push str..bat
push 0x405214
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x40334b
push 0x4042b4
push 0x405214
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x40334b
push 0x4042bc
push 0x405214
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x403397
mov eax, dword [ebp - 0x150]
mov ecx, dword [eax + 0x10]
and ecx, 0x10
je 0x403397
call dword [sym.imp.KERNEL32.dll_GetVersion]
mov dword [ebp - 0x50c], eax
push str.___NUL
mov edx, dword [ebp - 0x184]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
cmp dword [ebp - 0x50c], 0x80000000
jb 0x40338b
xor eax, eax
mov word [ebp - 0x38], ax
jmp 0x403397
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 [section..data]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
cmp dword [ebp - 4], 0
jne 0x4033d7
push str..wsf
push 0x405214
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x4033d7
push str..wsh
push 0x405214
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x403431
mov ecx, dword [ebp - 0x150]
mov edx, dword [ecx + 0x10]
and edx, 8
je 0x40340b
mov eax, dword [ebp - 0x150]
mov ecx, dword [eax + 0x10]
and ecx, 0x10
je 0x4033ff
mov dword [ebp - 0x194], str.wscript.exe__B
jmp 0x403409
mov dword [ebp - 0x194], str.wscript.exe
jmp 0x40342f
mov edx, dword [ebp - 0x150]
mov eax, dword [edx + 0x10]
and eax, 0x10
je 0x403425
mov dword [ebp - 0x194], str.cscript.exe__B
jmp 0x40342f
mov dword [ebp - 0x194], str.cscript.exe
jmp 0x40347b
push str..hta
push 0x405214
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x403451
mov dword [ebp - 0x194], str.mshta.exe
jmp 0x40347b
push 0x404328
push 0x405214
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x403471
mov dword [ebp - 0x194], str.powershell.exe
jmp 0x40347b
mov dword [ebp - 0x194], 0
cmp dword [ebp - 0x194], 0
je 0x4035ad
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 [section..data]
push edx
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [ebp - 0x74], eax
push str..ps1
push 0x405214
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x403544
mov eax, dword [ebp - 0x184]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
jle 0x403522
mov ecx, dword [ebp - 0x18c]
push ecx
mov edx, dword [ebp - 0x194]
push edx
push 0x404348
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 0x403542
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 0x4035a8
mov eax, dword [ebp - 0x184]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
jle 0x403588
mov ecx, dword [ebp - 0x18c]
push ecx
mov edx, dword [ebp - 0x194]
push edx
push 0x404360
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 0x4035a8
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 0x40363c
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 [section..data]
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 0x403623
mov edx, dword [ebp - 0x184]
push edx
mov eax, dword [ebp - 0x18c]
push eax
push 0x404374
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 0x40363c
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], 0x405220
mov eax, dword [ebp - 0x18]
push eax
call fcn.00401da0
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 0x403715
mov dword [ebp - 0x510], 0xffffffff
mov ecx, dword [ebp - 0x150]
cmp dword [ecx + 0x14], 0
je 0x4036bd
mov edx, dword [ebp - 0x150]
mov eax, dword [edx + 0x14]
imul eax, eax, 0x3e8
mov dword [ebp - 0x510], eax
mov ecx, dword [ebp - 0x510]
push ecx
mov edx, dword [ebp - 0x174]
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x4036e7
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.00401dd0
add esp, 4
cmp dword [ebp - 0x18], 0x405220
je 0x403743
cmp dword [ebp - 0x18], 0
je 0x403743
mov eax, dword [ebp - 0x18]
push eax
push 0
mov ecx, dword [section..data]
push ecx
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov edx, dword [ebp - 0x14]
push edx
push 0
mov eax, dword [section..data]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov ecx, dword [ebp - 0x160]
push ecx
push 0
mov edx, dword [section..data]
push edx
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [ebp - 0x188]
push eax
push 0
mov ecx, dword [section..data]
push ecx
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov edx, dword [ebp - 0x74]
push edx
push 0
mov eax, dword [section..data]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov ecx, dword [ebp - 0x18c]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov edx, dword [ebp - 0x150]
mov dword [ebp - 0x524], edx
mov eax, dword [ebp - 0x524]
mov dword [ebp - 0x520], eax
cmp dword [ebp - 0x520], 0
je 0x4037d6
push 1
mov ecx, dword [ebp - 0x520]
call fcn.00403c70
mov dword [ebp - 0x534], eax
jmp 0x4037e0
mov dword [ebp - 0x534], 0
mov ecx, dword [ebp - 0x144]
push ecx
call dword [sym.imp.KERNEL32.dll_ExitProcess]
jmp 0x4037f1
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret