Function at 0x140054030
Capabilities:
Query service status
Start service

Disassembly:
mov rax, rsp
push rbp
push r14
push r15
lea rbp, [rax - 0x68]
sub rsp, 0x150
mov qword [rbp - 0x60], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
movaps xmmword [rax - 0x28], xmm6
movaps xmmword [rax - 0x38], xmm7
mov rax, qword [0x1404680d8]
xor rax, rsp
mov qword [rbp + 0x20], rax
mov r14, rcx
mov qword [rbp - 0x30], rcx
xor edi, edi
mov dword [rsp + 0x30], edi
lea rax, [rsp + 0x38]
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x50], reloc.WS2_32.dll_ntohs
mov byte [rsp + 0x38], dil
lea r8d, [rdi + 0x14]
lea rdx, str.Enter_StartMBService
lea rcx, [rsp + 0x38]
call fcn.14000bc80
nop
lea rcx, [rsp + 0x38]
call fcn.14004c6e0
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x18], xmm0
movdqa xmm1, xmmword [0x1403e1a40]
movdqu xmmword [rbp - 0x18], xmm1
mov byte [rbp - 0x28], dil
lea rax, [rsp + 0x38]
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x50], reloc.WS2_32.dll_ntohs
mov byte [rsp + 0x38], dil
lea r8d, [rdi + 0x12]
lea rdx, str.getting_SCM_handle
lea rcx, [rsp + 0x38]
call fcn.14000bc80
nop
lea rcx, [rsp + 0x38]
call fcn.14004c6e0
xor edx, edx
xor ecx, ecx
mov r8d, 0xf003f
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov r15, rax
test rax, rax
jne 0x140054307
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, [rbp]
call fcn.14004c2f0
nop
lea r9d, [rdi + 6]
lea r8, str.Error
xor edx, edx
mov rcx, rax
call fcn.14003f590
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x70], xmm0
movups xmm0, xmmword [rax]
movups xmmword [rsp + 0x60], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rsp + 0x70], xmm1
mov qword [rax + 0x10], rdi
mov qword [rax + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rax], r15b
mov dword [rsp + 0x30], 1
lea r8d, [rdi + 0x16]
lea rdx, str._calling_OpenSCManager
lea rcx, [rsp + 0x60]
call fcn.14000bde0
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x48], xmm0
movups xmm6, xmmword [rax]
movups xmmword [rsp + 0x38], xmm6
movups xmm7, xmmword [rax + 0x10]
movdqu xmmword [rsp + 0x48], xmm7
mov qword [rax + 0x10], rdi
mov qword [rax + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rax], r15b
mov ebx, 3
mov dword [rsp + 0x30], ebx
lea rcx, [rbp - 0x28]
call fcn.14000bc00
movups xmmword [rbp - 0x28], xmm6
movdqu xmmword [rbp - 0x18], xmm7
movdqa xmm0, xmmword [0x1403e1a40]
movdqu xmmword [rsp + 0x48], xmm0
mov byte [rsp + 0x38], r15b
and ebx, 0xfffffffd
mov dword [rsp + 0x30], ebx
lea rcx, [rsp + 0x38]
call fcn.14000bc00
and ebx, 0xfffffffe
mov dword [rsp + 0x30], ebx
lea rcx, [rsp + 0x60]
call fcn.14000bc00
nop
lea rcx, [rbp]
call fcn.14000bc00
lea rax, [rsp + 0x38]
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x50], rdi
lea r15, [rbp - 0x28]
movq rcx, xmm6
mov qword [rbp - 0x28], rcx
movdqa xmm0, xmm7
psrldq xmm0, 8
movq rax, xmm0
mov qword [rbp - 0x10], rax
cmp rax, 0x10
cmovae r15, rcx
movq rsi, xmm7
mov qword [rbp - 0x18], rsi
cmp rsi, 0x10
jae 0x140054278
movups xmm0, xmmword [r15]
movups xmmword [rsp + 0x38], xmm0
mov qword [rsp + 0x50], reloc.WS2_32.dll_ntohs
jmp 0x1400542f3
mov rbx, rsi
or rbx, 0xf
movabs rax, 0x7fffffffffffffff
cmp rbx, rax
cmova rbx, rax
lea rax, [rbx + 1]
cmp rax, 0x1000
jb 0x1400542ca
lea rcx, [rax + 0x27]
mov rdx, 0xffffffffffffffff
cmp rcx, rax
cmovbe rcx, rdx
call fcn.140282c3c
test rax, rax
je 0x140054be0
lea rdi, [rax + 0x27]
and rdi, 0xffffffffffffffe0
mov qword [rdi - 8], rax
jmp 0x1400542da
test rax, rax
je 0x1400542da
mov rcx, rax
call fcn.140282c3c
mov rdi, rax
mov qword [rsp + 0x38], rdi
lea r8, [rsi + 1]
mov rdx, r15
mov rcx, rdi
call fcn.140285b80
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x48], rsi
lea rcx, [rsp + 0x38]
call fcn.14004c6e0
jmp 0x140054b99
lea rax, [rsp + 0x38]
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x50], reloc.WS2_32.dll_ntohs
mov byte [rsp + 0x38], 0
mov r8d, 0x26
lea rdx, str.got_SCM_handle__getting_service_handle
lea rcx, [rsp + 0x38]
call fcn.14000bc80
nop
lea rcx, [rsp + 0x38]
call fcn.14004c6e0
mov rdx, r14
cmp qword [r14 + 0x18], 8
jb 0x140054353
mov rdx, qword [r14]
mov r8d, 0x20000004
mov rcx, r15
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rsi, rax
test rax, rax
jne 0x140054482
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, [rbp]
call fcn.14004c2f0
nop
lea r9d, [rsi + 6]
lea r8, str.Error
xor edx, edx
mov rcx, rax
call fcn.14003f590
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x70], xmm0
movups xmm0, xmmword [rax]
movups xmmword [rsp + 0x60], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rsp + 0x70], xmm1
mov qword [rax + 0x10], rdi
mov qword [rax + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rax], sil
mov dword [rsp + 0x30], 4
lea r8d, [rsi + 0x14]
lea rdx, str._calling_OpenService
lea rcx, [rsp + 0x60]
call fcn.14000bde0
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x48], xmm0
movups xmm7, xmmword [rax]
movups xmmword [rsp + 0x38], xmm7
movups xmm6, xmmword [rax + 0x10]
movdqu xmmword [rsp + 0x48], xmm6
mov qword [rax + 0x10], rdi
mov qword [rax + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rax], sil
mov ebx, ntohl
mov dword [rsp + 0x30], ebx
lea rcx, [rbp - 0x28]
call fcn.14000bc00
movups xmmword [rbp - 0x28], xmm7
movups xmmword [rbp - 0x18], xmm6
movdqa xmm0, xmmword [0x1403e1a40]
movdqu xmmword [rsp + 0x48], xmm0
mov byte [rsp + 0x38], sil
and ebx, 0xfffffff7
mov dword [rsp + 0x30], ebx
lea rcx, [rsp + 0x38]
call fcn.14000bc00
and ebx, 0xfffffffb
mov dword [rsp + 0x30], ebx
lea rcx, [rsp + 0x60]
call fcn.14000bc00
nop
lea rcx, [rbp]
call fcn.14000bc00
lea rax, [rbp]
mov qword [rsp + 0x58], rax
lea rdx, [rbp - 0x28]
lea rcx, [rbp]
call fcn.14000b920
nop
mov rcx, rax
call fcn.14004c6e0
jmp 0x140054b8f
lea rax, [rsp + 0x38]
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x50], reloc.WS2_32.dll_ntohs
mov byte [rsp + 0x38], 0
mov r8d, 0x28
lea rdx, str.got_service_handle__query_service_status
lea rcx, [rsp + 0x38]
call fcn.14000bc80
nop
lea rcx, [rsp + 0x38]
call fcn.14004c6e0
mov dword [rbp - 8], edi
xor eax, eax
mov qword [rbp - 0x58], rax
mov qword [rbp - 0x50], rax
mov qword [rbp - 0x48], rax
mov qword [rbp - 0x40], rax
mov dword [rbp - 0x38], eax
lea rax, [rbp - 8]
mov qword [rsp + 0x20], rax
mov r9d, 0x24
lea r8, [rbp - 0x58]
xor edx, edx
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
je 0x140054a71
lea rax, [rsp + 0x38]
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x50], reloc.WS2_32.dll_ntohs
mov byte [rsp + 0x38], 0
mov r8d, 0x1f
lea rdx, str.successful_query_service_status
lea rcx, [rsp + 0x38]
call fcn.14000bc80
nop
lea rcx, [rsp + 0x38]
call fcn.14004c6e0
mov r8d, reloc.WS2_32.dll_socket
cmp dword [rbp - 0x54], 4
je 0x14005498e
lea rax, [rsp + 0x38]
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x50], reloc.WS2_32.dll_ntohs
mov byte [rsp + 0x38], 0
lea rdx, str.Starting_the_service...
lea rcx, [rsp + 0x38]
call fcn.14000bc80
nop
lea rcx, [rsp + 0x38]
call fcn.14004c6e0
xor r8d, r8d
xor edx, edx
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
jne 0x1400546f7
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x420
je 0x1400546b8
mov edx, eax
lea rcx, [rbp]
call fcn.14004c2f0
nop
mov r9d, 6
lea r8, str.Error
xor edx, edx
mov rcx, rax
call fcn.14003f590
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x70], xmm0
movups xmm0, xmmword [rax]
movups xmmword [rsp + 0x60], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rsp + 0x70], xmm1
mov qword [rax + 0x10], rdi
mov qword [rax + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rax], 0
mov dword [rsp + 0x30], reloc.WS2_32.dll_recv
mov r8d, reloc.WS2_32.dll_setsockopt
lea rdx, str._calling_StartService
lea rcx, [rsp + 0x60]
call fcn.14000bde0
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x48], xmm0
movups xmm7, xmmword [rax]
movups xmmword [rsp + 0x38], xmm7
movups xmm6, xmmword [rax + 0x10]
movdqu xmmword [rsp + 0x48], xmm6
mov qword [rax + 0x10], rdi
mov qword [rax + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rax], 0
mov ebx, 0x30
mov dword [rsp + 0x30], ebx
lea rcx, [rbp - 0x28]
call fcn.14000bc00
movups xmmword [rbp - 0x28], xmm7
movups xmmword [rbp - 0x18], xmm6
movdqa xmm0, xmmword [0x1403e1a40]
movdqu xmmword [rsp + 0x48], xmm0
mov byte [rsp + 0x38], 0
and ebx, 0xffffffdf
mov dword [rsp + 0x30], ebx
lea rcx, [rsp + 0x38]
call fcn.14000bc00
and ebx, 0xffffffef
mov dword [rsp + 0x30], ebx
lea rcx, [rsp + 0x60]
call fcn.14000bc00
nop
lea rcx, [rbp]
call fcn.14000bc00
lea rax, [rbp]
mov qword [rsp + 0x58], rax
lea rdx, [rbp - 0x28]
lea rcx, [rbp]
call fcn.14000b920
nop
jmp 0x140054b7e
lea rax, [rsp + 0x38]
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x50], reloc.WS2_32.dll_ntohs
mov byte [rsp + 0x38], 0
mov r8d, 0x33
lea rdx, str.StartService_returned_ERROR_SERVICE_ALREADY_RUNNING
lea rcx, [rsp + 0x38]
call fcn.14000bc80
nop
lea rcx, [rsp + 0x38]
call fcn.14004c6e0
lea rax, [rsp + 0x38]
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x50], reloc.WS2_32.dll_ntohs
mov byte [rsp + 0x38], 0
mov r8d, 0x3c
lea rdx, str.StartService_call_succeeded__waiting_for_service_to_start...
lea rcx, [rsp + 0x38]
call fcn.14000bc80
nop
lea rcx, [rsp + 0x38]
call fcn.14004c6e0
mov ebx, edi
nop dword [rax + rax]
inc ebx
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rax, [rsp + 0x38]
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x50], reloc.WS2_32.dll_ntohs
mov byte [rsp + 0x38], 0
mov r8d, reloc.WS2_32.dll_sendto
lea rdx, str.query_service_status
lea rcx, [rsp + 0x38]
call fcn.14000bc80
nop
lea rcx, [rsp + 0x38]
call fcn.14004c6e0
lea rax, [rbp - 8]
mov qword [rsp + 0x20], rax
mov r9d, 0x24
lea r8, [rbp - 0x58]
xor edx, edx
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
je 0x14005487d
mov edx, dword [rbp - 0x54]
lea rcx, [rbp]
call fcn.14004ca20
nop
lea rax, [rsp + 0x38]
mov qword [rsp + 0x58], rax
lea r8, [rbp]
lea rdx, str.service_state:
lea rcx, [rsp + 0x38]
call fcn.140055b50
nop
mov rcx, rax
call fcn.14004c6e0
cmp dword [rbp - 0x54], 4
lea rcx, [rbp]
je 0x14005483e
call fcn.14000bc00
cmp ebx, 0x5a
jle 0x140054740
lea rax, [rsp + 0x60]
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x70], rdi
mov qword [rsp + 0x78], reloc.WS2_32.dll_ntohs
mov byte [rsp + 0x60], 0
mov r8d, 0x27
lea rdx, str.timed_out_waiting_for_service_to_start.
lea rcx, [rsp + 0x60]
call fcn.14000bc80
nop
lea rcx, [rsp + 0x60]
jmp 0x140054b81
call fcn.14000bc00
lea rax, [rsp + 0x60]
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x70], rdi
mov qword [rsp + 0x78], reloc.WS2_32.dll_ntohs
mov byte [rsp + 0x60], 0
mov r8d, reloc.WS2_32.dll_ntohs
lea rdx, str.service_started
lea rcx, [rsp + 0x60]
call fcn.14000bc80
nop
jmp 0x1400549bd
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, [rbp - 0x80]
call fcn.14004c2f0
nop
mov r9d, 6
lea r8, str.Error
xor edx, edx
mov rcx, rax
call fcn.14003f590
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x48], xmm0
movups xmm0, xmmword [rax]
movups xmmword [rsp + 0x38], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rsp + 0x48], xmm1
mov qword [rax + 0x10], rdi
mov qword [rax + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rax], 0
mov dword [rsp + 0x30], 0x40
mov r8d, 0x20
lea rdx, str._calling_QueryServiceStatusEx_2_
lea rcx, [rsp + 0x38]
call fcn.14000bde0
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x70], xmm0
movups xmm7, xmmword [rax]
movups xmmword [rsp + 0x60], xmm7
movups xmm6, xmmword [rax + 0x10]
movdqu xmmword [rsp + 0x70], xmm6
mov qword [rax + 0x10], rdi
mov qword [rax + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rax], 0
mov ebx, 0xc0
mov dword [rsp + 0x30], ebx
lea rcx, [rbp - 0x28]
call fcn.14000bc00
movups xmmword [rbp - 0x28], xmm7
movups xmmword [rbp - 0x18], xmm6
movdqa xmm0, xmmword [0x1403e1a40]
movdqu xmmword [rsp + 0x70], xmm0
mov byte [rsp + 0x60], 0
btr ebx, 7
mov dword [rsp + 0x30], ebx
lea rcx, [rsp + 0x60]
call fcn.14000bc00
and ebx, 0xffffffbf
mov dword [rsp + 0x30], ebx
lea rcx, [rsp + 0x38]
call fcn.14000bc00
nop
lea rcx, [rbp - 0x80]
call fcn.14000bc00
lea rax, [rbp - 0x80]
mov qword [rsp + 0x58], rax
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x80]
call fcn.14000b920
nop
jmp 0x140054b7e
lea rax, [rsp + 0x60]
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x70], rdi
mov qword [rsp + 0x78], reloc.WS2_32.dll_ntohs
mov byte [rsp + 0x60], 0
lea rdx, str.service_already_running
lea rcx, [rsp + 0x60]
call fcn.14000bc80
nop
lea rcx, [rsp + 0x60]
call fcn.14004c6e0
lea rax, [rsp + 0x60]
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x70], rdi
mov qword [rsp + 0x78], reloc.WS2_32.dll_ntohs
mov byte [rsp + 0x60], 0
mov r8d, 0x1f
lea rdx, str.closing_SCM_and_service_handles
lea rcx, [rsp + 0x60]
call fcn.14000bc80
nop
lea rcx, [rsp + 0x60]
call fcn.14004c6e0
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, r15
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
lea rax, [rsp + 0x60]
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x70], rdi
mov qword [rsp + 0x78], reloc.WS2_32.dll_ntohs
mov byte [rsp + 0x60], 0
mov r8d, reloc.WS2_32.dll_send
lea rdx, str.exit_StartMBService
lea rcx, [rsp + 0x60]
call fcn.14000bc80
nop
lea rcx, [rsp + 0x60]
call fcn.14004c6e0
nop
lea rcx, [rbp - 0x28]
call fcn.14000bc00
nop
mov rcx, r14
call fcn.14000c340
mov al, 1
jmp 0x140054bad
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, [rbp - 0x80]
call fcn.14004c2f0
nop
mov r9d, 6
lea r8, str.Error
xor edx, edx
mov rcx, rax
call fcn.14003f590
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x48], xmm0
movups xmm0, xmmword [rax]
movups xmmword [rsp + 0x38], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rsp + 0x48], xmm1
mov qword [rax + 0x10], rdi
mov qword [rax + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rax], 0
mov dword [rsp + 0x30], 0x200
mov r8d, 0x20
lea rdx, str._calling_QueryServiceStatusEx_1_
lea rcx, [rsp + 0x38]
call fcn.14000bde0
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x70], xmm0
movups xmm7, xmmword [rax]
movups xmmword [rsp + 0x60], xmm7
movups xmm6, xmmword [rax + 0x10]
movdqu xmmword [rsp + 0x70], xmm6
mov qword [rax + 0x10], rdi
mov qword [rax + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rax], 0
mov ebx, 0x600
mov dword [rsp + 0x30], ebx
lea rcx, [rbp - 0x28]
call fcn.14000bc00
movups xmmword [rbp - 0x28], xmm7
movups xmmword [rbp - 0x18], xmm6
movdqa xmm0, xmmword [0x1403e1a40]
movdqu xmmword [rsp + 0x70], xmm0
mov byte [rsp + 0x60], 0
btr ebx, 0xa
mov dword [rsp + 0x30], ebx
lea rcx, [rsp + 0x60]
call fcn.14000bc00
btr ebx, 9
mov dword [rsp + 0x30], ebx
lea rcx, [rsp + 0x38]
call fcn.14000bc00
nop
lea rcx, [rbp - 0x80]
call fcn.14000bc00
lea rax, [rbp - 0x80]
mov qword [rsp + 0x58], rax
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x80]
call fcn.14000b920
nop
mov rcx, rax
call fcn.14004c6e0
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, r15
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
nop
lea rcx, [rbp - 0x28]
call fcn.14000bc00
nop
mov rcx, r14
call fcn.14000c340
xor al, al
mov rcx, qword [rbp + 0x20]
xor rcx, rsp
call fcn.140282c10
lea r11, [rsp + 0x150]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
movaps xmm6, xmmword [r11 - 0x10]
movaps xmm7, xmmword [r11 - 0x20]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
call fcn.14028ea2c
nop
int3