Function at 0x1005ffd
Capabilities:
Modify service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
or dword [ebp - 0xc], 0xffffffff
or dword [ebp - 0x10], 0xffffffff
or dword [ebp - 0x14], 0xffffffff
xor eax, eax
cmp dword [ebp + 0x14], eax
push ebx
push esi
push edi
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 8], eax
jbe 0x100645d
mov esi, dword [ebp + 0x10]
push 4
mov edi, esi
mov dword [ebp - 4], 1
mov dword [ebp + 0x10], edi
add esi, 4
pop ebx
push 0x100152c
push dword [edi]
call fcn.01007db0
pop ecx
test eax, eax
pop ecx
jne 0x1006156
mov eax, dword [ebp + 0x14]
cmp dword [ebp - 4], eax
jae 0x1006156
cmp dword [ebp - 0xc], 0xffffffff
jne 0x1006079
and dword [ebp - 0xc], 0
push 0x10014a0
push dword [esi]
call fcn.01007db0
pop ecx
test eax, eax
pop ecx
jne 0x1006094
or dword [ebp - 0xc], 0x10
jmp 0x1006143
push 0x1001494
push dword [esi]
call fcn.01007db0
pop ecx
test eax, eax
pop ecx
jne 0x10060af
or dword [ebp - 0xc], 0x20
jmp 0x1006143
push 0x10014f0
push dword [esi]
call fcn.01007db0
pop ecx
test eax, eax
pop ecx
jne 0x10060c7
or byte [ebp - 0xb], 1
jmp 0x1006143
push 0x10014c8
push dword [esi]
call fcn.01007db0
pop ecx
test eax, eax
pop ecx
jne 0x10060df
or dword [ebp - 0xc], 1
jmp 0x1006143
push 0x10014b8
push dword [esi]
call fcn.01007db0
pop ecx
test eax, eax
pop ecx
jne 0x10060f7
or dword [ebp - 0xc], 2
jmp 0x1006143
push 0x1002498
push dword [esi]
call fcn.01007db0
pop ecx
test eax, eax
pop ecx
jne 0x100610f
or dword [ebp - 0xc], 8
jmp 0x1006143
push 0x100248c
push dword [esi]
call fcn.01007db0
pop ecx
test eax, eax
pop ecx
jne 0x1006126
or dword [ebp - 0xc], ebx
jmp 0x1006143
push 0x10014e4
push dword [esi]
call fcn.01007db0
pop ecx
test eax, eax
pop ecx
jne 0x1006503
or dword [ebp - 0xc], 0x2f309a20
cmp dword [ebp - 0xc], 0
jne 0x100643a
or dword [ebp - 0xc], 0xffffffff
jmp 0x100643a
push 0x100247c
push dword [edi]
call fcn.01007db0
pop ecx
test eax, eax
pop ecx
jne 0x1006228
mov eax, dword [ebp + 0x14]
cmp dword [ebp - 4], eax
jae 0x1006228
push 0x10019f8
push dword [esi]
call fcn.01007db0
pop ecx
test eax, eax
pop ecx
jne 0x1006192
and dword [ebp - 0x10], eax
jmp 0x100643a
push 0x100246c
push dword [esi]
call fcn.01007db0
pop ecx
test eax, eax
pop ecx
jne 0x10061b0
mov dword [ebp - 0x10], 1
jmp 0x100643a
push 0x1002460
push dword [esi]
call fcn.01007db0
pop ecx
test eax, eax
pop ecx
jne 0x10061ce
mov dword [ebp - 0x10], 2
jmp 0x100643a
push 0x1002450
push dword [esi]
call fcn.01007db0
pop ecx
test eax, eax
pop ecx
jne 0x10061ec
mov dword [ebp - 0x10], 3
jmp 0x100643a
push 0x100243c
push dword [esi]
call fcn.01007db0
pop ecx
test eax, eax
pop ecx
jne 0x1006206
mov dword [ebp - 0x10], ebx
jmp 0x100643a
push 0x10014e4
push dword [esi]
call fcn.01007db0
pop ecx
test eax, eax
pop ecx
jne 0x100650a
mov dword [ebp - 0x10], 0xd0034911
jmp 0x100643a
push 0x100242c
push dword [edi]
call fcn.01007db0
pop ecx
test eax, eax
pop ecx
jne 0x10062e0
mov eax, dword [ebp + 0x14]
cmp dword [ebp - 4], eax
jae 0x10062e0
push 0x100241c
push dword [esi]
call fcn.01007db0
pop ecx
test eax, eax
pop ecx
jne 0x1006268
mov dword [ebp - 0x14], 1
jmp 0x100643a
push 0x100240c
push dword [esi]
call fcn.01007db0
pop ecx
test eax, eax
pop ecx
jne 0x1006286
mov dword [ebp - 0x14], 2
jmp 0x100643a
push 0x10023fc
push dword [esi]
call fcn.01007db0
pop ecx
test eax, eax
pop ecx
jne 0x10062a0
and dword [ebp - 0x14], eax
jmp 0x100643a
push 0x10023e8
push dword [esi]
call fcn.01007db0
pop ecx
test eax, eax
pop ecx
jne 0x10062be
mov dword [ebp - 0x14], 3
jmp 0x100643a
push 0x10014e4
push dword [esi]
call fcn.01007db0
pop ecx
test eax, eax
pop ecx
jne 0x1006511
mov dword [ebp - 0x14], 0xd74550
jmp 0x100643a
push 0x10023d4
push dword [edi]
call fcn.01007db0
pop ecx
test eax, eax
pop ecx
jne 0x1006304
mov eax, dword [ebp - 4]
cmp eax, dword [ebp + 0x14]
jae 0x1006304
mov eax, dword [esi]
mov dword [ebp - 0x30], eax
jmp 0x100643a
push 0x1001460
push dword [edi]
call fcn.01007db0
pop ecx
test eax, eax
pop ecx
jne 0x1006328
mov eax, dword [ebp - 4]
cmp eax, dword [ebp + 0x14]
jae 0x1006328
mov eax, dword [esi]
mov dword [ebp - 0x2c], eax
jmp 0x100643a
push 0x10023c8
push dword [edi]
call fcn.01007db0
pop ecx
test eax, eax
pop ecx
jne 0x1006363
mov eax, dword [ebp + 0x14]
cmp dword [ebp - 4], eax
jae 0x1006363
push 0x10023c0
push dword [esi]
call fcn.01007db0
pop ecx
test eax, eax
pop ecx
jne 0x100643a
lea eax, [ebp - 0x38]
mov dword [ebp - 0x28], eax
jmp 0x100643a
push 0x10023b0
push dword [edi]
call fcn.01007db0
pop ecx
test eax, eax
pop ecx
jne 0x10063d1
mov eax, dword [ebp + 0x14]
cmp dword [ebp - 4], eax
jae 0x10063d1
mov edi, dword [esi]
push edi
call fcn.01007ed0
lea eax, [eax + eax + 2]
pop ecx
add eax, 2
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
test eax, eax
mov dword [ebp - 0x18], eax
je 0x1006523
push edi
push eax
call fcn.01007ea0
mov eax, dword [ebp - 0x18]
pop ecx
pop ecx
cmp word [eax], 0
je 0x10063c1
cmp word [eax], 0x2f
jne 0x10063bd
and word [eax], 0
inc eax
inc eax
jmp 0x10063ad
add dword [ebp + 0x10], ebx
inc dword [ebp - 8]
mov edi, dword [ebp + 0x10]
add esi, ebx
inc dword [ebp - 4]
jmp 0x1006444
push 0x10023a4
push dword [edi]
call fcn.01007db0
pop ecx
test eax, eax
pop ecx
jne 0x10063f2
mov eax, dword [ebp - 4]
cmp eax, dword [ebp + 0x14]
jae 0x10063f2
mov eax, dword [esi]
mov dword [ebp - 0x24], eax
jmp 0x100643a
push 0x1002390
push dword [edi]
call fcn.01007db0
pop ecx
test eax, eax
pop ecx
jne 0x1006413
mov eax, dword [ebp - 4]
cmp eax, dword [ebp + 0x14]
jae 0x1006413
mov eax, dword [esi]
mov dword [ebp - 0x20], eax
jmp 0x100643a
push 0x1002374
push dword [edi]
call fcn.01007db0
pop ecx
test eax, eax
pop ecx
jne 0x100651c
mov eax, dword [ebp - 4]
cmp eax, dword [ebp + 0x14]
jae 0x100651c
mov eax, dword [esi]
mov dword [ebp - 0x1c], eax
inc dword [ebp - 8]
add edi, ebx
add esi, ebx
inc dword [ebp - 4]
inc dword [ebp - 8]
add edi, ebx
mov eax, dword [ebp - 8]
add esi, ebx
inc dword [ebp - 4]
cmp eax, dword [ebp + 0x14]
mov dword [ebp + 0x10], edi
jb 0x100604d
push 2
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov ecx, dword [ebp + 0x18]
test eax, eax
mov dword [ecx], eax
jne 0x100648b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
call fcn.010072bf
push eax
push esi
push 0x1001b60
jmp 0x10064f2
push dword [ebp - 0x1c]
mov edi, dword [ebp - 0x28]
push dword [ebp - 0x20]
push dword [ebp - 0x24]
push dword [ebp - 0x18]
push edi
push dword [ebp - 0x2c]
push dword [ebp - 0x30]
push dword [ebp - 0x14]
push dword [ebp - 0x10]
push dword [ebp - 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfigW]
test eax, eax
jne 0x10064bf
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x10064c2
mov esi, dword [ebp - 0x34]
test esi, esi
jne 0x10064e5
push 0x1002350
call fcn.01007d70
test edi, edi
pop ecx
je 0x10064fa
push dword [edi]
push 0x1002340
call fcn.01007d70
pop ecx
pop ecx
jmp 0x10064fa
push esi
call fcn.010072bf
push eax
push esi
push 0x1002314
call fcn.01007d70
add esp, 0xc
pop edi
pop esi
xor eax, eax
pop ebx
leave
ret 0x14
push 0x10022fc
jmp 0x1006516
push 0x10022e4
jmp 0x1006516
push 0x10022cc
call fcn.01007d70
pop ecx
call fcn.01007a99
jmp 0x10064fa
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
call fcn.010072bf
push eax
push esi
push 0x1002294
jmp 0x10064f2