Function at 0x14009b890
Capabilities:
Enumerate services

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 - 0x37]
sub rsp, 0x100
mov rax, qword [0x1402a76c0]
xor rax, rsp
mov qword [rbp + 0x27], rax
lea rdx, str.OperateService::CheckStatusSpoolerDepend
lea rcx, [rbp - 0x69]
call fcn.14001abe0
nop
lea r12, [0x1402a8360]
lea rsi, [0x1402bbdb0]
mov rcx, qword [0x1402a8360]
cmp rcx, r12
je 0x14009b91b
test byte [rcx + 0x1c], 1
je 0x14009b91b
mov r9, rsi
cmp qword [0x1402bbdc8], 8
cmovae r9, qword [0x1402bbdb0]
mov edx, 0x2f
lea r8, [0x140259e30]
mov rcx, qword [rcx + 0x10]
call fcn.140001ad0
xor edi, edi
mov dword [rsp + 0x40], edi
mov dword [rsp + 0x44], edi
mov word [rsp + 0x48], di
xor edx, edx
xor ecx, ecx
mov r8d, 0x800f003f
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov r15, rax
mov qword [rbp - 0x71], rax
test rax, rax
je 0x14009bdaf
mov r8d, 0xf01ff
lea rdx, str.SPOOLER
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov r14, rax
mov qword [rbp - 0x79], rax
test rax, rax
je 0x14009bd52
lea rax, [rsp + 0x44]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
mov r9d, 1
lea r8, [rsp + 0x48]
mov edx, r9d
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_EnumDependentServicesW]
test eax, eax
jne 0x14009ba55
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xea
je 0x14009ba55
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, qword [0x1402a8360]
cmp rax, r12
je 0x14009ba0c
test byte [rax + 0x1c], 2
je 0x14009ba0c
mov rbx, rsi
cmp qword [0x1402bbdc8], 8
cmovae rbx, qword [0x1402bbdb0]
lea rcx, [rbp - 0x69]
call fcn.14001b0b0
lea edx, [rdi + 0x30]
mov qword [rsp + 0x20], rax
mov r9, rbx
lea r8, [0x140259e30]
mov rcx, qword [0x1402a8360]
mov rcx, qword [rcx + 0x10]
call fcn.140006c90
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, r15
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov dword [0x1402bbd98], 0x28
mov byte [rbp - 0x61], 1
mov edi, 0x80010028
mov rax, qword [0x1402a8360]
cmp rax, r12
je 0x14009be4a
test byte [rax + 0x1c], 1
je 0x14009be4a
mov edx, 0x31
jmp 0x14009be1c
mov rcx, qword [0x1402a8360]
cmp rcx, r12
je 0x14009ba9f
test byte [rcx + 0x1c], 4
je 0x14009ba9f
mov r9, rsi
cmp qword [0x1402bbdc8], 8
cmovae r9, qword [0x1402bbdb0]
mov edx, 0x32
mov eax, dword [rsp + 0x44]
mov dword [rsp + 0x28], eax
mov eax, dword [rsp + 0x40]
mov dword [rsp + 0x20], eax
lea r8, [0x140259e30]
mov rcx, qword [rcx + 0x10]
call fcn.1400515a0
mov edx, dword [rsp + 0x40]
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov r13, rax
mov rcx, r14
test rax, rax
jne 0x14009bafe
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, r15
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov dword [0x1402bbd98], 2
mov byte [rbp - 0x61], 1
mov edi, 0x80010002
mov rax, qword [0x1402a8360]
cmp rax, r12
je 0x14009be4a
test byte [rax + 0x1c], 1
je 0x14009be4a
lea edx, [r13 + 0x33]
jmp 0x14009be1c
lea rax, [rsp + 0x44]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
mov r9d, dword [rsp + 0x40]
mov r8, r13
mov edx, 1
call qword [sym.imp.ADVAPI32.dll_EnumDependentServicesW]
test eax, eax
jne 0x14009bbcb
mov rcx, qword [0x1402a8360]
cmp rcx, r12
je 0x14009bb79
test byte [rcx + 0x1c], 2
je 0x14009bb79
mov r9, rsi
cmp qword [0x1402bbdc8], 8
cmovae r9, qword [0x1402bbdb0]
lea edx, [rax + 0x34]
mov eax, dword [rsp + 0x40]
mov dword [rsp + 0x28], eax
lea rax, str._t_t_tEnumDependentServices2__d_
mov qword [rsp + 0x20], rax
lea r8, [0x140259e30]
mov rcx, qword [rcx + 0x10]
call fcn.140047db0
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_GlobalFree]
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, r15
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov dword [0x1402bbd98], 0x28
mov byte [rbp - 0x61], 1
mov edi, 0x80010028
mov rax, qword [0x1402a8360]
cmp rax, r12
je 0x14009be4a
test byte [rax + 0x1c], 1
je 0x14009be4a
mov edx, 0x35
jmp 0x14009be1c
mov r12d, edi
mov ebx, edi
cmp dword [rsp + 0x44], ebx
jbe 0x14009bd2b
mov r10, qword [0x1402a8360]
lea rdi, [0x1402a8360]
nop dword [rax + rax]
xorps xmm0, xmm0
movups xmmword [rbp - 0x19], xmm0
movups xmmword [rbp - 9], xmm0
movups xmmword [rbp + 7], xmm0
movups xmmword [rbp + 0x17], xmm0
mov eax, ebx
lea r15, [rax + rax*2]
shl r15, 4
add r15, r13
mov r14d, dword [r15 + 0x14]
cmp r10, rdi
je 0x14009bc60
test byte [r10 + 0x1c], 4
je 0x14009bc60
mov r9, rsi
cmp qword [0x1402bbdc8], 8
cmovae r9, qword [0x1402bbdb0]
mov edx, 0x36
mov rax, qword [r15]
mov qword [rsp + 0x28], rax
mov rax, qword [r15 + 8]
mov qword [rsp + 0x20], rax
lea r8, [0x140259e30]
mov rcx, qword [r10 + 0x10]
call fcn.14002fbe0
mov r10, qword [0x1402a8360]
lea eax, [r14 - 2]
test eax, 0xfffffffc
jne 0x14009bd15
cmp r14d, 3
je 0x14009bd15
mov r9d, r12d
lea r8, str.SPOOLERDEP_d
mov edx, 0x20
lea rcx, [rbp - 0x19]
call fcn.14002fb20
mov rcx, qword [0x1402a8360]
cmp rcx, rdi
je 0x14009bcdd
test byte [rcx + 0x1c], 4
je 0x14009bcdd
mov r9, rsi
cmp qword [0x1402bbdc8], 8
cmovae r9, qword [0x1402bbdb0]
mov edx, 0x37
mov dword [rsp + 0x30], r14d
mov rax, qword [r15]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], r12d
lea r8, [0x140259e30]
mov rcx, qword [rcx + 0x10]
call fcn.1400482c0
mov rcx, qword [0x1402bbf50]
mov rax, qword [rcx]
mov rax, qword [rax + 0x48]
call qword [case.0x1400136d6.0]
mov r9, rax
mov rcx, qword [rax]
mov rax, qword [rcx + 0x20]
mov r8, qword [r15]
lea rdx, [rbp - 0x19]
mov rcx, r9
call qword [case.0x1400136d6.0]
inc r12d
mov r10, qword [0x1402a8360]
inc ebx
cmp ebx, dword [rsp + 0x44]
jb 0x14009bbf0
xor edi, edi
mov r14, qword [rbp - 0x79]
mov r15, qword [rbp - 0x71]
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_GlobalFree]
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
lea r12, [0x1402a8360]
mov rcx, r15
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x14009be01
mov rax, qword [0x1402a8360]
cmp rax, r12
je 0x14009bda4
test byte [rax + 0x1c], 2
je 0x14009bda4
mov rbx, rsi
cmp qword [0x1402bbdc8], 8
cmovae rbx, qword [0x1402bbdb0]
lea rcx, [rbp - 0x69]
call fcn.14001b0b0
mov edx, 0x38
mov qword [rsp + 0x20], rax
mov r9, rbx
lea r8, [0x140259e30]
mov rcx, qword [0x1402a8360]
mov rcx, qword [rcx + 0x10]
call fcn.140006c90
mov rcx, r15
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x14009be01
mov rax, qword [0x1402a8360]
cmp rax, r12
je 0x14009be08
test byte [rax + 0x1c], 2
je 0x14009be08
mov rbx, rsi
cmp qword [0x1402bbdc8], 8
cmovae rbx, qword [0x1402bbdb0]
lea rcx, [rbp - 0x69]
call fcn.14001b0b0
mov edx, 0x39
mov qword [rsp + 0x20], rax
mov r9, rbx
lea r8, [0x140259e30]
mov rcx, qword [0x1402a8360]
mov rcx, qword [rcx + 0x10]
call fcn.140006c90
mov rax, qword [0x1402a8360]
mov byte [rbp - 0x61], 1
cmp rax, r12
je 0x14009be4a
test byte [rax + 0x1c], 1
je 0x14009be4a
mov edx, 0x3a
mov r9, rsi
cmp qword [0x1402bbdc8], 8
mov dword [rsp + 0x20], edi
cmovae r9, qword [0x1402bbdb0]
lea r8, [0x140259e30]
mov rcx, qword [rax + 0x10]
call fcn.140001b40
mov rax, qword [0x1402a8360]
lea rcx, vtable.WppTrace.0
mov qword [rbp - 0x69], rcx
cmp byte [rbp - 0x61], 0
jne 0x14009bea1
cmp rax, r12
je 0x14009bea1
test byte [rax + 0x1c], 1
je 0x14009bea1
lea rcx, [rbp - 0x59]
cmp qword [rbp - 0x41], 8
cmovae rcx, qword [rbp - 0x59]
cmp qword [0x1402bbdc8], 8
cmovae rsi, qword [0x1402bbdb0]
mov edx, 0xa
mov qword [rsp + 0x20], rcx
mov r9, rsi
lea r8, [0x140252818]
mov rcx, qword [rax + 0x10]
call fcn.140006c90
lea rcx, [rbp - 0x39]
call fcn.1400048a0
lea rcx, [rbp - 0x59]
call fcn.1400048a0
mov eax, edi
mov rcx, qword [rbp + 0x27]
xor rcx, rsp
call fcn.1401e2900
lea r11, [rsp + 0x100]
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