Function at 0x140063850
Capabilities:
Query service status
Start service

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
lea rbp, [rsp - 0xc0]
sub rsp, 0x1c0
mov rax, qword [0x14049f3c0]
xor rax, rsp
mov qword [rbp + 0xb0], rax
mov rdi, rcx
xor esi, esi
mov dword [rsp + 0x40], esi
cmp qword [rcx + 0x30], rsi
jne 0x140063957
xorps xmm0, xmm0
movups xmmword [rbp + 0x90], xmm0
mov qword [rbp + 0xa0], rsi
mov qword [rbp + 0xa8], rsi
lea r8d, [rsi + 0x12]
lea rdx, str.Empty_ServiceName.
lea rcx, [rbp + 0x90]
call fcn.140015370
nop
lea rcx, [rsp + 0x70]
call fcn.1400098d0
nop
mov r8, qword [rax + 0x10]
cmp qword [rax + 0x18], 0xf
jbe 0x1400638dc
mov rax, qword [rax]
mov rdx, rax
lea rcx, [0x1404b5d00]
call fcn.140035a10
lea rdx, [rbp + 0x90]
cmp qword [rbp + 0xa8], 0xf
cmova rdx, qword [rbp + 0x90]
mov r8, qword [rbp + 0xa0]
mov rcx, rax
call fcn.140035a10
mov rbx, rax
mov rcx, qword [rax]
movsxd rcx, dword [rcx + 4]
add rcx, rax
mov dl, 0xa
call fcn.140035dd0
movzx edx, al
mov rcx, rbx
call fcn.140035860
mov rcx, rbx
call fcn.14002eff0
nop
lea rcx, [rsp + 0x70]
call fcn.140016400
nop
lea rcx, [rbp + 0x90]
call fcn.140016400
xor al, al
jmp 0x140064043
xor edx, edx
xor ecx, ecx
mov r8d, 0x20000004
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov qword [rbp - 0x28], rax
test rax, rax
jne 0x1400639b3
xorps xmm0, xmm0
movups xmmword [rsp + 0x48], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x58], xmm1
lea r8d, [rax + 0x1e]
lea rdx, str.OpenSCMManager_failed__Error:
lea rcx, [rsp + 0x48]
call fcn.140015370
nop
lea rcx, [rsp + 0x48]
call fcn.1400615f0
nop
lea rcx, [rsp + 0x48]
call fcn.140016400
xor al, al
jmp 0x140064043
lea rax, [rbp + 0x50]
mov qword [rsp + 0x68], rax
mov qword [rbp + 0x88], rsi
lea rax, vtable.std::_Func_impl_no_alloc_class__public_virtual:_bool___cdecl_MbamService::Start_void____ptr64::_2::_lambda_1___void___.0
mov qword [rbp + 0x50], rax
mov qword [rbp + 0x58], rdi
lea rax, [rbp - 0x28]
mov qword [rbp + 0x60], rax
lea rax, [rbp + 0x50]
mov qword [rbp + 0x88], rax
lea rbx, [rdi + 0x20]
mov rdx, rbx
cmp qword [rbx + 0x18], 7
jbe 0x1400639f6
mov rdx, qword [rbx]
mov r8d, reloc.WS2_32.dll_socket
mov rcx, qword [rbp - 0x28]
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov qword [rbp - 0x30], rax
test rax, rax
jne 0x140063a52
xorps xmm0, xmm0
movups xmmword [rsp + 0x48], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x58], xmm1
lea r8d, [rax + 0x1b]
lea rdx, str.OpenService_failed__Error:
lea rcx, [rsp + 0x48]
call fcn.140015370
nop
lea rcx, [rsp + 0x48]
call fcn.1400615f0
nop
lea rcx, [rsp + 0x48]
call fcn.140016400
xor bl, bl
jmp 0x140064000
lea rax, [rbp + 0x10]
mov qword [rsp + 0x68], rax
mov qword [rbp + 0x48], rsi
lea rax, vtable.std::_Func_impl_no_alloc_class__public_virtual:_bool___cdecl_MbamService::Start_void____ptr64::_2::_lambda_2___void___.0
mov qword [rbp + 0x10], rax
mov qword [rbp + 0x18], rdi
lea rax, [rbp - 0x30]
mov qword [rbp + 0x20], rax
lea rax, [rbp + 0x10]
mov qword [rbp + 0x48], rax
mov dword [rbp - 0x20], esi
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp - 0x18], xmm0
movups xmmword [rbp - 8], xmm0
mov dword [rbp + 8], eax
lea rax, [rbp - 0x20]
mov qword [rsp + 0x20], rax
mov r9d, 0x24
lea r8, [rbp - 0x18]
xor edx, edx
mov rcx, qword [rbp - 0x30]
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
jne 0x140063aeb
xorps xmm0, xmm0
movups xmmword [rsp + 0x48], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x58], xmm1
lea r8d, [rax + 0x1d]
lea rdx, str.QueryServiceStatusEx_failed:
lea rcx, [rsp + 0x48]
call fcn.140015370
nop
lea rcx, [rsp + 0x48]
call fcn.1400615f0
nop
jmp 0x140063fba
cmp dword [rbp - 0x14], 4
jne 0x140063b65
mov rcx, qword [rbx + 0x10]
movabs rax, 0x7ffffffffffffffe
sub rax, rcx
cmp rax, 0x2b
jb 0x140064071
cmp qword [rbx + 0x18], 7
jbe 0x140063b16
mov rbx, qword [rbx]
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], 0x2b
lea r9, str.Service_already_running__no_need_to_start:
lea rcx, [rsp + 0x48]
call fcn.14002beb0
mov ebx, 1
mov dword [rsp + 0x40], ebx
lea rcx, [rsp + 0x48]
call fcn.140061540
and ebx, 0xfffffffe
mov dword [rsp + 0x40], ebx
lea rcx, [rsp + 0x48]
call fcn.1400166f0
mov bl, 1
jmp 0x140063fc6
mov rcx, qword [rbx + 0x10]
movabs rax, 0x7ffffffffffffffe
sub rax, rcx
cmp rax, 0x12
jb 0x140064077
cmp qword [rbx + 0x18], 7
jbe 0x140063b8a
mov rbx, qword [rbx]
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], socket
lea r9, str.Starting_service:
lea rcx, [rsp + 0x48]
call fcn.14002beb0
mov ebx, 2
mov dword [rsp + 0x40], ebx
lea rcx, [rsp + 0x48]
call fcn.140061540
and ebx, 0xfffffffd
mov dword [rsp + 0x40], ebx
lea rcx, [rsp + 0x48]
call fcn.1400166f0
xor r8d, r8d
xor edx, edx
mov rcx, qword [rbp - 0x30]
call qword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
jne 0x140063db0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
cmp eax, 0x420
je 0x140063db0
cmp eax, 0x241
je 0x140063cd9
lea r9, [rbp + 0xa5]
nop
dec r9
mov eax, 0xcccccccd
mul r8d
shr edx, 3
movzx eax, dl
shl al, 2
lea ecx, [rax + rdx]
add cl, cl
sub r8b, cl
add r8b, 0x30
mov byte [r9], r8b
mov r8d, edx
test edx, edx
jne 0x140063c10
lea r8, [rbp + 0xa5]
mov rdx, r9
lea rcx, [rbp - 0x50]
call fcn.140060870
or ebx, 0x40
mov dword [rsp + 0x40], ebx
and ebx, 0xffffffbf
mov dword [rsp + 0x40], ebx
or ebx, 0x20
mov dword [rsp + 0x40], ebx
mov r9d, 0x27
lea r8, str.Critical_failure__StartService_failed:
xor edx, edx
lea rcx, [rbp - 0x50]
call fcn.140015db0
xorps xmm0, xmm0
movups xmmword [rbp - 0x70], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x60], xmm1
movups xmm0, xmmword [rax]
movups xmmword [rbp - 0x70], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp - 0x60], xmm1
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rax], 0
bts ebx, 7
mov dword [rsp + 0x40], ebx
lea rcx, [rbp - 0x70]
call fcn.1400614b0
btr ebx, 7
mov dword [rsp + 0x40], ebx
lea rcx, [rbp - 0x70]
call fcn.140016400
and ebx, 0xffffffdf
mov dword [rsp + 0x40], ebx
lea rcx, [rbp - 0x50]
jmp 0x140063fbf
lea r9, [rbp + 0xa5]
dec r9
mov eax, 0xcccccccd
mul r8d
shr edx, 3
movzx eax, dl
shl al, 2
lea ecx, [rax + rdx]
add cl, cl
sub r8b, cl
add r8b, 0x30
mov byte [r9], r8b
mov r8d, edx
test edx, edx
jne 0x140063ce0
lea r8, [rbp + 0xa5]
mov rdx, r9
lea rcx, [rsp + 0x70]
call fcn.140060870
or ebx, 8
mov dword [rsp + 0x40], ebx
and ebx, 0xfffffff7
mov dword [rsp + 0x40], ebx
or ebx, 4
mov dword [rsp + 0x40], ebx
mov r9d, 0x4c
lea r8, str.Critical_failure__Service_likely_requires_restart_due_to_ELAM_driver_state:
xor edx, edx
lea rcx, [rsp + 0x70]
call fcn.140015db0
xorps xmm0, xmm0
movups xmmword [rsp + 0x48], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x58], xmm1
movups xmm0, xmmword [rax]
movups xmmword [rsp + 0x48], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rsp + 0x58], xmm1
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rax], 0
or ebx, 0x10
mov dword [rsp + 0x40], ebx
lea rcx, [rsp + 0x48]
call fcn.1400614b0
and ebx, 0xffffffef
mov dword [rsp + 0x40], ebx
lea rcx, [rsp + 0x48]
call fcn.140016400
and ebx, 0xfffffffb
mov dword [rsp + 0x40], ebx
lea rcx, [rsp + 0x70]
jmp 0x140063fbf
xorps xmm0, xmm0
movups xmmword [rbp + 0x90], xmm0
mov qword [rbp + 0xa0], rsi
mov qword [rbp + 0xa8], rsi
mov r8d, 0x3a
lea rdx, str.StartService_call_succeeded._Waiting_for_service_to_start.
lea rcx, [rbp + 0x90]
call fcn.140015370
nop
lea rcx, [rsp + 0x70]
call fcn.1400098d0
nop
mov r8, qword [rax + 0x10]
cmp qword [rax + 0x18], 0xf
jbe 0x140063dfb
mov rax, qword [rax]
mov rdx, rax
lea rcx, [0x1404b5d00]
call fcn.140035a10
lea rdx, [rbp + 0x90]
cmp qword [rbp + 0xa8], 0xf
cmova rdx, qword [rbp + 0x90]
mov r8, qword [rbp + 0xa0]
mov rcx, rax
call fcn.140035a10
mov rbx, rax
mov rcx, qword [rax]
movsxd rcx, dword [rcx + 4]
add rcx, rax
mov dl, 0xa
call fcn.140035dd0
movzx edx, al
mov rcx, rbx
call fcn.140035860
mov rcx, rbx
call fcn.14002eff0
nop
lea rcx, [rsp + 0x70]
call fcn.140016400
nop
lea rcx, [rbp + 0x90]
call fcn.140016400
mov ebx, esi
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rax, [rbp - 0x20]
mov qword [rsp + 0x20], rax
mov r9d, 0x24
lea r8, [rbp - 0x18]
xor edx, edx
mov rcx, qword [rbp - 0x30]
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
je 0x140063f86
cmp dword [rbp - 0x14], 4
je 0x140063eb2
inc ebx
cmp ebx, 0x3c
jb 0x140063e71
jmp 0x140063ebb
cmp ebx, 0x3c
jb 0x140063f77
xorps xmm0, xmm0
movups xmmword [rbp + 0x90], xmm0
mov qword [rbp + 0xa0], rsi
mov qword [rbp + 0xa8], rsi
mov r8d, 0x25
lea rdx, str.Timed_out_waiting_for_service_start:
lea rcx, [rbp + 0x90]
call fcn.140015370
nop
lea rcx, [rsp + 0x70]
call fcn.1400098d0
nop
mov r8, qword [rax + 0x10]
cmp qword [rax + 0x18], 0xf
jbe 0x140063f06
mov rax, qword [rax]
mov rdx, rax
lea rcx, [0x1404b5d00]
call fcn.140035a10
lea rdx, [rbp + 0x90]
cmp qword [rbp + 0xa8], 0xf
cmova rdx, qword [rbp + 0x90]
mov r8, qword [rbp + 0xa0]
mov rcx, rax
call fcn.140035a10
mov rbx, rax
mov rcx, qword [rax]
movsxd rcx, dword [rcx + 4]
add rcx, rax
mov dl, 0xa
call fcn.140035dd0
movzx edx, al
mov rcx, rbx
call fcn.140035860
mov rcx, rbx
call fcn.14002eff0
nop
lea rcx, [rsp + 0x70]
call fcn.140016400
nop
lea rcx, [rbp + 0x90]
jmp 0x140063fbf
mov ecx, 0x2710
call qword [sym.imp.KERNEL32.dll_Sleep]
mov bl, 1
jmp 0x140063fc6
xorps xmm0, xmm0
movups xmmword [rsp + 0x48], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x58], xmm1
mov r8d, 0x1d
lea rdx, str.QueryServiceStatusEx_failed:
lea rcx, [rsp + 0x48]
call fcn.140015370
nop
lea rcx, [rsp + 0x48]
call fcn.1400615f0
nop
lea rcx, [rsp + 0x48]
call fcn.140016400
xor bl, bl
mov rcx, qword [rbp + 0x48]
test rcx, rcx
je 0x14006407d
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
nop
lea rax, [rbp + 0x10]
mov qword [rsp + 0x68], rax
mov rcx, qword [rbp + 0x48]
test rcx, rcx
je 0x140064000
mov rax, qword [rcx]
lea rdx, [rbp + 0x10]
cmp rcx, rdx
setne dl
call qword [rax + 0x20]
mov qword [rbp + 0x48], rsi
mov rcx, qword [rbp + 0x88]
test rcx, rcx
je 0x14006406b
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
nop
lea rax, [rbp + 0x50]
mov qword [rsp + 0x68], rax
mov rcx, qword [rbp + 0x88]
test rcx, rcx
je 0x140064040
mov r8, qword [rcx]
lea rax, [rbp + 0x50]
cmp rcx, rax
setne dl
call qword [r8 + 0x20]
mov qword [rbp + 0x88], rsi
movzx eax, bl
mov rcx, qword [rbp + 0xb0]
xor rcx, rsp
call fcn.1402ba9b0
lea r11, [rsp + 0x1c0]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
call fcn.1402b93ec
nop
call fcn.140016040
nop
call fcn.140016040
nop
call fcn.1402b93ec
int3