Function at 0x140003e54
Capabilities:
Accept command line arguments
Check mutex on windows
Query service status

Disassembly:
mov rax, rsp
push r12
push r14
push r15
sub rsp, 0xb0
mov qword [rax - 0x50], 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 [rsp + 0xa8], rax
xor r9d, r9d
xor r8d, r8d
lea r15d, [r9 + 1]
mov edx, r15d
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_heap_l1_2_0.dll_HeapSetInformation]
call qword [sym.imp.wbemcomn.dll_public:_static_int___cdecl_CStaticCritSec::anyFailure_void_]
xor ebx, ebx
test eax, eax
je 0x140003eb3
lea eax, [rbx + 8]
jmp 0x140004415
lea rcx, [0x14002f130]
call fcn.140004fb0
mov edi, eax
test eax, eax
js 0x140004413
mov eax, dword [0x14001f444]
mov dword [rsp + 0xa0], eax
movzx eax, word [0x14001f448]
mov word [rsp + 0xa4], ax
lea rcx, [0x14002f130]
call fcn.1400050a4
mov edi, eax
mov dword [rsp + 0x30], eax
test eax, eax
js 0x140004413
call qword [sym.imp.api_ms_win_core_processenvironment_l1_2_0.dll_GetCommandLineW]
test rax, rax
mov rsi, rax
je 0x140003f4e
cmp word [rax], bx
je 0x140003f4e
lea rax, [rsp + 0xa0]
movzx ecx, word [rax]
test cx, cx
je 0x140003f35
cmp word [rsi], cx
je 0x140003f40
mov rcx, rax
call qword [sym.imp.api_ms_win_core_string_l2_1_0.dll_CharNextW]
test rax, rax
jne 0x140003f1a
mov rcx, rsi
call qword [sym.imp.api_ms_win_core_string_l2_1_0.dll_CharNextW]
jmp 0x140003f05
mov rcx, rsi
call qword [sym.imp.api_ms_win_core_string_l2_1_0.dll_CharNextW]
mov rsi, rax
jmp 0x140003f51
mov rsi, rbx
mov r14d, r15d
or r12d, 0xffffffff
test rsi, rsi
je 0x140004141
test r14d, r14d
je 0x1400043e2
mov dword [rsp + 0x28], r12d
lea rax, str.UnregServer
mov qword [rsp + 0x20], rax
mov r9d, r12d
mov r8, rsi
mov edx, r15d
mov ecx, 0x7f
call qword [sym.imp.api_ms_win_core_string_l1_1_0.dll_CompareStringW]
cmp eax, 2
jne 0x14000402e
call fcn.140005a34
mov edi, eax
mov dword [rsp + 0x30], eax
test eax, eax
js 0x1400040ea
mov r8d, r15d
xor edx, edx
mov rcx, qword [0x14002f180]
call fcn.1400065d0
mov eax, dword [0x1400306e4]
test r15b, al
jne 0x14000401b
or eax, r15d
mov dword [0x1400306e4], eax
lea rax, str.SOFTWAREMicrosoftWBEMPROVIDERSPerformance
mov qword [0x14002f068], rax
xorps xmm0, xmm0
movdqa xmmword [0x14002f070], xmm0
mov qword [0x14002f080], rbx
mov dword [0x14002f088], 4
movdqa xmmword [0x14002f090], xmm0
xorps xmm1, xmm1
movdqa xmmword [0x14002f0a0], xmm1
mov qword [0x14002f0b0], rbx
mov dword [0x14002f0b8], r12d
xor edx, edx
lea rcx, [0x14002f030]
call fcn.140003518
jmp 0x1400040ea
mov dword [rsp + 0x28], r12d
lea rax, str.RegServer
mov qword [rsp + 0x20], rax
mov r9d, r12d
mov r8, rsi
mov edx, r15d
mov ecx, 0x7f
call qword [sym.imp.api_ms_win_core_string_l1_1_0.dll_CompareStringW]
cmp eax, 2
jne 0x1400040ed
call fcn.140005754
mov edi, eax
mov dword [rsp + 0x30], eax
test eax, eax
js 0x1400040ea
mov eax, dword [0x1400306e4]
test r15b, al
jne 0x1400040ca
or eax, r15d
mov dword [0x1400306e4], eax
lea rax, str.SOFTWAREMicrosoftWBEMPROVIDERSPerformance
mov qword [0x14002f068], rax
xorps xmm0, xmm0
movdqa xmmword [0x14002f070], xmm0
mov qword [0x14002f080], rbx
mov dword [0x14002f088], 4
movdqa xmmword [0x14002f090], xmm0
xorps xmm1, xmm1
movdqa xmmword [0x14002f0a0], xmm1
mov qword [0x14002f0b0], rbx
mov dword [0x14002f0b8], r12d
mov edx, r15d
lea rcx, [0x14002f030]
call fcn.140003518
mov r8d, r12d
xor edx, edx
mov rcx, qword [0x14002f180]
call fcn.1400065d0
mov r14d, ebx
cmp word [rsi], bx
je 0x140004139
lea rax, [rsp + 0xa0]
movzx ecx, word [rax]
test cx, cx
je 0x140004115
cmp word [rsi], cx
je 0x140004128
mov rcx, rax
call qword [sym.imp.api_ms_win_core_string_l2_1_0.dll_CharNextW]
test rax, rax
jne 0x1400040fa
mov rcx, rsi
call qword [sym.imp.api_ms_win_core_string_l2_1_0.dll_CharNextW]
mov rsi, rax
test rax, rax
je 0x140004139
jmp 0x1400040ed
mov rcx, rsi
call qword [sym.imp.api_ms_win_core_string_l2_1_0.dll_CharNextW]
mov rsi, rax
jmp 0x140003f58
mov rsi, rbx
jmp 0x140003f58
test r14d, r14d
je 0x1400043e2
lea rdx, [0x14002f130]
lea rcx, [rsp + 0x38]
call fcn.14000558c
cmp qword [0x14002f160], rbx
jne 0x1400043cd
mov rcx, qword [0x14002f170]
test rcx, rcx
je 0x1400043cd
lea r8, str.GlobalWmiApSrv
xor edx, edx
mov rcx, qword [rcx + 8]
call qword [sym.imp.api_ms_win_core_synch_l1_2_0.dll_CreateMutexW]
mov qword [0x14002f160], rax
test rax, rax
je 0x1400043cd
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_1.dll_GetLastError]
mov rcx, qword [rsp + 0x38]
cmp eax, 0xb7
je 0x1400043d2
test rcx, rcx
je 0x1400041bc
call qword [sym.imp.api_ms_win_core_synch_l1_2_0.dll_LeaveCriticalSection]
lea rdx, [0x140030618]
lea rcx, [rsp + 0x40]
call fcn.14000558c
mov qword [0x1400305f0], rbx
mov dword [0x1400305f8], 0x10
mov dword [0x1400305fc], r15d
mov dword [0x140030600], r15d
mov qword [0x140030604], rbx
mov qword [0x14003060c], rbx
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x14000420a
call qword [sym.imp.api_ms_win_core_synch_l1_2_0.dll_LeaveCriticalSection]
xor edx, edx
xor ecx, ecx
mov r8d, 0xf003f
call qword [sym.imp.api_ms_win_service_management_l1_1_0.dll_OpenSCManagerW]
mov r15, rax
mov qword [rsp + 0x70], rax
test rax, rax
je 0x1400043a0
mov r8d, 5
lea r12, str.WmiApSrv
mov rdx, r12
mov rcx, rax
call qword [sym.imp.api_ms_win_service_management_l1_1_0.dll_OpenServiceW]
mov r14, rax
mov qword [rsp + 0x50], rax
test rax, rax
je 0x140004373
mov rsi, rbx
mov qword [rsp + 0x40], rbx
mov dword [rsp + 0x38], ebx
lea r9, [rsp + 0x38]
xor r8d, r8d
xor edx, edx
mov rcx, rax
call qword [sym.imp.api_ms_win_service_management_l2_1_0.dll_QueryServiceConfigW]
test eax, eax
jne 0x1400042c6
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_1.dll_GetLastError]
cmp eax, 0x7a
jne 0x1400042c6
mov edx, dword [rsp + 0x38]
lea ecx, [rax - 0x3a]
call qword [sym.imp.api_ms_win_core_heap_l2_1_0.dll_LocalAlloc]
mov rsi, rax
mov qword [rsp + 0x40], rax
test rax, rax
je 0x1400042c6
lea r9, [rsp + 0x38]
mov r8d, dword [rsp + 0x38]
mov rdx, rax
mov rcx, r14
call qword [sym.imp.api_ms_win_service_management_l2_1_0.dll_QueryServiceConfigW]
test eax, eax
je 0x1400042c6
mov ecx, ebx
cmp dword [rsi + 4], 3
sete cl
mov dword [0x14002f1c0], ecx
jmp 0x1400042e4
mov rcx, rsi
call qword [sym.imp.api_ms_win_core_heap_l2_1_0.dll_LocalFree]
lea rdx, [rsp + 0x80]
mov rcx, r14
call qword [sym.imp.api_ms_win_service_winsvc_l1_2_0.dll_QueryServiceStatus]
test eax, eax
je 0x14000435d
cmp dword [rsp + 0x84], 4
je 0x140004356
mov qword [rsp + 0x48], r12
lea rax, [0x140005630]
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x58], rbx
mov qword [rsp + 0x60], rbx
lea rcx, [rsp + 0x48]
call qword [sym.imp.api_ms_win_service_core_l1_1_1.dll_StartServiceCtrlDispatcherW]
test eax, eax
jne 0x140004390
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_1.dll_GetLastError]
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
mov edi, 0x80070015
test ecx, ecx
cmovs edi, ecx
jmp 0x140004390
mov edi, 0x800700b7
jmp 0x140004390
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_1.dll_GetLastError]
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
jmp 0x140004390
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_1.dll_GetLastError]
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
test edi, edi
js 0x1400043bd
mov edi, 0x80004005
test r14, r14
je 0x1400043bd
mov rcx, r14
call qword [sym.imp.api_ms_win_service_management_l1_1_0.dll_CloseServiceHandle]
jmp 0x1400043bd
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_1.dll_GetLastError]
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
test edi, edi
js 0x1400043e2
mov edi, 0x80004005
test r15, r15
je 0x1400043e2
mov rcx, r15
call qword [sym.imp.api_ms_win_service_management_l1_1_0.dll_CloseServiceHandle]
jmp 0x1400043e2
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x1400043dd
call qword [sym.imp.api_ms_win_core_synch_l1_2_0.dll_LeaveCriticalSection]
mov edi, 0x800700b7
jmp 0x1400043e8
test edi, edi
js 0x140004413
lea rdx, [0x140030618]
lea rcx, [rsp + 0x40]
call fcn.14000558c
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x14000440d
call qword [sym.imp.api_ms_win_core_synch_l1_2_0.dll_LeaveCriticalSection]
mov edi, dword [0x140030604]
mov eax, edi
mov rcx, qword [rsp + 0xa8]
xor rcx, rsp
call fcn.140019770
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r14
pop r12
ret