Function at 0x4166d0
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
push str.USER32
mov esi, ecx
mov dword [ebp - 0x364], 0
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ebx, eax
mov dword [ebp - 0x35c], ebx
test ebx, ebx
je 0x416a69
push str.EnumDisplayDevicesA
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
test edi, edi
je 0x416a69
push 0x9c
lea eax, [ebp - 0x1b0]
push 0
push eax
call fcn.004b2d10
add esp, 0xc
lea eax, [ebp - 0x1b0]
push eax
push 0xffffffffffffffff
push 0
mov dword [ebp - 0x18c], 0x9c
call dword [sym.imp.USER32.dll_EnumDisplaySettingsA]
mov ecx, dword [ebp - 0x148]
mov dword [ebp - 0x188], 0x1c0020
cmp ecx, 8
je 0x416777
cmp ecx, 0x10
je 0x416777
cmp ecx, 0x20
jne 0x416a62
shr ecx, 3
imul ecx, dword [ebp + 0x10]
imul ecx, dword [ebp + 0x14]
add ecx, 0xdac4
mov dword [esi + 0x18], ecx
test eax, eax
je 0x416a62
push 0x1a8
lea ecx, [ebp - 0x358]
push 0
push ecx
call fcn.004b2d10
add esp, 0xc
xor ebx, ebx
push ebx
lea edx, [ebp - 0x358]
push edx
push ebx
push ebx
mov dword [ebp - 0x358], 0x1a8
mov byte [ebp - 0x1b0], 0
call edi
mov esi, eax
test esi, esi
je 0x416824
mov edi, edi
mov edx, str.mv_video_hook_driver2
lea ecx, [ebp - 0x334]
jmp 0x4167e0
mov al, byte [ecx]
cmp al, byte [edx]
jne 0x416800
test al, al
je 0x4167fc
mov al, byte [ecx + 1]
cmp al, byte [edx + 1]
jne 0x416800
add ecx, 2
add edx, 2
test al, al
jne 0x4167e0
xor eax, eax
jmp 0x416805
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x416820
push 0
lea eax, [ebp - 0x358]
push eax
inc ebx
push ebx
push 0
call edi
mov esi, eax
test esi, esi
jne 0x4167d0
jmp 0x416824
test esi, esi
jne 0x416842
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 0x416a63
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 ebx
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 edi, edi
add esp, 0x24
lea ecx, [ebp - 0x110]
mov edx, str.DEVICE0
cmp eax, edi
je 0x41689d
lea edx, [eax + 1]
mov eax, 0x104
call fcn.00415c70
mov esi, dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
lea edx, [ebp - 0x368]
push edx
push str.SYSTEMCurrentControlSetHardware_ProfilesCurrentSystemCurrentControlSetServicesmv2
push reloc.WS2_32.dll_bind
mov dword [ebp - 0x368], edi
call esi
test eax, eax
je 0x4168d6
mov eax, dword [ebp - 0x35c]
push eax
jmp 0x416a63
mov eax, dword [ebp - 0x368]
lea ecx, [ebp - 0x360]
push ecx
lea edx, [ebp - 0x110]
push edx
push eax
mov dword [ebp - 0x360], edi
call esi
test eax, eax
jne 0x416836
mov eax, dword [ebp - 0x360]
push 4
lea edx, [ebp - 0x36c]
push edx
push 4
push edi
push str.Attach.ToDesktop
push eax
mov dword [ebp - 0x36c], 1
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x416836
mov esi, dword [ebp - 0x148]
push 0x9c
lea edx, [ebp - 0x1b0]
push edi
push edx
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 edx, dword [ebp + 0x10]
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x144], edx
mov edx, dword [ebp + 0xc]
mov dword [ebp - 0x188], 0x1c0020
mov dword [ebp - 0x140], eax
mov dword [ebp - 0x184], ecx
mov dword [ebp - 0x180], edx
mov dword [ebp - 0x148], esi
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 esi, eax
cmp esi, edi
je 0x4169cc
push 0x2000000
push edi
push edi
call dword [sym.imp.USER32.dll_OpenInputDesktop]
mov dword [ebp - 0x364], eax
cmp eax, edi
je 0x4169cc
push eax
call ebx
push edi
push 1
push edi
mov edi, dword [sym.imp.USER32.dll_ChangeDisplaySettingsExA]
lea ecx, [ebp - 0x1b0]
push ecx
lea edx, [ebp - 0x354]
push edx
call edi
test eax, eax
jne 0x4168ca
push eax
push eax
push eax
lea ecx, [ebp - 0x1b0]
push ecx
lea edx, [ebp - 0x354]
push edx
call edi
mov edi, eax
test esi, esi
je 0x416a0a
push esi
call ebx
mov eax, dword [ebp - 0x364]
test eax, eax
je 0x416a1b
push eax
call dword [sym.imp.USER32.dll_CloseDesktop]
mov eax, dword [ebp - 0x368]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push eax
call esi
mov ecx, dword [ebp - 0x360]
push ecx
call esi
test edi, edi
je 0x416a40
mov edx, dword [ebp - 0x35c]
push edx
jmp 0x416a63
mov eax, dword [ebp - 0x35c]
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov al, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a8a2f
mov esp, ebp
pop ebp
ret 0x10
push ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
xor al, al
pop ebx
call fcn.004a8a2f
mov esp, ebp
pop ebp
ret 0x10