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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b03d5
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0x4e54fc]
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.00406d20
mov ecx, eax
test ecx, ecx
je 0x46f139
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
mov byte [ebp - 4], 1
mov eax, 0x4c5fe4
lea ecx, [ebp - 0x10]
test eax, 0xffff0000
jne 0x46ef8e
movzx eax, ax
push eax
call fcn.004054c0
jmp 0x46ef9a
push 1
push 0x4c5fe4
call fcn.004056b0
mov byte [ebp - 4], 2
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x1c]
push 0x4e5fb0
push eax
call fcn.0040a8e0
mov byte [ebp - 4], 3
push dword [ebp + 8]
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.00404f30
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 0x46eff7
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 0x46f018
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 0x46f036
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 0x46f052
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
test edi, edi
jne 0x46f05d
xor bl, bl
jmp 0x46f105
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 0x46f0b6
push 0x4e5f76
push edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x46f093
cmp dword [ebp - 0x18], 4
jne 0x46f093
mov eax, dword [ebp - 0x14]
jmp 0x46f09b
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 0x46f100
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 0x4e5f76
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 0x46f11e
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.00406ac0
int3