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

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x218
mov qword [rsp + 0xe8], 0xfffffffffffffffe
mov rax, qword [0x14002d010]
xor rax, rsp
mov qword [rsp + 0x200], rax
xor r8d, r8d
mov rdx, qword [rsp + 0x220]
lea rcx, [rsp + 0x140]
call fcn.14000f4e0
mov qword [rsp + 0x68], rax
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0x70], rax
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x78], rax
lea rdx, [rsp + 0x120]
mov rcx, qword [rsp + 0x78]
call fcn.140015850
mov qword [rsp + 0x80], rax
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0x88], rax
mov rax, qword [rsp + 0x88]
mov qword [rsp + 0x90], rax
lea rdx, [rsp + 0x170]
mov rcx, qword [rsp + 0x90]
call fcn.14000ccc0
nop
lea rcx, [rsp + 0x120]
call fcn.14000cdd0
nop
lea rcx, [rsp + 0x140]
call fcn.14000cdd0
lea r8, [rsp + 0x170]
lea rdx, [0x140025ca8]
lea rcx, [rsp + 0x1b0]
call fcn.140016200
nop
mov r8, qword [rsp + 0x220]
lea rdx, str.___
lea rcx, [rsp + 0x190]
call fcn.140016200
nop
lea rcx, [rsp + 0x1b0]
call fcn.140005370
lea r8, [rsp + 0x160]
mov rdx, rax
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
mov dword [rsp + 0x38], eax
cmp dword [rsp + 0x38], 0
je 0x140015a54
lea rcx, str.____Cant_create_service_key_n
call fcn.1400010a0
mov byte [rsp + 0x30], 0
lea rcx, [rsp + 0x190]
call fcn.1400054c0
nop
lea rcx, [rsp + 0x1b0]
call fcn.1400054c0
nop
lea rcx, [rsp + 0x170]
call fcn.1400054c0
movzx eax, byte [rsp + 0x30]
jmp 0x140015e3b
lea rcx, [rsp + 0x190]
call fcn.140004e40
mov dword [rsp + 0x50], eax
lea rcx, [rsp + 0x190]
call fcn.140005370
mov qword [rsp + 0x98], rax
mov rax, qword [rsp + 0x160]
mov qword [rsp + 0xa0], rax
mov eax, dword [rsp + 0x50]
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0x98]
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_RegSetKeyValueA]
mov dword [rsp + 0x38], eax
cmp dword [rsp + 0x38], 0
je 0x140015b19
mov rcx, qword [rsp + 0x160]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rcx, str.____Cant_create_ImagePath_registry_value_n
call fcn.1400010a0
mov byte [rsp + 0x31], 0
lea rcx, [rsp + 0x190]
call fcn.1400054c0
nop
lea rcx, [rsp + 0x1b0]
call fcn.1400054c0
nop
lea rcx, [rsp + 0x170]
call fcn.1400054c0
movzx eax, byte [rsp + 0x31]
jmp 0x140015e3b
mov dword [rsp + 0x28], 4
lea rax, [0x1400261d4]
mov qword [rsp + 0x20], rax
mov r9d, 4
lea r8, str.Type
xor edx, edx
mov rcx, qword [rsp + 0x160]
call qword [sym.imp.ADVAPI32.dll_RegSetKeyValueA]
mov dword [rsp + 0x38], eax
cmp dword [rsp + 0x38], 0
je 0x140015ba7
mov rcx, qword [rsp + 0x160]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rcx, str.____Cant_create_Type_registry_value_n
call fcn.1400010a0
mov byte [rsp + 0x32], 0
lea rcx, [rsp + 0x190]
call fcn.1400054c0
nop
lea rcx, [rsp + 0x1b0]
call fcn.1400054c0
nop
lea rcx, [rsp + 0x170]
call fcn.1400054c0
movzx eax, byte [rsp + 0x32]
jmp 0x140015e3b
mov rcx, qword [rsp + 0x160]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rcx, [0x140025d68]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0
jne 0x140015c07
mov byte [rsp + 0x33], 0
lea rcx, [rsp + 0x190]
call fcn.1400054c0
nop
lea rcx, [rsp + 0x1b0]
call fcn.1400054c0
nop
lea rcx, [rsp + 0x170]
call fcn.1400054c0
movzx eax, byte [rsp + 0x33]
jmp 0x140015e3b
lea rdx, str.RtlAdjustPrivilege
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0xa8], rax
lea rdx, str.NtLoadDriver
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0x58], rax
mov dword [rsp + 0x54], 0xa
mov rax, qword [rsp + 0xa8]
mov qword [rsp + 0xb0], rax
lea r9, [rsp + 0x168]
xor r8d, r8d
mov dl, 1
mov ecx, dword [rsp + 0x54]
call qword [rsp + 0xb0]
mov dword [rsp + 0x3c], eax
cmp dword [rsp + 0x3c], 0
jge 0x140015cb7
lea rcx, str.Fatal_error:_failed_to_acquire_SE_LOAD_DRIVER_PRIVILEGE._Make_sure_you_are_running_as_administrator._n
call fcn.1400010a0
mov byte [rsp + 0x34], 0
lea rcx, [rsp + 0x190]
call fcn.1400054c0
nop
lea rcx, [rsp + 0x1b0]
call fcn.1400054c0
nop
lea rcx, [rsp + 0x170]
call fcn.1400054c0
movzx eax, byte [rsp + 0x34]
jmp 0x140015e3b
lea rcx, [rsp + 0x40]
call fcn.1400014a0
mov qword [rsp + 0xc8], rax
lea rdx, [rsp + 0xf0]
lea rcx, [rsp + 0x170]
call fcn.140016120
mov rax, qword [rax]
mov qword [rsp + 0xb8], rax
mov rax, qword [rsp + 0xb8]
mov qword [rsp + 0xd0], rax
lea rdx, [rsp + 0xf8]
lea rcx, [rsp + 0x170]
call fcn.140016190
mov rax, qword [rax]
mov qword [rsp + 0xc0], rax
mov rax, qword [rsp + 0xc0]
mov qword [rsp + 0xd8], rax
mov r9, qword [rsp + 0xc8]
mov r8, qword [rsp + 0xd0]
mov rdx, qword [rsp + 0xd8]
lea rcx, [rsp + 0x1d0]
call fcn.1400162e0
nop
lea r8, [rsp + 0x1d0]
lea rdx, [0x140025e50]
lea rcx, [rsp + 0x100]
call fcn.140009f00
mov qword [rsp + 0xe0], rax
mov rdx, qword [rsp + 0xe0]
lea rcx, [rsp + 0x1d0]
call fcn.1400051b0
lea rcx, [rsp + 0x100]
call fcn.140005180
lea rcx, [rsp + 0x1d0]
call fcn.14000df40
mov rdx, rax
lea rcx, [rsp + 0x1f0]
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0x60], rax
lea rcx, [rsp + 0x1f0]
call qword [rsp + 0x60]
mov dword [rsp + 0x3c], eax
mov edx, dword [rsp + 0x3c]
lea rcx, str.___NtLoadDriver_Status_0x_lx_n
call fcn.1400010a0
cmp dword [rsp + 0x3c], 0
jl 0x140015dee
mov dword [rsp + 0x44], 1
jmp 0x140015df6
mov dword [rsp + 0x44], 0
movzx eax, byte [rsp + 0x44]
mov byte [rsp + 0x35], al
lea rcx, [rsp + 0x1d0]
call fcn.140005180
nop
lea rcx, [rsp + 0x190]
call fcn.1400054c0
nop
lea rcx, [rsp + 0x1b0]
call fcn.1400054c0
nop
lea rcx, [rsp + 0x170]
call fcn.1400054c0
movzx eax, byte [rsp + 0x35]
mov rcx, qword [rsp + 0x200]
xor rcx, rsp
call fcn.140018210
add rsp, 0x218
ret