Function at 0x14003f014
Capabilities:
Create process on windows
Delete service
Get common file path
Query service configuration
Query service status

Disassembly:
mov rax, rsp
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x270
mov qword [rsp + 0xa0], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov rax, qword [0x14010bfc0]
xor rax, rsp
mov qword [rsp + 0x260], rax
mov r13, rdx
mov r15, rcx
lea r8, str.CUninstaller::DeleteServices__
mov edx, 2
lea rcx, [0x14010f570]
call fcn.140001000
mov byte [rsp + 0x150], 0
xor edx, edx
mov r8d, 0x103
lea rcx, [rsp + 0x151]
call fcn.1400988d0
mov edx, 0x104
lea rcx, [rsp + 0x150]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
xor edx, edx
xor ecx, ecx
mov r8d, 0xf003f
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov r14, rax
test rax, rax
je 0x14003f0bb
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x14003f0f2
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
test eax, eax
je 0x14003f0f2
mov ecx, eax
call fcn.14004d8f0
mov r9, rax
lea r8, str.OpenSCManager
lea rdx, str._s_failed_with__s_n
lea rcx, [0x14010f570]
call fcn.14004b7ec
mov eax, ebx
jmp 0x14003fb33
mov rax, qword [r13 + 0x28]
mov rcx, qword [rax]
mov qword [rsp + 0x68], rcx
mov rax, qword [r13]
mov qword [rsp + 0x60], rax
movaps xmm0, xmmword [rsp + 0x60]
movdqa xmmword [rsp + 0x60], xmm0
mov rdi, qword [rsp + 0x60]
mov rbx, qword [rsp + 0x68]
mov rsi, qword [r13 + 0x28]
test rdi, rdi
je 0x14003f12b
cmp rdi, qword [r13]
je 0x14003f130
call fcn.14009861c
cmp rbx, rsi
je 0x14003fb10
test rdi, rdi
jne 0x14003f148
call fcn.14009861c
xor r11d, r11d
jmp 0x14003f14b
mov r11, qword [rdi]
cmp rbx, qword [r11 + 0x28]
jne 0x14003f156
call fcn.14009861c
cmp qword [rbx + 0x28], 0
jne 0x14003f166
lea r12, [0x1400c49dc]
jmp 0x14003f1db
test rdi, rdi
jne 0x14003f175
call fcn.14009861c
xor r11d, r11d
jmp 0x14003f178
mov r11, qword [rdi]
cmp rbx, qword [r11 + 0x28]
jne 0x14003f183
call fcn.14009861c
lea r8, [rbx + 0x10]
cmp qword [r8 + 0x20], 0x10
jb 0x14003f194
mov rdx, qword [r8 + 8]
jmp 0x14003f198
lea rdx, [r8 + 8]
lea rcx, [rsp + 0x60]
call fcn.14000c3fc
mov r12, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x60]
cmp rsi, 0xfffffffffffffffc
je 0x14003f1db
test rsi, rsi
jne 0x14003f1bc
call fcn.14009861c
cmp qword [rsi + 0x20], 0x10
jb 0x14003f1c9
mov rcx, qword [rsi + 8]
jmp 0x14003f1cd
lea rcx, [rsi + 8]
add rcx, qword [rsi + 0x18]
cmp r12, rcx
jb 0x14003f1db
call fcn.14009861c
test rdi, rdi
jne 0x14003f1ea
call fcn.14009861c
xor r11d, r11d
jmp 0x14003f1ed
mov r11, qword [rdi]
cmp rbx, qword [r11 + 0x28]
jne 0x14003f1f8
call fcn.14009861c
cmp qword [rbx + 0x28], 0
jne 0x14003f20b
lea rbp, [0x1400c49dc]
jmp 0x14003f28d
test rdi, rdi
jne 0x14003f21a
call fcn.14009861c
xor r11d, r11d
jmp 0x14003f21d
mov r11, qword [rdi]
cmp rbx, qword [r11 + 0x28]
jne 0x14003f228
call fcn.14009861c
lea r8, [rbx + 0x10]
cmp qword [r8 + 0x20], 0x10
jb 0x14003f239
mov rdx, qword [r8 + 8]
jmp 0x14003f23d
lea rdx, [r8 + 8]
lea rcx, [rsp + 0x90]
call fcn.14000c3fc
mov rbp, qword [rsp + 0x98]
mov rsi, qword [rsp + 0x90]
cmp rsi, 0xfffffffffffffffc
je 0x14003f28d
test rsi, rsi
jne 0x14003f26a
call fcn.14009861c
cmp qword [rsi + 0x20], 0x10
jb 0x14003f277
mov rcx, qword [rsi + 8]
jmp 0x14003f27b
lea rcx, [rsi + 8]
mov rax, qword [rsi + 0x18]
lea rdx, [rcx + rax]
cmp rbp, rdx
jb 0x14003f28d
call fcn.14009861c
mov rcx, r12
call fcn.1400980d0
mov esi, 1
lea rdx, [rsi + rax]
mov rcx, rbp
call fcn.1400990e0
test rdi, rdi
jne 0x14003f2b5
call fcn.14009861c
xor r11d, r11d
jmp 0x14003f2b8
mov r11, qword [rdi]
cmp rbx, qword [r11 + 0x28]
jne 0x14003f2c3
call fcn.14009861c
cmp qword [rbx + 0x30], 0x10
jb 0x14003f2d0
mov rcx, qword [rbx + 0x18]
jmp 0x14003f2d4
lea rcx, [rbx + 0x18]
lea rdx, str..EXE
call fcn.140099250
test rax, rax
je 0x14003f4f5
mov ebp, 0x68
mov r8, rbp
xor edx, edx
lea rcx, [rsp + 0xb0]
call fcn.1400988d0
mov dword [rsp + 0xb0], ebp
and qword [rsp + 0x70], 0
and qword [rsp + 0x78], 0
and dword [rsp + 0x80], 0
and dword [rsp + 0x84], 0
test rdi, rdi
jne 0x14003f332
call fcn.14009861c
xor r11d, r11d
jmp 0x14003f335
mov r11, qword [rdi]
cmp rbx, qword [r11 + 0x28]
jne 0x14003f340
call fcn.14009861c
cmp qword [rbx + 0x30], 0x10
jb 0x14003f34d
mov rdx, qword [rbx + 0x18]
jmp 0x14003f351
lea rdx, [rbx + 0x18]
lea rax, [rsp + 0x70]
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0xb0]
mov qword [rsp + 0x40], rax
and qword [rsp + 0x38], 0
and qword [rsp + 0x30], 0
and dword [rsp + 0x28], 0
and dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x14003f3db
test rdi, rdi
jne 0x14003f39f
call fcn.14009861c
xor r11d, r11d
jmp 0x14003f3a2
mov r11, qword [rdi]
cmp rbx, qword [r11 + 0x28]
jne 0x14003f3ad
call fcn.14009861c
cmp qword [rbx + 0x30], 0x10
jb 0x14003f3ba
mov r9, qword [rbx + 0x18]
jmp 0x14003f3be
lea r9, [rbx + 0x18]
lea r8, str.Could_not_launch__s_n
mov edx, 0x400
lea rcx, [0x14010f570]
call fcn.140001000
jmp 0x14003faeb
mov edx, 0x7530
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x14003f43d
test rdi, rdi
jne 0x14003f401
call fcn.14009861c
xor r11d, r11d
jmp 0x14003f404
mov r11, qword [rdi]
cmp rbx, qword [r11 + 0x28]
jne 0x14003f40f
call fcn.14009861c
cmp qword [rbx + 0x30], 0x10
jb 0x14003f41c
mov r9, qword [rbx + 0x18]
jmp 0x14003f420
lea r9, [rbx + 0x18]
lea r8, str.Launched___s__and_timed_out_and_failed_to_finish_n
mov edx, 0x400
lea rcx, [0x14010f570]
call fcn.140001000
jmp 0x14003f4cc
test eax, eax
je 0x14003f489
test rdi, rdi
jne 0x14003f450
call fcn.14009861c
xor r11d, r11d
jmp 0x14003f453
mov r11, qword [rdi]
cmp rbx, qword [r11 + 0x28]
jne 0x14003f45e
call fcn.14009861c
cmp qword [rbx + 0x30], 0x10
jb 0x14003f46b
mov r9, qword [rbx + 0x18]
jmp 0x14003f46f
lea r9, [rbx + 0x18]
lea r8, str.Launched___s__and_failed_to_finish_n
mov edx, 0x400
lea rcx, [0x14010f570]
call fcn.140001000
jmp 0x14003f4cc
test rdi, rdi
jne 0x14003f498
call fcn.14009861c
xor r11d, r11d
jmp 0x14003f49b
mov r11, qword [rdi]
cmp rbx, qword [r11 + 0x28]
jne 0x14003f4a6
call fcn.14009861c
cmp qword [rbx + 0x30], 0x10
jb 0x14003f4b3
mov r9, qword [rbx + 0x18]
jmp 0x14003f4b7
lea r9, [rbx + 0x18]
lea r8, str.Successfully_Launched___s
mov edx, esi
lea rcx, [0x14010f570]
call fcn.140001000
mov rcx, qword [rsp + 0x70]
test rcx, rcx
je 0x14003f4dc
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x78]
test rcx, rcx
je 0x14003faeb
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x14003faeb
mov qword [rsp + 0x140], reloc.OLEAUT32.dll_SafeArrayDestroy
and qword [rsp + 0x138], 0
mov byte [rsp + 0x128], 0
test rdi, rdi
jne 0x14003f521
call fcn.14009861c
xor r11d, r11d
jmp 0x14003f524
mov r11, qword [rdi]
cmp rbx, qword [r11 + 0x28]
jne 0x14003f52f
call fcn.14009861c
cmp qword [rbx + 0x30], 0x10
jb 0x14003f53c
mov rdx, qword [rbx + 0x18]
jmp 0x14003f540
lea rdx, [rbx + 0x18]
mov r8d, 0x10025
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov rbp, rax
test rax, rax
je 0x14003f9bd
and dword [rsp + 0x50], 0
xor r12d, r12d
lea r9, [rsp + 0x50]
xor r8d, r8d
xor edx, edx
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_QueryServiceConfigA]
test eax, eax
jne 0x14003f99e
lea rcx, [rsp + 0x120]
call fcn.14004d614
cmp eax, 0x7a
je 0x14003f5fa
lea rsi, [rsp + 0x128]
cmp qword [rsp + 0x140], 0x10
cmovae rsi, qword [rsp + 0x128]
test rdi, rdi
jne 0x14003f5b9
call fcn.14009861c
xor r11d, r11d
jmp 0x14003f5bc
mov r11, qword [rdi]
cmp rbx, qword [r11 + 0x28]
jne 0x14003f5c7
call fcn.14009861c
cmp qword [rbx + 0x30], 0x10
jb 0x14003f5d4
mov r9, qword [rbx + 0x18]
jmp 0x14003f5d8
lea r9, [rbx + 0x18]
mov qword [rsp + 0x20], rsi
lea r8, str.QueryServiceConfig__s__failed:__s_n
mov edx, 0x400
lea rcx, [0x14010f570]
call fcn.140001000
jmp 0x14003f99e
mov ecx, dword [rsp + 0x50]
call fcn.140061284
mov r12, rax
test rax, rax
jne 0x14003f623
lea rdx, str.Not_enough_memory_n
lea rcx, [0x14010f570]
call fcn.14004b7ec
jmp 0x14003f99e
lea r9, [rsp + 0x50]
mov r8d, dword [rsp + 0x50]
mov rdx, rax
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_QueryServiceConfigA]
test eax, eax
jne 0x14003f6b4
lea rcx, [rsp + 0x120]
call fcn.14004d614
lea rsi, [rsp + 0x128]
cmp qword [rsp + 0x140], 0x10
cmovae rsi, qword [rsp + 0x128]
test rdi, rdi
jne 0x14003f673
call fcn.14009861c
xor r11d, r11d
jmp 0x14003f676
mov r11, qword [rdi]
cmp rbx, qword [r11 + 0x28]
jne 0x14003f681
call fcn.14009861c
cmp qword [rbx + 0x30], 0x10
jb 0x14003f68e
mov r9, qword [rbx + 0x18]
jmp 0x14003f692
lea r9, [rbx + 0x18]
mov qword [rsp + 0x20], rsi
lea r8, str.QueryServiceConfig__s__failed:__s_n
mov edx, 0x400
lea rcx, [0x14010f570]
call fcn.140001000
jmp 0x14003f99e
mov rcx, qword [r12 + 0x10]
call fcn.1400980d0
lea rdx, [rsi + rax]
mov rcx, qword [r12 + 0x10]
call fcn.1400990e0
lea rdx, [rsp + 0x70]
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
jne 0x14003f75a
lea rcx, [rsp + 0x120]
call fcn.14004d614
lea rsi, [rsp + 0x128]
cmp qword [rsp + 0x140], 0x10
cmovae rsi, qword [rsp + 0x128]
test rdi, rdi
jne 0x14003f714
call fcn.14009861c
xor r11d, r11d
jmp 0x14003f717
mov r11, qword [rdi]
cmp rbx, qword [r11 + 0x28]
jne 0x14003f722
call fcn.14009861c
cmp qword [rbx + 0x30], 0x10
jb 0x14003f72f
mov r9, qword [rbx + 0x18]
jmp 0x14003f733
lea r9, [rbx + 0x18]
mov qword [rsp + 0x20], rsi
lea r8, str.Cannot_query_status_for__s_service.__s_n
mov edx, 0x400
lea rcx, [0x14010f570]
call fcn.140001000
mov esi, 1
jmp 0x14003f87a
test rdi, rdi
jne 0x14003f769
call fcn.14009861c
xor r11d, r11d
jmp 0x14003f76c
mov r11, qword [rdi]
cmp rbx, qword [r11 + 0x28]
jne 0x14003f777
call fcn.14009861c
cmp qword [rbx + 0x30], 0x10
jb 0x14003f784
mov r9, qword [rbx + 0x18]
jmp 0x14003f788
lea r9, [rbx + 0x18]
lea r8, str.Successfully_Queried_status_for_the_Service___s
mov edx, 0x80
lea rcx, [0x14010f570]
call fcn.140001000
cmp dword [rsp + 0x74], esi
je 0x14003f87a
lea r8, [rsp + 0x70]
mov edx, esi
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
jne 0x14003f837
lea rcx, [rsp + 0x120]
call fcn.14004d614
lea rsi, [rsp + 0x128]
cmp qword [rsp + 0x140], 0x10
cmovae rsi, qword [rsp + 0x128]
test rdi, rdi
jne 0x14003f7f4
call fcn.14009861c
xor r11d, r11d
jmp 0x14003f7f7
mov r11, qword [rdi]
cmp rbx, qword [r11 + 0x28]
jne 0x14003f802
call fcn.14009861c
cmp qword [rbx + 0x30], 0x10
jb 0x14003f80f
mov r9, qword [rbx + 0x18]
jmp 0x14003f813
lea r9, [rbx + 0x18]
mov qword [rsp + 0x20], rsi
lea r8, str.Cannot_stop__s_service.__s__n
mov edx, 0x400
lea rcx, [0x14010f570]
call fcn.140001000
mov esi, 1
jmp 0x14003f87a
test rdi, rdi
jne 0x14003f846
call fcn.14009861c
xor r11d, r11d
jmp 0x14003f849
mov r11, qword [rdi]
cmp rbx, qword [r11 + 0x28]
jne 0x14003f854
call fcn.14009861c
cmp qword [rbx + 0x30], 0x10
jb 0x14003f861
mov r9, qword [rbx + 0x18]
jmp 0x14003f865
lea r9, [rbx + 0x18]
lea r8, str._s_service_has_been_stopped._n
mov edx, esi
lea rcx, [0x14010f570]
call fcn.140001000
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
jne 0x14003f95b
lea rcx, [rsp + 0x120]
call fcn.14004d614
cmp eax, 0x430
jne 0x14003f8f4
mov rax, qword [r15 + 0x88]
mov dword [rax + 0x7c8], esi
test rdi, rdi
jne 0x14003f8bb
call fcn.14009861c
xor r11d, r11d
jmp 0x14003f8be
mov r11, qword [rdi]
cmp rbx, qword [r11 + 0x28]
jne 0x14003f8c9
call fcn.14009861c
cmp qword [rbx + 0x30], 0x10
jb 0x14003f8d6
mov r9, qword [rbx + 0x18]
jmp 0x14003f8da
lea r9, [rbx + 0x18]
lea r8, str.Service_will_be_removed_on_next_reboot___s_n
mov edx, esi
lea rcx, [0x14010f570]
call fcn.140001000
jmp 0x14003f99e
lea rsi, [rsp + 0x128]
cmp qword [rsp + 0x140], 0x10
cmovae rsi, qword [rsp + 0x128]
test rdi, rdi
jne 0x14003f91d
call fcn.14009861c
xor r11d, r11d
jmp 0x14003f920
mov r11, qword [rdi]
cmp rbx, qword [r11 + 0x28]
jne 0x14003f92b
call fcn.14009861c
cmp qword [rbx + 0x30], 0x10
jb 0x14003f938
mov r9, qword [rbx + 0x18]
jmp 0x14003f93c
lea r9, [rbx + 0x18]
mov qword [rsp + 0x20], rsi
lea r8, str.Cannot_remove__s_service.__s_n
mov edx, 0x400
lea rcx, [0x14010f570]
call fcn.140001000
jmp 0x14003f99e
test rdi, rdi
jne 0x14003f96a
call fcn.14009861c
xor r11d, r11d
jmp 0x14003f96d
mov r11, qword [rdi]
cmp rbx, qword [r11 + 0x28]
jne 0x14003f978
call fcn.14009861c
cmp qword [rbx + 0x30], 0x10
jb 0x14003f985
mov r9, qword [rbx + 0x18]
jmp 0x14003f989
lea r9, [rbx + 0x18]
lea r8, str.Removed_service___s_n
mov edx, esi
lea rcx, [0x14010f570]
call fcn.140001000
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test r12, r12
je 0x14003fad3
mov rcx, r12
call fcn.14006127c
jmp 0x14003fad3
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x424
jne 0x14003fa12
test rdi, rdi
jne 0x14003f9d9
call fcn.14009861c
xor r11d, r11d
jmp 0x14003f9dc
mov r11, qword [rdi]
cmp rbx, qword [r11 + 0x28]
jne 0x14003f9e7
call fcn.14009861c
cmp qword [rbx + 0x30], 0x10
jb 0x14003f9f4
mov r9, qword [rbx + 0x18]
jmp 0x14003f9f8
lea r9, [rbx + 0x18]
lea r8, str.Use_service_names_that_exist_but_not_display_names___s__._n
mov edx, esi
lea rcx, [0x14010f570]
call fcn.140001000
jmp 0x14003fad3
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x14003fa62
test rdi, rdi
jne 0x14003fa2c
call fcn.14009861c
xor r11d, r11d
jmp 0x14003fa2f
mov r11, qword [rdi]
cmp rbx, qword [r11 + 0x28]
jne 0x14003fa3a
call fcn.14009861c
cmp qword [rbx + 0x30], 0x10
jb 0x14003fa47
mov r9, qword [rbx + 0x18]
jmp 0x14003fa4b
lea r9, [rbx + 0x18]
lea r8, str.Access_is_not_allowed_on_Service___s__._n
mov edx, esi
lea rcx, [0x14010f570]
call fcn.140001000
jmp 0x14003fad3
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7b
jne 0x14003fab2
test rdi, rdi
jne 0x14003fa7c
call fcn.14009861c
xor r11d, r11d
jmp 0x14003fa7f
mov r11, qword [rdi]
cmp rbx, qword [r11 + 0x28]
jne 0x14003fa8a
call fcn.14009861c
cmp qword [rbx + 0x30], 0x10
jb 0x14003fa97
mov r9, qword [rbx + 0x18]
jmp 0x14003fa9b
lea r9, [rbx + 0x18]
lea r8, str.The_name_of_the_Service__s_is_Invalid._n
mov edx, esi
lea rcx, [0x14010f570]
call fcn.140001000
jmp 0x14003fad3
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 6
jne 0x14003fad3
lea r8, str.The_handle_to_the_Service_Manager_is_Invalid._n
mov edx, esi
lea rcx, [0x14010f570]
call fcn.140001000
nop
cmp qword [rsp + 0x140], 0x10
jb 0x14003faeb
mov rcx, qword [rsp + 0x128]
call fcn.14006127c
test rdi, rdi
jne 0x14003fafa
call fcn.14009861c
xor r11d, r11d
jmp 0x14003fafd
mov r11, qword [rdi]
cmp rbx, qword [r11 + 0x28]
jne 0x14003fb08
call fcn.14009861c
mov rbx, qword [rbx]
jmp 0x14003f11c
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
lea r8, str.CUninstaller::DeleteServices__
mov edx, 4
lea rcx, [0x14010f570]
call fcn.140001000
xor eax, eax
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.140061100
mov rbx, qword [rsp + 0x2c0]
add rsp, 0x270
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret