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

Disassembly:
jmp 0x140153b40
mov qword [rsp + 8], rcx
sub rsp, 0x168
lea rcx, [rsp + 0x80]
call fcn.140005d71
nop
lea r8, [rsp + 0x80]
lea rdx, [0x14029eae0]
lea rcx, [rsp + 0xa0]
call fcn.140008ef4
nop
mov r8, qword [rsp + 0x170]
lea rdx, [0x14029eb28]
lea rcx, [rsp + 0x60]
call fcn.140008ef4
nop
lea rcx, [rsp + 0xa0]
call fcn.140003800
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 0x140153c23
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.140004fcf
mov qword [rsp + 0x110], rax
lea rdx, [0x140004958]
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 + 0x30], 0
lea rcx, [rsp + 0x60]
call fcn.140007333
nop
lea rcx, [rsp + 0xa0]
call fcn.140007333
nop
lea rcx, [rsp + 0x80]
call fcn.140007333
movzx eax, byte [rsp + 0x30]
jmp 0x14015403d
lea rcx, [rsp + 0x60]
call fcn.140002441
shl rax, 1
mov dword [rsp + 0x50], eax
lea rcx, [rsp + 0x60]
call fcn.140003800
mov qword [rsp + 0x118], rax
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x120], rax
mov eax, dword [rsp + 0x50]
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0x118]
mov qword [rsp + 0x20], rax
mov r9d, 2
lea r8, str.ImagePath
xor edx, edx
mov rcx, qword [rsp + 0x120]
call qword [sym.imp.ADVAPI32.dll_RegSetKeyValueW]
mov dword [rsp + 0x38], eax
cmp dword [rsp + 0x38], 0
je 0x140153d00
mov rcx, qword [rsp + 0x48]
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.140004fcf
mov qword [rsp + 0xc0], rax
lea rdx, [0x140004958]
mov rcx, qword [rsp + 0xc0]
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 + 0x60]
call fcn.140007333
nop
lea rcx, [rsp + 0xa0]
call fcn.140007333
nop
lea rcx, [rsp + 0x80]
call fcn.140007333
movzx eax, byte [rsp + 0x31]
jmp 0x14015403d
mov dword [rsp + 0x28], 4
lea rax, [0x14029eecc]
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 0x140153da9
mov rcx, qword [rsp + 0x48]
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.140004fcf
mov qword [rsp + 0xc8], rax
lea rdx, [0x140004958]
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 + 0x32], 0
lea rcx, [rsp + 0x60]
call fcn.140007333
nop
lea rcx, [rsp + 0xa0]
call fcn.140007333
nop
lea rcx, [rsp + 0x80]
call fcn.140007333
movzx eax, byte [rsp + 0x32]
jmp 0x14015403d
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rcx, [0x14029ebd8]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov qword [rsp + 0x58], rax
cmp qword [rsp + 0x58], 0
jne 0x140153e03
mov byte [rsp + 0x33], 0
lea rcx, [rsp + 0x60]
call fcn.140007333
nop
lea rcx, [rsp + 0xa0]
call fcn.140007333
nop
lea rcx, [rsp + 0x80]
call fcn.140007333
movzx eax, byte [rsp + 0x33]
jmp 0x14015403d
lea rdx, str.RtlAdjustPrivilege
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0xd0], 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 + 0xd0]
mov qword [rsp + 0xd8], rax
lea r9, [rsp + 0x40]
xor r8d, r8d
mov dl, 1
mov ecx, dword [rsp + 0x54]
call qword [rsp + Ordinal_217]
mov dword [rsp + 0x3c], eax
cmp dword [rsp + 0x3c], 0
jge 0x140153ed4
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.140004fcf
mov qword [rsp + 0xe0], rax
lea rdx, [0x140004958]
mov rcx, qword [rsp + 0xe0]
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 + 0x60]
call fcn.140007333
nop
lea rcx, [rsp + 0xa0]
call fcn.140007333
nop
lea rcx, [rsp + 0x80]
call fcn.140007333
movzx eax, byte [rsp + 0x34]
jmp 0x14015403d
lea r8, [rsp + 0x80]
lea rdx, [0x14029ec80]
lea rcx, [rsp + 0x138]
call fcn.140008ef4
nop
lea rcx, [rsp + 0x138]
call fcn.140003800
mov rdx, rax
lea rcx, [rsp + 0x128]
call sub.ntdll.dll_RtlInitUnicodeString
mov rax, qword [rsp + 0xe8]
mov qword [rsp + 0xf0], rax
lea rcx, [rsp + 0x128]
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.140004fcf
mov qword [rsp + 0xf8], rax
lea rdx, [0x140007aa4]
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 + 0x100], rax
mov edx, dword [rsp + 0x3c]
mov rcx, qword [rsp + 0x100]
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 + 0x108], rax
lea rdx, [0x140004958]
mov rcx, qword [rsp + 0x108]
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 0x140153fe2
mov byte [rsp + 0x35], 1
lea rcx, [rsp + 0x138]
call fcn.140007333
nop
lea rcx, [rsp + 0x60]
call fcn.140007333
nop
lea rcx, [rsp + 0xa0]
call fcn.140007333
nop
lea rcx, [rsp + 0x80]
call fcn.140007333
movzx eax, byte [rsp + 0x35]
jmp 0x14015403d
cmp dword [rsp + 0x3c], 0
jl 0x140153ff3
mov dword [rsp + 0x44], 1
jmp 0x140153ffb
mov dword [rsp + 0x44], 0
movzx eax, byte [rsp + 0x44]
mov byte [rsp + 0x36], al
lea rcx, [rsp + 0x138]
call fcn.140007333
nop
lea rcx, [rsp + 0x60]
call fcn.140007333
nop
lea rcx, [rsp + 0xa0]
call fcn.140007333
nop
lea rcx, [rsp + 0x80]
call fcn.140007333
movzx eax, byte [rsp + 0x36]
add rsp, 0x168
ret