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]
add esp, 4
lea eax, [esp + 0x2c]
push ebx
push str.SystemCurrentControlSetServices_s
push eax
call fcn.00407778
add esp, 0xc
lea ecx, [esp + 0xc]
lea edx, [esp + 0x2c]
push ecx
push edx
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
je 0x401215
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], 3
call esi
mov eax, dword [esp + 0x54c]
lea ecx, [esp + 0x33c]
push eax
push str.___s
push ecx
call fcn.00407778
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 str.ntdll.dll
call esi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call edi
push str.RtlAnsiStringToUnicodeString
push str.ntdll.dll
mov dword [esp + 0x24], eax
call esi
push eax
call edi
push str.NtLoadDriver
push str.ntdll.dll
mov ebp, eax
call esi
push eax
call edi
push str.RtlFreeUnicodeString
push str.ntdll.dll
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.00407778
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.00407778
mov esi, dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
add esp, 0xc
lea ecx, [esp + 0x134]
push ecx
push closesocket
call esi
lea edx, [esp + 0x30]
lea eax, [esp + 0x134]
push edx
push str._sSecurity
push eax
call fcn.00407778
add esp, 0xc
lea ecx, [esp + 0x134]
push ecx
push closesocket
call esi
lea edx, [esp + 0x30]
push edx
push closesocket
call esi
test edi, edi
pop ebp
je 0x4013fa
cmp edi, 0xc000010e
je 0x4013fa
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.00407778
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 0x401474
push ebx
lea edx, [esp + 0x238]
push str..Global_s
push edx
call fcn.00407778
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