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

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0xb0]
sub rsp, 0x1b0
mov rax, qword [0x1400d3440]
xor rax, rsp
mov qword [rbp + 0xa0], rax
mov rdi, rcx
mov qword [rsp + 0x70], rcx
xor r14d, r14d
mov dword [rsp + 0x48], 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 + 0x48], 1
mov esi, dword [0x1400d3488]
cmp edx, 1
jle 0x140040a8e
mov rdx, qword [r8 + 8]
movups xmmword [rsp + 0x28], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x38], xmm1
mov r8, 0xffffffffffffffff
inc r8
cmp byte [rdx + r8], 0
jne 0x140040911
lea rcx, [rsp + 0x28]
call fcn.14003c910
nop
mov rdx, qword [rdi + 8]
cmp rdx, qword [rdi + 0x10]
je 0x140040952
movups xmm0, xmmword [rsp + 0x28]
movups xmmword [rdx], xmm0
movups xmm1, xmmword [rsp + 0x38]
movups xmmword [rdx + 0x10], xmm1
mov edx, 0xf
mov byte [rsp + 0x28], 0
add qword [rdi + 8], 0x20
jmp 0x140040964
lea r8, [rsp + 0x28]
mov rcx, rdi
call fcn.140049280
mov rdx, qword [rsp + 0x40]
cmp rdx, 0xf
jbe 0x14004099c
inc rdx
mov rcx, qword [rsp + 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140040997
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14004123b
call fcn.1400730d8
lea rdx, [rbp - 0x60]
mov ecx, 0x100
call qword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsA]
dec eax
cmp eax, 0xff
ja 0x140041208
lea rbx, [rbp - 0x60]
cmp byte [rbp - 0x60], 0
je 0x140041208
nop word [rax + rax]
lea r9, [rbp - 0x70]
lea r8, [rbp - 0x68]
lea rdx, [rbp - 0x80]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExA]
test eax, eax
je 0x1400411e4
mov eax, dword [str.u_rd9]
mov dword [rsp + 0x78], eax
cmp byte [0x1400bfa1b], 0
je 0x140040ffc
cmp esi, 2
jl 0x140040fc8
movdqa xmm3, xmmword [0x1400c1950]
movdqa xmm2, xmm3
punpckldq xmm2, xmm3
pmuldq xmm2, xmmword [0x1400c1a30]
movdqa xmm0, xmm3
punpckhdq xmm0, xmm3
pmuldq xmm0, xmmword [0x1400c1a30]
shufps xmm2, xmm0, 0xdd
psrad xmm2, 4
movdqa xmm0, xmm2
psrld xmm0, 0x1f
paddd xmm0, xmm2
pmulld xmm0, xmmword [0x1400c19a0]
psubd xmm3, xmm0
pshuflw xmm0, xmm3, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
andps xmm2, xmmword [0x1400c1a00]
packuswb xmm2, xmm2
paddb xmm2, xmmword [0x1400c1a20]
movd xmm0, eax
xorps xmm2, xmm0
movd dword [rsp + 0x78], xmm2
jmp 0x140040ffc
movsd xmm0, qword [0x1400bfc08]
movsd qword [rbp - 0x80], xmm0
mov eax, dword [0x1400bfc10]
mov dword [rbp - 0x78], eax
movzx eax, word [0x1400bfc14]
mov word [rbp - 0x74], ax
movzx eax, byte [0x1400bfc16]
mov byte [rbp - 0x72], al
mov r8d, r14d
cmp esi, 2
jl 0x140040bbe
movdqa xmm4, xmmword [0x1400c1a30]
movdqa xmm2, xmmword [0x1400c1950]
movdqa xmm1, xmm2
punpckldq xmm1, xmm2
pmuldq xmm1, xmm4
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
pmuldq xmm0, xmm4
shufps xmm1, xmm0, 0xdd
psrad xmm1, 4
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmmword [0x1400c19a0]
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
andps xmm2, xmmword [0x1400c1a00]
packuswb xmm2, xmm2
paddb xmm2, xmmword [0x1400c1a20]
movd xmm0, dword [0x1400bfc08]
xorps xmm2, xmm0
movd dword [rbp - 0x80], xmm2
movdqa xmm3, xmmword [0x1400c1960]
movdqa xmm1, xmm3
punpckldq xmm1, xmm3
pmuldq xmm1, xmm4
movdqa xmm0, xmm3
punpckhdq xmm0, xmm3
pmuldq xmm0, xmm4
shufps xmm1, xmm0, 0xdd
psrad xmm1, 4
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmmword [0x1400c19a0]
psubd xmm3, xmm0
pshuflw xmm0, xmm3, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
andps xmm2, xmmword [0x1400c1a00]
packuswb xmm2, xmm2
paddb xmm2, xmmword [0x1400c1a20]
movd xmm0, dword [rbp - 0x7c]
xorps xmm2, xmm0
movd dword [rbp - 0x7c], xmm2
mov r8d, 8
movsxd rax, r8d
lea r9, [rbp - 0x80]
add r9, rax
nop dword [rax + rax]
mov eax, 0x4d4873ed
imul r8d
sar edx, 4
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul ecx, eax, 0x35
movzx eax, r8b
sub al, cl
add al, 0x36
xor byte [r9], al
inc r8d
lea r9, [r9 + 1]
cmp r8d, 0xf
jl 0x140040bd0
xorps xmm0, xmm0
movups xmmword [rsp + 0x28], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x38], xmm1
lea rax, [rbp - 0x80]
mov r8, 0xffffffffffffffff
nop dword [rax]
inc r8
cmp byte [rax + r8], 0
jne 0x140040c20
lea rdx, [rbp - 0x80]
lea rcx, [rsp + 0x28]
call fcn.14003c910
nop
lea rdx, [rsp + 0x28]
lea rcx, [rsp + 0x50]
call fcn.140047d10
lea rcx, [rsp + 0x50]
cmp qword [rsp + 0x68], 7
cmova rcx, qword [rsp + 0x50]
lea rdx, [rsp + 0x78]
call fcn.1400718a0
cmp eax, 8
je 0x140040c71
cmp eax, 0xffffffff
je 0x140040c71
mov bl, 1
jmp 0x140040c73
xor bl, bl
mov rdx, qword [rsp + 0x68]
cmp rdx, 7
jbe 0x140040cb6
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140040cb0
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140041247
call fcn.1400730d8
nop
mov rdx, qword [rsp + 0x40]
cmp rdx, 0xf
jbe 0x140040cf3
inc rdx
mov rcx, qword [rsp + 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140040cee
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14004124d
call fcn.1400730d8
test bl, bl
je 0x140040eec
movsd xmm0, qword [0x1400bfc08]
movsd qword [rbp - 0x80], xmm0
mov eax, dword [0x1400bfc10]
mov dword [rbp - 0x78], eax
movzx eax, word [0x1400bfc14]
mov word [rbp - 0x74], ax
movzx eax, byte [0x1400bfc16]
mov byte [rbp - 0x72], al
mov r8d, r14d
cmp esi, 2
jl 0x140040e31
movdqa xmm4, xmmword [0x1400c1a30]
movdqa xmm2, xmmword [0x1400c1950]
movdqa xmm1, xmm2
punpckldq xmm1, xmm2
pmuldq xmm1, xmm4
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
pmuldq xmm0, xmm4
shufps xmm1, xmm0, 0xdd
psrad xmm1, 4
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmmword [0x1400c19a0]
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
andps xmm2, xmmword [0x1400c1a00]
packuswb xmm2, xmm2
mov eax, dword [0x1400c1a20]
movd xmm0, eax
paddb xmm2, xmm0
movd xmm0, dword [0x1400bfc08]
xorps xmm2, xmm0
movd dword [rbp - 0x80], xmm2
movdqa xmm3, xmmword [0x1400c1960]
movdqa xmm1, xmm3
punpckldq xmm1, xmm3
pmuldq xmm1, xmm4
movdqa xmm0, xmm3
punpckhdq xmm0, xmm3
pmuldq xmm0, xmm4
shufps xmm1, xmm0, 0xdd
psrad xmm1, 4
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmmword [0x1400c19a0]
psubd xmm3, xmm0
pshuflw xmm0, xmm3, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
andps xmm2, xmmword [0x1400c1a00]
packuswb xmm2, xmm2
movd xmm0, eax
paddb xmm2, xmm0
movd xmm1, dword [rbp - 0x7c]
xorps xmm2, xmm1
movd dword [rbp - 0x7c], xmm2
mov r8d, 8
movsxd rax, r8d
lea r9, [rbp - 0x80]
add r9, rax
nop dword [rax + rax]
mov eax, 0x4d4873ed
imul r8d
sar edx, 4
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul ecx, eax, 0x35
movzx eax, r8b
sub al, cl
add al, 0x36
xor byte [r9], al
inc r8d
lea r9, [r9 + 1]
cmp r8d, 0xf
jl 0x140040e40
xorps xmm0, xmm0
movups xmmword [rsp + 0x28], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x38], xmm1
lea rax, [rbp - 0x80]
mov r8, 0xffffffffffffffff
nop dword [rax]
inc r8
cmp byte [rax + r8], 0
jne 0x140040e90
lea rdx, [rbp - 0x80]
lea rcx, [rsp + 0x28]
call fcn.14003c910
nop
mov rdx, qword [rdi + 8]
cmp rdx, qword [rdi + 0x10]
je 0x140040ed5
movups xmm0, xmmword [rsp + 0x28]
movups xmmword [rdx], xmm0
movups xmm1, xmmword [rsp + 0x38]
movups xmmword [rdx + 0x10], xmm1
mov edx, 0xf
mov byte [rsp + 0x28], 0
add qword [rdi + 8], 0x20
jmp 0x140040ee7
lea r8, [rsp + 0x28]
mov rcx, rdi
call fcn.140049280
mov rdx, qword [rsp + 0x40]
jmp 0x140040964
movzx eax, word [0x1400bfca0]
mov word [rsp + 0x78], ax
movzx eax, byte [0x1400bfca2]
mov byte [rsp + 0x78], 0x2e
xor byte [rsp + 0x79], 0x37
xor al, 0x38
mov byte [rsp + 0x7a], al
xorps xmm0, xmm0
movups xmmword [rsp + 0x28], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x38], xmm1
lea rax, [rsp + 0x78]
mov r8, 0xffffffffffffffff
nop dword [rax]
inc r8
cmp byte [rax + r8], 0
jne 0x140040f30
lea rdx, [rsp + 0x78]
lea rcx, [rsp + 0x28]
call fcn.14003c910
nop
mov rdx, qword [rdi + 8]
cmp rdx, qword [rdi + 0x10]
je 0x140040f76
movups xmm0, xmmword [rsp + 0x28]
movups xmmword [rdx], xmm0
movups xmm1, xmmword [rsp + 0x38]
movups xmmword [rdx + 0x10], xmm1
mov edx, 0xf
mov byte [rsp + 0x28], 0
add qword [rdi + 8], 0x20
jmp 0x140040f88
lea r8, [rsp + 0x28]
mov rcx, rdi
call fcn.140049280
mov rdx, qword [rsp + 0x40]
cmp rdx, 0xf
jbe 0x14004099c
inc rdx
mov rcx, qword [rsp + 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140040997
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14004123b
jmp 0x140040997
lea r8, [rsp + 0x78]
mov ecx, r14d
mov eax, 0x4d4873ed
imul ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul edx, eax, 0x35
movzx eax, cl
sub al, dl
add al, 0x36
xor byte [r8], al
inc ecx
lea r8, [r8 + 1]
cmp ecx, 4
jl 0x140040fd0
xorps xmm0, xmm0
movups xmmword [rsp + 0x50], xmm0
mov qword [rsp + 0x60], r14
mov qword [rsp + 0x68], r14
lea rax, [rsp + 0x78]
mov r8, 0xffffffffffffffff
nop word [rax + rax]
inc r8
cmp byte [rax + r8], 0
jne 0x140041020
lea rdx, [rsp + 0x78]
lea rcx, [rsp + 0x50]
call fcn.14003c910
nop
xorps xmm0, xmm0
movups xmmword [rsp + 0x28], xmm0
mov qword [rsp + 0x38], r14
mov qword [rsp + 0x40], r14
mov r8, 0xffffffffffffffff
inc r8
cmp byte [rbx + r8], 0
jne 0x140041053
mov rdx, rbx
lea rcx, [rsp + 0x28]
call fcn.14003c910
lea rdx, [rsp + 0x50]
mov r13, qword [rsp + 0x68]
cmp r13, 0xf
seta byte [rsp + 0x21]
mov rsi, qword [rsp + 0x50]
cmova rdx, rsi
lea rcx, [rsp + 0x28]
mov r15, qword [rsp + 0x40]
cmp r15, 0xf
seta byte [rsp + 0x20]
mov r14, qword [rsp + 0x28]
cmova rcx, r14
mov r8, qword [rsp + 0x38]
cmp r8, qword [rsp + 0x60]
jne 0x1400410bc
call fcn.1400a2d80
test eax, eax
jne 0x1400410bc
xor r12b, r12b
jmp 0x1400410bf
mov r12b, 1
cmp byte [rsp + 0x20], 0
je 0x1400410f8
lea rdx, [r15 + 1]
mov rax, r14
cmp rdx, 0x1000
jb 0x1400410ef
add rdx, 0x27
mov r14, qword [r14 - 8]
sub rax, r14
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140041235
mov rcx, r14
call fcn.1400730d8
nop
cmp byte [rsp + 0x21], 0
je 0x140041130
lea rdx, [r13 + 1]
mov rax, rsi
cmp rdx, 0x1000
jb 0x140041128
add rdx, 0x27
mov rsi, qword [rsi - 8]
sub rax, rsi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140041241
mov rcx, rsi
call fcn.1400730d8
xor r14d, r14d
test r12b, r12b
je 0x1400411de
xorps xmm0, xmm0
movups xmmword [rsp + 0x28], xmm0
mov qword [rsp + 0x38], r14
mov qword [rsp + 0x40], r14
mov r8, 0xffffffffffffffff
inc r8
cmp byte [rbx + r8], r14b
jne 0x140041155
mov rdx, rbx
lea rcx, [rsp + 0x28]
call fcn.14003c910
nop
mov rdx, qword [rdi + 8]
cmp rdx, qword [rdi + 0x10]
je 0x140041198
movups xmm0, xmmword [rsp + 0x28]
movups xmmword [rdx], xmm0
movups xmm1, xmmword [rsp + 0x38]
movups xmmword [rdx + 0x10], xmm1
mov edx, 0xf
mov byte [rsp + 0x28], 0
add qword [rdi + 8], 0x20
jmp 0x1400411aa
lea r8, [rsp + 0x28]
mov rcx, rdi
call fcn.140049280
mov rdx, qword [rsp + 0x40]
cmp rdx, 0xf
jbe 0x1400411de
inc rdx
mov rcx, qword [rsp + 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400411d9
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140041241
call fcn.1400730d8
mov esi, dword [0x1400d3488]
mov rax, 0xffffffffffffffff
nop dword [rax + rax]
inc rax
cmp byte [rbx + rax], 0
jne 0x1400411f0
inc rbx
add rbx, rax
cmp byte [rbx], 0
jne 0x1400409d0
mov rax, rdi
mov rcx, qword [rbp + 0xa0]
xor rcx, rsp
call fcn.140072ac0
mov rbx, qword [rsp + 0x1f8]
add rsp, 0x1b0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
call fcn.1400824dc
nop
call fcn.1400824dc
int3
call fcn.1400824dc
nop
call fcn.1400824dc
nop
call fcn.1400824dc
int3