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

Disassembly:
sub esp, 0x534
push ebx
push esi
push edi
push str.SeLoadDriverPrivilege
call fcn.00401000
mov ebx, dword [esp + 0x548]
lea eax, [esp + 0x30]
push ebx
push str.SystemCurrentControlSetServices_s
push eax
call fcn.004032f1
add esp, 0x10
lea ecx, [esp + 0xc]
lea edx, [esp + 0x2c]
push ecx
push edx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
je 0x401212
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x534
ret
mov ecx, dword [esp + 0xc]
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push ebp
lea eax, [esp + 0x14]
push 4
push eax
push 4
push 0
mov ebp, 1
push str.Type
push ecx
mov dword [esp + 0x2c], ebp
call esi
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x14]
push 4
push edx
push 4
push 0
push str.ErrorControl
push eax
mov dword [esp + 0x2c], ebp
call esi
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x14]
push 4
push ecx
push 4
push 0
push str.Start
push edx
mov dword [esp + 0x2c], ebp
call esi
mov eax, dword [esp + 0x54c]
lea ecx, [esp + 0x33c]
push eax
push 0x40c118
push ecx
call fcn.004032f1
lea edi, [esp + 0x348]
or ecx, 0xffffffff
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea edx, [esp + 0x33c]
push ecx
push edx
push ebp
push eax
mov eax, dword [esp + 0x20]
push str.ImagePath
push eax
call esi
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push str.RtlNtStatusToDosError
push 0x40c0e8
call esi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call edi
push str.RtlAnsiStringToUnicodeString
push 0x40c0e8
mov dword [esp + 0x24], eax
call esi
push eax
call edi
push str.NtLoadDriver
push 0x40c0e8
mov ebp, eax
call esi
push eax
call edi
push str.RtlFreeUnicodeString
push 0x40c0e8
mov dword [esp + 0x20], eax
call esi
push eax
call edi
push ebx
lea edx, [esp + 0x444]
push str.RegistryMachineSystemCurrentControlSetServices_s
push edx
mov esi, eax
call fcn.004032f1
lea eax, [esp + 0x44c]
lea edi, [esp + 0x44c]
mov dword [esp + 0x38], eax
or ecx, 0xffffffff
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
not ecx
dec ecx
push 1
mov word [esp + 0x2c], cx
lea ecx, [esp + 0x2c]
lea edx, [esp + 0x24]
push ecx
push edx
call ebp
lea eax, [esp + 0x20]
push eax
call dword [esp + 0x1c]
lea ecx, [esp + 0x20]
mov edi, eax
push ecx
call esi
lea edx, [esp + 0x30]
lea eax, [esp + 0x134]
push edx
push str._sEnum
push eax
call fcn.004032f1
mov esi, dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
add esp, 0xc
lea ecx, [esp + 0x134]
push ecx
push 0x80000002
call esi
lea edx, [esp + 0x30]
lea eax, [esp + 0x134]
push edx
push str._sSecurity
push eax
call fcn.004032f1
add esp, 0xc
lea ecx, [esp + 0x134]
push ecx
push 0x80000002
call esi
lea edx, [esp + 0x30]
push edx
push 0x80000002
call esi
test edi, edi
pop ebp
je 0x4013f3
cmp edi, 0xc000010e
je 0x4013f3
push edi
call dword [esp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x534
ret
push ebx
lea eax, [esp + 0x238]
push str.._s
push eax
call fcn.004032f1
add esp, 0xc
mov edi, dword [sym.imp.KERNEL32.dll_CreateFileA]
lea ecx, [esp + 0x234]
push 0
push 0x80
push 3
push 0
push 0
push 0xc0000000
push ecx
call edi
mov esi, dword [esp + 0x54c]
cmp eax, 0xffffffff
mov dword [esi], eax
jne 0x40146d
push ebx
lea edx, [esp + 0x238]
push str..Global_s
push edx
call fcn.004032f1
add esp, 0xc
lea eax, [esp + 0x234]
push 0
push 0x80
push 3
push 0
push 0
push 0xc0000000
push eax
call edi
mov dword [esi], eax
mov ecx, dword [esi]
xor eax, eax
cmp ecx, 0xffffffff
pop edi
pop esi
pop ebx
setne al
add esp, 0x534
ret