Function at 0x1400040b0
Capabilities:
Stop service

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rsi
push rdi
sub rsp, 0x3a8
mov rdx, qword [rsp + 0x3c0]
lea rcx, str.StopService:_Try_stop_MyServise___s_
call fcn.140002fc0
mov dword [rsp + 0x24], 0
mov dword [rsp + 0x34], 0
lea rax, [rsp + 0x60]
mov rdi, rax
xor eax, eax
mov ecx, 0x104
rep stosb byte [rdi], al
mov rax, qword [rsp + 0x3c0]
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x60]
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x48]
movzx eax, byte [rax]
mov byte [rsp + 0x20], al
mov rax, qword [rsp + 0x40]
movzx ecx, byte [rsp + 0x20]
mov byte [rax], cl
mov rax, qword [rsp + 0x48]
inc rax
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x40]
inc rax
mov qword [rsp + 0x40], rax
cmp byte [rsp + 0x20], 0
jne 0x140004119
cmp qword [rsp + 0x3c8], 0
jne 0x14000419f
mov r8d, 0x20
xor edx, edx
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov qword [rsp + 0x3c8], rax
cmp qword [rsp + 0x3c8], 0
jne 0x14000419d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.___StopService:_OpenSCManager_failed__0x_X_
call fcn.140002fc0
mov eax, dword [rsp + 0x24]
jmp 0x140004383
jmp 0x1400041a7
mov dword [rsp + 0x34], 1
lea rdx, [rsp + 0x60]
lea rcx, str.StopService:_Try_OpenService_MyServise___s_
call fcn.140002fc0
mov r8d, 0x20
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x3c8]
call qword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov qword [rsp + 0x38], rax
cmp qword [rsp + 0x38], 0
jne 0x14000423f
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
lea rdx, [rsp + 0x60]
lea rcx, str.___StopService:__OpenService_to_stop___s__failed__0x_X_
call fcn.140002fc0
mov r8d, 0x40
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x3c8]
call qword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov qword [rsp + 0x38], rax
cmp qword [rsp + 0x38], 0
jne 0x14000423f
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
lea rdx, [rsp + 0x60]
lea rcx, str.___StopService:__OpenService_to_Pause___s__failed__0x_X_
call fcn.140002fc0
xor eax, eax
jmp 0x140004383
mov rdx, qword [rsp + 0x3c0]
lea rcx, str.StopService:_Try_ControlService_MyServise___s_
call fcn.140002fc0
lea r8, [rsp + 0x170]
mov edx, 1
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x14000428d
lea rdx, [rsp + 0x60]
lea rcx, str.__StopService:__Service___s__STOPPED
call fcn.140002fc0
mov dword [rsp + 0x24], 1
jmp 0x14000435f
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea r8, [rsp + 0x60]
mov edx, eax
lea rcx, str.____Error_StopService:__0x_X_Stop_Service___s__n
call fcn.140002fc0
lea rax, [rsp + 0x60]
mov qword [rsp + 0x28], rax
dec qword [rsp + 0x28]
inc qword [rsp + 0x28]
mov rax, qword [rsp + 0x28]
cmp byte [rax], 0
jne 0x1400042b5
mov rax, qword [rsp + 0x28]
lea rcx, [0x14000a540]
mov rdi, rax
mov rsi, rcx
mov ecx, 5
rep movsb byte [rdi], byte [rsi]
mov r8d, 0x104
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x190]
call qword [sym.imp.msvcrt.dll_mbstowcs]
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x190]
call fcn.140003590
test eax, eax
je 0x14000435f
mov r8d, dword [rsp + 0x30]
xor edx, edx
mov ecx, 1
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x14000435f
xor edx, edx
mov rcx, qword [rsp + 0x50]
call qword [0x140018088]
test eax, eax
jl 0x140004354
mov edx, dword [rsp + 0x30]
lea rcx, str.StopService:_Terminate__d____OK
call fcn.140002fc0
mov dword [rsp + 0x24], 1
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
cmp dword [rsp + 0x34], 0
jne 0x14000437f
mov rcx, qword [rsp + 0x3c8]
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, dword [rsp + 0x24]
add rsp, 0x3a8
pop rdi
pop rsi
ret