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

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x2c8]
sub rsp, 0x3c8
mov rax, qword [0x14021b0e0]
xor rax, rsp
mov qword [rbp + 0x2b0], rax
xorps xmm0, xmm0
xor eax, eax
mov r12d, r8d
mov qword [rbp - 0x20], rax
mov r15d, edx
mov dword [rbp - 0x18], eax
mov rbx, rcx
lea r8, [rsp + 0x50]
movups xmmword [rsp + 0x70], xmm0
xor r13d, r13d
mov dword [rsp + 0x74], 0x9c
mov edx, 0xffffffff
xor ecx, ecx
mov r14d, r9d
mov esi, r13d
movups xmmword [rsp + 0x50], xmm0
movups xmmword [rsp + 0x60], xmm0
movups xmmword [rbp - 0x80], 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
call qword [sym.imp.USER32.dll_EnumDisplaySettingsA]
mov ecx, dword [rbp - 0x48]
mov edx, eax
mov dword [rsp + 0x78], 0x1c0020
lea eax, [rcx - 8]
test eax, 0xffffffe7
jne 0x14003219b
cmp ecx, 0x18
je 0x14003219b
mov edi, dword [rbp + 0x330]
shr ecx, 3
imul ecx, r14d
imul ecx, edi
add ecx, 0xdac4
mov dword [rbx + 0x30], ecx
test edx, edx
je 0x14003219b
xor edx, edx
lea rcx, [rbp - 0xc]
mov r8d, 0x1a4
call fcn.14014a5c0
xor r9d, r9d
mov dword [rbp - 0x10], 0x1a8
lea r8, [rbp - 0x10]
mov byte [rsp + 0x50], sil
xor edx, edx
xor ecx, ecx
mov ebx, r13d
call qword [sym.imp.USER32.dll_EnumDisplayDevicesA]
test eax, eax
je 0x14003219b
nop dword [rax]
nop word [rax + rax]
lea rdx, str.mv_video_hook_driver2
lea rcx, [rbp + 0x14]
call fcn.14018a550
test eax, eax
je 0x1400321c0
inc ebx
lea r8, [rbp - 0x10]
mov edx, ebx
xor r9d, r9d
xor ecx, ecx
call qword [sym.imp.USER32.dll_EnumDisplayDevicesA]
test eax, eax
jne 0x140032170
xor al, al
mov rcx, qword [rbp + 0x2b0]
xor rcx, rsp
call fcn.140147af0
add rsp, 0x3c8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
lea rax, [rbp + 0x118]
mov edx, ebx
mov qword [rsp + 0x28], rax
lea r9, [rbp + 0x14]
lea rax, [rbp + 0x98]
lea r8, [rbp - 0xc]
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 + 0x118]
call fcn.14015b780
lea rdx, str.DEVICE
lea rcx, [rbp + 0x118]
call fcn.140149c64
mov r8, rax
lea rdx, [rbp + 0x1a0]
test rax, rax
mov ecx, 0x104
lea rax, [rbp + 0x1a0]
jne 0x140032254
lea r8, str.DEVICE0
sub r8, rax
lea rax, [rcx + 0x7ffffefa]
test rax, rax
je 0x140032280
movzx eax, byte [r8 + rdx]
test al, al
je 0x140032280
mov byte [rdx], al
inc rdx
sub rcx, 1
jne 0x140032232
jmp 0x140032280
inc r8
sub r8, rax
nop word [rax + rax]
lea rax, [rcx + 0x7ffffefa]
test rax, rax
je 0x140032280
movzx eax, byte [r8 + rdx]
test al, al
je 0x140032280
mov byte [rdx], al
inc rdx
sub rcx, 1
jne 0x140032260
test rcx, rcx
mov qword [rsp + 0x38], r13
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 0x14003219b
mov rcx, qword [rsp + 0x38]
lea r8, [rsp + 0x40]
lea rdx, [rbp + 0x1a0]
mov qword [rsp + 0x40], r13
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
jne 0x14003219b
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], 1
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x14003219b
mov r9d, dword [rbp - 0x48]
lea r8, [0x1401f4708]
xorps xmm0, xmm0
lea rcx, [rsp + 0x50]
xor eax, eax
mov qword [rbp - 0x20], rax
mov dword [rbp - 0x18], eax
movups xmmword [rsp + 0x70], xmm0
lea edx, [rax + 0x20]
mov dword [rsp + 0x74], 0x9c
lea rax, [rsp + 0x50]
sub r8, rax
movups xmmword [rsp + 0x50], xmm0
movups xmmword [rsp + 0x60], xmm0
movups xmmword [rbp - 0x80], 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
nop dword [rax + rax]
lea rax, [rdx + 0x7fffffde]
test rax, rax
je 0x140032390
movzx eax, byte [r8 + rcx]
test al, al
je 0x140032390
mov byte [rcx], al
inc rcx
sub rdx, 1
jne 0x140032370
test rdx, rdx
lea rax, [rcx - 1]
cmovne rax, rcx
mov byte [rax], sil
mov dword [rsp + 0x78], 0x1c0020
mov dword [rbp - 0x44], r14d
mov dword [rbp - 0x40], edi
mov dword [rsp + 0x7c], r15d
mov dword [rbp - 0x80], r12d
mov dword [rbp - 0x48], r9d
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ecx, eax
call qword [sym.imp.USER32.dll_GetThreadDesktop]
mov rbx, rax
test rax, rax
je 0x1400323f1
xor edx, edx
xor ecx, ecx
mov r8d, 0x2000000
call qword [sym.imp.USER32.dll_OpenInputDesktop]
mov rsi, rax
test rax, rax
je 0x1400323f1
mov rcx, rax
call qword [sym.imp.USER32.dll_SetThreadDesktop]
mov r9d, 1
mov qword [rsp + 0x20], r13
xor r8d, r8d
lea rdx, [rsp + 0x50]
lea rcx, [rbp - 0xc]
call qword [sym.imp.USER32.dll_ChangeDisplaySettingsExA]
test eax, eax
jne 0x14003219b
xor r9d, r9d
mov qword [rsp + 0x20], r13
xor r8d, r8d
lea rdx, [rsp + 0x50]
lea rcx, [rbp - 0xc]
call qword [sym.imp.USER32.dll_ChangeDisplaySettingsExA]
mov edi, eax
test rbx, rbx
je 0x140032440
mov rcx, rbx
call qword [sym.imp.USER32.dll_SetThreadDesktop]
test rsi, rsi
je 0x14003244e
mov rcx, rsi
call qword [sym.imp.USER32.dll_CloseDesktop]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
jne 0x14003219b
mov al, 1
jmp 0x14003219d