Function at 0x140011100
Capabilities:
Create process on windows
Get common file path
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 - 0x8d8]
sub rsp, 0x9b0
mov qword [rbp - 0x48], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov rax, qword [0x14004c120]
xor rax, rsp
mov qword [rbp + 0x8a0], rax
movzx r15d, dl
mov r14d, ecx
xor r12d, r12d
mov dword [rsp + 0x60], r12d
mov qword [rbp - 0x68], 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 0x1400111cb
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 0x1400111b4
nop dword [rax + rax]
xor r8d, r8d
xor edx, edx
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
jne 0x1400111a9
inc ebx
cmp ebx, 2
jl 0x140011190
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x1400111c0
lea rcx, [0x14004f170]
call fcn.140005c80
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x1400111d7
lea rcx, [0x14004f170]
call fcn.140005c80
cmp byte [0x14004c0c1], r12b
je 0x14001124d
mov qword [rsp + 0x70], r12
mov dword [rsp + 0x78], r12d
mov qword [rbp - 0x80], r12
mov r9d, 0x2001f
lea r8, str.SOFTWAREIntelDisplayigfxcuiprofiles
mov rdx, 0xffffffff80000002
lea rcx, [rsp + 0x70]
call fcn.140006000
test eax, eax
jne 0x140011236
lea rdx, [0x140037ee0]
lea rcx, [rsp + 0x70]
call fcn.140007510
mov rcx, qword [rsp + 0x70]
test rcx, rcx
je 0x14001123b
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, r12
jmp 0x14001123b
mov rcx, qword [rsp + 0x70]
mov byte [0x14004c0c1], r12b
test rcx, rcx
je 0x14001124d
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, 0x400
lea rcx, [0x140051e90]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov word [rbp + 0x30], r12w
xor edx, edx
mov r8d, 0x862
lea rcx, [rbp + 0x32]
call fcn.140018fb0
mov qword [rsp + 0x70], r12
mov dword [rsp + 0x78], r12d
mov qword [rbp - 0x80], r12
mov r9d, 0x2001f
lea r8, str.SOFTWAREIntelDisplayigfxcui_
mov rdx, 0xffffffff80000002
lea rcx, [rsp + 0x70]
call fcn.140006000
mov rbx, qword [rsp + 0x70]
test eax, eax
jne 0x140011301
mov dword [rsp + 0x68], 4
lea rax, [rsp + 0x68]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
lea r9, [rbp - 0x70]
xor r8d, r8d
lea rdx, str.Inst
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test rbx, rbx
je 0x1400112f3
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 [rsp + 0x60]
call fcn.140010330
cmp r15b, 1
jne 0x14001132b
cmp dword [rsp + 0x60], 3
jne 0x140011385
call fcn.140011cc0
call fcn.140011610
call fcn.140010280
call fcn.1400118d0
lea r8, [0x140053770]
jmp 0x140011377
mov ecx, dword [rsp + 0x60]
cmp ecx, 4
jne 0x14001133d
lea r8, [0x140050540]
jmp 0x140011377
lea eax, [rcx - 1]
cmp eax, 1
jbe 0x140011366
test ecx, ecx
jne 0x140011385
call fcn.140011bb0
call fcn.140011b50
call fcn.140011d60
call fcn.140010d00
lea r8, [0x140052690]
jmp 0x140011377
mov ecx, 2
call fcn.1400116b0
lea r8, [0x140052f00]
mov edx, 0x432
lea rcx, [rbp + 0x30]
call fcn.140019df0
test r14d, r14d
jne 0x140011393
call qword [sym.imp.KERNEL32.dll_WTSGetActiveConsoleSessionId]
mov r14d, eax
lea rdx, [rbp - 0x68]
mov ecx, r14d
call sub.WTSAPI32.dll_WTSQueryUserToken
test eax, eax
je 0x140011545
mov qword [rbp - 0x60], r12
xor eax, eax
mov qword [rbp - 0x58], rax
mov qword [rbp - 0x50], rax
xor edx, edx
lea r8d, [rax + 0x60]
lea rcx, [rbp - 0x38]
call fcn.140018fb0
mov dword [rbp - 0x40], 0x68
mov rcx, qword [rbp - 0x68]
test rcx, rcx
je 0x140011545
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 0x140011535
call qword [sym.imp.ADVAPI32.dll_ImpersonateLoggedOnUser]
test eax, eax
je 0x140011525
lea rax, str.winsta0default
mov qword [rbp - 0x30], rax
mov eax, dword [rsp + 0x60]
add eax, 0xfffffffd
cmp eax, 1
jbe 0x14001148b
lea rax, [rbp - 0x60]
mov qword [rsp + 0x48], rax
lea rax, [rbp - 0x40]
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 + 0x30]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x140011525
mov rcx, qword [rbp - 0x60]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp - 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140011525
mov edx, r14d
lea rcx, [0x14004f170]
call fcn.140009230
mov ecx, 0x64
call qword [sym.imp.KERNEL32.dll_Sleep]
mov qword [rbp - 0x70], r12
xor r8d, r8d
mov rdx, qword [rbp - 0x78]
lea rcx, [rbp - 0x70]
call sub.USERENV.dll_CreateEnvironmentBlock
lea rax, [rbp - 0x60]
mov qword [rsp + 0x50], rax
lea rax, [rbp - 0x40]
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x40], r12
mov rax, qword [rbp - 0x70]
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 + 0x30]
mov rcx, qword [rbp - 0x78]
call qword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
test eax, eax
je 0x140011517
mov rcx, qword [rbp - 0x60]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp - 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp - 0x70]
test rcx, rcx
je 0x140011525
call sub.USERENV.dll_DestroyEnvironmentBlock
call qword [sym.imp.ADVAPI32.dll_RevertToSelf]
mov rcx, qword [rbp - 0x78]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp - 0x68]
cmp rcx, 0xffffffffffffffff
je 0x140011545
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [rsp + 0x60], 3
jne 0x1400115d3
mov qword [rsp + 0x70], r12
mov dword [rsp + 0x78], r12d
mov qword [rbp - 0x80], r12
mov r9d, 0x2001f
lea r8, str.SOFTWAREIntelDisplayigfxcui_
mov rdx, 0xffffffff80000002
lea rcx, [rsp + 0x70]
call fcn.140006000
test eax, eax
jne 0x1400115c2
mov dword [rsp + 0x68], 4
mov dword [rsp + 0x28], 4
lea rax, [rsp + 0x68]
mov qword [rsp + 0x20], rax
mov r9d, 4
xor r8d, r8d
lea rdx, str.Inst
mov rdi, qword [rsp + 0x70]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test rdi, rdi
je 0x1400115d3
mov rcx, rdi
jmp 0x1400115cc
mov rcx, qword [rsp + 0x70]
test rcx, rcx
je 0x1400115d3
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
test rbx, rbx
je 0x1400115e1
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, 1
mov rcx, qword [rbp + 0x8a0]
xor rcx, rsp
call fcn.140018f80
lea r11, [rsp + 0x9b0]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret