Function at 0x140042820
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 [0x140259410]
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, [0x140261a30]
lea r15, [0x140261a90]
nop
mov rdx, rbx
lea rcx, [rsp + 0x58]
call fcn.14003d350
nop
lea rdx, [rsp + 0x58]
lea rcx, [rsp + 0x28]
call fcn.140049ab0
lea rcx, [rsp + 0x28]
cmp qword [rsp + 0x40], 8
cmovae rcx, qword [rsp + 0x28]
lea rdx, [rsp + 0x50]
call fcn.1400936e8
cmp eax, 8
je 0x1400428d7
cmp eax, 0xffffffff
je 0x1400428d7
mov sil, 1
jmp 0x1400428da
xor sil, sil
mov rdx, qword [rsp + 0x40]
cmp rdx, 8
jb 0x14004291c
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140042917
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140042d2c
call fcn.140095098
test sil, sil
je 0x140042950
mov rax, qword [rdi + 8]
cmp rax, qword [rdi + 0x10]
je 0x14004293f
lea rdx, [rsp + 0x58]
mov rcx, rax
call fcn.14003d350
add qword [rdi + 8], 0x20
jmp 0x140042950
lea r8, [rsp + 0x58]
mov rdx, rax
mov rcx, rdi
call fcn.14004b340
nop
mov rdx, qword [rsp + 0x70]
cmp rdx, 0x10
jb 0x14004298d
inc rdx
mov rcx, qword [rsp + 0x58]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140042988
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140042d32
call fcn.140095098
add rbx, 0x20
cmp rbx, r15
jne 0x140042890
lea rdx, [rbp - 0x70]
mov ecx, 0x100
call qword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsA]
dec eax
cmp eax, 0xff
ja 0x140042ced
lea rbx, [rbp - 0x70]
cmp byte [rbp - 0x70], 0
je 0x140042ced
mov r15d, 4
lea r12d, [r15 + 0x1b]
mov esi, dword [0x140259418]
nop dword [rax]
nop dword [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 0x140042cce
mov eax, dword [0x1400e9738]
mov dword [rsp + 0x50], eax
cmp byte [0x1400e973b], 0
je 0x140042ade
cmp esi, 2
jl 0x140042aa4
movdqa xmm3, xmmword [0x140243cc0]
movdqa xmm2, xmm3
punpckldq xmm2, xmm3
pmuldq xmm2, xmmword [0x140243de0]
movdqa xmm0, xmm3
punpckhdq xmm0, xmm3
pmuldq xmm0, xmmword [0x140243de0]
shufps xmm2, xmm0, 0xdd
movd xmm0, r15d
psrad xmm2, xmm0
movd xmm0, r12d
movdqa xmm1, xmm2
psrld xmm1, xmm0
paddd xmm1, xmm2
pmulld xmm1, xmmword [0x140243d00]
psubd xmm3, xmm1
pshuflw xmm0, xmm3, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
andps xmm2, xmmword [0x140243db0]
packuswb xmm2, xmm2
paddb xmm2, xmmword [str.66666666666666667777777777777777]
movd xmm0, eax
xorps xmm2, xmm0
movd dword [rsp + 0x50], xmm2
jmp 0x140042ade
lea r8, [rsp + 0x50]
mov ecx, r14d
nop dword [rax]
mov eax, 0x4bda12f7
imul ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add edx, eax
mov eax, 1
sub al, dl
movsx eax, al
imul edx, eax, 0x36
add dl, cl
xor byte [r8], dl
inc ecx
lea r8, [r8 + 1]
cmp ecx, 4
jl 0x140042ab0
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 0x140042b00
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x28]
call fcn.14003e1d0
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 0x140042b33
mov rdx, rbx
lea rcx, [rsp + 0x58]
call fcn.14003e1d0
lea rdx, [rsp + 0x28]
mov r13, qword [rsp + 0x40]
cmp r13, 0x10
setae byte [rsp + 0x21]
mov r14, qword [rsp + 0x28]
cmovae rdx, r14
lea rcx, [rsp + 0x58]
mov r15, qword [rsp + 0x70]
cmp r15, 0x10
setae byte [rsp + 0x20]
mov rsi, qword [rsp + 0x58]
cmovae rcx, rsi
mov r8, qword [rsp + 0x68]
cmp r8, qword [rsp + 0x38]
jne 0x140042b9c
call fcn.140098280
test eax, eax
jne 0x140042b9c
xor r12b, r12b
jmp 0x140042b9f
mov r12b, 1
cmp byte [rsp + 0x20], 0
je 0x140042bd8
lea rdx, [r15 + 1]
mov rax, rsi
cmp rdx, 0x1000
jb 0x140042bcf
add rdx, 0x27
mov rsi, qword [rsi - 8]
sub rax, rsi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140042d20
mov rcx, rsi
call fcn.140095098
nop
cmp byte [rsp + 0x21], 0
je 0x140042c10
lea rdx, [r13 + 1]
mov rax, r14
cmp rdx, 0x1000
jb 0x140042c08
add rdx, 0x27
mov r14, qword [r14 - 8]
sub rax, r14
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140042d26
mov rcx, r14
call fcn.140095098
xor r14d, r14d
test r12b, r12b
je 0x140042cbe
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 0x140042c35
mov rdx, rbx
lea rcx, [rsp + 0x58]
call fcn.14003e1d0
nop
mov rdx, qword [rdi + 8]
cmp rdx, qword [rdi + 0x10]
je 0x140042c78
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 0x140042c8a
lea r8, [rsp + 0x58]
mov rcx, rdi
call fcn.14004b0b0
mov rdx, qword [rsp + 0x70]
cmp rdx, 0x10
jb 0x140042cbe
inc rdx
mov rcx, qword [rsp + 0x58]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140042cb9
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140042d26
call fcn.140095098
mov esi, dword [0x140259418]
mov r15d, 4
lea r12d, [r15 + 0x1b]
mov rax, 0xffffffffffffffff
inc rax
cmp byte [rbx + rax], 0
jne 0x140042cd5
inc rbx
add rbx, rax
cmp byte [rbx], 0
jne 0x1400429e0
mov rax, rdi
mov rcx, qword [rbp + 0x90]
xor rcx, rsp
call fcn.140094a70
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.1400a3eb4
nop
call fcn.1400a3eb4
nop
call fcn.1400a3eb4
nop
call fcn.1400a3eb4
int3