Function at 0x404fc0
Capabilities:
Create process on windows
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x3304
call fcn.00406850
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.USER32.dll_LoadStringA]
push esi
push edi
push 0x400
push 0x4130e8
push 4
xor edi, edi
push eax
mov dword [esp + 0x20], edi
mov dword [0x4134e8], eax
call ebx
mov esi, dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push 0x103
lea eax, [esp + 0x3dc]
push eax
call esi
lea ecx, [esp + 0x3d8]
push str.msiexec.exe
push ecx
call fcn.004058c0
lea edx, [esp + 0x3e0]
push edx
call fcn.00405970
add esp, 0xc
push 0x103
lea eax, [esp + 0x2d4]
push eax
call esi
lea ecx, [esp + 0x2d0]
push str.Msi.dll
push ecx
call fcn.004058c0
lea edx, [esp + 0x2d8]
push edx
call fcn.00405970
add esp, 0xc
mov dword [esp + 0x14], edi
mov dword [esp + 0x18], edi
mov edi, dword [ebp + 0x10]
push edi
mov dword [esp + 0x20], eax
xor esi, esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
jne 0x4050b3
mov ecx, dword [0x4134e8]
push 0x1000
lea eax, [esp + 0x6f4]
push eax
push 7
push ecx
call ebx
push esi
push 0x4130e8
lea edx, [esp + 0x6f8]
push edx
push esi
call dword [sym.imp.USER32.dll_MessageBoxA]
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
push edi
call fcn.00403d80
add esp, 4
test al, al
jne 0x4050de
mov ecx, dword [0x4134e8]
push 0x1000
lea eax, [esp + 0x1f14]
push eax
push 9
push ecx
call ebx
push edi
jmp 0x4051c9
push 0x104
lea edx, [esp + 0x4e4]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
cmp eax, 3
jb 0x4058b2
mov dword [esp + eax + 0x4dd], 0x696e69
lea eax, [esp + 0x4e0]
push eax
call fcn.00405970
add esp, 4
test eax, eax
jne 0x405177
mov edx, dword [0x4134e8]
push 0x1000
lea ecx, [esp + 0x1f14]
push ecx
push 0x14
push edx
call ebx
lea eax, [esp + 0x4e0]
push eax
lea ecx, [esp + 0x1f14]
push ecx
lea edx, [esp + 0x6f8]
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
push 0
push 0x4130e8
lea eax, [esp + 0x6f8]
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
push 0x104
xor eax, eax
push 0x412fe0
mov ecx, 0x41
mov edi, 0x412fe0
rep stosd dword es:[edi], eax
mov ecx, dword [ebp + 0x10]
push str.logfile
push ecx
lea edx, [esp + 0x4f0]
push edx
call fcn.00404560
add esp, 0x14
test eax, eax
jne 0x405205
mov ecx, dword [0x4134e8]
push 0x1000
lea eax, [esp + 0x1f14]
push eax
push 0x15
push ecx
call ebx
push str.logfile
lea edx, [esp + 0x1f14]
push edx
lea eax, [esp + 0x6f8]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
push 0
push 0x4130e8
lea ecx, [esp + 0x6f8]
push ecx
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov eax, dword [esp + 0x1c]
test eax, eax
jne 0x40522e
mov ebx, dword [sym.imp.USER32.dll_wsprintfA]
lea edx, [esp + 0x6f0]
push str.msi.dll_does_not_exist
push edx
call ebx
mov edi, 1
add esp, 8
mov esi, edi
jmp 0x405298
lea eax, [esp + 0x180]
push eax
lea ecx, [esp + 0x2d4]
push ecx
call fcn.00403a90
lea edx, [esp + 0x188]
push 0x40f484
push edx
call fcn.00403b70
add esp, 0x10
test eax, eax
jge 0x405263
mov esi, 1
jmp 0x40526b
mov dword [esp + 0x18], 1
mov ebx, dword [sym.imp.USER32.dll_wsprintfA]
lea eax, [esp + 0x180]
push eax
lea ecx, [esp + 0x2d4]
push ecx
lea edx, [esp + 0x6f8]
push str.Version_of__s:__s
push edx
call ebx
add esp, 0x10
mov edi, 1
lea eax, [esp + 0x78]
push eax
call fcn.004038e0
add esp, 4
call fcn.00403a60
test eax, eax
je 0x4052ba
push str.MsiNT
lea ecx, [esp + 0x7c]
push ecx
jmp 0x4052c4
push str.Msi9x
lea edx, [esp + 0x7c]
push edx
call fcn.004058c0
add esp, 8
lea eax, [esp + 0x78]
push str.instmsi.exe
push eax
call fcn.004058c0
add esp, 8
test esi, esi
je 0x405486
lea ecx, [esp + 0x78]
push ecx
call fcn.00405970
add esp, 4
test eax, eax
jne 0x405336
mov eax, dword [0x4134e8]
push 0x1000
lea edx, [esp + 0x1f14]
push edx
push 5
push eax
call dword [sym.imp.USER32.dll_LoadStringA]
lea ecx, [esp + 0x78]
push ecx
lea edx, [esp + 0x1f14]
push edx
lea eax, [esp + 0x6f8]
push eax
call ebx
lea ecx, [esp + 0x6fc]
push ecx
jmp 0x4058a8
lea edx, [esp + 0x30]
push edx
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
lea eax, [esp + 0x78]
push eax
lea ecx, [esp + 0x1b04]
push str._s__c:_msiinst__delayrebootq_
push ecx
call ebx
add esp, 0xc
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x34]
push eax
push 0
push 0
push 0x10
push edi
push 0
push 0
lea ecx, [esp + 0x1b20]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x4053ec
push 0x400
lea edx, [esp + 0x2f14]
push edx
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00403910
mov ecx, dword [0x4134e8]
add esp, 0xc
push 0x1000
lea eax, [esp + 0x1f14]
push eax
push 3
push ecx
call dword [sym.imp.USER32.dll_LoadStringA]
lea edx, [esp + 0x2f10]
push edx
lea eax, [esp + 0x7c]
push eax
lea ecx, [esp + 0x1f18]
push ecx
lea edx, [esp + 0x6fc]
push edx
call ebx
lea eax, [esp + 0x700]
push eax
push 0xffffffffffffffff
call fcn.00404600
add esp, 0x18
jmp 0x4053f9
mov ecx, dword [esp + 0x20]
push 0xffffffffffffffff
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [esp + 0x20]
lea edx, [esp + 0x10]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov ecx, dword [esp + 0x20]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esp + 0x10], 0xbc2
jne 0x405434
lea edx, [esp + 0x6f0]
push str.ERROR_SUCCESS_REBOOT_REQUIRED_detected.
push edx
call ebx
add esp, 8
mov dword [esp + 0x14], edi
lea eax, [esp + 0x2d0]
push eax
call fcn.00405970
add esp, 4
test eax, eax
jne 0x40544e
mov dword [esp + 0x14], edi
jmp 0x405486
lea ecx, [esp + 0x180]
push ecx
lea edx, [esp + 0x2d4]
push edx
call fcn.00403a90
lea eax, [esp + 0x188]
push 0x40f484
push eax
call fcn.00403b70
add esp, 0x10
test eax, eax
jge 0x405482
mov dword [esp + 0x14], edi
jmp 0x405486
mov dword [esp + 0x18], edi
lea ecx, [esp + 0x3d8]
push ecx
call fcn.00405970
add esp, 4
test eax, eax
je 0x40586a
mov eax, dword [esp + 0x18]
test eax, eax
je 0x40586a
lea ecx, [esp + 0x30]
call fcn.00401d40
xor eax, eax
push eax
lea edx, [esp + 0x34]
push str.deploy_02d
mov ecx, 0x200
mov edi, 0x4127e0
push edx
xor esi, esi
rep stosd dword es:[edi], eax
call fcn.00402790
add esp, 0xc
push 0x410
lea eax, [esp + 0x16f4]
push eax
lea ecx, [esp + 0x38]
call fcn.004018f0
mov ecx, dword [ebp + 0x10]
push eax
push ecx
lea edx, [esp + 0x4f0]
push edx
call fcn.00404560
add esp, 0x14
test eax, eax
je 0x405708
lea esp, [esp]
lea eax, [esp + 0x16f0]
push 0x40f3fc
push eax
call fcn.00403cb0
mov edi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
add esp, 8
push eax
lea ecx, [esp + 0x184]
push ecx
call edi
lea edx, [esp + 0x1c]
push edx
push 0x4127e0
lea eax, [esp + 0x188]
push 0x40f3f0
push eax
mov dword [esp + 0x2c], 0x800
call fcn.00404340
add esp, 0x10
test esi, esi
jne 0x4055a1
lea ecx, [esp + 0x16f0]
push str.TRANSFORMS
push ecx
call fcn.00403cb0
add esp, 8
push eax
lea edx, [esp + 0x5ec]
push edx
call edi
lea eax, [esp + 0x5e8]
push eax
lea ecx, [esp + 0x184]
push ecx
call fcn.00403fa0
add esp, 8
test eax, eax
je 0x40576f
lea edx, [esp + 0x288]
push edx
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
mov eax, dword [esp + 0x14]
test eax, eax
lea eax, [esp + 0x16f0]
lea ecx, [esp + 0x3d8]
push eax
lea edx, [esp + 0x1b04]
push ecx
jne 0x4055d5
push str._s__s
jmp 0x4055da
push str._s__s_WISEDELAYEDREBOOT1_DELAYEDREBOOT1
push edx
call ebx
add esp, 0x10
lea eax, [esp + 0x1b00]
push eax
lea ecx, [esp + 0x6f4]
push str.Launching_command:__s
push ecx
call ebx
add esp, 0xc
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x28c]
push eax
push 0
push 0
push 0x10
push 1
push 0
push 0
lea ecx, [esp + 0x1b20]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x4057c9
mov edx, dword [esp + 0x20]
push 0xffffffffffffffff
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, dword [esp + 0x20]
lea eax, [esp + 0x10]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov edx, dword [esp + 0x20]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esp + 0x10], 0xbc2
jne 0x405677
lea eax, [esp + 0x6f0]
push str.ERROR_SUCCESS_REBOOT_REQUIRED_detected.
push eax
call ebx
add esp, 8
mov dword [esp + 0x14], 1
push 0x412fe0
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
je 0x405698
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
push ecx
push edx
call fcn.00404ab0
add esp, 8
mov eax, dword [esp + 0x10]
test eax, eax
je 0x4056ab
cmp eax, 0xbc2
jne 0x405856
xor eax, eax
inc esi
mov ecx, 0x200
mov edi, 0x4127e0
push esi
rep stosd dword es:[edi], eax
lea eax, [esp + 0x34]
push str.deploy_02d
push eax
call fcn.00402790
add esp, 0xc
push 0x410
lea ecx, [esp + 0x16f4]
push ecx
lea ecx, [esp + 0x38]
call fcn.004018f0
mov edx, dword [ebp + 0x10]
push eax
push edx
lea eax, [esp + 0x4f0]
push eax
call fcn.00404560
add esp, 0x14
test eax, eax
jne 0x405510
test esi, esi
jg 0x405856
mov edx, dword [0x4134e8]
push 0x1000
lea ecx, [esp + 0x1f14]
push ecx
push 0x15
push edx
call dword [sym.imp.USER32.dll_LoadStringA]
lea ecx, [esp + 0x30]
call fcn.004018f0
push eax
lea eax, [esp + 0x1f14]
push eax
lea ecx, [esp + 0x6f8]
push ecx
call ebx
add esp, 0xc
push 0
push 0x4130e8
lea edx, [esp + 0x6f8]
push edx
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
lea ecx, [esp + 0x30]
call fcn.00401d70
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov ecx, dword [0x4134e8]
push 0x1000
lea eax, [esp + 0x6f4]
push eax
push 0x17
push ecx
call dword [sym.imp.USER32.dll_LoadStringA]
push 0
push 0x4130e8
lea edx, [esp + 0x6f8]
push edx
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
lea eax, [esp + 0x6f0]
push eax
push 0xffffffffffffffff
call fcn.00404600
add esp, 8
lea ecx, [esp + 0x30]
call fcn.00401d70
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
push 0x400
lea ecx, [esp + 0x2f14]
push ecx
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00403910
add esp, 0xc
push 0x1000
xor eax, eax
lea edx, [esp + 0x1f14]
push edx
mov ecx, 0x400
lea edi, [esp + 0x1f18]
rep stosd dword es:[edi], eax
mov eax, dword [0x4134e8]
push 3
push eax
call dword [sym.imp.USER32.dll_LoadStringA]
lea ecx, [esp + 0x2f10]
push ecx
lea edx, [esp + 0x7c]
push edx
lea eax, [esp + 0x1f18]
push eax
lea ecx, [esp + 0x6fc]
push ecx
call ebx
lea edx, [esp + 0x700]
push edx
push 0xffffffffffffffff
call fcn.00404600
add esp, 0x18
lea ecx, [esp + 0x30]
call fcn.00401d70
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
lea ecx, [esp + 0x30]
call fcn.00401d70
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov ecx, dword [0x4134e8]
push 0x1000
lea eax, [esp + 0x1f14]
push eax
push 6
push ecx
call dword [sym.imp.USER32.dll_LoadStringA]
lea edx, [esp + 0x3d8]
push edx
lea eax, [esp + 0x1f14]
push eax
lea ecx, [esp + 0x6f8]
push ecx
call ebx
lea edx, [esp + 0x6fc]
push edx
push 0xffffffffffffffff
call fcn.00404600
add esp, 0x14
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov esp, ebp
pop ebp
ret 0x10