Function at 0x1002cd70
Capabilities:
Modify service

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10075be5
mov eax, dword fs:[0]
push eax
sub esp, 0x64
mov eax, dword [0x100c0040]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x50], edx
mov dword [ebp - 0x5c], ecx
mov eax, dword [ebp + 0x10]
mov edi, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0x54], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 0
mov dword [ebp - 4], 0
xor esi, esi
mov eax, edi
cmp word [edi], si
je 0x1002cddb
lea eax, [eax + 2]
inc esi
cmp word [eax], 0
jne 0x1002cdd1
xor ecx, ecx
mov eax, esi
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x3c], esi
cmp word [eax], 0
je 0x1002ce0b
add eax, 2
cmp word [eax], 0
jne 0x1002ce02
push 0xffffffffffffffff
mov edx, edi
mov ecx, eax
call fcn.10016e50
lea eax, [ebp - 0x3c]
mov edx, 0x100a7890
push eax
push 0x100a4174
mov ecx, edi
call fcn.10033570
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x48], 0
mov byte [ebp - 4], 1
lea eax, [ebp - 0x4c]
mov edx, dword [0x100a4174]
mov ecx, dword [ebp - 0x38]
push eax
call fcn.1002ae70
add esp, 0x10
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0
mov byte [ebp - 4], 2
xor esi, esi
mov eax, ebx
cmp word [ebx], si
je 0x1002ce7a
nop dword [eax]
lea eax, [eax + 2]
inc esi
cmp word [eax], 0
jne 0x1002ce70
xor ecx, ecx
mov eax, esi
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x34], esi
cmp word [eax], 0
je 0x1002ceaa
add eax, 2
cmp word [eax], 0
jne 0x1002cea1
push 0xffffffffffffffff
mov edx, ebx
mov ecx, eax
call fcn.10016e50
lea eax, [ebp - 0x34]
mov edx, 0x100a7890
push eax
push 0x100a4174
mov ecx, ebx
call fcn.10033570
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x40], 0
mov byte [ebp - 4], 3
lea eax, [ebp - 0x44]
mov edx, dword [0x100a4174]
mov ecx, dword [ebp - 0x30]
push eax
call fcn.1002ae70
mov ebx, dword [ebp - 0x48]
lea edx, [ebp - 0x2c]
push 0xa
mov dword [ebp - 0x2c], 0xffffffff
mov ecx, dword [ebx + 4]
call fcn.10033e40
mov esi, dword [ebp - 0x40]
lea edx, [ebp - 0x2c]
mov dword [ebp - 0x28], eax
push 0xa
mov dword [ebp - 0x2c], 0xffffffff
mov ecx, dword [esi + 4]
call fcn.10033e40
mov edi, dword [ebp - 0x4c]
add esp, 0x18
imul eax, eax, 0xea60
mov dword [ebp - 0x24], eax
cmp edi, 2
jb 0x1002cf6c
mov ecx, dword [ebx + 0xc]
lea edx, [ebp - 0x2c]
push 0xa
mov dword [ebp - 0x2c], 0xffffffff
call fcn.10033e40
mov dword [ebp - 0x20], eax
lea edx, [ebp - 0x2c]
mov ecx, dword [esi + 0xc]
push 0xa
mov dword [ebp - 0x2c], 0xffffffff
call fcn.10033e40
add esp, 8
imul eax, eax, 0xea60
mov dword [ebp - 0x1c], eax
jmp 0x1002cf7a
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
cmp edi, 3
jb 0x1002cfb8
mov ecx, dword [ebx + 0x14]
lea edx, [ebp - 0x2c]
push 0xa
mov dword [ebp - 0x2c], 0xffffffff
call fcn.10033e40
mov dword [ebp - 0x18], eax
lea edx, [ebp - 0x2c]
mov ecx, dword [esi + 0x14]
push 0xa
mov dword [ebp - 0x2c], 0xffffffff
call fcn.10033e40
add esp, 8
imul eax, eax, 0xea60
mov dword [ebp - 0x14], eax
jmp 0x1002cfc6
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov ecx, dword [ebp - 0x50]
lea edx, [ebp - 0x2c]
push 0xa
mov dword [ebp - 0x2c], 0xffffffff
call fcn.10033e40
imul eax, eax, 0x15180
add esp, 4
mov dword [ebp - 0x64], 3
push 0xf003f
mov dword [ebp - 0x70], eax
mov eax, dword [ebp - 0x54]
mov dword [ebp - 0x6c], eax
mov eax, dword [ebp - 0x58]
mov dword [ebp - 0x68], eax
lea eax, [ebp - 0x28]
push 0
push 0
mov dword [ebp - 0x60], eax
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
test eax, eax
je 0x1002d03a
push 0xf01ff
push dword [ebp - 0x5c]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
test eax, eax
je 0x1002d03a
lea ecx, [ebp - 0x70]
push ecx
push 2
push eax
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2W]
test eax, eax
je 0x1002d03a
xor edi, edi
jmp 0x1002d03f
mov edi, 5
mov byte [ebp - 4], 2
add esi, 0xfffffffc
push 0x10006c20
push dword [esi]
push 8
push dword [ebp - 0x40]
call fcn.10053ebc
test esi, esi
je 0x1002d062
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x44], 0
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x30]
test eax, eax
je 0x1002d082
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x34], 0
mov byte [ebp - 4], 0
lea esi, [ebx - 4]
push 0x10006c20
push dword [esi]
push 8
push ebx
call fcn.10053ebc
test esi, esi
je 0x1002d0b1
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x4c], 0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x38]
test eax, eax
je 0x1002d0d4
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [ebp - 0x38], 0
mov eax, edi
mov dword [ebp - 0x3c], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10053e7d
mov esp, ebp
pop ebp
ret