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

Disassembly:
sub esp, 0x36c
mov eax, dword [0x48a348]
xor eax, esp
mov dword [esp + 0x364], eax
push ebx
push ebp
push esi
push edi
push str.USER32
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ebp, eax
push str.EnumDisplayDevicesA
push ebp
mov dword [esp + 0x24], ebp
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x9c
mov ebx, eax
lea eax, [esp + 0x24]
push 0
push eax
call fcn.00463710
add esp, 0xc
lea eax, [esp + 0x20]
push eax
xor edx, edx
push 0xffffffffffffffff
mov ecx, 0x9c
push edx
mov word [esp + 0x50], cx
mov word [esp + 0x52], dx
call dword [sym.imp.USER32.dll_EnumDisplaySettingsA]
mov dword [esp + 0x48], 0x1c0000
test eax, eax
je 0x40caae
push 0x1a8
lea ecx, [esp + 0xc4]
push 0
push ecx
call fcn.00463710
add esp, 0xc
xor edi, edi
push edi
lea edx, [esp + 0xc4]
push edx
push edi
push edi
mov dword [esp + 0xd0], 0x1a8
mov byte [esp + 0x30], 0
call ebx
mov esi, eax
test esi, esi
je 0x40c885
jmp 0x40c830
mov edx, str.mv_video_hook_driver2
lea ecx, [esp + 0xe4]
lea esp, [esp]
mov al, byte [ecx]
cmp al, byte [edx]
jne 0x40c860
test al, al
je 0x40c85c
mov al, byte [ecx + 1]
cmp al, byte [edx + 1]
jne 0x40c860
add ecx, 2
add edx, 2
test al, al
jne 0x40c840
xor eax, eax
jmp 0x40c865
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x40c881
push 0
lea eax, [esp + 0xc4]
push eax
inc edi
push edi
push 0
call ebx
mov esi, eax
test esi, esi
jne 0x40c830
jmp 0x40c885
test esi, esi
jne 0x40c89c
push str.mv_video_hook_driver2
push str.No__s_found._n
call fcn.0045f0b5
add esp, 8
jmp 0x40caae
lea ecx, [esp + 0x1e8]
push ecx
lea edx, [esp + 0x16c]
push edx
lea eax, [esp + 0xec]
push eax
lea ecx, [esp + 0xd0]
push ecx
push edi
push str.DevNum:_d_nName:_s_nString:_s_nID:_s_nKey:_s_n_n
call fcn.0045f0b5
lea edx, [esp + 0x200]
push edx
call fcn.0045f050
lea eax, [esp + 0x204]
push str.DEVICE
push eax
call fcn.0045ec50
xor esi, esi
add esp, 0x24
mov edx, 0x104
lea ecx, [esp + 0x268]
cmp eax, esi
jne 0x40c902
mov eax, str.DEVICE0
jmp 0x40c903
inc eax
call fcn.0040c1f0
mov edi, dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
lea ecx, [esp + 0x14]
push ecx
push str.SYSTEMCurrentControlSetHardware_ProfilesCurrentSystemCurrentControlSetServicesmv2
push reloc.WSOCK32.dll_bind
mov dword [esp + 0x20], esi
call edi
test eax, eax
je 0x40c92e
cmp ebp, esi
jmp 0x40cab0
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x26c]
push eax
push ecx
mov dword [esp + 0x1c], esi
call edi
test eax, eax
je 0x40c951
cmp ebp, esi
jmp 0x40cab0
mov eax, dword [esp + 0x10]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push 4
lea edx, [esp + 0x1c]
push edx
push 4
push esi
push str.Attach.ToDesktop
push eax
mov dword [esp + 0x30], esi
call ebx
test eax, eax
je 0x40c97c
cmp ebp, esi
jmp 0x40cab0
mov ecx, dword [esp + 0x14]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ecx
call esi
mov edx, dword [esp + 0x10]
push edx
call esi
lea eax, [esp + 0x1e8]
push str.SYSTEM
push eax
call fcn.0045ec50
add esp, 8
lea ecx, [esp + 0x10]
push ecx
push str.SYSTEMCurrentControlSetHardware_ProfilesCurrent
push reloc.WSOCK32.dll_bind
mov ebp, eax
mov dword [esp + 0x1c], 0
call edi
test eax, eax
je 0x40c9d6
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x40cab9
push eax
jmp 0x40cab3
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x14]
push edx
push ebp
push eax
mov dword [esp + 0x20], 0
call edi
test eax, eax
jne 0x40c9c4
mov edx, dword [esp + 0x14]
push 4
lea ecx, [esp + 0x1c]
push ecx
push 4
push eax
push str.Attach.ToDesktop
push edx
mov dword [esp + 0x30], eax
call ebx
test eax, eax
jne 0x40c9c4
mov eax, dword [esp + 0x10]
push eax
call esi
mov ecx, dword [esp + 0x14]
push ecx
call esi
mov eax, 0x47bc60
mov edx, 0x20
lea ecx, [esp + 0x20]
call fcn.0040c1f0
mov dword [esp + 0x88], 0x20
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
test esi, esi
je 0x40ca6c
push 0x2000000
push 0
push 0
call dword [sym.imp.USER32.dll_OpenInputDesktop]
mov ebp, eax
test ebp, ebp
je 0x40ca70
push ebp
call ebx
jmp 0x40ca70
mov ebp, dword [esp + 0x18]
mov edi, dword [sym.imp.USER32.dll_ChangeDisplaySettingsExA]
push 0
push 1
push 0
lea edx, [esp + 0x2c]
push edx
lea eax, [esp + 0xd4]
push eax
call edi
push 0
push 0
push 0
lea ecx, [esp + 0x2c]
push ecx
lea edx, [esp + 0xd4]
push edx
call edi
push esi
call ebx
push ebp
call dword [sym.imp.USER32.dll_CloseDesktop]
mov ebp, dword [esp + 0x1c]
test ebp, ebp
je 0x40cab9
push ebp
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ecx, dword [esp + 0x374]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0045dc1f
add esp, 0x36c
ret