Function at 0x406df0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b1c98
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x88
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
xor ebx, ebx
push 0x4e28c0
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], ebx
call sub.MFC42u.DLL_CString::CString_2
push str.agentsettings.cfg
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 1
call sub.MFC42u.DLL_CString::CString_4
push ecx
lea ecx, [ebp - 0x28]
mov eax, esp
mov dword [ebp - 0x34], esp
push ecx
push 0x1404c10
push eax
mov byte [ebp - 4], 2
call sub.MFC42u.DLL_operator
push 0x4cfc90
lea edx, [ebp - 0x1c]
push str.backup_mb
push edx
call fcn.004250b0
mov eax, dword [eax]
push eax
call dword [sym.imp.MSVCRT.dll__wtoi]
add esp, 0x14
lea ecx, [ebp - 0x1c]
mov esi, eax
call sub.MFC42u.DLL_CString::CString
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 1
call sub.MFC42u.DLL_CString::CString
cmp esi, ebx
mov edi, 0x1400000
jl 0x406e9b
cmp esi, 0x1f4
jg 0x406e9b
shl esi, 0x14
mov edi, esi
push ecx
mov ecx, esp
mov dword [ebp - 0x34], esp
push str.C:Windows_system_sys_syssettingsimonitorcode.cfg
call sub.MFC42u.DLL_CString::CString_2
lea eax, [ebp - 0x18]
push eax
call fcn.00427c70
add esp, 8
mov ecx, dword [ebp + 8]
mov esi, dword [sym.imp.SHLWAPI.dll_StrStrIW]
push str.external_documents
push ecx
mov byte [ebp - 4], 3
mov dword [ebp - 0x28], ebx
call esi
test eax, eax
jne 0x406fff
mov edx, dword [ebp + 8]
push str.Templow_encrypt_backup_
push edx
call esi
test eax, eax
jne 0x406fff
mov eax, dword [ebp + 8]
push str.Low_file_transfer_backup_
push eax
call esi
test eax, eax
jne 0x406fff
mov ecx, dword [ebp - 0x18]
cmp dword [ecx - 8], ebx
jg 0x406f8b
push ebx
push ecx
lea edx, [ebp + 8]
mov ecx, esp
mov dword [ebp - 0x34], esp
push edx
call sub.MFC42u.DLL_CString::CString_3
push ecx
mov byte [ebp - 4], 4
mov ecx, esp
mov dword [ebp - 0x1c], esp
push str.EncryptFile_with_no_password
call sub.MFC42u.DLL_CString::CString_2
mov byte [ebp - 4], 3
call fcn.00421fb0
add esp, 8
lea eax, [ebp + 8]
mov ecx, esp
mov dword [ebp - 0x34], esp
push eax
call sub.MFC42u.DLL_CString::CString_3
call fcn.00406830
add esp, 4
lea ecx, [ebp - 0x18]
mov esi, eax
mov byte [ebp - 4], 1
call sub.MFC42u.DLL_CString::CString
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0
call sub.MFC42u.DLL_CString::CString
lea ecx, [ebp + 8]
mov dword [ebp - 4], 0xffffffff
call sub.MFC42u.DLL_CString::CString
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x5c]
mov byte [ebp - 4], 5
call sub.MFC42u.DLL_CFile::CFile
mov ecx, dword [ebp + 8]
push ebx
push 0x32
push ecx
lea ecx, [ebp - 0x5c]
mov byte [ebp - 4], 6
call sub.MFC42u.DLL_CFile::Open
cmp eax, ebx
je 0x40746d
lea ecx, [ebp - 0x5c]
call sub.MFC42u.DLL_CFile::GetLength
mov edx, eax
cmp edx, edi
mov dword [ebp - 0x48], edx
jbe 0x407039
push ebx
push ecx
lea edx, [ebp + 8]
mov ecx, esp
mov dword [ebp - 0x34], esp
push edx
call sub.MFC42u.DLL_CString::CString_3
push ecx
mov byte [ebp - 4], 7
mov ecx, esp
mov dword [ebp - 0x30], esp
push str.EncryptFile___Skip_due_to_large_file_size
call sub.MFC42u.DLL_CString::CString_2
mov byte [ebp - 4], 6
call fcn.00421fb0
add esp, 0xc
lea ecx, [ebp - 0x5c]
mov byte [ebp - 4], 5
call fcn.004b0436
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 1
call sub.MFC42u.DLL_CString::CString
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0
call sub.MFC42u.DLL_CString::CString
lea ecx, [ebp + 8]
mov dword [ebp - 4], 0xffffffff
call sub.MFC42u.DLL_CString::CString
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, 7
xor eax, eax
lea edi, [ebp - 0x93]
mov byte [ebp - 0x94], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
cmp edx, 0xa
stosb byte es:[edi], al
jbe 0x407465
lea eax, [ebp - 0x94]
push 0xa
push eax
lea ecx, [ebp - 0x5c]
call sub.MFC42u.DLL_CFile::Read
mov esi, dword [sym.imp.MSVCRT.dll__stricmp]
lea ecx, [ebp - 0x94]
push str.msevdd
push ecx
call esi
add esp, 8
test eax, eax
je 0x407432
lea edx, [ebp - 0x94]
push str.msevd2
push edx
call esi
add esp, 8
test eax, eax
je 0x407432
lea eax, [ebp - 0x18]
lea ecx, [ebp - 0x3c]
push eax
call sub.MFC42u.DLL_CString::CString_3
mov ecx, dword [ebp - 0x18]
mov byte [ebp - 4], 9
mov edi, dword [ecx - 8]
cmp edi, 0x3c
jle 0x4070e9
lea edx, [ebp - 0x1c]
push 0x3c
push edx
lea ecx, [ebp - 0x3c]
call sub.MFC42u.DLL_CString::Left
push eax
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 0xa
call sub.MFC42u.DLL_CString::operator_2
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 9
call sub.MFC42u.DLL_CString::CString
cmp edi, 0x3c
jge 0x407105
xor esi, esi
mov eax, 0x3c
sub eax, edi
cmp esi, eax
jge 0x407105
push 0x20
lea ecx, [ebp - 0x3c]
call sub.MFC42u.DLL_CString::operator
inc esi
jmp 0x4070ed
mov ecx, dword [ebp - 0x48]
lea eax, [ecx + 0x4a]
push eax
mov dword [ebp - 0x34], eax
call sub.MFC42u.DLL_operatornew
mov ebx, eax
mov eax, dword [str.msevd2]
mov edx, ebx
add esp, 4
mov dword [ebp - 0x1c], ebx
mov dword [edx], eax
mov ecx, dword [0x4cfc00]
mov dword [edx + 4], ecx
mov ax, word [0x4cfc04]
mov word [edx + 8], ax
mov ecx, dword [ebp - 0x3c]
push ecx
call fcn.00428bd0
mov dx, word [0x4cfcfc]
lea edi, [ebx + 0xc]
mov ecx, 0xf
mov esi, eax
mov word [ebx + 0xa], dx
add esp, 4
rep movsd dword es:[edi], dword [esi]
mov cx, word [0x4cfcf8]
push eax
mov word [ebx + 0x48], cx
call fcn.00428c40
mov edx, dword [ebp - 0x5c]
add esp, 4
lea ecx, [ebp - 0x5c]
push 0
push 0
call dword [edx + 0x30]
mov ecx, dword [ebp - 0x48]
lea eax, [ebx + 0x4a]
push ecx
push eax
lea ecx, [ebp - 0x5c]
call sub.MFC42u.DLL_CFile::Read
push ecx
mov edx, esp
mov dword [ebp - 0x30], esp
push 0x4cf278
push ecx
mov ecx, esp
mov dword [ebp - 0x30], esp
push 0x4cf610
mov dword [ebp - 0x40], edx
call sub.MFC42u.DLL_CString::CString_2
lea edx, [ebp - 0x24]
push edx
call fcn.004275b0
add esp, 8
push eax
mov eax, dword [ebp - 0x40]
push eax
mov byte [ebp - 4], 0xb
call sub.MFC42u.DLL_operator_4
push 0x4cf268
lea ecx, [ebp - 0x38]
push str.is_backup
push ecx
call fcn.004250b0
mov edx, dword [eax]
add esp, 0x10
push 0x4cf474
push edx
call dword [sym.imp.MSVCRT.dll_wcscmp]
add esp, 8
lea ecx, [ebp - 0x38]
test eax, eax
setne byte [ebp - 0x1d]
call sub.MFC42u.DLL_CString::CString
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 9
call sub.MFC42u.DLL_CString::CString
mov al, byte [ebp - 0x1d]
test al, al
je 0x4073e5
lea eax, [ebp + 8]
lea ecx, [ebp - 0x24]
push eax
call sub.MFC42u.DLL_CString::CString_3
push 0x5c
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 0xc
call sub.MFC42u.DLL_CString::ReverseFind
test eax, eax
mov dword [ebp - 0x30], eax
jl 0x4073d9
lea ecx, [ebp - 0x44]
push ecx
call sub.MFC42u.DLL_CTime::GetTickCount
mov edx, dword [eax]
lea ecx, [ebp - 0x38]
mov dword [ebp - 0x2c], edx
call sub.MFC42u.DLL_CString::CString_1
push 0
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 0xd
call sub.MFC42u.DLL_CTime::GetLocalTm
mov eax, dword [eax]
push 0
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x4c], eax
call sub.MFC42u.DLL_CTime::GetLocalTm
mov ecx, dword [eax + 4]
push 0
mov dword [ebp - 0x44], ecx
lea ecx, [ebp - 0x2c]
call sub.MFC42u.DLL_CTime::GetLocalTm
mov ebx, dword [eax + 8]
push 0
lea ecx, [ebp - 0x2c]
call sub.MFC42u.DLL_CTime::GetLocalTm
mov edi, dword [eax + 0xc]
push 0
lea ecx, [ebp - 0x2c]
call sub.MFC42u.DLL_CTime::GetLocalTm
mov esi, dword [eax + 0x10]
push 0
lea ecx, [ebp - 0x2c]
inc esi
call sub.MFC42u.DLL_CTime::GetLocalTm
mov edx, dword [ebp - 0x4c]
mov ecx, dword [ebp - 0x44]
mov eax, dword [eax + 0x14]
push edx
push ecx
push ebx
add eax, 0x76c
push edi
push esi
push eax
lea edx, [ebp - 0x38]
push str._04d__02d__02d__02d__02d__02d
push edx
call sub.MFC42u.DLL_CString::Format
mov eax, dword [ebp - 0x24]
mov esi, dword [ebp - 0x30]
add esp, 0x20
lea ecx, [ebp - 0x40]
mov eax, dword [eax - 8]
sub eax, esi
dec eax
push eax
push ecx
lea ecx, [ebp - 0x24]
call sub.MFC42u.DLL_CString::Right
lea edx, [ebp - 0x4c]
mov byte [ebp - 4], 0xe
push edx
call fcn.00406760
add esp, 4
lea ecx, [ebp - 0x38]
lea edx, [ebp - 0x44]
push ecx
push eax
push edx
mov byte [ebp - 4], 0xf
call sub.MFC42u.DLL_operator
lea ecx, [ebp - 0x40]
mov bl, 0x10
push ecx
mov byte [ebp - 4], bl
push eax
lea edx, [ebp - 0x30]
push edx
call sub.MFC42u.DLL_operator
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0x11
call sub.MFC42u.DLL_CString::operator_2
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], bl
call sub.MFC42u.DLL_CString::CString
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 0xf
call sub.MFC42u.DLL_CString::CString
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 0xe
call sub.MFC42u.DLL_CString::CString
lea ecx, [ebp - 0x74]
call sub.MFC42u.DLL_CFile::CFile
push 0
push ecx
lea eax, [ebp - 0x14]
mov bl, 0x12
mov ecx, esp
mov dword [ebp - 0x60], esp
push eax
mov byte [ebp - 4], bl
call sub.MFC42u.DLL_CString::CString_3
push ecx
mov byte [ebp - 4], 0x13
mov ecx, esp
mov dword [ebp - 0x64], esp
push str.Backup_before_encryption
call sub.MFC42u.DLL_CString::CString_2
mov byte [ebp - 4], bl
call fcn.00421fb0
mov ecx, dword [ebp - 0x14]
add esp, 0xc
push 0
push 0x1002
push ecx
lea ecx, [ebp - 0x74]
call sub.MFC42u.DLL_CFile::Open
test eax, eax
je 0x4073b2
mov eax, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x48]
add eax, 0x4a
push edx
push eax
lea ecx, [ebp - 0x74]
call sub.MFC42u.DLL_CFile::Write
lea ecx, [ebp - 0x74]
call sub.MFC42u.DLL_CFile::Close
lea ecx, [ebp - 0x74]
mov byte [ebp - 4], 0xe
call fcn.004b0436
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 0xd
call sub.MFC42u.DLL_CString::CString
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 0xc
call sub.MFC42u.DLL_CString::CString
mov ebx, dword [ebp - 0x1c]
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 9
call sub.MFC42u.DLL_CString::CString
mov esi, dword [ebp - 0x34]
mov eax, 0xa
cmp eax, esi
jae 0x4073fd
mov cl, byte [eax + ebx]
inc eax
not cl
mov byte [eax + ebx - 1], cl
jmp 0x4073ed
mov edx, dword [ebp - 0x5c]
push 0
push 0
lea ecx, [ebp - 0x5c]
call dword [edx + 0x30]
push esi
push ebx
lea ecx, [ebp - 0x5c]
call sub.MFC42u.DLL_CFile::Write
push ebx
call sub.MFC42u.DLL_operatordelete
add esp, 4
lea ecx, [ebp - 0x3c]
mov dword [ebp - 0x28], 1
mov byte [ebp - 4], 6
call sub.MFC42u.DLL_CString::CString
jmp 0x407465
push ebx
push ecx
lea eax, [ebp + 8]
mov ecx, esp
mov dword [ebp - 0x64], esp
push eax
mov dword [ebp - 0x28], ebx
call sub.MFC42u.DLL_CString::CString_3
push ecx
mov byte [ebp - 4], 8
mov ecx, esp
mov dword [ebp - 0x60], esp
push str.EncryptFile___Already_encryped
call sub.MFC42u.DLL_CString::CString_2
mov byte [ebp - 4], 6
call fcn.00421fb0
add esp, 0xc
lea ecx, [ebp - 0x5c]
call sub.MFC42u.DLL_CFile::Close
lea ecx, [ebp - 0x5c]
mov byte [ebp - 4], 5
call fcn.004b0436
mov ecx, dword [ebp - 0x14]
push 0x4e28c0
push ecx
mov dword [ebp - 4], 3
call dword [sym.imp.MSVCRT.dll_wcscmp]
add esp, 8
test eax, eax
je 0x4074a0
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 1
call sub.MFC42u.DLL_CString::CString
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0
call sub.MFC42u.DLL_CString::CString
lea ecx, [ebp + 8]
mov dword [ebp - 4], 0xffffffff
call sub.MFC42u.DLL_CString::CString
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x28]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret