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

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r12
push r13
push r14
push r15
sub rsp, 0xb0
mov rax, qword [0x14002cf88]
xor rax, rsp
mov qword [rsp + 0xa0], 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_1_0.dll_HeapSetInformation]
nop dword [rax + rax]
call qword [sym.imp.wbemcomn.dll_public:_static_int___cdecl_CStaticCritSec::anyFailure_void_]
nop dword [rax + rax]
xor edi, edi
test eax, eax
je 0x140005eff
lea eax, [rdi + 8]
jmp 0x14000643d
lea r12, [0x14002c110]
mov rcx, r12
call fcn.140007094
mov ebx, eax
test eax, eax
js 0x14000643b
mov eax, dword [0x140020e94]
mov dword [rsp + 0x98], eax
movzx eax, word [0x140020e98]
mov word [rsp + 0x9c], ax
mov rcx, r12
call fcn.140006d6c
mov ebx, eax
mov dword [rsp + 0x30], eax
test eax, eax
js 0x14000643b
call qword [sym.imp.api_ms_win_core_processenvironment_l1_1_0.dll_GetCommandLineW]
nop dword [rax + rax]
test rax, rax
mov rsi, rax
je 0x140005fb1
cmp word [rax], di
je 0x140005fb1
lea rax, [rsp + 0x98]
movzx ecx, word [rax]
test cx, cx
je 0x140005f8c
cmp word [rsi], cx
je 0x140005f9d
mov rcx, rax
call qword [sym.imp.api_ms_win_core_string_l2_1_0.dll_CharNextW]
nop dword [rax + rax]
test rax, rax
jne 0x140005f6b
mov rcx, rsi
call qword [sym.imp.api_ms_win_core_string_l2_1_0.dll_CharNextW]
nop dword [rax + rax]
jmp 0x140005f56
mov rcx, rsi
call qword [sym.imp.api_ms_win_core_string_l2_1_0.dll_CharNextW]
nop dword [rax + rax]
mov rsi, rax
jmp 0x140005fb4
mov rsi, rdi
mov r14d, r15d
or r13d, 0xffffffff
test rsi, rsi
je 0x1400060e5
test r14d, r14d
je 0x140006404
mov dword [rsp + 0x28], r13d
lea rax, str.UnregServer
mov qword [rsp + 0x20], rax
mov r9d, r13d
mov r8, rsi
mov edx, r15d
mov ecx, 0x7f
call qword [sym.imp.api_ms_win_core_string_l1_1_0.dll_CompareStringW]
nop dword [rax + rax]
cmp eax, 2
jne 0x140006026
call fcn.1400078c0
mov ebx, eax
mov dword [rsp + 0x30], eax
test eax, eax
js 0x14000607e
mov r8d, r15d
xor edx, edx
mov rcx, qword [0x14002c160]
call fcn.1400095a8
xor ecx, ecx
call fcn.140005d28
jmp 0x14000607e
mov dword [rsp + 0x28], r13d
lea rax, str.RegServer
mov qword [rsp + 0x20], rax
mov r9d, r13d
mov r8, rsi
mov edx, r15d
mov ecx, 0x7f
call qword [sym.imp.api_ms_win_core_string_l1_1_0.dll_CompareStringW]
nop dword [rax + rax]
cmp eax, 2
jne 0x140006081
call fcn.14000750c
mov ebx, eax
mov dword [rsp + 0x30], eax
test eax, eax
js 0x14000607e
mov ecx, r15d
call fcn.140005d28
mov r8d, r13d
xor edx, edx
mov rcx, qword [0x14002c160]
call fcn.1400095a8
mov r14d, edi
cmp word [rsi], di
je 0x1400060c6
lea rax, [rsp + 0x98]
movzx ecx, word [rax]
test cx, cx
je 0x1400060af
cmp word [rsi], cx
je 0x1400060ce
mov rcx, rax
call qword [sym.imp.api_ms_win_core_string_l2_1_0.dll_CharNextW]
nop dword [rax + rax]
test rax, rax
jne 0x14000608e
mov rcx, rsi
call qword [sym.imp.api_ms_win_core_string_l2_1_0.dll_CharNextW]
nop dword [rax + rax]
mov rsi, rax
test rax, rax
jne 0x140006081
mov rsi, rdi
jmp 0x140005fbb
mov rcx, rsi
call qword [sym.imp.api_ms_win_core_string_l2_1_0.dll_CharNextW]
nop dword [rax + rax]
mov rsi, rax
jmp 0x140005fbb
test r14d, r14d
je 0x140006404
mov rdx, r12
lea rcx, [rsp + 0x38]
call fcn.1400066f4
cmp qword [0x14002c140], rdi
jne 0x1400063e9
mov rcx, qword [0x14002c150]
test rcx, rcx
je 0x1400063e9
lea r8, str.GlobalWmiApSrv
xor edx, edx
mov rcx, qword [rcx + 8]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_CreateMutexW]
nop dword [rax + rax]
mov qword [0x14002c140], rax
test rax, rax
je 0x1400063e9
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov rcx, qword [rsp + 0x38]
cmp eax, 0xb7
je 0x1400063ee
test rcx, rcx
je 0x14000616e
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_LeaveCriticalSection]
nop dword [rax + rax]
lea rdx, [0x14002d648]
lea rcx, [rsp + 0x40]
call fcn.1400066f4
mov qword [0x14002d620], rdi
mov dword [0x14002d628], 0x10
mov dword [0x14002d62c], r15d
mov dword [0x14002d630], r15d
xorps xmm0, xmm0
movups xmmword [0x14002d634], xmm0
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x1400061be
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_LeaveCriticalSection]
nop dword [rax + rax]
xor edx, edx
xor ecx, ecx
mov r8d, 0xf003f
call qword [sym.imp.api_ms_win_service_management_l1_1_0.dll_OpenSCManagerW]
nop dword [rax + rax]
mov r15, rax
mov qword [rsp + 0x48], rax
test rax, rax
je 0x1400063ba
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]
nop dword [rax + rax]
mov r14, rax
mov qword [rsp + 0x50], rax
test rax, rax
je 0x14000637c
mov rsi, rdi
mov qword [rsp + 0x40], rdi
mov dword [rsp + 0x38], edi
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]
nop dword [rax + rax]
test eax, eax
jne 0x14000629e
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
cmp eax, 0x7a
jne 0x14000629e
mov edx, dword [rsp + 0x38]
lea ecx, [rax - 0x3a]
call qword [sym.imp.api_ms_win_core_heap_l2_1_0.dll_LocalAlloc]
nop dword [rax + rax]
mov rsi, rax
mov qword [rsp + 0x40], rax
test rax, rax
je 0x14000629e
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]
nop dword [rax + rax]
test eax, eax
je 0x14000629e
mov ecx, edi
cmp dword [rsi + 4], 3
sete cl
mov dword [0x14002c1a0], ecx
jmp 0x1400062bc
mov rcx, rsi
call qword [sym.imp.api_ms_win_core_heap_l2_1_0.dll_LocalFree]
nop dword [rax + rax]
lea rdx, [rsp + 0x78]
mov rcx, r14
call qword [sym.imp.api_ms_win_service_winsvc_l1_1_0.dll_QueryServiceStatus]
nop dword [rax + rax]
test eax, eax
je 0x140006350
cmp dword [rsp + 0x7c], 4
je 0x140006349
mov qword [rsp + 0x58], r12
lea rax, [0x140007c50]
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x68], rdi
mov qword [rsp + 0x70], rdi
lea rcx, [rsp + 0x58]
call qword [sym.imp.api_ms_win_service_core_l1_1_0.dll_StartServiceCtrlDispatcherW]
nop dword [rax + rax]
test eax, eax
jne 0x14000636b
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
mov ecx, eax
jle 0x140006337
mov ecx, ebx
test ecx, ecx
jns 0x140006342
test eax, eax
cmovle ebx, eax
jmp 0x14000636b
mov ebx, 0x80070015
jmp 0x14000636b
mov ebx, 0x800700b7
jmp 0x14000636b
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
jle 0x14000636b
movzx ebx, ax
or ebx, 0x80070000
mov rcx, r14
call qword [sym.imp.api_ms_win_service_management_l1_1_0.dll_CloseServiceHandle]
nop dword [rax + rax]
jmp 0x1400063a9
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
mov ecx, eax
jle 0x140006399
mov ecx, ebx
test ecx, ecx
jns 0x1400063a4
test eax, eax
cmovle ebx, eax
jmp 0x1400063a9
mov ebx, 0x80004005
mov rcx, r15
call qword [sym.imp.api_ms_win_service_management_l1_1_0.dll_CloseServiceHandle]
nop dword [rax + rax]
jmp 0x140006404
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
mov ecx, eax
jle 0x1400063d7
mov ecx, ebx
test ecx, ecx
jns 0x1400063e2
test eax, eax
cmovle ebx, eax
jmp 0x140006404
mov ebx, 0x80004005
jmp 0x140006404
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x1400063ff
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_LeaveCriticalSection]
nop dword [rax + rax]
mov ebx, 0x800700b7
test ebx, ebx
js 0x14000643b
lea rdx, [0x14002d648]
lea rcx, [rsp + 0x48]
call fcn.1400066f4
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x14000642f
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_LeaveCriticalSection]
nop dword [rax + rax]
mov ebx, dword [0x14002d634]
jmp 0x14000643b
mov eax, ebx
mov rcx, qword [rsp + 0xa0]
xor rcx, rsp
call fcn.140001fe0
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov r12, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop r13
ret