Function at 0x18000a2a0
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 [0x18011f0c0]
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 0x18000a353
lea r8, [rbp - 0x78]
lea rdx, [0x1800c8648]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
mov rcx, qword [rsp + 0x58]
test eax, eax
je 0x18000a34d
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 [0x180203890]
mov rax, qword [rax]
mov qword [rsp + 0x58], rax
cmp byte [rax + 0x19], r13b
jne 0x18000a639
nop word [rax + rax]
lea rdx, [rax + 0x20]
lea r14, [rdx + 0x20]
cmp qword [rdx + 0x18], 7
jbe 0x18000a3b2
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 0x18000a3d0
lea rcx, [rsp + 0x60]
call fcn.180016a20
nop
lea rcx, [rsp + 0x60]
call fcn.180009e00
mov r12d, eax
mov dword [rsp + 0x40], eax
mov rdx, qword [rsp + 0x78]
cmp rdx, 7
jbe 0x18000a439
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18000a434
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18000a67b
call fcn.1800b3380
test r12d, r12d
je 0x18000a620
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 0x18000a61d
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 0x18000a566
lea rcx, [rbp - 0x50]
mov qword [rbp - 0x78], rcx
cmp rbx, rax
je 0x18000a524
mov ecx, 0x40
call fcn.1800b3388
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.180014d70
mov dword [rdi + 0x30], r12d
lea rax, [0x1800099b0]
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, [0x180018b70]
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 0x18000a682
mov rbx, qword [rsp + 0x68]
add rbx, 0x10
mov qword [rsp + 0x68], rbx
mov r15d, dword [rsp + 0x44]
jmp 0x18000a553
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.1800175c0
mov rbx, qword [rsp + 0x68]
add rsi, 0x20
cmp rsi, r14
je 0x18000a566
mov rax, qword [rsp + 0x70]
jmp 0x18000a490
mov rdi, qword [rsp + 0x60]
cmp rdi, rbx
je 0x18000a5b3
cmp dword [rdi + 8], 0
je 0x18000a6ad
call qword [sym.imp.MSVCP140.dll__Thrd_id]
cmp dword [rdi + 8], eax
je 0x18000a6a1
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 0x18000a695
xorps xmm0, xmm0
movups xmmword [rdi], xmm0
add rdi, 0x10
cmp rdi, rbx
jne 0x18000a570
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x18000a61d
mov rax, rcx
mov rdx, qword [rsp + 0x68]
cmp rcx, rdx
je 0x18000a5e7
cmp dword [rax + 8], 0
jne 0x18000a6b9
add rax, 0x10
cmp rax, rdx
jne 0x18000a5d4
mov rdx, qword [rsp + 0x70]
sub rdx, rcx
and rdx, 0xfffffffffffffff0
mov rax, rcx
cmp rdx, 0x1000
jb 0x18000a618
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18000a6c0
call fcn.1800b3380
xor r13d, r13d
lea rcx, [rsp + 0x58]
call fcn.180015420
mov rax, qword [rsp + 0x58]
cmp byte [rax + 0x19], 0
je 0x18000a3a0
mov rax, qword [0x180203578]
mov rax, qword [rax]
mov qword [rbp - 0x78], rax
cmp byte [rax + 0x19], 0
jne 0x18000a9c7
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 0x18000a6c7
mov dword [rsp + 0x40], r13d
jmp 0x18000a9b0
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 0x18000a6d4
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.1800b380c
mov rsi, rax
cmp qword [rbx + 0x18], 7
jbe 0x18000a710
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.1800b3380
test rbx, rbx
jne 0x18000a76c
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov dword [rsp + 0x40], r13d
jmp 0x18000a9b0
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 0x18000a7ac
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov dword [rsp + 0x40], r13d
jmp 0x18000a9b0
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 0x18000a9b0
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 0x18000a9ad
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 0x18000a8ed
lea rcx, [rbp - 0x50]
mov qword [rsp + 0x48], rcx
nop
cmp rdi, rax
je 0x18000a8aa
mov ecx, 0x40
call fcn.1800b3388
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.180014d70
mov dword [rbx + 0x30], r15d
lea rax, [0x1800099b0]
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, [0x180018b70]
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 0x18000a9f4
mov rdi, qword [rsp + 0x68]
add rdi, 0x10
mov qword [rsp + 0x68], rdi
jmp 0x18000a8da
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.1800175c0
mov rdi, qword [rsp + 0x68]
add rsi, 0x20
cmp rsi, r14
je 0x18000a8ed
mov rax, qword [rsp + 0x70]
jmp 0x18000a820
mov rbx, qword [rsp + 0x60]
cmp rbx, rdi
je 0x18000a943
nop word [rax + rax]
cmp dword [rbx + 8], 0
je 0x18000aa20
call qword [sym.imp.MSVCP140.dll__Thrd_id]
cmp dword [rbx + 8], eax
je 0x18000aa14
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 0x18000aa08
xorps xmm0, xmm0
movups xmmword [rbx], xmm0
add rbx, 0x10
cmp rbx, rdi
jne 0x18000a900
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x18000a9ad
mov rax, rcx
mov rdx, qword [rsp + 0x68]
cmp rcx, rdx
je 0x18000a977
cmp dword [rax + 8], 0
jne 0x18000aa2c
add rax, 0x10
cmp rax, rdx
jne 0x18000a964
mov rdx, qword [rsp + 0x70]
sub rdx, rcx
and rdx, 0xfffffffffffffff0
mov rax, rcx
cmp rdx, 0x1000
jb 0x18000a9a8
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18000aa33
call fcn.1800b3380
xor r13d, r13d
lea rcx, [rbp - 0x78]
call fcn.180015420
mov rax, qword [rbp - 0x78]
cmp byte [rax + 0x19], 0
je 0x18000a651
mov rcx, qword [rbp]
xor rcx, rsp
call fcn.1800b3360
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