Function at 0x104d8a8
Capabilities:
Delete registry value
Persist via windows service
Query or enumerate registry value
Set registry value

Disassembly:
push 0x30
mov eax, 0x105980b
call fcn.01021eb9
mov esi, ecx
xor ebx, ebx
lea ecx, [ebp - 0x3c]
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x10], ebx
call fcn.01014c71
mov dword [ebp - 4], ebx
mov eax, dword [ebp + 0x14]
lea ecx, [ebp - 0x1c]
mov dword [eax], 1
call fcn.010151da
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x18]
call fcn.010151da
mov byte [ebp - 4], 2
push 0x1012368
lea ecx, [ebp - 0x24]
call fcn.010161a7
mov byte [ebp - 4], 3
lea eax, [ebp - 0x1c]
push eax
push dword [ebp + 0xc]
lea eax, [ebp - 0x24]
push eax
call fcn.010360f6
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x24]
call fcn.01015174
push dword [0x10646a4]
lea ecx, [ebp + 0xc]
call fcn.010161a7
mov byte [ebp - 4], 4
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], 2
lea ecx, [ebp + 0xc]
call fcn.01015174
lea eax, [ebp - 0x10]
push eax
push 0x2001f
push ebx
push dword [ebp - 0x18]
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x104db2b
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp - 0x14]
push eax
push ebx
push ebx
push ebx
push dword [0x10646a8]
mov dword [ebp - 0x14], ebx
push dword [ebp - 0x10]
call edi
cmp eax, ebx
je 0x104d99f
cmp eax, 2
jne 0x104db2b
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x10], ebx
jmp 0x104db8b
add dword [ebp - 0x14], 4
push dword [ebp - 0x14]
call fcn.01054617
pop ecx
mov dword [esi], eax
cmp eax, ebx
je 0x104db2b
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp + 0x18]
push eax
mov dword [ecx], eax
push ebx
push dword [esi]
call fcn.010219e0
add esp, 0xc
lea eax, [ebp - 0x14]
push eax
push dword [esi]
push ebx
push ebx
push dword [0x10646a8]
push dword [ebp - 0x10]
call edi
test eax, eax
jne 0x104db2b
push dword [esi]
lea ecx, [ebp - 0x3c]
call fcn.0103c474
mov esi, dword [ebp + 8]
push ecx
mov ecx, esp
mov dword [ebp + 0xc], esp
push esi
call fcn.010151f2
mov byte [ebp - 4], 5
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x3c]
call fcn.010378c2
cmp eax, ebx
je 0x104daf0
lea ecx, [ebp + 0xc]
call fcn.010151da
mov byte [ebp - 4], 6
lea ecx, [ebp + 8]
call fcn.010151da
mov byte [ebp - 4], 7
mov eax, dword [ebp - 0x3c]
mov dword [ebp + 0x18], eax
lea eax, [ebp + 0x18]
push eax
lea ecx, [ebp - 0x3c]
call fcn.0105038c
push eax
lea ecx, [ebp + 0xc]
call fcn.01015959
push dword [esi]
lea ecx, [ebp + 0xc]
call fcn.0101492b
lea ecx, [ebp - 0x3c]
test eax, eax
jne 0x104dacd
lea eax, [ebp + 0xc]
push eax
call fcn.0103b662
cmp dword [ebp - 0x34], ebx
je 0x104dad8
mov ecx, dword [ebp + 0x10]
lea eax, [ebp - 0x3c]
push eax
call fcn.0104a1f3
mov eax, dword [ebp - 0x3c]
mov dword [ebp + 0x18], eax
lea eax, [ebp + 0x18]
push eax
lea ecx, [ebp - 0x3c]
call fcn.0105038c
push eax
lea ecx, [ebp + 8]
call fcn.01015959
push dword [0x10646ac]
lea ecx, [ebp + 8]
call fcn.0101492b
test eax, eax
jne 0x104dad8
push dword [0x10646ac]
lea ecx, [ebp + 0x14]
call fcn.010161a7
mov byte [ebp - 4], 8
lea eax, [ebp + 0x14]
push eax
lea ecx, [ebp - 0x3c]
call fcn.0103b662
mov byte [ebp - 4], 7
lea ecx, [ebp + 0x14]
call fcn.01015174
jmp 0x104dad8
push esi
call fcn.0103b662
mov eax, dword [ebp + 0x14]
mov dword [eax], ebx
mov byte [ebp - 4], 6
lea ecx, [ebp + 8]
call fcn.01015174
mov byte [ebp - 4], 2
lea ecx, [ebp + 0xc]
call fcn.01015174
cmp dword [ebp - 0x34], ebx
je 0x104db6f
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x3c]
call fcn.01035d59
mov esi, eax
cmp esi, ebx
je 0x104db2b
mov eax, dword [ebp - 0x14]
add eax, eax
push eax
push esi
push 7
push ebx
push dword [0x10646a8]
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push esi
test eax, eax
je 0x104db67
call fcn.01021179
pop ecx
cmp dword [ebp - 0x10], ebx
je 0x104db39
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x18]
call fcn.01015174
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x1c]
call fcn.01015174
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x3c]
call fcn.01014fbc
mov eax, dword [ebp - 0x20]
call fcn.01021fa5
ret 0x14
call fcn.01021179
pop ecx
jmp 0x104db82
push dword [0x10646a8]
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
jne 0x104db2b
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x20], 1
jmp 0x104db39