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

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0xa0]
sub rsp, 0x1a0
mov rax, qword [0x140187440]
xor rax, rsp
mov qword [rbp + 0x90], rax
mov rdi, rcx
mov qword [rsp + 0x48], rcx
xor r14d, r14d
mov dword [rsp + 0x24], r14d
xorps xmm0, xmm0
movups xmmword [rcx], xmm0
mov qword [rcx], r14
mov qword [rcx + 8], r14
mov qword [rcx + 0x10], r14
mov dword [rsp + 0x24], 1
lea rbx, [0x14018fa00]
lea r15, [0x14018fa60]
nop
mov rdx, rbx
lea rcx, [rsp + 0x58]
call fcn.14003bf50
nop
lea rdx, [rsp + 0x58]
lea rcx, [rsp + 0x28]
call fcn.140047970
lea rcx, [rsp + 0x28]
cmp qword [rsp + 0x40], 7
cmova rcx, qword [rsp + 0x28]
lea rdx, [rsp + 0x50]
call fcn.140092700
cmp eax, 8
je 0x140040a17
cmp eax, 0xffffffff
je 0x140040a17
mov sil, 1
jmp 0x140040a1a
xor sil, sil
mov rdx, qword [rsp + 0x40]
cmp rdx, 7
jbe 0x140040a5c
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140040a57
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140040e57
call fcn.140094048
test sil, sil
je 0x140040a90
mov rax, qword [rdi + 8]
cmp rax, qword [rdi + 0x10]
je 0x140040a7f
lea rdx, [rsp + 0x58]
mov rcx, rax
call fcn.14003bf50
add qword [rdi + 8], 0x20
jmp 0x140040a90
lea r8, [rsp + 0x58]
mov rdx, rax
mov rcx, rdi
call fcn.1400491e0
nop
mov rdx, qword [rsp + 0x70]
cmp rdx, 0xf
jbe 0x140040acd
inc rdx
mov rcx, qword [rsp + 0x58]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140040ac8
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140040e5d
call fcn.140094048
add rbx, 0x20
cmp rbx, r15
jne 0x1400409d0
lea rdx, [rbp - 0x70]
mov ecx, 0x100
call qword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsA]
dec eax
cmp eax, 0xff
ja 0x140040e18
lea rbx, [rbp - 0x70]
cmp byte [rbp - 0x70], 0
je 0x140040e18
mov esi, dword [0x140187488]
nop word [rax + rax]
lea r9, [rsp + 0x78]
lea r8, [rbp - 0x80]
lea rdx, [rbp - 0x78]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExA]
test eax, eax
je 0x140040df4
mov eax, dword [str.r_bo4]
mov dword [rsp + 0x50], eax
cmp byte [0x1400eabfb], 0
je 0x140040c0e
cmp esi, 2
jl 0x140040bd0
movdqa xmm3, xmmword [0x140171d30]
movdqa xmm2, xmm3
punpckldq xmm2, xmm3
pmuldq xmm2, xmmword [0x140171ea0]
movdqa xmm0, xmm3
punpckhdq xmm0, xmm3
pmuldq xmm0, xmmword [0x140171ea0]
shufps xmm2, xmm0, 0xdd
paddd xmm2, xmm3
psrad xmm2, 5
movdqa xmm0, xmm2
psrld xmm0, 0x1f
paddd xmm0, xmm2
pmulld xmm0, xmmword [0x140171da0]
psubd xmm3, xmm0
pshuflw xmm0, xmm3, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
andps xmm2, xmmword [0x140171e30]
packuswb xmm2, xmm2
paddb xmm2, xmmword [str.1111111111111111]
movd xmm0, eax
xorps xmm2, xmm0
movd dword [rsp + 0x50], xmm2
jmp 0x140040c0e
lea r8, [rsp + 0x50]
mov ecx, r14d
nop dword [rax + rax]
mov eax, 0x8d3dcb09
imul ecx
add edx, ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul edx, eax, 0x3a
movzx eax, cl
sub al, dl
add al, 0x31
xor byte [r8], al
inc ecx
lea r8, [r8 + 1]
cmp ecx, 4
jl 0x140040be0
xorps xmm0, xmm0
movups xmmword [rsp + 0x28], xmm0
mov qword [rsp + 0x38], r14
mov qword [rsp + 0x40], r14
lea rax, [rsp + 0x50]
mov r8, 0xffffffffffffffff
nop dword [rax]
inc r8
cmp byte [rax + r8], 0
jne 0x140040c30
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x28]
call fcn.14003cdd0
nop
xorps xmm0, xmm0
movups xmmword [rsp + 0x58], xmm0
mov qword [rsp + 0x68], r14
mov qword [rsp + 0x70], r14
mov r8, 0xffffffffffffffff
inc r8
cmp byte [rbx + r8], 0
jne 0x140040c63
mov rdx, rbx
lea rcx, [rsp + 0x58]
call fcn.14003cdd0
lea rdx, [rsp + 0x28]
mov r13, qword [rsp + 0x40]
cmp r13, 0xf
seta byte [rsp + 0x21]
mov rsi, qword [rsp + 0x28]
cmova rdx, rsi
lea rcx, [rsp + 0x58]
mov r15, qword [rsp + 0x70]
cmp r15, 0xf
seta byte [rsp + 0x20]
mov r14, qword [rsp + 0x58]
cmova rcx, r14
mov r8, qword [rsp + 0x68]
cmp r8, qword [rsp + 0x38]
jne 0x140040ccc
call fcn.1400cc080
test eax, eax
jne 0x140040ccc
xor r12b, r12b
jmp 0x140040ccf
mov r12b, 1
cmp byte [rsp + 0x20], 0
je 0x140040d08
lea rdx, [r15 + 1]
mov rax, r14
cmp rdx, 0x1000
jb 0x140040cff
add rdx, 0x27
mov r14, qword [r14 - 8]
sub rax, r14
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140040e4b
mov rcx, r14
call fcn.140094048
nop
cmp byte [rsp + 0x21], 0
je 0x140040d40
lea rdx, [r13 + 1]
mov rax, rsi
cmp rdx, 0x1000
jb 0x140040d38
add rdx, 0x27
mov rsi, qword [rsi - 8]
sub rax, rsi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140040e51
mov rcx, rsi
call fcn.140094048
xor r14d, r14d
test r12b, r12b
je 0x140040dee
xorps xmm0, xmm0
movups xmmword [rsp + 0x58], xmm0
mov qword [rsp + 0x68], r14
mov qword [rsp + 0x70], r14
mov r8, 0xffffffffffffffff
inc r8
cmp byte [rbx + r8], r14b
jne 0x140040d65
mov rdx, rbx
lea rcx, [rsp + 0x58]
call fcn.14003cdd0
nop
mov rdx, qword [rdi + 8]
cmp rdx, qword [rdi + 0x10]
je 0x140040da8
movups xmm0, xmmword [rsp + 0x58]
movups xmmword [rdx], xmm0
movups xmm1, xmmword [rsp + 0x68]
movups xmmword [rdx + 0x10], xmm1
mov edx, 0xf
mov byte [rsp + 0x58], 0
add qword [rdi + 8], 0x20
jmp 0x140040dba
lea r8, [rsp + 0x58]
mov rcx, rdi
call fcn.140048f50
mov rdx, qword [rsp + 0x70]
cmp rdx, 0xf
jbe 0x140040dee
inc rdx
mov rcx, qword [rsp + 0x58]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140040de9
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140040e51
call fcn.140094048
mov esi, dword [0x140187488]
mov rax, 0xffffffffffffffff
nop dword [rax + rax]
inc rax
cmp byte [rbx + rax], 0
jne 0x140040e00
inc rbx
add rbx, rax
cmp byte [rbx], 0
jne 0x140040b10
mov rax, rdi
mov rcx, qword [rbp + 0x90]
xor rcx, rsp
call fcn.140093a30
lea r11, [rsp + 0x1a0]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
call fcn.1400a344c
nop
call fcn.1400a344c
nop
call fcn.1400a344c
nop
call fcn.1400a344c
int3