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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x538bd5
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0x58e5a4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor edi, edi
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x20], edi
mov dword [ebp - 4], edi
call fcn.00410080
mov ecx, eax
test ecx, ecx
je 0x4a8849
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
mov byte [ebp - 4], 1
mov eax, 0x560f9c
lea ecx, [ebp - 0x10]
test eax, 0xffff0000
jne 0x4a869e
movzx eax, ax
push eax
call fcn.0040cd60
jmp 0x4a86aa
push 1
push 0x560f9c
call fcn.0040d3a0
mov byte [ebp - 4], 2
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x1c]
push str.SystemCurrentControlSetServices
push eax
call fcn.00415af0
mov byte [ebp - 4], 3
push dword [ebp + 8]
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.0040c040
add esp, 0x18
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x14]
push ecx
push 0x2001f
push 0
push dword [eax]
mov dword [ebp - 0x14], 0
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4a8707
mov edi, dword [ebp - 0x14]
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x24], eax
mov byte [ebp - 4], 3
or esi, 0xffffffff
mov edx, dword [ebp - 0x18]
mov eax, esi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4a8728
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 2
mov eax, esi
mov edx, dword [ebp - 0x1c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4a8746
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x10]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], esi
dec esi
test esi, esi
jg 0x4a8762
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
test edi, edi
jne 0x4a876d
xor bl, bl
jmp 0x4a8815
cmp byte [ebp + 0xc], 0
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x14]
mov dword [ebp - 0x1c], 4
push eax
lea eax, [ebp - 0x18]
push eax
push 0
je 0x4a87c6
push 0x58f036
push edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4a87a3
cmp dword [ebp - 0x18], 4
jne 0x4a87a3
mov eax, dword [ebp - 0x14]
jmp 0x4a87ab
mov eax, 3
mov dword [ebp - 0x14], eax
push 4
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x1c]
push eax
push 4
push 0
push str.Start
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
jmp 0x4a8810
push str.Start
push edi
mov dword [ebp - 0x14], 3
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov eax, dword [ebp - 0x14]
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push 4
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x1c]
push eax
push 4
push 0
push 0x58f036
push edi
call esi
push 4
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x1c], 4
push eax
push 4
push 0
push str.Start
push edi
call esi
test eax, eax
sete bl
mov dword [ebp - 4], 0xffffffff
test edi, edi
je 0x4a882e
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.0040fbc0
int3