Function at 0x140015090
Capabilities:
Persist via windows service
Set registry value

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x128
lea rcx, [rsp + 0x80]
call fcn.14000c9c0
nop
lea r8, [rsp + 0x80]
lea rdx, [0x140043550]
lea rcx, [rsp + 0xd0]
call fcn.140014fc0
nop
mov r8, qword [rsp + 0x130]
lea rdx, [0x140043598]
lea rcx, [rsp + 0x60]
call fcn.140014fc0
nop
lea rcx, [rsp + 0xd0]
call fcn.14000f050
lea r8, [rsp + 0x48]
mov rdx, rax
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
mov dword [rsp + 0x38], eax
cmp dword [rsp + 0x38], 0
je 0x140015143
mov byte [rsp + 0x30], 0
lea rcx, [rsp + 0x60]
call fcn.14000ada0
nop
lea rcx, [rsp + 0xd0]
call fcn.14000ada0
nop
lea rcx, [rsp + 0x80]
call fcn.14000ada0
movzx eax, byte [rsp + 0x30]
jmp 0x14001541c
lea rcx, [rsp + 0x60]
call fcn.140005ff0
shl rax, 1
mov dword [rsp + 0x50], eax
lea rcx, [rsp + 0x60]
call fcn.14000f050
mov qword [rsp + 0xa0], rax
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0xa8], rax
mov eax, dword [rsp + 0x50]
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0xa0]
mov qword [rsp + 0x20], rax
mov r9d, 2
lea r8, str.ImagePath
xor edx, edx
mov rcx, qword [rsp + 0xa8]
call qword [sym.imp.ADVAPI32.dll_RegSetKeyValueW]
mov dword [rsp + 0x38], eax
cmp dword [rsp + 0x38], 0
je 0x1400151f0
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov byte [rsp + 0x31], 0
lea rcx, [rsp + 0x60]
call fcn.14000ada0
nop
lea rcx, [rsp + 0xd0]
call fcn.14000ada0
nop
lea rcx, [rsp + 0x80]
call fcn.14000ada0
movzx eax, byte [rsp + 0x31]
jmp 0x14001541c
mov dword [rsp + 0x28], 4
lea rax, [0x1400437e0]
mov qword [rsp + 0x20], rax
mov r9d, 4
lea r8, str.Type
xor edx, edx
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegSetKeyValueW]
mov dword [rsp + 0x38], eax
cmp dword [rsp + 0x38], 0
je 0x140015269
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov byte [rsp + 0x32], 0
lea rcx, [rsp + 0x60]
call fcn.14000ada0
nop
lea rcx, [rsp + 0xd0]
call fcn.14000ada0
nop
lea rcx, [rsp + 0x80]
call fcn.14000ada0
movzx eax, byte [rsp + 0x32]
jmp 0x14001541c
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rcx, [0x1400435d0]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov qword [rsp + 0x58], rax
cmp qword [rsp + 0x58], 0
jne 0x1400152c3
mov byte [rsp + 0x33], 0
lea rcx, [rsp + 0x60]
call fcn.14000ada0
nop
lea rcx, [rsp + 0xd0]
call fcn.14000ada0
nop
lea rcx, [rsp + 0x80]
call fcn.14000ada0
movzx eax, byte [rsp + 0x33]
jmp 0x14001541c
lea rdx, str.RtlAdjustPrivilege
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0xb0], rax
lea rdx, str.NtLoadDriver
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0xc0], rax
mov dword [rsp + 0x54], 0xa
mov rax, qword [rsp + 0xb0]
mov qword [rsp + 0xb8], rax
lea r9, [rsp + 0x3c]
xor r8d, r8d
mov dl, 1
mov ecx, dword [rsp + 0x54]
call qword [rsp + 0xb8]
mov dword [rsp + 0x40], eax
cmp dword [rsp + 0x40], 0
jge 0x140015364
mov byte [rsp + 0x34], 0
lea rcx, [rsp + 0x60]
call fcn.14000ada0
nop
lea rcx, [rsp + 0xd0]
call fcn.14000ada0
nop
lea rcx, [rsp + 0x80]
call fcn.14000ada0
movzx eax, byte [rsp + 0x34]
jmp 0x14001541c
lea r8, [rsp + 0x80]
lea rdx, [0x140043620]
lea rcx, [rsp + 0x100]
call fcn.140014fc0
nop
lea rcx, [rsp + 0x100]
call fcn.14000f050
mov rdx, rax
lea rcx, [rsp + 0xf0]
call sub.ntdll.dll_RtlInitUnicodeString
mov rax, qword [rsp + 0xc0]
mov qword [rsp + 0xc8], rax
lea rcx, [rsp + 0xf0]
call qword [rsp + 0xc8]
mov dword [rsp + 0x40], eax
cmp dword [rsp + 0x40], 0
jl 0x1400153d2
mov dword [rsp + 0x44], 1
jmp 0x1400153da
mov dword [rsp + 0x44], 0
movzx eax, byte [rsp + 0x44]
mov byte [rsp + 0x35], al
lea rcx, [rsp + 0x100]
call fcn.14000ada0
nop
lea rcx, [rsp + 0x60]
call fcn.14000ada0
nop
lea rcx, [rsp + 0xd0]
call fcn.14000ada0
nop
lea rcx, [rsp + 0x80]
call fcn.14000ada0
movzx eax, byte [rsp + 0x35]
add rsp, 0x128
ret