Function at 0x41d5f7
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 0x5bb48c
push 0x5bb498
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 0x41d72a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x38], 0x430
jne 0x41d712
push 0xf01ff
push 0x5bb4a4
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 0x41d6bb
jmp 0x41d6fc
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 0x41d6e0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x38], eax
jmp 0x41d6fc
mov eax, dword [ebp - 0x24]
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
inc dword [ebp - 0x30]
cmp dword [ebp - 0x30], 2
jge 0x41d6fc
jmp 0x41d642
mov eax, dword [ebp + 0x10]
mov dword [eax], 0x20003
mov eax, dword [ebp - 0x38]
mov ecx, dword [ebp + 0x14]
mov dword [ecx], eax
jmp 0x41d723
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 0x41d88f
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 0x41d766
mov eax, 1
jmp 0x41d88f
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 0x41d796
mov eax, dword [ebp - 0x34]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
jmp 0x41d88f
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 0x41d7db
mov eax, dword [ebp - 0x34]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
jmp 0x41d88f
cmp dword [0x5bb1cc], 0
jne 0x41d84a
mov dword [ebp - 0x2c], 0
jmp 0x41d7f7
inc dword [ebp - 0x2c]
cmp dword [ebp - 0x2c], 3
jge 0x41d84a
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 0x41d82f
jmp 0x41d84a
lea eax, [ebp - 0x1c]
push eax
call fcn.00420150
add esp, 4
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x3c]
inc byte [ebp + eax - 0x1d]
jmp 0x41d7f4
cmp dword [0x5bb1c8], 0
je 0x41d871
push 4
push 0x5bb4f4
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 0x41d88f
pop edi
pop esi
pop ebx
leave
ret