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

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r12
push r14
push r15
sub rsp, 0x80
mov rax, qword [0x14000e010]
xor rax, rsp
mov qword [rsp + 0x78], rax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
lea r8, [rsp + 0x40]
mov edx, 0x28
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
xor r12d, r12d
test eax, eax
je 0x1400035fe
lea r8, [rsp + 0x70]
lea rdx, str.SeDebugPrivilege
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
mov rcx, qword [rsp + 0x40]
test eax, eax
je 0x1400035f8
mov dword [rsp + 0x48], 1
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x4c], rax
mov dword [rsp + 0x54], 2
mov qword [rsp + 0x28], r12
mov qword [rsp + 0x20], r12
lea r9d, [r12 + 0x10]
lea r8, [rsp + 0x48]
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbx, qword [0x14000ead0]
mov rbx, qword [rbx]
cmp byte [rbx + 0x19], r12b
jne 0x14000372c
lea rdx, [rbx + 0x20]
lea rdi, [rdx + 0x20]
cmp qword [rdx + 0x18], 8
jb 0x140003624
mov rdx, qword [rdx]
lea rcx, [rsp + 0x48]
call fcn.1400059f0
nop
lea rcx, [rsp + 0x48]
call fcn.1400032f0
mov ebp, eax
mov rdx, qword [rsp + 0x60]
cmp rdx, 8
jb 0x14000367d
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140003678
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140003725
call fcn.140007e90
test ebp, ebp
je 0x1400036cf
mov r8d, ebp
xor edx, edx
mov ecx, 0x1fffff
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rsi, rax
test rax, rax
je 0x1400036cf
mov r14, qword [rdi + 8]
mov rdi, qword [rdi]
cmp rdi, r14
je 0x1400036c6
nop word [rax + rax]
mov r8, rsi
mov rdx, rdi
mov ecx, ebp
call fcn.140002eb0
add rdi, 0x20
cmp rdi, r14
jne 0x1400036b0
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, qword [rbx + 0x10]
cmp byte [rax + 0x19], 0
je 0x140003702
mov rax, qword [rbx + 8]
cmp byte [rax + 0x19], 0
jne 0x1400036f6
cmp rbx, qword [rax + 0x10]
jne 0x1400036f6
mov rbx, rax
mov rax, qword [rax + 8]
cmp byte [rax + 0x19], 0
je 0x1400036e3
mov rbx, rax
cmp byte [rax + 0x19], 0
jmp 0x14000360c
mov rbx, rax
mov rax, qword [rax]
cmp byte [rax + 0x19], 0
jne 0x14000371c
nop
mov rbx, rax
mov rax, qword [rax]
cmp byte [rax + 0x19], 0
je 0x140003710
cmp byte [rbx + 0x19], 0
jmp 0x14000360c
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rbx, qword [0x14000eac0]
mov rbx, qword [rbx]
cmp byte [rbx + 0x19], 0
jne 0x1400038e6
lea rdi, [rbx + 0x20]
lea r15, [rdi + 0x20]
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 4]
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rsi, rax
test rax, rax
je 0x140003892
mov r8, rdi
cmp qword [rdi + 0x18], 8
jb 0x14000376f
mov r8, qword [rdi]
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
lea r9d, [rdx - 1]
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
movsxd r14, eax
mov rcx, r14
call fcn.1400081f4
mov rbp, rax
cmp qword [rdi + 0x18], 8
jb 0x1400037a9
mov rdi, qword [rdi]
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], r14d
mov qword [rsp + 0x20], rbp
mov r9d, 0xffffffff
mov r8, rdi
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov r8d, 4
mov rdx, rbp
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov rdi, rax
mov rcx, rbp
call fcn.140007e90
test rdi, rdi
jne 0x140003800
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x140003892
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
mov r9d, 0x24
lea r8, [rsp + 0x48]
xor edx, edx
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
mov rcx, rdi
test eax, eax
jne 0x140003838
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x140003892
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ebp, dword [rsp + 0x64]
test ebp, ebp
je 0x140003892
mov r8d, ebp
xor edx, edx
mov ecx, 0x1fffff
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rsi, rax
test rax, rax
je 0x140003892
mov r14, qword [r15 + 8]
mov rdi, qword [r15]
cmp rdi, r14
je 0x140003889
mov r8, rsi
mov rdx, rdi
mov ecx, ebp
call fcn.140002eb0
add rdi, 0x20
cmp rdi, r14
jne 0x140003873
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, qword [rbx + 0x10]
cmp byte [rax + 0x19], 0
je 0x1400038be
mov rax, qword [rbx + 8]
cmp byte [rax + 0x19], 0
jne 0x1400038b9
cmp rbx, qword [rax + 0x10]
jne 0x1400038b9
mov rbx, rax
mov rax, qword [rax + 8]
cmp byte [rax + 0x19], 0
je 0x1400038a6
mov rbx, rax
jmp 0x1400038dc
mov rbx, rax
mov rax, qword [rax]
cmp byte [rax + 0x19], 0
jne 0x1400038dc
nop word [rax + rax]
mov rbx, rax
mov rax, qword [rax]
cmp byte [rax + 0x19], 0
je 0x1400038d0
cmp byte [rbx + 0x19], 0
je 0x140003740
xor eax, eax
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.140007e70
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop r12
ret