Function at 0x140036440
Capabilities:
Start service

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x240]
sub rsp, 0x340
mov rax, qword [0x1403ceac0]
xor rax, rsp
mov qword [rbp + 0x230], rax
mov rdi, rdx
mov qword [rsp + 0x48], rdx
xor r12d, r12d
mov r15d, r12d
mov rbx, rdx
cmp qword [rdx + 0x18], 8
jb 0x14003648d
mov rbx, qword [rdx]
xor edx, edx
xor ecx, ecx
mov r8d, 0xf003f
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov r14, rax
test rax, rax
jne 0x1400364af
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x1400364de
mov r8d, 0xf01ff
mov rdx, rbx
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov r15, rax
test rax, rax
jne 0x140036628
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test esi, esi
je 0x14003662b
mov qword [rbp - 0x58], r12
mov qword [rbp - 0x50], 7
mov word [rbp - 0x68], r12w
mov qword [rbp - 0x38], r12
mov qword [rbp - 0x30], 7
mov word [rbp - 0x48], r12w
mov ebx, 1
mov edx, ebx
lea rcx, [rbp - 0x20]
call fcn.140029460
nop
nop dword [rax]
xor eax, eax
lock cmpxchg dword [0x1403e3090], ebx
test eax, eax
je 0x14003653d
cmp eax, 1
jne 0x14003655b
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x140036520
call fcn.14002b3e0
mov qword [0x1403e3098], rax
neg rax
sbb ecx, ecx
and ecx, 2
mov eax, ebx
lock cmpxchg dword [0x1403e3090], ecx
mov rcx, qword [0x1403e3098]
mov qword [rbp + 0xd8], rcx
add rcx, 0x28
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rax, qword [rbp + 0xd8]
mov dword [rax + 8], 4
mov rax, qword [rbp + 0xd8]
mov dword [rax + 0x10], 0x158
lea rbx, str.ManageMcServices::CMcService::StartMcService
mov qword [rax + 0x18], rbx
lea rdx, str.E:BT3304243d_d858_4efc_85b8_b3526d9f21d2PEFAppSrcPEFCommonCmcService.h
mov qword [rax + 0x20], rdx
mov dword [rbp - 0x70], 0x158
mov r8d, 0x4d
lea rcx, [rbp - 0x68]
call fcn.14002b640
mov dword [rbp - 0x28], 4
mov r8d, 0x2c
mov rdx, rbx
lea rcx, [rbp - 0x48]
call fcn.14002b640
nop
mov r8, rdi
cmp qword [rdi + 0x18], 8
jb 0x1400365e2
mov r8, qword [rdi]
mov r9d, esi
lea rdx, str.Manage_Service:_Failed_to_open_service:__s__error__d_
lea rcx, [rsp + 0x50]
call fcn.1400270c0
nop
mov rdx, rax
lea rcx, [rbp - 0x70]
call fcn.14002be60
nop
lea rcx, [rsp + 0x50]
call fcn.14002ce60
nop
lea rcx, [rbp - 0x70]
call fcn.140028cd0
nop
mov rcx, rdi
call fcn.14002ce60
xor eax, eax
jmp 0x1400367d7
mov esi, r12d
mov rdx, rdi
lea rcx, [rsp + 0x28]
call fcn.14002db20
mov rdx, rax
call fcn.140036090
cmp eax, 1
jne 0x1400367ba
xor r8d, r8d
xor edx, edx
mov rcx, r15
call qword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
jne 0x1400367ba
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov qword [rbp + 0xf8], r12
mov qword [rbp + 0x100], 7
mov word [rbp + 0xe8], r12w
mov qword [rbp + 0x118], r12
mov qword [rbp + 0x120], 7
mov word [rbp + 0x108], r12w
mov ebx, 1
mov edx, ebx
lea rcx, [rbp + 0x130]
call fcn.140029460
nop
nop
xor eax, eax
lock cmpxchg dword [0x1403e3090], ebx
test eax, eax
je 0x1400366cd
cmp eax, 1
jne 0x1400366eb
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x1400366b0
call fcn.14002b3e0
mov qword [0x1403e3098], rax
neg rax
sbb ecx, ecx
and ecx, 2
mov eax, ebx
lock cmpxchg dword [0x1403e3090], ecx
mov rcx, qword [0x1403e3098]
mov qword [rbp + 0x228], rcx
add rcx, 0x28
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rax, qword [rbp + 0x228]
mov dword [rax + 8], 4
mov rax, qword [rbp + 0x228]
mov dword [rax + 0x10], pe_nt_image_headers64
lea rbx, str.ManageMcServices::CMcService::StartMcService
mov qword [rax + 0x18], rbx
lea rdx, str.E:BT3304243d_d858_4efc_85b8_b3526d9f21d2PEFAppSrcPEFCommonCmcService.h
mov qword [rax + 0x20], rdx
mov dword [rbp + 0xe0], pe_nt_image_headers64
mov r8d, 0x4d
lea rcx, [rbp + 0xe8]
call fcn.14002b640
mov dword [rbp + 0x128], 4
mov r8d, 0x2c
mov rdx, rbx
lea rcx, [rbp + 0x108]
call fcn.14002b640
nop
mov r8, rdi
cmp qword [rdi + 0x18], 8
jb 0x14003677e
mov r8, qword [rdi]
mov r9d, esi
lea rdx, str.Manage_Service:_Failed_to_start_service:__s__error__d_
lea rcx, [rsp + 0x70]
call fcn.1400270c0
nop
mov rdx, rax
lea rcx, [rbp + 0xe0]
call fcn.14002be60
nop
lea rcx, [rsp + 0x70]
call fcn.14002ce60
nop
lea rcx, [rbp + 0xe0]
call fcn.140028cd0
mov rcx, r15
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
nop
mov rcx, rdi
call fcn.14002ce60
mov eax, esi
mov rcx, qword [rbp + 0x230]
xor rcx, rsp
call fcn.140296f70
lea r11, [rsp + 0x340]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret