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

Disassembly:
mov rax, rsp
push rbp
push r12
push r13
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 qword [rax + 0x20], rdi
mov rax, qword [0x140052108]
xor rax, rsp
mov qword [rbp + 0x890], rax
mov r15b, dl
mov r14d, ecx
xor r12d, r12d
mov dword [rbp + 0x10], r12d
mov qword [rbp - 0x70], r12
mov qword [rbp - 0x80], r12
mov ebx, r12d
call fcn.14000bfc8
lea edi, [r12 + 0x10]
mov r8d, edi
xor edx, edx
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rsi, rax
lea r13d, [r12 + 1]
test rax, rax
je 0x14000deab
mov r8d, edi
lea rdx, str.FontCache3.0.0.0
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rdi, rax
test rax, rax
je 0x14000de94
xor r8d, r8d
xor edx, edx
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
jne 0x14000de89
add ebx, r13d
cmp ebx, 2
jl 0x14000de6f
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x14000dea0
lea rcx, [0x140054080]
call fcn.1400012c0
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x14000deb7
lea rcx, [0x140054080]
call fcn.1400012c0
cmp byte [0x1400520a9], r12b
je 0x14000df2e
mov qword [rsp + 0x70], r12
mov qword [rsp + 0x68], r12
mov qword [rsp + 0x78], r12
mov r9d, 0x2001f
lea r8, str.SoftwareIntelDisplayigfxcuiprofiles
mov rdx, 0xffffffff80000002
lea rcx, [rsp + 0x68]
call fcn.140006bb8
test eax, eax
jne 0x14000df17
lea rdx, [0x140039990]
lea rcx, [rsp + 0x68]
call fcn.140007bb4
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x14000df1c
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, r12
jmp 0x14000df1c
mov rcx, qword [rsp + 0x68]
mov byte [0x1400520a9], r12b
test rcx, rcx
je 0x14000df2e
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor edx, edx
mov r8d, 0x864
lea rcx, [rbp + 0x20]
call fcn.140016010
xorps xmm0, xmm0
movups xmmword [rsp + 0x68], xmm0
mov dword [rsp + 0x70], r12d
mov qword [rsp + 0x78], r12
lea rdx, str.SoftwareIntelDisplayigfxcui
mov ecx, r13d
call fcn.14000520c
mov rdi, rax
mov qword [rsp + 0x68], rax
mov esi, 4
test rax, rax
je 0x14000dfbc
mov dword [rbp + 0x18], esi
lea rax, [rbp + 0x18]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x10]
mov qword [rsp + 0x20], rax
lea r9, [rbp - 0x78]
xor r8d, r8d
lea rdx, str.Inst
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rdi, r12
mov qword [rsp + 0x68], r12
mov dword [rsp + 0x70], r12d
mov ecx, dword [rbp + 0x10]
call fcn.14000c794
cmp r15b, r13b
jne 0x14000e00c
cmp dword [rbp + 0x10], 3
jne 0x14000e06e
call fcn.14000e2a8
call fcn.14000be2c
call fcn.14000e744
lea rcx, str.igfxOSP.dll
call fcn.14000ebd8
call fcn.14000ea60
lea rcx, str.igfxHK.exe
call fcn.14000ebd8
lea rcx, str.igfxTray.exe
call fcn.14000ebd8
lea r8, [0x140058d00]
jmp 0x14000e060
mov ecx, dword [rbp + 0x10]
cmp ecx, esi
jne 0x14000e03e
lea r8, [0x140056420]
mov ebx, 0x432
mov edx, ebx
lea rcx, [rbp + 0x20]
call fcn.140019508
lea r8, str.igfxEM.exe
mov edx, ebx
lea rcx, [rbp + 0x20]
call fcn.140019488
jmp 0x14000e06e
lea eax, [rcx - 1]
cmp eax, r13d
jbe 0x14000e04f
test ecx, ecx
jne 0x14000e06e
jmp 0x14000e267
mov ecx, 2
call fcn.14000e360
lea r8, [0x140058490]
mov edx, 0x432
lea rcx, [rbp + 0x20]
call fcn.140019508
test r14d, r14d
jne 0x14000e07c
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 0x14000e21a
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rsp + 0x68], xmm0
mov qword [rsp + 0x78], rax
xor edx, edx
lea r8d, [rax + 0x64]
lea rcx, [rbp - 0x5c]
call fcn.140016010
mov dword [rbp - 0x60], 0x68
mov rcx, qword [rbp - 0x70]
test rcx, rcx
je 0x14000e21a
lea rax, [rbp - 0x80]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], r13d
mov r9d, r13d
xor r8d, r8d
mov edx, 0x2000000
call qword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
mov rcx, qword [rbp - 0x80]
test rcx, rcx
je 0x14000e20a
call qword [sym.imp.ADVAPI32.dll_ImpersonateLoggedOnUser]
test eax, eax
je 0x14000e1f4
lea rax, str.winsta0default
mov qword [rbp - 0x50], rax
mov eax, dword [rbp + 0x10]
add eax, 0xfffffffd
cmp eax, r13d
jbe 0x14000e171
lea rax, [rsp + 0x68]
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 0x14000e1f4
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x14000e1f4
mov qword [rbp - 0x78], r12
xor r8d, r8d
mov rdx, qword [rbp - 0x80]
lea rcx, [rbp - 0x78]
call sub.USERENV.dll_CreateEnvironmentBlock
lea rax, [rsp + 0x68]
mov qword [rsp + 0x50], rax
lea rax, [rbp - 0x60]
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x40], r12
mov rax, qword [rbp - 0x78]
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 - 0x80]
call qword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
test eax, eax
je 0x14000e1e6
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp - 0x78]
test rcx, rcx
je 0x14000e1f4
call sub.USERENV.dll_DestroyEnvironmentBlock
call qword [sym.imp.ADVAPI32.dll_RevertToSelf]
mov rcx, qword [rbp - 0x80]
cmp rcx, 0xffffffffffffffff
je 0x14000e20a
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp - 0x70]
cmp rcx, 0xffffffffffffffff
je 0x14000e21a
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [rbp + 0x10], 3
jne 0x14000e267
lea rdx, str.SoftwareIntelDisplayigfxcui
mov ecx, r13d
call fcn.14000520c
mov rbx, rax
test rax, rax
je 0x14000e267
mov dword [rbp + 0x18], esi
mov dword [rsp + 0x28], esi
lea rax, [rbp + 0x18]
mov qword [rsp + 0x20], rax
mov r9d, esi
xor r8d, r8d
lea rdx, str.Inst
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
test rdi, rdi
je 0x14000e275
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, r13b
mov rcx, qword [rbp + 0x890]
xor rcx, rsp
call fcn.140013e00
lea r11, [rsp + 0x9a0]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret