Function at 0x140010520
Capabilities:
Persist via default file association registry key
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
lea rbp, [rsp - 0x770]
sub rsp, 0x870
mov rax, qword [0x1400461e0]
xor rax, rsp
mov qword [rbp + 0x760], rax
xor esi, esi
lea rax, [rsp + 0x58]
lea rdx, str.SOFTWAREClasses.igp
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x50]
xor r9d, r9d
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rsi
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov dword [rsp + 0x28], 0xf003f
mov ebx, esi
mov dword [rsp + 0x20], esi
mov qword [rsp + 0x50], rsi
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x1400105dc
mov rbx, qword [rsp + 0x50]
lea rax, str.Intel.GraphicsControlPanel.igp.1
lea r9d, [rsi + 1]
lea rdx, [0x140032a0c]
xor r8d, r8d
mov rcx, rbx
mov dword [rsp + 0x28], 0x42
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test rbx, rbx
je 0x1400105dc
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ebx, esi
lea rax, [rsp + 0x58]
lea rdx, str.SOFTWAREClassesIntel.GraphicsControlPanel.igp.1
xor r9d, r9d
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x50]
xor r8d, r8d
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rsi
mov rcx, 0xffffffff80000002
mov dword [rsp + 0x28], 0xf003f
mov qword [rsp + 0x50], rsi
mov dword [rsp + 0x20], esi
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x14001067b
mov eax, esi
test rbx, rbx
je 0x140010634
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rbx, qword [rsp + 0x50]
test eax, eax
jne 0x14001067b
lea rax, str.Intel_Graphics_Profiles
lea rdx, [0x140032a0c]
mov r9d, 1
xor r8d, r8d
mov rcx, rbx
mov dword [rsp + 0x28], 0x30
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test rbx, rbx
je 0x14001067b
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rbx, rsi
lea rax, [rsp + 0x58]
lea rdx, str.SOFTWAREClassesIntel.GraphicsControlPanel.igp.1DefaultIcon
xor r9d, r9d
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x50]
xor r8d, r8d
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rsi
mov rcx, 0xffffffff80000002
mov dword [rsp + 0x28], 0xf003f
mov qword [rsp + 0x50], rsi
mov dword [rsp + 0x20], esi
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
or rdi, 0xffffffffffffffff
test eax, eax
jne 0x14001077d
mov eax, esi
test rbx, rbx
je 0x1400106db
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rbx, qword [rsp + 0x50]
test eax, eax
jne 0x14001077d
lea rcx, [rsp + 0x62]
xor edx, edx
mov r8d, 0x7fe
mov word [rsp + 0x60], si
call fcn.140016700
lea r8, [0x14004bcd0]
lea rcx, [rsp + 0x60]
mov edx, 0x400
call fcn.140017540
lea r8, str.GfxUIEx.exe__2
lea rcx, [rsp + 0x60]
mov edx, 0x400
call fcn.1400174b8
lea rcx, [rsp + 0x60]
mov rax, rdi
cmp word [rcx + rax*2 + 2], si
lea rax, [rax + 1]
jne 0x140010733
lea eax, [rax*2 + 2]
lea rdx, [0x140032a0c]
mov r9d, 1
mov dword [rsp + 0x28], eax
lea rax, [rsp + 0x60]
xor r8d, r8d
mov rcx, rbx
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test rbx, rbx
je 0x14001077d
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rbx, rsi
lea rax, [rsp + 0x58]
lea rdx, str.SOFTWAREClassesIntel.GraphicsControlPanel.igp.1_shellopencommand
xor r9d, r9d
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x50]
xor r8d, r8d
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rsi
mov rcx, 0xffffffff80000002
mov dword [rsp + 0x28], 0xf003f
mov qword [rsp + 0x50], rsi
mov dword [rsp + 0x20], esi
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x140010869
mov eax, esi
test rbx, rbx
je 0x1400107d9
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rbx, qword [rsp + 0x50]
test eax, eax
jne 0x140010869
lea rcx, [rsp + 0x62]
xor edx, edx
mov r8d, 0x7fe
mov word [rsp + 0x60], si
call fcn.140016700
lea r8, [0x14004bcd0]
lea rcx, [rsp + 0x60]
mov edx, 0x400
call fcn.140017540
lea r8, str.GfxUIEx.exe__1
lea rcx, [rsp + 0x60]
mov edx, 0x400
call fcn.1400174b8
lea rax, [rsp + 0x60]
nop
cmp word [rax + rdi*2 + 2], si
lea rdi, [rdi + 1]
jne 0x140010830
lea eax, [rdi*2 + 2]
lea rdx, [0x140032a0c]
mov r9d, 1
mov dword [rsp + 0x28], eax
lea rax, [rsp + 0x60]
xor r8d, r8d
mov rcx, rbx
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test rbx, rbx
je 0x140010877
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, 1
mov rcx, qword [rbp + 0x760]
xor rcx, rsp
call fcn.1400166d0
lea r11, [rsp + 0x870]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret