Function at 0x140051550
Capabilities:
Encode data using xor
Install driver

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rdi
push rbp
lea rbp, [rsp - 0x20]
sub rsp, 0x120
mov rax, qword [0x14012d010]
xor rax, rsp
mov qword [rbp + 0x10], rax
mov rbx, rcx
call fcn.140050ec0
test al, al
je 0x1400517a8
mov rcx, rbx
call fcn.140051250
test al, al
je 0x1400517a8
movdqa xmm0, xmmword [0x140121c20]
mov ecx, 0x15
xor edi, edi
mov dword [rbp - 0x60], ecx
movdqu xmmword [rbp - 0x5c], xmm0
mov eax, edi
mov dword [rbp - 0x4c], 0xf3f6fef8
mov dword [rbp - 0x48], 0x96f0
nop dword [rax]
mov ecx, eax
lea rdx, [rbp - 0x5c]
add rdx, rcx
lea ecx, [rax - 0x7f]
inc eax
xor byte [rdx], cl
mov ecx, dword [rbp - 0x60]
cmp eax, ecx
jb 0x1400515c0
mov byte [rbp + rcx - 0x5c], dil
lea r8, [rbp - 0x38]
xor ecx, ecx
lea rdx, [rbp - 0x5c]
call qword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
test eax, eax
je 0x1400517a8
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea r8, [rbp - 0x40]
mov edx, 0x28
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x1400517a8
mov rax, qword [rbp - 0x38]
lea r8, [rbp - 0x30]
mov rcx, qword [rbp - 0x40]
mov r9d, 0x10
mov qword [rsp + 0x28], rdi
xor edx, edx
mov qword [rbp - 0x2c], rax
mov dword [rbp - 0x30], 1
mov dword [rbp - 0x24], 2
mov qword [rsp + 0x20], rdi
call qword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
je 0x1400517a8
mov rcx, qword [rbp - 0x40]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 0x34
mov edx, edi
mov dword [rsp + 0x30], eax
mov dword [rsp + 0x34], 0xf000dd
mov dword [rsp + 0x38], 0xe300e6
mov dword [rsp + 0x3c], 0xf500ec
mov dword [rsp + 0x40], 0xfa00f3
mov dword [rsp + 0x44], 0xd600f0
mov dword [rsp + 0x48], 0xed00e6
mov dword [rsp + 0x4c], 0xe600ee
mov dword [rsp + 0x50], 0xfe00e6
mov dword [rsp + 0x54], 0xce00f4
mov dword [rsp + 0x58], 0xcd00c0
mov dword [rsp + 0x5c], 0xc200c6
mov dword [rsp + 0x60], 0xd500d2
mov dword [rsp + 0x64], 0xd900c5
mov dword [rsp + 0x68], 0xee00ee
mov dword [rsp + 0x6c], 0xfb00ef
mov dword [rsp + 0x70], 0xd400f1
mov dword [rsp + 0x74], 0xcd00e2
mov dword [rsp + 0x78], 0xd000cd
mov dword [rsp + 0x7c], 0xc900d7
mov dword [rbp - 0x80], 0xfb00cb
mov dword [rbp - 0x7c], 0xde00cc
mov dword [rbp - 0x78], 0xff00f7
mov dword [rbp - 0x74], 0xdc00c8
mov dword [rbp - 0x70], 0xd900d9
mov dword [rbp - 0x6c], 0xd700d2
mov dword [rbp - 0x68], 0xe800c0
mov dword [rbp - 0x64], 0xb5
test eax, eax
je 0x14005175d
mov r8d, 0x81
mov eax, edx
lea rcx, [rsp + 0x34]
lea rcx, [rcx + rax*2]
lea eax, [r8 + rdx]
inc edx
xor word [rcx], ax
mov eax, dword [rsp + 0x30]
cmp edx, eax
jb 0x140051741
mov r8, rbx
mov word [rsp + rax*2 + 0x34], di
lea rdx, [rsp + 0x34]
lea rcx, [rbp - 0x20]
call fcn.140052020
cmp qword [rbp - 8], 8
lea rdx, [rbp - 0x20]
lea rcx, [rbp]
cmovae rdx, qword [rbp - 0x20]
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
lea rcx, [rbp]
call qword [sym.imp.ntdll.dll_NtLoadDriver]
test eax, eax
lea rcx, [rbp - 0x20]
setns bl
call fcn.140051a90
movzx eax, bl
jmp 0x1400517aa
xor al, al
mov rcx, qword [rbp + 0x10]
xor rcx, rsp
call fcn.14010e990
lea r11, [rsp + 0x120]
mov rbx, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret