Function at 0x180007d68
Capabilities:
Create process on windows
Create process suspended
Get comspec environment variable
Query environment variable
Resume thread
Self delete
Set file attributes

Disassembly:
mov qword [rsp + 8], rdi
push rbp
lea rbp, [rsp - 0x620]
sub rsp, 0x720
mov rax, qword [0x180066008]
xor rax, rsp
mov qword [rbp + 0x610], rax
mov r8d, 0x104
lea rdx, [rbp + 0x1f0]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
xor edi, edi
test eax, eax
je 0x180007fc2
mov r8d, 0x104
lea rdx, [rbp + 0x1f0]
lea rcx, [rbp + 0x1f0]
call qword [sym.imp.KERNEL32.dll_GetShortPathNameW]
test eax, eax
je 0x180007fc2
mov r8d, 0x104
lea rdx, [rbp + 0x400]
lea rcx, str.COMSPEC
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
je 0x180007fc2
mov edx, 0x80
lea rcx, [rbp + 0x1f0]
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
movaps xmm0, xmmword [str.__c_ping__n_2_127.0.0.1___nul__del]
lea rcx, [rbp - 0x20]
movaps xmm1, xmmword [0x18005cf40]
sub rcx, 2
mov eax, dword [0x18005cf78]
movaps xmmword [rbp - 0x20], xmm0
movaps xmm0, xmmword [0x18005cf50]
movaps xmmword [rbp], xmm0
movsd xmm0, qword [0x18005cf70]
movaps xmmword [rbp - 0x10], xmm1
movaps xmm1, xmmword [0x18005cf60]
movsd qword [rbp + 0x20], xmm0
movaps xmmword [rbp + 0x10], xmm1
mov dword [rbp + 0x28], eax
lea rcx, [rcx + 2]
cmp word [rcx], di
jne 0x180007e4d
lea r8, [rbp + 0x1f0]
xor edx, edx
movzx eax, word [r8 + rdx*2]
mov word [rcx + rdx*2], ax
inc rdx
test ax, ax
jne 0x180007e5f
lea rcx, [rbp - 0x20]
sub rcx, 2
lea rcx, [rcx + 2]
cmp word [rcx], di
jne 0x180007e78
mov eax, dword [0x18005cf88]
movsd xmm0, qword [str.___nul]
movsd qword [rcx], xmm0
mov dword [rcx + 8], eax
movzx eax, word [0x18005cf8c]
mov word [rcx + 0xc], ax
lea rcx, [rbp + 0x400]
sub rcx, 2
lea rcx, [rcx + 2]
cmp word [rcx], di
jne 0x180007eac
lea r8, [rbp - 0x20]
xor edx, edx
movzx eax, word [r8 + rdx*2]
mov word [rcx + rdx*2], ax
inc rdx
test ax, ax
jne 0x180007ebb
xor edx, edx
lea rcx, [rsp + 0x70]
lea r8d, [rdx + 0x68]
call fcn.18001d0d0
xor eax, eax
mov dword [rsp + 0x70], WSAGetLastError
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], rax
mov dword [rbp - 0x54], 1
mov word [rbp - 0x50], di
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 0x100
call qword [sym.imp.KERNEL32.dll_SetPriorityClass]
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov rcx, rax
mov edx, reloc.WS2_32.dll_ntohs
call qword [sym.imp.KERNEL32.dll_SetThreadPriority]
lea rax, [rsp + 0x50]
xor r9d, r9d
mov qword [rsp + 0x48], rax
lea rdx, [rbp + 0x400]
lea rax, [rsp + 0x70]
xor r8d, r8d
mov qword [rsp + 0x40], rax
xor ecx, ecx
mov qword [rsp + 0x38], rdi
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], 4
mov dword [rsp + 0x20], edi
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x180007f9d
mov rcx, qword [rsp + 0x50]
mov edx, 0x40
call qword [sym.imp.KERNEL32.dll_SetPriorityClass]
mov rcx, qword [rsp + 0x58]
mov edx, 0xfffffff1
call qword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov eax, 1
jmp 0x180007fc4
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 0x20
call qword [sym.imp.KERNEL32.dll_SetPriorityClass]
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov rcx, rax
xor edx, edx
call qword [sym.imp.KERNEL32.dll_SetThreadPriority]
xor eax, eax
mov rcx, qword [rbp + 0x610]
xor rcx, rsp
call fcn.18000b240
mov rdi, qword [rsp + 0x730]
add rsp, 0x720
pop rbp
ret