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

Disassembly:
push 0x30
mov eax, 0x105962d
call fcn.01022092
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.010155dc
mov dword [ebp - 4], ebx
lea ecx, [ebp - 0x18]
call fcn.010155dc
mov byte [ebp - 4], 1
push 0x1012778
lea ecx, [ebp - 0x20]
call fcn.01016a0f
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.01035e1c
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x20]
call fcn.010151a6
push dword [0x10645d4]
lea ecx, [ebp + 8]
call fcn.01016a0f
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.01035e1c
mov byte [ebp - 4], 1
lea ecx, [ebp + 8]
call fcn.010151a6
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 0x104e6e0
cmp eax, 2
push dword [edi]
je 0x104e6cf
push eax
push 0x1011520
push 3
call fcn.0103aac4
add esp, 0x10
mov dword [ebp - 0x14], ebx
jmp 0x104e71b
push 0x10117d8
push 1
call fcn.0103aac4
add esp, 0xc
jmp 0x104e71b
cmp dword [ebp + 0x10], ebx
jne 0x104e6ee
mov dword [ebp - 0x24], 1
jmp 0x104e71b
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push 7
push ebx
push dword [0x10645d8]
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
cmp eax, ebx
je 0x104e714
push dword [edi]
push eax
push 0x1011718
jmp 0x104e6c0
mov dword [ebp - 0x14], 1
cmp dword [ebp - 0x10], ebx
je 0x104e729
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x24], ebx
je 0x104e789
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]
cmp eax, ebx
mov dword [ebp + 8], eax
je 0x104e789
mov eax, dword [edi]
push esi
push eax
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
cmp eax, ebx
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jne 0x104e781
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x424
jne 0x104e784
push dword [ebp - 0x1c]
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
jmp 0x104e784
push eax
call esi
push dword [ebp + 8]
call esi
lea ecx, [ebp - 0x3c]
call fcn.0101526d
mov byte [ebp - 4], 4
cmp dword [ebp + 0x10], ebx
je 0x104e7a5
push dword [ebp + 0x10]
lea ecx, [ebp - 0x3c]
call fcn.0103c2bd
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.010157a2
mov byte [ebp - 4], 5
mov byte [ebp - 4], 4
call fcn.0104d922
cmp eax, ebx
jne 0x104e7de
push 0x1012388
push 3
call fcn.0103aac4
pop ecx
pop ecx
xor eax, eax
jmp 0x104e7e1
xor eax, eax
inc eax
cmp dword [ebp - 0x14], ebx
je 0x104e7ee
cmp eax, ebx
je 0x104e7ee
xor esi, esi
jmp 0x104e7f3
mov esi, 0x643
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x3c]
call fcn.01014fc6
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x18]
call fcn.010151a6
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.010151a6
mov eax, esi
call fcn.0102217e
ret 0x14