Function at 0x14005fd70
Capabilities:
Create service

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
push r14
push r15
sub rsp, 0xa90
mov rax, qword [0x140172608]
xor rax, rsp
mov qword [rsp + 0xa80], rax
mov esi, 0xf003f
xor ebp, ebp
mov r8d, esi
xor edx, edx
xor ecx, ecx
mov edi, ebp
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
lea r14d, [rbp + 1]
mov rbx, rax
lea r15, [0x1401733e8]
test rax, rax
je 0x14005fe00
mov r8d, r14d
mov rdx, r15
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
test rax, rax
je 0x14005fdeb
mov rcx, rax
mov edi, r14d
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test edi, edi
je 0x14005fe00
mov eax, r14d
jmp 0x14005ff0b
mov ebx, 0x104
lea rdx, [rsp + 0x72]
mov r8d, ebx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x14005ff09
cmp eax, ebx
je 0x14005ff09
lea ecx, [rax + 1]
mov r12d, 0x22
mov word [rsp + 0x70], r12w
mov word [rsp + rcx*2 + 0x70], r12w
lea ecx, [rax + 2]
add rcx, rcx
cmp rcx, 0x20c
jae 0x140060086
mov word [rsp + rcx + 0x70], bp
mov r8d, esi
xor ecx, ecx
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rbx, rax
test rax, rax
jne 0x14005ff3d
xor edx, edx
call fcn.140083d28
mov edi, ebp
mov esi, r14d
mov ebx, 0x400
test rax, rax
je 0x14005feb3
test edi, edi
jne 0x14005fef3
mov r9d, ebx
lea r8, [rsp + 0x280]
mov edx, 0xd80a
mov rcx, rax
call qword [sym.imp.USER32.dll_LoadStringW]
mov edx, esi
mov edi, eax
call fcn.140083d28
add esi, r14d
test rax, rax
jne 0x14005fe81
test edi, edi
jne 0x14005fef3
lea r8, str.Could_not_open_Service_Manager
mov rdx, rbx
lea rcx, [rsp + 0x280]
call qword [sym.imp.msvcrt.dll_wcscpy_s]
test eax, eax
je 0x14005fef3
cmp eax, 0xc
je 0x14006005a
cmp eax, 0x16
je 0x14006004f
cmp eax, r12d
je 0x14006004f
cmp eax, 0x50
jne 0x140060044
xor r9d, r9d
lea rdx, [rsp + 0x280]
mov r8, r15
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxW]
xor eax, eax
mov rcx, qword [rsp + 0xa80]
xor rcx, rsp
call fcn.140141cf0
lea r11, [rsp + 0xa90]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop r12
ret
mov qword [rsp + 0x60], rbp
lea rax, str.RPCSS
mov qword [rsp + 0x58], rbp
mov r9d, 0xf01ff
mov qword [rsp + 0x50], rax
mov r8, r15
mov qword [rsp + 0x48], rbp
lea rax, [rsp + 0x70]
mov qword [rsp + 0x40], rbp
mov rdx, r15
mov qword [rsp + 0x38], rax
mov rcx, rbx
mov dword [rsp + 0x30], r14d
mov dword [rsp + 0x28], 3
mov dword [rsp + 0x20], 0x10
call qword [sym.imp.ADVAPI32.dll_CreateServiceW]
test rax, rax
jne 0x14006002d
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor edx, edx
call fcn.140083d28
mov edi, ebp
mov esi, r14d
mov ebx, 0x400
test rax, rax
je 0x14005fff3
test edi, edi
jne 0x14005fef3
mov r9d, ebx
lea r8, [rsp + 0x280]
mov edx, 0xd80b
mov rcx, rax
call qword [sym.imp.USER32.dll_LoadStringW]
mov edx, esi
mov edi, eax
call fcn.140083d28
add esi, r14d
test rax, rax
jne 0x14005ffb9
test edi, edi
jne 0x14005fef3
lea r8, str.Could_not_start_service
mov rdx, rbx
lea rcx, [rsp + 0x280]
call qword [sym.imp.msvcrt.dll_wcscpy_s]
test eax, eax
je 0x14005fef3
cmp eax, 0xc
je 0x14006007b
cmp eax, 0x16
je 0x140060070
cmp eax, r12d
je 0x140060070
cmp eax, 0x50
je 0x14005fef3
jmp 0x140060065
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x14005fdf8
mov ecx, 0x80004005
call fcn.140001b00
int3
mov ecx, 0x80070057
call fcn.140001b00
int3
mov ecx, 0x8007000e
call fcn.140001b00
int3
mov ecx, 0x80004005
call fcn.140001b00
int3
mov ecx, 0x80070057
call fcn.140001b00
int3
mov ecx, 0x8007000e
call fcn.140001b00
int3
call fcn.140141ec8
int3