Function at 0x406830
Capabilities:
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x4b1be8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x74
push ebx
push ebp
push esi
push edi
push 0x4e28c0
lea ecx, [esp + 0x14]
mov dword [esp + 0x90], 0
call sub.MFC42u.DLL_CString::CString_2
push str.agentsettings.cfg
lea ecx, [esp + 0x20]
mov byte [esp + 0x90], 1
call sub.MFC42u.DLL_CString::CString_4
push ecx
lea ecx, [esp + 0x20]
mov eax, esp
mov dword [esp + 0x3c], esp
push ecx
push 0x1404c10
push eax
mov byte [esp + 0x9c], 2
call sub.MFC42u.DLL_operator
push 0x4cfc90
lea edx, [esp + 0x2c]
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, [esp + 0x24]
mov esi, eax
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0x1c]
mov byte [esp + 0x8c], 1
call sub.MFC42u.DLL_CString::CString
test esi, esi
mov edi, 0x1400000
jl 0x4068ec
cmp esi, 0x1f4
jg 0x4068ec
shl esi, 0x14
mov edi, esi
lea ecx, [esp + 0x44]
call sub.MFC42u.DLL_CFile::CFile
mov eax, dword [esp + 0x94]
push 0
push 0x32
push eax
lea ecx, [esp + 0x50]
mov byte [esp + 0x98], 3
call sub.MFC42u.DLL_CFile::Open
test eax, eax
je 0x406d6c
lea ecx, [esp + 0x44]
call sub.MFC42u.DLL_CFile::GetLength
mov ebx, eax
cmp ebx, edi
mov dword [esp + 0x34], ebx
jbe 0x406971
push 0
push ecx
lea edx, [esp + 0x9c]
mov ecx, esp
mov dword [esp + 0x40], esp
push edx
call sub.MFC42u.DLL_CString::CString_3
push ecx
mov byte [esp + 0x98], 4
mov ecx, esp
mov dword [esp + 0x40], esp
push str.EncryptFileNOPSW___Skip_due_to_large_file_size
call sub.MFC42u.DLL_CString::CString_2
mov byte [esp + 0x98], 3
call fcn.00421fb0
add esp, 0xc
jmp 0x406d8e
mov ecx, 7
xor eax, eax
lea edi, [esp + 0x65]
mov byte [esp + 0x64], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
cmp ebx, 0xa
stosb byte es:[edi], al
jbe 0x406d63
lea eax, [esp + 0x64]
push 0xa
push eax
lea ecx, [esp + 0x4c]
call sub.MFC42u.DLL_CFile::Read
mov esi, dword [sym.imp.MSVCRT.dll__stricmp]
lea ecx, [esp + 0x64]
push str.msevdd
push ecx
call esi
add esp, 8
test eax, eax
je 0x406d24
lea edx, [esp + 0x64]
push str.msevd2
push edx
call esi
add esp, 8
test eax, eax
je 0x406d24
lea edi, [ebx + 0xa]
push edi
mov dword [esp + 0x3c], edi
call sub.MFC42u.DLL_operatornew
mov ecx, dword [str.msevdd]
mov esi, eax
mov dword [eax], ecx
mov edx, dword [0x4cfc0c]
add esp, 4
mov dword [esp + 0x24], esi
mov dword [eax + 4], edx
mov cx, word [0x4cfc10]
push 0
push 0
mov word [eax + 8], cx
mov edx, dword [esp + 0x4c]
lea ecx, [esp + 0x4c]
call dword [edx + 0x30]
lea eax, [esi + 0xa]
push ebx
push eax
lea ecx, [esp + 0x4c]
call sub.MFC42u.DLL_CFile::Read
push ecx
mov ebx, esp
mov dword [esp + 0x34], esp
push 0x4cf278
push ecx
mov ecx, esp
mov dword [esp + 0x3c], esp
push 0x4cf610
call sub.MFC42u.DLL_CString::CString_2
lea eax, [esp + 0x28]
push eax
call fcn.004275b0
add esp, 8
push eax
push ebx
mov byte [esp + 0x9c], 6
call sub.MFC42u.DLL_operator_4
push 0x4cf268
lea ecx, [esp + 0x28]
push str.is_backup
push ecx
call fcn.004250b0
mov edx, dword [eax]
push 0x4cf474
push edx
call dword [sym.imp.MSVCRT.dll_wcscmp]
add esp, 0x18
lea ecx, [esp + 0x20]
test eax, eax
setne bl
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0x1c]
mov byte [esp + 0x8c], 3
call sub.MFC42u.DLL_CString::CString
test bl, bl
je 0x406ce8
lea eax, [esp + 0x94]
lea ecx, [esp + 0x18]
push eax
call sub.MFC42u.DLL_CString::CString_3
push 0x5c
lea ecx, [esp + 0x1c]
mov byte [esp + 0x90], 7
call sub.MFC42u.DLL_CString::ReverseFind
test eax, eax
mov dword [esp + 0x2c], eax
jl 0x406cd7
lea ecx, [esp + 0x30]
push ecx
call sub.MFC42u.DLL_CTime::GetTickCount
mov edx, dword [eax]
lea ecx, [esp + 0x1c]
mov dword [esp + 0x14], edx
call sub.MFC42u.DLL_CString::CString_1
push 0
lea ecx, [esp + 0x18]
mov byte [esp + 0x90], 8
call sub.MFC42u.DLL_CTime::GetLocalTm
mov edi, dword [eax]
push 0
lea ecx, [esp + 0x18]
call sub.MFC42u.DLL_CTime::GetLocalTm
mov ebp, dword [eax + 4]
push 0
lea ecx, [esp + 0x18]
call sub.MFC42u.DLL_CTime::GetLocalTm
mov ebx, dword [eax + 8]
push 0
lea ecx, [esp + 0x18]
call sub.MFC42u.DLL_CTime::GetLocalTm
mov eax, dword [eax + 0xc]
push 0
lea ecx, [esp + 0x18]
mov dword [esp + 0x2c], eax
call sub.MFC42u.DLL_CTime::GetLocalTm
mov esi, dword [eax + 0x10]
push 0
lea ecx, [esp + 0x18]
inc esi
call sub.MFC42u.DLL_CTime::GetLocalTm
mov eax, dword [eax + 0x14]
mov ecx, dword [esp + 0x28]
push edi
push ebp
push ebx
add eax, 0x76c
push ecx
push esi
push eax
lea edx, [esp + 0x34]
push str._04d__02d__02d__02d__02d__02d
push edx
call sub.MFC42u.DLL_CString::Format
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x4c]
add esp, 0x20
mov eax, dword [eax - 8]
sub eax, ecx
lea ecx, [esp + 0x20]
dec eax
push eax
push ecx
lea ecx, [esp + 0x20]
call sub.MFC42u.DLL_CString::Right
lea edx, [esp + 0x30]
mov bl, 9
push edx
mov byte [esp + 0x90], bl
call fcn.00406760
add esp, 4
lea ecx, [esp + 0x1c]
lea edx, [esp + 0x28]
push ecx
push eax
push edx
mov byte [esp + 0x98], 0xa
call sub.MFC42u.DLL_operator
lea ecx, [esp + 0x20]
lea edx, [esp + 0x2c]
push ecx
push eax
push edx
mov byte [esp + 0x98], 0xb
call sub.MFC42u.DLL_operator
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x90], 0xc
call sub.MFC42u.DLL_CString::operator_2
lea ecx, [esp + 0x2c]
mov byte [esp + 0x8c], 0xb
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0x28]
mov byte [esp + 0x8c], 0xa
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0x30]
mov byte [esp + 0x8c], bl
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0x54]
call sub.MFC42u.DLL_CFile::CFile
push 0
push ecx
lea eax, [esp + 0x18]
mov ecx, esp
mov dword [esp + 0x44], esp
push eax
mov byte [esp + 0x98], 0xd
call sub.MFC42u.DLL_CString::CString_3
push ecx
mov byte [esp + 0x98], 0xe
mov ecx, esp
mov dword [esp + 0x4c], esp
push str.Backup_before_encryption
call sub.MFC42u.DLL_CString::CString_2
mov byte [esp + 0x98], 0xd
call fcn.00421fb0
mov ecx, dword [esp + 0x1c]
add esp, 0xc
push 0
push 0x1002
push ecx
lea ecx, [esp + 0x60]
call sub.MFC42u.DLL_CFile::Open
test eax, eax
je 0x406c9d
mov eax, dword [esp + 0x24]
mov edx, dword [esp + 0x34]
add eax, 0xa
push edx
push eax
lea ecx, [esp + 0x5c]
call sub.MFC42u.DLL_CFile::Write
lea ecx, [esp + 0x54]
call sub.MFC42u.DLL_CFile::Close
lea ecx, [esp + 0x54]
mov byte [esp + 0x8c], bl
call fcn.004b0436
lea ecx, [esp + 0x20]
mov byte [esp + 0x8c], 8
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0x1c]
mov byte [esp + 0x8c], 7
call sub.MFC42u.DLL_CString::CString
mov esi, dword [esp + 0x24]
mov edi, dword [esp + 0x38]
lea ecx, [esp + 0x18]
mov byte [esp + 0x8c], 3
call sub.MFC42u.DLL_CString::CString
mov eax, 0xa
cmp edi, eax
jbe 0x406cff
mov cl, byte [eax + esi]
inc eax
not cl
mov byte [eax + esi - 1], cl
cmp eax, edi
jb 0x406cf1
mov edx, dword [esp + 0x44]
push 0
push 0
lea ecx, [esp + 0x4c]
call dword [edx + 0x30]
push edi
push esi
lea ecx, [esp + 0x4c]
call sub.MFC42u.DLL_CFile::Write
push esi
call sub.MFC42u.DLL_operatordelete
add esp, 4
jmp 0x406d63
push 0
push ecx
lea eax, [esp + 0x9c]
mov ecx, esp
mov dword [esp + 0x48], esp
push eax
call sub.MFC42u.DLL_CString::CString_3
push ecx
mov byte [esp + 0x98], 5
mov ecx, esp
mov dword [esp + 0x48], esp
push str.EncryptFileNOPSW___Already_encryped
call sub.MFC42u.DLL_CString::CString_2
mov byte [esp + 0x98], 3
call fcn.00421fb0
add esp, 0xc
lea ecx, [esp + 0x44]
call sub.MFC42u.DLL_CFile::Close
mov ecx, dword [esp + 0x10]
push 0x4e28c0
push ecx
call dword [sym.imp.MSVCRT.dll_wcscmp]
add esp, 8
test eax, eax
je 0x406d8e
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [esp + 0x44]
mov byte [esp + 0x8c], 1
call fcn.004b0436
lea ecx, [esp + 0x10]
mov byte [esp + 0x8c], 0
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0x94]
mov dword [esp + 0x8c], 0xffffffff
call sub.MFC42u.DLL_CString::CString
mov ecx, dword [esp + 0x84]
pop edi
pop esi
pop ebp
mov eax, 1
mov dword fs:[0], ecx
pop ebx
add esp, 0x80
ret