Function at 0x140007c00
Capabilities:
Create thread
Delete registry value
Query or enumerate registry value
Set registry value

Disassembly:
mov rax, rsp
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x180
mov qword [rsp + 0x68], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov rax, qword [0x140058100]
xor rax, rsp
mov qword [rsp + 0x170], rax
mov r13, rcx
call fcn.140007a60
mov r14d, eax
mov dword [rsp + 0x30], eax
lea rcx, [r13 + 0x298]
call fcn.1400163a0
xor r12d, r12d
mov dword [rsp + 0x94], r12d
xor eax, eax
mov qword [rsp + 0x40], rax
mov esi, r12d
mov qword [rsp + 0x38], r12
mov dword [rsp + 0x40], r12d
mov qword [rsp + 0x48], r12
mov qword [rsp + 0x70], r12
lea rax, [rsp + 0x70]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
lea rdx, str.SOFTWAREIntelDisplayigfxcui_
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140007d0a
mov rsi, qword [rsp + 0x70]
mov qword [rsp + 0x38], rsi
mov dword [rsp + 0x98], 4
lea rax, [rsp + 0x98]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x94]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0xc0]
xor r8d, r8d
lea rdx, str.Inst
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test rsi, rsi
je 0x140007d05
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, r12d
mov qword [rsp + 0x38], r12
mov dword [rsp + 0x40], r12d
xor eax, eax
mov qword [rsp + 0x58], rax
mov r15, r12
mov qword [rsp + 0x50], r12
mov dword [rsp + 0x58], r12d
mov qword [rsp + 0x60], r12
mov qword [rsp + 0x78], r12
lea rax, [rsp + 0x78]
mov qword [rsp + 0x20], rax
mov r9d, 0x2001f
xor r8d, r8d
lea rdx, str.SOFTWAREIntelDisplayigfxcuiMISC
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140007db1
mov r15, qword [rsp + 0x78]
mov qword [rsp + 0x50], r15
mov dword [rsp + 0xa0], 1
mov dword [rsp + 0x28], 4
lea rax, [rsp + 0xa0]
mov qword [rsp + 0x20], rax
mov r9d, 4
xor r8d, r8d
lea rdx, str.InstallStage
mov rcx, r15
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test r15, r15
je 0x140007dac
mov rcx, r15
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov r15, r12
mov qword [rsp + 0x50], r12
mov dword [rsp + 0x58], r12d
cmp dword [rsp + 0x94], 3
jne 0x140007e1f
mov qword [rsp + 0x80], r12
lea rax, [rsp + 0x80]
mov qword [rsp + 0x20], rax
mov r9d, 0x2001f
xor r8d, r8d
lea rdx, str.SOFTWAREIntelDisplayigfxcuiMISC_
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140007e17
lea rdx, str.AutoApplyProfileFeature
mov rbx, qword [rsp + 0x80]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test rbx, rbx
je 0x140007e17
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [rsp + 0x94], 3
ja 0x140007e2f
call fcn.140011660
mov dl, 1
xor ecx, ecx
call fcn.140011670
mov qword [rsp + 0x88], r12
lea rax, [rsp + 0x88]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
lea rdx, str.SOFTWAREIntelDisplayigfxcui_
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140007eeb
mov eax, r12d
test rsi, rsi
je 0x140007e7a
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rsi, qword [rsp + 0x88]
mov qword [rsp + 0x38], rsi
mov dword [rsp + 0x40], r12d
test eax, eax
jne 0x140007eeb
mov dword [rsp + 0xa8], 4
lea rax, [rsp + 0xa8]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x94]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0xc4]
xor r8d, r8d
lea rdx, str.Inst
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test rsi, rsi
je 0x140007ee6
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rsi, r12
mov qword [rsp + 0x38], r12
mov dword [rsp + 0x40], r12d
mov eax, dword [rsp + 0x94]
cmp eax, 3
jae 0x140007f3b
mov eax, 3
xchg dword [0x14005a184], eax
lea rdx, [0x14005a180]
mov rcx, qword [0x14005a178]
call qword [sym.imp.ADVAPI32.dll_SetServiceStatus]
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 0x12]
mov ecx, dword [0x14005a1a0]
call qword [sym.imp.USER32.dll_PostThreadMessageW]
mov rsi, qword [rsp + 0x38]
mov r15, qword [rsp + 0x50]
jmp 0x1400080f9
test eax, eax
je 0x1400080f9
xor eax, eax
mov qword [rsp + 0xcc], rax
mov dword [rsp + 0xe4], eax
mov dword [rsp + 0xc8], 0x20
mov dword [rsp + 0xcc], 5
movups xmm0, xmmword [0x140039c10]
movups xmmword [rsp + 0xd4], xmm0
lea r8d, [rax + 1]
lea rdx, [rsp + 0xc8]
mov rcx, qword [r13 + 0x268]
call qword [sym.imp.USER32.dll_RegisterDeviceNotificationW]
mov qword [0x140059f00], rax
lea rcx, [rsp + 0x90]
call fcn.140001340
nop
xor edx, edx
lea r8d, [rdx + 0x6d]
lea rcx, [rsp + 0x100]
call fcn.14001c090
mov dword [rsp + 0x109], 1
mov dword [rsp + 0x101], 1
mov byte [rsp + 0xb0], 0
xor eax, eax
mov qword [rsp + 0xb1], rax
mov word [rsp + 0xb9], ax
mov byte [rsp + 0xbb], al
lea rcx, [rsp + 0xb0]
call qword [sym.imp.KERNEL32.dll_GetSystemPowerStatus]
mov dword [rsp + 0x105], 1
cmp eax, 1
jne 0x140008025
movzx eax, byte [rsp + 0xb0]
neg al
sbb ecx, ecx
add ecx, 2
mov dword [rsp + 0x105], ecx
lea rax, [rsp + 0xe8]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x100]
mov edx, 1
lea r8d, [rdx + 0x6c]
lea rcx, [rsp + 0x90]
call fcn.140001560
mov r14d, eax
mov dword [rsp + 0x30], eax
test eax, eax
js 0x1400080e4
cmp byte [rsp + 0xe8], 0
jne 0x1400080e4
movzx eax, word [rsp + 0x11b]
mov ecx, 0x1000
and ax, cx
cmp r12w, ax
jne 0x140008089
test byte [rsp + 0x11b], 4
je 0x1400080d5
lea rdi, [r13 + 0x2a0]
mov qword [rsp + 0x20], rdi
lea r9, [0x14003a248]
xor edx, edx
lea r8d, [rdx + 0x17]
lea rcx, [0x14003b670]
call qword [sym.imp.ole32.dll_CoCreateInstance]
mov r14d, eax
test eax, eax
cmovs r14d, r12d
mov dword [rsp + 0x30], r14d
mov rdi, qword [rdi]
mov rax, qword [rdi]
mov rbx, qword [rax + 0x18]
mov rcx, rbx
call qword [fcn.14001e460]
mov rcx, rdi
call rbx
mov edx, 1
mov rcx, r13
call fcn.140004dc0
jmp 0x1400080ec
mov r14d, r12d
mov dword [rsp + 0x30], r12d
lea rcx, [rsp + 0x90]
call fcn.14001e460
call fcn.140006c40
test al, al
je 0x14000813f
mov dword [rsp + 0xac], r12d
lea rax, [rsp + 0xac]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], r12d
xor r9d, r9d
lea r8, [0x140003b50]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
test rax, rax
je 0x14000813f
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
test r15, r15
je 0x14000814e
mov rcx, r15
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
test rsi, rsi
je 0x14000815d
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
mov eax, r14d
jmp 0x140008166
mov rcx, qword [rsp + 0x170]
xor rcx, rsp
call fcn.140018ad0
lea r11, [rsp + 0x180]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret