Function at 0x1400030b0
Capabilities:
Delete file
Encode data using xor
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push r14
sub rsp, 0xc0
mov rax, qword [0x140009010]
xor rax, rsp
mov qword [rsp + 0x88], rax
mov rbp, rdx
cmp ecx, 2
jge 0x140003101
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcout]
call fcn.140003940
lea rdx, [0x140003b10]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64___cdecl_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64____cdecl___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64_____ptr64]
mov ecx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_Sleep]
mov r14, qword [rbp + 8]
lea rcx, str.C:WindowsSystem32Drivers_ntdist.sys
xor ebx, ebx
xor r9d, r9d
mov qword [rsp + 0x30], rbx
xor r8d, r8d
mov dword [rsp + 0x28], 0x80
mov edx, 0x10000000
mov dword [rsp + 0x20], 1
mov dword [rsp + 0x80], ebx
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x50
je 0x14000319a
cmp rsi, 0xffffffffffffffff
je 0x1400033e6
lea r9, [rsp + 0x80]
mov qword [rsp + 0xe0], rdi
mov r8d, 0x6650
mov qword [rsp + 0x20], rbx
lea rdx, [0x140009270]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, rsi
mov edi, eax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test dil, dil
mov rdi, qword [rsp + 0xe0]
je 0x1400033e6
mov rdx, r14
call fcn.1400021d0
test eax, eax
js 0x1400033d0
mov rcx, qword [rbp + 0x10]
lea rdx, str.debug
call qword [sym.imp.VCRUNTIME140.dll_wcsstr]
test rax, rax
je 0x1400033d0
cmp dword [0x140009018], 2
movups xmm0, xmmword [str.qDNHepR____b]
movzx eax, word [0x140006b90]
movups xmm1, xmmword [0x140006b80]
mov word [rsp + 0x60], ax
movups xmmword [rsp + 0x40], xmm0
movups xmmword [rsp + 0x50], xmm1
jl 0x140003373
movdqa xmm0, xmmword [0x140006bf0]
lea rcx, [rsp + 0x44]
movdqa xmm5, xmmword [0x140006bb0]
mov eax, 5
movdqa xmm4, xmmword [0x140006c20]
movaps xmmword [rsp + 0xb0], xmm6
movaps xmmword [rsp + 0xa0], xmm7
movdqa xmm7, xmmword [str.8888]
movd xmm6, eax
mov eax, 0x1f
movdqa xmmword [rsp + 0x70], xmm0
mov edx, dword [rsp + 0x70]
movaps xmmword [rsp + 0x90], xmm8
movd xmm8, eax
movd xmm2, ebx
lea eax, [rbx + 4]
pshufd xmm2, xmm2, 0
lea rcx, [rcx + 8]
paddd xmm2, xmm5
movd xmm3, eax
movdqa xmm1, xmm2
pshufd xmm3, xmm3, 0
punpckldq xmm1, xmm2
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
paddd xmm3, xmm5
pmuldq xmm0, xmm4
add ebx, 8
pmuldq xmm1, xmm4
mov eax, ebx
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm2
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
movdqa xmm1, xmm3
andps xmm2, xmmword [0x140006bd0]
packuswb xmm2, xmm2
punpckldq xmm1, xmm3
pmuldq xmm1, xmm4
movd xmm0, edx
paddb xmm2, xmm0
movd xmm0, dword [rcx - 0xc]
xorps xmm2, xmm0
movdqa xmm0, xmm3
punpckhdq xmm0, xmm3
pmuldq xmm0, xmm4
movd dword [rcx - 0xc], xmm2
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm3
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
movd xmm0, edx
pshufd xmm2, xmm1, 0xd8
andps xmm2, xmmword [0x140006bd0]
packuswb xmm2, xmm2
paddb xmm2, xmm0
movd xmm0, dword [rcx - 8]
xorps xmm2, xmm0
movd dword [rcx - 8], xmm2
cmp ebx, 0x20
jl 0x140003250
movaps xmm8, xmmword [rsp + 0x90]
movaps xmm7, xmmword [rsp + 0xa0]
movaps xmm6, xmmword [rsp + 0xb0]
cmp eax, 0x22
jge 0x1400033af
movsxd rax, ebx
lea r8, [rsp + 0x40]
add r8, rax
nop
mov eax, 0x92492493
lea r8, [r8 + 1]
imul ebx
add edx, ebx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul edx, eax, 0x38
movzx eax, bl
inc ebx
sub al, dl
add al, 0x35
xor byte [r8 - 1], al
cmp ebx, 0x22
jl 0x140003380
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
lea rdx, [rsp + 0x40]
call fcn.140003770
lea rdx, [0x140003b50]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
lea rcx, str.C:WindowsSystem32Drivers_ntdist.sys
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
xor eax, eax
mov rcx, qword [rsp + 0x88]
xor rcx, rsp
call fcn.140003e90
mov rbx, qword [rsp + 0xf0]
add rsp, 0xc0
pop r14
pop rsi
pop rbp
ret