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

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x3c8
lea rcx, [rsp + 0x60]
call fcn.1400bd9e0
nop
lea rdx, [0x140180d90]
lea rcx, [rsp + 0x2a0]
call fcn.1400b9640
mov rcx, rax
call fcn.1400bfe10
lea r8, [rsp + 0x60]
mov rdx, rax
lea rcx, [rsp + 0xa0]
call fcn.1400cbd90
nop
mov r8, qword [rsp + 0x3d0]
lea rdx, [0x140180dd8]
lea rcx, [rsp + 0x80]
call fcn.1400cbd90
nop
lea rcx, [rsp + 0xa0]
call fcn.140020180
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 0x1400cc2f1
mov rax, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcout]
mov qword [rsp + 0x180], rax
lea rdx, str.____Cant_create_service_key
lea rcx, [rsp + 0x22c]
call fcn.1400cbef0
mov rcx, rax
call fcn.1400ccc30
mov qword [rsp + 0x178], rax
mov rdx, qword [rsp + 0x178]
mov rcx, qword [rsp + 0x180]
call fcn.1400b5150
mov qword [rsp + 0x188], rax
lea rdx, [0x1400b9a30]
mov rcx, qword [rsp + 0x188]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64___cdecl_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64____cdecl___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64_____ptr64]
mov byte [rsp + 0x30], 0
lea rcx, [rsp + 0x80]
call fcn.1400201d0
nop
lea rcx, [rsp + 0xa0]
call fcn.1400201d0
nop
lea rcx, [rsp + 0x60]
call fcn.1400201d0
movzx eax, byte [rsp + 0x30]
jmp 0x1400cc8a8
lea rcx, [rsp + 0x80]
call fcn.140037e70
shl rax, 1
mov dword [rsp + 0x50], eax
lea rcx, [rsp + 0x80]
call fcn.140020180
mov qword [rsp + 0xc0], rax
lea rdx, str.ImagePath
lea rcx, [rsp + 0x1fa]
call fcn.1400cbe90
mov rcx, rax
call fcn.1400cccf0
mov qword [rsp + 0xc8], rax
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0xd0], rax
mov eax, dword [rsp + 0x50]
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0xc0]
mov qword [rsp + 0x20], rax
mov r9d, 2
mov r8, qword [rsp + 0xc8]
xor edx, edx
mov rcx, qword [rsp + 0xd0]
call qword [sym.imp.ADVAPI32.dll_RegSetKeyValueW]
mov dword [rsp + 0x38], eax
cmp dword [rsp + 0x38], 0
je 0x1400cc432
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rax, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcout]
mov qword [rsp + 0xe0], rax
lea rdx, str.____Cant_create_ImagePath_registry_value
lea rcx, [rsp + 0x272]
call fcn.1400cbf50
mov rcx, rax
call fcn.1400ccc70
mov qword [rsp + 0xd8], rax
mov rdx, qword [rsp + 0xd8]
mov rcx, qword [rsp + 0xe0]
call fcn.1400b5150
mov qword [rsp + 0xe8], rax
lea rdx, [0x1400b9a30]
mov rcx, qword [rsp + 0xe8]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64___cdecl_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64____cdecl___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64_____ptr64]
mov byte [rsp + 0x31], 0
lea rcx, [rsp + 0x80]
call fcn.1400201d0
nop
lea rcx, [rsp + 0xa0]
call fcn.1400201d0
nop
lea rcx, [rsp + 0x60]
call fcn.1400201d0
movzx eax, byte [rsp + 0x31]
jmp 0x1400cc8a8
lea rdx, str.Type
lea rcx, [rsp + 0x1cc]
call fcn.1400cbe60
mov rcx, rax
call fcn.1400cccd0
mov qword [rsp + 0xf0], rax
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0xf8], rax
mov dword [rsp + 0x28], 4
lea rax, [0x1401810d4]
mov qword [rsp + 0x20], rax
mov r9d, 4
mov r8, qword [rsp + 0xf0]
xor edx, edx
mov rcx, qword [rsp + 0xf8]
call qword [sym.imp.ADVAPI32.dll_RegSetKeyValueW]
mov dword [rsp + 0x38], eax
cmp dword [rsp + 0x38], 0
je 0x1400cc549
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rax, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcout]
mov qword [rsp + 0x108], rax
lea rdx, str.____Cant_create_Type_registry_value
lea rcx, [rsp + 0x24a]
call fcn.1400cbf20
mov rcx, rax
call fcn.1400ccc50
mov qword [rsp + 0x100], rax
mov rdx, qword [rsp + 0x100]
mov rcx, qword [rsp + 0x108]
call fcn.1400b5150
mov qword [rsp + 0x110], rax
lea rdx, [0x1400b9a30]
mov rcx, qword [rsp + 0x110]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64___cdecl_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64____cdecl___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64_____ptr64]
mov byte [rsp + 0x32], 0
lea rcx, [rsp + 0x80]
call fcn.1400201d0
nop
lea rcx, [rsp + 0xa0]
call fcn.1400201d0
nop
lea rcx, [rsp + 0x60]
call fcn.1400201d0
movzx eax, byte [rsp + 0x32]
jmp 0x1400cc8a8
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rdx, [0x140180e88]
lea rcx, [rsp + 0x1c0]
call fcn.1400b93a0
mov rcx, rax
call fcn.1400bfc10
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov qword [rsp + 0x58], rax
cmp qword [rsp + 0x58], 0
jne 0x1400cc5bb
mov byte [rsp + 0x33], 0
lea rcx, [rsp + 0x80]
call fcn.1400201d0
nop
lea rcx, [rsp + 0xa0]
call fcn.1400201d0
nop
lea rcx, [rsp + 0x60]
call fcn.1400201d0
movzx eax, byte [rsp + 0x33]
jmp 0x1400cc8a8
lea rdx, [0x140180e98]
lea rcx, [rsp + 0x1e6]
call fcn.1400cbec0
mov rcx, rax
call fcn.1400ccc10
mov rdx, rax
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0x118], rax
lea rdx, str.NtLoadDriver
lea rcx, [rsp + 0x1d8]
call fcn.1400b9a00
mov rcx, rax
call fcn.1400bfc70
mov rdx, rax
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0x140], rax
mov dword [rsp + 0x54], 0xa
mov rax, qword [rsp + 0x118]
mov qword [rsp + 0x120], rax
lea r9, [rsp + 0x40]
xor r8d, r8d
mov dl, 1
mov ecx, dword [rsp + 0x54]
call qword [rsp + pe_nt_image_headers64]
mov dword [rsp + 0x3c], eax
cmp dword [rsp + 0x3c], 0
jge 0x1400cc6f5
mov rax, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcout]
mov qword [rsp + 0x130], rax
lea rdx, str.Fatal_error:_failed_to_acquire_SE_LOAD_DRIVER_PRIVILEGE._Make_sure_you_are_running_as_administrator.
lea rcx, [rsp + 0x2e8]
call fcn.1400cbfb0
mov rcx, rax
call fcn.1400ccc90
mov qword [rsp + 0x128], rax
mov rdx, qword [rsp + 0x128]
mov rcx, qword [rsp + 0x130]
call fcn.1400b5150
mov qword [rsp + 0x138], rax
lea rdx, [0x1400b9a30]
mov rcx, qword [rsp + 0x138]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64___cdecl_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64____cdecl___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64_____ptr64]
mov byte [rsp + 0x34], 0
lea rcx, [rsp + 0x80]
call fcn.1400201d0
nop
lea rcx, [rsp + 0xa0]
call fcn.1400201d0
nop
lea rcx, [rsp + 0x60]
call fcn.1400201d0
movzx eax, byte [rsp + 0x34]
jmp 0x1400cc8a8
lea rdx, [0x140180f40]
lea rcx, [rsp + 0x34e]
call fcn.1400cbf80
mov rcx, rax
call fcn.1400ccd10
lea r8, [rsp + 0x60]
mov rdx, rax
lea rcx, [rsp + 0x1a0]
call fcn.1400cbd90
nop
lea rcx, [rsp + 0x1a0]
call fcn.140020180
mov rdx, rax
lea rcx, [rsp + 0x190]
call sub.ntdll.dll_RtlInitUnicodeString
mov rax, qword [rsp + 0x140]
mov qword [rsp + 0x148], rax
lea rcx, [rsp + 0x190]
call qword [rsp + 0x148]
mov dword [rsp + 0x3c], eax
mov rax, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcout]
mov qword [rsp + 0x158], rax
lea rdx, str.___NtLoadDriver_Status_0x
lea rcx, [rsp + 0x210]
call fcn.1400b9490
mov rcx, rax
call fcn.1400bfc50
mov qword [rsp + 0x150], rax
mov rdx, qword [rsp + 0x150]
mov rcx, qword [rsp + 0x158]
call fcn.1400b5150
mov qword [rsp + 0x160], rax
lea rdx, [0x1400c1290]
mov rcx, qword [rsp + 0x160]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64___cdecl_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___class_std::ios_base____ptr64____cdecl___class_std::ios_base____ptr64_____ptr64]
mov qword [rsp + 0x168], rax
mov edx, dword [rsp + 0x3c]
mov rcx, qword [rsp + 0x168]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64___cdecl_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___long_int____ptr64]
mov qword [rsp + 0x170], rax
lea rdx, [0x1400b9a30]
mov rcx, qword [rsp + 0x170]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64___cdecl_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64____cdecl___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64_____ptr64]
cmp dword [rsp + 0x3c], 0xc000010e
jne 0x1400cc84d
mov byte [rsp + 0x35], 1
lea rcx, [rsp + 0x1a0]
call fcn.1400201d0
nop
lea rcx, [rsp + 0x80]
call fcn.1400201d0
nop
lea rcx, [rsp + 0xa0]
call fcn.1400201d0
nop
lea rcx, [rsp + 0x60]
call fcn.1400201d0
movzx eax, byte [rsp + 0x35]
jmp 0x1400cc8a8
cmp dword [rsp + 0x3c], 0
jl 0x1400cc85e
mov dword [rsp + 0x44], 1
jmp 0x1400cc866
mov dword [rsp + 0x44], 0
movzx eax, byte [rsp + 0x44]
mov byte [rsp + 0x36], al
lea rcx, [rsp + 0x1a0]
call fcn.1400201d0
nop
lea rcx, [rsp + 0x80]
call fcn.1400201d0
nop
lea rcx, [rsp + 0xa0]
call fcn.1400201d0
nop
lea rcx, [rsp + 0x60]
call fcn.1400201d0
movzx eax, byte [rsp + 0x36]
add rsp, 0x3c8
ret