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

Disassembly:
push rbp
lea rbp, [rsp - 0x270]
sub rsp, 0x370
mov rax, qword [section..data]
xor rax, rsp
mov qword [rbp + 0x260], rax
lea rax, [rsp + 0x58]
mov r9d, 0x20006
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.SystemCurrentControlSetServices
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1400016f1
mov rdx, qword [0x140029d70]
lea rax, [rsp + 0x50]
xor ecx, ecx
xor r9d, r9d
mov qword [rsp + 0x40], rcx
xor r8d, r8d
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rcx
mov dword [rsp + 0x28], 0x20006
mov dword [rsp + 0x20], ecx
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x1400016f1
lea r8, [0x140023a38]
mov edx, 0x104
lea rcx, [rbp + 0x50]
call fcn.1400093f0
lea r8, [0x140029b60]
mov edx, 0x104
lea rcx, [rbp + 0x50]
call fcn.14000ccf4
lea rcx, [rbp + 0x50]
mov rax, 0xffffffffffffffff
nop dword [rax + rax]
cmp word [rcx + rax*2 + 2], 0
lea rax, [rax + 1]
jne 0x140001470
mov rcx, qword [rsp + 0x50]
lea eax, [rax*2 + 2]
mov dword [rsp + 0x28], eax
lea rdx, str.ImagePath
lea rax, [rbp + 0x50]
mov r9d, 2
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x1400014ca
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.LoadDriver:_RegSetValueEx_failed__d_._n
call fcn.140005730
xor eax, eax
jmp 0x1400015d1
mov rcx, qword [rsp + 0x50]
lea rax, [rsp + 0x60]
mov dword [rsp + 0x28], 4
lea rdx, str.Type
mov r9d, 4
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov dword [rsp + 0x60], 1
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x1400014af
mov rcx, qword [rsp + 0x50]
mov qword [rsp + 0x380], rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rcx, [0x140023a90]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rbx, rax
test rax, rax
jne 0x14000154e
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.LoadDriver:_LoadLibrary_failed__d_._n
call fcn.140005730
xor eax, eax
jmp 0x1400015c9
mov qword [rsp + 0x388], rsi
lea rdx, [0x140023ac8]
mov rcx, rbx
mov qword [rsp + 0x390], rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.NtLoadDriver
mov rcx, rbx
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.RtlAdjustPrivilege
mov rcx, rbx
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
xor r8d, r8d
lea r9, [rsp + 0x64]
lea edx, [r8 + 1]
lea ecx, [rdx + 9]
call rax
test eax, eax
jns 0x1400015e9
mov edx, eax
lea rcx, str.LoadDriver:_RtlAdjustPrivilege_failed__lx_._n
call fcn.140005730
xor eax, eax
mov rsi, qword [rsp + 0x388]
mov rdi, qword [rsp + 0x390]
mov rbx, qword [rsp + 0x380]
mov rcx, qword [rbp + 0x260]
xor rcx, rsp
call fcn.1400057b0
add rsp, 0x370
pop rbp
ret
movaps xmm0, xmmword [str.RegistryMachineSystemCurrentControlSetServices_]
lea rcx, [rbp - 0x16]
movaps xmm1, xmmword [0x140023b50]
xor edx, edx
movzx eax, word [0x140023ba8]
movaps xmmword [rbp - 0x80], xmm0
movaps xmm0, xmmword [0x140023b60]
movaps xmmword [rbp - 0x60], xmm0
lea r8d, [rdx + 0x5e]
movaps xmm0, xmmword [0x140023b80]
movaps xmmword [rbp - 0x70], xmm1
movaps xmm1, xmmword [0x140023b70]
movaps xmmword [rbp - 0x40], xmm0
movsd xmm0, qword [0x140023ba0]
movaps xmmword [rbp - 0x50], xmm1
movaps xmm1, xmmword [0x140023b90]
movsd qword [rbp - 0x20], xmm0
movaps xmmword [rbp - 0x30], xmm1
mov word [rbp - 0x18], ax
call fcn.140006980
mov rdx, qword [0x140029d70]
lea rcx, [rbp - 0x80]
call qword [sym.imp.KERNEL32.dll_lstrcatW]
lea rdx, [rbp - 0x80]
lea rcx, [rsp + 0x68]
call rdi
lea rcx, [rsp + 0x68]
call rsi
test eax, eax
js 0x140001683
mov eax, 1
jmp 0x1400015b9
cmp eax, 0xc0000603
jne 0x14000169b
lea rcx, str.LoadDriver:_NtLoadDriver_failed_The_drivers_certificate_has_been_revoked_._n
call fcn.140005730
jmp 0x1400015b7
cmp eax, 0xc0000022
jne 0x1400016b3
lea rcx, str.LoadDriver:_NtLoadDriver_failed_Driver_loading_is_blocked_._n
call fcn.140005730
jmp 0x1400015b7
cmp eax, 0xc0000034
jne 0x1400016cb
lea rcx, str.LoadDriver:_NtLoadDriver_failed_STATUS_OBJECT_NAME_NOT_FOUND_._n
call fcn.140005730
jmp 0x1400015b7
cmp eax, 0xc0000428
jne 0x1400016e3
lea rcx, str.LoadDriver:_NtLoadDriver_failed_STATUS_INVALID_IMAGE_HASH_._n
call fcn.140005730
jmp 0x1400015b7
mov edx, eax
lea rcx, str.LoadDriver:_NtLoadDriver_failed__lx_._n
jmp 0x1400015b2
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.LoadDriver:_RegCreateKeyEx_failed__d_._n
call fcn.140005730
xor eax, eax
jmp 0x1400015d1