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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x105ae88
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x6c
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
lea ecx, [ebp - 0x34]
call fcn.01010bb7
mov dword [ebp - 4], 0
mov eax, dword [ebp + 0x14]
mov dword [eax], 1
lea ecx, [ebp - 0x10]
call fcn.01010c62
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x3c]
call fcn.01010c62
mov byte [ebp - 4], 2
push 0x100dcd8
lea ecx, [ebp - 0x54]
call fcn.0101236d
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
lea eax, [ebp - 0x54]
push eax
call fcn.01025680
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x54]
call fcn.01010c92
mov ecx, dword [0x10649e0]
push ecx
lea ecx, [ebp - 0x58]
call fcn.0101236d
mov byte [ebp - 4], 4
lea edx, [ebp - 0x3c]
push edx
lea eax, [ebp - 0x58]
push eax
lea ecx, [ebp - 0x10]
push ecx
call fcn.01025680
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x58]
call fcn.01010c92
lea edx, [ebp - 0x18]
push edx
push 0x2001f
push 0
lea ecx, [ebp - 0x3c]
call fcn.010107dc
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x104c7a1
jmp 0x104ca42
mov dword [ebp - 0x38], 0
lea eax, [ebp - 0x38]
push eax
push 0
push 0
push 0
mov ecx, dword [0x10649e4]
push ecx
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x104c7ef
cmp dword [ebp - 0x14], 2
jne 0x104c7ea
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x1c], 1
jmp 0x104ca42
mov ecx, dword [ebp - 0x38]
add ecx, 4
mov dword [ebp - 0x38], ecx
mov edx, dword [ebp - 0x38]
push edx
call fcn.0101e5e0
add esp, 4
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp + 0x18]
mov ecx, dword [ebp - 0x5c]
mov dword [eax], ecx
mov edx, dword [ebp + 0x18]
cmp dword [edx], 0
jne 0x104c81c
jmp 0x104ca42
mov eax, dword [ebp + 0x1c]
mov ecx, dword [ebp - 0x38]
mov dword [eax], ecx
mov edx, dword [ebp - 0x38]
push edx
push 0
mov eax, dword [ebp + 0x18]
mov ecx, dword [eax]
push ecx
call sub.ntdll.dll_memset
add esp, 0xc
lea edx, [ebp - 0x38]
push edx
mov eax, dword [ebp + 0x18]
mov ecx, dword [eax]
push ecx
push 0
push 0
mov edx, dword [0x10649e4]
push edx
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x104c860
jmp 0x104ca42
mov ecx, dword [ebp + 0x18]
mov edx, dword [ecx]
push edx
lea ecx, [ebp - 0x34]
call fcn.0102f1f0
push ecx
mov ecx, esp
mov dword [ebp - 0x60], esp
mov eax, dword [ebp + 8]
push eax
call fcn.01010eb5
mov dword [ebp - 0x70], eax
mov ecx, dword [ebp - 0x70]
mov dword [ebp - 0x74], ecx
mov byte [ebp - 4], 5
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x34]
call fcn.0102be90
mov dword [ebp - 0x78], eax
cmp dword [ebp - 0x78], 0
jne 0x104c8a4
jmp 0x104c9a9
lea ecx, [ebp - 0x44]
call fcn.01010c62
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x40]
call fcn.01010c62
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x34]
call fcn.010107dc
mov dword [ebp - 0x48], eax
lea edx, [ebp - 0x48]
push edx
lea ecx, [ebp - 0x34]
call fcn.010106e3
push eax
lea ecx, [ebp - 0x44]
call fcn.010115e7
mov ecx, dword [ebp + 8]
call fcn.010107dc
push eax
lea ecx, [ebp - 0x44]
call fcn.0101095c
test eax, eax
jne 0x104c97c
lea eax, [ebp - 0x44]
push eax
lea ecx, [ebp - 0x34]
call fcn.010306c0
lea ecx, [ebp - 0x34]
call fcn.010106d5
movzx ecx, al
test ecx, ecx
jne 0x104c97a
lea edx, [ebp - 0x34]
push edx
mov ecx, dword [ebp + 0x10]
call fcn.010470d0
lea ecx, [ebp - 0x34]
call fcn.010107dc
mov dword [ebp - 0x48], eax
lea eax, [ebp - 0x48]
push eax
lea ecx, [ebp - 0x34]
call fcn.010106e3
push eax
lea ecx, [ebp - 0x40]
call fcn.010115e7
mov ecx, dword [0x10649e8]
push ecx
lea ecx, [ebp - 0x40]
call fcn.0101095c
test eax, eax
jne 0x104c97a
mov edx, dword [0x10649e8]
push edx
lea ecx, [ebp - 0x4c]
call fcn.0101236d
mov byte [ebp - 4], 8
lea eax, [ebp - 0x4c]
push eax
lea ecx, [ebp - 0x34]
call fcn.010306c0
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x4c]
call fcn.01010c92
jmp 0x104c991
mov ecx, dword [ebp + 8]
push ecx
lea ecx, [ebp - 0x34]
call fcn.010306c0
mov edx, dword [ebp + 0x14]
mov dword [edx], 0
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x40]
call fcn.01010c92
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x44]
call fcn.01010c92
lea ecx, [ebp - 0x34]
call fcn.010106d5
movzx eax, al
test eax, eax
jne 0x104ca1a
lea ecx, [ebp - 0x38]
push ecx
lea ecx, [ebp - 0x34]
call fcn.01027cd0
mov dword [ebp - 0x50], eax
cmp dword [ebp - 0x50], 0
jne 0x104c9cf
jmp 0x104ca42
mov edx, dword [ebp - 0x38]
shl edx, 1
push edx
mov eax, dword [ebp - 0x50]
push eax
push 7
push 0
mov ecx, dword [0x10649e4]
push ecx
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x104ca06
mov eax, dword [ebp - 0x50]
mov dword [ebp - 0x64], eax
mov ecx, dword [ebp - 0x64]
push ecx
call fcn.0101da1e
add esp, 4
jmp 0x104ca42
mov edx, dword [ebp - 0x50]
mov dword [ebp - 0x68], edx
mov eax, dword [ebp - 0x68]
push eax
call fcn.0101da1e
add esp, 4
jmp 0x104ca31
mov ecx, dword [0x10649e4]
push ecx
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
je 0x104ca31
jmp 0x104ca42
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x1c], 1
cmp dword [ebp - 0x1c], 0
jne 0x104ca58
cmp dword [ebp - 0x18], 0
je 0x104ca58
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [ebp - 0x1c]
mov dword [ebp - 0x6c], edx
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x3c]
call fcn.01010c92
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x10]
call fcn.01010c92
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x34]
call fcn.01010c00
mov eax, dword [ebp - 0x6c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0x18