Function at 0x4588b0
Capabilities:
Persist via windows service
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5874a7
mov eax, dword fs:[0]
push eax
sub esp, 0x42c
mov eax, dword [0x6069b0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
call fcn.00402a00
mov ecx, eax
test ecx, ecx
jne 0x4588f3
push 0x80004005
call fcn.00402a80
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x428], eax
lea ecx, [ebp - 0x418]
mov dword [ebp - 4], 0
call fcn.0041f970
push eax
lea ecx, [ebp - 0x428]
mov byte [ebp - 4], 1
call fcn.00405c70
mov byte [ebp - 4], 0
or esi, 0xffffffff
mov edx, dword [ebp - 0x418]
mov eax, esi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x458947
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
call fcn.00437f40
cmp dword [0x60db24], 0
mov edi, 0x200
mov eax, 0x100
mov dword [ebp - 0x41c], 0
xorps xmm0, xmm0
mov dword [ebp - 0x41c], 0
cmovne edi, eax
movq qword [ebp - 0x424], xmm0
or edi, 0x2001f
mov dword [ebp - 0x424], 0
mov dword [ebp - 0x420], 0
lea eax, [ebp - 0x42c]
mov byte [ebp - 4], 2
push eax
push edi
push 0
push str.SYSTEMControlSet001ServicesExtensionProtect
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x42c], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ebx, dword [ebp - 0x428]
test eax, eax
jne 0x458c1b
mov esi, dword [ebp - 0x42c]
and edi, 0x300
mov dword [ebp - 0x430], esi
mov dword [ebp - 0x424], esi
mov dword [ebp - 0x420], edi
call fcn.00402a00
mov ecx, eax
test ecx, ecx
jne 0x458a02
push 0x80004005
call fcn.00402a80
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x418], eax
push 0x400
lea eax, [ebp - 0x410]
mov byte [ebp - 4], 3
push 0
push eax
call fcn.00555650
add esp, 0xc
mov dword [ebp - 0x414], 0x200
lea eax, [ebp - 0x414]
lea ecx, [ebp - 0x424]
push eax
lea eax, [ebp - 0x410]
push eax
push str.ImagePath
call fcn.0044daf0
lea ecx, [ebp - 0x410]
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x458a60
sub ecx, edx
lea eax, [ebp - 0x410]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x418]
call fcn.00407be0
mov edi, dword [ebp - 0x418]
test ebx, ebx
je 0x458adb
cmp dword [edi - 0xc], 0
jl 0x458adb
push ebx
push edi
call fcn.00554fd4
add esp, 8
test eax, eax
je 0x458adb
sub eax, edi
sar eax, 1
js 0x458adb
test esi, esi
je 0x458abf
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov dword [ebp - 0x430], eax
mov dword [ebp - 0x424], eax
mov dword [ebp - 0x420], 0
or esi, 0xffffffff
mov dword [ebp - 0x42c], 1
jmp 0x458baf
call fcn.00402a00
mov ecx, eax
test ecx, ecx
jne 0x458af0
push 0x80004005
call fcn.00402a80
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x414], eax
push ebx
lea eax, [ebp - 0x414]
mov byte [ebp - 4], 4
push str.___s
push eax
call fcn.00406400
mov esi, dword [ebp - 0x414]
add esp, 0xc
cmp dword [esi - 4], 1
mov eax, dword [esi - 0xc]
mov dword [ebp - 0x434], eax
jle 0x458b44
push eax
lea ecx, [ebp - 0x414]
call fcn.00407ce0
mov esi, dword [ebp - 0x414]
mov eax, dword [ebp - 0x434]
add eax, eax
push eax
mov eax, dword [ebp - 0x42c]
push esi
push 1
push 0
push str.ImagePath
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ecx, dword [ebp - 0x42c]
test ecx, ecx
je 0x458b7d
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor ecx, ecx
mov dword [ebp - 0x430], ecx
mov dword [ebp - 0x424], ecx
lea edx, [esi - 0x10]
mov dword [ebp - 0x420], 0
or esi, 0xffffffff
mov dword [ebp - 0x42c], 0
mov byte [ebp - 4], 3
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x458baf
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 2
add edi, 0xfffffff0
mov eax, esi
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x458bca
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x430]
test eax, eax
je 0x458bdb
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, dword [ebp - 0x42c]
mov dword [ebp - 4], 0xffffffff
add ebx, 0xfffffff0
lock xadd dword [ebx + 0xc], esi
dec esi
test esi, esi
jg 0x458bfd
mov ecx, dword [ebx]
push ebx
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00551ee1
mov esp, ebp
pop ebp
ret
mov edi, 1
jmp 0x458be1