Function at 0x10033870
Capabilities:
Acquire debug privileges
Delete service

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100b8833
mov eax, dword fs:[0]
push eax
sub esp, 0xb0
mov eax, dword [0x100dbe80]
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 0x100338d9
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 0x100338f3
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 0x10033941
mov edx, dword [ebp - 0x88]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10033937
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10033c78
push ecx
push edx
call fcn.1008c2e7
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 0x100339d6
lea eax, [ebp - 0xb8]
push eax
push str.SeDebugPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
test eax, eax
je 0x100339ca
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.1002e730
add esi, 0x30
mov byte [ebp - 4], 3
push esi
push dword [ebp - 0xac]
lea eax, [ebp - 0x58]
push eax
call fcn.1002e730
push esi
mov byte [ebp - 4], 4
mov byte [ebp - 0xa1], 0
call fcn.100348d0
add esp, 0x1c
cmp byte [ebp + 0x14], 0
je 0x10033b02
cmp dword [ebp - 0x2c], 0xf
lea eax, [ebp - 0xa0]
push 0x1b0
lea esi, [ebp - 0x40]
cmova esi, dword [ebp - 0x40]
push eax
call fcn.1002eee0
add esp, 8
cmp dword [eax + 0x14], 0xf
mov byte [ebp - 4], 5
jbe 0x10033a49
mov eax, dword [eax]
push esi
push eax
lea eax, [ebp - 0x28]
push 0x100bb040
push eax
call fcn.10035ba0
mov ecx, dword [ebp - 0x8c]
add esp, 0x10
mov byte [ebp - 4], 4
cmp ecx, 0xf
jbe 0x10033a9a
mov edx, dword [ebp - 0xa0]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10033a90
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10033c7d
push ecx
push edx
call fcn.1008c2e7
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 [0x100dbe18], eax
lea eax, [ebp - 0x70]
push 0xea60
push eax
call fcn.10034d30
mov ecx, dword [ebp - 0x14]
add esp, 8
mov byte [ebp - 0xa1], al
cmp ecx, 0xf
jbe 0x10033b02
mov edx, dword [ebp - 0x28]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10033af8
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10033c82
push ecx
push edx
call fcn.1008c2e7
add esp, 8
lea eax, [ebp - 0x58]
push 0xea60
push eax
call fcn.10034d30
add esp, 8
cmp byte [ebp - 0xa1], 0
jne 0x10033b25
push edi
call fcn.100348d0
add esp, 4
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov edi, eax
test edi, edi
je 0x10033b77
mov eax, dword [ebp - 0xb0]
cmp dword [eax + 0x14], 7
jbe 0x10033b48
mov eax, dword [eax]
push 0x10000
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
test esi, esi
jne 0x10033b64
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x10033b77
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 0x10033b82
call fcn.10034100
push dword [ebp - 0xac]
call fcn.10033c90
add esp, 4
call fcn.10034660
mov ecx, dword [ebp - 0x44]
cmp ecx, 7
jbe 0x10033bcf
mov edx, dword [ebp - 0x58]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x10033bc5
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10033c87
push ecx
push edx
call fcn.1008c2e7
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 0x10033c19
mov edx, dword [ebp - 0x70]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x10033c0f
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10033c87
push ecx
push edx
call fcn.1008c2e7
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 0x10033c5d
mov edx, dword [ebp - 0x40]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10033c53
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10033c87
push ecx
push edx
call fcn.1008c2e7
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.1008c2f5
mov esp, ebp
pop ebp
ret
call fcn.100917bf
call fcn.100917bf
call fcn.100917bf
call fcn.100917bf
int3