Function at 0x10033940
Capabilities:
Acquire debug privileges
Delete service

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100b8963
mov eax, dword fs:[0]
push eax
sub esp, 0xb0
mov eax, dword [0x100dcc00]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov esi, dword [ebp + 0x10]
mov dword [ebp - 0xac], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0xb0], eax
lea eax, [ebp - 0xbc]
push eax
lea eax, [ebp - 0x88]
push eax
call fcn.10008840
add esp, 8
mov edx, eax
cmp dword [edx + 0x14], 0xf
mov dword [ebp - 4], 0
jbe 0x100339a9
mov edx, dword [edx]
mov ecx, edx
mov dword [ebp - 0x30], 0
xorps xmm0, xmm0
mov dword [ebp - 0x2c], 0
movups xmmword [ebp - 0x40], xmm0
lea edi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100339c3
sub ecx, edi
push ecx
push edx
lea ecx, [ebp - 0x40]
call fcn.10003b70
mov ecx, dword [ebp - 0x74]
mov byte [ebp - 4], 2
cmp ecx, 0xf
jbe 0x10033a11
mov edx, dword [ebp - 0x88]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10033a07
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10033d48
push ecx
push edx
call fcn.1008c3c5
add esp, 8
lea eax, [ebp - 0xa8]
mov dword [ebp - 0x78], 0
push eax
push 0x20
mov dword [ebp - 0x74], 0xf
mov byte [ebp - 0x88], 0
mov dword [ebp - 0xa8], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x10033aa6
lea eax, [ebp - 0xb8]
push eax
push str.SeDebugPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
test eax, eax
je 0x10033a9a
mov eax, dword [ebp - 0xb8]
mov ecx, dword [ebp - 0xb4]
push 0
push 0
push 0x10
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x20]
push eax
push 0
push dword [ebp - 0xa8]
mov dword [ebp - 0x20], 1
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x14], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
push dword [ebp - 0xa8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea edi, [esi + 0x18]
push edi
push dword [ebp - 0xac]
lea eax, [ebp - 0x70]
push eax
call fcn.1002ea60
add esi, 0x30
mov byte [ebp - 4], 3
push esi
push dword [ebp - 0xac]
lea eax, [ebp - 0x58]
push eax
call fcn.1002ea60
push esi
mov byte [ebp - 4], 4
mov byte [ebp - 0xa1], 0
call fcn.100349a0
add esp, 0x1c
cmp byte [ebp + 0x14], 0
je 0x10033bd2
cmp dword [ebp - 0x2c], 0xf
lea eax, [ebp - 0xa0]
push 0x1a9
lea esi, [ebp - 0x40]
cmova esi, dword [ebp - 0x40]
push eax
call fcn.1002f210
add esp, 8
cmp dword [eax + 0x14], 0xf
mov byte [ebp - 4], 5
jbe 0x10033b19
mov eax, dword [eax]
push esi
push eax
lea eax, [ebp - 0x28]
push 0x100bc070
push eax
call fcn.10035c70
mov ecx, dword [ebp - 0x8c]
add esp, 0x10
mov byte [ebp - 4], 4
cmp ecx, 0xf
jbe 0x10033b6a
mov edx, dword [ebp - 0xa0]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10033b60
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10033d4d
push ecx
push edx
call fcn.1008c3c5
add esp, 8
cmp dword [ebp - 0x14], 0xf
lea eax, [ebp - 0x28]
cmova eax, dword [ebp - 0x28]
push eax
push 1
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [0x100dcb8c], eax
lea eax, [ebp - 0x70]
push 0xea60
push eax
call fcn.10034e00
mov ecx, dword [ebp - 0x14]
add esp, 8
mov byte [ebp - 0xa1], al
cmp ecx, 0xf
jbe 0x10033bd2
mov edx, dword [ebp - 0x28]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10033bc8
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10033d52
push ecx
push edx
call fcn.1008c3c5
add esp, 8
lea eax, [ebp - 0x58]
push 0xea60
push eax
call fcn.10034e00
add esp, 8
cmp byte [ebp - 0xa1], 0
jne 0x10033bf5
push edi
call fcn.100349a0
add esp, 4
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov edi, eax
test edi, edi
je 0x10033c47
mov eax, dword [ebp - 0xb0]
cmp dword [eax + 0x14], 7
jbe 0x10033c18
mov eax, dword [eax]
push 0x10000
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
test esi, esi
jne 0x10033c34
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x10033c47
push esi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push edi
call esi
cmp byte [ebp + 0x18], 0
je 0x10033c52
call fcn.100341d0
push dword [ebp - 0xac]
call fcn.10033d60
add esp, 4
call fcn.10034730
mov ecx, dword [ebp - 0x44]
cmp ecx, 7
jbe 0x10033c9f
mov edx, dword [ebp - 0x58]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x10033c95
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10033d57
push ecx
push edx
call fcn.1008c3c5
add esp, 8
mov ecx, dword [ebp - 0x5c]
xor eax, eax
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 7
mov word [ebp - 0x58], ax
cmp ecx, 7
jbe 0x10033ce9
mov edx, dword [ebp - 0x70]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x10033cdf
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10033d57
push ecx
push edx
call fcn.1008c3c5
add esp, 8
mov ecx, dword [ebp - 0x2c]
xor eax, eax
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x5c], 7
mov word [ebp - 0x70], ax
cmp ecx, 0xf
jbe 0x10033d2d
mov edx, dword [ebp - 0x40]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10033d23
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10033d57
push ecx
push edx
call fcn.1008c3c5
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1008c3d3
mov esp, ebp
pop ebp
ret
call fcn.1009189f
call fcn.1009189f
call fcn.1009189f
call fcn.1009189f
int3