Function at 0x101d43d0
Capabilities:
Enumerate services
Modify service
Query service status
Stop service

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0xe0
mov ecx, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
xor edi, edi
mov eax, dword [ecx + 0xc]
test eax, eax
je 0x101d4435
mov ecx, dword [ecx + 0x14]
test ecx, ecx
je 0x101d4435
add ecx, eax
mov dword [esp + 0x20], 1
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], ecx
mov word [esp + 0x2c], 0
lea ecx, [esp + 0x10]
lea edx, [esp + 0x20]
call fcn.101aeea0
mov edi, dword [esp + 0x10]
cmp dword [esp + 0x14], 0
je 0x101d4435
mov eax, dword [0x1044eff8]
push edi
push 0
push dword [eax]
call sub.KERNEL32.dll_HeapFree
push 0xf003f
push 0
push edi
call sub.advapi32.dll_OpenSCManagerW
mov dword [esp + 0xc8], eax
call sub.KERNEL32.dll_GetLastError
test eax, eax
mov dword [esp + 0xd4], eax
je 0x101d4504
lea eax, [esp + 0xd4]
mov dword [esp + 0x20], 0x10443454
mov dword [esp + 0x24], 1
mov dword [esp + 0x30], 0
mov dword [esp + 0x10], eax
lea eax, [esp + 0x10]
mov dword [esp + 0x14], 0x1002df20
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], 1
lea eax, [esp + 0x20]
push eax
call fcn.100748a0
add esp, 4
mov ebx, dword [esi + 8]
mov eax, dword [esi]
test ebx, ebx
mov dword [esp + 0x50], eax
je 0x101d44e9
mov eax, dword [esp + 0x50]
mov edi, dword [0x1044eff8]
lea esi, [eax + 4]
jmp 0x101d44d6
add esi, 0x10
dec ebx
je 0x101d44e9
cmp dword [esi], 0
je 0x101d44d0
push dword [esi - 4]
push 0
push dword [edi]
call sub.KERNEL32.dll_HeapFree
jmp 0x101d44d0
mov eax, dword [ebp + 0xc]
cmp dword [eax + 4], 0
je 0x101d503d
mov eax, dword [0x1044eff8]
push dword [esp + 0x50]
jmp 0x101d5034
mov ecx, dword [esi + 8]
mov edi, dword [esi]
mov eax, dword [esi + 4]
mov ebx, ecx
mov dword [esp + 0xa4], edi
mov dword [esp + 0xa8], eax
mov dword [esp + 0xac], edi
shl ebx, 4
add ebx, edi
test ecx, ecx
mov dword [esp + 0xb0], ebx
je 0x101d501e
add edi, 0x10
jmp 0x101d454e
add esi, 0x10
add edi, 0x10
cmp esi, ebx
je 0x101d4fe7
cmp byte [edi - 4], 2
je 0x101d4fe9
mov ecx, dword [edi - 0xc]
mov eax, dword [edi - 0x10]
mov dword [esp + 0x98], ecx
mov ecx, dword [edi - 8]
mov dword [esp + 0x70], ecx
push ecx
mov dword [esp + 0x54], eax
push eax
lea eax, [esp + 0x28]
push eax
call fcn.1002ad90
add esp, 0xc
xor eax, eax
cmp dword [esp + 0x20], 0
jne 0x101d4597
mov eax, dword [esp + 0x28]
mov dword [esp + 0xd0], eax
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0xd0]
test eax, eax
mov edx, 9
mov dword [esp + 0x20], 1
cmove ecx, edx
mov edx, 0x1044234e
cmove eax, edx
add ecx, eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], ecx
mov word [esp + 0x2c], 0
lea ecx, [esp + 0x10]
lea edx, [esp + 0x20]
call fcn.101aeea0
mov esi, dword [esp + 0x10]
push 0x2f
push esi
push dword [esp + 0xd0]
call sub.advapi32.dll_OpenServiceW
mov dword [esp + 0x6c], eax
cmp dword [esp + 0x14], 0
je 0x101d4603
push esi
push 0
mov eax, dword [0x1044eff8]
push dword [eax]
call sub.KERNEL32.dll_HeapFree
call sub.KERNEL32.dll_GetLastError
test eax, eax
mov dword [esp + 0xd8], eax
je 0x101d46eb
push dword [esp + 0x70]
push dword [esp + 0x54]
lea eax, [esp + 0x28]
push eax
call fcn.1002ad90
add esp, 0xc
cmp dword [esp + 0x20], 0
setne al
jne 0x101d4641
mov ecx, dword [esp + 0x28]
mov dword [esp + 0xcc], ecx
mov ecx, dword [esp + 0x24]
mov dword [esp + 0x20], 0x10443578
mov dword [esp + 0x24], 2
mov dword [esp + 0x30], 0
test ecx, ecx
sete dl
or al, dl
mov eax, 0x1044234e
cmovne ecx, eax
mov eax, dword [esp + 0xcc]
mov dword [esp + 0x58], ecx
mov ecx, 9
cmovne eax, ecx
mov dword [esp + 0x5c], eax
lea eax, [esp + 0x58]
mov dword [esp + 0x10], eax
lea eax, [esp + 0xd8]
mov dword [esp + 0x14], 0x101a2960
mov dword [esp + 0x18], eax
lea eax, [esp + 0x10]
mov dword [esp + 0x1c], 0x1002df20
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], 2
lea eax, [esp + 0x20]
push eax
call fcn.100748a0
add esp, 4
cmp dword [esp + 0x98], 0
lea esi, [edi - 0x10]
je 0x101d4540
push dword [esp + 0x50]
push 0
mov eax, dword [0x1044eff8]
push dword [eax]
call sub.KERNEL32.dll_HeapFree
jmp 0x101d4540
mov dword [esp + 0x7c], 1
mov dword [esp + 0x80], 0
mov dword [esp + 0xac], edi
mov dword [esp + 0x78], 0
mov dword [esp + 0x9c], 0
mov dword [esp + 0x84], 0
lea eax, [esp + 0x9c]
push eax
lea eax, [esp + 0x7c]
push eax
push 0
push 0
push 1
push dword [esp + 0x80]
call sub.advapi32.dll_EnumDependentServicesW
mov esi, 1
test eax, eax
mov ebx, 0
mov dword [esp + 0xc], 0
jne 0x101d4838
call sub.KERNEL32.dll_GetLastError
cmp eax, 0xea
mov dword [esp + 0x58], eax
jne 0x101d47ba
mov edi, dword [esp + 0x78]
test edi, edi
je 0x101d4810
xor edx, edx
lea ecx, [esp + 0x7c]
push edi
call fcn.101ab1a0
add esp, 4
mov esi, dword [esp + 0x7c]
mov ebx, dword [esp + 0x84]
cmp edi, 2
lea eax, [esi + ebx]
jb 0x101d47b0
lea ecx, [edi - 1]
push ecx
push 0
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
lea ebx, [ebx + edi - 1]
lea eax, [esi + ebx]
mov byte [eax], 0
inc ebx
mov eax, dword [esp + 0x78]
jmp 0x101d4814
lea eax, [esp + 0x58]
mov dword [esp + 0x20], 0x1044319c
mov dword [esp + 0x24], 1
mov dword [esp + 0x30], 0
mov dword [esp + 0x10], eax
lea eax, [esp + 0x10]
mov dword [esp + 0x14], 0x101a2bc0
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], 1
lea eax, [esp + 0x20]
push eax
call fcn.100748a0
add esp, 4
xor edi, edi
xor ecx, ecx
mov dword [esp + 0x68], 4
jmp 0x101d4a47
xor eax, eax
xor ebx, ebx
mov dword [esp + 0x84], ebx
lea ecx, [esp + 0x9c]
push ecx
lea ecx, [esp + 0x7c]
push ecx
push eax
push esi
push 1
push dword [esp + 0x80]
call sub.advapi32.dll_EnumDependentServicesW
mov eax, dword [esp + 0x9c]
mov dword [esp + 0x88], 4
mov dword [esp + 0x8c], 0
mov dword [esp + 0x90], 0
test eax, eax
mov dword [esp + 0x94], eax
je 0x101d4cb8
mov dword [esp + 0x74], ebx
mov edi, 4
xor ebx, ebx
mov dword [esp + 0x54], esi
mov dword [esp + 0xc], 0
jmp 0x101d48de
movsd xmm0, qword [esp + 0x38]
mov eax, esi
inc ebx
inc esi
shl eax, 5
cmp ebx, dword [esp + 0x94]
mov dword [esp + 0xc], esi
movsd qword [edi + eax + 0x18], xmm0
movsd xmm0, qword [esp + 0x30]
movsd qword [edi + eax + 0x10], xmm0
movsd xmm0, qword [esp + 0x20]
movsd xmm1, qword [esp + 0x28]
movsd qword [edi + eax + 8], xmm1
movsd qword [edi + eax], xmm0
mov dword [esp + 0x90], esi
je 0x101d4a1b
cmp ebx, 0x71c71c7
je 0x101d5059
lea eax, [ebx*4]
mov esi, edi
lea edi, [eax + eax*8]
lea eax, [edi + 0x24]
cmp eax, dword [esp + 0x74]
ja 0x101d5045
mov eax, dword [esp + 0x54]
mov eax, dword [eax + edi]
test eax, eax
je 0x101d4970
mov ecx, 0xffffffff
nop word cs:[eax + eax]
nop dword [eax]
cmp word [eax + ecx*2 + 2], 0
lea ecx, [ecx + 1]
jne 0x101d4920
push ecx
push eax
lea eax, [esp + 0x60]
push eax
call fcn.10169f90
add esp, 0xc
mov eax, dword [esp + 0x54]
mov eax, dword [eax + edi + 4]
test eax, eax
je 0x101d4999
mov ecx, 0xffffffff
mov edi, esi
nop dword [eax]
cmp word [eax + ecx*2 + 2], 0
lea ecx, [ecx + 1]
jne 0x101d4950
push ecx
push eax
lea eax, [esp + 0x18]
push eax
call fcn.10169f90
add esp, 0xc
mov esi, dword [esp + 0xc]
jmp 0x101d49bc
mov dword [esp + 0x58], 1
mov dword [esp + 0x5c], 0
mov dword [esp + 0x60], 0
mov byte [esp + 0x64], 1
mov eax, dword [esp + 0x54]
mov eax, dword [eax + edi + 4]
test eax, eax
jne 0x101d4946
mov edi, esi
mov esi, dword [esp + 0xc]
mov dword [esp + 0x10], 1
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
mov byte [esp + 0x1c], 1
movsd xmm0, qword [esp + 0x58]
movsd xmm1, qword [esp + 0x60]
cmp esi, dword [esp + 0x8c]
movsd xmm2, qword [esp + 0x18]
lea eax, [esp + 0x30]
movsd qword [esp + 0x20], xmm0
movsd xmm0, qword [esp + 0x10]
movsd qword [esp + 0x28], xmm1
movsd qword [eax + 8], xmm2
movsd qword [eax], xmm0
jne 0x101d4890
lea ecx, [esp + 0x88]
mov edx, esi
call fcn.101aad20
mov edi, dword [esp + 0x88]
mov esi, dword [esp + 0x90]
jmp 0x101d4890
mov dword [esp + 0x68], edi
mov edi, dword [esp + 0x8c]
mov esi, dword [esp + 0x54]
cmp dword [esp + 0x80], 0
je 0x101d4a43
push esi
push 0
mov eax, dword [0x1044eff8]
push dword [eax]
call sub.KERNEL32.dll_HeapFree
mov ecx, dword [esp + 0xc]
mov eax, dword [esp + 0x68]
mov ebx, ecx
mov dword [esp + 0x10], 4
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
shl ebx, 5
add ebx, eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], edi
test ecx, ecx
mov edi, eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], ebx
je 0x101d4b5f
mov eax, dword [esp + 0x68]
xor esi, esi
mov ecx, 4
mov dword [esp + 0xc4], ebx
lea edi, [eax + 0x20]
jmp 0x101d4ab7
mov eax, dword [esp + 0xc4]
add ebx, 0x20
add edi, 0x20
cmp ebx, eax
mov ebx, eax
je 0x101d4ba5
cmp byte [edi - 4], 2
je 0x101d4b5f
mov ebx, dword [edi - 0x1c]
mov edx, dword [edi - 0x14]
mov eax, dword [edi - 0x20]
cmp esi, dword [esp + 0x14]
mov dword [esp + 0xc], ebx
mov ebx, dword [edi - 0x18]
mov dword [esp + 0x74], edx
mov edx, dword [edi - 0x10]
mov dword [esp + 0x54], eax
mov dword [esp + 0x94], ebx
mov ebx, dword [edi - 0xc]
mov dword [esp + 0xa0], edx
jne 0x101d4b06
lea ecx, [esp + 0x10]
mov edx, esi
call fcn.101aac80
mov ecx, dword [esp + 0x10]
mov esi, dword [esp + 0x18]
mov edx, dword [esp + 0x54]
mov eax, esi
inc esi
shl eax, 4
test ebx, ebx
lea ebx, [edi - 0x20]
mov dword [ecx + eax], edx
mov edx, dword [esp + 0xc]
mov dword [ecx + eax + 4], edx
mov edx, dword [esp + 0x74]
mov dword [ecx + eax + 0xc], edx
mov edx, dword [esp + 0x94]
mov dword [ecx + eax + 8], edx
mov dword [esp + 0x18], esi
je 0x101d4aa0
push dword [esp + 0xa0]
push 0
mov eax, dword [0x1044eff8]
push dword [eax]
mov dword [esp + 0x18], ecx
call sub.KERNEL32.dll_HeapFree
mov ecx, dword [esp + 0xc]
jmp 0x101d4aa0
sub ebx, edi
mov dword [esp + 0x28], edi
je 0x101d4ba5
shr ebx, 5
add edi, 0x14
jmp 0x101d4b76
add edi, 0x20
dec ebx
je 0x101d4ba5
cmp dword [edi - 0x10], 0
je 0x101d4b8d
push dword [edi - 0x14]
push 0
mov eax, dword [0x1044eff8]
push dword [eax]
call sub.KERNEL32.dll_HeapFree
cmp dword [edi], 0
je 0x101d4b70
push dword [edi - 4]
push 0
mov eax, dword [0x1044eff8]
push dword [eax]
call sub.KERNEL32.dll_HeapFree
jmp 0x101d4b70
cmp dword [esp + 0x24], 0
je 0x101d4bbe
push dword [esp + 0x68]
push 0
mov eax, dword [0x1044eff8]
push dword [eax]
call sub.KERNEL32.dll_HeapFree
mov eax, dword [esp + 0x18]
movsd xmm0, qword [esp + 0x10]
mov dword [esp + 0x28], eax
movsd qword [esp + 0x20], xmm0
lea eax, [esp + 0x20]
push eax
mov eax, dword [ebp + 8]
push eax
call fcn.101d43d0
add esp, 8
mov edi, 0x28
xorps xmm0, xmm0
mov dword [esp + 0x34], 0
mov dword [esp + 0x30], 0
mov dword [esp + 0x38], 0
movaps xmmword [esp + 0x20], xmm0
lea eax, [esp + 0x20]
push eax
push 1
push dword [esp + 0x74]
call sub.advapi32.dll_ControlService
test eax, eax
je 0x101d4cb1
call fcn.1016de30
mov dword [esp + 0xc], eax
mov ebx, edx
mov esi, ecx
nop dword [eax]
xorps xmm0, xmm0
mov dword [esp + 0x40], 0
mov dword [esp + 0x58], 0
movaps xmmword [esp + 0x30], xmm0
movaps xmmword [esp + 0x20], xmm0
lea eax, [esp + 0x58]
push eax
push 0x24
lea eax, [esp + 0x28]
push eax
push 0
push dword [esp + 0x7c]
call sub.advapi32.dll_QueryServiceStatusEx
test eax, eax
je 0x101d4cd5
cmp dword [esp + 0x24], 1
je 0x101d4d89
call fcn.1016de30
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], edx
mov dword [esp + 0x28], ecx
push esi
push ebx
push dword [esp + 0x14]
lea eax, [esp + 0x2c]
push eax
call fcn.1016dec0
add esp, 0x10
cmp ecx, 0x3b9aca00
je 0x101d4c30
cmp edi, eax
mov ecx, 0
sbb ecx, edx
jae 0x101d4c30
mov eax, 0x102
jmp 0x101d4cd7
call sub.KERNEL32.dll_GetLastError
jmp 0x101d4cd7
mov dword [esp + 0x68], 4
xor edi, edi
cmp dword [esp + 0x80], 0
jne 0x101d4a34
jmp 0x101d4a43
xor eax, eax
mov dword [esp + 0x7c], eax
push dword [esp + 0x70]
push dword [esp + 0x54]
lea eax, [esp + 0x28]
push eax
call fcn.1002ad90
add esp, 0xc
cmp dword [esp + 0x20], 0
setne al
jne 0x101d4d05
mov ecx, dword [esp + 0x28]
mov dword [esp + 0xc0], ecx
mov ecx, dword [esp + 0x24]
mov dword [esp + 0x20], 0x10443500
mov dword [esp + 0x24], 2
mov dword [esp + 0x30], 0
test ecx, ecx
sete dl
or al, dl
mov eax, 0x1044234e
cmovne ecx, eax
mov eax, dword [esp + 0xc0]
mov dword [esp + 0x58], ecx
mov ecx, 9
cmovne eax, ecx
mov dword [esp + 0x5c], eax
lea eax, [esp + 0x58]
mov dword [esp + 0x10], eax
lea eax, [esp + 0x7c]
mov dword [esp + 0x14], 0x101a2960
mov dword [esp + 0x18], eax
lea eax, [esp + 0x10]
mov dword [esp + 0x1c], 0x1002df20
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], 2
lea eax, [esp + 0x20]
push eax
call fcn.100748a0
add esp, 4
jmp 0x101d4e2a
mov dword [esp + 0x7c], 0
push dword [esp + 0x70]
push dword [esp + 0x54]
lea eax, [esp + 0x28]
push eax
call fcn.1002ad90
add esp, 0xc
cmp dword [esp + 0x20], 0
setne al
jne 0x101d4dbb
mov ecx, dword [esp + 0x28]
mov dword [esp + 0xb4], ecx
mov ecx, dword [esp + 0x24]
mov dword [esp + 0x20], 0x104434d8
mov dword [esp + 0x24], 2
mov dword [esp + 0x30], 0
test ecx, ecx
sete dl
or al, dl
mov eax, 0x1044234e
cmovne ecx, eax
mov eax, dword [esp + 0xb4]
mov dword [esp + 0x10], ecx
mov ecx, 9
cmovne eax, ecx
mov dword [esp + 0x14], eax
lea eax, [esp + 0x10]
mov dword [esp + 0x58], eax
lea eax, [esp + 0x58]
mov dword [esp + 0x5c], 0x101a2960
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], 1
lea eax, [esp + 0x20]
push eax
call fcn.100748a0
add esp, 4
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
push 4
push 0xffffffffffffffff
push dword [esp + 0x94]
call sub.advapi32.dll_ChangeServiceConfigW
test eax, eax
je 0x101d4efb
mov dword [esp + 0x88], 0
push dword [esp + 0x70]
push dword [esp + 0x54]
lea eax, [esp + 0x28]
push eax
call fcn.1002ad90
add esp, 0xc
cmp dword [esp + 0x20], 0
setne al
jne 0x101d4e87
mov ecx, dword [esp + 0x28]
mov dword [esp + 0xbc], ecx
mov ecx, dword [esp + 0x24]
mov dword [esp + 0x20], 0x1044351c
mov dword [esp + 0x24], 2
mov dword [esp + 0x30], 0
test ecx, ecx
sete dl
or al, dl
mov eax, 0x1044234e
cmovne ecx, eax
mov eax, dword [esp + 0xbc]
mov dword [esp + 0x10], ecx
mov ecx, 9
cmovne eax, ecx
mov dword [esp + 0x14], eax
lea eax, [esp + 0x10]
mov dword [esp + 0x58], eax
lea eax, [esp + 0x58]
mov dword [esp + 0x5c], 0x101a2960
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], 1
lea eax, [esp + 0x20]
push eax
call fcn.100748a0
add esp, 4
jmp 0x101d4fb3
call sub.KERNEL32.dll_GetLastError
mov dword [esp + 0x88], eax
push dword [esp + 0x70]
push dword [esp + 0x54]
lea eax, [esp + 0x28]
push eax
call fcn.1002ad90
add esp, 0xc
cmp dword [esp + 0x20], 0
setne al
jne 0x101d4f31
mov ecx, dword [esp + 0x28]
mov dword [esp + 0xb8], ecx
mov ecx, dword [esp + 0x24]
mov dword [esp + 0x20], 0x10443548
mov dword [esp + 0x24], 2
mov dword [esp + 0x30], 0
test ecx, ecx
sete dl
or al, dl
mov eax, 0x1044234e
cmovne ecx, eax
mov eax, dword [esp + 0xb8]
mov dword [esp + 0x58], ecx
mov ecx, 9
cmovne eax, ecx
mov dword [esp + 0x5c], eax
lea eax, [esp + 0x58]
mov dword [esp + 0x10], eax
lea eax, [esp + 0x88]
mov dword [esp + 0x14], 0x101a2960
mov dword [esp + 0x18], eax
lea eax, [esp + 0x10]
mov dword [esp + 0x1c], 0x1002df20
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], 2
lea eax, [esp + 0x20]
push eax
call fcn.100748a0
add esp, 4
cmp dword [esp + 0x98], 0
je 0x101d4fcf
push dword [esp + 0x50]
push 0
mov eax, dword [0x1044eff8]
push dword [eax]
call sub.KERNEL32.dll_HeapFree
mov edi, dword [esp + 0xac]
mov ebx, dword [esp + 0xb0]
cmp edi, ebx
jne 0x101d4537
jmp 0x101d501e
mov edi, ebx
sub ebx, edi
je 0x101d501e
shr ebx, 4
add edi, 4
jmp 0x101d5006
add edi, 0x10
dec ebx
je 0x101d501e
cmp dword [edi], 0
je 0x101d5000
push dword [edi - 4]
push 0
mov eax, dword [0x1044eff8]
push dword [eax]
call sub.KERNEL32.dll_HeapFree
jmp 0x101d5000
cmp dword [esp + 0xa8], 0
je 0x101d503d
mov eax, dword [0x1044eff8]
push dword [esp + 0xa4]
push 0
push dword [eax]
call sub.KERNEL32.dll_HeapFree
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
push 0x104431e0
push dword [esp + 0x78]
push eax
call fcn.1002ac30
add esp, 0xc
jmp 0x101d506a
push 0x104431e0
push 0x20
push 0xfffffffffffffffc
call fcn.1002ac90
add esp, 0xc
ud2