Function at 0x140034d00
Capabilities:
Acquire debug privileges
Enumerate processes
Query service status

Disassembly:
push rbp
push r15
lea rbp, [rsp - 0x1f8]
sub rsp, 0x2f8
mov rax, qword [0x140154040]
xor rax, rsp
mov qword [rbp + 0x1e0], rax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea r8, [rsp + 0x30]
mov edx, 0x28
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
xor r15d, r15d
test eax, eax
je 0x140034da3
lea r8, [rsp + 0x38]
xor ecx, ecx
lea rdx, [0x1400a2e10]
call qword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
mov rcx, qword [rsp + 0x30]
test eax, eax
je 0x140034d9d
mov rax, qword [rsp + 0x38]
lea r8, [rsp + 0x40]
mov qword [rsp + 0x28], r15
mov r9d, 0x10
xor edx, edx
mov qword [rsp + 0x44], rax
mov dword [rsp + 0x40], 1
mov dword [rsp + 0x4c], 2
mov qword [rsp + 0x20], r15
call qword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, qword [0x14020fca8]
mov qword [rsp + 0x310], rbx
mov qword [rsp + 0x318], rsi
mov qword [rsp + 0x320], rdi
mov rax, qword [rax]
mov qword [rsp + 0x2f0], r14
mov qword [rsp + 0x30], rax
cmp byte [rax + 0x19], r15b
jne 0x140034f09
nop dword [rax]
xor edx, edx
lea rbx, [rax + 0x20]
mov ecx, 2
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x140034ef0
lea rdx, [rbp - 0x60]
mov dword [rbp - 0x60], 0x238
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x140034ee7
mov r14d, r15d
nop dword [rax]
lea rdx, [rbp - 0x34]
lea rcx, [rsp + 0x50]
call fcn.140032060
cmp qword [rbx + 0x18], 7
mov rax, rbx
jbe 0x140034e3b
mov rax, qword [rbx]
cmp qword [rsp + 0x68], 7
lea r8, [rsp + 0x50]
mov rdx, qword [rsp + 0x60]
cmova r8, qword [rsp + 0x50]
cmp rdx, qword [rbx + 0x10]
jne 0x140034f78
test rdx, rdx
je 0x140034e88
sub r8, rax
nop dword [rax]
nop word [rax + rax]
movzx ecx, word [rax]
cmp word [r8 + rax], cx
jne 0x140034f78
add rax, 2
sub rdx, 1
jne 0x140034e70
mov r14d, dword [rbp - 0x58]
lea rcx, [rsp + 0x50]
call fcn.140032640
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test r14d, r14d
je 0x140034ef0
mov r8d, r14d
xor edx, edx
mov ecx, 0x1fffff
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rdi, rax
test rax, rax
je 0x140034ef0
mov rsi, qword [rbx + 0x28]
mov rbx, qword [rbx + 0x20]
cmp rbx, rsi
je 0x140034ee7
nop dword [rax]
mov r8, rdi
mov rdx, rbx
mov ecx, r14d
call fcn.1400348d0
add rbx, 0x20
cmp rbx, rsi
jne 0x140034ed0
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, [rsp + 0x30]
call fcn.1400389d0
mov rax, qword [rsp + 0x30]
cmp byte [rax + 0x19], r15b
je 0x140034de0
mov rax, qword [0x14020fc98]
mov rax, qword [rax]
mov qword [rsp + 0x38], rax
cmp byte [rax + 0x19], r15b
jne 0x140035039
lea rbx, [rax + 0x20]
xor edx, edx
xor ecx, ecx
lea r15, [rbx + 0x20]
mov r8d, 1
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rdi, rax
test rax, rax
je 0x140035020
cmp qword [rbx + 0x18], 7
jbe 0x140034f50
mov rbx, qword [rbx]
mov r8d, 4
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rbx, rax
test rax, rax
jne 0x140034f9c
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x140035020
lea rcx, [rsp + 0x50]
call fcn.140032640
lea rdx, [rbp - 0x60]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x140034e20
jmp 0x140034e96
lea rax, [rsp + 0x30]
mov r9d, 0x24
lea r8, [rsp + 0x70]
mov qword [rsp + 0x20], rax
xor edx, edx
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
mov r14d, dword [rbp - 0x74]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test r14d, r14d
je 0x140035020
mov r8d, r14d
xor edx, edx
mov ecx, 0x1fffff
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rdi, rax
test rax, rax
je 0x140035020
mov rsi, qword [r15 + 8]
mov rbx, qword [r15]
cmp rbx, rsi
je 0x140035017
nop dword [rax + rax]
mov r8, rdi
mov rdx, rbx
mov ecx, r14d
call fcn.1400348d0
add rbx, 0x20
cmp rbx, rsi
jne 0x140035000
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, [rsp + 0x38]
call fcn.1400389d0
mov rax, qword [rsp + 0x38]
cmp byte [rax + 0x19], 0
je 0x140034f22
mov r14, qword [rsp + 0x2f0]
mov rdi, qword [rsp + 0x320]
mov rsi, qword [rsp + 0x318]
mov rbx, qword [rsp + 0x310]
mov rcx, qword [rbp + 0x1e0]
xor rcx, rsp
call fcn.140099c70
add rsp, 0x2f8
pop r15
pop rbp
ret