Function at 0x100607a
Capabilities:
Modify service

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x3c
push ebx
push esi
push edi
xor edi, edi
xor ebx, ebx
cmp dword [ebp + 0x14], edi
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x14], 2
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x10], edi
mov byte [ebp - 1], 1
mov byte [ebp - 2], bl
mov dword [ebp - 0xc], edi
jbe 0x1006311
mov dword [ebp - 8], 1
mov esi, dword [ebp - 0xc]
mov eax, dword [ebp + 0x10]
shl esi, 2
lea edi, [esi + eax]
push 0x1002cac
push dword [edi]
call dword [sym.imp.msvcrt.dll__wcsicmp]
test eax, eax
pop ecx
pop ecx
jne 0x100611b
mov eax, dword [ebp + 0x14]
cmp dword [ebp - 8], eax
jae 0x100611b
mov eax, dword [ebp + 0x10]
lea esi, [esi + eax + 4]
push 0x1002c98
push dword [esi]
call dword [sym.imp.msvcrt.dll__wcsicmp]
test eax, eax
pop ecx
pop ecx
jne 0x1006103
or dword [ebp - 0x18], 0xffffffff
jmp 0x100610f
push dword [esi]
call dword [sym.imp.msvcrt.dll__wtol]
pop ecx
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x20], 1
jmp 0x100628b
push 0x1002c88
push dword [edi]
call dword [sym.imp.msvcrt.dll__wcsicmp]
test eax, eax
pop ecx
pop ecx
jne 0x1006145
mov eax, dword [ebp - 8]
cmp eax, dword [ebp + 0x14]
jae 0x1006145
mov eax, dword [ebp + 0x10]
mov eax, dword [esi + eax + 4]
mov dword [ebp - 0x24], eax
jmp 0x100628b
push 0x1002c74
push dword [edi]
call dword [sym.imp.msvcrt.dll__wcsicmp]
test eax, eax
pop ecx
pop ecx
jne 0x100616f
mov eax, dword [ebp - 8]
cmp eax, dword [ebp + 0x14]
jae 0x100616f
mov eax, dword [ebp + 0x10]
mov eax, dword [esi + eax + 4]
mov dword [ebp - 0x28], eax
jmp 0x100628b
push 0x1002c60
push dword [edi]
call dword [sym.imp.msvcrt.dll__wcsicmp]
test eax, eax
pop ecx
pop ecx
jne 0x10062db
mov eax, dword [ebp + 0x14]
cmp dword [ebp - 8], eax
jae 0x10062db
mov eax, dword [ebp + 0x10]
lea esi, [esi + eax + 4]
mov eax, dword [esi]
jmp 0x10061a6
cmp cx, 0x2f
jne 0x10061a4
inc ebx
inc eax
inc eax
mov cx, word [eax]
test cx, cx
jne 0x100619d
add ebx, 2
shr ebx, 1
shl ebx, 3
push ebx
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
test eax, eax
mov dword [ebp - 0x10], eax
je 0x10062c1
mov esi, dword [esi]
push esi
mov edi, esi
call dword [sym.imp.msvcrt.dll_wcslen]
pop ecx
mov word [esi + eax*2], 0x2f
xor ebx, ebx
jmp 0x100627a
cmp word [esi], 0x2f
jne 0x1006278
and word [esi], 0
cmp byte [ebp - 1], 0
je 0x100625b
push 0x1002c50
push edi
call dword [sym.imp.msvcrt.dll__wcsicmp]
test eax, eax
pop ecx
pop ecx
jne 0x1006219
mov eax, dword [ebp - 0x10]
or dword [ebp - 0x14], 0x10
mov dword [eax + ebx*8], 1
jmp 0x100626b
push 0x1002c40
push edi
call dword [sym.imp.msvcrt.dll__wcsicmp]
test eax, eax
pop ecx
pop ecx
jne 0x100623b
mov eax, dword [ebp - 0x10]
mov dword [eax + ebx*8], 2
mov byte [ebp - 2], 1
jmp 0x100626b
push 0x1002c38
push edi
call dword [sym.imp.msvcrt.dll__wcsicmp]
neg eax
sbb eax, eax
pop ecx
and eax, 0xfffffffd
pop ecx
mov ecx, dword [ebp - 0x10]
add eax, 3
mov dword [ecx + ebx*8], eax
jmp 0x100626b
push edi
call dword [sym.imp.msvcrt.dll__wtol]
pop ecx
mov ecx, dword [ebp - 0x10]
mov dword [ecx + ebx*8 + 4], eax
inc ebx
cmp byte [ebp - 1], 0
lea edi, [esi + 2]
sete al
mov byte [ebp - 1], al
inc esi
inc esi
cmp word [esi], 0
jne 0x10061e3
mov dword [ebp - 0x1c], 1
inc dword [ebp - 0xc]
inc dword [ebp - 8]
inc dword [ebp - 0xc]
mov eax, dword [ebp - 0xc]
inc dword [ebp - 8]
cmp eax, dword [ebp + 0x14]
jb 0x10060bc
mov eax, dword [ebp - 0x1c]
cmp dword [ebp - 0x20], eax
je 0x10062e2
push 0x1002bf0
call dword [sym.imp.msvcrt.dll_printf]
pop ecx
call fcn.0100572c
jmp 0x100639b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
call fcn.01004fd9
push eax
push esi
push 0x1002bb4
jmp 0x1006392
push 0x1002b98
jmp 0x10062b0
cmp byte [ebp - 2], 0
je 0x100630f
lea eax, [ebp - 3]
push eax
push 0
push 1
push 0x13
call dword [sym.imp.ntdll.dll_RtlAdjustPrivilege]
test eax, eax
jge 0x100630f
push eax
push 0x1002b5c
call dword [sym.imp.msvcrt.dll_printf]
pop ecx
pop ecx
jmp 0x100639b
xor edi, edi
push dword [ebp - 0x14]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
cmp eax, edi
mov ecx, dword [ebp + 0x18]
mov dword [ecx], eax
jne 0x1006340
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
call fcn.01004fd9
push eax
push esi
push 0x10016b4
jmp 0x1006392
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 0x3c], ecx
mov ecx, dword [ebp - 0x24]
mov dword [ebp - 0x38], ecx
mov ecx, dword [ebp - 0x28]
mov dword [ebp - 0x34], ecx
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x2c], ecx
lea ecx, [ebp - 0x3c]
push ecx
push 2
push eax
mov dword [ebp - 0x30], ebx
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2W]
test eax, eax
jne 0x1006378
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp esi, edi
jne 0x1006385
push 0x10026f4
call dword [sym.imp.msvcrt.dll_printf]
jmp 0x1006309
push esi
call fcn.01004fd9
push eax
push esi
push 0x10026c8
call dword [sym.imp.msvcrt.dll_printf]
add esp, 0xc
pop edi
pop esi
xor eax, eax
pop ebx
leave
ret 0x14