Function at 0x14000b210
Capabilities:
Query service status

Disassembly:
push rbp
push rbx
push rdi
push r12
push r13
lea rbp, [rsp - 0x2f]
sub rsp, 0x100
xor ebx, ebx
lea rax, [0x1401b2860]
mov qword [rbp - 0x51], rax
mov r12, r9
mov qword [rbp - 0x61], rax
mov eax, ebx
mov r13, r8
mov edi, ebx
test rdx, rdx
je 0x14000b4dc
mov r8d, dword [0x1401b38a0]
nop
cmp dword [rcx], r8d
ja 0x14000b264
mov rdi, rcx
inc rax
add rcx, 0x50
cmp rax, rdx
jb 0x14000b250
test rdi, rdi
je 0x14000b4dc
mov rax, qword [rdi + 0x10]
lea rdx, str.ServicesActive
mov qword [rbp - 0x59], rax
mov r8d, 1
mov rax, qword [rdi + 0x20]
xor ecx, ecx
mov qword [rsp + 0x130], rsi
mov qword [rsp + 0x138], r14
mov qword [rsp + 0x140], r15
mov r15d, ebx
mov qword [rbp - 0x69], rax
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rsi, rax
test rax, rax
je 0x14000b4cb
mov r8d, 4
mov rdx, r13
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov r14, rax
test rax, rax
je 0x14000b2fd
lea rax, [rbp + 0x7f]
mov r9d, reloc.WLDAP32.dll_Ordinal_36
lea r8, [rbp + 7]
mov qword [rsp + 0x20], rax
xor edx, edx
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
mov rcx, r14
mov r15d, eax
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test r15d, r15d
je 0x14000b4cb
cmp dword [rbp + 0xb], 4
jb 0x14000b4bd
mov r8d, dword [rbp + 0x23]
xor edx, edx
mov ecx, 0x438
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov r14, rax
test rax, rax
je 0x14000b480
mov edx, 0x10
lea ecx, [rdx + 0x30]
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rsi, rax
test rax, rax
je 0x14000b494
mov edx, 8
mov dword [rax], 1
lea ecx, [rdx + 0x38]
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov qword [rsi + 8], rax
test rax, rax
je 0x14000b475
mov qword [rax], r14
lea rax, [rbp - 0x49]
mov qword [rsp + 0x50], rax
lea rax, [rbp - 0x39]
mov qword [rbp - 0x79], rax
mov dword [rbp - 0x71], ebx
test r12, r12
je 0x14000b3bb
mov rdx, r12
lea rcx, [rbp - 0x49]
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
lea r8, [rsp + 0x50]
mov rcx, rsi
lea rdx, [0x14000c1c0]
call fcn.14000b8b0
test eax, eax
js 0x14000b457
mov ecx, dword [rbp - 0x71]
jmp 0x14000b3d5
lea r8, [rbp - 0x39]
mov rcx, rsi
lea rdx, [0x14000c220]
call fcn.14000b8b0
test eax, eax
mov ecx, ebx
setns cl
test ecx, ecx
je 0x14000b457
mov eax, dword [rbp - 0x29]
lea r9, [rbp - 0x69]
mov ecx, dword [rdi + 0x18]
lea rdx, [rbp - 0x59]
movups xmm0, xmmword [rbp - 0x39]
mov r8d, dword [rdi + 8]
mov qword [rsp + 0x40], rbx
mov dword [rsp + 0x38], ebx
mov qword [rbp - 9], rax
mov eax, dword [rdi + 0x28]
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rcx
lea rcx, [rbp - 0x19]
movups xmmword [rbp - 0x19], xmm0
call fcn.14000afc0
mov ebx, eax
test eax, eax
je 0x14000b439
mov rdx, r13
lea rcx, [0x14015a6b0]
call fcn.14000afb0
mov rcx, rsi
call fcn.14000a670
jmp 0x14000b494
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.ERROR_kull_m_patch_genericProcessOrServiceFromBuild___kull_m_patch__0x_08x__n
call fcn.14000afb0
mov rcx, rsi
call fcn.14000a670
jmp 0x14000b494
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.ERROR_kull_m_patch_genericProcessOrServiceFromBuild___kull_m_process_getVeryBasicModuleInformationsForName__0x_08x__n
call fcn.14000afb0
mov rcx, rsi
call fcn.14000a670
jmp 0x14000b494
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x14000b494
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.ERROR_kull_m_patch_genericProcessOrServiceFromBuild___OpenProcess__0x_08x__n
call fcn.14000afb0
mov r14, qword [rsp + 0x138]
mov eax, ebx
mov rsi, qword [rsp + 0x130]
mov r15, qword [rsp + 0x140]
add rsp, 0x100
pop r13
pop r12
pop rdi
pop rbx
pop rbp
ret
lea rcx, str.ERROR_kull_m_patch_genericProcessOrServiceFromBuild___Service_is_not_running_n
call fcn.14000afb0
jmp 0x14000b494
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.ERROR_kull_m_patch_genericProcessOrServiceFromBuild___kull_m_service_getUniqueForName__0x_08x__n
jmp 0x14000b48f
lea rcx, str.ERROR_kull_m_patch_genericProcessOrServiceFromBuild___Incorrect_version_in_references_n
call fcn.14000afb0
mov eax, ebx
add rsp, 0x100
pop r13
pop r12
pop rdi
pop rbx
pop rbp
ret