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

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x138
mov rax, qword [0x140122940]
xor rax, rsp
mov qword [rsp + 0x128], rax
lea rcx, [rsp + 0xb8]
call fcn.1400c13e0
nop
lea r8, [rsp + 0xb8]
lea rdx, [0x14010e610]
lea rcx, [rsp + 0xd8]
call fcn.1400c8f00
nop
mov r8, qword [rsp + 0x140]
lea rdx, [0x14010e658]
lea rcx, [rsp + 0x98]
call fcn.1400c8f00
nop
lea rcx, [rsp + 0xd8]
call fcn.14003a800
lea r8, [rsp + 0x88]
mov rdx, rax
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
mov dword [rsp + 0x38], eax
cmp dword [rsp + 0x38], 0
je 0x1400c909e
mov byte [rsp + 0x30], 0
lea rcx, [rsp + 0x98]
call fcn.1400acfd0
nop
lea rcx, [rsp + 0xd8]
call fcn.1400acfd0
nop
lea rcx, [rsp + 0xb8]
call fcn.1400acfd0
movzx eax, byte [rsp + 0x30]
jmp 0x1400c93cf
lea rcx, [rsp + 0x98]
call fcn.14002f080
shl rax, 1
mov dword [rsp + 0x44], eax
lea rcx, [rsp + 0x98]
call fcn.14003a800
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x88]
mov qword [rsp + 0x60], rax
mov eax, dword [rsp + 0x44]
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0x20], rax
mov r9d, 2
lea r8, str.ImagePath
xor edx, edx
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_RegSetKeyValueW]
mov dword [rsp + 0x38], eax
cmp dword [rsp + 0x38], 0
je 0x1400c914f
mov rcx, qword [rsp + 0x88]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
mov byte [rsp + 0x31], 0
lea rcx, [rsp + 0x98]
call fcn.1400acfd0
nop
lea rcx, [rsp + 0xd8]
call fcn.1400acfd0
nop
lea rcx, [rsp + 0xb8]
call fcn.1400acfd0
movzx eax, byte [rsp + 0x31]
jmp 0x1400c93cf
mov dword [rsp + 0x28], 4
lea rax, [0x14010e924]
mov qword [rsp + 0x20], rax
mov r9d, 4
lea r8, str.Type
xor edx, edx
mov rcx, qword [rsp + 0x88]
call qword [sym.imp.ADVAPI32.dll_RegSetKeyValueW]
mov dword [rsp + 0x38], eax
cmp dword [rsp + 0x38], 0
je 0x1400c91d2
mov rcx, qword [rsp + 0x88]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
mov byte [rsp + 0x32], 0
lea rcx, [rsp + 0x98]
call fcn.1400acfd0
nop
lea rcx, [rsp + 0xd8]
call fcn.1400acfd0
nop
lea rcx, [rsp + 0xb8]
call fcn.1400acfd0
movzx eax, byte [rsp + 0x32]
jmp 0x1400c93cf
mov rcx, qword [rsp + 0x88]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rcx, [0x14010e690]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
jne 0x1400c9232
mov byte [rsp + 0x33], 0
lea rcx, [rsp + 0x98]
call fcn.1400acfd0
nop
lea rcx, [rsp + 0xd8]
call fcn.1400acfd0
nop
lea rcx, [rsp + 0xb8]
call fcn.1400acfd0
movzx eax, byte [rsp + 0x33]
jmp 0x1400c93cf
lea rdx, str.RtlAdjustPrivilege
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0x68], rax
lea rdx, str.NtLoadDriver
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0x78], rax
mov dword [rsp + 0x48], 0xa
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0x70], rax
lea r9, [rsp + 0x90]
xor r8d, r8d
mov dl, 1
mov ecx, dword [rsp + 0x48]
call qword [rsp + 0x70]
mov dword [rsp + 0x3c], eax
cmp dword [rsp + 0x3c], 0
jge 0x1400c92ca
mov byte [rsp + 0x34], 0
lea rcx, [rsp + 0x98]
call fcn.1400acfd0
nop
lea rcx, [rsp + 0xd8]
call fcn.1400acfd0
nop
lea rcx, [rsp + 0xb8]
call fcn.1400acfd0
movzx eax, byte [rsp + 0x34]
jmp 0x1400c93cf
lea r8, [rsp + 0xb8]
lea rdx, [0x14010e6d0]
lea rcx, [rsp + 0x108]
call fcn.1400c8f00
nop
lea rcx, [rsp + 0x108]
call fcn.14003a800
mov rdx, rax
lea rcx, [rsp + 0xf8]
call sub.ntdll.dll_RtlInitUnicodeString
mov rax, qword [rsp + 0x78]
mov qword [rsp + 0x80], rax
lea rcx, [rsp + 0xf8]
call qword [rsp + 0x80]
mov dword [rsp + 0x3c], eax
cmp dword [rsp + 0x3c], 0xc000010e
jne 0x1400c9371
mov byte [rsp + 0x35], 1
lea rcx, [rsp + 0x108]
call fcn.1400acfd0
nop
lea rcx, [rsp + 0x98]
call fcn.1400acfd0
nop
lea rcx, [rsp + 0xd8]
call fcn.1400acfd0
nop
lea rcx, [rsp + 0xb8]
call fcn.1400acfd0
movzx eax, byte [rsp + 0x35]
jmp 0x1400c93cf
cmp dword [rsp + 0x3c], 0
jl 0x1400c9382
mov dword [rsp + 0x40], 1
jmp 0x1400c938a
mov dword [rsp + 0x40], 0
movzx eax, byte [rsp + 0x40]
mov byte [rsp + 0x36], al
lea rcx, [rsp + 0x108]
call fcn.1400acfd0
nop
lea rcx, [rsp + 0x98]
call fcn.1400acfd0
nop
lea rcx, [rsp + 0xd8]
call fcn.1400acfd0
nop
lea rcx, [rsp + 0xb8]
call fcn.1400acfd0
movzx eax, byte [rsp + 0x36]
mov rcx, qword [rsp + 0x128]
xor rcx, rsp
call fcn.1400ca200
add rsp, 0x138
ret