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

Disassembly:
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
mov qword [rsp + 0x20], r14
push rbp
lea rbp, [rsp - 0x2d0]
sub rsp, 0x3d0
mov rax, qword [0x14021b0e0]
xor rax, rsp
mov qword [rbp + 0x2c0], rax
xorps xmm0, xmm0
lea r8, [rsp + 0x60]
xor eax, eax
xor esi, esi
movups xmmword [rbp - 0x80], xmm0
mov edx, 0xffffffff
mov dword [rbp - 0x7c], 0x9c
xor ecx, ecx
mov qword [rbp - 0x10], rax
mov edi, esi
mov dword [rbp - 8], eax
movups xmmword [rsp + 0x60], xmm0
movups xmmword [rsp + 0x70], xmm0
movups xmmword [rbp - 0x70], xmm0
movups xmmword [rbp - 0x60], xmm0
movups xmmword [rbp - 0x50], xmm0
movups xmmword [rbp - 0x40], xmm0
movups xmmword [rbp - 0x30], xmm0
movups xmmword [rbp - 0x20], xmm0
call qword [sym.imp.USER32.dll_EnumDisplaySettingsA]
mov dword [rbp - 0x78], 0x1c0000
test eax, eax
je 0x140032037
xor edx, edx
mov qword [rsp + 0x3e0], rbx
mov r8d, 0x1a4
lea rcx, [rbp + 4]
call fcn.14014a5c0
xor r9d, r9d
mov dword [rbp], 0x1a8
lea r8, [rbp]
mov byte [rsp + 0x60], sil
xor edx, edx
xor ecx, ecx
mov ebx, esi
call qword [sym.imp.USER32.dll_EnumDisplayDevicesA]
test eax, eax
je 0x14003202f
nop
lea rdx, str.mv_video_hook_driver2
lea rcx, [rbp + 0x24]
call fcn.14018a550
test eax, eax
je 0x140031d10
inc ebx
lea r8, [rbp]
mov edx, ebx
xor r9d, r9d
xor ecx, ecx
call qword [sym.imp.USER32.dll_EnumDisplayDevicesA]
test eax, eax
jne 0x140031ce0
jmp 0x14003202f
lea rax, [rbp + 0x128]
mov edx, ebx
mov qword [rsp + 0x28], rax
lea r9, [rbp + 0x24]
lea rax, [rbp + 0xa8]
lea r8, [rbp + 4]
mov qword [rsp + 0x20], rax
lea rcx, str.DevNum:_d_nName:_s_nString:_s_nID:_s_nKey:_s_n_n
call fcn.140031320
lea rcx, [rbp + 0x128]
call fcn.14015b780
lea rdx, str.DEVICE
lea rcx, [rbp + 0x128]
call fcn.140149c64
mov r8, rax
lea rdx, [rbp + 0x1b0]
test rax, rax
mov ecx, 0x104
lea rax, [rbp + 0x1b0]
jne 0x140031da4
lea r8, str.DEVICE0
sub r8, rax
lea rax, [rcx + 0x7ffffefa]
test rax, rax
je 0x140031dd0
movzx eax, byte [r8 + rdx]
test al, al
je 0x140031dd0
mov byte [rdx], al
inc rdx
sub rcx, 1
jne 0x140031d82
jmp 0x140031dd0
inc r8
sub r8, rax
nop word [rax + rax]
lea rax, [rcx + 0x7ffffefa]
test rax, rax
je 0x140031dd0
movzx eax, byte [r8 + rdx]
test al, al
je 0x140031dd0
mov byte [rdx], al
inc rdx
sub rcx, 1
jne 0x140031db0
test rcx, rcx
mov qword [rsp + 0x38], rsi
lea rax, [rdx - 1]
mov rcx, 0xffffffff80000002
cmovne rax, rdx
lea r8, [rsp + 0x38]
lea rdx, str.SYSTEMCurrentControlSetHardware_ProfilesCurrentSystemCurrentControlSetServicesmv2
mov byte [rax], sil
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
jne 0x14003202f
mov rcx, qword [rsp + 0x38]
lea r8, [rsp + 0x40]
lea rdx, [rbp + 0x1b0]
mov qword [rsp + 0x40], rsi
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
jne 0x14003202f
mov rcx, qword [rsp + 0x40]
lea rax, [rsp + 0x30]
mov dword [rsp + 0x28], 4
lea rdx, str.Attach.ToDesktop
mov r9d, 4
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov dword [rsp + 0x30], esi
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x14003202f
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rdx, str.SYSTEM
lea rcx, [rbp + 0x128]
call fcn.140149c64
lea r8, [rsp + 0x48]
mov qword [rsp + 0x48], rsi
lea rdx, str.SYSTEMCurrentControlSetHardware_ProfilesCurrent
mov rcx, 0xffffffff80000002
mov rbx, rax
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
jne 0x14003202f
mov rcx, qword [rsp + 0x48]
lea r8, [rsp + 0x50]
mov rdx, rbx
mov qword [rsp + 0x50], rsi
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
jne 0x14003202f
mov rcx, qword [rsp + 0x50]
lea rax, [rsp + 0x30]
mov dword [rsp + 0x28], 4
lea rdx, str.Attach.ToDesktop
mov r9d, 4
mov qword [rsp + 0x20], rax
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x14003202f
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xorps xmm0, xmm0
lea r8, [0x1401f4708]
xor eax, eax
lea rcx, [rsp + 0x60]
mov qword [rbp - 0x10], rax
mov dword [rbp - 8], eax
movups xmmword [rbp - 0x80], xmm0
lea edx, [rax + 0x20]
mov dword [rbp - 0x7c], 0x9c
lea rax, [rsp + 0x60]
sub r8, rax
movups xmmword [rsp + 0x60], xmm0
movups xmmword [rsp + 0x70], xmm0
movups xmmword [rbp - 0x70], xmm0
movups xmmword [rbp - 0x60], xmm0
movups xmmword [rbp - 0x50], xmm0
movups xmmword [rbp - 0x40], xmm0
movups xmmword [rbp - 0x30], xmm0
movups xmmword [rbp - 0x20], xmm0
nop
lea rax, [rdx + 0x7fffffde]
test rax, rax
je 0x140031f90
movzx eax, byte [r8 + rcx]
test al, al
je 0x140031f90
mov byte [rcx], al
inc rcx
sub rdx, 1
jne 0x140031f70
test rdx, rdx
lea rax, [rcx - 1]
cmovne rax, rcx
mov byte [rax], sil
mov dword [rbp - 0x38], 0x20
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ecx, eax
call qword [sym.imp.USER32.dll_GetThreadDesktop]
mov rbx, rax
test rax, rax
je 0x140031fdc
xor edx, edx
xor ecx, ecx
mov r8d, 0x2000000
call qword [sym.imp.USER32.dll_OpenInputDesktop]
mov rdi, rax
test rax, rax
je 0x140031fdc
mov rcx, rax
call qword [sym.imp.USER32.dll_SetThreadDesktop]
mov r9d, 1
mov qword [rsp + 0x20], rsi
xor r8d, r8d
lea rdx, [rsp + 0x60]
lea rcx, [rbp + 4]
call qword [sym.imp.USER32.dll_ChangeDisplaySettingsExA]
xor r9d, r9d
mov qword [rsp + 0x20], rsi
xor r8d, r8d
lea rdx, [rsp + 0x60]
lea rcx, [rbp + 4]
call qword [sym.imp.USER32.dll_ChangeDisplaySettingsExA]
test rbx, rbx
je 0x140032021
mov rcx, rbx
call qword [sym.imp.USER32.dll_SetThreadDesktop]
test rdi, rdi
je 0x14003202f
mov rcx, rdi
call qword [sym.imp.USER32.dll_CloseDesktop]
mov rbx, qword [rsp + 0x3e0]
mov rcx, qword [rbp + 0x2c0]
xor rcx, rsp
call fcn.140147af0
lea r11, [rsp + 0x3d0]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov r14, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret