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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x408
push ebx
mov ebx, ecx
push esi
push edi
or ecx, 0xffffffff
mov edi, str.SYSTEMCurrentControlSetServices_
xor eax, eax
lea edx, [ebp - 0x408]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
shr ecx, 2
mov edi, edx
lea edx, [ebp - 0x408]
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [ebx + 4]
or ecx, 0xffffffff
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]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea edx, [ebp - 0x408]
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 edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [ebp - 8]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
lea ecx, [ebp - 4]
lea edx, [ebp - 0x408]
push ecx
push 0
push 0xf003f
push 0
push 0
push 0
push edx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x406ccc
mov eax, dword [ebx]
push 0
push 0
push 0
push 0xd5
push 4
mov ecx, ebx
call dword [eax + 4]
lea edx, [ebx + 0xac]
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
repne scasb al, byte es:[edi]
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
not ecx
push ecx
mov ecx, dword [ebp - 4]
push edx
push 1
push eax
push str.Description
push ecx
call esi
lea edx, [ebx + 0xfc]
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
push ecx
push edx
mov edx, dword [ebp - 4]
push 1
push eax
push str.Execute
push edx
call esi
lea edx, [ebx + 0x200]
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
push ecx
push edx
push 1
push eax
mov eax, dword [ebp - 4]
push 0x41d024
push eax
call esi
mov edx, dword [ebp - 4]
lea ecx, [ebx + 0x280]
push 4
push ecx
push 4
push 0
push str.InstallMode
push edx
call esi
mov ecx, dword [ebp - 4]
lea eax, [ebx + 0x284]
push 4
push eax
push 4
push 0
push str.DeclineLimit
push ecx
call esi
mov eax, dword [ebp - 4]
lea edx, [ebx + 0x288]
push 4
push edx
push 4
push 0
push str.DisplayMessage
push eax
call esi
lea ecx, [ebx + 0x28c]
push 4
push ecx
mov edx, dword [ebp - 4]
push 4
push 0
push str.RestartMode
push edx
call esi
mov ecx, dword [ebp - 4]
lea eax, [ebx + 0x358]
push 4
push eax
push 4
push 0
push str.ConditionalRestart
push ecx
call esi
mov eax, dword [ebp - 4]
lea edx, [ebx + 0x290]
push 4
push edx
push 4
push 0
push str.AutoRestart
push eax
call esi
mov edx, dword [ebp - 4]
lea ecx, [ebx + 0x298]
push 4
push ecx
push 4
push 0
push str.RemoveOnInstall
push edx
call esi
mov ecx, dword [ebp - 4]
lea eax, [ebx + 0x2a4]
push 4
push eax
push 4
push 0
push str.CheckInstall
push ecx
call esi
mov edx, dword [ebp - 4]
add ebx, 0x2b4
push 4
push ebx
push 4
push 0
push str.VerifyClient
push edx
call esi
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [ebx]
push 0
push 0
push 0
push 0xd6
push 4
mov ecx, ebx
call dword [edx + 4]
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret