Function at 0x1400628f8
Capabilities:
Delete service
Stop service

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], r12
mov qword [rax + 0x20], r13
push rbp
push r14
push r15
lea rbp, [rax - 0xf68]
mov eax, 0x1050
call fcn.14014c780
sub rsp, rax
mov rax, qword [0x14017b608]
xor rax, rsp
mov qword [rbp + 0xf40], rax
call fcn.14006273c
test eax, eax
je 0x140062cb1
xor edx, edx
xor ecx, ecx
mov r8d, 0xf003f
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
nop dword [rax + rax]
mov r15, rax
test rax, rax
jne 0x140062a18
xor edx, edx
call fcn.1400876d4
xor ebx, ebx
lea r14d, [r15 + 1]
mov esi, 0x400
test rax, rax
je 0x1400629b1
test ebx, ebx
jne 0x1400629f4
mov r9d, esi
lea r8, [rsp + 0x40]
mov edx, 0xd80a
mov rcx, rax
call qword [sym.imp.USER32.dll_LoadStringW]
nop dword [rax + rax]
mov edx, r14d
mov ebx, eax
call fcn.1400876d4
inc r14d
test rax, rax
jne 0x14006297b
test ebx, ebx
jne 0x1400629f4
lea r8, str.Could_not_open_Service_Manager
mov rdx, rsi
lea rcx, [rsp + 0x40]
call qword [sym.imp.msvcrt.dll_wcscpy_s]
nop dword [rax + rax]
test eax, eax
je 0x1400629f4
cmp eax, 0xc
je 0x140062cfd
cmp eax, 0x16
je 0x140062cf2
cmp eax, 0x22
je 0x140062cf2
cmp eax, 0x50
jne 0x140062ce7
lea r8, [0x14017c3f8]
lea rdx, [rsp + 0x40]
xor r9d, r9d
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxW]
nop dword [rax + rax]
xor eax, eax
jmp 0x140062cb6
lea r14, [0x14017c3f8]
mov r8d, 0x10020
mov rdx, r14
mov rcx, r15
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
nop dword [rax + rax]
mov r12, rax
test rax, rax
jne 0x140062aeb
mov rcx, r15
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
nop dword [rax + rax]
xor edx, edx
call fcn.1400876d4
xor ebx, ebx
lea r15d, [r12 + 1]
mov esi, 0x400
test rax, rax
je 0x140062aa0
test ebx, ebx
jne 0x140062ae3
mov r9d, esi
lea r8, [rsp + 0x40]
mov edx, 0xd80c
mov rcx, rax
call qword [sym.imp.USER32.dll_LoadStringW]
nop dword [rax + rax]
mov edx, r15d
mov ebx, eax
call fcn.1400876d4
inc r15d
test rax, rax
jne 0x140062a6a
test ebx, ebx
jne 0x140062ae3
lea r8, str.Could_not_open_service
mov rdx, rsi
lea rcx, [rsp + 0x40]
call qword [sym.imp.msvcrt.dll_wcscpy_s]
nop dword [rax + rax]
test eax, eax
je 0x140062ae3
cmp eax, 0xc
je 0x140062d1e
cmp eax, 0x16
je 0x140062d13
cmp eax, 0x22
je 0x140062d13
cmp eax, 0x50
jne 0x140062d08
mov r8, r14
jmp 0x1400629fb
lea r8, [rsp + 0x20]
mov edx, 1
mov rcx, r12
call qword [sym.imp.ADVAPI32.dll_ControlService]
nop dword [rax + rax]
mov esi, 0x400
test eax, eax
jne 0x140062bde
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
cmp eax, 0x426
je 0x140062bde
cmp eax, 0x425
jne 0x140062b3a
cmp dword [rsp + 0x24], 3
je 0x140062bde
xor edx, edx
call fcn.1400876d4
xor ebx, ebx
lea r13d, [rbx + 1]
test rax, rax
je 0x140062b82
test ebx, ebx
jne 0x140062bc5
mov r9d, esi
lea r8, [rsp + 0x40]
mov edx, 0xd80e
mov rcx, rax
call qword [sym.imp.USER32.dll_LoadStringW]
nop dword [rax + rax]
mov edx, r13d
mov ebx, eax
call fcn.1400876d4
inc r13d
test rax, rax
jne 0x140062b4c
test ebx, ebx
jne 0x140062bc5
lea r8, str.Could_not_stop_service
mov rdx, rsi
lea rcx, [rsp + 0x40]
call qword [sym.imp.msvcrt.dll_wcscpy_s]
nop dword [rax + rax]
test eax, eax
je 0x140062bc5
cmp eax, 0xc
je 0x140062d3f
cmp eax, 0x16
je 0x140062d34
cmp eax, 0x22
je 0x140062d34
cmp eax, 0x50
jne 0x140062d29
xor r9d, r9d
lea rdx, [rsp + 0x40]
mov r8, r14
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxW]
nop dword [rax + rax]
mov rcx, r12
call qword [sym.imp.ADVAPI32.dll_DeleteService]
nop dword [rax + rax]
mov rcx, r12
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
nop dword [rax + rax]
mov rcx, r15
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
nop dword [rax + rax]
test ebx, ebx
jne 0x140062cb1
xor edx, edx
call fcn.1400876d4
lea r15d, [rbx + 1]
test rax, rax
je 0x140062c5d
test ebx, ebx
jne 0x140062ca2
mov r9d, esi
lea r8, [rbp + 0x740]
mov edx, 0xd80d
mov rcx, rax
call qword [sym.imp.USER32.dll_LoadStringW]
nop dword [rax + rax]
mov edx, r15d
mov ebx, eax
call fcn.1400876d4
inc r15d
test rax, rax
jne 0x140062c25
test ebx, ebx
jne 0x140062ca2
lea r8, str.Could_not_delete_service
mov rdx, rsi
lea rcx, [rbp + 0x740]
call qword [sym.imp.msvcrt.dll_wcscpy_s]
nop dword [rax + rax]
test eax, eax
je 0x140062ca2
cmp eax, 0xc
je 0x140062d60
cmp eax, 0x16
je 0x140062d55
cmp eax, 0x22
je 0x140062d55
cmp eax, 0x50
jne 0x140062d4a
mov r8, r14
lea rdx, [rbp + 0x740]
jmp 0x140062a00
mov eax, 1
mov rcx, qword [rbp + 0xf40]
xor rcx, rsp
call fcn.14014bb60
lea r11, [rsp + 0x1050]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov r12, qword [r11 + 0x30]
mov r13, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
mov ecx, 0x80004005
call fcn.140001950
int3
mov ecx, 0x80070057
call fcn.140001950
int3
mov ecx, 0x8007000e
call fcn.140001950
int3
mov ecx, 0x80004005
call fcn.140001950
int3
mov ecx, 0x80070057
call fcn.140001950
int3
mov ecx, 0x8007000e
call fcn.140001950
int3
mov ecx, 0x80004005
call fcn.140001950
int3
mov ecx, 0x80070057
call fcn.140001950
int3
mov ecx, 0x8007000e
call fcn.140001950
int3
mov ecx, 0x80004005
call fcn.140001950
int3
mov ecx, 0x80070057
call fcn.140001950
int3
mov ecx, 0x8007000e
call fcn.140001950
int3