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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x58b717
mov eax, dword fs:[0]
push eax
sub esp, 0x42c
mov eax, dword [0x60e9b0]
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.00402a90
mov ecx, eax
test ecx, ecx
jne 0x45c4c3
push 0x80004005
call fcn.00402b10
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.004213f0
push eax
lea ecx, [ebp - 0x428]
mov byte [ebp - 4], 1
call fcn.00405dc0
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 0x45c517
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
call fcn.00439be0
cmp dword [0x615f44], 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 0x45c7eb
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.00402a90
mov ecx, eax
test ecx, ecx
jne 0x45c5d2
push 0x80004005
call fcn.00402b10
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.00559270
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.00450ae0
lea ecx, [ebp - 0x410]
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x45c630
sub ecx, edx
lea eax, [ebp - 0x410]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x418]
call fcn.00407d30
mov edi, dword [ebp - 0x418]
test ebx, ebx
je 0x45c6ab
cmp dword [edi - 0xc], 0
jl 0x45c6ab
push ebx
push edi
call fcn.00558bf4
add esp, 8
test eax, eax
je 0x45c6ab
sub eax, edi
sar eax, 1
js 0x45c6ab
test esi, esi
je 0x45c68f
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 0x45c77f
call fcn.00402a90
mov ecx, eax
test ecx, ecx
jne 0x45c6c0
push 0x80004005
call fcn.00402b10
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.00406550
mov esi, dword [ebp - 0x414]
add esp, 0xc
cmp dword [esi - 4], 1
mov eax, dword [esi - 0xc]
mov dword [ebp - 0x434], eax
jle 0x45c714
push eax
lea ecx, [ebp - 0x414]
call fcn.00407e30
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 0x45c74d
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 0x45c77f
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 0x45c79a
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x430]
test eax, eax
je 0x45c7ab
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 0x45c7cd
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.00555b37
mov esp, ebp
pop ebp
ret
mov edi, 1
jmp 0x45c7b1