Function at 0x41643d
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 0x4cce64
push 0x4cce70
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 0x416570
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x38], 0x430
jne 0x416558
push 0xf01ff
push 0x4cce7c
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 0x416501
jmp 0x416542
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 0x416526
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x38], eax
jmp 0x416542
mov eax, dword [ebp - 0x24]
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
inc dword [ebp - 0x30]
cmp dword [ebp - 0x30], 2
jge 0x416542
jmp 0x416488
mov eax, dword [ebp + 0x10]
mov dword [eax], 0x20003
mov eax, dword [ebp - 0x38]
mov ecx, dword [ebp + 0x14]
mov dword [ecx], eax
jmp 0x416569
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 0x4166d5
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 0x4165ac
mov eax, 1
jmp 0x4166d5
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 0x4165dc
mov eax, dword [ebp - 0x34]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
jmp 0x4166d5
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 0x416621
mov eax, dword [ebp - 0x34]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
jmp 0x4166d5
cmp dword [0x4ccba4], 0
jne 0x416690
mov dword [ebp - 0x2c], 0
jmp 0x41663d
inc dword [ebp - 0x2c]
cmp dword [ebp - 0x2c], 3
jge 0x416690
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 0x416675
jmp 0x416690
lea eax, [ebp - 0x1c]
push eax
call fcn.0041a7d8
add esp, 4
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x3c]
inc byte [ebp + eax - 0x1d]
jmp 0x41663a
cmp dword [0x4ccba0], 0
je 0x4166b7
push 4
push 0x4ccecc
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 0x4166d5
pop edi
pop esi
pop ebx
leave
ret