Function at 0x41a4f7
Capabilities:
Create service
Delete registry key
Delete service
Persist via windows service
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push ebx
push esi
push edi
mov dword [ebp - 0x30], 0
mov dword [ebp - 0xc], 0x378
mov dword [ebp - 8], 0x278
mov dword [ebp - 4], 0x3bc
mov eax, str.IoPortAddress0
lea ecx, [ebp - 0x1c]
mov edx, dword [eax]
mov dword [ecx], edx
mov edx, dword [eax + 4]
mov dword [ecx + 4], edx
mov edx, dword [eax + 8]
mov dword [ecx + 8], edx
mov dx, word [eax + 0xc]
mov word [ecx + 0xc], dx
mov al, byte [eax + 0xe]
mov byte [ecx + 0xe], al
push 0
push 0
push 0
push 0
push str.Extended_Base
mov eax, dword [ebp + 0xc]
push eax
push 1
push 2
push 1
push 0xf01ff
push 0x518694
push 0x5186a0
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_CreateServiceA]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
jne 0x41a62a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x38], 0x430
jne 0x41a612
push 0xf01ff
push 0x5186ac
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
jne 0x41a5bb
jmp 0x41a5fc
mov eax, dword [ebp - 0x24]
push eax
call dword [sym.imp.ADVAPI32.dll_DeleteService]
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x38], 0
jne 0x41a5e0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x38], eax
jmp 0x41a5fc
mov eax, dword [ebp - 0x24]
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
inc dword [ebp - 0x30]
cmp dword [ebp - 0x30], 2
jge 0x41a5fc
jmp 0x41a542
mov eax, dword [ebp + 0x10]
mov dword [eax], 0x20003
mov eax, dword [ebp - 0x38]
mov ecx, dword [ebp + 0x14]
mov dword [ecx], eax
jmp 0x41a623
mov eax, dword [ebp + 0x10]
mov dword [eax], 0x20003
mov eax, dword [ebp - 0x38]
mov ecx, dword [ebp + 0x14]
mov dword [ecx], eax
xor eax, eax
jmp 0x41a78f
mov eax, dword [ebp - 0x24]
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
lea eax, [ebp - 0x34]
push eax
push 0xf003f
push 0
push str.SYSTEMCurrentControlSetServicesHardlock
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x38], 0
je 0x41a666
mov eax, 1
jmp 0x41a78f
push str.Security
mov eax, dword [ebp - 0x34]
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x38], 0
je 0x41a696
mov eax, dword [ebp - 0x34]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
jmp 0x41a78f
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x20]
push eax
push 0
push 0xf003f
push 0
push 0
push 0
push str.Parameters
mov eax, dword [ebp - 0x34]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x38], 0
je 0x41a6db
mov eax, dword [ebp - 0x34]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
jmp 0x41a78f
cmp dword [0x5183d4], 0
jne 0x41a74a
mov dword [ebp - 0x2c], 0
jmp 0x41a6f7
inc dword [ebp - 0x2c]
cmp dword [ebp - 0x2c], 3
jge 0x41a74a
push 4
mov eax, dword [ebp - 0x2c]
lea eax, [ebp + eax*4 - 0xc]
push eax
push 4
push 0
lea eax, [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0x20]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x38], 0
je 0x41a72f
jmp 0x41a74a
lea eax, [ebp - 0x1c]
push eax
call fcn.0041d0c4
add esp, 4
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x3c]
inc byte [ebp + eax - 0x1d]
jmp 0x41a6f4
cmp dword [0x5183d0], 0
je 0x41a771
push 4
push 0x5186fc
push 4
push 0
push str.DisableDPA
mov eax, dword [ebp - 0x20]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov eax, dword [ebp - 0x20]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x34]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
jmp 0x41a78f
pop edi
pop esi
pop ebx
leave
ret