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

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x3c8
lea rcx, [rsp + 0x60]
call fcn.1400bcb90
nop
lea rdx, [0x140179da0]
lea rcx, [rsp + 0x2a0]
call fcn.1400b87f0
mov rcx, rax
call fcn.1400befc0
lea r8, [rsp + 0x60]
mov rdx, rax
lea rcx, [rsp + 0xa0]
call fcn.1400caf40
nop
mov r8, qword [rsp + 0x3d0]
lea rdx, [0x140179de8]
lea rcx, [rsp + 0x80]
call fcn.1400caf40
nop
lea rcx, [rsp + 0xa0]
call fcn.14001f200
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 0x1400cb4a1
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.1400cb0a0
mov rcx, rax
call fcn.1400cbde0
mov qword [rsp + 0x178], rax
mov rdx, qword [rsp + 0x178]
mov rcx, qword [rsp + 0x180]
call fcn.1400b4300
mov qword [rsp + 0x188], rax
lea rdx, [0x1400b8be0]
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.14001f250
nop
lea rcx, [rsp + 0xa0]
call fcn.14001f250
nop
lea rcx, [rsp + 0x60]
call fcn.14001f250
movzx eax, byte [rsp + 0x30]
jmp 0x1400cba58
lea rcx, [rsp + 0x80]
call fcn.140037020
shl rax, 1
mov dword [rsp + 0x50], eax
lea rcx, [rsp + 0x80]
call fcn.14001f200
mov qword [rsp + 0xc0], rax
lea rdx, str.ImagePath
lea rcx, [rsp + 0x1fa]
call fcn.1400cb040
mov rcx, rax
call fcn.1400cbea0
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 0x1400cb5e2
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.1400cb100
mov rcx, rax
call fcn.1400cbe20
mov qword [rsp + 0xd8], rax
mov rdx, qword [rsp + 0xd8]
mov rcx, qword [rsp + 0xe0]
call fcn.1400b4300
mov qword [rsp + 0xe8], rax
lea rdx, [0x1400b8be0]
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.14001f250
nop
lea rcx, [rsp + 0xa0]
call fcn.14001f250
nop
lea rcx, [rsp + 0x60]
call fcn.14001f250
movzx eax, byte [rsp + 0x31]
jmp 0x1400cba58
lea rdx, str.Type
lea rcx, [rsp + 0x1cc]
call fcn.1400cb010
mov rcx, rax
call fcn.1400cbe80
mov qword [rsp + 0xf0], rax
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0xf8], rax
mov dword [rsp + 0x28], 4
lea rax, [0x14017a0e4]
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 0x1400cb6f9
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.1400cb0d0
mov rcx, rax
call fcn.1400cbe00
mov qword [rsp + 0x100], rax
mov rdx, qword [rsp + 0x100]
mov rcx, qword [rsp + 0x108]
call fcn.1400b4300
mov qword [rsp + 0x110], rax
lea rdx, [0x1400b8be0]
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.14001f250
nop
lea rcx, [rsp + 0xa0]
call fcn.14001f250
nop
lea rcx, [rsp + 0x60]
call fcn.14001f250
movzx eax, byte [rsp + 0x32]
jmp 0x1400cba58
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rdx, [0x140179e98]
lea rcx, [rsp + 0x1c0]
call fcn.1400b8550
mov rcx, rax
call fcn.1400bedc0
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov qword [rsp + 0x58], rax
cmp qword [rsp + 0x58], 0
jne 0x1400cb76b
mov byte [rsp + 0x33], 0
lea rcx, [rsp + 0x80]
call fcn.14001f250
nop
lea rcx, [rsp + 0xa0]
call fcn.14001f250
nop
lea rcx, [rsp + 0x60]
call fcn.14001f250
movzx eax, byte [rsp + 0x33]
jmp 0x1400cba58
lea rdx, [0x140179ea8]
lea rcx, [rsp + 0x1e6]
call fcn.1400cb070
mov rcx, rax
call fcn.1400cbdc0
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.1400b8bb0
mov rcx, rax
call fcn.1400bee20
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 + 0x120]
mov dword [rsp + 0x3c], eax
cmp dword [rsp + 0x3c], 0
jge 0x1400cb8a5
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.1400cb160
mov rcx, rax
call fcn.1400cbe40
mov qword [rsp + 0x128], rax
mov rdx, qword [rsp + 0x128]
mov rcx, qword [rsp + 0x130]
call fcn.1400b4300
mov qword [rsp + 0x138], rax
lea rdx, [0x1400b8be0]
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.14001f250
nop
lea rcx, [rsp + 0xa0]
call fcn.14001f250
nop
lea rcx, [rsp + 0x60]
call fcn.14001f250
movzx eax, byte [rsp + 0x34]
jmp 0x1400cba58
lea rdx, [0x140179f50]
lea rcx, [rsp + 0x34e]
call fcn.1400cb130
mov rcx, rax
call fcn.1400cbec0
lea r8, [rsp + 0x60]
mov rdx, rax
lea rcx, [rsp + 0x1a0]
call fcn.1400caf40
nop
lea rcx, [rsp + 0x1a0]
call fcn.14001f200
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.1400b8640
mov rcx, rax
call fcn.1400bee00
mov qword [rsp + 0x150], rax
mov rdx, qword [rsp + 0x150]
mov rcx, qword [rsp + 0x158]
call fcn.1400b4300
mov qword [rsp + 0x160], rax
lea rdx, [0x1400c0440]
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, [0x1400b8be0]
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 0x1400cb9fd
mov byte [rsp + 0x35], 1
lea rcx, [rsp + 0x1a0]
call fcn.14001f250
nop
lea rcx, [rsp + 0x80]
call fcn.14001f250
nop
lea rcx, [rsp + 0xa0]
call fcn.14001f250
nop
lea rcx, [rsp + 0x60]
call fcn.14001f250
movzx eax, byte [rsp + 0x35]
jmp 0x1400cba58
cmp dword [rsp + 0x3c], 0
jl 0x1400cba0e
mov dword [rsp + 0x44], 1
jmp 0x1400cba16
mov dword [rsp + 0x44], 0
movzx eax, byte [rsp + 0x44]
mov byte [rsp + 0x36], al
lea rcx, [rsp + 0x1a0]
call fcn.14001f250
nop
lea rcx, [rsp + 0x80]
call fcn.14001f250
nop
lea rcx, [rsp + 0xa0]
call fcn.14001f250
nop
lea rcx, [rsp + 0x60]
call fcn.14001f250
movzx eax, byte [rsp + 0x36]
add rsp, 0x3c8
ret