Function at 0x4057f0
Capabilities:
Create process on windows
Create process suspended
Delete file
Get hostname
Move file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1460
call fcn.00407600
mov eax, dword [0x424624]
xor eax, ebp
mov dword [ebp - 4], eax
call fcn.0040c003
cmp dword [eax], 2
jge 0x405825
mov eax, dword [ebp + 0x10]
push eax
call fcn.00401030
add esp, 4
or eax, 0xffffffff
jmp 0x406203
xor ecx, ecx
mov word [ebp - 0x220], cx
push 0x208
push 0
lea edx, [ebp - 0x21e]
push edx
call fcn.00408b80
add esp, 0xc
mov dword [ebp - 0x13c0], 0
jmp 0x40585f
mov eax, dword [ebp - 0x13c0]
add eax, 1
mov dword [ebp - 0x13c0], eax
call fcn.0040c003
mov ecx, dword [ebp - 0x13c0]
cmp ecx, dword [eax]
jge 0x4058c5
call fcn.0040c009
mov edx, dword [eax]
mov eax, dword [ebp - 0x13c0]
cmp dword [edx + eax*4], 0
jne 0x405883
jmp 0x405850
push 0x104
call fcn.0040c009
mov ecx, dword [eax]
mov edx, dword [ebp - 0x13c0]
mov eax, dword [ecx + edx*4]
push eax
lea ecx, [ebp - 0x220]
push ecx
call fcn.0040bfa7
add esp, 0xc
lea edx, [ebp - 0x220]
push edx
mov eax, dword [ebp - 0x13c0]
push eax
push str._inst____wargv__d_:__s
call fcn.00401030
add esp, 0xc
jmp 0x405850
push 0x41b8c8
lea ecx, [ebp - 0xe7c]
call fcn.00402990
call fcn.0040c003
cmp dword [eax], 3
jl 0x405a21
call fcn.0040c009
mov ecx, 4
shl ecx, 1
mov edx, dword [eax]
cmp dword [ecx + edx], 0
je 0x405a21
call fcn.0040c009
mov ecx, 4
shl ecx, 1
mov edx, dword [eax]
mov eax, dword [edx + ecx]
push eax
lea ecx, [ebp - 0xe94]
call fcn.00402990
lea ecx, [ebp - 0xe94]
push ecx
lea edx, [ebp - 0xf54]
push edx
call fcn.004010d0
add esp, 8
push eax
lea ecx, [ebp - 0xe7c]
call fcn.004063c0
lea ecx, [ebp - 0xf54]
call fcn.00402bf0
lea ecx, [ebp - 0xe7c]
call fcn.00404880
movzx eax, al
test eax, eax
je 0x4059a5
lea ecx, [ebp - 0xe94]
push ecx
lea edx, [ebp - 0xeac]
push edx
call fcn.004014a0
add esp, 8
lea eax, [ebp - 0xeac]
push eax
lea ecx, [ebp - 0xf3c]
push ecx
call fcn.00401230
add esp, 8
push eax
lea ecx, [ebp - 0xe7c]
call fcn.004063c0
lea ecx, [ebp - 0xf3c]
call fcn.00402bf0
lea ecx, [ebp - 0xeac]
call fcn.00402bf0
push 0x41b8cc
lea ecx, [ebp - 0xf0c]
call fcn.00402990
push 0x41b8d0
lea ecx, [ebp - 0xec4]
call fcn.00402990
lea edx, [ebp - 0xf0c]
push edx
lea eax, [ebp - 0xec4]
push eax
lea ecx, [ebp - 0xe7c]
push ecx
lea edx, [ebp - 0xf24]
push edx
call fcn.004017d0
add esp, 0x10
push eax
lea ecx, [ebp - 0xe7c]
call fcn.004063c0
lea ecx, [ebp - 0xf24]
call fcn.00402bf0
lea ecx, [ebp - 0xec4]
call fcn.00402bf0
lea ecx, [ebp - 0xf0c]
call fcn.00402bf0
lea ecx, [ebp - 0xe94]
call fcn.00402bf0
mov dword [ebp - 0x1460], 0
push 0x40
push 0
lea eax, [ebp - 0x145c]
push eax
call fcn.00408b80
add esp, 0xc
mov dword [ebp - 0x1460], 0x44
mov dword [ebp - 0x13f0], 0
xor ecx, ecx
mov dword [ebp - 0x13ec], ecx
mov dword [ebp - 0x13e8], ecx
mov dword [ebp - 0x13e4], ecx
mov dword [ebp - 0x13cc], str.DOMAIN
mov edx, dword [ebp - 0x13cc]
push edx
call fcn.0040bebf
add esp, 4
cmp eax, 1
jne 0x405ab9
mov eax, 2
imul ecx, eax, 0
mov edx, dword [ebp - 0x13cc]
movzx eax, word [edx + ecx]
cmp eax, 0x2e
jne 0x405ab9
mov dword [ebp - 0x1408], 0x10
lea ecx, [ebp - 0x1408]
push ecx
mov edx, dword [ebp - 0x13cc]
push edx
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
mov dword [ebp - 0x13c4], 0
jmp 0x405ad4
mov eax, dword [ebp - 0x13c4]
add eax, 1
mov dword [ebp - 0x13c4], eax
cmp dword [ebp - 0x13c4], 0x10
jge 0x405b00
mov ecx, dword [ebp - 0x13c4]
add ecx, 1
mov eax, ecx
imul eax, dword [ebp - 0x13c4]
cdq
sub eax, edx
sar eax, 1
mov edx, dword [ebp - 0x13c4]
mov byte [ebp + edx - 0x14], al
jmp 0x405ac5
push 0x10
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x13bc]
push ecx
call fcn.00406b20
add esp, 0xc
mov edx, 2
imul eax, edx, 0
movzx ecx, word [eax + str.USER]
mov dword [ebp - 0x13c8], ecx
mov edx, dword [ebp - 0x13c8]
shl edx, 1
push edx
push 0x424002
lea eax, [ebp - 0x13bc]
push eax
call fcn.00406c00
add esp, 0xc
mov ecx, dword [ebp - 0x13c8]
lea edx, [ecx + ecx + 2]
mov dword [ebp - 0x13d0], edx
cmp dword [ebp - 0x13d0], 0x202
jae 0x405b65
jmp 0x405b6a
call fcn.00407773
xor eax, eax
mov ecx, dword [ebp - 0x13d0]
mov word [ecx + str.USER], ax
mov edx, 2
imul eax, edx, 0
movzx ecx, word [eax + str.PASSWORD]
mov dword [ebp - 0x13c8], ecx
mov edx, dword [ebp - 0x13c8]
shl edx, 1
push edx
push 0x424412
lea eax, [ebp - 0x13bc]
push eax
call fcn.00406c00
add esp, 0xc
mov ecx, dword [ebp - 0x13c8]
lea edx, [ecx + ecx + 2]
mov dword [ebp - 0x13e0], edx
cmp dword [ebp - 0x13e0], 0x202
jae 0x405bc9
jmp 0x405bce
call fcn.00407773
xor eax, eax
mov ecx, dword [ebp - 0x13e0]
mov word [ecx + str.PASSWORD], ax
lea edx, [ebp - 0x13f0]
push edx
lea eax, [ebp - 0x1460]
push eax
push 0
push 0
push 0x4000000
push 0
call fcn.0040c009
mov ecx, 4
shl ecx, 0
mov edx, dword [eax]
mov eax, dword [edx + ecx]
push eax
push 0
push 0x424412
mov ecx, dword [ebp - 0x13cc]
push ecx
push 0x424002
call dword [sym.imp.ADVAPI32.dll_CreateProcessWithLogonW]
test eax, eax
jne 0x4061a6
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x424412
push 0x424002
mov edx, dword [ebp - 0x13cc]
push edx
push 0x41b8d4
call fcn.00401030
add esp, 0x14
xor eax, eax
mov word [ebp - 0x42c], ax
push 0x208
push 0
lea ecx, [ebp - 0x42a]
push ecx
call fcn.00408b80
add esp, 0xc
call fcn.0040c009
mov edx, 4
shl edx, 0
mov eax, dword [eax]
cmp dword [edx + eax], 0
je 0x405caa
push 0x104
call fcn.0040c009
mov ecx, 4
shl ecx, 0
mov edx, dword [eax]
mov eax, dword [edx + ecx]
push eax
lea ecx, [ebp - 0x42c]
push ecx
call fcn.0040bfa7
add esp, 0xc
lea edx, [ebp - 0x42c]
push edx
push str._inst__path:__s
call fcn.00401030
add esp, 8
push 0x5c
lea eax, [ebp - 0x42c]
push eax
call fcn.00406a70
add esp, 8
mov dword [ebp - 0x13dc], eax
cmp dword [ebp - 0x13dc], 0
jne 0x405d0b
push str._inst__path_is_unqualified
call fcn.00401030
add esp, 4
mov dword [ebp - 0x1404], 0xffffffff
lea ecx, [ebp - 0xe7c]
call fcn.00402bf0
mov eax, dword [ebp - 0x1404]
jmp 0x406203
mov ecx, dword [ebp - 0x13dc]
lea edx, [ebp - 0x42c]
sub ecx, edx
sar ecx, 1
lea eax, [ecx + ecx + 2]
mov dword [ebp - 0x13d8], eax
cmp dword [ebp - 0x13d8], 0x20a
jae 0x405d33
jmp 0x405d38
call fcn.00407773
xor ecx, ecx
mov edx, dword [ebp - 0x13d8]
mov word [ebp + edx - 0x42c], cx
xor eax, eax
mov word [ebp - 0x638], ax
push 0x208
push 0
lea ecx, [ebp - 0x636]
push ecx
call fcn.00408b80
add esp, 0xc
push 0x104
lea edx, [ebp - 0x638]
push edx
lea eax, [ebp - 0x42c]
push eax
call dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
mov dword [ebp - 0x141c], 0x3a8
mov ecx, 0x424fc8
call fcn.00404600
push eax
lea ecx, [ebp - 0x42c]
push ecx
push 0x41b954
push 0x208
lea edx, [ebp - 0x220]
push edx
call fcn.00406ae0
add esp, 0x14
push 0
push 0
push 0x209
lea eax, [ebp - 0xe64]
push eax
push 0xffffffffffffffff
lea ecx, [ebp - 0x220]
push ecx
push 0x400
push 0x3a8
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov byte [ebp - 0x844], 0
push 0x208
push 0
lea edx, [ebp - 0x843]
push edx
call fcn.00408b80
add esp, 0xc
xor eax, eax
mov word [ebp - 0xc58], ax
push 0x410
push 0
lea ecx, [ebp - 0xc56]
push ecx
call fcn.00408b80
add esp, 0xc
lea ecx, [ebp - 0xe7c]
call fcn.00404880
movzx edx, al
test edx, edx
jne 0x405fa0
push 0
push str..msi
lea ecx, [ebp - 0xe7c]
call fcn.004067c0
mov dword [ebp - 0x13d4], eax
mov eax, dword [ebp - 0x13d4]
cmp eax, dword [0x41b82c]
je 0x405e6f
push 0x41b96c
push 4
mov ecx, dword [ebp - 0x13d4]
push ecx
lea ecx, [ebp - 0xe7c]
call fcn.00406810
lea ecx, [ebp - 0xe7c]
call fcn.00404600
push eax
lea edx, [ebp - 0x42c]
push edx
push 0x41b978
push 0x104
lea eax, [ebp - 0x220]
push eax
call fcn.00406ae0
add esp, 0x14
push 0
push 0
push 0x209
lea ecx, [ebp - 0x844]
push ecx
push 0xffffffffffffffff
lea edx, [ebp - 0x220]
push edx
push 0x400
push 0x3a8
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
lea eax, [ebp - 0xe7c]
push eax
push 0x424fc8
call fcn.00406270
add esp, 8
movzx ecx, al
test ecx, ecx
je 0x405f4b
lea edx, [ebp - 0xfb4]
push edx
lea eax, [ebp - 0x844]
push eax
call fcn.00406220
add esp, 8
test eax, eax
jne 0x405f06
lea ecx, [ebp - 0x220]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea edx, [ebp - 0x844]
push edx
lea eax, [ebp - 0xe64]
push eax
call fcn.0040c00f
add esp, 8
mov dword [ebp - 0x1400], eax
cmp dword [ebp - 0x1400], 0
je 0x405f4b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x13fc], eax
mov ecx, dword [ebp - 0x13fc]
push ecx
push str._inst__rename_fail__errcode:__d
call fcn.00401030
add esp, 8
lea ecx, [ebp - 0xe7c]
call fcn.00404600
push eax
lea edx, [ebp - 0x638]
push edx
push 0x41b984
push 0x104
lea eax, [ebp - 0x220]
push eax
call fcn.00406ae0
add esp, 0x14
lea ecx, [ebp - 0x220]
push ecx
lea edx, [ebp - 0x638]
push edx
push 0x41b9d0
push 0x208
lea eax, [ebp - 0xc58]
push eax
call fcn.00406ae0
add esp, 0x14
jmp 0x405ff2
mov ecx, 0x424fc8
call fcn.00404600
push eax
lea ecx, [ebp - 0x638]
push ecx
push str._s_s
push 0x104
lea edx, [ebp - 0x220]
push edx
call fcn.00406ae0
add esp, 0x14
lea eax, [ebp - 0x220]
push eax
lea ecx, [ebp - 0x638]
push ecx
push str.wscript.exe___srunex.vbs____s___SkipPrivacyPagetrue_
push 0x208
lea edx, [ebp - 0xc58]
push edx
call fcn.00406ae0
add esp, 0x14
lea eax, [ebp - 0xc58]
push eax
push str._inst__run_cmd_line___s
call fcn.00401030
add esp, 8
push 0
push 0
push 0x209
lea ecx, [ebp - 0x844]
push ecx
push 0xffffffffffffffff
lea edx, [ebp - 0x220]
push edx
push 0x400
push 0x3a8
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
lea eax, [ebp - 0xf84]
push eax
lea ecx, [ebp - 0x844]
push ecx
call fcn.00406220
add esp, 8
test eax, eax
je 0x40607d
lea edx, [ebp - 0x220]
push edx
push str._inst__install_exe_file___s__not_exist.
call fcn.00401030
add esp, 8
mov dword [ebp - 0x13f8], 0xffffffff
lea ecx, [ebp - 0xe7c]
call fcn.00402bf0
mov eax, dword [ebp - 0x13f8]
jmp 0x406203
lea ecx, [ebp - 0x1410]
call fcn.00406370
lea eax, [ebp - 0xc58]
push eax
lea ecx, [ebp - 0x638]
push ecx
push str._inst__try_install_with_current_User_permission_path:_s__cmdLine:_s
call fcn.00401030
add esp, 0xc
lea edx, [ebp - 0xc58]
push edx
lea ecx, [ebp - 0xedc]
call fcn.00402990
push 0x41bbc0
lea ecx, [ebp - 0xef4]
call fcn.00402990
push 1
push 0xffffffffffffffff
lea eax, [ebp - 0xedc]
push eax
lea ecx, [ebp - 0xef4]
push ecx
lea edx, [ebp - 0x1410]
push edx
call fcn.004019e0
add esp, 0x14
mov dword [ebp - 0x1418], eax
lea ecx, [ebp - 0xef4]
call fcn.00402bf0
lea ecx, [ebp - 0xedc]
call fcn.00402bf0
lea ecx, [ebp - 0x1410]
call fcn.004064f0
movzx eax, al
test eax, eax
je 0x4061a6
lea ecx, [ebp - 0x1410]
call fcn.00405630
push eax
push str._inst__install_with_current_User_permission_failed__error_code:_d
call fcn.00401030
add esp, 8
push str._inst__try_install_directly
call fcn.00401030
add esp, 4
lea ecx, [ebp - 0x13f0]
push ecx
lea edx, [ebp - 0x1460]
push edx
push 0
push 0
push 0x4000000
push 0
push 0
push 0
lea eax, [ebp - 0xc58]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x4061a6
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 0xc58]
push ecx
push str._inst__try_again_again__s_failed__d
call fcn.00401030
add esp, 0xc
mov dword [ebp - 0x13f4], 0xffffffff
lea ecx, [ebp - 0xe7c]
call fcn.00402bf0
mov eax, dword [ebp - 0x13f4]
jmp 0x406203
mov edx, dword [ebp - 0x13ec]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0xffffffffffffffff
mov eax, dword [ebp - 0x13f0]
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, dword [ebp - 0x13f0]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call fcn.0040c009
mov edx, 4
shl edx, 0
mov eax, dword [eax]
mov ecx, dword [eax + edx]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov dword [ebp - 0x1414], 0
lea ecx, [ebp - 0xe7c]
call fcn.00402bf0
mov eax, dword [ebp - 0x1414]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004075e1
mov esp, ebp
pop ebp
ret 0x10