Function at 0x4014fa
Capabilities:
Access pe header
Install driver
Map section object
Persist via windows service
Resume thread
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x298
push ebx
push esi
push edi
push dword [ebp + 8]
lea eax, [ebp - 0x294]
push str._registryMACHINESYSTEMCurrentControlSet_services_s
push eax
call dword [sym.imp.ntdll.dll_swprintf]
add esp, 0xc
xor edi, edi
push edi
push edi
push edi
push edi
lea eax, [ebp - 0x294]
push eax
lea esi, [ebp - 0x54]
call fcn.00402684
push eax
push 0xf003f
lea eax, [ebp - 8]
push eax
call dword [sym.imp.ntdll.dll_ZwCreateKey]
test eax, eax
jl 0x40173b
mov esi, dword [sym.imp.ntdll.dll_ZwSetValueKey]
push 4
pop ebx
push ebx
lea eax, [ebp - 0x10]
push eax
push ebx
push edi
push 0x40930c
push dword [ebp - 8]
mov dword [ebp - 0x10], 1
call esi
push ebx
lea eax, [ebp - 0x10]
push eax
push ebx
push edi
push 0x409314
push dword [ebp - 8]
mov dword [ebp - 0x10], 3
call esi
push 6
push 0x409338
push 1
push edi
push 0x409330
push dword [ebp - 8]
call esi
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x94]
push eax
mov dword [ebp - 0x1c], edi
call fcn.00401369
push 0x20
push edi
lea eax, [ebp - 0x34]
push eax
push dword [ebp + 0xc]
lea esi, [ebp - 0x54]
mov dword [ebp + 8], edi
mov dword [ebp - 0x14], edi
call fcn.00402684
push eax
push 0x12019f
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.ntdll.dll_ZwOpenFile]
test eax, eax
jl 0x4016a8
push edi
push edi
push 2
push 0x40a0a8
push 0x9c040
lea eax, [ebp - 0x34]
push eax
push edi
push edi
push edi
push dword [ebp - 0xc]
call dword [sym.imp.ntdll.dll_ZwFsControlFile]
push dword [ebp - 0xc]
lea eax, [ebp - 0x18]
push 0x8000000
push ebx
push edi
push edi
push 6
push eax
call dword [sym.imp.ntdll.dll_ZwCreateSection]
test eax, eax
jl 0x40169b
push ebx
push edi
push 2
lea eax, [ebp - 0x14]
push eax
push edi
push edi
push edi
lea eax, [ebp + 8]
push eax
push 0xffffffffffffffff
push dword [ebp - 0x18]
call dword [sym.imp.ntdll.dll_ZwMapViewOfSection]
test eax, eax
jl 0x40168e
push dword [ebp + 0x14]
push dword [ebp + 0x18]
push dword [ebp + 8]
call sub.ntdll.dll_memcpy
add esp, 0xc
push dword [ebp + 8]
call dword [sym.imp.ntdll.dll_RtlImageNtHeader]
mov ecx, dword [ebp + 0x10]
mov esi, eax
mov dword [esi + 0x58], edi
mov edx, dword [ebp + 8]
call fcn.00408e10
movzx eax, ax
add eax, dword [ebp + 0x10]
mov dword [esi + 0x58], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x20]
push eax
push 0xffffffffffffffff
call dword [sym.imp.ntdll.dll_ZwFlushVirtualMemory]
push dword [ebp + 8]
push 0xffffffffffffffff
call dword [sym.imp.ntdll.dll_ZwUnmapViewOfSection]
push dword [ebp - 0x18]
mov esi, dword [sym.imp.ntdll.dll_ZwClose]
call esi
jmp 0x4016a1
mov esi, dword [sym.imp.ntdll.dll_ZwClose]
push dword [ebp - 0xc]
call esi
jmp 0x4016ae
mov esi, dword [sym.imp.ntdll.dll_ZwClose]
push dword [ebp + 0xc]
mov ebx, dword [sym.imp.ntdll.dll_RtlInitUnicodeString]
lea eax, [ebp - 0x28]
push eax
call ebx
lea eax, [ebp - 0x28]
push eax
push 0x409fb4
push 0xf0001
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.ntdll.dll_ZwCreateSymbolicLinkObject]
test eax, eax
jl 0x4016f5
lea eax, [ebp - 0x294]
push eax
lea eax, [ebp - 0x28]
push eax
call ebx
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.ntdll.dll_ZwLoadDriver]
push dword [ebp - 0x2c]
call esi
mov ebx, dword [ebp - 0x1c]
cmp ebx, edi
jle 0x401736
lea eax, [ebp + ebx*8 - 0x94]
mov dword [ebp + 0x10], eax
sub dword [ebp + 0x10], 8
push dword [ebp + 0x10]
lea eax, [ebp + 0xc]
push 0x409f74
push 2
push eax
dec ebx
call dword [sym.imp.ntdll.dll_ZwOpenThread]
test eax, eax
jl 0x401732
push edi
push dword [ebp + 0xc]
call dword [sym.imp.ntdll.dll_ZwResumeThread]
push dword [ebp + 0xc]
call esi
cmp ebx, edi
jg 0x401706
push dword [ebp - 8]
call esi
pop edi
pop esi
pop ebx
leave
ret 0x14