Function at 0x140010620
Capabilities:
Create process on windows
Delete registry key
Get common file path
Query or enumerate registry key
Query or enumerate registry value
Set registry value
Start service

Disassembly:
mov rax, rsp
push rbp
push r14
push r15
lea rbp, [rax - 0xad8]
sub rsp, 0xbc0
mov qword [rbp - 0x40], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x14004a110]
xor rax, rsp
mov qword [rbp + 0xab0], rax
mov r14d, ecx
xor r15d, r15d
mov dword [rsp + 0x68], r15d
mov qword [rbp - 0x78], r15
mov qword [rsp + 0x70], r15
mov ebx, r15d
mov qword [rsp + 0x78], r15
xor edx, edx
xor ecx, ecx
lea r8d, [r15 + 0x10]
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rsi, rax
test rax, rax
je 0x1400106eb
lea r8d, [r15 + 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 0x1400106d4
nop dword [rax]
xor r8d, r8d
xor edx, edx
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
jne 0x1400106c9
inc ebx
cmp ebx, 2
jl 0x1400106b0
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x1400106e0
lea rcx, [0x14004d240]
call fcn.140005940
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x1400106f7
lea rcx, [0x14004d240]
call fcn.140005940
cmp byte [0x14004a0c0], r15b
je 0x1400107ec
lea rax, [rsp + 0x78]
mov qword [rsp + 0x20], rax
mov r9d, 8
xor r8d, r8d
lea rdx, str.SOFTWAREIntelDisplayigfxcuiprofiles_app
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1400107e5
mov ebx, r15d
mov word [rbp + 0x40], r15w
xor edx, edx
mov r8d, 0x1fe
lea rcx, [rbp + 0x42]
call fcn.140017a30
mov dword [rsp + 0x60], 0x100
mov qword [rsp + 0x38], r15
mov qword [rsp + 0x30], r15
mov qword [rsp + 0x28], r15
mov qword [rsp + 0x20], r15
lea r9, [rsp + 0x60]
lea r8, [rbp + 0x40]
xor edx, edx
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x1400107da
inc ebx
lea rdx, [rbp + 0x40]
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
xor edx, edx
mov r8d, 0x200
lea rcx, [rbp + 0x40]
call fcn.140017a30
mov dword [rsp + 0x60], 0x100
mov qword [rsp + 0x38], r15
mov qword [rsp + 0x30], r15
mov qword [rsp + 0x28], r15
mov qword [rsp + 0x20], r15
lea r9, [rsp + 0x60]
lea r8, [rbp + 0x40]
mov edx, ebx
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x140010782
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov byte [0x14004a0c0], r15b
mov edx, 0x400
lea rcx, [0x140050700]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov qword [rbp - 0x70], r15
mov dword [rbp - 0x68], r15d
mov qword [rbp - 0x60], r15
mov r9d, 0x2001f
lea r8, str.SOFTWAREIntelDisplayigfxcui_
mov rdx, 0xffffffff80000002
lea rcx, [rbp - 0x70]
call fcn.140005d10
mov rbx, qword [rbp - 0x70]
test eax, eax
jne 0x14001086b
mov dword [rsp + 0x60], 4
lea rax, [rsp + 0x60]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x68]
mov qword [rsp + 0x20], rax
lea r9, [rbp - 0x80]
xor r8d, r8d
lea rdx, str.Inst
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, dword [rsp + 0x68]
call fcn.14000f970
test rbx, rbx
je 0x140010880
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rbx, r15
mov qword [rbp - 0x70], rbx
mov dword [rbp - 0x68], r15d
mov word [rbp + 0x240], r15w
xor edx, edx
mov r8d, 0x862
lea rcx, [rbp + 0x242]
call fcn.140017a30
mov eax, dword [rsp + 0x68]
cmp eax, 1
jne 0x1400108dc
call fcn.140011040
call fcn.140010bb0
call fcn.14000f8c0
call fcn.14000f810
lea r8, [0x14004f620]
mov edx, 0x432
lea rcx, [rbp + 0x240]
call fcn.140018870
call fcn.140010c50
jmp 0x140010916
cmp eax, 2
jne 0x1400108ea
lea r8, [0x14004e540]
jmp 0x140010905
call fcn.140010f30
call fcn.140010ed0
call fcn.1400110e0
call fcn.140010280
lea r8, [0x140050f00]
mov edx, 0x432
lea rcx, [rbp + 0x240]
call fcn.140018870
test r14d, r14d
jne 0x140010924
call qword [sym.imp.KERNEL32.dll_WTSGetActiveConsoleSessionId]
mov r14d, eax
lea rdx, [rbp - 0x78]
mov ecx, r14d
call sub.WTSAPI32.dll_WTSQueryUserToken
test eax, eax
je 0x140010ae6
mov qword [rbp - 0x58], r15
xor eax, eax
mov qword [rbp - 0x50], rax
mov qword [rbp - 0x48], rax
xor edx, edx
lea r8d, [rax + 0x60]
lea rcx, [rbp - 0x28]
call fcn.140017a30
mov dword [rbp - 0x30], 0x68
mov rcx, qword [rbp - 0x78]
test rcx, rcx
je 0x140010ae6
lea rax, [rsp + 0x70]
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 [rsp + 0x70]
test rcx, rcx
je 0x140010ad6
call qword [sym.imp.ADVAPI32.dll_ImpersonateLoggedOnUser]
test eax, eax
je 0x140010abf
lea rax, str.winsta0default
mov qword [rbp - 0x20], rax
mov eax, dword [rsp + 0x68]
dec eax
cmp eax, 1
jbe 0x140010a20
lea rax, [rbp - 0x58]
mov qword [rsp + 0x48], rax
lea rax, [rbp - 0x30]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], r15
mov qword [rsp + 0x30], r15
mov dword [rsp + 0x28], 0x8000000
mov dword [rsp + 0x20], r15d
xor r9d, r9d
xor r8d, r8d
lea rdx, [rbp + 0x240]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x140010abf
mov rcx, qword [rbp - 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp - 0x50]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140010abf
mov edx, r14d
lea rcx, [0x14004d240]
call fcn.140008d90
mov ecx, 0x64
call qword [sym.imp.KERNEL32.dll_Sleep]
mov qword [rbp - 0x80], r15
xor r8d, r8d
mov rdx, qword [rsp + 0x70]
lea rcx, [rbp - 0x80]
call sub.USERENV.dll_CreateEnvironmentBlock
lea rax, [rbp - 0x58]
mov qword [rsp + 0x50], rax
lea rax, [rbp - 0x30]
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x40], r15
mov rax, qword [rbp - 0x80]
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], 0x8000420
mov dword [rsp + 0x28], r15d
mov qword [rsp + 0x20], r15
xor r9d, r9d
xor r8d, r8d
lea rdx, [rbp + 0x240]
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
test eax, eax
je 0x140010ab1
mov rcx, qword [rbp - 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp - 0x50]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp - 0x80]
test rcx, rcx
je 0x140010abf
call sub.USERENV.dll_DestroyEnvironmentBlock
call qword [sym.imp.ADVAPI32.dll_RevertToSelf]
mov rcx, qword [rsp + 0x70]
cmp rcx, 0xffffffffffffffff
je 0x140010ad6
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp - 0x78]
cmp rcx, 0xffffffffffffffff
je 0x140010ae6
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbp - 0x70], r15
mov dword [rbp - 0x68], r15d
mov qword [rbp - 0x60], r15
mov r9d, 0x2001f
lea r8, str.SOFTWAREIntelDisplayigfxcui_
mov rdx, 0xffffffff80000002
lea rcx, [rbp - 0x70]
call fcn.140005d10
mov rdi, qword [rbp - 0x70]
test eax, eax
jne 0x140010b4a
mov dword [rsp + 0x60], 2
mov dword [rsp + 0x28], 4
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov r9d, 4
xor r8d, r8d
lea rdx, str.Inst
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test rdi, rdi
je 0x140010b59
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
test rbx, rbx
je 0x140010b67
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, 1
mov rcx, qword [rbp + 0xab0]
xor rcx, rsp
call fcn.140017a00
lea r11, [rsp + 0xbc0]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret