Function at 0x14000de30
Capabilities:
Create service
Modify service
Persist via windows service
Start service

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r14
lea rbp, [rsp - 0x1c0]
sub rsp, 0x2c0
mov rax, qword [0x140108ab8]
xor rax, rsp
mov qword [rbp + 0x1b0], rax
xor esi, esi
mov qword [rbp - 0x70], rdx
mov rdi, rcx
mov qword [rbp - 0x78], rsi
lea r14, fcn.14000e2f0
mov qword [rsp + 0x78], rsi
xor edx, edx
mov qword [rbp - 0x80], r14
lea rcx, [rbp - 0x5e]
mov qword [rsp + 0x70], r14
mov r8d, 0x206
mov word [rbp - 0x60], si
call sub.msvcrt.dll_memset
mov r8d, 0x104
lea rdx, [rbp - 0x60]
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_GetModuleFileNameW]
nop dword [rax + rax]
test eax, eax
jne 0x14000df10
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov edx, eax
lea rcx, str.Service:_Cannot_install_service___u__n
call qword [sym.imp.msvcrt.dll_wprintf_s]
nop dword [rax + rax]
cmp qword [rsp + 0x78], rsi
je 0x14000def0
lea rcx, [rsp + 0x70]
call fcn.14000e2f0
test al, al
je 0x14000e1f3
mov qword [rsp + 0x78], rsi
cmp qword [rbp - 0x78], rsi
je 0x14000e14b
lea rcx, [rbp - 0x80]
call fcn.14000e2f0
test al, al
je 0x14000e193
jmp 0x14000e14b
xor edx, edx
xor ecx, ecx
mov r8d, 0xf003f
call qword [sym.imp.api_ms_win_service_management_l1_1_0.dll_OpenSCManagerW]
nop dword [rax + rax]
mov rcx, qword [rbp - 0x78]
mov rbx, rax
cmp rax, rcx
je 0x14000df57
test rcx, rcx
je 0x14000df50
mov rcx, qword [rbp - 0x80]
mov rax, qword [rcx]
lea rcx, [rbp - 0x80]
call qword [0x1400d1188]
test al, al
je 0x14000e213
mov rcx, rbx
mov qword [rbp - 0x78], rbx
test rcx, rcx
jne 0x14000dfbf
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov edx, eax
lea rcx, str.Service:_OpenSCManager_failed___u__n
call qword [sym.imp.msvcrt.dll_wprintf_s]
nop dword [rax + rax]
cmp qword [rsp + 0x78], rsi
je 0x14000df9b
lea rcx, [rsp + 0x70]
call fcn.14000e2f0
test al, al
je 0x14000e233
mov qword [rsp + 0x78], rsi
mov qword [rbp - 0x80], r14
cmp qword [rbp - 0x78], rsi
je 0x14000e14b
lea rcx, [rbp - 0x80]
call fcn.14000e2f0
test al, al
je 0x14000e1b3
jmp 0x14000e14b
mov qword [rsp + 0x60], rsi
lea rax, [rbp - 0x60]
mov qword [rsp + 0x58], rsi
lea rdx, str.SensorDataService
mov qword [rsp + 0x50], rsi
mov r9d, 0xf01ff
mov qword [rsp + 0x48], rsi
mov r8, rdi
mov qword [rsp + 0x40], rsi
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], 1
mov dword [rsp + 0x28], 2
mov dword [rsp + 0x20], 0x10
call qword [sym.imp.api_ms_win_service_management_l1_1_0.dll_CreateServiceW]
nop dword [rax + rax]
mov rcx, qword [rsp + 0x78]
mov rbx, rax
cmp rax, rcx
je 0x14000e04a
test rcx, rcx
je 0x14000e042
mov rcx, qword [rsp + 0x70]
mov rax, qword [rcx]
lea rcx, [rsp + 0x70]
call qword [0x1400d1188]
test al, al
je 0x14000e253
mov rcx, rbx
mov qword [rsp + 0x78], rbx
test rcx, rcx
jne 0x14000e0b7
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov edx, eax
lea rcx, str.Service:_CreateService_failed___u__n
call qword [sym.imp.msvcrt.dll_wprintf_s]
nop dword [rax + rax]
mov qword [rsp + 0x70], r14
cmp qword [rsp + 0x78], rsi
je 0x14000e093
lea rcx, [rsp + 0x70]
call fcn.14000e2f0
test al, al
je 0x14000e273
mov qword [rsp + 0x78], rsi
mov qword [rbp - 0x80], r14
cmp qword [rbp - 0x78], rsi
je 0x14000e14b
lea rcx, [rbp - 0x80]
call fcn.14000e2f0
test al, al
je 0x14000e1d3
jmp 0x14000e14b
lea rcx, str.Service:_Installed_successfully_n
call qword [sym.imp.msvcrt.dll_wprintf_s]
nop dword [rax + rax]
mov rcx, qword [rsp + 0x78]
lea r8, [rbp - 0x70]
mov edx, 1
call qword [sym.imp.api_ms_win_service_management_l2_1_0.dll_ChangeServiceConfig2W]
nop dword [rax + rax]
mov rcx, qword [rsp + 0x78]
xor r8d, r8d
xor edx, edx
call qword [sym.imp.api_ms_win_service_management_l1_1_0.dll_StartServiceW]
nop dword [rax + rax]
test eax, eax
jne 0x14000e111
lea rcx, str.Service:_Failed_to_start_n
call qword [sym.imp.msvcrt.dll_wprintf_s]
nop dword [rax + rax]
mov qword [rsp + 0x70], r14
cmp qword [rsp + 0x78], rsi
je 0x14000e134
lea rcx, [rsp + 0x70]
call fcn.14000e2f0
test al, al
je 0x14000e293
mov qword [rsp + 0x78], rsi
mov qword [rbp - 0x80], r14
cmp qword [rbp - 0x78], rsi
je 0x14000e14b
lea rcx, [rbp - 0x80]
call fcn.14000e2f0
test al, al
je 0x14000e173
mov rcx, qword [rbp + 0x1b0]
xor rcx, rsp
call fcn.1400c6c80
lea r11, [rsp + 0x2c0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
test eax, eax
jle 0x14000e18b
movzx eax, ax
or eax, 0x80070000
mov ecx, eax
call fcn.14000e83c
int3
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
test eax, eax
jle 0x14000e1ab
movzx eax, ax
or eax, 0x80070000
mov ecx, eax
call fcn.14000e83c
int3
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
test eax, eax
jle 0x14000e1cb
movzx eax, ax
or eax, 0x80070000
mov ecx, eax
call fcn.14000e83c
int3
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
test eax, eax
jle 0x14000e1eb
movzx eax, ax
or eax, 0x80070000
mov ecx, eax
call fcn.14000e83c
int3
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
test eax, eax
jle 0x14000e20b
movzx eax, ax
or eax, 0x80070000
mov ecx, eax
call fcn.14000e83c
int3
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
test eax, eax
jle 0x14000e22b
movzx eax, ax
or eax, 0x80070000
mov ecx, eax
call fcn.14000e83c
int3
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
test eax, eax
jle 0x14000e24b
movzx eax, ax
or eax, 0x80070000
mov ecx, eax
call fcn.14000e83c
int3
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
test eax, eax
jle 0x14000e26b
movzx eax, ax
or eax, 0x80070000
mov ecx, eax
call fcn.14000e83c
int3
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
test eax, eax
jle 0x14000e28b
movzx eax, ax
or eax, 0x80070000
mov ecx, eax
call fcn.14000e83c
int3
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
test eax, eax
jle 0x14000e2ab
movzx eax, ax
or eax, 0x80070000
mov ecx, eax
call fcn.14000e83c
int3