Function at 0x417470
Capabilities:
Check if file exists
Create process on windows
Delete directory
Read .ini file
Set file attributes

Disassembly:
push 0xffffffffffffffff
push 0x45ee31
mov eax, dword fs:[0]
push eax
mov eax, 0x1078
call fcn.004479f0
mov eax, dword [0x47b660]
xor eax, esp
mov dword [esp + 0x1070], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x47b660]
xor eax, esp
push eax
lea eax, [esp + 0x108c]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x109c]
call fcn.00424a60
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x4174d0
push 0x80004005
call fcn.00401000
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x14], eax
mov dword [esp + 0x1094], 0
mov eax, dword [ebp + 0x55c0]
test eax, eax
ja 0x417510
cmp dword [ebp + 0x55f0], 0
ja 0x417510
lea ecx, [ebp + 0x20a0]
push ecx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x417e6b
call fcn.00424a60
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x41752a
push 0x80004005
call fcn.00401000
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x1c], eax
mov byte [esp + 0x1094], 1
call fcn.00424a60
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x41755c
push 0x80004005
call fcn.00401000
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x20], eax
lea ebx, [ebp + 0x10a0]
push ebx
push 0
push str.status
push 0x467538
mov byte [esp + 0x10a4], 2
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
cmp eax, 1
jne 0x4177a8
mov edi, str.NAS_Backup_started
call fcn.00419530
push edi
push 0x428
mov ecx, ebp
call fcn.0042c489
mov ecx, eax
call fcn.0042c573
xor ecx, ecx
push 0x7fe
push ecx
lea edx, [esp + 0x8e]
push edx
mov word [esp + 0x90], cx
call fcn.00446a60
add esp, 0xc
push 0x400
lea eax, [esp + 0x88]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea ecx, [esp + 0x84]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea edx, [esp + 0x84]
push edx
lea eax, [esp + 0x18]
push str._sBKPTONAS.EXE
push eax
call fcn.00402c20
add esp, 0xc
push ebx
push 0x400
lea esi, [ebp + 0x30a0]
push esi
push 0x4672dc
push str.Volume_id
push 0x467538
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov eax, esi
lea edx, [eax + 2]
jmp 0x417640
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x417640
sub eax, edx
sar eax, 1
jne 0x417681
mov ecx, dword [esp + 0x14]
push 5
push 0
push str._setnas
push ecx
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov edi, str.volume_id_not_set.NAS_storage_need_to_select
call fcn.00419530
push 0x1388
call dword [sym.imp.KERNEL32.dll_Sleep]
push ebx
push 0x400
push esi
push 0x4672dc
push str.Volume_id
push 0x467538
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x4176a0
sub esi, ecx
sar esi, 1
je 0x4177ca
xor edx, edx
push 0x7fe
push edx
lea eax, [esp + 0x88e]
push eax
mov word [esp + 0x890], dx
call fcn.00446a60
add esp, 0xc
push 0x44
lea ecx, [esp + 0x28]
push 0
push ecx
call fcn.00446a60
xor eax, eax
add esp, 0xc
mov dword [esp + 0x70], eax
mov dword [esp + 0x74], eax
mov dword [esp + 0x78], eax
mov dword [esp + 0x7c], eax
mov eax, dword [esp + 0x14]
push eax
push 0x46771c
lea ecx, [esp + 0x88c]
xor edx, edx
push 0x400
push ecx
mov dword [esp + 0x34], 0x44
mov word [esp + 0x64], dx
call fcn.00442ff8
add esp, 0x10
lea edx, [esp + 0x70]
push edx
lea eax, [esp + 0x28]
push eax
push 0
push 0
push 0x8000000
push 0
push 0
push 0
lea ecx, [esp + 0x8a4]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x41776a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, str.error_to_execute_bkptonas.exe
call fcn.00419530
push str.NAS_Backup_error
jmp 0x41777f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, str.executing_bkptonas.exe
call fcn.00419530
push str.NAS_Backup_in_progress
push 0x428
mov ecx, ebp
call fcn.0042c489
mov ecx, eax
call fcn.0042c573
mov edx, dword [esp + 0x70]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
call esi
mov eax, dword [esp + 0x74]
push eax
call esi
jmp 0x4177ca
mov edi, str.NAS_backup_disabled
call fcn.00419530
push str.NAS_Backup_disabled
push 0x428
mov ecx, ebp
call fcn.0042c489
mov ecx, eax
call fcn.0042c573
push ebx
push 0
push str.CBkp
push 0x467568
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
push ebx
push 0
push str.CBAUTH
push 0x467568
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
cmp esi, 1
jne 0x417a79
mov edi, str.Cloud_Backup_started
call fcn.00419530
push edi
push 0x428
mov ecx, ebp
call fcn.0042c489
mov ecx, eax
call fcn.0042c573
lea esi, [ebp + 0x30a0]
push esi
lea ecx, [esp + 0x18]
push 0x46771c
push ecx
call fcn.00402c20
add esp, 0xc
mov edi, str.Cloud_backup_enabled_so_taking_backup_in_CB_on_2nd_day
call fcn.00419530
mov edi, dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
push ebx
push 0x4675a8
push str.NPARC00
push 0x467568
call edi
movzx edx, word [ebp + 0x3abe]
movzx eax, word [ebp + 0x3abc]
movzx ecx, word [ebp + 0x3ab4]
push edx
movzx edx, word [ebp + 0x3ab6]
push eax
movzx eax, word [ebp + 0x3aba]
push ecx
push edx
push eax
push str._02d__02d__04d__02d:_02d
push 0x400
push esi
call fcn.00442ff8
add esp, 0x20
push ebx
push esi
push str.00LDT
push 0x467568
call edi
lea ecx, [ebp + 0x20a0]
push ecx
push 0x46771c
push 0x400
push esi
call fcn.00442ff8
add esp, 0x10
push ebx
push esi
push str.CBPath
push 0x467568
call edi
lea edx, [esp + 0x20]
push str.NPARC00
push edx
call fcn.00402c20
add esp, 8
push ebx
push 0xa
lea ecx, [esp + 0x78]
push ecx
xor eax, eax
push 0x467590
push 0x467584
push 0x467568
mov word [esp + 0x88], ax
mov dword [esp + 0x8a], eax
mov dword [esp + 0x8e], eax
mov dword [esp + 0x92], eax
mov dword [esp + 0x96], eax
mov word [esp + 0x9a], ax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea edx, [esp + 0x70]
push 0x467598
push edx
call fcn.00442a9a
add esp, 8
test eax, eax
jne 0x4179d3
lea eax, [ebp + 0x18a0]
push eax
lea ecx, [esp + 0x20]
push str._sCLOUDB3.EXE
push ecx
call fcn.00402c20
add esp, 0xc
push ebx
push 0x400
push esi
push 0x467580
push str.CBPath
push 0x467568
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
push 0x467580
push esi
call fcn.00442a9a
add esp, 8
test eax, eax
je 0x417a79
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x1c]
push edx
push esi
push eax
lea ecx, [esp + 0x20]
push str._s___s__s_3
push ecx
call fcn.00402c20
mov esi, dword [esp + 0x28]
add esp, 0x14
push ebx
push esi
push str.bbcmd
push 0x467568
call edi
push ecx
lea eax, [esi - 0x10]
mov dword [esp + 0x1c], esp
mov edi, esp
push eax
call fcn.00402ac0
add esp, 4
add eax, 0x10
mov dword [edi], eax
jmp 0x417a74
lea edx, [esp + 0x70]
push 0x467590
push edx
call fcn.00442a9a
add esp, 8
test eax, eax
jne 0x417a79
lea eax, [ebp + 0x18a0]
push eax
lea ecx, [esp + 0x20]
push str._sZVSCANCLOUDB1.EXE
push ecx
call fcn.00402c20
add esp, 0xc
push ebx
push 0x400
push esi
push 0x467580
push str.CBPath
push 0x467568
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
push 0x467580
push esi
call fcn.00442a9a
add esp, 8
test eax, eax
je 0x417a79
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x1c]
push esi
push edx
push eax
lea ecx, [esp + 0x20]
push str._s__s__s
push ecx
call fcn.00402c20
mov edx, dword [esp + 0x28]
add esp, 0x14
push ebx
push edx
push str.gcmd
push 0x467568
call edi
push ecx
lea eax, [esp + 0x18]
mov ecx, esp
mov dword [esp + 0x1c], esp
push eax
call fcn.004027b0
call fcn.004191f0
cmp dword [ebp + 0x3aac], 1
jne 0x417e1b
lea esi, [ebp + 0x20a0]
push esi
push str._s_readme.txt
lea edi, [ebp + 0x30a0]
push 0x400
push edi
call fcn.00442ff8
add esp, 0x10
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x417aee
push 0x46cca4
push edi
call fcn.00443631
add esp, 8
mov dword [esp + 0x18], eax
test eax, eax
je 0x417aee
push eax
push str._This_is_Net_Protector_NPAV_architect_Backup_Folder.__n_n_New_feature_with_Advanced__Automatic__Protected_Architect_Backup__n_n_It_is_safe_and_important._Kindly_do_not_delete_it.__n_n_Complete_Peace_of_Mind_with_advanced_security_and_multiple_versions.__n_n_For_Assistance_NPAV_Help_Desk__n_email_:_help_npav.net__n_Whatsapp_:_8055776318__n_n_For_Settings_Run:__n_nparcbkp.lnk
call fcn.004438c0
mov ecx, dword [esp + 0x20]
push ecx
push 0x468770
call fcn.004438c0
mov edx, dword [esp + 0x28]
push edx
call fcn.004439e3
add esp, 0x14
mov ecx, ebp
call fcn.0041a3e0
push 2
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push ebx
push 0x400
push edi
push 0x4672dc
push str.FirstBkp
push str.LastTBInfo
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov eax, edi
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x417b20
sub eax, edx
sar eax, 1
jne 0x417b62
movzx eax, word [ebp + 0x3ab8]
push eax
push str._02d
push 0x400
push edi
call fcn.00442ff8
mov esi, dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
add esp, 0x10
push ebx
push edi
push str.FirstBkp
push str.LastTBInfo
call esi
jmp 0x417b68
mov esi, dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
movzx ecx, word [ebp + 0x3abe]
movzx edx, word [ebp + 0x3abc]
movzx eax, word [ebp + 0x3ab4]
push ecx
movzx ecx, word [ebp + 0x3ab6]
push edx
movzx edx, word [ebp + 0x3aba]
push eax
push ecx
push edx
push str._02d__02d__04d__02d:_02d
push 0x400
push edi
call fcn.00442ff8
add esp, 0x20
push ebx
push edi
push str.TBTime
push str.LastTBInfo
call esi
movzx eax, word [ebp + 0x3ab8]
push eax
lea eax, [ebp + 0x20a0]
push eax
push 0x467b50
push 0x400
push edi
call fcn.00442ff8
add esp, 0x14
push ebx
push edi
push str.TBPath
push str.LastTBInfo
call esi
movzx ecx, word [ebp + 0x3ab8]
push ecx
push str._02d
push 0x400
push edi
call fcn.00442ff8
movzx edx, word [ebp + 0x3abe]
movzx eax, word [ebp + 0x3abc]
movzx ecx, word [ebp + 0x3ab4]
push edx
movzx edx, word [ebp + 0x3ab6]
push eax
movzx eax, word [ebp + 0x3aba]
push ecx
push edx
push eax
lea ecx, [esp + 0x38]
push str._02d__02d__04d__02d:_02d
push ecx
call fcn.00402c20
mov esi, dword [esp + 0x40]
mov edx, dword [esi - 0xc]
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, edx
add esp, 0x2c
or eax, ecx
jge 0x417c59
push edx
lea ecx, [esp + 0x18]
call fcn.00402a70
mov esi, dword [esp + 0x14]
push ebx
push esi
push edi
push str.LastTBInfo
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
mov eax, dword [esi - 8]
push eax
push esi
call fcn.00442fb3
add esp, 8
test eax, eax
jl 0x417ed8
cmp eax, dword [esi - 8]
jg 0x417ed8
mov dword [esi - 0xc], eax
xor edx, edx
mov word [esi + eax*2], dx
lea eax, [ebp + 0x20a0]
lea esi, [ebp + 0x3ac8]
push eax
call fcn.00405ad0
push 0x3ff
lea eax, [esp + 0x89]
push 0
push eax
mov byte [esp + 0x90], 0
call fcn.00446a60
add esp, 0xc
lea eax, [ebp + 0x20a0]
push eax
lea ecx, [esp + 0x1c]
push ecx
call fcn.00405b60
mov edx, dword [eax]
mov eax, dword [ebp + 0x3b68]
mov ecx, dword [ebp + 0x3b6c]
shrd eax, ecx, 0x14
push edx
shr ecx, 0x14
push ecx
push eax
push str._06llu__S
lea edx, [esp + 0x94]
push 0x400
push edx
call fcn.0044354d
mov eax, dword [esp + 0x30]
add eax, 0xfffffff0
add esp, 0x18
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x417d22
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, ebp
call fcn.00417ef0
cmp eax, 7
jl 0x417e1b
movzx ecx, word [ebp + 0x3ab4]
movzx edx, word [ebp + 0x3ab6]
movzx eax, word [ebp + 0x3aba]
push ecx
push edx
push eax
push str._02d__02d__04d
push 0x400
push edi
call fcn.00442ff8
mov esi, dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
add esp, 0x18
push ebx
push edi
push str.SendDate
push str.tbinfo
call esi
movzx ecx, word [ebp + 0x3aba]
push ecx
push str._02d
push 0x400
push edi
call fcn.00442ff8
add esp, 0x10
push ebx
push edi
push str.SendDay
push str.tbinfo
call esi
movzx edx, word [ebp + 0x3ab6]
push edx
push str._02d
push 0x400
push edi
call fcn.00442ff8
add esp, 0x10
push ebx
push edi
push str.SendMon
push str.tbinfo
call esi
movzx eax, word [ebp + 0x3ab4]
push eax
push str._02d
push 0x400
push edi
call fcn.00442ff8
add esp, 0x10
push ebx
push edi
push str.SendYr
push str.tbinfo
call esi
lea eax, [ebp + 0x20a0]
push eax
lea ecx, [ebp + 0x3b74]
push 0x46771c
push ecx
call fcn.00402c20
mov edx, dword [ebp + 0x3ac8]
mov eax, dword [edx + 0x14c]
lea ecx, [ebp + 0x3ac8]
add esp, 0xc
call eax
mov byte [esp + 0x1094], 1
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x417e43
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x1094], 0
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x417e6b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push str.Backup_Completed_successfully
push 0x428
mov ecx, ebp
call fcn.0042c489
mov ecx, eax
call fcn.0042c573
mov dword [esp + 0x1094], 0xffffffff
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x417eae
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x108c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x1070]
xor ecx, esp
call fcn.00442896
add esp, 0x1084
ret 4
push 0x80070057
call fcn.00401000
int3