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

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x310
mov rax, qword [0x1400f8010]
xor rax, rsp
mov qword [rsp + 0x300], rax
mov rbx, rdx
cmp ecx, 1
jle 0x14000301b
mov rdx, qword [rdx + 8]
movzx eax, word [rdx]
sub ax, 0x2d
mov ecx, 0xfffd
test cx, ax
jne 0x14000301b
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 0x140002e19
mov r8d, 0x104
lea rdx, [rsp + 0x90]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
jne 0x140002d40
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.GetModuleFileName_failed_w_err_0x_08lx_n
call fcn.140001b30
jmp 0x1400030c4
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 3]
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rbx, rax
test rax, rax
je 0x140002e65
xor eax, eax
mov qword [rsp + 0x60], rax
lea rcx, str.NT_AUTHORITYLocalService
mov qword [rsp + 0x58], rcx
lea rcx, [0x1400cc18c]
mov qword [rsp + 0x50], rcx
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x90]
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], 1
mov dword [rsp + 0x28], 2
mov dword [rsp + 0x20], reloc.WS2_32.dll_recv
mov r9d, 4
lea r8, str.Kubotek_Floating_License_Server
lea rdx, str.KCFloatingServer
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CreateServiceW]
mov rdi, rax
test rax, rax
jne 0x140002def
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.CreateService_failed_w_err_0x_08lx_n
call fcn.140001b30
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x1400030c4
lea rdx, str.KCFloatingServer
lea rcx, str._s_is_installed._n
call fcn.140001b30
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x1400030c4
mov rdx, qword [rbx + 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 0x140002fb2
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rsp + 0x70], xmm0
mov qword [rsp + 0x80], rax
mov dword [rsp + 0x88], eax
xor edx, edx
xor ecx, ecx
lea r8d, [rax + 1]
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rdi, rax
test rax, rax
jne 0x140002e7e
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.OpenSCManager_failed_w_err_0x_08lx_n
call fcn.140001b30
jmp 0x1400030c4
mov r8d, 0x10024
lea rdx, str.KCFloatingServer
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rbx, rax
test rax, rax
jne 0x140002ebe
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.OpenService_failed_w_err_0x_08lx_n
call fcn.140001b30
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x1400030c4
lea r8, [rsp + 0x70]
mov edx, 1
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x140002f65
lea rdx, str.KCFloatingServer
lea rcx, str.Stopping__s.
call fcn.140001b30
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rdx, [rsp + 0x70]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x140002f42
nop dword [rax]
mov eax, dword [rsp + 0x74]
cmp eax, 3
jne 0x140002f46
lea rcx, [0x1400ce484]
call fcn.140001b30
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rdx, [rsp + 0x70]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
jne 0x140002f10
mov eax, dword [rsp + 0x74]
lea rdx, str.KCFloatingServer
cmp eax, 1
lea rcx, [0x1400ce488]
je 0x140002f60
lea rcx, str._n_s_failed_to_stop._n
call fcn.140001b30
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
jne 0x140002f88
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.DeleteService_failed_w_err_0x_08lx_n
call fcn.140001b30
jmp 0x140002f9b
lea rdx, str.KCFloatingServer
lea rcx, str._s_is_removed._n
call fcn.140001b30
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x1400030c4
mov rdx, qword [rbx + 8]
add rdx, 2
lea rcx, str.restart
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
test eax, eax
jne 0x140002fd5
call fcn.14001e3e0
jmp 0x1400030c4
mov rdx, qword [rbx + 8]
add rdx, 2
lea rcx, str.foreground
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
test eax, eax
jne 0x1400030c4
lea rcx, [rsp + 0x90]
call fcn.140006e40
nop
mov byte [rsp + 0x2f0], 1
lea rcx, [rsp + 0x90]
call fcn.14000e6a0
nop
jmp 0x1400030b7
lea rcx, str.Parameters:_n
call fcn.140001b30
lea rcx, str.__install__to_install_the_service._n
call fcn.140001b30
lea rcx, str.__remove___to_remove_the_service._n
call fcn.140001b30
lea rcx, str.__restart__to_restart_the_service._n
call fcn.140001b30
lea rcx, [rsp + 0x90]
call fcn.140006e40
nop
lea rax, [rsp + 0x90]
mov qword [0x140126810], rax
mov rax, qword [rsp + 0x98]
mov qword [rsp + 0x70], rax
lea rax, [0x14001dfc0]
mov qword [rsp + 0x78], rax
xor eax, eax
mov qword [rsp + 0x80], rax
mov qword [rsp + 0x88], rax
lea rcx, [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_StartServiceCtrlDispatcherW]
test eax, eax
jne 0x1400030b7
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.Service_failed_to_run_w_err_0x_08lx_n
call fcn.140001b30
nop
lea rcx, [rsp + 0x90]
call fcn.140006f70
xor eax, eax
mov rcx, qword [rsp + 0x300]
xor rcx, rsp
call fcn.140076f70
mov rbx, qword [rsp + 0x320]
add rsp, 0x310
pop rdi
ret