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

Disassembly:
sub esp, 0x36c
mov eax, dword [0x4ba700]
xor eax, esp
mov dword [esp + 0x364], eax
push ebx
push ebp
push esi
push edi
push str.USER32
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ebx, eax
push str.EnumDisplayDevicesA
push ebx
mov dword [esp + 0x20], ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x9c
mov edi, eax
lea eax, [esp + 0x24]
push 0
push eax
call fcn.004858b0
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 ecx, dword [esp + 0x88]
mov dword [esp + 0x48], 0x1c0020
cmp ecx, 8
je 0x4101fe
cmp ecx, 0x10
je 0x4101fe
cmp ecx, 0x20
jne 0x4102c7
shr ecx, 3
imul ecx, dword [esp + 0x388]
imul ecx, dword [esp + 0x38c]
add ecx, 0xdac4
mov dword [esi + 0x18], ecx
test eax, eax
je 0x4102c7
push 0x1a8
lea ecx, [esp + 0xc4]
push 0
push ecx
call fcn.004858b0
add esp, 0xc
xor ebp, ebp
push ebp
lea edx, [esp + 0xc4]
push edx
push ebp
push ebp
mov dword [esp + 0xd0], 0x1a8
mov byte [esp + 0x30], 0
call edi
mov esi, eax
test esi, esi
je 0x4102b5
mov edi, edi
mov edx, str.mv_video_hook_driver2
lea ecx, [esp + 0xe4]
lea esp, [esp]
mov al, byte [ecx]
cmp al, byte [edx]
jne 0x410290
test al, al
je 0x41028c
mov al, byte [ecx + 1]
cmp al, byte [edx + 1]
jne 0x410290
add ecx, 2
add edx, 2
test al, al
jne 0x410270
xor eax, eax
jmp 0x410295
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x4102b1
push 0
lea eax, [esp + 0xc4]
push eax
inc ebp
push ebp
push 0
call edi
mov esi, eax
test esi, esi
jne 0x410260
jmp 0x4102b5
test esi, esi
jne 0x4102ef
push str.mv_video_hook_driver2
push str.No__s_found._n
call fcn.0047dd47
add esp, 8
test ebx, ebx
je 0x4102d2
push ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor al, al
mov ecx, dword [esp + 0x374]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0047c3ff
add esp, 0x36c
ret 0x10
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 ebp
push str.DevNum:_d_nName:_s_nString:_s_nID:_s_nKey:_s_n_n
call fcn.0047dd47
lea edx, [esp + 0x200]
push edx
call fcn.0047dce2
lea eax, [esp + 0x204]
push str.DEVICE
push eax
call fcn.0047d970
xor edi, edi
add esp, 0x24
mov edx, 0x104
lea ecx, [esp + 0x268]
cmp eax, edi
jne 0x410355
mov eax, str.DEVICE0
jmp 0x410356
inc eax
call fcn.0040f740
mov esi, 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], edi
call esi
test eax, eax
je 0x410381
cmp ebx, edi
jmp 0x4102c9
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x26c]
push eax
push ecx
mov dword [esp + 0x1c], edi
call esi
test eax, eax
je 0x4103a4
cmp ebx, edi
jmp 0x4102c9
mov eax, dword [esp + 0x10]
push 4
lea edx, [esp + 0x20]
push edx
push 4
push edi
push str.Attach.ToDesktop
push eax
mov dword [esp + 0x34], 1
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x4103d1
cmp ebx, edi
jmp 0x4102c9
mov esi, dword [esp + 0x88]
push 0x9c
lea ecx, [esp + 0x24]
push edi
push ecx
call fcn.004858b0
xor eax, eax
mov edx, 0x9c
mov word [esp + 0x50], dx
mov word [esp + 0x52], ax
add esp, 0xc
mov eax, 0x4aa350
mov edx, 0x20
lea ecx, [esp + 0x20]
call fcn.0040f740
mov ecx, dword [esp + 0x388]
mov edx, dword [esp + 0x38c]
mov eax, dword [esp + 0x380]
mov dword [esp + 0x8c], ecx
mov ecx, dword [esp + 0x384]
mov dword [esp + 0x48], 0x1c0020
mov dword [esp + 0x90], edx
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], ecx
mov dword [esp + 0x88], 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 0x410481
push 0x2000000
push edi
push edi
call dword [sym.imp.USER32.dll_OpenInputDesktop]
mov ebp, eax
cmp ebp, edi
je 0x410485
push ebp
call ebx
jmp 0x410485
mov ebp, dword [esp + 0x1c]
push edi
push 1
push edi
mov edi, dword [sym.imp.USER32.dll_ChangeDisplaySettingsExA]
lea edx, [esp + 0x2c]
push edx
lea eax, [esp + 0xd4]
push eax
call edi
test eax, eax
je 0x4104b4
mov eax, dword [esp + 0x18]
test eax, eax
je 0x4102d2
push eax
jmp 0x4102cc
push 0
push 0
push 0
lea ecx, [esp + 0x2c]
push ecx
lea edx, [esp + 0xd4]
push edx
call edi
push esi
mov edi, eax
call ebx
push ebp
call dword [sym.imp.USER32.dll_CloseDesktop]
mov eax, dword [esp + 0x14]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push eax
call esi
mov ecx, dword [esp + 0x10]
push ecx
call esi
mov eax, dword [esp + 0x18]
test edi, edi
jne 0x4104a6
test eax, eax
je 0x4104fc
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov al, 1
jmp 0x4102d4