Function at 0x180034e10
Capabilities:
Enumerate services

Disassembly:
push rdi
sub rsp, 0x1b0
mov rax, qword [0x180076dc0]
xor rax, rsp
mov qword [rsp + 0x1a8], rax
mov dword [rsp + 0x130], 0
mov r8d, 4
xor edx, edx
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov qword [rsp + 0xa8], rax
movzx eax, byte [0x180076d1c]
movsx eax, al
mov dword [rsp + 0x7c], eax
call fcn.180029ea0
movsx eax, al
mov ecx, dword [rsp + 0x7c]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x84], eax
call fcn.180029e70
movsx eax, al
imul eax, eax, 6
mov dword [rsp + 0x80], eax
call fcn.180029e60
movsx eax, al
mov ecx, dword [rsp + 0x80]
imul ecx, eax
mov eax, ecx
mov ecx, dword [rsp + 0x84]
add ecx, eax
mov eax, ecx
movzx ecx, byte [reloc.OLEAUT32.dll_VariantClear]
movsx ecx, cl
xor edx, edx
div ecx
movzx ecx, byte [0x180076d18]
movsx ecx, cl
sub eax, ecx
test eax, eax
je 0x18003505e
cmp qword [rsp + 0xa8], 0
jne 0x180034edf
mov qword [rsp + 0x118], 1
jmp 0x180034eeb
mov qword [rsp + 0x118], 0
cvtsi2sd xmm0, qword [rsp + 0x118]
call fcn.180035a00
mov dword [rsp + 0x94], eax
movzx ecx, byte [0x180076d1c]
movsx ecx, cl
mov dword [rsp + 0x88], ecx
call fcn.180029ea0
movsx eax, al
mov ecx, dword [rsp + 0x88]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x90], eax
call fcn.180029e70
movsx eax, al
imul eax, eax, 7
mov dword [rsp + 0x8c], eax
call fcn.180029e60
movsx eax, al
mov ecx, dword [rsp + 0x8c]
imul ecx, eax
mov eax, ecx
mov ecx, dword [rsp + 0x90]
add ecx, eax
mov eax, ecx
movzx ecx, byte [reloc.OLEAUT32.dll_VariantClear]
movsx ecx, cl
xor edx, edx
div ecx
movzx ecx, byte [0x180076d18]
movsx ecx, cl
sub eax, ecx
mov ecx, dword [rsp + 0x94]
imul ecx, eax
mov eax, ecx
test eax, eax
je 0x18003505e
xor eax, eax
cmp eax, 2
je 0x18003505e
mov dword [rsp + 0x4c], 0
jmp 0x180034faa
mov eax, dword [rsp + 0x4c]
inc eax
mov dword [rsp + 0x4c], eax
movzx eax, byte [0x180076d1c]
movsx eax, al
mov dword [rsp + 0x98], eax
call fcn.180029ea0
movsx eax, al
mov ecx, dword [rsp + 0x98]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0xa0], eax
call fcn.180029e70
movsx eax, al
shl eax, 3
mov dword [rsp + 0x9c], eax
call fcn.180029e60
movsx eax, al
mov ecx, dword [rsp + 0x9c]
imul ecx, eax
mov eax, ecx
mov ecx, dword [rsp + 0xa0]
add ecx, eax
mov eax, ecx
movzx ecx, byte [reloc.OLEAUT32.dll_VariantClear]
movsx ecx, cl
xor edx, edx
div ecx
movzx ecx, byte [0x180076d18]
movsx ecx, cl
sub eax, ecx
mov eax, eax
cvtsi2sd xmm0, rax
call fcn.180035a00
cmp dword [rsp + 0x4c], eax
jge 0x18003505e
mov dword [rsp + 0x50], 0
jmp 0x180035046
cmp dword [rsp + 0x50], 0x61
jae 0x180035059
mov eax, 0xffffffff
jmp 0x1800357e3
jmp 0x180034fa0
mov dword [rsp + 0x1a0], 0
mov dword [rsp + 0x198], 0
mov dword [rsp + 0x19c], 0
mov edx, 0x10000
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov qword [rsp + 0x70], rax
lea rax, [rsp + 0x19c]
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0x198]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x1a0]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x10000
mov r9, qword [rsp + 0x70]
mov r8d, 3
mov edx, 0x30
mov rcx, qword [rsp + 0xa8]
call qword [sym.imp.ADVAPI32.dll_EnumServicesStatusA]
test eax, eax
je 0x1800350ec
mov byte [rsp + 0x40], 1
jmp 0x1800350f1
mov byte [rsp + 0x40], 0
movzx eax, byte [rsp + 0x40]
mov byte [rsp + 0x41], al
movzx eax, byte [0x180076d1c]
movsx eax, al
mov dword [rsp + 0xb0], eax
call fcn.180029ea0
movsx eax, al
mov ecx, dword [rsp + 0xb0]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0xb8], eax
call fcn.180029e70
movsx eax, al
imul eax, eax, 3
mov dword [rsp + 0xb4], eax
call fcn.180029e60
movsx eax, al
mov ecx, dword [rsp + 0xb4]
imul ecx, eax
mov eax, ecx
mov ecx, dword [rsp + 0xb8]
add ecx, eax
mov eax, ecx
movzx ecx, byte [reloc.OLEAUT32.dll_VariantClear]
movsx ecx, cl
xor edx, edx
div ecx
movzx ecx, byte [0x180076d18]
movsx ecx, cl
sub eax, ecx
test eax, eax
je 0x18003530e
movzx eax, byte [rsp + 0x41]
test eax, eax
jne 0x18003518f
mov qword [rsp + 0x120], 1
jmp 0x18003519b
mov qword [rsp + 0x120], 0
cvtsi2sd xmm0, qword [rsp + 0x120]
call fcn.180035a00
mov dword [rsp + 0xc8], eax
movzx ecx, byte [0x180076d1c]
movsx ecx, cl
mov dword [rsp + 0xbc], ecx
call fcn.180029ea0
movsx eax, al
mov ecx, dword [rsp + 0xbc]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0xc4], eax
call fcn.180029e70
movsx eax, al
shl eax, 2
mov dword [rsp + 0xc0], eax
call fcn.180029e60
movsx eax, al
mov ecx, dword [rsp + 0xc0]
imul ecx, eax
mov eax, ecx
mov ecx, dword [rsp + 0xc4]
add ecx, eax
mov eax, ecx
movzx ecx, byte [reloc.OLEAUT32.dll_VariantClear]
movsx ecx, cl
xor edx, edx
div ecx
movzx ecx, byte [0x180076d18]
movsx ecx, cl
sub eax, ecx
mov ecx, dword [rsp + 0xc8]
imul ecx, eax
mov eax, ecx
test eax, eax
je 0x18003530e
xor eax, eax
cmp eax, 9
je 0x18003530e
mov dword [rsp + 0x54], 0
jmp 0x18003525a
mov eax, dword [rsp + 0x54]
inc eax
mov dword [rsp + 0x54], eax
movzx eax, byte [0x180076d1c]
movsx eax, al
mov dword [rsp + 0xcc], eax
call fcn.180029ea0
movsx eax, al
mov ecx, dword [rsp + 0xcc]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0xd4], eax
call fcn.180029e70
movsx eax, al
imul eax, eax, 5
mov dword [rsp + 0xd0], eax
call fcn.180029e60
movsx eax, al
mov ecx, dword [rsp + 0xd0]
imul ecx, eax
mov eax, ecx
mov ecx, dword [rsp + 0xd4]
add ecx, eax
mov eax, ecx
movzx ecx, byte [reloc.OLEAUT32.dll_VariantClear]
movsx ecx, cl
xor edx, edx
div ecx
movzx ecx, byte [0x180076d18]
movsx ecx, cl
sub eax, ecx
mov eax, eax
cvtsi2sd xmm0, rax
call fcn.180035a00
cmp dword [rsp + 0x54], eax
jge 0x18003530e
mov dword [rsp + 0x58], 0
jmp 0x1800352f6
cmp dword [rsp + 0x58], 0xe
jae 0x180035309
mov eax, 0xffffffff
jmp 0x1800357e3
jmp 0x180035250
mov dword [rsp + 0x5c], 0
jmp 0x180035322
mov eax, dword [rsp + 0x5c]
inc eax
mov dword [rsp + 0x5c], eax
movzx eax, byte [0x180076d1c]
movsx eax, al
mov dword [rsp + 0xd8], eax
call fcn.180029ea0
movsx eax, al
mov ecx, dword [rsp + 0xd8]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0xe0], eax
call fcn.180029e70
movsx eax, al
imul eax, eax, 0xa
mov dword [rsp + 0xdc], eax
call fcn.180029e60
movsx eax, al
mov ecx, dword [rsp + 0xdc]
imul ecx, eax
mov eax, ecx
mov ecx, dword [rsp + 0xe0]
add ecx, eax
mov eax, ecx
movzx ecx, byte [reloc.OLEAUT32.dll_VariantClear]
movsx ecx, cl
xor edx, edx
div ecx
movzx ecx, byte [0x180076d18]
movsx ecx, cl
sub eax, ecx
mov eax, eax
cvtsi2sd xmm0, rax
call fcn.180035a00
cmp dword [rsp + 0x5c], eax
jge 0x180035712
mov dword [rsp + 0x48], 0
jmp 0x1800353c2
mov eax, dword [rsp + 0x48]
inc eax
mov dword [rsp + 0x48], eax
mov eax, dword [rsp + 0x198]
cmp dword [rsp + 0x48], eax
jae 0x18003570d
movzx eax, byte [0x180076d1c]
movsx eax, al
mov dword [rsp + 0xe4], eax
call fcn.180029ea0
movsx eax, al
mov ecx, dword [rsp + 0xe4]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0xec], eax
call fcn.180029e70
movsx eax, al
imul eax, eax, 5
mov dword [rsp + 0xe8], eax
call fcn.180029e60
movsx eax, al
mov ecx, dword [rsp + 0xe8]
imul ecx, eax
mov eax, ecx
mov ecx, dword [rsp + 0xec]
add ecx, eax
mov eax, ecx
movzx ecx, byte [reloc.OLEAUT32.dll_VariantClear]
movsx ecx, cl
xor edx, edx
div ecx
movzx ecx, byte [0x180076d18]
movsx ecx, cl
sub eax, ecx
test eax, eax
je 0x180035708
lea rax, [rsp + 0x42]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
lea rdx, [rsp + 0x138]
lea rcx, [rsp + 0x42]
call fcn.180031650
mov rcx, rax
call fcn.180031530
mov ecx, dword [rsp + 0x48]
imul rcx, rcx, 0x30
mov rdx, rax
mov rax, qword [rsp + 0x70]
mov rcx, qword [rax + rcx + 8]
call fcn.180035c10
test rax, rax
jne 0x18003558f
lea rax, [rsp + 0x43]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
lea rdx, [rsp + 0x178]
lea rcx, [rsp + 0x43]
call fcn.1800318f0
mov rcx, rax
call fcn.1800314d0
mov ecx, dword [rsp + 0x48]
imul rcx, rcx, 0x30
mov rdx, rax
mov rax, qword [rsp + 0x70]
mov rcx, qword [rax + rcx + 8]
call fcn.180035c10
test rax, rax
jne 0x18003558f
lea rax, [rsp + 0x44]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
lea rdx, [rsp + 0x148]
lea rcx, [rsp + 0x44]
call fcn.180031ab0
mov rcx, rax
call fcn.180031470
mov ecx, dword [rsp + 0x48]
imul rcx, rcx, 0x30
mov rdx, rax
mov rax, qword [rsp + 0x70]
mov rcx, qword [rax + rcx + 8]
call fcn.180035c10
test rax, rax
jne 0x18003558f
lea rax, [rsp + 0x45]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
lea rdx, [rsp + 0x160]
lea rcx, [rsp + 0x45]
call fcn.180031b90
mov rcx, rax
call fcn.1800314b0
mov ecx, dword [rsp + 0x48]
imul rcx, rcx, 0x30
mov rdx, rax
mov rax, qword [rsp + 0x70]
mov rcx, qword [rax + rcx + 8]
call fcn.180035c10
test rax, rax
jne 0x18003558f
mov qword [rsp + 0x128], 0
jmp 0x18003559b
mov qword [rsp + 0x128], 1
cvtsi2sd xmm0, qword [rsp + 0x128]
call fcn.180035a00
mov dword [rsp + 0x78], eax
movzx ecx, byte [0x180076d1c]
movsx ecx, cl
mov dword [rsp + 0xf0], ecx
call fcn.180029ea0
movsx eax, al
mov ecx, dword [rsp + 0xf0]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0xf8], eax
call fcn.180029e70
movsx eax, al
imul eax, eax, 0xa
mov dword [rsp + 0xf4], eax
call fcn.180029e60
movsx eax, al
mov ecx, dword [rsp + 0xf4]
imul ecx, eax
mov eax, ecx
mov ecx, dword [rsp + 0xf8]
add ecx, eax
mov eax, ecx
movzx ecx, byte [reloc.OLEAUT32.dll_VariantClear]
movsx ecx, cl
xor edx, edx
div ecx
movzx ecx, byte [0x180076d18]
movsx ecx, cl
sub eax, ecx
mov ecx, dword [rsp + 0x78]
imul ecx, eax
mov eax, ecx
test eax, eax
je 0x180035708
xor eax, eax
cmp eax, 1
je 0x180035708
mov dword [rsp + 0x60], 0
jmp 0x180035654
mov eax, dword [rsp + 0x60]
inc eax
mov dword [rsp + 0x60], eax
movzx eax, byte [0x180076d1c]
movsx eax, al
mov dword [rsp + 0xfc], eax
call fcn.180029ea0
movsx eax, al
mov ecx, dword [rsp + 0xfc]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x104], eax
call fcn.180029e70
movsx eax, al
imul eax, eax, 7
mov dword [rsp + 0x100], eax
call fcn.180029e60
movsx eax, al
mov ecx, dword [rsp + 0x100]
imul ecx, eax
mov eax, ecx
mov ecx, dword [rsp + 0x104]
add ecx, eax
mov eax, ecx
movzx ecx, byte [reloc.OLEAUT32.dll_VariantClear]
movsx ecx, cl
xor edx, edx
div ecx
movzx ecx, byte [0x180076d18]
movsx ecx, cl
sub eax, ecx
mov eax, eax
cvtsi2sd xmm0, rax
call fcn.180035a00
cmp dword [rsp + 0x60], eax
jge 0x180035708
mov dword [rsp + 0x64], 0
jmp 0x1800356f0
cmp dword [rsp + 0x64], 0x38
jae 0x180035703
mov eax, 1
jmp 0x1800357e3
jmp 0x18003564a
jmp 0x1800353b8
jmp 0x180035318
mov rcx, qword [rsp + 0xa8]
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
nop
mov dword [rsp + 0x68], 0
jmp 0x180035735
mov eax, dword [rsp + 0x68]
inc eax
mov dword [rsp + 0x68], eax
movzx eax, byte [0x180076d1c]
movsx eax, al
mov dword [rsp + 0x108], eax
call fcn.180029ea0
movsx eax, al
mov ecx, dword [rsp + 0x108]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x110], eax
call fcn.180029e70
movsx eax, al
imul eax, eax, 7
mov dword [rsp + 0x10c], eax
call fcn.180029e60
movsx eax, al
mov ecx, dword [rsp + 0x10c]
imul ecx, eax
mov eax, ecx
mov ecx, dword [rsp + 0x110]
add ecx, eax
mov eax, ecx
movzx ecx, byte [reloc.OLEAUT32.dll_VariantClear]
movsx ecx, cl
xor edx, edx
div ecx
movzx ecx, byte [0x180076d18]
movsx ecx, cl
sub eax, ecx
mov eax, eax
cvtsi2sd xmm0, rax
call fcn.180035a00
cmp dword [rsp + 0x68], eax
jge 0x1800357e3
mov dword [rsp + 0x6c], 0
jmp 0x1800357d1
cmp dword [rsp + 0x6c], 0x52
jae 0x1800357de
xor eax, eax
jmp 0x1800357e3
jmp 0x18003572b
mov rcx, qword [rsp + 0x1a8]
xor rcx, rsp
call fcn.18003c9d0
add rsp, 0x1b0
pop rdi
ret