Function at 0x411320
Capabilities:
Access the windows event log
Delete service

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b6946
mov eax, dword fs:[0]
push eax
sub esp, 0xb4
mov eax, dword [0x506054]
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
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
test edi, edi
jne 0x41144d
call fcn.0040bd30
mov ecx, eax
test ecx, ecx
je 0x41165c
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0xb4], eax
mov dword [ebp - 4], edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0xb4]
push str.OpenSCManager_failed_with_error__d
push eax
call fcn.0040b570
mov esi, dword [ebp - 0xb4]
add esp, 0xc
cmp dword [esi - 4], 1
jle 0x4113c2
push dword [esi - 0xc]
lea ecx, [ebp - 0xb4]
call fcn.0040b4a0
mov esi, dword [ebp - 0xb4]
push 0x4ede8c
push 0
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
mov edi, eax
test edi, edi
je 0x411425
push esi
push 0x4ed750
lea eax, [ebp - 0xb0]
push 0x50
push eax
call fcn.00410230
add esp, 0x10
mov dword [ebp - 0xb4], 0x4ede8c
lea eax, [ebp - 0xb0]
mov dword [ebp - 0xb8], eax
lea eax, [ebp - 0xb8]
push 0
push eax
push 0
push 2
push 0
push 0
push 0
push 1
push edi
call dword [sym.imp.ADVAPI32.dll_ReportEventW]
push edi
call dword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x411640
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x411640
push 0x10000
push 0x4ede8c
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov ebx, eax
test ebx, ebx
jne 0x411536
call fcn.0040bd30
mov ecx, eax
test ecx, ecx
je 0x41165c
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0xb4], eax
mov dword [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0xb4]
push str.OpenService_failed_with_error__d
push eax
call fcn.0040b570
mov esi, dword [ebp - 0xb4]
add esp, 0xc
cmp dword [esi - 4], 1
jle 0x4114c7
push dword [esi - 0xc]
lea ecx, [ebp - 0xb4]
call fcn.0040b4a0
mov esi, dword [ebp - 0xb4]
push 0x4ede8c
push 0
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
mov ebx, eax
test ebx, ebx
je 0x41152a
push esi
push 0x4ed750
lea eax, [ebp - 0xb0]
push 0x50
push eax
call fcn.00410230
add esp, 0x10
mov dword [ebp - 0xb4], 0x4ede8c
lea eax, [ebp - 0xb0]
mov dword [ebp - 0xb8], eax
lea eax, [ebp - 0xb8]
push 0
push eax
push 0
push 2
push 0
push 0
push 0
push 1
push ebx
call dword [sym.imp.ADVAPI32.dll_ReportEventW]
push ebx
call dword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x411425
push ebx
call dword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
jne 0x411634
call fcn.0040bd30
mov ecx, eax
test ecx, ecx
je 0x41165c
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0xb4], eax
mov dword [ebp - 4], 2
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0xb4]
push str.DeleteService_failed_with_error__d
push eax
call fcn.0040b570
mov esi, dword [ebp - 0xb4]
add esp, 0xc
cmp dword [esi - 4], 1
jle 0x4115a4
push dword [esi - 0xc]
lea ecx, [ebp - 0xb4]
call fcn.0040b4a0
mov esi, dword [ebp - 0xb4]
push 0x4ede8c
push 0
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
mov dword [ebp - 0xb4], eax
test eax, eax
je 0x411615
push esi
push 0x4ed750
lea eax, [ebp - 0xb0]
push 0x50
push eax
call fcn.00410230
add esp, 0x10
mov dword [ebp - 0xbc], 0x4ede8c
lea eax, [ebp - 0xb0]
mov dword [ebp - 0xc0], eax
lea eax, [ebp - 0xc0]
push 0
push eax
push 0
push 2
push 0
push 0
push 0
push 1
push dword [ebp - 0xb4]
call dword [sym.imp.ADVAPI32.dll_ReportEventW]
push dword [ebp - 0xb4]
call dword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x411634
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push ebx
call esi
push edi
call esi
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.004364d3
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.0040bb00
int3