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

Disassembly:
push 0x30
mov eax, 0x1059961
call fcn.01021eb9
mov eax, dword [ebp + 0x1c]
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 + 0xc]
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 + 0xc]
call fcn.010161a7
mov byte [ebp - 4], 3
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.010360f6
mov byte [ebp - 4], 1
lea ecx, [ebp + 0xc]
call fcn.01015174
push ebx
lea eax, [ebp - 0x10]
push eax
push ebx
push 0x2001f
push ebx
push ebx
push ebx
push dword [ebp - 0x18]
mov esi, reloc.OLEAUT32.dll_SysReAllocString
push esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
cmp eax, ebx
je 0x104e489
push dword [edi]
push eax
push 0x1011110
push 3
call fcn.0103ac75
add esp, 0x10
mov dword [ebp - 0x14], ebx
jmp 0x104e4c4
cmp dword [ebp + 0x10], ebx
jne 0x104e497
mov dword [ebp - 0x24], 1
jmp 0x104e4c4
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 0x104e4bd
push dword [edi]
push eax
push 0x1011308
jmp 0x104e47a
mov dword [ebp - 0x14], 1
cmp dword [ebp - 0x10], ebx
je 0x104e4d2
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x24], ebx
je 0x104e4e1
push dword [ebp - 0x18]
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
cmp dword [ebp + 0x18], ebx
je 0x104e5df
lea ecx, [ebp - 0x3c]
call fcn.01014c71
mov byte [ebp - 4], 4
lea ecx, [ebp + 0x10]
call fcn.010151da
mov byte [ebp - 4], 5
mov ecx, dword [ebp + 8]
lea eax, [ebp + 0x10]
push eax
push 2
call fcn.0103b80d
test eax, eax
jne 0x104e541
push 0x100bb50
push 3
call fcn.0103ac75
pop ecx
pop ecx
xor esi, esi
mov byte [ebp - 4], 4
lea ecx, [ebp + 0x10]
call fcn.01015174
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x3c]
call fcn.01014fbc
jmp 0x104e5e2
mov ecx, dword [ebp + 8]
lea eax, [ebp + 0xc]
push eax
push ebx
call fcn.0103afc1
test eax, eax
jne 0x104e566
push dword [ebp + 0x10]
push 0x1011298
push 3
call fcn.0103ac75
add esp, 0xc
jmp 0x104e522
push dword [ebp + 0xc]
push dword [ebp + 0x10]
push 0x1011248
push 1
call fcn.0103ac75
add esp, 0x10
cmp dword [ebp + 0xc], 5
je 0x104e5ab
cmp dword [ebp + 0xc], 9
jne 0x104e5bd
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x3c]
push eax
push 8
call fcn.0103c4cc
test eax, eax
je 0x104e522
mov edx, dword [ebp + 0x1c]
lea eax, [ebp - 0x3c]
push eax
push edi
lea ecx, [ebp + 0x10]
call fcn.0104c303
jmp 0x104e5b9
push dword [ebp + 0x1c]
lea eax, [ebp + 0x10]
push eax
mov ecx, edi
call fcn.0104bffd
cmp eax, ebx
je 0x104e5c7
push dword [ebp + 0x10]
push 0x10111f0
jmp 0x104e55a
mov byte [ebp - 4], 4
lea ecx, [ebp + 0x10]
call fcn.01015174
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x3c]
call fcn.01014fbc
xor esi, esi
inc esi
cmp dword [ebp - 0x14], ebx
je 0x104e5ef
cmp esi, ebx
je 0x104e5ef
xor esi, esi
jmp 0x104e5f4
mov esi, 0x643
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 0x18