Function at 0x180008e60
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 [0x1801a90c0]
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]
lea edx, [r13 + 0x28]
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x180008f10
lea r8, [rbp - 0x78]
lea rdx, [0x18014b648]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
mov rcx, qword [rsp + 0x58]
test eax, eax
je 0x180008f0a
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
lea r9d, [r13 + 0x10]
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]
mov dword [rbp - 0x50], r13d
mov qword [rbp - 0x48], r13
mov qword [rbp - 0x40], r13
xorps xmm0, xmm0
movups xmmword [rbp - 0x38], xmm0
movups xmmword [rbp - 0x28], xmm0
movups xmmword [rbp - 0x18], xmm0
mov qword [rbp - 8], r13
mov edx, 2
lea rcx, [rbp - 0x50]
call qword [sym.imp.MSVCP140.dll__Mtx_init_in_situ]
nop
mov rax, qword [0x1801c4e80]
mov rax, qword [rax]
mov qword [rsp + 0x58], rax
cmp byte [rax + 0x19], 0
jne 0x1800091f9
nop dword [rax + rax]
lea rdx, [rax + 0x20]
lea r14, [rdx + 0x20]
cmp qword [rdx + 0x18], 7
jbe 0x180008f72
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 0x180008f90
lea rcx, [rsp + 0x60]
call fcn.1800155f0
nop
lea rcx, [rsp + 0x60]
call fcn.1800089c0
mov r12d, eax
mov dword [rsp + 0x40], eax
mov rdx, qword [rsp + 0x78]
cmp rdx, 7
jbe 0x180008ff9
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180008ff4
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x180009248
call fcn.18011b060
test r12d, r12d
je 0x1800091e0
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 0x1800091dd
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 0x180009126
lea rcx, [rbp - 0x50]
mov qword [rbp - 0x78], rcx
cmp rbx, rax
je 0x1800090e4
mov ecx, 0x40
call fcn.18011b068
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.180013d40
mov dword [rdi + 0x30], r12d
lea rax, [0x180008570]
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, [0x1800175f0]
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 0x18000924f
mov rbx, qword [rsp + 0x68]
add rbx, 0x10
mov qword [rsp + 0x68], rbx
mov r15d, dword [rsp + 0x44]
jmp 0x180009113
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.180016190
mov rbx, qword [rsp + 0x68]
add rsi, 0x20
cmp rsi, r14
je 0x180009126
mov rax, qword [rsp + 0x70]
jmp 0x180009050
mov rdi, qword [rsp + 0x60]
cmp rdi, rbx
je 0x180009173
cmp dword [rdi + 8], 0
je 0x18000927a
call qword [sym.imp.MSVCP140.dll__Thrd_id]
cmp dword [rdi + 8], eax
je 0x18000926e
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 0x180009262
xorps xmm0, xmm0
movups xmmword [rdi], xmm0
add rdi, 0x10
cmp rdi, rbx
jne 0x180009130
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x1800091dd
mov rax, rcx
mov rdx, qword [rsp + 0x68]
cmp rcx, rdx
je 0x1800091a7
cmp dword [rax + 8], 0
jne 0x180009286
add rax, 0x10
cmp rax, rdx
jne 0x180009194
mov rdx, qword [rsp + 0x70]
sub rdx, rcx
and rdx, 0xfffffffffffffff0
mov rax, rcx
cmp rdx, 0x1000
jb 0x1800091d8
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18000928d
call fcn.18011b060
xor r13d, r13d
lea rcx, [rsp + 0x58]
call fcn.180014270
mov rax, qword [rsp + 0x58]
cmp byte [rax + 0x19], 0
je 0x180008f60
mov rax, qword [0x1801c4b68]
mov rax, qword [rax]
mov qword [rbp - 0x78], rax
cmp byte [rax + 0x19], 0
jne 0x180009597
nop dword [rax]
nop word [rax + rax]
lea rbx, [rax + 0x20]
lea r12, [rbx + 0x20]
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 4]
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rdi, rax
test rax, rax
jne 0x180009294
mov dword [rsp + 0x40], r13d
jmp 0x180009580
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 0x1800092a1
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
lea r9d, [rdx - 1]
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
movsxd r14, eax
mov rcx, r14
call fcn.18011b4ec
mov rsi, rax
cmp qword [rbx + 0x18], 7
jbe 0x1800092db
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.18011b060
test rbx, rbx
jne 0x180009337
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov dword [rsp + 0x40], r13d
jmp 0x180009580
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 0x180009377
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov dword [rsp + 0x40], r13d
jmp 0x180009580
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 0x180009580
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 0x18000957d
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 0x1800094bd
lea rcx, [rbp - 0x50]
mov qword [rsp + 0x48], rcx
nop word [rax + rax]
cmp rdi, rax
je 0x18000947a
mov ecx, 0x40
call fcn.18011b068
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.180013d40
mov dword [rbx + 0x30], r15d
lea rax, [0x180008570]
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, [0x1800175f0]
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 0x1800095ce
mov rdi, qword [rsp + 0x68]
add rdi, 0x10
mov qword [rsp + 0x68], rdi
jmp 0x1800094aa
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.180016190
mov rdi, qword [rsp + 0x68]
add rsi, 0x20
cmp rsi, r14
je 0x1800094bd
mov rax, qword [rsp + 0x70]
jmp 0x1800093f0
mov rbx, qword [rsp + 0x60]
cmp rbx, rdi
je 0x180009513
nop word [rax + rax]
cmp dword [rbx + 8], 0
je 0x1800095fa
call qword [sym.imp.MSVCP140.dll__Thrd_id]
cmp dword [rbx + 8], eax
je 0x1800095ee
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 0x1800095e2
xorps xmm0, xmm0
movups xmmword [rbx], xmm0
add rbx, 0x10
cmp rbx, rdi
jne 0x1800094d0
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x18000957d
mov rax, rcx
mov rdx, qword [rsp + 0x68]
cmp rcx, rdx
je 0x180009547
cmp dword [rax + 8], 0
jne 0x180009606
add rax, 0x10
cmp rax, rdx
jne 0x180009534
mov rdx, qword [rsp + 0x70]
sub rdx, rcx
and rdx, 0xfffffffffffffff0
mov rax, rcx
cmp rdx, 0x1000
jb 0x180009578
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18000960d
call fcn.18011b060
xor r13d, r13d
lea rcx, [rbp - 0x78]
call fcn.180014270
mov rax, qword [rbp - 0x78]
cmp byte [rax + 0x19], 0
je 0x180009220
lea rcx, [rbp - 0x50]
call qword [sym.imp.MSVCP140.dll__Mtx_destroy_in_situ]
mov rcx, qword [rbp]
xor rcx, rsp
call fcn.18011b040
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