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

Disassembly:
jmp 0x14007f1b0
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x9e8
lea rbp, [rsp + 0x30]
lea rdi, [rsp + 0x30]
mov ecx, 0x1ae
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0xa08]
mov rax, qword [0x1400c5040]
xor rax, rbp
mov qword [rbp + 0x9a8], rax
lea rcx, [0x1400d550e]
call fcn.140034f86
lea rcx, [rbp + 8]
call fcn.14003451d
nop
lea rdx, str.SYSTEMCurrentControlSetServices_
lea rcx, [rbp + 0x540]
call fcn.140034004
mov rcx, rax
call fcn.1400350f3
lea r8, [rbp + 8]
mov rdx, rax
lea rcx, [rbp + 0x48]
call fcn.1400351c0
nop
mov r8, qword [rbp + 0x9d0]
lea rdx, str.___
lea rcx, [rbp + 0x88]
call fcn.1400351c0
nop
lea rcx, [rbp + 0x48]
call fcn.140033ab9
lea r8, [rbp + 0xc8]
mov rdx, rax
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
mov dword [rbp + 0xe4], eax
cmp dword [rbp + 0xe4], 0
je 0x14007f2e6
lea rdx, str.____Cant_create_service_key
lea rcx, [rbp + 0x5a8]
call fcn.140034707
mov rcx, rax
call fcn.140033f73
mov rdx, rax
mov rcx, qword [sym.imp.MSVCP140D.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcout]
call fcn.140034149
lea rdx, [0x140033fa0]
mov rcx, rax
call qword [sym.imp.MSVCP140D.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 [rbp + 0x5e4], 0
lea rcx, [rbp + 0x88]
call fcn.140034ad6
nop
lea rcx, [rbp + 0x48]
call fcn.140034ad6
nop
lea rcx, [rbp + 8]
call fcn.140034ad6
movzx eax, byte [rbp + 0x5e4]
jmp 0x14007f788
lea rcx, [rbp + 0x88]
call fcn.140033569
shl rax, 1
mov qword [rbp + 0x998], rax
lea rcx, [rbp + 0x88]
call fcn.140033ab9
mov qword [rbp + 0x9a0], rax
lea rdx, str.ImagePath
lea rcx, [rbp + 0x608]
call fcn.140033cc1
mov rcx, rax
call fcn.14003353c
mov rcx, qword [rbp + 0x998]
mov dword [rsp + 0x28], ecx
mov rcx, qword [rbp + 0x9a0]
mov qword [rsp + 0x20], rcx
mov r9d, 2
mov r8, rax
xor edx, edx
mov rcx, qword [rbp + 0xc8]
call qword [sym.imp.ADVAPI32.dll_RegSetKeyValueW]
mov dword [rbp + 0xe4], eax
cmp dword [rbp + 0xe4], 0
je 0x14007f3e2
mov rcx, qword [rbp + 0xc8]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rdx, str.____Cant_create_ImagePath_registry_value
lea rcx, [rbp + 0x638]
call fcn.1400347a2
mov rcx, rax
call fcn.14003468f
mov rdx, rax
mov rcx, qword [sym.imp.MSVCP140D.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcout]
call fcn.140034149
lea rdx, [0x140033fa0]
mov rcx, rax
call qword [sym.imp.MSVCP140D.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 [rbp + 0x684], 0
lea rcx, [rbp + 0x88]
call fcn.140034ad6
nop
lea rcx, [rbp + 0x48]
call fcn.140034ad6
nop
lea rcx, [rbp + 8]
call fcn.140034ad6
movzx eax, byte [rbp + 0x684]
jmp 0x14007f788
lea rdx, str.Type
lea rcx, [rbp + 0x6a8]
call fcn.140033b77
mov rcx, rax
call fcn.140033d93
mov dword [rsp + 0x28], 4
lea rcx, [0x1400b576c]
mov qword [rsp + 0x20], rcx
mov r9d, 4
mov r8, rax
xor edx, edx
mov rcx, qword [rbp + 0xc8]
call qword [sym.imp.ADVAPI32.dll_RegSetKeyValueW]
mov dword [rbp + 0xe4], eax
cmp dword [rbp + 0xe4], 0
je 0x14007f4b2
mov rcx, qword [rbp + 0xc8]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rdx, str.____Cant_create_Type_registry_value
lea rcx, [rbp + 0x6d8]
call fcn.140033622
mov rcx, rax
call fcn.140034d9c
mov rdx, rax
mov rcx, qword [sym.imp.MSVCP140D.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcout]
call fcn.140034149
lea rdx, [0x140033fa0]
mov rcx, rax
call qword [sym.imp.MSVCP140D.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 [rbp + 0x714], 0
lea rcx, [rbp + 0x88]
call fcn.140034ad6
nop
lea rcx, [rbp + 0x48]
call fcn.140034ad6
nop
lea rcx, [rbp + 8]
call fcn.140034ad6
movzx eax, byte [rbp + 0x714]
jmp 0x14007f788
mov rcx, qword [rbp + 0xc8]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rdx, str.ntdll.dll
lea rcx, [rbp + 0x738]
call fcn.140035125
mov rcx, rax
call fcn.140033988
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov qword [rbp + 0x108], rax
cmp qword [rbp + 0x108], 0
jne 0x14007f527
mov byte [rbp + 0x764], 0
lea rcx, [rbp + 0x88]
call fcn.140034ad6
nop
lea rcx, [rbp + 0x48]
call fcn.140034ad6
nop
lea rcx, [rbp + 8]
call fcn.140034ad6
movzx eax, byte [rbp + 0x764]
jmp 0x14007f788
lea rdx, str.RtlAdjustPrivilege
lea rcx, [rbp + 0x788]
call fcn.14003300a
mov rcx, rax
call fcn.1400341c1
mov rdx, rax
mov rcx, qword [rbp + 0x108]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rbp + 0x128], rax
lea rdx, str.NtLoadDriver
lea rcx, [rbp + 0x7b8]
call fcn.140033b68
mov rcx, rax
call fcn.140034955
mov rdx, rax
mov rcx, qword [rbp + 0x108]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rbp + 0x148], rax
mov dword [rbp + 0x164], 0xa
lea r9, [rbp + 0x184]
xor r8d, r8d
mov dl, 1
mov ecx, dword [rbp + 0x164]
call qword [rbp + 0x128]
mov dword [rbp + 0x1a4], eax
cmp dword [rbp + 0x1a4], 0
jge 0x14007f629
lea rdx, str.Fatal_error:_failed_to_acquire_SE_LOAD_DRIVER_PRIVILEGE._Make_sure_you_are_running_as_administrator.
lea rcx, [rbp + 0x7f0]
call fcn.140033343
mov rcx, rax
call fcn.140033005
mov rdx, rax
mov rcx, qword [sym.imp.MSVCP140D.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcout]
call fcn.140034149
lea rdx, [0x140033fa0]
mov rcx, rax
call qword [sym.imp.MSVCP140D.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 [rbp + 0x874], 0
lea rcx, [rbp + 0x88]
call fcn.140034ad6
nop
lea rcx, [rbp + 0x48]
call fcn.140034ad6
nop
lea rcx, [rbp + 8]
call fcn.140034ad6
movzx eax, byte [rbp + 0x874]
jmp 0x14007f788
lea rdx, str.RegistryMachineSystemCurrentControlSetServices_
lea rcx, [rbp + 0x8a0]
call fcn.140033e97
mov rcx, rax
call fcn.140033717
lea r8, [rbp + 8]
mov rdx, rax
lea rcx, [rbp + 0x1c8]
call fcn.1400351c0
nop
lea rcx, [rbp + 0x1c8]
call fcn.140033ab9
mov rdx, rax
lea rcx, [rbp + 0x208]
call fcn.140034e28
lea rcx, [rbp + 0x208]
call qword [rbp + 0x148]
mov dword [rbp + 0x1a4], eax
lea rdx, str.___NtLoadDriver_Status_0x
lea rcx, [rbp + 0x928]
call fcn.140033c99
mov rcx, rax
call fcn.140034540
mov rdx, rax
mov rcx, qword [sym.imp.MSVCP140D.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcout]
call fcn.140034149
lea rdx, [0x140034ccf]
mov rcx, rax
call qword [sym.imp.MSVCP140D.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 edx, dword [rbp + 0x1a4]
mov rcx, rax
call qword [sym.imp.MSVCP140D.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]
lea rdx, [0x140033fa0]
mov rcx, rax
call qword [sym.imp.MSVCP140D.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 [rbp + 0x1a4], 0xc000010e
jne 0x14007f728
mov byte [rbp + 0x964], 1
lea rcx, [rbp + 0x1c8]
call fcn.140034ad6
nop
lea rcx, [rbp + 0x88]
call fcn.140034ad6
nop
lea rcx, [rbp + 0x48]
call fcn.140034ad6
nop
lea rcx, [rbp + 8]
call fcn.140034ad6
movzx eax, byte [rbp + 0x964]
jmp 0x14007f788
cmp dword [rbp + 0x1a4], 0
jl 0x14007f73d
mov dword [rbp + 0x994], 1
jmp 0x14007f747
mov dword [rbp + 0x994], 0
movzx eax, byte [rbp + 0x994]
mov byte [rbp + 0x984], al
lea rcx, [rbp + 0x1c8]
call fcn.140034ad6
nop
lea rcx, [rbp + 0x88]
call fcn.140034ad6
nop
lea rcx, [rbp + 0x48]
call fcn.140034ad6
nop
lea rcx, [rbp + 8]
call fcn.140034ad6
movzx eax, byte [rbp + 0x984]
mov rdi, rax
lea rcx, [rbp - 0x30]
lea rdx, [0x1400b59b0]
call fcn.140034a22
mov rax, rdi
mov rcx, qword [rbp + 0x9a8]
xor rcx, rbp
call fcn.140033f7d
lea rsp, [rbp + 0x9b8]
pop rdi
pop rbp
ret