Function at 0x411320
Capabilities:
Delete service
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x48a4d0
push 0x441f50
mov eax, dword fs:[0]
push eax
sub esp, 0xaa0
mov eax, dword [0x48e050]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x1c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
xor edi, edi
mov dword [ebp - 0xa94], edi
xor esi, esi
mov dword [ebp - 0xa9c], esi
mov dword [ebp - 0xa98], edi
xor eax, eax
mov word [ebp - 0x668], ax
push 0x21a
push edi
lea ecx, [ebp - 0x666]
push ecx
call fcn.004416b0
add esp, 0xc
xor edx, edx
mov word [ebp - 0xa90], dx
push 0x206
push edi
lea eax, [ebp - 0xa8e]
push eax
call fcn.004416b0
add esp, 0xc
xor ecx, ecx
mov word [ebp - 0x228], cx
push 0x206
push edi
lea edx, [ebp - 0x226]
push edx
call fcn.004416b0
add esp, 0xc
mov dword [ebp - 0xaa4], 2
mov dword [ebp - 0xaa8], 1
mov dword [ebp - 0xaac], 0x21c
mov dword [ebp - 0xaa0], 0x208
xor eax, eax
mov word [ebp - 0x448], ax
push 0x21a
push edi
lea ecx, [ebp - 0x446]
push ecx
call fcn.004416b0
add esp, 0xc
xor edx, edx
mov word [ebp - 0x888], dx
push 0x21a
push edi
lea eax, [ebp - 0x886]
push eax
call fcn.004416b0
add esp, 0xc
mov dword [ebp - 4], edi
push 0xf003f
push edi
push edi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov ebx, eax
mov dword [ebp - 0xa94], ebx
cmp ebx, edi
jne 0x411457
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.OpenSCManager_service_failed:__d
jmp 0x411596
push 0xf01ff
push str.BkavSystemService
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
mov dword [ebp - 0xa9c], esi
cmp esi, edi
je 0x41159e
push str.BkavSystemService
push str.SYSTEMCurrentControlSetServices
push 0x47903c
push 0x104
lea ecx, [ebp - 0x228]
push ecx
call fcn.0043ed50
add esp, 0x14
lea edx, [ebp - 0xaac]
push edx
lea eax, [ebp - 0x668]
push eax
lea ecx, [ebp - 0xaa4]
push ecx
push str.ImagePath
lea edx, [ebp - 0x228]
push edx
push reloc.OLEAUT32.dll_SysReAllocString
mov edi, dword [sym.imp.SHLWAPI.dll_SHGetValueW]
call edi
test eax, eax
jne 0x411577
lea eax, [ebp - 0xaa0]
push eax
lea ecx, [ebp - 0xa90]
push ecx
lea edx, [ebp - 0xaa8]
push edx
push str.ObjectName
lea eax, [ebp - 0x228]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call edi
test eax, eax
jne 0x411577
lea ecx, [ebp - 0x888]
call fcn.004053e0
test eax, eax
je 0x41159e
lea ecx, [ebp - 0x888]
push ecx
push str.__sSystemBkavSystemService.exe_
push 0x104
lea edx, [ebp - 0x448]
push edx
call fcn.0043ed50
lea eax, [ebp - 0x448]
push eax
lea ecx, [ebp - 0x668]
push ecx
call fcn.0043ec25
add esp, 0x18
test eax, eax
je 0x41156b
lea edx, [ebp - 0x668]
push edx
lea eax, [ebp - 0x448]
push eax
push str.szSystemServiceDir___ws___szImagePath___ws_n
call fcn.00404c20
add esp, 0xc
push esi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
jmp 0x41159e
mov dword [ebp - 0xa98], 1
jmp 0x41159e
push str.BkavSystemService
push str.Dont_get_ImagePath_or_ObjectName__ws_n
call fcn.00404c20
add esp, 8
push esi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
push eax
push str.DeleteService:_error:__d
call fcn.00404c20
add esp, 8
mov dword [ebp - 4], 0xfffffffe
call fcn.004115d8
mov eax, dword [ebp - 0xa98]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.0043e4c7
mov esp, ebp
pop ebp
ret