Function at 0x18000a280
Capabilities:
Acquire debug privileges
Create thread
Query service status

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x10]
sub rsp, 0x110
mov rax, qword [0x1801aa0c0]
xor rax, rsp
mov qword [rbp], rax
xor r13d, r13d
mov r15d, r13d
mov dword [rsp + 0x44], r13d
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
lea r8, [rsp + 0x58]
mov edx, Ordinal_41
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x18000a333
lea r8, [rbp - 0x78]
lea rdx, [0x18014c5e8]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
mov rcx, qword [rsp + 0x58]
test eax, eax
je 0x18000a32d
mov dword [rbp - 0x70], 1
mov rax, qword [rbp - 0x78]
mov qword [rbp - 0x6c], rax
mov dword [rbp - 0x64], 2
mov qword [rsp + 0x28], r13
mov qword [rsp + 0x20], r13
mov r9d, reloc.WS2_32.dll_recv
lea r8, [rbp - 0x70]
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xorps xmm0, xmm0
movups xmmword [rbp - 0x38], xmm0
movups xmmword [rbp - 0x28], xmm0
movups xmmword [rbp - 0x18], xmm0
mov qword [rbp - 0x48], r13
mov qword [rbp - 0x40], r13
mov dword [rbp - 8], 0xffffffff
mov dword [rbp - 0x50], 2
mov dword [rbp - 4], r13d
mov rax, qword [0x1801ad310]
mov rax, qword [rax]
mov qword [rsp + 0x58], rax
cmp byte [rax + 0x19], r13b
jne 0x18000a619
nop word [rax + rax]
lea rdx, [rax + 0x20]
lea r14, [rdx + 0x20]
cmp qword [rdx + 0x18], 7
jbe 0x18000a392
mov rdx, qword [rdx]
xorps xmm0, xmm0
movups xmmword [rsp + 0x60], xmm0
mov qword [rsp + 0x70], r13
mov qword [rsp + 0x78], r13
mov r8, 0xffffffffffffffff
nop dword [rax + rax]
inc r8
cmp word [rdx + r8*2], 0
jne 0x18000a3b0
lea rcx, [rsp + 0x60]
call fcn.1800164f0
nop
lea rcx, [rsp + 0x60]
call fcn.180009de0
mov r12d, eax
mov dword [rsp + 0x40], eax
mov rdx, qword [rsp + 0x78]
cmp rdx, 7
jbe 0x18000a419
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18000a414
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18000a65b
call fcn.18011b690
test r12d, r12d
je 0x18000a600
mov r8d, r12d
xor edx, edx
mov ecx, 0x1fffff
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov r13, rax
mov qword [rsp + 0x48], rax
test rax, rax
je 0x18000a5fd
xor eax, eax
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x60], xmm1
mov qword [rsp + 0x70], rax
mov rsi, qword [r14]
mov r14, qword [r14 + 8]
mov rbx, qword [rsp + 0x68]
cmp rsi, r14
je 0x18000a546
lea rcx, [rbp - 0x50]
mov qword [rbp - 0x78], rcx
cmp rbx, rax
je 0x18000a504
mov ecx, 0x40
call fcn.18011b698
mov rdi, rax
mov qword [rsp + 0x50], rax
lea rax, [rbp - 0x50]
mov qword [rdi], rax
mov qword [rdi + 8], r13
lea rcx, [rdi + 0x10]
mov rdx, rsi
call fcn.180014840
mov dword [rdi + 0x30], r12d
lea rax, [0x180009990]
mov qword [rdi + 0x38], rax
mov qword [rbp - 0x60], rdi
or r15d, 2
mov dword [rsp + 0x44], r15d
lea r15, [rbx + 8]
mov qword [rsp + 0x28], r15
mov dword [rsp + 0x20], 0
mov r9, rdi
lea r8, [0x180018640]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov qword [rbx], rax
test rax, rax
je 0x18000a662
mov rbx, qword [rsp + 0x68]
add rbx, 0x10
mov qword [rsp + 0x68], rbx
mov r15d, dword [rsp + 0x44]
jmp 0x18000a533
lea rax, [rbp - 0x78]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x48]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rsi
lea r9, [rsp + 0x40]
mov rdx, rbx
lea rcx, [rsp + 0x60]
call fcn.180017090
mov rbx, qword [rsp + 0x68]
add rsi, 0x20
cmp rsi, r14
je 0x18000a546
mov rax, qword [rsp + 0x70]
jmp 0x18000a470
mov rdi, qword [rsp + 0x60]
cmp rdi, rbx
je 0x18000a593
cmp dword [rdi + 8], 0
je 0x18000a68d
call qword [sym.imp.MSVCP140.dll__Thrd_id]
cmp dword [rdi + 8], eax
je 0x18000a681
movups xmm0, xmmword [rdi]
movaps xmmword [rbp - 0x70], xmm0
xor edx, edx
lea rcx, [rbp - 0x70]
call qword [sym.imp.MSVCP140.dll__Thrd_join]
test eax, eax
jne 0x18000a675
xorps xmm0, xmm0
movups xmmword [rdi], xmm0
add rdi, 0x10
cmp rdi, rbx
jne 0x18000a550
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x18000a5fd
mov rax, rcx
mov rdx, qword [rsp + 0x68]
cmp rcx, rdx
je 0x18000a5c7
cmp dword [rax + 8], 0
jne 0x18000a699
add rax, 0x10
cmp rax, rdx
jne 0x18000a5b4
mov rdx, qword [rsp + 0x70]
sub rdx, rcx
and rdx, 0xfffffffffffffff0
mov rax, rcx
cmp rdx, 0x1000
jb 0x18000a5f8
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18000a6a0
call fcn.18011b690
xor r13d, r13d
lea rcx, [rsp + 0x58]
call fcn.180014ef0
mov rax, qword [rsp + 0x58]
cmp byte [rax + 0x19], 0
je 0x18000a380
mov rax, qword [0x1801acff8]
mov rax, qword [rax]
mov qword [rbp - 0x78], rax
cmp byte [rax + 0x19], 0
jne 0x18000a9a7
lea rbx, [rax + 0x20]
lea r12, [rbx + 0x20]
xor edx, edx
xor ecx, ecx
mov r8d, 4
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rdi, rax
test rax, rax
jne 0x18000a6a7
mov dword [rsp + 0x40], r13d
jmp 0x18000a990
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
mov dword [r15], 0
mov ecx, 6
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
nop
mov ecx, 2
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3
mov ecx, 5
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3
mov ecx, 1
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
nop
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_terminate]
int3
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov r8, rbx
cmp qword [rbx + 0x18], 7
jbe 0x18000a6b4
mov r8, qword [rbx]
mov qword [rsp + 0x38], r13
mov qword [rsp + 0x30], r13
mov dword [rsp + 0x28], r13d
mov qword [rsp + 0x20], r13
xor edx, edx
xor ecx, ecx
mov r9d, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
movsxd r14, eax
mov rcx, r14
call fcn.18011bb1c
mov rsi, rax
cmp qword [rbx + 0x18], 7
jbe 0x18000a6f0
mov rbx, qword [rbx]
mov qword [rsp + 0x38], r13
mov qword [rsp + 0x30], r13
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.18011b690
test rbx, rbx
jne 0x18000a74c
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov dword [rsp + 0x40], r13d
jmp 0x18000a990
lea rax, [rsp + 0x58]
mov qword [rsp + 0x20], rax
mov r9d, Ordinal_41
lea r8, [rsp + 0x60]
xor edx, edx
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
mov rcx, rbx
test eax, eax
jne 0x18000a78c
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov dword [rsp + 0x40], r13d
jmp 0x18000a990
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov r15d, dword [rsp + 0x7c]
mov dword [rsp + 0x40], r15d
test r15d, r15d
je 0x18000a990
mov r8d, r15d
xor edx, edx
mov ecx, 0x1fffff
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov r13, rax
mov qword [rsp + 0x50], rax
test rax, rax
je 0x18000a98d
xor eax, eax
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x60], xmm1
mov qword [rsp + 0x70], rax
mov rsi, qword [r12]
mov r14, qword [r12 + 8]
mov rdi, qword [rsp + 0x68]
cmp rsi, r14
je 0x18000a8cd
lea rcx, [rbp - 0x50]
mov qword [rsp + 0x48], rcx
nop
cmp rdi, rax
je 0x18000a88a
mov ecx, 0x40
call fcn.18011b698
mov rbx, rax
mov qword [rbp - 0x60], rax
lea rax, [rbp - 0x50]
mov qword [rbx], rax
mov qword [rbx + 8], r13
lea rcx, [rbx + 0x10]
mov rdx, rsi
call fcn.180014840
mov dword [rbx + 0x30], r15d
lea rax, [0x180009990]
mov qword [rbx + 0x38], rax
mov qword [rbp - 0x70], rbx
or dword [rsp + 0x44], 1
lea r12, [rdi + 8]
mov qword [rsp + 0x28], r12
mov dword [rsp + 0x20], 0
mov r9, rbx
lea r8, [0x180018640]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov qword [rdi], rax
test rax, rax
je 0x18000a9d4
mov rdi, qword [rsp + 0x68]
add rdi, 0x10
mov qword [rsp + 0x68], rdi
jmp 0x18000a8ba
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x50]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rsi
lea r9, [rsp + 0x40]
mov rdx, rdi
lea rcx, [rsp + 0x60]
call fcn.180017090
mov rdi, qword [rsp + 0x68]
add rsi, 0x20
cmp rsi, r14
je 0x18000a8cd
mov rax, qword [rsp + 0x70]
jmp 0x18000a800
mov rbx, qword [rsp + 0x60]
cmp rbx, rdi
je 0x18000a923
nop word [rax + rax]
cmp dword [rbx + 8], 0
je 0x18000aa00
call qword [sym.imp.MSVCP140.dll__Thrd_id]
cmp dword [rbx + 8], eax
je 0x18000a9f4
movups xmm0, xmmword [rbx]
movaps xmmword [rbp - 0x70], xmm0
xor edx, edx
lea rcx, [rbp - 0x70]
call qword [sym.imp.MSVCP140.dll__Thrd_join]
test eax, eax
jne 0x18000a9e8
xorps xmm0, xmm0
movups xmmword [rbx], xmm0
add rbx, 0x10
cmp rbx, rdi
jne 0x18000a8e0
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x18000a98d
mov rax, rcx
mov rdx, qword [rsp + 0x68]
cmp rcx, rdx
je 0x18000a957
cmp dword [rax + 8], 0
jne 0x18000aa0c
add rax, 0x10
cmp rax, rdx
jne 0x18000a944
mov rdx, qword [rsp + 0x70]
sub rdx, rcx
and rdx, 0xfffffffffffffff0
mov rax, rcx
cmp rdx, 0x1000
jb 0x18000a988
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18000aa13
call fcn.18011b690
xor r13d, r13d
lea rcx, [rbp - 0x78]
call fcn.180014ef0
mov rax, qword [rbp - 0x78]
cmp byte [rax + 0x19], 0
je 0x18000a631
mov rcx, qword [rbp]
xor rcx, rsp
call fcn.18011b670
lea r11, [rsp + 0x110]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
mov dword [r12], 0
mov ecx, 6
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
nop
mov ecx, 2
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3
mov ecx, 5
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3
mov ecx, 1
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
nop
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_terminate]
int3
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3