Function at 0x14003086c
Capabilities:
Create service
Persist via windows service

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
lea rbp, [rsp - 0x50]
sub rsp, 0x150
mov qword [rbp + 0x40], 0xfffffffffffffffe
call fcn.14002ecdc
mov r12d, 7
xor r13d, r13d
lea r14d, [r12 - 1]
cmp dword [rax + 0x28], r14d
jl 0x14003097e
lea rax, [rsp + 0x70]
mov qword [rbp + 0x98], rax
lea rax, [rbp - 0x68]
mov qword [rbp + 0xa0], rax
mov qword [rbp - 0x78], r12
mov qword [rbp - 0x80], r13
mov word [rsp + 0x70], r13w
lea rcx, [0x1400a05e8]
call fcn.14004a2f8
mov r8, rax
lea rdx, [0x1400a05e8]
lea rcx, [rsp + 0x70]
call fcn.140073170
nop
mov qword [rbp - 0x50], r12
mov qword [rbp - 0x58], r13
mov word [rbp - 0x68], r13w
lea rcx, str.InstallService
call fcn.14004a2f8
mov r8, rax
lea rdx, str.InstallService
lea rcx, [rbp - 0x68]
call fcn.140073170
nop
xor eax, eax
mov byte [rbp + 0x90], al
lea rax, [rbp + 0x90]
mov qword [rbp - 0x38], rax
lea rax, str.Registering_AppId_for_ServiceModule
mov qword [rbp - 0x20], rax
lea rax, [rbp - 0x40]
mov qword [rbp - 0x18], rax
lea rax, vtable.Nvidia::Logging::ChainLoggable_class_Nvidia::Logging::Chain_char_const_____36____ptr64__class_Nvidia::Logging::Chain_struct_Nvidia::Logging::NullType__struct_Nvidia::Logging::NullType___.0
mov qword [rbp - 0x10], rax
lea rax, [rbp - 0x20]
mov qword [rbp - 8], rax
call fcn.14002ecdc
mov rcx, rax
lea rax, [rsp + 0x70]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x324
lea r9, [rbp - 0x68]
lea r8, [rbp - 0x10]
mov edx, r14d
call fcn.14000d244
lea rax, str.APPID
mov qword [rbp], rax
lea rax, str.C5EDFC9D_B018_41A4_9877_39AB18469C3A
mov qword [rbp + 8], rax
mov qword [rbp + 0x10], r13
mov qword [rbp + 0x18], r13
lea r8, [rbp]
mov edx, 1
mov ecx, 0x3e9
call fcn.140003ce8
test eax, eax
js 0x140030b09
call fcn.14002ecdc
cmp dword [rax + 0x28], r14d
jl 0x140030a9c
lea rax, [rbp - 0x68]
mov qword [rbp + 0x98], rax
lea rax, [rsp + 0x70]
mov qword [rbp + 0xa0], rax
mov qword [rbp - 0x50], r12
mov qword [rbp - 0x58], r13
mov word [rbp - 0x68], r13w
lea rcx, [0x1400a05e8]
call fcn.14004a2f8
mov r8, rax
lea rdx, [0x1400a05e8]
lea rcx, [rbp - 0x68]
call fcn.140073170
nop
mov qword [rbp - 0x78], r12
mov qword [rbp - 0x80], r13
mov word [rsp + 0x70], r13w
lea rcx, str.InstallService
call fcn.14004a2f8
mov r8, rax
lea rdx, str.InstallService
lea rcx, [rsp + 0x70]
call fcn.140073170
nop
xor eax, eax
mov byte [rbp + 0x90], al
lea rax, [rbp + 0x90]
mov qword [rbp - 0x38], rax
lea rax, str.Registering_server_for_ServiceModule
mov qword [rbp - 0x10], rax
lea rax, [rbp - 0x40]
mov qword [rbp - 8], rax
lea rax, vtable.Nvidia::Logging::ChainLoggable_class_Nvidia::Logging::Chain_char_const_____37____ptr64__class_Nvidia::Logging::Chain_struct_Nvidia::Logging::NullType__struct_Nvidia::Logging::NullType___.0
mov qword [rbp - 0x20], rax
lea rax, [rbp - 0x10]
mov qword [rbp - 0x18], rax
call fcn.14002ecdc
mov rcx, rax
lea rax, [rbp - 0x68]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x329
lea r9, [rsp + 0x70]
lea r8, [rbp - 0x20]
mov edx, r14d
call fcn.14000d244
mov ecx, r13d
mov rbx, qword [0x1400da610]
mov rax, qword [0x1400da618]
cmp rbx, rax
jae 0x140030af4
mov rdi, qword [rbx]
test rdi, rdi
je 0x140030ae7
mov ecx, 1
call qword [rdi + 8]
test eax, eax
js 0x140030b09
call qword [rdi + 0x38]
mov rdx, rax
mov r8d, 1
mov rcx, qword [rdi]
call fcn.14002d63c
mov ecx, eax
test eax, eax
js 0x140030b09
mov rax, qword [0x1400da618]
add rbx, 8
cmp rbx, rax
jb 0x140030ab2
test ecx, ecx
js 0x140030b09
mov rax, qword [0x1400db278]
test rax, rax
je 0x140030b09
mov rcx, qword [0x1400da5a8]
call rax
xor edx, edx
xor ecx, ecx
mov r8d, 0xf003f
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rsi, rax
test rax, rax
je 0x140030fa3
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov edi, 0x28
dec edi
call fcn.14002ecdc
cmp dword [rax + 0x28], r14d
jl 0x140030c19
lea rax, [rbp - 0x68]
mov qword [rbp + 0x98], rax
lea rax, [rsp + 0x70]
mov qword [rbp + 0xa0], rax
mov qword [rbp - 0x50], r12
mov qword [rbp - 0x58], r13
mov word [rbp - 0x68], r13w
lea rcx, [0x1400a05e8]
call fcn.14004a2f8
mov r8, rax
lea rdx, [0x1400a05e8]
lea rcx, [rbp - 0x68]
call fcn.140073170
nop
mov qword [rbp - 0x78], r12
mov qword [rbp - 0x80], r13
mov word [rsp + 0x70], r13w
lea rcx, str.InstallService
call fcn.14004a2f8
mov r8, rax
lea rdx, str.InstallService
lea rcx, [rsp + 0x70]
call fcn.140073170
nop
xor eax, eax
mov byte [rbp + 0x90], al
lea rax, [rbp + 0x90]
mov qword [rbp + 0x38], rax
lea rax, str.Trying_to_register_nvvsvc_with_SCM
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x30]
mov qword [rbp - 8], rax
lea rax, vtable.Nvidia::Logging::ChainLoggable_class_Nvidia::Logging::Chain_char_const_____35____ptr64__class_Nvidia::Logging::Chain_struct_Nvidia::Logging::NullType__struct_Nvidia::Logging::NullType___.0
mov qword [rbp - 0x20], rax
lea rax, [rbp - 0x10]
mov qword [rbp - 0x18], rax
call fcn.14002ecdc
mov rcx, rax
lea rax, [rbp - 0x68]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x336
lea r9, [rsp + 0x70]
lea r8, [rbp - 0x20]
mov edx, r14d
call fcn.14000d244
mov qword [rsp + 0x60], r13
mov qword [rsp + 0x58], r13
mov qword [rsp + 0x50], r13
mov qword [rsp + 0x48], r13
lea rax, str.Video
mov qword [rsp + 0x40], rax
lea rax, str._SystemRoot__system32_nvvsvc.exe
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], 1
mov dword [rsp + 0x28], 2
mov dword [rsp + 0x20], 0x10
mov r9d, 0xf01ff
lea r8, str.NVIDIA_Driver_Helper_Service
lea rdx, str.NVSvc
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CreateServiceW]
mov r12, rax
test rax, rax
jne 0x140030e9f
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
call fcn.14002ecdc
mov r12d, 7
cmp dword [rax + 0x28], 3
jl 0x140030d86
lea rax, [rbp - 0x68]
mov qword [rbp + 0x98], rax
lea rax, [rsp + 0x70]
mov qword [rbp + 0xa0], rax
mov qword [rbp - 0x50], r12
mov qword [rbp - 0x58], r13
mov word [rbp - 0x68], r13w
lea rcx, [0x1400a05e8]
call fcn.14004a2f8
mov r8, rax
lea rdx, [0x1400a05e8]
lea rcx, [rbp - 0x68]
call fcn.140073170
nop
mov qword [rbp - 0x78], r12
mov qword [rbp - 0x80], r13
mov word [rsp + 0x70], r13w
lea rcx, str.InstallService
call fcn.14004a2f8
mov r8, rax
lea rdx, str.InstallService
lea rcx, [rsp + 0x70]
call fcn.140073170
nop
xor eax, eax
mov byte [rbp + 0x90], al
lea rax, [rbp + 0x90]
mov qword [rbp + 8], rax
lea rax, str.Service_creation_failed_with_error_code
mov qword [rbp + 0x20], rax
lea rax, [rbp]
mov qword [rbp + 0x28], rax
mov dword [rbp - 0x30], ebx
lea rax, [rbp + 0x20]
mov qword [rbp - 0x28], rax
lea rax, vtable.Nvidia::Logging::ChainLoggable_class_Nvidia::Logging::Chain_unsigned_long_int__class_Nvidia::Logging::Chain_char_const_____40____ptr64__class_Nvidia::Logging::Chain_struct_Nvidia::Logging::NullType__struct_Nvidia::Logging::NullType____.0
mov qword [rbp - 0x40], rax
lea rax, [rbp - 0x30]
mov qword [rbp - 0x38], rax
call fcn.14002ecdc
mov rcx, rax
lea rax, [rbp - 0x68]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x34e
lea r9, [rsp + 0x70]
lea r8, [rbp - 0x40]
lea edx, [r12 - 4]
call fcn.14000d244
cmp ebx, 0x430
jne 0x140030da6
mov ecx, 0x64
call qword [sym.imp.KERNEL32.dll_Sleep]
test edi, edi
jne 0x140030b32
jmp 0x140030f95
cmp ebx, 0x431
jne 0x140030f95
call fcn.14002ecdc
cmp dword [rax + 0x28], r14d
jl 0x140030e97
lea rax, [rbp - 0x68]
mov qword [rbp + 0x98], rax
lea rax, [rsp + 0x70]
mov qword [rbp + 0xa0], rax
mov qword [rbp - 0x50], r12
mov qword [rbp - 0x58], r13
mov word [rbp - 0x68], r13w
lea rcx, [0x1400a05e8]
call fcn.14004a2f8
mov r8, rax
lea rdx, [0x1400a05e8]
lea rcx, [rbp - 0x68]
call fcn.140073170
nop
mov qword [rbp - 0x78], r12
mov qword [rbp - 0x80], r13
mov word [rsp + 0x70], r13w
lea rcx, str.InstallService
call fcn.14004a2f8
mov r8, rax
lea rdx, str.InstallService
lea rcx, [rsp + 0x70]
call fcn.140073170
nop
xor eax, eax
mov byte [rbp + 0x90], al
lea rax, [rbp + 0x90]
mov qword [rbp + 8], rax
lea rax, str.Service_already_exists
mov qword [rbp - 0x40], rax
lea rax, [rbp]
mov qword [rbp - 0x38], rax
lea rax, vtable.Nvidia::Logging::ChainLoggable_class_Nvidia::Logging::Chain_char_const_____23____ptr64__class_Nvidia::Logging::Chain_struct_Nvidia::Logging::NullType__struct_Nvidia::Logging::NullType___.0
mov qword [rbp - 0x30], rax
lea rax, [rbp - 0x40]
mov qword [rbp - 0x28], rax
call fcn.14002ecdc
mov rcx, rax
lea rax, [rbp - 0x68]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x357
lea r9, [rsp + 0x70]
lea r8, [rbp - 0x30]
mov edx, r14d
call fcn.14000d244
mov ebx, r13d
jmp 0x140030f95
call fcn.14002ecdc
cmp dword [rax + 0x28], r14d
jl 0x140030f89
lea rax, [rbp - 0x68]
mov qword [rbp + 0x98], rax
lea rax, [rsp + 0x70]
mov qword [rbp + 0xa0], rax
mov ebx, 7
mov qword [rbp - 0x50], rbx
mov qword [rbp - 0x58], r13
mov word [rbp - 0x68], r13w
lea rcx, [0x1400a05e8]
call fcn.14004a2f8
mov r8, rax
lea rdx, [0x1400a05e8]
lea rcx, [rbp - 0x68]
call fcn.140073170
nop
mov qword [rbp - 0x78], rbx
mov qword [rbp - 0x80], r13
mov word [rsp + 0x70], r13w
lea rcx, str.InstallService
call fcn.14004a2f8
mov r8, rax
lea rdx, str.InstallService
lea rcx, [rsp + 0x70]
call fcn.140073170
nop
xor eax, eax
mov byte [rbp + 0x90], al
lea rax, [rbp + 0x90]
mov qword [rbp + 8], rax
lea rax, str.Created_service_successfully
mov qword [rbp - 0x40], rax
lea rax, [rbp]
mov qword [rbp - 0x38], rax
lea rax, vtable.Nvidia::Logging::ChainLoggable_class_Nvidia::Logging::Chain_char_const_____29____ptr64__class_Nvidia::Logging::Chain_struct_Nvidia::Logging::NullType__struct_Nvidia::Logging::NullType___.0
mov qword [rbp - 0x30], rax
lea rax, [rbp - 0x40]
mov qword [rbp - 0x28], rax
call fcn.14002ecdc
mov rcx, rax
lea rax, [rbp - 0x68]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x346
lea r9, [rsp + 0x70]
lea r8, [rbp - 0x30]
mov edx, r14d
call fcn.14000d244
mov ebx, r13d
mov rcx, r12
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x14003108f
call fcn.14002ecdc
cmp dword [rax + 0x28], 3
jl 0x14003108a
lea rax, [rbp - 0x68]
mov qword [rbp + 0x98], rax
lea rax, [rsp + 0x70]
mov qword [rbp + 0xa0], rax
mov qword [rbp - 0x50], r12
mov qword [rbp - 0x58], r13
mov word [rbp - 0x68], r13w
lea rcx, [0x1400a05e8]
call fcn.14004a2f8
mov r8, rax
lea rdx, [0x1400a05e8]
lea rcx, [rbp - 0x68]
call fcn.140073170
nop
mov qword [rbp - 0x78], r12
mov qword [rbp - 0x80], r13
mov word [rsp + 0x70], r13w
lea rcx, str.InstallService
call fcn.14004a2f8
mov r8, rax
lea rdx, str.InstallService
lea rcx, [rsp + 0x70]
call fcn.140073170
nop
xor eax, eax
mov byte [rbp + 0x90], al
lea rax, [rbp + 0x90]
mov qword [rbp + 8], rax
lea rax, str.Unable_to_connect_to_SCM._Bailing
mov qword [rbp - 0x40], rax
lea rax, [rbp]
mov qword [rbp - 0x38], rax
lea rax, vtable.Nvidia::Logging::ChainLoggable_class_Nvidia::Logging::Chain_char_const_____34____ptr64__class_Nvidia::Logging::Chain_struct_Nvidia::Logging::NullType__struct_Nvidia::Logging::NullType___.0
mov qword [rbp - 0x30], rax
lea rax, [rbp - 0x40]
mov qword [rbp - 0x28], rax
call fcn.14002ecdc
mov rcx, rax
lea rax, [rbp - 0x68]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x363
lea r9, [rsp + 0x70]
lea r8, [rbp - 0x30]
mov edx, 3
call fcn.14000d244
mov ebx, 0x427
mov eax, ebx
add rsp, 0x150
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret