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

Disassembly:
mov rax, rsp
push r12
push r13
push r14
sub rsp, 0xb0
mov qword [rsp + 0x78], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov rax, qword [0x10002e120]
xor rax, rsp
mov qword [rsp + 0xa8], rax
xor r9d, r9d
xor r8d, r8d
lea r13d, [r9 + 1]
mov edx, r13d
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_HeapSetInformation]
call qword [sym.imp.wbemcomn.dll_public:_static_int___cdecl_CStaticCritSec::anyFailure_void_]
xor ebx, ebx
cmp eax, ebx
je 0x100008e14
lea eax, [rbx + 8]
jmp 0x1000093f4
lea rcx, [0x10002e9b0]
call fcn.100009f7c
mov edi, eax
cmp eax, ebx
jl 0x1000093f2
lea rcx, [rsp + 0xa0]
mov eax, dword [0x100001a1c]
mov dword [rcx], eax
movzx eax, word [0x100001a20]
mov word [rcx + 4], ax
lea rcx, [0x10002e9b0]
call fcn.10000a050
mov edi, eax
mov dword [rsp + 0x30], eax
cmp eax, ebx
jl 0x1000093f2
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov rsi, rax
cmp rax, rbx
je 0x100008eb6
cmp word [rsi], bx
je 0x100008eb6
lea rax, [rsp + 0xa0]
movzx ecx, word [rax]
cmp cx, bx
je 0x100008e95
cmp word [rsi], cx
je 0x100008ea8
mov rcx, rax
call qword [sym.imp.USER32.dll_CharNextW]
cmp rax, rbx
jne 0x100008e7a
mov rcx, rsi
call qword [sym.imp.USER32.dll_CharNextW]
mov rsi, rax
cmp rax, rbx
je 0x100008eb6
jmp 0x100008e6d
mov rcx, rsi
call qword [sym.imp.USER32.dll_CharNextW]
mov rsi, rax
jmp 0x100008eb9
mov rsi, rbx
mov r12d, r13d
or r14d, 0xffffffff
cmp rsi, rbx
je 0x1000090db
cmp r12d, ebx
je 0x1000093bf
mov dword [rsp + 0x28], r14d
lea rax, [0x100001a28]
mov qword [rsp + 0x20], rax
mov r9d, r14d
mov r8, rsi
mov edx, r13d
mov ecx, 0x7f
call qword [sym.imp.KERNEL32.dll_CompareStringW]
cmp eax, 2
jne 0x100008faf
mov dl, r13b
lea rcx, [0x100030110]
call fcn.10000aa98
mov edi, eax
mov dword [rsp + 0x30], eax
cmp eax, ebx
jl 0x100008fa7
mov r8d, r13d
xor edx, edx
mov rcx, qword [0x10002ea00]
call fcn.10000b65c
mov eax, dword [0x1000301ec]
test r13b, al
jne 0x100008f99
or eax, r13d
mov dword [0x1000301ec], eax
lea rax, [0x1000023e0]
mov qword [0x10002ecc8], rax
mov qword [0x10002ecd0], rbx
mov qword [0x10002ecd8], rbx
mov qword [0x10002ece0], rbx
mov dword [0x10002ece8], 4
mov qword [0x10002ecf0], rbx
mov qword [0x10002ecf8], rbx
mov qword [0x10002ed00], rbx
mov qword [0x10002ed08], rbx
mov qword [0x10002ed10], rbx
mov dword [0x10002ed18], r14d
xor edx, edx
lea rcx, [0x10002ec90]
call fcn.1000082ec
mov r12d, ebx
jmp 0x100009085
mov dword [rsp + 0x28], r14d
lea rax, [0x100001a40]
mov qword [rsp + 0x20], rax
mov r9d, r14d
mov r8, rsi
mov edx, r13d
mov ecx, 0x7f
call qword [sym.imp.KERNEL32.dll_CompareStringW]
cmp eax, 2
jne 0x100009085
lea rcx, [0x100030110]
call fcn.10000a72c
mov edi, eax
mov dword [rsp + 0x30], eax
cmp eax, ebx
jl 0x100009082
mov eax, dword [0x1000301ec]
test r13b, al
jne 0x100009062
or eax, r13d
mov dword [0x1000301ec], eax
lea rax, [0x1000023e0]
mov qword [0x10002ecc8], rax
mov qword [0x10002ecd0], rbx
mov qword [0x10002ecd8], rbx
mov qword [0x10002ece0], rbx
mov dword [0x10002ece8], 4
mov qword [0x10002ecf0], rbx
mov qword [0x10002ecf8], rbx
mov qword [0x10002ed00], rbx
mov qword [0x10002ed08], rbx
mov qword [0x10002ed10], rbx
mov dword [0x10002ed18], r14d
mov edx, r13d
lea rcx, [0x10002ec90]
call fcn.1000082ec
mov r8d, r14d
xor edx, edx
mov rcx, qword [0x10002ea00]
call fcn.10000b65c
mov r12d, ebx
cmp rsi, rbx
je 0x1000090d3
cmp word [rsi], bx
je 0x1000090d3
lea rax, [rsp + 0xa0]
cmp rax, rbx
je 0x1000090c5
movzx ecx, word [rax]
cmp cx, bx
je 0x1000090c5
cmp word [rsi], cx
jne 0x1000090ba
mov rcx, rsi
call qword [sym.imp.USER32.dll_CharNextW]
mov rsi, rax
jmp 0x100008ec0
mov rcx, rax
call qword [sym.imp.USER32.dll_CharNextW]
jmp 0x100009097
mov rcx, rsi
call qword [sym.imp.USER32.dll_CharNextW]
mov rsi, rax
jmp 0x100009085
mov rsi, rbx
jmp 0x100008ec0
cmp r12d, ebx
je 0x1000093bf
lea rdx, [0x10002e9b0]
lea rcx, [rsp + 0x38]
call fcn.10000a550
cmp qword [0x10002e9e0], rbx
jne 0x1000093aa
mov rcx, qword [0x10002e9f0]
cmp rcx, rbx
je 0x100009398
lea r8, [0x1000017a8]
xor edx, edx
mov rcx, qword [rcx + 8]
call qword [sym.imp.KERNEL32.dll_CreateMutexW]
mov qword [0x10002e9e0], rax
cmp rax, rbx
je 0x100009386
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x10000915b
mov rcx, qword [rsp + 0x38]
cmp rcx, rbx
je 0x1000093ba
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x1000093ba
mov rcx, qword [rsp + 0x38]
cmp rcx, rbx
je 0x10000916b
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea rdx, [0x100030138]
lea rcx, [rsp + 0x40]
call fcn.10000a550
mov qword [0x100030110], rbx
mov dword [0x100030118], 0x10
mov dword [0x10003011c], r13d
mov dword [0x100030120], r13d
mov dword [0x100030124], ebx
mov dword [0x100030128], ebx
mov dword [0x10003012c], ebx
mov dword [0x100030130], ebx
mov rcx, qword [rsp + 0x40]
cmp rcx, rbx
je 0x1000091c3
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor edx, edx
xor ecx, ecx
mov r8d, 0xf003f
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov r13, rax
mov qword [rsp + 0x70], rax
cmp rax, rbx
je 0x100009359
mov r8d, 5
lea r14, [0x1000017c8]
mov rdx, r14
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov r12, rax
mov qword [rsp + 0x50], rax
cmp rax, rbx
je 0x10000932c
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.ADVAPI32.dll_QueryServiceConfigW]
cmp eax, ebx
jne 0x10000927f
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x10000927f
mov edx, dword [rsp + 0x38]
lea ecx, [rax - 0x3a]
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rsi, rax
mov qword [rsp + 0x40], rax
cmp rax, rbx
je 0x10000927f
lea r9, [rsp + 0x38]
mov r8d, dword [rsp + 0x38]
mov rdx, rax
mov rcx, r12
call qword [sym.imp.ADVAPI32.dll_QueryServiceConfigW]
cmp eax, ebx
je 0x10000927f
mov ecx, ebx
cmp dword [rsi + 4], 3
sete cl
mov dword [0x10002ea40], ecx
jmp 0x10000929d
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LocalFree]
lea rdx, [rsp + 0x80]
mov rcx, r12
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
cmp eax, ebx
je 0x100009316
cmp dword [rsp + 0x84], 4
je 0x10000930f
mov qword [rsp + 0x48], r14
lea rax, [0x10000a5ec]
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x58], rbx
mov qword [rsp + 0x60], rbx
lea rcx, [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_StartServiceCtrlDispatcherW]
cmp eax, ebx
jne 0x100009349
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ecx, ax
or ecx, 0x80070000
cmp eax, ebx
cmovle ecx, eax
mov edi, 0x80070015
cmp ecx, ebx
cmovl edi, ecx
jmp 0x100009349
mov edi, 0x800700b7
jmp 0x100009349
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx edi, ax
or edi, 0x80070000
cmp eax, ebx
cmovle edi, eax
jmp 0x100009349
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx edi, ax
or edi, 0x80070000
cmp eax, ebx
cmovle edi, eax
cmp edi, ebx
jl 0x100009376
mov edi, 0x80004005
cmp r12, rbx
je 0x100009376
mov rcx, r12
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x100009376
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx edi, ax
or edi, 0x80070000
cmp eax, ebx
cmovle edi, eax
cmp edi, ebx
jl 0x1000093bf
mov edi, 0x80004005
cmp r13, rbx
je 0x1000093bf
mov rcx, r13
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x1000093bf
mov rcx, qword [rsp + 0x38]
cmp rcx, rbx
je 0x1000093ba
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x1000093ba
mov rcx, qword [rsp + 0x38]
cmp rcx, rbx
je 0x1000093ba
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x1000093ba
mov rcx, qword [rsp + 0x38]
cmp rcx, rbx
je 0x1000093ba
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov edi, 0x800700b7
jmp 0x1000093c7
cmp edi, ebx
jl 0x1000093f2
lea rdx, [0x100030138]
lea rcx, [rsp + 0x40]
call fcn.10000a550
add byte [rax - 0x75], cl
and al, 0x40
cmp rcx, rbx
je 0x1000093ec
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov edi, dword [0x100030124]
mov eax, edi
mov rcx, qword [rsp + 0xa8]
xor rcx, rsp
call fcn.10001e360
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop r13
pop r12
ret