Function at 0x104eb81
Capabilities:
Delete registry key
Persist via windows service
Set registry value

Disassembly:
push 0x30
mov eax, 0x1059a75
call fcn.01021eb9
mov eax, dword [ebp + 0x18]
xor ebx, ebx
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x14], 1
mov dword [eax], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x24], ebx
call fcn.010151da
mov dword [ebp - 4], ebx
lea ecx, [ebp - 0x18]
call fcn.010151da
mov byte [ebp - 4], 1
push 0x1012368
lea ecx, [ebp - 0x20]
call fcn.010161a7
mov byte [ebp - 4], 2
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x1c]
push eax
push edi
lea eax, [ebp - 0x20]
push eax
call fcn.010360f6
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x20]
call fcn.01015174
push dword [0x10646a4]
lea ecx, [ebp + 8]
call fcn.010161a7
mov byte [ebp - 4], 3
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.010360f6
mov byte [ebp - 4], 1
lea ecx, [ebp + 8]
call fcn.01015174
lea eax, [ebp - 0x10]
push eax
push 0x2001f
push ebx
push dword [ebp - 0x18]
mov esi, reloc.OLEAUT32.dll_SysReAllocString
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
je 0x104ec5f
push dword [edi]
cmp eax, 2
je 0x104ec4e
push eax
push 0x1011110
push 3
call fcn.0103ac75
add esp, 0x10
mov dword [ebp - 0x14], ebx
jmp 0x104ec9a
push 0x10113c8
push 1
call fcn.0103ac75
add esp, 0xc
jmp 0x104ec9a
cmp dword [ebp + 0x10], ebx
jne 0x104ec6d
mov dword [ebp - 0x24], 1
jmp 0x104ec9a
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push 7
push ebx
push dword [0x10646a8]
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
cmp eax, ebx
je 0x104ec93
push dword [edi]
push eax
push 0x1011308
jmp 0x104ec3f
mov dword [ebp - 0x14], 1
cmp dword [ebp - 0x10], ebx
je 0x104eca8
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x24], ebx
je 0x104ed08
push dword [ebp - 0x18]
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov esi, SysReAllocString
push esi
push ebx
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov dword [ebp + 8], eax
cmp eax, ebx
je 0x104ed08
mov eax, dword [edi]
push esi
push eax
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
cmp eax, ebx
jne 0x104ed00
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x424
jne 0x104ed03
push dword [ebp - 0x1c]
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
jmp 0x104ed03
push eax
call esi
push dword [ebp + 8]
call esi
lea ecx, [ebp - 0x3c]
call fcn.01014c71
mov byte [ebp - 4], 4
cmp dword [ebp + 0x10], ebx
je 0x104ed24
push dword [ebp + 0x10]
lea ecx, [ebp - 0x3c]
call fcn.0103c474
push dword [ebp + 0x18]
lea eax, [ebp - 0x3c]
push eax
push dword [ebp + 0xc]
push ecx
mov ecx, esp
mov dword [ebp + 0x10], esp
push edi
call fcn.010151f2
mov byte [ebp - 4], 5
mov byte [ebp - 4], 4
call fcn.0104dea1
cmp eax, ebx
jne 0x104ed5d
push 0x1011f78
push 3
call fcn.0103ac75
pop ecx
pop ecx
xor eax, eax
jmp 0x104ed60
xor eax, eax
inc eax
cmp dword [ebp - 0x14], ebx
je 0x104ed6d
cmp eax, ebx
je 0x104ed6d
xor esi, esi
jmp 0x104ed72
mov esi, 0x643
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x3c]
call fcn.01014fbc
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x18]
call fcn.01015174
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.01015174
mov eax, esi
call fcn.01021fa5
ret 0x14