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

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
push rbp
lea rbp, [rax - 0x138]
sub rsp, 0x230
movaps xmmword [rax - 0x18], xmm6
movaps xmmword [rax - 0x28], xmm7
movaps xmmword [rax - 0x38], xmm8
mov rax, qword [0x1400b2080]
xor rax, rsp
mov qword [rbp + 0xf0], rax
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp - 0x40], xmm0
mov qword [rbp - 0x30], rax
movups xmm1, xmmword [str._EDX_IHT_T_3l06F]
movups xmmword [rbp - 0x60], xmm1
movzx eax, word [0x1400a38b8]
mov word [rbp - 0x50], ax
movzx eax, byte [0x1400a38ba]
mov byte [rbp - 0x4e], al
xor esi, esi
mov r8d, esi
lea edi, [rsi + 4]
lea r14d, [rsi + 0x1f]
mov ebx, dword [reloc.WS2_32.dll_accept]
cmp ebx, 2
jl 0x140022003
movdqa xmm5, xmmword [0x1400a4080]
movdqa xmm4, xmmword [0x1400a4150]
movd xmm6, edi
movdqa xmm7, xmmword [0x1400a40b0]
movd xmm8, r14d
movdqa xmm0, xmmword [0x1400a4130]
movdqa xmmword [rsp + 0x30], xmm0
lea rcx, [rbp - 0x5c]
mov edx, dword [rsp + 0x30]
nop
movd xmm2, r8d
pshufd xmm2, xmm2, 0
paddd xmm2, xmm5
movdqa xmm1, xmm2
punpckldq xmm1, xmm2
pmuldq xmm1, xmm4
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
pmuldq xmm0, xmm4
shufps xmm1, xmm0, 0xdd
psrad xmm1, xmm6
movdqa xmm0, xmm1
psrld xmm0, xmm8
paddd xmm0, xmm1
pmulld xmm0, xmm7
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
andps xmm2, xmmword [0x1400a4100]
packuswb xmm2, xmm2
movd xmm0, edx
paddb xmm2, xmm0
movd xmm0, dword [rcx - 4]
xorps xmm2, xmm0
movd dword [rcx - 4], xmm2
lea eax, [r8 + 4]
movd xmm3, eax
pshufd xmm3, xmm3, 0
paddd xmm3, xmm5
movdqa xmm1, xmm3
punpckldq xmm1, xmm3
pmuldq xmm1, xmm4
movdqa xmm0, xmm3
punpckhdq xmm0, xmm3
pmuldq xmm0, xmm4
shufps xmm1, xmm0, 0xdd
psrad xmm1, xmm6
movdqa xmm0, xmm1
psrld xmm0, xmm8
paddd xmm0, xmm1
pmulld xmm0, xmm7
psubd xmm3, xmm0
pshuflw xmm0, xmm3, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
andps xmm2, xmmword [0x1400a4100]
packuswb xmm2, xmm2
movd xmm0, edx
paddb xmm2, xmm0
movd xmm0, dword [rcx]
xorps xmm2, xmm0
movd dword [rcx], xmm2
add r8d, 8
lea rcx, [rcx + 8]
cmp r8d, 0x10
jl 0x140021f00
cmp r8d, 0x13
jge 0x140022040
movsxd rax, r8d
lea r9, [rbp - 0x60]
add r9, rax
nop dword [rax]
mov eax, 0x4bda12f7
imul r8d
sar edx, 4
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul ecx, eax, 0x36
movzx eax, r8b
sub al, cl
add al, 0x34
xor byte [r9], al
inc r8d
lea r9, [r9 + 1]
cmp r8d, 0x13
jl 0x140022010
xorps xmm0, xmm0
movups xmmword [rsp + 0x40], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x50], xmm1
lea rax, [rbp - 0x60]
mov r8, 0xffffffffffffffff
nop dword [rax]
inc r8
cmp byte [rax + r8], sil
jne 0x140022060
lea rdx, [rbp - 0x60]
lea rcx, [rsp + 0x40]
call fcn.140008f80
nop
movups xmm0, xmmword [str.dGYT_JIs_UZ2o__E]
movups xmmword [rbp - 0x60], xmm0
movzx eax, word [0x1400a34f0]
mov word [rbp - 0x50], ax
cmp byte [0x1400a34f1], 0
je 0x140022220
mov r8d, esi
cmp ebx, 2
jl 0x1400221e3
movdqa xmm5, xmmword [0x1400a4080]
movdqa xmm4, xmmword [0x1400a4150]
movd xmm6, edi
movdqa xmm7, xmmword [0x1400a40b0]
movd xmm8, r14d
movdqa xmm0, xmmword [0x1400a4130]
movdqa xmmword [rsp + 0x30], xmm0
lea rcx, [rbp - 0x5c]
mov edx, dword [rsp + 0x30]
nop
movd xmm2, r8d
pshufd xmm2, xmm2, 0
paddd xmm2, xmm5
movdqa xmm1, xmm2
punpckldq xmm1, xmm2
pmuldq xmm1, xmm4
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
pmuldq xmm0, xmm4
shufps xmm1, xmm0, 0xdd
psrad xmm1, xmm6
movdqa xmm0, xmm1
psrld xmm0, xmm8
paddd xmm0, xmm1
pmulld xmm0, xmm7
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
andps xmm2, xmmword [0x1400a4100]
packuswb xmm2, xmm2
movd xmm0, edx
paddb xmm2, xmm0
movd xmm0, dword [rcx - 4]
xorps xmm2, xmm0
movd dword [rcx - 4], xmm2
lea eax, [r8 + 4]
movd xmm3, eax
pshufd xmm3, xmm3, 0
paddd xmm3, xmm5
movdqa xmm1, xmm3
punpckldq xmm1, xmm3
pmuldq xmm1, xmm4
movdqa xmm0, xmm3
punpckhdq xmm0, xmm3
pmuldq xmm0, xmm4
shufps xmm1, xmm0, 0xdd
psrad xmm1, xmm6
movdqa xmm0, xmm1
psrld xmm0, xmm8
paddd xmm0, xmm1
pmulld xmm0, xmm7
psubd xmm3, xmm0
pshuflw xmm0, xmm3, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
andps xmm2, xmmword [0x1400a4100]
packuswb xmm2, xmm2
movd xmm0, edx
paddb xmm2, xmm0
movd xmm0, dword [rcx]
xorps xmm2, xmm0
movd dword [rcx], xmm2
add r8d, 8
lea rcx, [rcx + 8]
cmp r8d, 0x10
jl 0x1400220e0
cmp r8d, 0x12
jge 0x140022220
movsxd rax, r8d
lea r9, [rbp - 0x60]
add r9, rax
nop dword [rax]
mov eax, 0x4bda12f7
imul r8d
sar edx, 4
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul ecx, eax, 0x36
movzx eax, r8b
sub al, cl
add al, 0x34
xor byte [r9], al
inc r8d
lea r9, [r9 + 1]
cmp r8d, 0x12
jl 0x1400221f0
xorps xmm0, xmm0
movups xmmword [rsp + 0x60], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x70], xmm1
lea rax, [rbp - 0x60]
mov r8, 0xffffffffffffffff
nop dword [rax]
inc r8
cmp byte [rax + r8], 0
jne 0x140022240
lea rdx, [rbp - 0x60]
lea rcx, [rsp + 0x60]
call fcn.140008f80
nop
movups xmm0, xmmword [0x1400a29f0]
movups xmmword [rbp - 0x60], xmm0
movzx eax, word [0x1400a2a00]
mov word [rbp - 0x50], ax
cmp byte [0x1400a2a01], 0
je 0x140022400
mov r8d, esi
cmp ebx, 2
jl 0x1400223c3
movdqa xmm5, xmmword [0x1400a4080]
movdqa xmm4, xmmword [0x1400a4150]
movd xmm6, edi
movdqa xmm7, xmmword [0x1400a40b0]
movd xmm8, r14d
movdqa xmm0, xmmword [0x1400a4130]
movdqa xmmword [rsp + 0x30], xmm0
lea rcx, [rbp - 0x5c]
mov edx, dword [rsp + 0x30]
nop
movd xmm2, r8d
pshufd xmm2, xmm2, 0
paddd xmm2, xmm5
movdqa xmm1, xmm2
punpckldq xmm1, xmm2
pmuldq xmm1, xmm4
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
pmuldq xmm0, xmm4
shufps xmm1, xmm0, 0xdd
psrad xmm1, xmm6
movdqa xmm0, xmm1
psrld xmm0, xmm8
paddd xmm0, xmm1
pmulld xmm0, xmm7
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
andps xmm2, xmmword [0x1400a4100]
packuswb xmm2, xmm2
movd xmm0, edx
paddb xmm2, xmm0
movd xmm0, dword [rcx - 4]
xorps xmm2, xmm0
movd dword [rcx - 4], xmm2
lea eax, [r8 + 4]
movd xmm3, eax
pshufd xmm3, xmm3, 0
paddd xmm3, xmm5
movdqa xmm1, xmm3
punpckldq xmm1, xmm3
pmuldq xmm1, xmm4
movdqa xmm0, xmm3
punpckhdq xmm0, xmm3
pmuldq xmm0, xmm4
shufps xmm1, xmm0, 0xdd
psrad xmm1, xmm6
movdqa xmm0, xmm1
psrld xmm0, xmm8
paddd xmm0, xmm1
pmulld xmm0, xmm7
psubd xmm3, xmm0
pshuflw xmm0, xmm3, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
andps xmm2, xmmword [0x1400a4100]
packuswb xmm2, xmm2
movd xmm0, edx
paddb xmm2, xmm0
movd xmm0, dword [rcx]
xorps xmm2, xmm0
movd dword [rcx], xmm2
add r8d, 8
lea rcx, [rcx + 8]
cmp r8d, 0x10
jl 0x1400222c0
cmp r8d, 0x12
jge 0x140022400
movsxd rax, r8d
lea r9, [rbp - 0x60]
add r9, rax
nop dword [rax]
mov eax, 0x4bda12f7
imul r8d
sar edx, 4
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul ecx, eax, 0x36
movzx eax, r8b
sub al, cl
add al, 0x34
xor byte [r9], al
inc r8d
lea r9, [r9 + 1]
cmp r8d, 0x12
jl 0x1400223d0
xorps xmm0, xmm0
movups xmmword [rbp - 0x80], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x70], xmm1
lea rax, [rbp - 0x60]
mov r8, 0xffffffffffffffff
nop word [rax + rax]
inc r8
cmp byte [rax + r8], 0
jne 0x140022420
lea rdx, [rbp - 0x60]
lea rcx, [rbp - 0x80]
call fcn.140008f80
nop
lea rax, [rsp + 0x40]
mov qword [rsp + 0x30], rax
lea rax, [rbp - 0x60]
mov qword [rsp + 0x38], rax
lea rdx, [rsp + 0x30]
lea rcx, [rbp - 0x40]
call fcn.1400235f0
nop
lea r9, [fcn.140007c80]
mov edx, reloc.WLDAP32.dll_Ordinal_32
lea r8d, [rdx - 0x1d]
lea rcx, [rsp + 0x40]
call fcn.14008e80c
call qword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov edi, eax
mov bl, 0x41
nop
test dil, 1
je 0x14002253f
mov ecx, dword [0x1400a37e4]
mov dword [rsp + 0x20], ecx
movzx ecx, byte [0x1400a37e8]
mov byte [rsp + 0x20], Ordinal_41
xor byte [rsp + 0x21], 0x35
xor byte [rsp + 0x22], 0x36
xor byte [rsp + 0x23], 0x37
xor cl, 0x38
mov byte [rsp + 0x24], cl
movsx r8d, bl
lea rdx, [rsp + 0x20]
lea rcx, [rbp - 0x20]
call fcn.140026a50
xorps xmm0, xmm0
movups xmmword [rbp - 0x60], xmm0
mov qword [rbp - 0x50], rsi
mov qword [rbp - 0x48], rsi
lea rax, [rbp - 0x20]
mov r8, 0xffffffffffffffff
inc r8
cmp byte [rax + r8], 0
jne 0x1400224e2
lea rdx, [rbp - 0x20]
lea rcx, [rbp - 0x60]
call fcn.140008f80
nop
lea rdx, [rbp - 0x40]
lea rcx, [rbp - 0x60]
call fcn.140021780
nop
mov rdx, qword [rbp - 0x48]
cmp rdx, 0x10
jb 0x14002253f
inc rdx
mov rcx, qword [rbp - 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14002253a
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140022590
call fcn.14008e43c
shr edi, 1
inc bl
cmp bl, 0x5a
jle 0x140022480
lea rcx, [rbp - 0x40]
call fcn.140024b30
mov rcx, qword [rbp + 0xf0]
xor rcx, rsp
call fcn.14008e190
lea r11, [rsp + 0x230]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov r14, qword [r11 + 0x28]
movaps xmm6, xmmword [r11 - 0x10]
movaps xmm7, xmmword [r11 - 0x20]
movaps xmm8, xmmword [r11 - 0x30]
mov rsp, r11
pop rbp
ret
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
int3