Function at 0x1047160
Capabilities:
Delete registry key
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x105a858
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x30
mov dword [ebp - 4], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x1c], 0
lea ecx, [ebp - 0x18]
call fcn.01010c62
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x24]
call fcn.01010c62
mov byte [ebp - 4], 2
cmp dword [ebp + 0x10], 0
je 0x10471bd
cmp dword [ebp + 0x14], 0
jne 0x10471f3
mov dword [ebp - 0x28], 0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x24]
call fcn.01010c92
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x18]
call fcn.01010c92
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.01010c92
mov eax, dword [ebp - 0x28]
jmp 0x1047469
mov eax, dword [ebp + 0x10]
mov dword [eax], 0
push SysReAllocString
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x1047220
mov dword [ebp - 0x20], 0
jmp 0x10473e7
push SysReAllocString
lea ecx, [ebp + 8]
call fcn.01010987
push eax
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x1047267
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x424
jne 0x1047259
mov edx, dword [ebp + 0xc]
mov dword [edx], 1
jmp 0x1047265
mov dword [ebp - 0x20], 0
jmp 0x10473e7
jmp 0x104727c
mov dword [ebp - 0x20], 1
mov eax, dword [ebp + 0xc]
mov dword [eax], 0
jmp 0x10473e7
push 0x100dcd8
lea ecx, [ebp - 0x2c]
call fcn.0101236d
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x18]
push ecx
lea edx, [ebp + 8]
push edx
lea eax, [ebp - 0x2c]
push eax
call fcn.01025680
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x2c]
call fcn.01010c92
mov ecx, dword [0x10649e0]
push ecx
lea ecx, [ebp - 0x30]
call fcn.0101236d
mov byte [ebp - 4], 4
lea edx, [ebp - 0x24]
push edx
lea eax, [ebp - 0x30]
push eax
lea ecx, [ebp - 0x18]
push ecx
call fcn.01025680
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x30]
call fcn.01010c92
lea edx, [ebp - 0x1c]
push edx
push 0x2001f
push 0
lea ecx, [ebp - 0x24]
call fcn.01010987
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x1047309
mov dword [ebp - 0x20], 0
jmp 0x10473e7
mov eax, dword [ebp + 0x14]
push eax
push 0
push 0
push 0
mov ecx, dword [0x10649e4]
push ecx
mov edx, dword [ebp - 0x1c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x1047334
mov dword [ebp - 0x20], 0
jmp 0x10473e7
mov eax, dword [ebp + 0x14]
mov ecx, dword [eax]
push ecx
call fcn.0101e5e0
add esp, 4
mov dword [ebp - 0x34], eax
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp - 0x34]
mov dword [edx], eax
mov ecx, dword [ebp + 0x10]
cmp dword [ecx], 0
jne 0x1047361
mov dword [ebp - 0x20], 0
jmp 0x10473e7
mov edx, dword [ebp + 0x14]
push edx
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax]
push ecx
push 0
push 0
mov edx, dword [0x10649e4]
push edx
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x104738d
mov dword [ebp - 0x20], 0
jmp 0x10473e7
mov ecx, dword [ebp - 0x1c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x1c], 0
lea ecx, [ebp - 0x24]
call fcn.01010987
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
je 0x10473bf
mov dword [ebp - 0x20], 0
jmp 0x10473e7
lea ecx, [ebp - 0x18]
call fcn.01010987
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
je 0x10473e0
mov dword [ebp - 0x20], 0
jmp 0x10473e7
mov dword [ebp - 0x20], 1
cmp dword [ebp - 0x10], 0
je 0x10473f7
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
cmp dword [ebp - 0x14], 0
je 0x1047407
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
cmp dword [ebp - 0x1c], 0
je 0x1047417
mov ecx, dword [ebp - 0x1c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x20], 0
jne 0x1047439
mov edx, dword [ebp + 0x10]
cmp dword [edx], 0
je 0x1047439
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax]
mov dword [ebp - 0x38], ecx
mov edx, dword [ebp - 0x38]
push edx
call fcn.0101da1e
add esp, 4
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x3c], eax
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x24]
call fcn.01010c92
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x18]
call fcn.01010c92
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.01010c92
mov eax, dword [ebp - 0x3c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0x10