Function at 0x140005754
Capabilities:
Create service
Modify service

Disassembly:
mov rax, rsp
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x218]
sub rsp, 0x2f0
mov qword [rbp - 0x38], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov rax, qword [0x14002f008]
xor rax, rsp
mov qword [rbp + 0x1e0], rax
call fcn.140005a34
mov ebx, eax
xor r13d, r13d
test eax, eax
js 0x1400059fc
jne 0x1400057b2
mov ecx, 0xbb8
call qword [sym.imp.api_ms_win_core_synch_l1_2_0.dll_Sleep]
lea rbx, vtable.__SmartServiceHANDLE.0
mov qword [rbp - 0x70], rbx
xor edx, edx
xor ecx, ecx
mov r8d, 0xf003f
call qword [sym.imp.api_ms_win_service_management_l1_1_0.dll_OpenSCManagerW]
mov r14, rax
mov qword [rbp - 0x68], rax
test rax, rax
je 0x1400059be
mov word [rbp - 0x30], r13w
xor edx, edx
mov r8d, 0x206
lea rcx, [rbp - 0x2e]
call sub.msvcrt.dll_memset
mov r8d, 0x103
lea rdx, [rbp - 0x30]
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_GetModuleFileNameW]
mov qword [rbp - 0x78], r13
mov qword [rbp - 0x80], rbx
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_GetModuleHandleW]
mov rcx, rax
mov edx, 0x6e
call fcn.140005c8c
mov rsi, rax
lea r8, str.WMI_Performance_Adapter
test rax, rax
cmovne r8, rax
mov qword [rsp + 0x60], r13
mov qword [rsp + 0x58], r13
lea rax, str.RPCSS
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x48], r13
mov qword [rsp + 0x40], r13
lea rax, [rbp - 0x30]
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], 1
mov dword [rsp + 0x28], 3
mov dword [rsp + 0x20], 0x10
mov r9d, 0xf01ff
lea rdx, str.WmiApSrv
mov rcx, r14
call qword [sym.imp.api_ms_win_service_management_l1_1_0.dll_CreateServiceW]
mov r15, rax
mov qword [rbp - 0x78], rax
test rax, rax
je 0x140005960
mov ebx, 0x8007000e
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_GetModuleHandleW]
mov rcx, rax
mov edx, 0x6f
call fcn.140005c8c
mov r12, rax
lea edi, [rbx - 0xe]
test rax, rax
je 0x14000590f
mov ebx, r13d
mov qword [rbp - 0x80], rax
lea r8, [rbp - 0x80]
mov edx, 1
mov rcx, r15
call qword [sym.imp.api_ms_win_service_management_l2_1_0.dll_ChangeServiceConfig2W]
test eax, eax
jne 0x140005907
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_1.dll_GetLastError]
movzx ecx, ax
or ecx, edi
test eax, eax
cmovle ecx, eax
test ecx, ecx
jns 0x140005902
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_1.dll_GetLastError]
movzx ebx, ax
or ebx, edi
test eax, eax
cmovle ebx, eax
jmp 0x140005907
mov ebx, 0x80004005
mov rcx, r12
call sub.msvcrt.dll_free
mov ecx, 1
mov dword [rsp + 0x70], ecx
mov eax, 0xea60
mov dword [rsp + 0x74], eax
mov dword [rsp + 0x78], ecx
mov dword [rsp + 0x7c], eax
mov dword [rbp - 0x60], 0x15180
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x58], xmm0
lea edx, [rcx + 1]
mov dword [rbp - 0x48], edx
lea rax, [rsp + 0x70]
mov qword [rbp - 0x40], rax
lea r8, [rbp - 0x60]
mov rcx, r15
call qword [sym.imp.api_ms_win_service_management_l2_1_0.dll_ChangeServiceConfig2W]
test eax, eax
jne 0x1400059a0
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_1.dll_GetLastError]
jmp 0x14000597b
test rsi, rsi
je 0x140005970
mov rcx, rsi
call sub.msvcrt.dll_free
mov rsi, r13
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_1.dll_GetLastError]
mov edi, 0x80070000
movzx ecx, ax
or ecx, edi
test eax, eax
cmovle ecx, eax
test ecx, ecx
jns 0x14000599b
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_1.dll_GetLastError]
movzx ebx, ax
or ebx, edi
test eax, eax
cmovle ebx, eax
jmp 0x1400059a0
mov ebx, 0x80004005
test rsi, rsi
je 0x1400059ae
mov rcx, rsi
call sub.msvcrt.dll_free
nop
test r15, r15
je 0x1400059ee
mov rcx, r15
call qword [sym.imp.api_ms_win_service_management_l1_1_0.dll_CloseServiceHandle]
jmp 0x1400059ee
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_1.dll_GetLastError]
movzx ecx, ax
mov edi, 0x80070000
or ecx, edi
test eax, eax
cmovle ecx, eax
test ecx, ecx
jns 0x1400059e9
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_1.dll_GetLastError]
movzx ebx, ax
or ebx, edi
test eax, eax
cmovle ebx, eax
jmp 0x1400059ee
mov ebx, 0x80004005
test r14, r14
je 0x1400059fc
mov rcx, r14
call qword [sym.imp.api_ms_win_service_management_l1_1_0.dll_CloseServiceHandle]
mov eax, ebx
mov rcx, qword [rbp + 0x1e0]
xor rcx, rsp
call fcn.140019770
lea r11, [rsp + 0x2f0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret