Function at 0x140011670
Capabilities:
Create process on windows
Query or enumerate registry value
Set registry value
Start service

Disassembly:
mov rax, rsp
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rax - 0x8c8]
sub rsp, 0x9a0
mov qword [rsp + 0x60], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov rax, qword [0x140058100]
xor rax, rsp
mov qword [rbp + 0x890], rax
movzx r15d, dl
mov r14d, ecx
xor r12d, r12d
mov dword [rbp + 0x10], r12d
mov qword [rbp - 0x70], r12
mov qword [rbp - 0x78], r12
mov ebx, r12d
xor edx, edx
xor ecx, ecx
lea r8d, [r12 + 0x10]
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rsi, rax
test rax, rax
je 0x14001173b
lea r8d, [r12 + 0x10]
lea rdx, str.FontCache3.0.0.0
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rdi, rax
test rax, rax
je 0x140011724
nop dword [rax + rax]
xor r8d, r8d
xor edx, edx
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
jne 0x140011719
inc ebx
cmp ebx, 2
jl 0x140011700
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x140011730
lea rcx, [0x140059f10]
call fcn.14001e460
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x140011747
lea rcx, [0x140059f10]
call fcn.14001e460
cmp byte [0x1400580a9], r12b
je 0x1400117e7
xor eax, eax
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x78], rax
mov rbx, r12
mov dword [rsp + 0x78], r12d
mov qword [rbp - 0x80], r12
mov qword [rsp + 0x68], r12
lea rax, [rsp + 0x68]
mov qword [rsp + 0x20], rax
mov r9d, 0x2001f
xor r8d, r8d
lea rdx, str.SOFTWAREIntelDisplayigfxcuiprofiles
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1400117d2
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0x70], rax
mov dword [rsp + 0x78], r12d
lea rdx, [0x14003d7b0]
lea rcx, [rsp + 0x70]
call fcn.140008600
mov rbx, qword [rsp + 0x70]
test rbx, rbx
je 0x1400117d2
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rbx, r12
mov byte [0x1400580a9], r12b
test rbx, rbx
je 0x1400117e7
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor edx, edx
mov r8d, 0x864
lea rcx, [rbp + 0x20]
call fcn.14001c090
xor eax, eax
mov qword [rsp + 0x78], rax
mov rbx, r12
mov qword [rsp + 0x70], rbx
mov dword [rsp + 0x78], r12d
mov qword [rbp - 0x80], r12
mov qword [rsp + 0x68], r12
lea rax, [rsp + 0x68]
mov qword [rsp + 0x20], rax
mov r9d, 0x2001f
xor r8d, r8d
lea rdx, str.SOFTWAREIntelDisplayigfxcui_
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14001189e
mov rbx, qword [rsp + 0x68]
mov qword [rsp + 0x70], rbx
mov dword [rbp + 0x18], 4
lea rax, [rbp + 0x18]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x10]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x68]
xor r8d, r8d
lea rdx, str.Inst
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test rbx, rbx
je 0x140011891
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rbx, r12
mov qword [rsp + 0x70], rbx
mov dword [rsp + 0x78], r12d
mov ecx, dword [rbp + 0x10]
call fcn.14000ea30
cmp r15b, 1
jne 0x1400118f4
cmp dword [rbp + 0x10], 3
jne 0x14001194e
call fcn.1400125a0
call fcn.140011bc0
call fcn.14000e970
call fcn.1400120c0
lea rcx, str.igfxOSP.dll
call fcn.140012660
call fcn.140012440
lea rcx, str.igfxHK.exe
call fcn.140012660
lea rcx, str.igfxTray.exe
call fcn.140012660
lea r8, [0x14005f4d0]
jmp 0x140011940
mov ecx, dword [rbp + 0x10]
cmp ecx, 4
jne 0x140011905
lea r8, [0x14005b2a0]
jmp 0x140011940
lea eax, [rcx - 1]
cmp eax, 1
jbe 0x14001192f
test ecx, ecx
jne 0x14001194e
call fcn.1400124e0
call fcn.140012440
call fcn.140012920
call fcn.140010460
call fcn.1400129f0
jmp 0x140011b80
mov ecx, 2
call fcn.140011c80
lea r8, [0x14005ec60]
mov edx, 0x432
lea rcx, [rbp + 0x20]
call fcn.14001ea10
test r14d, r14d
jne 0x14001195c
call qword [sym.imp.KERNEL32.dll_WTSGetActiveConsoleSessionId]
mov r14d, eax
lea rdx, [rbp - 0x70]
mov ecx, r14d
call sub.WTSAPI32.dll_WTSQueryUserToken
test eax, eax
je 0x140011b05
mov qword [rsp + 0x70], r12
xor eax, eax
mov qword [rsp + 0x78], rax
mov qword [rbp - 0x80], rax
xor edx, edx
lea r8d, [rax + 0x60]
lea rcx, [rbp - 0x58]
call fcn.14001c090
mov dword [rbp - 0x60], 0x68
mov rcx, qword [rbp - 0x70]
test rcx, rcx
je 0x140011b05
lea rax, [rbp - 0x78]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 1
mov r9d, 1
xor r8d, r8d
mov edx, 0x2000000
call qword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
mov rcx, qword [rbp - 0x78]
test rcx, rcx
je 0x140011af5
call qword [sym.imp.ADVAPI32.dll_ImpersonateLoggedOnUser]
test eax, eax
je 0x140011adf
lea rax, str.winsta0default
mov qword [rbp - 0x50], rax
mov eax, dword [rbp + 0x10]
add eax, 0xfffffffd
cmp eax, 1
jbe 0x140011a58
lea rax, [rsp + 0x70]
mov qword [rsp + 0x48], rax
lea rax, [rbp - 0x60]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], 0x8000000
mov dword [rsp + 0x20], r12d
xor r9d, r9d
xor r8d, r8d
lea rdx, [rbp + 0x20]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x140011adf
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140011adf
mov qword [rsp + 0x68], r12
xor r8d, r8d
mov rdx, qword [rbp - 0x78]
lea rcx, [rsp + 0x68]
call sub.USERENV.dll_CreateEnvironmentBlock
lea rax, [rsp + 0x70]
mov qword [rsp + 0x50], rax
lea rax, [rbp - 0x60]
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x40], r12
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], 0x8000420
mov dword [rsp + 0x28], r12d
mov qword [rsp + 0x20], r12
xor r9d, r9d
xor r8d, r8d
lea rdx, [rbp + 0x20]
mov rcx, qword [rbp - 0x78]
call qword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
test eax, eax
je 0x140011ad0
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x140011adf
call sub.USERENV.dll_DestroyEnvironmentBlock
call qword [sym.imp.ADVAPI32.dll_RevertToSelf]
mov rcx, qword [rbp - 0x78]
cmp rcx, 0xffffffffffffffff
je 0x140011af5
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp - 0x70]
cmp rcx, 0xffffffffffffffff
je 0x140011b05
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [rbp + 0x10], 3
jne 0x140011b80
mov qword [rsp + 0x68], r12
lea rax, [rsp + 0x68]
mov qword [rsp + 0x20], rax
mov r9d, 0x2001f
xor r8d, r8d
lea rdx, str.SOFTWAREIntelDisplayigfxcui_
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140011b80
mov dword [rbp + 0x18], 4
mov dword [rsp + 0x28], 4
lea rax, [rbp + 0x18]
mov qword [rsp + 0x20], rax
mov r9d, 4
xor r8d, r8d
lea rdx, str.Inst
mov rdi, qword [rsp + 0x68]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test rdi, rdi
je 0x140011b80
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
test rbx, rbx
je 0x140011b8e
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, 1
mov rcx, qword [rbp + 0x890]
xor rcx, rsp
call fcn.140018ad0
lea r11, [rsp + 0x9a0]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret