Function at 0x408920
Capabilities:
Persist via windows service
Set registry value

Disassembly:
sub esp, 0x360
push ebx
push ebp
push esi
push edi
xor ebx, ebx
push str.C:c_sourceforgeultravncwinvncwinvnc_videodriver.cpp_:_Activate_video_driver____n
push ebx
push 0x4721bc
mov dword [ecx + 0x24], 1
call fcn.004070e0
mov ecx, 0x27
xor eax, eax
lea edi, [esp + 0x34]
add esp, 0xc
rep stosd dword es:[edi], eax
lea eax, [esp + 0x28]
mov word [esp + 0x4c], 0x9c
push eax
push 0xffffffffffffffff
push ebx
mov word [esp + 0x5a], bx
call dword [sym.imp.USER32.dll_EnumDisplaySettingsA]
push str.USER32
mov dword [esp + 0x54], 0x1c0000
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
push str.EnumDisplayDevicesA
push esi
mov dword [esp + 0x20], esi
call edi
push str.ChangeDisplaySettingsExA
push esi
mov ebp, eax
call edi
cmp eax, ebx
mov dword [esp + 0x24], eax
jne 0x4089b3
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x360
ret
cmp ebp, ebx
je 0x408b90
mov ecx, 0x6a
xor eax, eax
lea edi, [esp + 0xc4]
push ebx
rep stosd dword es:[edi], eax
lea ecx, [esp + 0xc8]
mov dword [esp + 0xc8], 0x1a8
push ecx
push ebx
push ebx
mov byte [esp + 0x38], al
call ebp
cmp eax, ebx
je 0x408a1c
mov edi, str.Winvnc_video_hook_driver
lea esi, [esp + 0xe8]
mov ecx, 0x19
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
je 0x408a16
lea eax, [esp + 0xc4]
inc ebx
push edx
push eax
push ebx
push edx
call ebp
test eax, eax
jne 0x4089eb
jmp 0x408a1c
xor esi, esi
cmp eax, esi
jne 0x408a3b
push str.Winvnc_video_hook_driver
push str.No__s_found._n
call fcn.00448583
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x360
ret
xor eax, eax
mov cl, byte [eax + str.DEVICE0]
mov byte [esp + eax + 0x26c], cl
inc eax
test cl, cl
jne 0x408a3d
mov edi, dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
lea ecx, [esp + 0x14]
push ecx
push str.SYSTEMCurrentControlSetHardware_ProfilesCurrentSystemCurrentControlSetServices_vncdrv
push reloc.WSOCK32.dll_bind
mov dword [esp + 0x20], esi
call edi
test eax, eax
je 0x408a7b
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x360
ret
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x10]
lea eax, [esp + 0x26c]
push edx
push eax
push ecx
mov dword [esp + 0x1c], esi
call edi
test eax, eax
je 0x408aa4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x360
ret
mov eax, dword [esp + 0x10]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
lea edx, [esp + 0x20]
push 4
push edx
push 4
push esi
push str.Attach.ToDesktop
push eax
mov dword [esp + 0x38], 1
call ebp
test eax, eax
je 0x408ad9
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x360
ret
xor eax, eax
mov cl, byte [eax + str.vncdrv]
mov byte [esp + eax + 0x28], cl
inc eax
test cl, cl
jne 0x408adb
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
call dword [sym.imp.USER32.dll_GetThreadDesktop]
mov ebx, dword [sym.imp.USER32.dll_SetThreadDesktop]
mov edi, eax
cmp edi, esi
je 0x408b1b
push 0x2000000
push esi
push esi
call dword [sym.imp.USER32.dll_OpenInputDesktop]
mov esi, eax
test esi, esi
je 0x408b1f
push esi
call ebx
jmp 0x408b1f
mov esi, dword [esp + 0x18]
cmp dword [esp + 0x90], 0x18
jne 0x408b34
mov dword [esp + 0x90], 0x10
push 0
push 1
lea ecx, [esp + 0x30]
push 0
lea edx, [esp + 0xd4]
push ecx
push edx
call dword [esp + 0x38]
push edi
call ebx
push esi
call dword [sym.imp.USER32.dll_CloseDesktop]
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x1c]
push 4
push eax
push 4
push 0
push str.Attach.ToDesktop
push ecx
mov dword [esp + 0x34], 1
call ebp
test eax, eax
jne 0x408ba6
mov edx, dword [esp + 0x14]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edx
call esi
mov eax, dword [esp + 0x10]
push eax
call esi
mov esi, dword [esp + 0x18]
test esi, esi
je 0x408b9b
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x360
ret