Function at 0x405f90
Capabilities:
Delete file
Get common file path

Disassembly:
push 0xffffffffffffffff
mov eax, dword fs:[0]
push 0x408b46
push eax
mov eax, 0x141c
mov dword fs:[0], esp
call fcn.00408450
push ebx
push ebp
mov ebp, ecx
push esi
push edi
lea ecx, [esp + 0x10]
call fcn.004021f0
mov esi, dword [sym.imp.MSVCRT.dll___p___argc]
mov dword [esp + 0x1434], 0
mov dword [ebp + 0xcc], 0xffffffff
mov edi, 1
call esi
cmp dword [eax], edi
jle 0x40600b
mov ebx, dword [sym.imp.MSVCRT.dll___p___argv]
call ebx
mov eax, dword [eax]
mov ecx, dword [eax + edi*4 + 4]
push ecx
call ebx
mov edx, dword [eax]
mov ecx, ebp
mov eax, dword [edx + edi*4]
push eax
call fcn.004067a0
add edi, 2
call esi
cmp edi, dword [eax]
jl 0x405fea
mov eax, dword [ebp + 0xe0]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x406449
mov ecx, dword [ebp + 0xe4]
mov edx, dword [ecx - 8]
test edx, edx
je 0x406449
mov edx, dword [ebp + 0xec]
mov ecx, dword [edx - 8]
test ecx, ecx
je 0x406449
mov ecx, dword [ebp + 0xf0]
test ecx, ecx
je 0x406449
mov ecx, dword [ebp + 0xe8]
lea ebx, [ebp + 0xe8]
mov edx, dword [ecx - 8]
test edx, edx
je 0x406449
mov edi, dword [sym.imp.MSVCRT.dll__mbsicmp]
push str.putty
push eax
call edi
add esp, 8
test eax, eax
jne 0x406089
mov edx, dword [ebp + 0xdc]
mov eax, dword [edx - 8]
test eax, eax
je 0x406449
mov eax, dword [ebp + 0xe4]
push 0x40b058
push eax
call edi
add esp, 8
test eax, eax
jne 0x406243
lea ecx, [ebp + 0x110]
push ebx
call sub.MFC42.DLL_CString::operator
mov eax, dword [ebx]
mov ecx, ebx
mov eax, dword [eax - 8]
push eax
mov dword [esp + 0x1c], eax
call sub.MFC42.DLL_CString::GetBuffer
mov ecx, dword [esp + 0x18]
mov esi, eax
mov edx, ecx
lea edi, [esp + 0xc2c]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [esp + 0x1c]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x830]
lea edx, [esp + 0xc35]
push ecx
push edx
lea ecx, [esp + 0x2c]
call fcn.004010e0
test eax, eax
je 0x406449
push 4
lea ecx, [esp + 0x830]
lea eax, [esp + 0x830]
push str.wen:
push ecx
mov dword [esp + 0x24], eax
call dword [sym.imp.MSVCRT.dll__strnicmp]
add esp, 0xc
test eax, eax
jne 0x406132
lea edx, [esp + 0x830]
mov dword [esp + 0x18], edx
mov eax, dword [esp + 0x18]
mov edi, dword [sym.imp.MSVCRT.dll__mbschr]
push 0x40
push eax
call edi
mov esi, eax
add esp, 8
test esi, esi
je 0x406449
mov ecx, dword [esp + 0x18]
mov byte [esi], 0
push ecx
push 0x40b11c
push ebx
call sub.MFC42.DLL_CString::Format
inc esi
push 9
push esi
call edi
add esp, 0x14
test eax, eax
je 0x406449
lea ebx, [eax + 1]
push 9
push ebx
call edi
mov esi, eax
add esp, 8
test esi, esi
je 0x406449
push ebx
lea edx, [ebp + 0x10c]
push 0x40b11c
push edx
mov byte [esi], 0
call sub.MFC42.DLL_CString::Format
inc esi
push 9
push esi
call edi
add esp, 0x14
test eax, eax
je 0x406449
lea edi, [ebp + 0x104]
push esi
push 0x40b11c
push edi
mov byte [eax], 0
call sub.MFC42.DLL_CString::Format
mov eax, dword [ebp + 0xf4]
add esp, 0xc
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x406449
mov ecx, dword [ebp + 0xf8]
mov eax, dword [ecx - 8]
test eax, eax
je 0x406449
mov eax, dword [ebp + 0xfc]
test eax, eax
je 0x406449
mov edx, dword [ebp + 0x100]
mov eax, dword [edx - 8]
test eax, eax
je 0x406449
mov eax, dword [ebp + 0x110]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x406449
mov eax, dword [edi]
push 0x40c254
push eax
call dword [sym.imp.MSVCRT.dll__mbsicmp]
add esp, 8
test eax, eax
je 0x4064ae
push str.SERVICE_NAME
push edi
call sub.MFC42.DLL_CString::Format
add esp, 8
jmp 0x4064ae
mov eax, dword [ebp + 0xe4]
push 0x40c240
push eax
call edi
add esp, 8
test eax, eax
jne 0x4062a2
mov eax, dword [ebp + 0xfc]
test eax, eax
je 0x406449
mov ecx, dword [ebx]
mov eax, dword [ecx - 8]
mov ecx, ebx
push eax
call sub.MFC42.DLL_CString::GetBuffer
mov edx, dword [ebx]
mov ecx, dword [edx - 8]
mov dl, 0x3d
cmp byte [ecx + eax - 1], dl
jne 0x4064ae
cmp byte [ecx + eax - 2], dl
jne 0x4064ae
mov dl, 0x2d
mov byte [ecx + eax - 1], dl
mov ecx, dword [ebx]
mov ecx, dword [ecx - 8]
mov byte [ecx + eax - 2], dl
jmp 0x4064ae
mov eax, dword [ebp + 0xe4]
push str.sybase
push eax
call edi
add esp, 8
test eax, eax
jne 0x406399
lea ecx, [ebp + 0x110]
push ebx
call sub.MFC42.DLL_CString::operator
mov edx, dword [ebx]
mov ecx, ebx
mov eax, dword [edx - 8]
push eax
mov dword [esp + 0x1c], eax
call sub.MFC42.DLL_CString::GetBuffer
mov ecx, dword [esp + 0x18]
mov esi, eax
mov eax, ecx
lea edi, [esp + 0x102c]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
lea edx, [esp + 0x42c]
and ecx, 3
lea eax, [esp + 0x1031]
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x24]
push ecx
push edx
push eax
lea ecx, [esp + 0x34]
call fcn.004010e0
test eax, eax
je 0x406449
push 4
lea ecx, [esp + 0x430]
push str.wen:
push ecx
lea esi, [esp + 0x438]
call dword [sym.imp.MSVCRT.dll__strnicmp]
add esp, 0xc
test eax, eax
jne 0x406343
lea esi, [esp + 0x430]
push 0x40
push esi
call dword [sym.imp.MSVCRT.dll__mbschr]
add esp, 8
test eax, eax
je 0x406449
push esi
push 0x40b11c
push ebx
mov byte [eax], 0
call sub.MFC42.DLL_CString::Format
mov edx, dword [ebp + 0xf4]
add esp, 0xc
mov eax, dword [edx - 8]
test eax, eax
je 0x406449
mov eax, dword [ebp + 0xf8]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x406449
mov ecx, dword [ebp + 0x110]
mov eax, dword [ecx - 8]
jmp 0x40643a
mov edx, dword [0x40c514]
push 3
push 0x40c150
mov ecx, 0x40c514
mov eax, dword [edx - 8]
push eax
call sub.MFC42.DLL_CString::GetBuffer
push eax
call dword [sym.imp.MSVCRT.dll__strnicmp]
add esp, 0xc
test eax, eax
je 0x4064a4
mov eax, dword [ebp + 0xe4]
push str.telnet
push eax
call edi
add esp, 8
test eax, eax
je 0x4064a4
mov eax, dword [ebp + 0xe4]
push str.rlogin
push eax
call edi
add esp, 8
test eax, eax
je 0x4064a4
mov eax, dword [ebp + 0xe4]
push 0x40c23c
push eax
call edi
add esp, 8
test eax, eax
jne 0x406478
lea esi, [ebp + 0x110]
push ebx
mov ecx, esi
call sub.MFC42.DLL_CString::operator
mov eax, dword [ebp + 0xf4]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x406449
mov ecx, dword [ebp + 0x100]
mov eax, dword [ecx - 8]
test eax, eax
je 0x406449
mov edx, dword [esi]
mov eax, dword [edx - 8]
test eax, eax
je 0x406449
mov ecx, ebp
call fcn.00406620
test eax, eax
jne 0x4064ae
lea ecx, [esp + 0x10]
mov dword [esp + 0x1434], 0xffffffff
call fcn.00402260
xor eax, eax
mov ecx, dword [esp + 0x142c]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x1428
ret
mov eax, dword [ebp + 0xe4]
push str.informix
push eax
call edi
add esp, 8
test eax, eax
jne 0x4064ae
mov eax, dword [ebp + 0xfc]
test eax, eax
je 0x406449
mov eax, dword [ebp + 0x100]
mov ecx, dword [eax - 8]
test ecx, ecx
jmp 0x406447
mov eax, dword [ebp + 0xfc]
test eax, eax
je 0x406449
mov ecx, dword [ebp + 0xdc]
lea edi, [ebp + 0xdc]
mov ebx, dword [sym.imp.MSVCRT.dll__access]
mov eax, dword [ecx - 8]
test eax, eax
je 0x406515
push 0
push eax
mov ecx, edi
call sub.MFC42.DLL_CString::GetBuffer
push eax
call ebx
add esp, 8
cmp eax, 0xffffffff
je 0x406515
push ecx
mov ecx, esp
mov dword [esp + 0x24], esp
push edi
call sub.MFC42.DLL_CString::CString_1
push ecx
lea eax, [ebp + 0xe0]
mov ecx, esp
mov dword [esp + 0x24], esp
push eax
mov byte [esp + 0x1440], 1
call sub.MFC42.DLL_CString::CString_1
lea ecx, [esp + 0x18]
mov byte [esp + 0x143c], 0
call fcn.004028e0
mov esi, dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
xor eax, eax
push eax
lea edx, [esp + 0x30]
mov ecx, 0x100
lea edi, [esp + 0x30]
push 5
push edx
rep stosd dword es:[edi], eax
push eax
call esi
lea edi, [esp + 0x2c]
or ecx, 0xffffffff
xor eax, eax
push str.logbasescript.txt
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [esp + ecx + 0x30]
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
lea ecx, [esp + 0x34]
push 0
push ecx
call ebx
add esp, 0x10
cmp eax, 0xffffffff
je 0x40656d
lea edx, [esp + 0x2c]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov ecx, 0x100
xor eax, eax
lea edi, [esp + 0x2c]
push eax
rep stosd dword es:[edi], eax
lea eax, [esp + 0x30]
push 5
push eax
push 0
call esi
lea edi, [esp + 0x2c]
or ecx, 0xffffffff
xor eax, eax
push str.logbasescript.vbs
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea ecx, [esp + ecx + 0x30]
push ecx
call dword [sym.imp.MSVCRT.dll_sprintf]
lea edx, [esp + 0x34]
push 0
push edx
call ebx
add esp, 0x10
cmp eax, 0xffffffff
je 0x4065c0
lea eax, [esp + 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [esp + 0x10]
mov dword [ebp + 0xc8], 0
mov dword [esp + 0x1434], 0xffffffff
call fcn.00402260
mov eax, 1
jmp 0x40645f