Function at 0x10010530
Capabilities:
Delete service

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100261a1
mov eax, dword fs:[0]
push eax
sub esp, 0x60
mov eax, dword [0x100365e8]
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 ebx, dword [ebp + 8]
mov edi, ecx
mov dword [ebp - 0x58], ebx
mov dword [ebp - 0x54], 0
mov eax, dword [0x10036554]
mov edx, dword [eax + 0xc]
mov ecx, 0x10036554
mov dword [ebp - 4], 1
call edx
add eax, 0x10
mov dword [ebx], eax
mov eax, 0x1002ebda
mov byte [ebp - 4], 2
test eax, 0xffff0000
jne 0x100105b4
mov ecx, eax
movzx esi, cx
push 0
push esi
call fcn.10001090
add esp, 8
test eax, eax
je 0x100105c0
push esi
push eax
mov ecx, ebx
call fcn.10001a30
jmp 0x100105c0
push 0x1002ebda
mov ecx, ebx
call fcn.100017c0
mov byte [ebp - 4], 1
lea esi, [edi + 4]
push 1
push 0x627f
mov ecx, esi
mov dword [ebp - 0x54], 1
mov dword [ebp - 0x50], esi
call fcn.1000df60
push eax
call fcn.10010dd0
add esp, 8
cmp eax, 1
sete byte [ebp - 0x41]
cmp byte [ebp + 0xc], 0
mov byte [ebp - 0x43], 0
mov byte [ebp - 0x42], 0
je 0x10010639
push 1
push 0x6281
mov ecx, esi
call fcn.1000df60
push eax
call fcn.10010dd0
add esp, 8
push 1
cmp eax, 1
push 0x6280
mov ecx, esi
sete byte [ebp - 0x43]
call fcn.1000df60
push eax
call fcn.10010dd0
add esp, 8
cmp eax, 1
sete byte [ebp - 0x42]
cmp byte [ebp - 0x41], 0
je 0x1001064b
push 0x1002ecdc
mov ecx, ebx
call fcn.1000c470
cmp byte [ebp - 0x43], 0
je 0x1001065d
push 0x1002ece0
mov ecx, ebx
call fcn.1000c470
cmp byte [ebp - 0x42], 0
je 0x1001066f
push 0x1002ece8
mov ecx, ebx
call fcn.1000c470
mov eax, dword [edi]
mov edx, dword [eax + 0xb8]
mov ecx, dword [edx - 0xc]
test ecx, ecx
je 0x1001070a
push ecx
mov ecx, esp
mov dword [ebp - 0x4c], esp
push 0x1002ecec
add eax, 0x2c
push eax
push ecx
call fcn.10004320
add esp, 0xc
call fcn.1000cf50
mov edx, dword [edi]
push 0x1002ecf4
add edx, 0xb8
push edx
lea eax, [ebp - 0x48]
push eax
call fcn.10004320
add esp, 0x10
mov edx, dword [ebp - 0x48]
mov ecx, dword [edx - 8]
mov eax, 1
sub eax, dword [edx - 4]
mov byte [ebp - 4], 3
or ecx, eax
jge 0x100106dc
push 0
lea ecx, [ebp - 0x48]
call fcn.10001470
mov edx, dword [ebp - 0x48]
push 1
push edx
call fcn.10010dd0
mov eax, dword [ebp - 0x48]
add eax, 0xfffffff0
add esp, 8
mov byte [ebp - 4], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x1001070a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp + 0x10]
mov eax, dword [edi]
xor edx, edx
test ecx, ecx
setne dl
test edx, edx
jne 0x10010724
push 0x80004005
call fcn.10001000
mov eax, dword [eax + 0x24]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x1001074d
test dx, dx
je 0x10010749
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x1001074d
add eax, 4
add ecx, 4
test dx, dx
jne 0x10010727
xor eax, eax
jmp 0x10010752
sbb eax, eax
sbb eax, 0xffffffff
push 0xf003f
push 0
test eax, eax
push 0
sete byte [ebp - 0x41]
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov ebx, eax
mov eax, dword [edi]
mov eax, dword [eax + 0x24]
push ecx
sub eax, 0x10
mov dword [ebp - 0x4c], esp
mov esi, esp
push eax
call fcn.10001280
add eax, 0x10
add esp, 4
mov dword [esi], eax
call fcn.1000cff0
mov esi, dword [edi]
mov eax, dword [esi + 0x24]
add esp, 4
cmp dword [eax - 4], 1
jle 0x100107a4
mov ecx, dword [eax - 0xc]
push ecx
lea ecx, [esi + 0x24]
call fcn.10001380
mov esi, dword [esi + 0x24]
push 0x10020
push esi
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
cmp byte [ebp + 0xc], 0
mov esi, eax
je 0x100107c2
cmp byte [ebp - 0x41], 0
jne 0x100107cd
test esi, esi
je 0x100107cd
push esi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push ebx
call esi
mov ecx, dword [edi]
push 0xa
lea edx, [ebp - 0x4c]
push edx
call fcn.10008eb0
mov ecx, dword [edi]
add ecx, 0xb4
push ecx
push eax
lea edx, [ebp - 0x48]
push edx
mov byte [ebp - 4], 4
call fcn.10001c40
add esp, 0xc
mov esi, eax
mov ecx, dword [ebp - 0x50]
push 0x621d
mov byte [ebp - 4], 5
call fcn.1000df60
push ecx
mov ecx, esp
mov dword [ebp - 0x50], esp
push eax
push esi
push ecx
call fcn.10004320
add esp, 0xc
call fcn.100110c0
mov eax, dword [ebp - 0x48]
add eax, 0xfffffff0
add esp, 8
mov byte [ebp - 4], 4
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x1001084f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x4c]
add eax, 0xfffffff0
mov byte [ebp - 4], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x10010872
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 0x14
mov eax, 1
lea edx, [ebp - 0x6c]
mov ecx, 4
push edx
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x3c], eax
xor eax, eax
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x64], ecx
push 0x4b
lea ecx, [ebp - 0x40]
push eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x28], 2
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x1c], 3
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x6c], 0x14
mov dword [ebp - 0x68], eax
mov dword [ebp - 0x60], eax
mov dword [ebp - 0x5c], ecx
call dword [sym.imp.WININET.dll_InternetSetOptionW]
mov eax, dword [ebp + 0x10]
add eax, 0xfffffff0
mov byte [ebp - 4], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x100108e6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x58]
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.10012e4f
mov esp, ebp
pop ebp
ret 0xc