Function at 0x1400515bc
Capabilities:
Create service
Start service

Disassembly:
jmp 0x1400695e0
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x4a8
lea rbp, [rsp + 0x70]
lea rdi, [rsp + 0x70]
mov ecx, 0xae
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x4c8]
mov rax, qword [0x14013a908]
xor rax, rbp
mov qword [rbp + 0x428], rax
lea rcx, [0x14014e19a]
call fcn.1400529c1
mov qword [rbp + 8], 0
mov qword [rbp + 0x28], 0
lea rax, [rbp + 0x50]
mov rdi, rax
xor eax, eax
mov ecx, 0x208
rep stosb byte [rdi], al
xor r9d, r9d
lea r8, [rbp + 0x50]
mov edx, 0x104
mov rcx, qword [rbp + 0x460]
call qword [sym.imp.KERNEL32.dll_GetFullPathNameW]
mov dword [rbp + 0x274], eax
cmp dword [rbp + 0x274], 0
jne 0x1400696b0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbp + 0x294], eax
mov r8, qword [rbp + 0x460]
mov edx, dword [rbp + 0x294]
lea rcx, str.___Error_0x_lx_converting__s_path_to_absolute_..._n
call fcn.14004f249
mov eax, dword [rbp + 0x294]
jmp 0x1400698c4
mov r8d, 3
lea rdx, str.ServicesActive
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov qword [rbp + 8], rax
cmp qword [rbp + 8], 0
je 0x1400698a6
mov r8d, 0x10
mov rdx, qword [rbp + 0x450]
mov rcx, qword [rbp + 8]
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov qword [rbp + 0x28], rax
cmp qword [rbp + 0x28], 0
je 0x14006970e
mov rdx, qword [rbp + 0x450]
lea rcx, str.____s_service_already_registered_n
call fcn.14004f249
jmp 0x14006981a
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x424
jne 0x140069806
mov rdx, qword [rbp + 0x450]
lea rcx, str.____s_service_was_not_present_n
call fcn.14004f249
mov qword [rsp + 0x60], 0
mov qword [rsp + 0x58], 0
mov qword [rsp + 0x50], 0
mov qword [rsp + 0x48], 0
mov qword [rsp + 0x40], 0
lea rax, [rbp + 0x50]
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], 1
mov eax, dword [rbp + 0x470]
mov dword [rsp + 0x28], eax
mov eax, dword [rbp + 0x468]
mov dword [rsp + 0x20], eax
mov r9d, 0x60010
mov r8, qword [rbp + 0x458]
mov rdx, qword [rbp + 0x450]
mov rcx, qword [rbp + 8]
call qword [sym.imp.ADVAPI32.dll_CreateServiceW]
mov qword [rbp + 0x28], rax
cmp qword [rbp + 0x28], 0
je 0x1400697f0
mov rdx, qword [rbp + 0x450]
lea rcx, str.____s_service_is_successfully_registered_n
call fcn.14004f249
mov rcx, qword [rbp + 0x28]
call fcn.140052a8e
test eax, eax
je 0x1400697e2
mov rdx, qword [rbp + 0x450]
lea rcx, str.____s_service_ACL_configured_to_for_Everyone_n
call fcn.14004f249
jmp 0x1400697ee
lea rcx, str.____ServiceAddEveryoneAccess
call fcn.140051549
jmp 0x140069804
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.____ERROR_ServiceInstall___CreateService__0x_08x__n
call fcn.14004f249
jmp 0x14006981a
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.____ERROR_ServiceInstall___OpenService__0x_08x__n
call fcn.14004f249
cmp qword [rbp + 0x28], 0
je 0x14006989a
cmp dword [rbp + 0x478], 0
je 0x140069890
xor r8d, r8d
xor edx, edx
mov rcx, qword [rbp + 0x28]
call qword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
je 0x140069852
mov rdx, qword [rbp + 0x450]
lea rcx, str.____s_service_started_n
call fcn.14004f249
jmp 0x140069890
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x420
jne 0x140069874
mov rdx, qword [rbp + 0x450]
lea rcx, str.____s_service_already_started_n
call fcn.14004f249
jmp 0x140069890
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.____ERROR_ServiceInstall___StartService__0x_08x__n
call fcn.14004f249
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x1400698c4
mov rcx, qword [rbp + 0x28]
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, qword [rbp + 8]
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x1400698c2
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.____ERROR_ServiceInstall___OpenSCManager_create___0x_08x__n
call fcn.14004f249
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x1400698c4
xor eax, eax
mov rdi, rax
lea rcx, [rbp - 0x70]
lea rdx, [0x14010f950]
call fcn.140051f80
mov rax, rdi
mov rcx, qword [rbp + 0x428]
xor rcx, rbp
call fcn.140050bd0
lea rsp, [rbp + 0x438]
pop rdi
pop rbp
ret