Function at 0x1401e16c0
Capabilities:
Encode data using xor
Get disk information
Read file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x118]
sub rsp, 0x1e0
movaps xmmword [rax - 0x48], xmm6
movaps xmmword [rax - 0x58], xmm7
movaps xmmword [rax - 0x68], xmm8
movaps xmmword [rax - 0x78], xmm9
movaps xmmword [rax - 0x88], xmm10
movaps xmmword [rax - 0x98], xmm11
movaps xmmword [rax - 0xa8], xmm12
movaps xmmword [rax - 0xb8], xmm13
movaps xmmword [rax - 0xc8], xmm14
mov rax, qword [0x140284028]
xor rax, rsp
mov qword [rbp + 0x40], rax
mov dword [rsp + 0x40], r8d
mov rsi, rdx
mov qword [rsp + 0x48], rdx
mov qword [rsp + 0x50], rcx
mov qword [rbp + 0x20], rdx
mov ecx, 0x228
call fcn.14024118c
mov rbx, rax
mov qword [rbp + 0x28], rax
xor edx, edx
mov r8d, 0x228
mov rcx, rax
call fcn.140241de8
xor r12d, r12d
mov qword [rbx], r12
mov qword [rbx + 0x208], r12
mov qword [rbx + 0x210], r12
mov qword [rbx + 0x218], r12
mov qword [rbx + 0x220], r12
lea rcx, [rbx + 8]
xor edx, edx
mov r8d, 0x200
call fcn.140241de8
mov qword [0x14028f3d8], rbx
call qword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov r14d, eax
test eax, eax
jne 0x1401e1a51
movups xmm0, xmmword [str._a648vn]
movups xmmword [rbp - 0x20], xmm0
movups xmm1, xmmword [0x14026f3f0]
movups xmmword [rbp - 0x10], xmm1
movups xmm0, xmmword [0x14026f400]
movups xmmword [rbp], xmm0
movups xmm1, xmmword [0x14026f410]
movups xmmword [rbp + 0x10], xmm1
cmp dword [0x140284008], 2
jl 0x1401e19d5
movdqa xmm9, xmmword [0x140272810]
mov edx, r12d
movdqa xmm6, xmmword [0x1402728d0]
mov r15d, 3
movd xmm10, r15d
movdqa xmm7, xmmword [0x140272910]
mov r13d, 6
movd xmm11, r13d
movdqa xmm12, xmmword [0x140272840]
movdqa xmm13, xmmword [0x140272920]
mov eax, 0x1f
movd xmm8, eax
movdqa xmm14, xmmword [str.BBBBBBBB]
lea rcx, [rbp - 0x20]
nop
movd xmm5, edx
pshufd xmm5, xmm5, 0
paddd xmm5, xmm9
movdqa xmm2, xmm5
punpckldq xmm2, xmm5
movdqa xmm1, xmm5
punpckhdq xmm1, xmm5
movdqa xmm4, xmm2
pmuldq xmm4, xmm6
movdqa xmm0, xmm1
pmuldq xmm0, xmm6
shufps xmm4, xmm0, 0xdd
psrad xmm4, xmm10
pmuldq xmm2, xmm7
pmuldq xmm1, xmm7
shufps xmm2, xmm1, 0xdd
psubd xmm2, xmm5
psrad xmm2, xmm11
movdqa xmm1, xmm2
psrld xmm1, xmm8
paddd xmm1, xmm2
pmulld xmm1, xmm13
movdqa xmm0, xmm5
psubd xmm0, xmm1
pshuflw xmm0, xmm0, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm3, xmm1, 0xd8
movdqa xmm2, xmm4
psrld xmm2, xmm8
paddd xmm2, xmm4
pmulld xmm2, xmm12
psubd xmm5, xmm2
pshuflw xmm0, xmm5, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
paddw xmm3, xmm2
movq xmm0, xmm14
paddw xmm3, xmm0
movq xmm0, qword [rcx]
pxor xmm3, xmm0
movq qword [rcx], xmm3
lea eax, [rdx + 4]
movd xmm5, eax
pshufd xmm5, xmm5, 0
paddd xmm5, xmm9
movdqa xmm2, xmm5
punpckldq xmm2, xmm5
movdqa xmm1, xmm5
punpckhdq xmm1, xmm5
movdqa xmm4, xmm2
pmuldq xmm4, xmm6
movdqa xmm0, xmm1
pmuldq xmm0, xmm6
shufps xmm4, xmm0, 0xdd
psrad xmm4, xmm10
pmuldq xmm2, xmm7
pmuldq xmm1, xmm7
shufps xmm2, xmm1, 0xdd
psubd xmm2, xmm5
psrad xmm2, xmm11
movdqa xmm1, xmm2
psrld xmm1, xmm8
paddd xmm1, xmm2
pmulld xmm1, xmm13
movdqa xmm0, xmm5
psubd xmm0, xmm1
pshuflw xmm0, xmm0, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm3, xmm1, 0xd8
movdqa xmm2, xmm4
psrld xmm2, xmm8
paddd xmm2, xmm4
pmulld xmm2, xmm12
psubd xmm5, xmm2
pshuflw xmm0, xmm5, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
paddw xmm3, xmm2
movq xmm0, xmm14
paddw xmm3, xmm0
movq xmm0, qword [rcx + 8]
pxor xmm3, xmm0
movq qword [rcx + 8], xmm3
add edx, 8
lea rcx, [rcx + 0x10]
cmp edx, 0x20
jl 0x1401e1840
lea rcx, [rbp - 0x20]
call fcn.1401ba450
jmp 0x1401e2185
lea r10, [rbp - 0x20]
mov r9d, r12d
mov edi, 0xff8e
nop dword [rax]
nop word [rax + rax]
mov eax, 0x13e22cbd
imul r9d
sar edx, 3
mov eax, edx
shr eax, 0x1f
add edx, eax
movzx eax, dx
imul r8d, eax, 0x67
mov eax, 0x8fb823ef
imul r9d
add edx, r9d
sar edx, 6
mov eax, edx
shr eax, 0x1f
add edx, eax
movzx ecx, dx
imul ecx, edi
sub cx, r8w
lea eax, [r9 + 0x21]
add ax, ax
add cx, ax
xor word [r10], cx
inc r9d
lea r10, [r10 + 2]
cmp r9d, 0x20
jl 0x1401e19f0
lea rcx, [rbp - 0x20]
call fcn.1401ba450
jmp 0x1401e2185
mov sil, 0x41
mov edi, 0xff8e
mov ecx, 0x5c
lea edx, [rcx - 0x2e]
lea r15d, [rcx - 0x59]
lea r13d, [rcx - 0x56]
lea r8d, [rcx - 0x22]
mov r12d, dword [rsp + 0x40]
test r14b, 1
je 0x1401e216d
mov dword [rbp + 0x30], 0x5c005c
mov dword [rbp + 0x34], 0x5c002e
movzx eax, sil
mov word [rbp + 0x38], ax
mov dword [rbp + 0x3a], 0x3a
mov rbx, qword [0x14028f3d8]
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x2000080
mov dword [rsp + 0x20], r15d
xor r9d, r9d
mov edx, 0x80000000
lea r8d, [r9 + 7]
lea rcx, [rbp + 0x30]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rbx], rax
cmp rax, 0xffffffffffffffff
je 0x1401e1bb4
lea rdx, [rbx + 8]
mov qword [rsp + 0x20], 0
lea r9, [rbp + 0x28]
mov r8d, 0x200
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1401e1ba4
mov ecx, dword [rbp + 0x28]
add qword [rbx + 0x208], rcx
cmp ecx, 0x200
jne 0x1401e1ba4
movzx eax, byte [rbx + 0x15]
cmp al, 0x80
jbe 0x1401e1b2f
neg eax
mov r8d, 1
movzx ecx, al
shl r8d, cl
jmp 0x1401e1b32
mov r8d, eax
movzx eax, word [rbx + 0x13]
mov edx, eax
imul edx, r8d
mov dword [rbx + 0x210], edx
mov dword [rbx + 0x21c], eax
cmp byte [rbx + 0x4c], 0
jl 0x1401e1b58
mov r8d, edx
imul r8d, dword [rbx + 0x4c]
jmp 0x1401e1b66
mov ecx, dword [rbx + 0x48]
neg ecx
mov r8d, 1
shl r8d, cl
mov dword [rbx + 0x218], r8d
cmp byte [rbx + 0x48], 0
jl 0x1401e1b79
imul edx, dword [rbx + 0x48]
jmp 0x1401e1b85
mov ecx, dword [rbx + 0x48]
neg ecx
mov edx, 1
shl edx, cl
mov dword [rbx + 0x214], edx
lea rcx, [rbp + 0x38]
call qword [sym.imp.SHLWAPI.dll_StrDupW]
mov qword [rbx + 0x220], rax
mov r12d, 1
jmp 0x1401e1bbd
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx], 0xffffffffffffffff
test r12d, r12d
je 0x1401e1ecc
call fcn.140239ba0
test eax, eax
je 0x1401e1ecc
movups xmm0, xmmword [0x14026e6a8]
movups xmmword [rsp + 0x58], xmm0
movups xmm1, xmmword [0x14026e6b8]
movups xmmword [rsp + 0x68], xmm1
movsd xmm0, qword [0x14026e6c8]
movsd qword [rsp + 0x78], xmm0
xor ecx, ecx
cmp dword [0x140284008], 2
jl 0x1401e1ddc
movdqa xmm9, xmmword [0x140272810]
movdqa xmm6, xmmword [0x1402728d0]
movd xmm10, r15d
movdqa xmm7, xmmword [0x140272910]
movd xmm11, r13d
movdqa xmm12, xmmword [0x140272920]
movdqa xmm13, xmmword [0x140272840]
mov eax, 0x1f
movd xmm8, eax
movdqa xmm14, xmmword [str.BBBBBBBB]
lea rdx, [rsp + 0x58]
nop dword [rax]
movd xmm5, ecx
pshufd xmm5, xmm5, 0
paddd xmm5, xmm9
movdqa xmm2, xmm5
punpckldq xmm2, xmm5
movdqa xmm1, xmm5
punpckhdq xmm1, xmm5
movdqa xmm4, xmm2
pmuldq xmm4, xmm6
movdqa xmm0, xmm1
pmuldq xmm0, xmm6
shufps xmm4, xmm0, 0xdd
psrad xmm4, xmm10
pmuldq xmm2, xmm7
pmuldq xmm1, xmm7
shufps xmm2, xmm1, 0xdd
psubd xmm2, xmm5
psrad xmm2, xmm11
movdqa xmm1, xmm2
psrld xmm1, xmm8
paddd xmm1, xmm2
pmulld xmm1, xmm12
movdqa xmm0, xmm5
psubd xmm0, xmm1
pshuflw xmm0, xmm0, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm3, xmm1, 0xd8
movdqa xmm2, xmm4
psrld xmm2, xmm8
paddd xmm2, xmm4
pmulld xmm2, xmm13
psubd xmm5, xmm2
pshuflw xmm0, xmm5, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
paddw xmm3, xmm2
movq xmm0, xmm14
paddw xmm3, xmm0
movq xmm0, qword [rdx]
pxor xmm3, xmm0
movq qword [rdx], xmm3
lea eax, [rcx + 4]
movd xmm5, eax
pshufd xmm5, xmm5, 0
paddd xmm5, xmm9
movdqa xmm2, xmm5
punpckldq xmm2, xmm5
movdqa xmm1, xmm5
punpckhdq xmm1, xmm5
movdqa xmm4, xmm2
pmuldq xmm4, xmm6
movdqa xmm0, xmm1
pmuldq xmm0, xmm6
shufps xmm4, xmm0, 0xdd
psrad xmm4, xmm10
pmuldq xmm2, xmm7
pmuldq xmm1, xmm7
shufps xmm2, xmm1, 0xdd
psubd xmm2, xmm5
psrad xmm2, xmm11
movdqa xmm1, xmm2
psrld xmm1, xmm8
paddd xmm1, xmm2
pmulld xmm1, xmm12
movdqa xmm0, xmm5
psubd xmm0, xmm1
pshuflw xmm0, xmm0, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm3, xmm1, 0xd8
movdqa xmm2, xmm4
psrld xmm2, xmm8
paddd xmm2, xmm4
pmulld xmm2, xmm13
psubd xmm5, xmm2
pshuflw xmm0, xmm5, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
paddw xmm3, xmm2
movq xmm0, xmm14
paddw xmm3, xmm0
movq xmm0, qword [rdx + 8]
pxor xmm3, xmm0
movq qword [rdx + 8], xmm3
add ecx, 8
lea rdx, [rdx + 0x10]
cmp ecx, 0x10
jl 0x1401e1c50
cmp ecx, 0x14
jge 0x1401e1e40
movsxd rax, ecx
lea r10, [rsp + 0x58]
lea r10, [r10 + rax*2]
nop dword [rax + rax]
mov eax, 0x13e22cbd
imul ecx
sar edx, 3
mov eax, edx
shr eax, 0x1f
add edx, eax
movzx eax, dx
imul r9d, eax, 0x67
mov eax, 0x8fb823ef
imul ecx
add edx, ecx
sar edx, 6
mov eax, edx
shr eax, 0x1f
add edx, eax
movzx r8d, dx
imul r8d, edi
sub r8w, r9w
lea eax, [rcx + 0x21]
add ax, ax
add r8w, ax
xor word [r10], r8w
inc ecx
lea r10, [r10 + 2]
cmp ecx, 0x14
jl 0x1401e1df0
movzx edx, sil
lea rcx, [rsp + 0x58]
call fcn.1401ba450
mov rdx, qword [rsp + 0x48]
lea rcx, [rsp + 0x58]
call fcn.140218140
mov r8d, dword [rsp + 0x40]
mov rdx, rax
mov rcx, qword [rsp + 0x50]
call fcn.1401e1130
mov rbx, qword [0x14028f3d8]
mov rcx, qword [rbx]
test rcx, rcx
je 0x1401e2160
cmp rcx, 0xffffffffffffffff
je 0x1401e2160
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx], 0
mov rcx, qword [rbx + 0x220]
test rcx, rcx
je 0x1401e1eb6
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov qword [rbx + 0x220], 0
lea rcx, [rbx + 8]
xor edx, edx
mov r8d, 0x200
call fcn.140241de8
jmp 0x1401e2160
movups xmm0, xmmword [0x140270d60]
movups xmmword [rbp - 0x70], xmm0
movups xmm1, xmmword [0x140270d70]
movups xmmword [rbp - 0x60], xmm1
movups xmm0, xmmword [0x140270d80]
movups xmmword [rbp - 0x50], xmm0
movups xmm1, xmmword [0x140270d90]
movups xmmword [rbp - 0x40], xmm1
mov eax, dword [0x140270da0]
mov dword [rbp - 0x30], eax
xor r9d, r9d
cmp dword [0x140284008], 2
jl 0x1401e20f1
movdqa xmm9, xmmword [0x140272810]
movdqa xmm6, xmmword [0x1402728d0]
movd xmm10, r15d
movdqa xmm7, xmmword [0x140272910]
movd xmm11, r13d
movdqa xmm12, xmmword [0x140272920]
movdqa xmm13, xmmword [0x140272840]
mov eax, 0x1f
movd xmm8, eax
movdqa xmm14, xmmword [str.BBBBBBBB]
lea rcx, [rbp - 0x70]
nop dword [rax]
movd xmm5, r9d
pshufd xmm5, xmm5, 0
paddd xmm5, xmm9
movdqa xmm2, xmm5
punpckldq xmm2, xmm5
movdqa xmm1, xmm5
punpckhdq xmm1, xmm5
movdqa xmm4, xmm2
pmuldq xmm4, xmm6
movdqa xmm0, xmm1
pmuldq xmm0, xmm6
shufps xmm4, xmm0, 0xdd
psrad xmm4, xmm10
pmuldq xmm2, xmm7
pmuldq xmm1, xmm7
shufps xmm2, xmm1, 0xdd
psubd xmm2, xmm5
psrad xmm2, xmm11
movdqa xmm1, xmm2
psrld xmm1, xmm8
paddd xmm1, xmm2
pmulld xmm1, xmm12
movdqa xmm0, xmm5
psubd xmm0, xmm1
pshuflw xmm0, xmm0, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm3, xmm1, 0xd8
movdqa xmm2, xmm4
psrld xmm2, xmm8
paddd xmm2, xmm4
pmulld xmm2, xmm13
psubd xmm5, xmm2
pshuflw xmm0, xmm5, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
paddw xmm3, xmm2
movq xmm0, xmm14
paddw xmm3, xmm0
movq xmm0, qword [rcx]
pxor xmm3, xmm0
movq qword [rcx], xmm3
lea eax, [r9 + 4]
movd xmm5, eax
pshufd xmm5, xmm5, 0
paddd xmm5, xmm9
movdqa xmm2, xmm5
punpckldq xmm2, xmm5
movdqa xmm1, xmm5
punpckhdq xmm1, xmm5
movdqa xmm4, xmm2
pmuldq xmm4, xmm6
movdqa xmm0, xmm1
pmuldq xmm0, xmm6
shufps xmm4, xmm0, 0xdd
psrad xmm4, xmm10
pmuldq xmm2, xmm7
pmuldq xmm1, xmm7
shufps xmm2, xmm1, 0xdd
psubd xmm2, xmm5
psrad xmm2, xmm11
movdqa xmm1, xmm2
psrld xmm1, xmm8
paddd xmm1, xmm2
pmulld xmm1, xmm12
movdqa xmm0, xmm5
psubd xmm0, xmm1
pshuflw xmm0, xmm0, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm3, xmm1, 0xd8
movdqa xmm2, xmm4
psrld xmm2, xmm8
paddd xmm2, xmm4
pmulld xmm2, xmm13
psubd xmm5, xmm2
pshuflw xmm0, xmm5, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
paddw xmm3, xmm2
movq xmm0, xmm14
paddw xmm3, xmm0
movq xmm0, qword [rcx + 8]
pxor xmm3, xmm0
movq qword [rcx + 8], xmm3
add r9d, 8
lea rcx, [rcx + 0x10]
cmp r9d, 0x20
jl 0x1401e1f60
cmp r9d, 0x22
jge 0x1401e2153
movsxd rax, r9d
lea r10, [rbp - 0x70]
lea r10, [r10 + rax*2]
nop dword [rax]
mov eax, 0x13e22cbd
imul r9d
sar edx, 3
mov eax, edx
shr eax, 0x1f
add edx, eax
movzx eax, dx
imul r8d, eax, 0x67
mov eax, 0x8fb823ef
imul r9d
add edx, r9d
sar edx, 6
mov eax, edx
shr eax, 0x1f
add edx, eax
movzx ecx, dx
imul ecx, edi
sub cx, r8w
lea eax, [r9 + 0x21]
add ax, ax
add cx, ax
xor word [r10], cx
inc r9d
lea r10, [r10 + 2]
cmp r9d, 0x22
jl 0x1401e2100
movzx edx, sil
lea rcx, [rbp - 0x70]
call fcn.1401ba450
mov r8d, 0x3a
lea edx, [r8 - 0xc]
lea ecx, [rdx + 0x2e]
shr r14d, 1
inc sil
cmp sil, 0x5a
jle 0x1401e1a72
mov rsi, qword [rsp + 0x48]
xor r12d, r12d
mov rbx, qword [0x14028f3d8]
test rbx, rbx
je 0x1401e21df
mov rcx, qword [rbx]
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x1401e21d1
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx], r12
mov rcx, qword [rbx + 0x220]
test rcx, rcx
je 0x1401e21c0
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov qword [rbx + 0x220], r12
lea rcx, [rbx + 8]
xor edx, edx
mov r8d, 0x200
call fcn.140241de8
mov edx, 0x228
mov rcx, rbx
call fcn.140240c80
nop
mov rcx, rsi
call fcn.140219ac0
mov rcx, qword [rbp + 0x40]
xor rcx, rsp
call fcn.140240c60
lea r11, [rsp + 0x1e0]
mov rbx, qword [r11 + 0x58]
movaps xmm6, xmmword [r11 - 0x10]
movaps xmm7, xmmword [r11 - 0x20]
movaps xmm8, xmmword [r11 - 0x30]
movaps xmm9, xmmword [r11 - 0x40]
movaps xmm10, xmmword [r11 - 0x50]
movaps xmm11, xmmword [r11 - 0x60]
movaps xmm12, xmmword [r11 - 0x70]
movaps xmm13, xmmword [r11 - 0x80]
movaps xmm14, xmmword [r11 - 0x90]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret