Function at 0x140007210
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 [0x140094840]
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 0x1400072bf
lea r8, [rsp + 0x70]
lea rdx, str.SeDebugPrivilege
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
mov rcx, qword [rsp + 0x40]
test eax, eax
je 0x1400072b9
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
mov r9d, reloc.WS2_32.dll_recv
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 [0x140095538]
mov rbx, qword [rbx]
cmp byte [rbx + 0x19], r12b
jne 0x1400073e6
nop dword [rax]
nop word [rax + rax]
lea rdx, [rbx + 0x20]
lea rdi, [rdx + 0x20]
cmp qword [rdx + 0x18], 7
jbe 0x1400072f2
mov rdx, qword [rdx]
lea rcx, [rsp + 0x48]
call fcn.14000a440
nop
lea rcx, [rsp + 0x48]
call fcn.140006fb0
mov ebp, eax
mov rdx, qword [rsp + 0x60]
cmp rdx, 7
jbe 0x14000734b
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140007346
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400074c4
call fcn.140071e70
test ebp, ebp
je 0x140007392
mov r8d, ebp
xor edx, edx
mov ecx, 0x1fffff
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rsi, rax
test rax, rax
je 0x140007392
mov r14, qword [rdi + 8]
mov rdi, qword [rdi]
cmp rdi, r14
je 0x140007389
mov r8, rsi
mov rdx, rdi
mov ecx, ebp
call fcn.140006b60
add rdi, 0x20
cmp rdi, r14
jne 0x140007373
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, qword [rbx + 0x10]
cmp byte [rax + 0x19], 0
je 0x1400073be
mov rax, qword [rbx + 8]
cmp byte [rax + 0x19], 0
jne 0x1400073b9
cmp rbx, qword [rax + 0x10]
jne 0x1400073b9
mov rbx, rax
mov rax, qword [rax + 8]
cmp byte [rax + 0x19], 0
je 0x1400073a6
mov rbx, rax
jmp 0x1400073dc
mov rbx, rax
mov rax, qword [rax]
cmp byte [rax + 0x19], 0
jne 0x1400073dc
nop word [rax + rax]
mov rbx, rax
mov rax, qword [rax]
cmp byte [rax + 0x19], 0
je 0x1400073d0
cmp byte [rbx + 0x19], 0
je 0x1400072e0
mov rbx, qword [0x140095528]
mov rbx, qword [rbx]
cmp byte [rbx + 0x19], 0
jne 0x1400075b6
nop word [rax + rax]
lea rdi, [rbx + 0x20]
lea r15, [rdi + 0x20]
xor edx, edx
xor ecx, ecx
mov r8d, 4
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov rsi, rax
test rax, rax
je 0x14000755f
mov r8, rdi
cmp qword [rdi + 0x18], 7
jbe 0x140007431
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
mov r9d, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
movsxd r14, eax
mov rcx, r14
call fcn.1400721cc
mov rbp, rax
cmp qword [rdi + 0x18], 7
jbe 0x14000746d
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.140071e70
test rdi, rdi
jne 0x1400074cb
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x14000755f
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
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 0x140007503
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x14000755f
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 0x14000755f
mov r8d, ebp
xor edx, edx
mov ecx, 0x1fffff
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rsi, rax
test rax, rax
je 0x140007556
mov r14, qword [r15 + 8]
mov rdi, qword [r15]
cmp rdi, r14
je 0x140007556
nop
mov r8, rsi
mov rdx, rdi
mov ecx, ebp
call fcn.140006b60
add rdi, 0x20
cmp rdi, r14
jne 0x140007540
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, qword [rbx + 0x10]
cmp byte [rax + 0x19], 0
je 0x14000758b
mov rax, qword [rbx + 8]
cmp byte [rax + 0x19], 0
jne 0x140007586
cmp rbx, qword [rax + 0x10]
jne 0x140007586
mov rbx, rax
mov rax, qword [rax + 8]
cmp byte [rax + 0x19], 0
je 0x140007573
mov rbx, rax
jmp 0x1400075ac
mov rbx, rax
mov rax, qword [rax]
cmp byte [rax + 0x19], 0
jne 0x1400075ac
nop word [rax + rax]
mov rbx, rax
mov rax, qword [rax]
cmp byte [rax + 0x19], 0
je 0x1400075a0
cmp byte [rbx + 0x19], 0
je 0x140007400
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.140071e50
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