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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x105a920
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x5c
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x20], 1
mov dword [ebp - 0x24], 1
mov eax, dword [ebp + 0x18]
mov dword [eax], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x40], 0
lea ecx, [ebp - 0x10]
call fcn.01010c62
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x44]
call fcn.01010c62
mov byte [ebp - 4], 1
push 0x100dcd8
lea ecx, [ebp - 0x50]
call fcn.0101236d
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x10]
push ecx
mov edx, dword [ebp + 8]
push edx
lea eax, [ebp - 0x50]
push eax
call fcn.01025680
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x50]
call fcn.01010c92
mov ecx, dword [0x10649e0]
push ecx
lea ecx, [ebp - 0x54]
call fcn.0101236d
mov byte [ebp - 4], 3
lea edx, [ebp - 0x44]
push edx
lea eax, [ebp - 0x54]
push eax
lea ecx, [ebp - 0x10]
push ecx
call fcn.01025680
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x54]
call fcn.01010c92
lea edx, [ebp - 0x1c]
push edx
push 0x2001f
push 0
lea ecx, [ebp - 0x44]
call fcn.010107dc
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x1047a79
cmp dword [ebp - 0x14], 2
je 0x1047a62
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
push ecx
mov edx, dword [ebp - 0x14]
push edx
push 0x100c508
push 3
call fcn.0102e650
add esp, 0x10
mov dword [ebp - 0x20], 0
jmp 0x1047ad7
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
push ecx
push 0x100c440
push 1
call fcn.0102e650
add esp, 0xc
jmp 0x1047ad7
cmp dword [ebp + 0x10], 0
jne 0x1047a88
mov dword [ebp - 0x40], 1
jmp 0x1047ad7
mov edx, dword [ebp + 0x14]
push edx
mov eax, dword [ebp + 0x10]
push eax
push 7
push 0
mov ecx, dword [0x10649e4]
push ecx
mov edx, dword [ebp - 0x1c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x1047ad0
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
push ecx
mov edx, dword [ebp - 0x14]
push edx
push 0x100c380
push 3
call fcn.0102e650
add esp, 0x10
mov dword [ebp - 0x20], 0
jmp 0x1047ad7
mov dword [ebp - 0x20], 1
cmp dword [ebp - 0x1c], 0
je 0x1047ae7
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x40], 0
je 0x1047b83
lea ecx, [ebp - 0x44]
call fcn.010107dc
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x48], 0
push SysReAllocString
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov dword [ebp - 0x4c], eax
cmp dword [ebp - 0x4c], 0
je 0x1047b83
push SysReAllocString
mov ecx, dword [ebp + 8]
call fcn.010107dc
push eax
mov ecx, dword [ebp - 0x4c]
push ecx
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov dword [ebp - 0x48], eax
cmp dword [ebp - 0x48], 0
jne 0x1047b6f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x424
jne 0x1047b6d
lea ecx, [ebp - 0x10]
call fcn.010107dc
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
jmp 0x1047b79
mov edx, dword [ebp - 0x48]
push edx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, dword [ebp - 0x4c]
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
lea ecx, [ebp - 0x3c]
call fcn.01010bb7
mov byte [ebp - 4], 4
cmp dword [ebp + 0x10], 0
je 0x1047ba1
mov ecx, dword [ebp + 0x10]
push ecx
lea ecx, [ebp - 0x3c]
call fcn.0102f1f0
mov edx, dword [ebp + 0x18]
push edx
lea eax, [ebp - 0x3c]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
push ecx
mov ecx, esp
mov dword [ebp - 0x58], esp
mov edx, dword [ebp + 8]
push edx
call fcn.01010eb5
mov dword [ebp - 0x60], eax
mov eax, dword [ebp - 0x60]
mov dword [ebp - 0x64], eax
mov byte [ebp - 4], 5
mov byte [ebp - 4], 4
call fcn.0104b090
mov dword [ebp - 0x68], eax
cmp dword [ebp - 0x68], 0
jne 0x1047bf3
push 0x100c318
push 3
call fcn.0102e650
add esp, 8
mov dword [ebp - 0x24], 0
jmp 0x1047bfa
mov dword [ebp - 0x24], 1
cmp dword [ebp - 0x20], 0
je 0x1047c06
cmp dword [ebp - 0x24], 0
jne 0x1047c0f
mov dword [ebp - 0x14], 0x643
jmp 0x1047c16
mov dword [ebp - 0x14], 0
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x5c], ecx
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x3c]
call fcn.01010c00
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x44]
call fcn.01010c92
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.01010c92
mov eax, dword [ebp - 0x5c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0x14