Function at 0x40a900
Capabilities:
Persist via windows service
Set registry value

Disassembly:
sub esp, 0x23c
mov eax, dword [str.Extended_base]
mov ecx, dword [0x41a0d8]
mov edx, dword [0x41a0dc]
push ebx
mov dword [esp + 0xc], eax
mov eax, dword [0x41a0e0]
push ebp
push esi
push edi
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x24], eax
mov ecx, 8
xor eax, eax
lea edi, [esp + 0x28]
mov dword [esp + 0x20], edx
lea edx, [esp + 0x4c]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov edi, str.SYSTEMCurrentControlSetServices_
or ecx, 0xffffffff
xor eax, eax
mov ebx, dword [esp + 0x250]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x4c]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
lea eax, [esp + 0x10]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x18]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
push ecx
push 0
push 0xf003f
push 0
push 0x421d68
lea edx, [esp + 0x64]
push 0
push edx
push 0x80000002
call ebp
test eax, eax
jne 0x40ab35
mov ecx, dword [esp + 0x14]
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
lea eax, [esp + 0x10]
push 4
push eax
push 4
push 0
mov edi, 1
push str.ErrorControl
push ecx
mov dword [esp + 0x28], edi
call esi
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x10]
push 4
push edx
push 4
push 0
push str.Start
push eax
mov dword [esp + 0x28], 0
call esi
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x10]
push 4
push ecx
push 4
push 0
push 0x41a094
push edx
mov dword [esp + 0x28], edi
call esi
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x10]
push 4
push eax
push 4
push 0
push str.Type
push ecx
mov dword [esp + 0x28], edi
call esi
lea edi, [esp + 0x18]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x18]
repne scasb al, byte es:[edi]
not ecx
push ecx
push edx
push 1
push eax
mov eax, dword [esp + 0x24]
push str.Group
push eax
call esi
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, str.SYSTEMCurrentControlSetServices_
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x4c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x4c]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, ebx
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]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea edx, [esp + 0x4c]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str.Parameters
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]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0x10]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x18]
lea edx, [esp + 0x50]
push ecx
push 0
push 0xf003f
push 0
push 0x421d68
push 0
push edx
push 0x80000002
call ebp
test eax, eax
jne 0x40ab35
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x23c
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x23c
ret