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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x36c
mov eax, dword [0x4ea5e0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor edi, edi
push str.USER32
mov dword [ebp - 0x36c], edi
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
mov dword [ebp - 0x35c], esi
cmp esi, edi
je 0x4166b2
push str.EnumDisplayDevicesA
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ebx, eax
cmp ebx, edi
je 0x4166b2
push 0x9c
lea eax, [ebp - 0x1b0]
push edi
push eax
call fcn.004b2d10
add esp, 0xc
lea eax, [ebp - 0x1b0]
push eax
push 0xffffffffffffffff
push edi
mov dword [ebp - 0x18c], 0x9c
call dword [sym.imp.USER32.dll_EnumDisplaySettingsA]
mov dword [ebp - 0x188], 0x1c0000
cmp eax, edi
je 0x4166ab
push 0x1a8
lea ecx, [ebp - 0x358]
push edi
push ecx
call fcn.004b2d10
add esp, 0xc
push edi
lea edx, [ebp - 0x358]
push edx
push edi
push edi
mov dword [ebp - 0x358], 0x1a8
mov byte [ebp - 0x1b0], 0
call ebx
mov esi, eax
test esi, esi
je 0x416434
jmp 0x4163e0
mov edx, str.mv_video_hook_driver2
lea ecx, [ebp - 0x334]
jmp 0x4163f0
mov al, byte [ecx]
cmp al, byte [edx]
jne 0x416410
test al, al
je 0x41640c
mov al, byte [ecx + 1]
cmp al, byte [edx + 1]
jne 0x416410
add ecx, 2
add edx, 2
test al, al
jne 0x4163f0
xor eax, eax
jmp 0x416415
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x416430
push 0
lea eax, [ebp - 0x358]
push eax
inc edi
push edi
push 0
call ebx
mov esi, eax
test esi, esi
jne 0x4163e0
jmp 0x416434
test esi, esi
jne 0x416452
push str.mv_video_hook_driver2
push str.No__s_found._n
call fcn.004ab160
add esp, 8
mov ecx, dword [ebp - 0x35c]
push ecx
jmp 0x4166ac
lea edx, [ebp - 0x230]
push edx
lea eax, [ebp - 0x2b0]
push eax
lea ecx, [ebp - 0x334]
push ecx
lea edx, [ebp - 0x354]
push edx
push edi
push str.DevNum:_d_nName:_s_nString:_s_nID:_s_nKey:_s_n_n
call fcn.004ab160
lea eax, [ebp - 0x230]
push eax
call fcn.004ab103
lea ecx, [ebp - 0x230]
push str.DEVICE
push ecx
call fcn.004aad00
xor esi, esi
add esp, 0x24
lea ecx, [ebp - 0x110]
mov edx, str.DEVICE0
cmp eax, esi
je 0x4164ad
lea edx, [eax + 1]
mov eax, 0x104
call fcn.00415c70
mov edi, dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
lea edx, [ebp - 0x364]
push edx
push str.SYSTEMCurrentControlSetHardware_ProfilesCurrentSystemCurrentControlSetServicesmv2
push reloc.WS2_32.dll_bind
mov dword [ebp - 0x364], esi
call edi
test eax, eax
je 0x4164e6
mov eax, dword [ebp - 0x35c]
push eax
jmp 0x4166ac
mov eax, dword [ebp - 0x364]
lea ecx, [ebp - 0x360]
push ecx
lea edx, [ebp - 0x110]
push edx
push eax
mov dword [ebp - 0x360], esi
call edi
test eax, eax
jne 0x416446
mov eax, dword [ebp - 0x360]
push 4
lea edx, [ebp - 0x368]
push edx
push 4
push esi
push str.Attach.ToDesktop
push eax
mov dword [ebp - 0x368], esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x416446
mov edx, dword [ebp - 0x364]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edx
call esi
mov eax, dword [ebp - 0x360]
push eax
call esi
lea ecx, [ebp - 0x230]
push str.SYSTEM
push ecx
call fcn.004aad00
add esp, 8
lea edx, [ebp - 0x360]
push edx
push str.SYSTEMCurrentControlSetHardware_ProfilesCurrent
push reloc.WS2_32.dll_bind
mov ebx, eax
mov dword [ebp - 0x360], 0
call edi
test eax, eax
jne 0x4164da
mov edx, dword [ebp - 0x360]
lea ecx, [ebp - 0x364]
push ecx
push ebx
push edx
mov dword [ebp - 0x364], eax
call edi
test eax, eax
jne 0x4164da
mov edx, dword [ebp - 0x364]
push 4
lea ecx, [ebp - 0x368]
push ecx
push 4
push eax
push str.Attach.ToDesktop
push edx
mov dword [ebp - 0x368], eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x4164da
mov ecx, dword [ebp - 0x360]
push ecx
call esi
mov edx, dword [ebp - 0x364]
push edx
call esi
push 0x9c
lea eax, [ebp - 0x1b0]
push 0
push eax
call fcn.004b2d10
add esp, 0xc
mov edx, 0x4d7310
mov eax, 0x20
lea ecx, [ebp - 0x1b0]
mov dword [ebp - 0x18c], 0x9c
call fcn.00415c70
mov dword [ebp - 0x148], 0x20
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
call dword [sym.imp.USER32.dll_GetThreadDesktop]
mov esi, eax
test esi, esi
je 0x416657
push 0x2000000
push 0
push 0
call dword [sym.imp.USER32.dll_OpenInputDesktop]
mov ebx, eax
test ebx, ebx
je 0x41665d
push ebx
call dword [sym.imp.USER32.dll_SetThreadDesktop]
jmp 0x41665d
mov ebx, dword [ebp - 0x36c]
mov edi, dword [sym.imp.USER32.dll_ChangeDisplaySettingsExA]
push 0
push 1
push 0
lea eax, [ebp - 0x1b0]
push eax
lea ecx, [ebp - 0x354]
push ecx
call edi
push 0
push 0
push 0
lea edx, [ebp - 0x1b0]
push edx
lea eax, [ebp - 0x354]
push eax
call edi
test esi, esi
je 0x41669a
push esi
call dword [sym.imp.USER32.dll_SetThreadDesktop]
test ebx, ebx
je 0x4166a5
push ebx
call dword [sym.imp.USER32.dll_CloseDesktop]
mov esi, dword [ebp - 0x35c]
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004a8a2f
mov esp, ebp
pop ebp
ret