Function at 0x140001070
Capabilities:
Create service
Start service
Terminate process

Disassembly:
push rdi
sub rsp, 0xc0
mov rax, qword [0x140005008]
xor rax, rsp
mov qword [rsp + 0xb0], rax
mov rdi, rdx
cmp ecx, 3
jge 0x1400010ab
lea rcx, str.usage:_TcbElevation.exe__ServiceName___CmdLine__n
call fcn.140001010
mov ecx, 0xffffffff
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
mov qword [rsp + 0xd0], rbx
mov qword [rsp + 0xe0], rsi
xor esi, esi
mov qword [rsp + 0x70], rsi
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea r8, [rsp + 0x70]
mov edx, 0xf01ff
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
mov rbx, qword [rsp + 0x70]
lea r8, [rsp + 0x80]
lea rdx, str.SeTcbPrivilege
mov dword [rsp + 0x78], esi
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
test eax, eax
jne 0x140001118
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.LookupPrivilegeValueW___failed__error__u_n
call fcn.140001010
jmp 0x1400011e2
mov rax, qword [rsp + 0x80]
lea r8, [rsp + 0x88]
mov qword [rsp + 0x28], rsi
mov r9d, 0x10
xor edx, edx
mov qword [rsp + 0x8c], rax
mov rcx, rbx
mov dword [rsp + 0x88], 1
mov dword [rsp + 0x94], 2
mov qword [rsp + 0x20], rsi
call qword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
jne 0x14000117b
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.AdjustTokenPrivileges___failed__error__u_n
call fcn.140001010
jmp 0x1400011e2
mov rax, qword [rsp + 0x80]
lea r8, [rsp + 0x78]
lea rdx, [rsp + 0x98]
mov qword [rsp + 0xa0], rax
mov rcx, rbx
mov dword [rsp + 0x98], 1
mov dword [rsp + 0x9c], 1
mov dword [rsp + 0xa8], 2
call qword [sym.imp.ADVAPI32.dll_PrivilegeCheck]
test eax, eax
jne 0x1400011dc
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.PrivilegeCheck___failed__error__u_n
call fcn.140001010
jmp 0x1400011e2
cmp dword [rsp + 0x78], esi
jne 0x1400011fa
lea rcx, str.No_SeTcbPrivilege_in_the_token._Exiting..._n
call fcn.140001010
mov ecx, 0xffffffff
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
call qword [sym.imp.Secur32.dll_InitSecurityInterfaceW]
xor edx, edx
lea rcx, [0x140001320]
mov qword [rax + 0x18], rcx
lea rcx, str.127.0.0.1
mov rbx, qword [rdi + 8]
lea r8d, [rdx + 3]
mov rdi, qword [rdi + 0x10]
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
test rax, rax
jne 0x140001254
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.Error_opening_SCM__d_n
call fcn.140001010
mov eax, 1
jmp 0x1400012ea
mov qword [rsp + 0x60], rsi
mov r9d, 0xf01ff
mov qword [rsp + 0x58], rsi
xor r8d, r8d
mov qword [rsp + 0x50], rsi
mov rdx, rbx
mov qword [rsp + 0x48], rsi
mov rcx, rax
mov qword [rsp + 0x40], rsi
mov qword [rsp + 0x38], rdi
mov dword [rsp + 0x30], esi
mov dword [rsp + 0x28], 3
mov dword [rsp + 0x20], 0x10
call qword [sym.imp.ADVAPI32.dll_CreateServiceW]
test rax, rax
jne 0x1400012bb
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.Error_creating_service__d_n
call fcn.140001010
mov eax, 1
jmp 0x1400012ea
xor r8d, r8d
xor edx, edx
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
jne 0x1400012e8
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.Error_starting_service__d_n
call fcn.140001010
mov eax, 1
jmp 0x1400012ea
xor eax, eax
mov rbx, qword [rsp + 0xd0]
mov rsi, qword [rsp + 0xe0]
mov rcx, qword [rsp + 0xb0]
xor rcx, rsp
call fcn.1400013c0
add rsp, 0xc0
pop rdi
ret