Function at 0x14000d570
Capabilities:
Encode data using xor
Get disk size

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rsi
push rdi
sub rsp, 0x90
mov rax, qword [0x1402350c0]
xor rax, rsp
mov qword [rsp + 0x68], rax
movzx eax, word [0x1401abb68]
xor edi, edi
cmp dword [0x140235078], 2
mov ecx, edi
movups xmm3, xmmword [0x1401abb58]
mov word [rsp + 0x60], ax
movzx eax, byte [0x1401abb6a]
mov byte [rsp + 0x62], al
movups xmmword [rsp + 0x50], xmm3
jl 0x14000d779
movdqa xmm5, xmmword [0x1401abb90]
movdqa xmm2, xmmword [0x140075b70]
movdqa xmm4, xmmword [0x140075bb0]
movdqa xmm1, xmm2
punpckldq xmm1, xmm2
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
pmuldq xmm0, xmm5
pmuldq xmm1, xmm5
movd eax, xmm3
movdqa xmm3, xmmword [0x140075b90]
movaps xmmword [r11 - 0x18], xmm6
movdqa xmm6, xmmword [str.2222]
shufps xmm1, xmm0, 0xdd
psrad xmm1, 4
movdqa xmm0, xmm1
movaps xmmword [rsp + 0x70], xmm7
movdqa xmm7, xmmword [0x1401abb80]
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm6
psubd xmm2, xmm0
movd xmm0, eax
andps xmm2, xmm4
packuswb xmm2, xmm2
packuswb xmm2, xmm2
paddb xmm2, xmm7
xorps xmm2, xmm0
movd dword [rsp + 0x50], xmm2
movdqa xmm2, xmmword [0x140075b80]
movdqa xmm1, xmm2
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
punpckldq xmm1, xmm2
pmuldq xmm0, xmm5
pmuldq xmm1, xmm5
shufps xmm1, xmm0, 0xdd
psrad xmm1, 4
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
movdqa xmm1, xmm3
pmulld xmm0, xmm6
psubd xmm2, xmm0
punpckldq xmm1, xmm3
movd xmm0, dword [rsp + 0x54]
andps xmm2, xmm4
pmuldq xmm1, xmm5
packuswb xmm2, xmm2
packuswb xmm2, xmm2
paddb xmm2, xmm7
xorps xmm2, xmm0
movdqa xmm0, xmm3
punpckhdq xmm0, xmm3
pmuldq xmm0, xmm5
movd dword [rsp + 0x54], xmm2
movdqa xmm2, xmmword [0x140075eb0]
shufps xmm1, xmm0, 0xdd
psrad xmm1, 4
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
movdqa xmm1, xmm2
pmulld xmm0, xmm6
psubd xmm3, xmm0
punpckldq xmm1, xmm2
movd xmm0, dword [rsp + 0x58]
andps xmm3, xmm4
packuswb xmm3, xmm3
packuswb xmm3, xmm3
pmuldq xmm1, xmm5
paddb xmm3, xmm7
xorps xmm3, xmm0
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
pmuldq xmm0, xmm5
movd dword [rsp + 0x58], xmm3
shufps xmm1, xmm0, 0xdd
psrad xmm1, 4
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
mov ecx, 0x10
pmulld xmm0, xmm6
movaps xmm6, xmmword [r11 - 0x18]
psubd xmm2, xmm0
movd xmm0, dword [rsp + 0x5c]
andps xmm2, xmm4
packuswb xmm2, xmm2
packuswb xmm2, xmm2
paddb xmm2, xmm7
movaps xmm7, xmmword [rsp + 0x70]
xorps xmm2, xmm0
movd dword [rsp + 0x5c], xmm2
mov eax, ecx
lea r8, [rsp + 0x50]
add r8, rax
nop dword [rax]
nop word [rax + rax]
mov eax, 0x51eb851f
lea r8, [r8 + 1]
imul ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul edx, eax, 0x32
movzx eax, cl
inc ecx
sub al, dl
add al, 0x33
xor byte [r8 - 1], al
cmp ecx, 0x13
jl 0x14000d790
mov qword [rsp + 0x30], rdi
lea rcx, [rsp + 0x50]
mov dword [rsp + 0x28], edi
xor r9d, r9d
mov edx, 0x80000000
mov dword [rsp + 0x20], 3
mov r8d, 1
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rsi, rax
cmp rax, 0xffffffffffffffff
jne 0x14000d819
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.140046770
mov rsi, qword [rsp + 0xa8]
add rsp, 0x90
pop rdi
ret
mov qword [rsp + 0x38], rdi
lea rax, [rsp + 0x40]
mov qword [rsp + 0x30], rax
xor r9d, r9d
lea rax, [rsp + 0x48]
mov dword [rsp + 0x28], 8
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov edx, 0x7405c
mov qword [rsp + 0xa0], rbx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov rcx, rsi
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
mov rbx, qword [rsp + 0xa0]
je 0x14000d7f9
mov rax, qword [rsp + 0x48]
cqo
and edx, 0x3fffffff
add rax, rdx
sar rax, 0x1e
cmp rax, 0x3c
setle dil
mov eax, edi
jmp 0x14000d7fb