Function at 0x140001070
Capabilities:
Acquire debug privileges
Enumerate threads
Execute command
Query service status

Disassembly:
mov r11, rsp
push rbp
lea rbp, [r11 - 0x5f]
sub rsp, 0xc0
mov rax, qword [section..data]
xor rax, rsp
mov qword [rbp + 0x4f], rax
mov qword [r11 + 8], rbx
lea rcx, str.____Starting_AppIDSvc_n
xor eax, eax
mov qword [r11 + 0x18], rdi
mov qword [r11 + 0x20], r14
mov qword [rbp + 7], rax
mov dword [rbp + 0xf], eax
call fcn.140001010
lea rcx, str.sc_start_AppIDSvc
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
xorps xmm0, xmm0
xor eax, eax
xor r14d, r14d
mov dword [rbp - 1], eax
xor edx, edx
mov dword [rbp - 0x29], r14d
xor ecx, ecx
mov r8d, 0xf003f
movups xmmword [rbp - 0x21], xmm0
movups xmmword [rbp - 0x11], xmm0
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rbx, rax
test rax, rax
jne 0x1400010f9
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.____OpenSCManagerW_failes_with_error__lu_n
jmp 0x140001130
lea rcx, str.___OpenSCManagerW_handle_value_opened__n
call fcn.140001010
mov r8d, 4
lea rdx, str.BthAvctpSvc
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rbx, rax
test rax, rax
jne 0x14000113a
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.____OpenServiceW_failed_with_error__d_n
mov edx, eax
call fcn.140001010
mov rbx, r14
lea rax, [rbp - 0x29]
mov r9d, 0x24
lea r8, [rbp - 0x21]
mov qword [rsp + 0x20], rax
xor edx, edx
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
jne 0x14000117e
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.____QueryServiceStatusEx_failed_with_error__d_n
call fcn.140001010
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ebx, r14d
jmp 0x140001190
mov edx, dword [rbp - 5]
lea rcx, str.___SERVICE_STATUS_PROCESS.dwProcessId___d_n
call fcn.140001010
mov ebx, dword [rbp - 5]
xor edx, edx
mov qword [rbp - 0xd], r14
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x1d], xmm0
lea ecx, [rdx + 4]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
lea rdx, [rbp - 0x21]
mov dword [rbp - 0x21], 0x1c
mov rcx, rax
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_Thread32First]
nop
cmp dword [rbp - 0x15], ebx
je 0x1400011db
lea rdx, [rbp - 0x21]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_Thread32Next]
test eax, eax
jne 0x1400011c0
lea edi, [rax + 2]
jmp 0x1400011ed
mov edx, dword [rbp - 0x19]
lea rcx, str.___GetFirstThreadID_first_TID___d_n
call fcn.140001010
mov edi, dword [rbp - 0x19]
mov qword [rsp + 0xd8], rsi
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea r8, [rbp - 0x29]
mov edx, 0xf01ff
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x14000121d
lea rcx, str.____Failed_to_open_current_process_token_n
jmp 0x1400012bd
mov rsi, qword [rbp - 0x29]
lea r8, [rbp + 0x17]
lea rdx, str.SeDebugPrivilege
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
test eax, eax
jne 0x14000124e
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.LookupPrivilegeValue_error:__u_n
call fcn.140001010
jmp 0x1400012b6
mov rax, qword [rbp + 0x17]
lea r8, [rbp - 0x21]
mov qword [rsp + 0x28], r14
mov r9d, 0x10
xor edx, edx
mov qword [rbp - 0x1d], rax
mov rcx, rsi
mov dword [rbp - 0x21], 1
mov dword [rbp - 0x15], 2
mov qword [rsp + 0x20], r14
call qword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
jne 0x14000129d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.AdjustTokenPrivileges_error:__u_n
call fcn.140001010
jmp 0x1400012b6
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x514
jne 0x1400012ce
lea rcx, str.The_token_does_not_have_the_specified_privilege.__n
call fcn.140001010
lea rcx, str.____Failed_to_set_SeDebugPrivilege_n
call fcn.140001010
lea rcx, str.____EnableDebugPrivilege_failed_n
call fcn.140001010
mov r8d, ebx
xor edx, edx
mov ecx, 0x1fffff
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rsi, qword [rsp + 0xd8]
test rax, rax
jne 0x1400012ff
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.____Couldnt_get_a_handle_to_the_LOCAL_SERVICE_process_with_error__d_n
call fcn.140001010
mov r8d, edi
xor edx, edx
mov ecx, 0x200
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rdi, qword [rsp + 0xe0]
mov rbx, rax
test rax, rax
jne 0x140001335
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.____OpenThread_failed_with_error__d_n
call fcn.140001010
jmp 0x140001341
lea rcx, str.___Opened_a_THREAD_DIRECT_IMPERSONATION_handle_to_the_LOCAL_SERVICE_process_n
call fcn.140001010
mov dword [rbp + 7], 0xc
mov dword [rbp + 0xb], 2
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
lea r8, [rbp + 7]
mov rdx, rbx
mov rcx, rax
call qword [sym.imp.ntdll.dll_NtImpersonateThread]
test eax, eax
jns 0x140001377
mov edx, eax
lea rcx, str.____NtImpersonateThread_failed_with_status___x_n
call fcn.140001010
mov qword [rsp + 0x30], r14
lea rcx, str..GLOBALROOTDeviceAppID
mov dword [rsp + 0x28], r14d
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x20], 3
mov edx, 0xc0000000
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x1400013be
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.____CreateFileW_failed_with_error__d_n
call fcn.140001010
call qword [sym.imp.ADVAPI32.dll_RevertToSelf]
xorps xmm0, xmm0
mov qword [rsp + 0x38], r14
mov qword [rsp + 0x30], r14
lea rax, [rbp + 0x1f]
mov dword [rsp + 0x28], 0x30
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov edx, 0x22a014
mov rcx, rbx
movups xmmword [rbp + 0x1f], xmm0
movups xmmword [rbp + 0x2f], xmm0
movups xmmword [rbp + 0x3f], xmm0
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov r14, qword [rsp + 0xe8]
mov rbx, qword [rsp + 0xd0]
test eax, eax
jne 0x14000142a
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.____DeviceIoControl_failed_with_error__x_n
call fcn.140001010
mov rax, qword [rbp + 0x47]
lea rcx, str._nfield0_____llx_nfield1_____llx_nfield2_____llx_nfield3_____llx_nfield4_____llx_nfiedl5_____llx_n
mov r9, qword [rbp + 0x2f]
mov r8, qword [rbp + 0x27]
mov rdx, qword [rbp + 0x1f]
mov qword [rsp + 0x30], rax
mov rax, qword [rbp + 0x3f]
mov qword [rsp + 0x28], rax
mov rax, qword [rbp + 0x37]
mov qword [rsp + 0x20], rax
call fcn.140001010
xor eax, eax
mov rcx, qword [rbp + 0x4f]
xor rcx, rsp
call fcn.140001490
add rsp, 0xc0
pop rbp
ret