Function at 0x100182e7
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 0x10112874
push 0x10112880
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 0x1001841a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x38], 0x430
jne 0x10018402
push 0xf01ff
push 0x1011288c
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 0x100183ab
jmp 0x100183ec
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 0x100183d0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x38], eax
jmp 0x100183ec
mov eax, dword [ebp - 0x24]
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
inc dword [ebp - 0x30]
cmp dword [ebp - 0x30], 2
jge 0x100183ec
jmp 0x10018332
mov eax, dword [ebp + 0x10]
mov dword [eax], 0x20003
mov eax, dword [ebp - 0x38]
mov ecx, dword [ebp + 0x14]
mov dword [ecx], eax
jmp 0x10018413
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 0x1001857f
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 0x10018456
mov eax, 1
jmp 0x1001857f
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 0x10018486
mov eax, dword [ebp - 0x34]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
jmp 0x1001857f
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 0x100184cb
mov eax, dword [ebp - 0x34]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
jmp 0x1001857f
cmp dword [0x101125b4], 0
jne 0x1001853a
mov dword [ebp - 0x2c], 0
jmp 0x100184e7
inc dword [ebp - 0x2c]
cmp dword [ebp - 0x2c], 3
jge 0x1001853a
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 0x1001851f
jmp 0x1001853a
lea eax, [ebp - 0x1c]
push eax
call fcn.1001bd20
add esp, 4
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x3c]
inc byte [ebp + eax - 0x1d]
jmp 0x100184e4
cmp dword [0x101125b0], 0
je 0x10018561
push 4
push 0x101128dc
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 0x1001857f
pop edi
pop esi
pop ebx
leave
ret