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

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x1b8
mov rax, qword [0x1401970c0]
xor rax, rsp
mov qword [rsp + 0x1a8], rax
mov dword [rsp + 0x78], 0
lea rcx, [rsp + 0x138]
call fcn.14001f200
nop
lea r8, [rsp + 0x138]
lea rdx, [0x1401783e0]
lea rcx, [rsp + 0x158]
call fcn.14002ab10
nop
mov r8, qword [rsp + 0x1c0]
lea rdx, [0x140178428]
lea rcx, [rsp + 0x118]
call fcn.14002ab10
nop
lea rax, [rsp + 0x158]
mov rcx, rax
call fcn.14002b790
mov qword [rsp + 0x88], rax
lea r8, [rsp + 0x108]
mov rdx, qword [rsp + 0x88]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
mov dword [rsp + 0x38], eax
cmp dword [rsp + 0x38], 0
je 0x14002adb6
lea rdx, str.____Cant_create_service_key
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcout]
call fcn.140015510
mov qword [rsp + 0x90], rax
lea rdx, [0x14001a850]
mov rcx, qword [rsp + 0x90]
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 + 0x118]
call fcn.140022740
nop
lea rcx, [rsp + 0x158]
call fcn.140022740
nop
lea rcx, [rsp + 0x138]
call fcn.140022740
movzx eax, byte [rsp + 0x30]
jmp 0x14002b282
mov rax, qword [rsp + 0x128]
mov qword [rsp + 0x98], rax
mov rax, qword [rsp + 0x98]
shl rax, 1
mov dword [rsp + 0x50], eax
mov rax, qword [rsp + 0x100]
mov qword [rsp + 0x60], rax
lea rax, [rsp + 0x118]
mov rcx, rax
call fcn.14002b790
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0x108]
mov qword [rsp + 0xa0], rax
mov eax, dword [rsp + 0x50]
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov r9d, 2
lea r8, str.ImagePath
xor edx, edx
mov rcx, qword [rsp + 0xa0]
call qword [sym.imp.ADVAPI32.dll_RegSetKeyValueW]
mov dword [rsp + 0x38], eax
cmp dword [rsp + 0x38], 0
je 0x14002aeb7
mov rcx, qword [rsp + 0x108]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rdx, str.____Cant_create_ImagePath_registry_value
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcout]
call fcn.140015510
mov qword [rsp + 0xa8], rax
lea rdx, [0x14001a850]
mov rcx, qword [rsp + 0xa8]
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 + 0x118]
call fcn.140022740
nop
lea rcx, [rsp + 0x158]
call fcn.140022740
nop
lea rcx, [rsp + 0x138]
call fcn.140022740
movzx eax, byte [rsp + 0x31]
jmp 0x14002b282
mov dword [rsp + 0x28], 4
lea rax, [0x140178724]
mov qword [rsp + 0x20], rax
mov r9d, 4
lea r8, str.Type
xor edx, edx
mov rcx, qword [rsp + 0x108]
call qword [sym.imp.ADVAPI32.dll_RegSetKeyValueW]
mov dword [rsp + 0x38], eax
cmp dword [rsp + 0x38], 0
je 0x14002af69
mov rcx, qword [rsp + 0x108]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rdx, str.____Cant_create_Type_registry_value
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcout]
call fcn.140015510
mov qword [rsp + 0xb0], rax
lea rdx, [0x14001a850]
mov rcx, qword [rsp + 0xb0]
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 + 0x118]
call fcn.140022740
nop
lea rcx, [rsp + 0x158]
call fcn.140022740
nop
lea rcx, [rsp + 0x138]
call fcn.140022740
movzx eax, byte [rsp + 0x32]
jmp 0x14002b282
mov rcx, qword [rsp + 0x108]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rcx, [0x1401784d8]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov qword [rsp + 0x58], rax
cmp qword [rsp + 0x58], 0
jne 0x14002afc9
mov byte [rsp + 0x33], 0
lea rcx, [rsp + 0x118]
call fcn.140022740
nop
lea rcx, [rsp + 0x158]
call fcn.140022740
nop
lea rcx, [rsp + 0x138]
call fcn.140022740
movzx eax, byte [rsp + 0x33]
jmp 0x14002b282
lea rdx, str.RtlAdjustPrivilege
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0xb8], rax
lea rdx, str.NtLoadDriver
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0xe8], rax
mov dword [rsp + 0x54], 0xa
mov rax, qword [rsp + 0xb8]
mov qword [rsp + 0xc0], rax
lea r9, [rsp + 0x110]
xor r8d, r8d
mov dl, 1
mov ecx, dword [rsp + 0x54]
call qword [rsp + 0xc0]
mov dword [rsp + 0x3c], eax
cmp dword [rsp + 0x3c], 0
jge 0x14002b0a0
lea rdx, str.Fatal_error:_failed_to_acquire_SE_LOAD_DRIVER_PRIVILEGE._Make_sure_you_are_running_as_administrator.
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcout]
call fcn.140015510
mov qword [rsp + 0xc8], rax
lea rdx, [0x14001a850]
mov rcx, qword [rsp + 0xc8]
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 + 0x118]
call fcn.140022740
nop
lea rcx, [rsp + 0x158]
call fcn.140022740
nop
lea rcx, [rsp + 0x138]
call fcn.140022740
movzx eax, byte [rsp + 0x34]
jmp 0x14002b282
lea r8, [rsp + 0x138]
lea rdx, [0x140178580]
lea rcx, [rsp + 0x188]
call fcn.14002ab10
nop
lea rax, [rsp + 0x188]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x68], rax
mov rax, qword [rsp + 0x48]
cmp qword [rax + 0x18], 7
jbe 0x14002b0ea
mov dword [rsp + 0x40], 1
jmp 0x14002b0f2
mov dword [rsp + 0x40], 0
movzx eax, byte [rsp + 0x40]
mov byte [rsp + 0x35], al
movzx eax, byte [rsp + 0x35]
test eax, eax
je 0x14002b121
mov rax, qword [rsp + 0x48]
mov rax, qword [rax]
mov qword [rsp + 0xd0], rax
mov rax, qword [rsp + 0xd0]
mov qword [rsp + 0x68], rax
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0xd8], rax
mov rax, qword [rsp + 0xd8]
mov qword [rsp + 0xe0], rax
mov rdx, qword [rsp + 0xe0]
lea rcx, [rsp + 0x178]
call sub.ntdll.dll_RtlInitUnicodeString
mov rax, qword [rsp + 0xe8]
mov qword [rsp + 0xf0], rax
lea rcx, [rsp + 0x178]
call qword [rsp + 0xf0]
mov dword [rsp + 0x3c], eax
lea rdx, str.___NtLoadDriver_Status_0x
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcout]
call fcn.140015510
mov qword [rsp + 0xf8], rax
lea rdx, [0x140022e00]
mov rcx, qword [rsp + 0xf8]
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 + 0x70], rax
mov edx, dword [rsp + 0x3c]
mov rcx, qword [rsp + 0x70]
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 + 0x80], rax
lea rdx, [0x14001a850]
mov rcx, qword [rsp + 0x80]
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 0x14002b224
mov byte [rsp + 0x36], 1
lea rcx, [rsp + 0x188]
call fcn.140022740
nop
lea rcx, [rsp + 0x118]
call fcn.140022740
nop
lea rcx, [rsp + 0x158]
call fcn.140022740
nop
lea rcx, [rsp + 0x138]
call fcn.140022740
movzx eax, byte [rsp + 0x36]
jmp 0x14002b282
cmp dword [rsp + 0x3c], 0
jl 0x14002b235
mov dword [rsp + 0x44], 1
jmp 0x14002b23d
mov dword [rsp + 0x44], 0
movzx eax, byte [rsp + 0x44]
mov byte [rsp + 0x37], al
lea rcx, [rsp + 0x188]
call fcn.140022740
nop
lea rcx, [rsp + 0x118]
call fcn.140022740
nop
lea rcx, [rsp + 0x158]
call fcn.140022740
nop
lea rcx, [rsp + 0x138]
call fcn.140022740
movzx eax, byte [rsp + 0x37]
mov rcx, qword [rsp + 0x1a8]
xor rcx, rsp
call fcn.140163a00
add rsp, 0x1b8
ret