Function at 0x140001320
Capabilities:
Create service
Delete service
Persist via windows service
Query service status
Stop service

Disassembly:
mov rax, rsp
push rbp
push rdi
push r14
lea rbp, [rax - 0x268]
sub rsp, 0x350
mov qword [rbp - 0x78], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rsi
mov rax, qword [0x14000b010]
xor rax, rsp
mov qword [rbp + 0x240], rax
mov rdi, rdx
mov esi, ecx
mov byte [rsp + 0x70], 0
xor eax, eax
mov qword [rbp - 0x60], rax
mov qword [rbp - 0x48], rax
mov qword [rbp - 0x40], rax
mov qword [rbp - 0x38], rax
mov qword [rbp - 0x30], rax
mov qword [rbp - 0x28], rax
xorps xmm0, xmm0
movss dword [rbp - 0x60], xmm0
xor r14d, r14d
mov qword [rbp - 0x58], r14
mov qword [rbp - 0x50], r14
xor r8d, r8d
xor edx, edx
call fcn.140003fd0
mov qword [rbp - 0x58], rax
mov qword [rbp - 0x48], r14
xorps xmm0, xmm0
movdqa xmmword [rbp - 0x40], xmm0
movss xmm0, dword [0x140007ed8]
movss dword [rbp - 0x60], xmm0
lea edx, [r14 + 8]
lea rcx, [rbp - 0x60]
call fcn.140003aa0
nop
lea r9, [rbp - 0x60]
lea r8, [rbp - 0x80]
lea rdx, [rsp + 0x78]
lea rcx, [rsp + 0x70]
call fcn.140002930
cmp byte [rsp + 0x70], r14b
je 0x14000142f
lea rax, [rbp - 0x20]
mov qword [rbp - 0x70], rax
mov eax, dword [rbp - 0x60]
mov dword [rbp - 0x20], eax
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x18], xmm0
xor r8d, r8d
xor edx, edx
call fcn.140003fd0
mov qword [rbp - 0x18], rax
xorps xmm0, xmm0
movdqu xmmword [rbp - 8], xmm0
mov qword [rbp + 8], r14
lea rdx, [rbp - 0x60]
lea rcx, [rbp - 0x20]
call fcn.140003b30
nop
lea r8, [rbp - 0x20]
mov edx, dword [rbp - 0x80]
mov ecx, dword [rsp + 0x78]
call fcn.140002c50
nop
lea rcx, [rbp - 0x48]
call fcn.140003600
mov rax, qword [rbp - 0x58]
mov rcx, qword [rax]
mov qword [rax], rax
mov rax, qword [rbp - 0x58]
mov qword [rax + 8], rax
mov qword [rbp - 0x50], r14
mov rax, qword [rbp - 0x58]
cmp rcx, rax
je 0x14000146b
mov rbx, qword [rcx]
call fcn.140005008
mov rcx, rbx
mov rax, qword [rbp - 0x58]
cmp rbx, rax
jne 0x140001457
mov rcx, rax
call fcn.140005008
lea r8, str.Service_has_been_successfully_installed
mov edx, 1
xor ecx, ecx
call fcn.140002e60
cmp esi, 1
jle 0x140001730
mov rdx, qword [rdi + 8]
movzx eax, word [rdx]
sub ax, 0x2d
mov ecx, 0xfffd
test cx, ax
jne 0x140001730
add rdx, 2
lea rcx, str.install
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
test eax, eax
jne 0x1400015b8
mov r8d, 0x104
lea rdx, [rbp + 0x30]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
jne 0x1400014f0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.GetModuleFileName_failed_w_err_0x_08lx_n
call fcn.140002720
jmp 0x1400017f7
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 3]
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rbx, rax
test rax, rax
je 0x1400015fc
mov qword [rsp + 0x60], r14
mov qword [rsp + 0x58], r14
lea rax, [0x140007610]
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x48], r14
mov qword [rsp + 0x40], r14
lea rax, [rbp + 0x30]
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], 1
mov dword [rsp + 0x28], 2
mov dword [rsp + 0x20], pe_nt_image_headers64
mov r9d, 4
lea r8, str.AMD_Performance_Profile_Client
lea rdi, str.AMD_PPC
mov rdx, rdi
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CreateServiceW]
mov rsi, rax
test rax, rax
jne 0x140001589
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.CreateService_failed_w_err_0x_08lx_n
call fcn.140002720
jmp 0x140001598
mov rdx, rdi
lea rcx, str._s_is_installed._n
call fcn.140002720
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test rsi, rsi
je 0x1400017f7
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x1400017f7
mov rdx, qword [rdi + 8]
add rdx, 2
lea rcx, str.remove
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
test eax, eax
jne 0x1400017f7
xor eax, eax
mov qword [rbp - 0x60], rax
mov qword [rbp - 0x58], rax
mov qword [rbp - 0x50], rax
mov dword [rbp - 0x48], eax
xor edx, edx
xor ecx, ecx
lea r8d, [rax + 1]
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rsi, rax
test rax, rax
jne 0x140001615
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.OpenSCManager_failed_w_err_0x_08lx_n
call fcn.140002720
jmp 0x1400017f7
mov r8d, 0x10024
lea rdi, str.AMD_PPC
mov rdx, rdi
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rbx, rax
test rax, rax
jne 0x14000164f
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.OpenService_failed_w_err_0x_08lx_n
call fcn.140002720
jmp 0x140001710
lea r8, [rbp - 0x60]
mov edx, 1
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x1400016de
mov rdx, rdi
lea rcx, str.Stopping__s.
call fcn.140002720
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rdx, [rbp - 0x60]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x1400016c0
mov eax, dword [rbp - 0x5c]
cmp eax, 3
jne 0x1400016c3
lea rcx, [0x140007b74]
call fcn.140002720
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rdx, [rbp - 0x60]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
jne 0x140001690
mov eax, dword [rbp - 0x5c]
mov rdx, rdi
cmp eax, 1
lea rcx, [0x140007b78]
je 0x1400016d9
lea rcx, str._n_s_failed_to_stop._n
call fcn.140002720
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
jne 0x140001701
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.DeleteService_failed_w_err_0x_08lx_n
call fcn.140002720
jmp 0x140001710
mov rdx, rdi
lea rcx, str._s_is_removed._n
call fcn.140002720
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test rbx, rbx
je 0x1400017f7
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x1400017f7
xor eax, eax
mov qword [rbp - 0x10], rax
mov qword [rbp + 8], rax
mov qword [rbp + 0x18], rax
mov qword [rbp + 0x20], rax
lea rdi, str.AMD_PPC
mov qword [rbp - 0x18], rdi
mov qword [rbp + 0x10], r14
mov dword [rbp - 0x10], 0x10
mov dword [rbp - 0xc], 2
mov qword [rbp - 8], 5
mov qword [rbp], r14
mov dword [rbp + 8], r14d
lea rbx, vtable.AMDPPCLService.0
mov qword [rbp - 0x20], rbx
mov dword [rbp + 0x18], r14d
xor r9d, r9d
xor r8d, r8d
lea edx, [rax + 1]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [rbp + 0x20], rax
test rax, rax
jne 0x1400017b4
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x78], eax
lea rdx, [0x140009b90]
lea rcx, [rsp + 0x78]
call sub.VCRUNTIME140.dll__CxxThrowException
nop
lea rax, [rbp - 0x20]
mov qword [0x14000b770], rax
mov rax, qword [rbp - 0x18]
mov qword [rbp - 0x60], rax
lea rax, [0x140002180]
mov qword [rbp - 0x58], rax
mov qword [rbp - 0x50], r14
mov qword [rbp - 0x48], r14
lea rcx, [rbp - 0x60]
call qword [sym.imp.ADVAPI32.dll_StartServiceCtrlDispatcherW]
mov qword [rbp - 0x20], rbx
mov rcx, qword [rbp + 0x20]
test rcx, rcx
je 0x1400017f7
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov rcx, qword [rbp + 0x240]
xor rcx, rsp
call fcn.140004fa0
lea r11, [rsp + 0x350]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret