Function at 0x140061890
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 [0x1404953c0]
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 0x140061997
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 0x14006191c
mov rax, qword [rax]
mov rdx, rax
lea rcx, [0x1404abb40]
call fcn.1400347d0
lea rdx, [rbp + 0x90]
cmp qword [rbp + 0xa8], 0xf
cmova rdx, qword [rbp + 0x90]
mov r8, qword [rbp + 0xa0]
mov rcx, rax
call fcn.1400347d0
mov rbx, rax
mov rcx, qword [rax]
movsxd rcx, dword [rcx + 4]
add rcx, rax
mov dl, 0xa
call fcn.140034b90
movzx edx, al
mov rcx, rbx
call fcn.140034620
mov rcx, rbx
call fcn.14002ddd0
nop
lea rcx, [rsp + 0x70]
call fcn.140016400
nop
lea rcx, [rbp + 0x90]
call fcn.140016400
xor al, al
jmp 0x140062083
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 0x1400619f3
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.14005f630
nop
lea rcx, [rsp + 0x48]
call fcn.140016400
xor al, al
jmp 0x140062083
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 0x140061a36
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 0x140061a92
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.14005f630
nop
lea rcx, [rsp + 0x48]
call fcn.140016400
xor bl, bl
jmp 0x140062040
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 0x140061b2b
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.14005f630
nop
jmp 0x140061ffa
cmp dword [rbp - 0x14], 4
jne 0x140061ba5
mov rcx, qword [rbx + 0x10]
movabs rax, 0x7ffffffffffffffe
sub rax, rcx
cmp rax, 0x2b
jb 0x1400620b1
cmp qword [rbx + 0x18], 7
jbe 0x140061b56
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.14002ac90
mov ebx, 1
mov dword [rsp + 0x40], ebx
lea rcx, [rsp + 0x48]
call fcn.14005f580
and ebx, 0xfffffffe
mov dword [rsp + 0x40], ebx
lea rcx, [rsp + 0x48]
call fcn.1400166f0
mov bl, 1
jmp 0x140062006
mov rcx, qword [rbx + 0x10]
movabs rax, 0x7ffffffffffffffe
sub rax, rcx
cmp rax, 0x12
jb 0x1400620b7
cmp qword [rbx + 0x18], 7
jbe 0x140061bca
mov rbx, qword [rbx]
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], sendto
lea r9, str.Starting_service:
lea rcx, [rsp + 0x48]
call fcn.14002ac90
mov ebx, 2
mov dword [rsp + 0x40], ebx
lea rcx, [rsp + 0x48]
call fcn.14005f580
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 0x140061df0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
cmp eax, 0x420
je 0x140061df0
cmp eax, 0x241
je 0x140061d19
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 0x140061c50
lea r8, [rbp + 0xa5]
mov rdx, r9
lea rcx, [rbp - 0x50]
call fcn.14005e8b0
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.14005f4f0
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 0x140061fff
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 0x140061d20
lea r8, [rbp + 0xa5]
mov rdx, r9
lea rcx, [rsp + 0x70]
call fcn.14005e8b0
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.14005f4f0
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 0x140061fff
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 0x140061e3b
mov rax, qword [rax]
mov rdx, rax
lea rcx, [0x1404abb40]
call fcn.1400347d0
lea rdx, [rbp + 0x90]
cmp qword [rbp + 0xa8], 0xf
cmova rdx, qword [rbp + 0x90]
mov r8, qword [rbp + 0xa0]
mov rcx, rax
call fcn.1400347d0
mov rbx, rax
mov rcx, qword [rax]
movsxd rcx, dword [rcx + 4]
add rcx, rax
mov dl, 0xa
call fcn.140034b90
movzx edx, al
mov rcx, rbx
call fcn.140034620
mov rcx, rbx
call fcn.14002ddd0
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 0x140061fc6
cmp dword [rbp - 0x14], 4
je 0x140061ef2
inc ebx
cmp ebx, 0x3c
jb 0x140061eb1
jmp 0x140061efb
cmp ebx, 0x3c
jb 0x140061fb7
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 0x140061f46
mov rax, qword [rax]
mov rdx, rax
lea rcx, [0x1404abb40]
call fcn.1400347d0
lea rdx, [rbp + 0x90]
cmp qword [rbp + 0xa8], 0xf
cmova rdx, qword [rbp + 0x90]
mov r8, qword [rbp + 0xa0]
mov rcx, rax
call fcn.1400347d0
mov rbx, rax
mov rcx, qword [rax]
movsxd rcx, dword [rcx + 4]
add rcx, rax
mov dl, 0xa
call fcn.140034b90
movzx edx, al
mov rcx, rbx
call fcn.140034620
mov rcx, rbx
call fcn.14002ddd0
nop
lea rcx, [rsp + 0x70]
call fcn.140016400
nop
lea rcx, [rbp + 0x90]
jmp 0x140061fff
mov ecx, 0x2710
call qword [sym.imp.KERNEL32.dll_Sleep]
mov bl, 1
jmp 0x140062006
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.14005f630
nop
lea rcx, [rsp + 0x48]
call fcn.140016400
xor bl, bl
mov rcx, qword [rbp + 0x48]
test rcx, rcx
je 0x1400620bd
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 0x140062040
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 0x1400620ab
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 0x140062080
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.1402b5c00
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.1402b463c
nop
call fcn.140016040
nop
call fcn.140016040
nop
call fcn.1402b463c
int3