Function at 0x495db0
Capabilities:
Copy file
Create directory
Persist via winlogon helper dll registry key
Query or enumerate registry key
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x512901
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x348
mov dword [ebp - 0x224], 0
mov dword [ebp - 0x21c], 0
lea ecx, [ebp - 0x338]
call sub.MFC42.DLL_CStringArray::CStringArray
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x114]
call sub.MFC42.DLL_CString::CString_3
mov byte [ebp - 4], 1
mov dword [ebp - 0x10], 0
lea eax, [ebp - 0x224]
push eax
push 0x20119
push 0
push 0x561154
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x495e52
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x114]
call sub.MFC42.DLL_CString::CString
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x338]
call fcn.0051046c
jmp 0x4963f9
push 0x100
lea ecx, [ebp - 0x110]
push ecx
mov edx, dword [ebp - 0x21c]
mov dword [ebp - 0x344], edx
mov eax, dword [ebp - 0x344]
push eax
mov ecx, dword [ebp - 0x224]
push ecx
mov edx, dword [ebp - 0x21c]
add edx, 1
mov dword [ebp - 0x21c], edx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
test eax, eax
jne 0x495eb4
lea eax, [ebp - 0x110]
push eax
call fcn.00401fca
add esp, 4
lea ecx, [ebp - 0x110]
push ecx
lea ecx, [ebp - 0x338]
call fcn.0050f680
jmp 0x495e52
mov edx, dword [ebp - 0x224]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x21c], 0
jmp 0x495edc
mov eax, dword [ebp - 0x21c]
add eax, 1
mov dword [ebp - 0x21c], eax
lea ecx, [ebp - 0x338]
call fcn.0050f110
cmp dword [ebp - 0x21c], eax
jge 0x4963d8
push 0x561194
push 0x5b6504
call sub.MSVCRT.dll_strcpy
add esp, 8
mov ecx, dword [ebp - 0x21c]
push ecx
lea ecx, [ebp - 0x338]
call fcn.0050f5d0
mov ecx, eax
call fcn.0050f0b0
push eax
push 0x5b6504
call sub.MSVCRT.dll_strcat
add esp, 8
push str.DLLName
push 0x5b6504
push 0x80000002
lea edx, [ebp - 0x33c]
push edx
call fcn.00402f37
add esp, 0x10
mov dword [ebp - 0x348], eax
mov eax, dword [ebp - 0x348]
mov dword [ebp - 0x34c], eax
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x34c]
push ecx
lea ecx, [ebp - 0x114]
call sub.MFC42.DLL_CString::operator_1
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x33c]
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x114]
call sub.MFC42.DLL_CString::MakeUpper
push 0x5611dc
lea ecx, [ebp - 0x114]
call fcn.0050f0b0
push eax
call dword [sym.imp.MSVCRT.dll_strstr]
add esp, 8
test eax, eax
jne 0x495fc7
push 0x5b8d48
lea ecx, [ebp - 0x114]
call fcn.0050f0b0
push eax
call sub.MSVCRT.dll_strcmp
add esp, 8
test eax, eax
jne 0x495fcc
jmp 0x495ecd
lea ecx, [ebp - 0x114]
call fcn.0050f0b0
push eax
push 0x5b6504
call sub.MSVCRT.dll_strcpy
add esp, 8
movsx edx, byte [0x5b6505]
cmp edx, 0x3a
jne 0x496013
movsx eax, byte [0x5b6506]
cmp eax, 0x5c
jne 0x496013
push 0x5b6504
lea ecx, [ebp - 0x324]
push ecx
call sub.MSVCRT.dll_strcpy
add esp, 8
jmp 0x49604f
push 0x5b7db4
lea edx, [ebp - 0x324]
push edx
call sub.MSVCRT.dll_strcpy
add esp, 8
push 0x5611e4
lea eax, [ebp - 0x324]
push eax
call sub.MSVCRT.dll_strcat
add esp, 8
push 0x5b6504
lea ecx, [ebp - 0x324]
push ecx
call sub.MSVCRT.dll_strcat
add esp, 8
push ecx
mov ecx, esp
mov dword [ebp - 0x340], esp
lea edx, [ebp - 0x324]
push edx
call sub.MFC42.DLL_CString::CString_2
mov dword [ebp - 0x350], eax
call fcn.004ae7b8
add esp, 4
mov dword [ebp - 0x354], eax
cmp dword [ebp - 0x354], 0
jne 0x496086
jmp 0x495ecd
push 0
lea eax, [ebp - 0x324]
push eax
call fcn.004f9b07
add esp, 8
test eax, eax
jne 0x49614d
lea ecx, [ebp - 0x324]
push ecx
mov ecx, 0x5b5bf0
call fcn.0050f680
push 0x5611e8
push 0x5b6504
call sub.MSVCRT.dll_strcpy
add esp, 8
mov edx, dword [ebp - 0x21c]
push edx
lea ecx, [ebp - 0x338]
call fcn.0050f5d0
mov ecx, eax
call fcn.0050f0b0
push eax
push 0x5b6504
call sub.MSVCRT.dll_strcat
add esp, 8
push 0x5b6504
push 0x80000002
call fcn.00402a6b
add esp, 8
lea eax, [ebp - 0x324]
push eax
mov ecx, dword [ebp - 0x21c]
push ecx
lea ecx, [ebp - 0x338]
call fcn.0050f5d0
mov edx, dword [eax]
push edx
push str.Key_Eliminada__WinLogonNotify_s______s_n
push 0x5b6504
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0x10
push 0x5b6504
mov ecx, 0x5b5b78
call fcn.0050f680
mov eax, dword [ebp - 0x21c]
sub eax, 1
mov dword [ebp - 0x21c], eax
jmp 0x495ecd
mov dword [ebp - 0x10], 0
mov dword [0x5b84b8], 0
jmp 0x49616f
mov ecx, dword [0x5b84b8]
add ecx, 1
mov dword [0x5b84b8], ecx
mov ecx, 0x5b5b60
call fcn.0050f110
cmp dword [0x5b84b8], eax
jge 0x4961c9
mov edx, dword [0x5b84b8]
push edx
mov ecx, 0x5b5b60
call fcn.0050f5d0
mov ecx, eax
call fcn.0050f0b0
push eax
mov eax, dword [ebp - 0x21c]
push eax
lea ecx, [ebp - 0x338]
call fcn.0050f5d0
mov ecx, eax
call fcn.0050f0b0
push eax
call sub.MSVCRT.dll_strcmp
add esp, 8
test eax, eax
jne 0x4961c7
mov dword [ebp - 0x10], 1
jmp 0x496160
cmp dword [ebp - 0x10], 0
je 0x4961d4
jmp 0x495ecd
push str.ATI2EVXX.DLL
lea ecx, [ebp - 0x114]
call fcn.0050f0b0
push eax
call dword [sym.imp.MSVCRT.dll_strstr]
add esp, 8
test eax, eax
je 0x4961f7
jmp 0x495ecd
lea ecx, [ebp - 0x324]
push ecx
call sub.MSVCRT.dll_strlen
add esp, 4
mov dword [ebp - 0x220], eax
mov dword [0x5b84b8], 0
jmp 0x496227
mov edx, dword [0x5b84b8]
add edx, 1
mov dword [0x5b84b8], edx
cmp dword [0x5b84b8], 0x100
jge 0x496242
mov eax, dword [0x5b84b8]
mov byte [ebp + eax - 0x214], 0
jmp 0x496218
mov ecx, dword [ebp - 0x220]
mov dword [0x5b84b8], ecx
jmp 0x49625f
mov edx, dword [0x5b84b8]
sub edx, 1
mov dword [0x5b84b8], edx
cmp dword [0x5b84b8], 0
jle 0x49627e
mov eax, dword [0x5b84b8]
movsx ecx, byte [ebp + eax - 0x324]
cmp ecx, 0x5c
jne 0x49627c
jmp 0x49627e
jmp 0x496250
mov edx, dword [0x5b84b8]
add edx, 1
mov dword [0x5b84b8], edx
mov dword [ebp - 0x218], 0
jmp 0x4962b5
mov eax, dword [0x5b84b8]
add eax, 1
mov dword [0x5b84b8], eax
mov ecx, dword [ebp - 0x218]
add ecx, 1
mov dword [ebp - 0x218], ecx
mov edx, dword [0x5b84b8]
cmp edx, dword [ebp - 0x220]
jge 0x4962df
mov eax, dword [ebp - 0x218]
mov ecx, dword [0x5b84b8]
mov dl, byte [ebp + ecx - 0x324]
mov byte [ebp + eax - 0x214], dl
jmp 0x496299
push 0x5b7ba4
push 0x561264
push 0x5b6504
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0xc
push 0
push 0x5b6504
call dword [sym.imp.KERNEL32.DLL_CreateDirectoryA]
lea eax, [ebp - 0x214]
push eax
push 0x5b7ba4
push str._sMuestras_s__Notify_.vir
push 0x5b6504
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0x10
push 0
push 0x5b6504
lea ecx, [ebp - 0x324]
push ecx
call dword [sym.imp.KERNEL32.DLL_CopyFileA]
test eax, eax
je 0x49637e
push 0
push 0x5b6504
call dword [sym.imp.KERNEL32.DLL_SetFileAttributesA]
lea edx, [ebp - 0x214]
push edx
push 0x5b7ba4
mov eax, dword [ebp - 0x21c]
push eax
lea ecx, [ebp - 0x338]
call fcn.0050f5d0
mov ecx, dword [eax]
push ecx
push str._WinLogonNotify_s__n__Por_favor__envienos_el_INFOSAT.TXT_y_una_muestra_del_fichero_n___sMuestras_s__Notify_.vir_n__a__virus_satinfo.es_._Gracias._n
push 0x5b6504
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0x14
jmp 0x4963ad
lea edx, [ebp - 0x324]
push edx
mov eax, dword [ebp - 0x21c]
push eax
lea ecx, [ebp - 0x338]
call fcn.0050f5d0
mov ecx, dword [eax]
push ecx
push str._WinLogonNotify_s__n__Acceso_Denegado_al_fichero_n__s_n__Por_favor__envienos_el_INFOSAT.TXT_y_una_muestra_del_fichero_n__que_podra_copiar_arrancando_en_Consola_de_Recuperaci
push 0x5b6504
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0x10
cmp dword [0x5b851c], 0
jne 0x4963c4
push 0
push 0
push 0x5b6504
call sub.MFC42.DLL_AfxMessageBox
push 0x5b6504
mov ecx, 0x5b5b78
call fcn.0050f680
jmp 0x495ecd
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x114]
call sub.MFC42.DLL_CString::CString
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x338]
call fcn.0051046c
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret