Function at 0x140006bd0
Capabilities:
Encode data using xor
Read file on windows
Write file on windows

Disassembly:
sub rsp, 0x128
xor edx, edx
lea rcx, [rsp + 0x20]
mov r8d, 0x100
call sub.VCRUNTIME140.dll_memset
lea rcx, [0x14013a6c0]
mov edx, 2
lea rax, [rsp + 0x20]
nop word [rax + rax]
lea rcx, [rcx + 0x80]
movups xmm0, xmmword [rax]
movups xmm1, xmmword [rax + 0x10]
lea rax, [rax + 0x80]
movups xmmword [rcx - 0x80], xmm0
movups xmm0, xmmword [rax - 0x60]
movups xmmword [rcx - 0x70], xmm1
movups xmm1, xmmword [rax - 0x50]
movups xmmword [rcx - 0x60], xmm0
movups xmm0, xmmword [rax - 0x40]
movups xmmword [rcx - 0x50], xmm1
movups xmm1, xmmword [rax - 0x30]
movups xmmword [rcx - 0x40], xmm0
movups xmm0, xmmword [rax - 0x20]
movups xmmword [rcx - 0x30], xmm1
movups xmm1, xmmword [rax - 0x10]
movups xmmword [rcx - 0x20], xmm0
movups xmmword [rcx - 0x10], xmm1
sub rdx, 1
jne 0x140006b70
add rsp, 0x128
jmp fcn.140006950
push rbx
sub rsp, 0x30
movzx eax, word [0x1400daa50]
mov ebx, 1
mov word [rsp + 0x40], ax
movzx eax, byte [0x1400daa52]
xor byte [rsp + 0x41], 0x37
xor al, 0x38
cmp byte [0x1400d5e57], 0
mov byte [rsp + 0x42], al
mov rax, qword [0x1400d5e50]
mov qword [rsp + 0x48], rax
mov byte [rsp + 0x40], WSACleanup
je 0x140006d6c
xor ecx, ecx
cmp dword [reloc.WS2_32.dll_accept], 2
jl 0x140006d33
movdqa xmm2, xmmword [0x1400db880]
mov eax, Ordinal_33
movdqa xmm4, xmmword [0x1400db900]
movdqa xmm1, xmm2
movdqa xmm3, xmmword [0x1400db890]
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
punpckldq xmm1, xmm2
pmuldq xmm0, xmm4
pmuldq xmm1, xmm4
movaps xmmword [rsp + 0x20], xmm6
movd xmm6, ebx
movd xmm5, eax
shufps xmm1, xmm0, 0xdd
psrad xmm1, xmm6
movdqa xmm0, xmm1
psrld xmm0, xmm5
paddd xmm0, xmm1
pmulld xmm0, xmmword [0x1400db8c0]
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm1, xmm0, 0xd8
movd xmm0, dword [rsp + 0x48]
pshufd xmm2, xmm1, 0xd8
movdqa xmm1, xmm3
pand xmm2, xmmword [0x1400db8f0]
packuswb xmm2, xmm2
paddb xmm2, xmmword [0x1400db910]
pxor xmm2, xmm0
punpckldq xmm1, xmm3
movd dword [rsp + 0x48], xmm2
movdqa xmm0, xmm3
punpckhdq xmm0, xmm3
pmuldq xmm0, xmm4
pmuldq xmm1, xmm4
shufps xmm1, xmm0, 0xdd
psrad xmm1, xmm6
movaps xmm6, xmmword [rsp + 0x20]
movdqa xmm0, xmm1
psrld xmm0, xmm5
paddd xmm0, xmm1
pmulld xmm0, xmmword [0x1400db8c0]
psubd xmm3, xmm0
pshuflw xmm0, xmm3, 0xd8
pshufhw xmm1, xmm0, 0xd8
movd xmm0, dword [rsp + 0x4c]
pshufd xmm2, xmm1, 0xd8
pand xmm2, xmmword [0x1400db8f0]
packuswb xmm2, xmm2
paddb xmm2, xmmword [0x1400db910]
pxor xmm2, xmm0
movd dword [rsp + 0x4c], xmm2
jmp 0x140006d6c
lea r8, [rsp + 0x48]
nop dword [rax + rax]
mov eax, 0x94f2095
lea r8, [r8 + 1]
imul ecx
sar edx, 1
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul edx, eax, 0x37
movzx eax, cl
inc ecx
sub al, dl
add al, 0x36
xor byte [r8 - 1], al
cmp ecx, 8
jl 0x140006d40
lea r8, [rsp + 0x40]
lea rdx, [rsp + 0x48]
lea rcx, [0x14013a7c0]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen_s]
mov rcx, qword [0x14013a7c0]
test rcx, rcx
je 0x140006df6
xor edx, edx
lea r8d, [rdx + 2]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
mov rcx, qword [0x14013a7c0]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
mov rcx, qword [0x14013a7c0]
cmp eax, 0x100
jne 0x140006df0
xor r8d, r8d
xor edx, edx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
mov r9, qword [0x14013a7c0]
lea rcx, [0x14013a6c0]
mov r8, rbx
mov edx, 0x100
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov rcx, qword [0x14013a7c0]
add rsp, 0x30
pop rbx
jmp qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add rsp, 0x30
pop rbx
jmp 0x140006b40