Function at 0x41bcc7
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 0x5a47d4
push 0x5a47e0
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 0x41bdfa
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x38], 0x430
jne 0x41bde2
push 0xf01ff
push 0x5a47ec
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 0x41bd8b
jmp 0x41bdcc
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 0x41bdb0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x38], eax
jmp 0x41bdcc
mov eax, dword [ebp - 0x24]
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
inc dword [ebp - 0x30]
cmp dword [ebp - 0x30], 2
jge 0x41bdcc
jmp 0x41bd12
mov eax, dword [ebp + 0x10]
mov dword [eax], 0x20003
mov eax, dword [ebp - 0x38]
mov ecx, dword [ebp + 0x14]
mov dword [ecx], eax
jmp 0x41bdf3
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 0x41bf5f
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 0x41be36
mov eax, 1
jmp 0x41bf5f
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 0x41be66
mov eax, dword [ebp - 0x34]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
jmp 0x41bf5f
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 0x41beab
mov eax, dword [ebp - 0x34]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
jmp 0x41bf5f
cmp dword [0x5a4514], 0
jne 0x41bf1a
mov dword [ebp - 0x2c], 0
jmp 0x41bec7
inc dword [ebp - 0x2c]
cmp dword [ebp - 0x2c], 3
jge 0x41bf1a
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 0x41beff
jmp 0x41bf1a
lea eax, [ebp - 0x1c]
push eax
call fcn.0041e7b0
add esp, 4
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x3c]
inc byte [ebp + eax - 0x1d]
jmp 0x41bec4
cmp dword [0x5a4510], 0
je 0x41bf41
push 4
push 0x5a483c
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 0x41bf5f
pop edi
pop esi
pop ebx
leave
ret