Function at 0x14000f5a0
Capabilities:
Acquire debug privileges
Query service status

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
mov qword [rsp + 0x20], r12
push rbp
push r14
push r15
mov rbp, rsp
sub rsp, 0x80
mov rax, qword [0x140362080]
xor rax, rsp
mov qword [rbp - 8], rax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
lea r8, [rbp - 0x40]
mov edx, Ordinal_41
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
xor r12d, r12d
test eax, eax
je 0x14000f647
lea r8, [rbp - 0x38]
lea rdx, str.SeDebugPrivilege
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
mov rcx, qword [rbp - 0x40]
test eax, eax
je 0x14000f641
mov dword [rbp - 0x30], 1
mov rax, qword [rbp - 0x38]
mov qword [rbp - 0x2c], rax
mov dword [rbp - 0x24], 2
mov qword [rsp + 0x28], r12
mov qword [rsp + 0x20], r12
mov r9d, reloc.WS2_32.dll_recv
lea r8, [rbp - 0x30]
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
mov rcx, qword [rbp - 0x40]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, qword [0x140cc1020]
mov rax, qword [rax]
mov qword [rbp - 0x40], rax
cmp byte [rax + 0x19], r12b
jne 0x14000f756
nop
lea rdx, [rax + 0x20]
lea rbx, [rdx + 0x20]
cmp qword [rdx + 0x18], 7
jbe 0x14000f672
mov rdx, qword [rdx]
xorps xmm0, xmm0
movups xmmword [rbp - 0x30], xmm0
mov qword [rbp - 0x20], r12
mov qword [rbp - 0x18], r12
mov r8, 0xffffffffffffffff
nop dword [rax + rax]
inc r8
cmp word [rdx + r8*2], 0
jne 0x14000f690
lea rcx, [rbp - 0x30]
call fcn.14001bce0
nop
lea rcx, [rbp - 0x30]
call fcn.14000f360
mov esi, eax
mov rdx, qword [rbp - 0x18]
cmp rdx, 7
jbe 0x14000f6f0
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000f6eb
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000f834
call fcn.140120f10
test esi, esi
je 0x14000f73f
mov r8d, esi
xor edx, edx
mov ecx, 0x1fffff
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rdi, rax
test rax, rax
je 0x14000f73f
mov r14, qword [rbx + 8]
mov rbx, qword [rbx]
cmp rbx, r14
je 0x14000f736
nop dword [rax + rax]
mov r8, rdi
mov rdx, rbx
mov ecx, esi
call fcn.14000eff0
add rbx, 0x20
cmp rbx, r14
jne 0x14000f720
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, [rbp - 0x40]
call fcn.14001a3a0
mov rax, qword [rbp - 0x40]
cmp byte [rax + 0x19], 0
je 0x14000f660
mov rax, qword [0x140cc0cf0]
mov rax, qword [rax]
mov qword [rbp - 0x38], rax
cmp byte [rax + 0x19], 0
jne 0x14000f8e6
nop
lea rbx, [rax + 0x20]
lea r15, [rbx + 0x20]
xor edx, edx
xor ecx, ecx
mov r8d, 4
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov rdi, rax
test rax, rax
je 0x14000f8cf
mov r8, rbx
cmp qword [rbx + 0x18], 7
jbe 0x14000f7a1
mov r8, qword [rbx]
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], r12d
mov qword [rsp + 0x20], r12
xor edx, edx
xor ecx, ecx
mov r9d, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
movsxd r14, eax
mov rcx, r14
call fcn.140121384
mov rsi, rax
cmp qword [rbx + 0x18], 7
jbe 0x14000f7dd
mov rbx, qword [rbx]
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], r14d
mov qword [rsp + 0x20], rsi
mov r9d, 0xffffffff
mov r8, rbx
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov r8d, 4
mov rdx, rsi
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov rbx, rax
mov rcx, rsi
call fcn.140120f10
test rbx, rbx
jne 0x14000f83b
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x14000f8cf
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
lea rax, [rbp - 0x40]
mov qword [rsp + 0x20], rax
mov r9d, Ordinal_41
lea r8, [rbp - 0x30]
xor edx, edx
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
mov rcx, rbx
test eax, eax
jne 0x14000f871
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x14000f8cf
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov esi, dword [rbp - 0x14]
test esi, esi
je 0x14000f8cf
mov r8d, esi
xor edx, edx
mov ecx, 0x1fffff
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rdi, rax
test rax, rax
je 0x14000f8cf
mov r14, qword [r15 + 8]
mov rbx, qword [r15]
cmp rbx, r14
je 0x14000f8c6
nop dword [rax + rax]
mov r8, rdi
mov rdx, rbx
mov ecx, esi
call fcn.14000eff0
add rbx, 0x20
cmp rbx, r14
jne 0x14000f8b0
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, [rbp - 0x38]
call fcn.14001a3a0
mov rax, qword [rbp - 0x38]
cmp byte [rax + 0x19], 0
je 0x14000f770
xor eax, eax
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.140120ef0
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov r12, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret