Function at 0x1800056b0
Capabilities:
Create process on windows
Delete file
Get common file path
Write and execute a file
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x420]
sub rsp, 0x520
mov r9, qword [0x180013578]
mov r15d, r8d
mov r12d, ecx
mov eax, dword [r9 + 0x18]
mov r13d, dword [r9 + 0x1c]
lea rcx, [rbp + 0x478]
add rax, r9
neg edx
mov qword [rsp + 0x20], rcx
sbb r8d, r8d
lea r9, [rsp + 0x68]
mov rcx, rax
neg r8d
mov qword [rsp + 0x70], rax
lea r14d, [r13 + 8]
add r8d, 0x67
call fcn.180006240
mov rsi, qword [rsp + 0x68]
xor ecx, ecx
movsxd rax, dword [rsi + 0x3c]
lea rdi, [rsi + 4]
add rdi, rax
movzx r8d, word [rdi + 0x10]
movzx r9d, word [rdi + 2]
add r8, rdi
test r9d, r9d
je 0x18000576d
lea rdx, [rcx + rcx*4]
cmp dword [r8 + rdx*8 + 0x38], 0xc0000040
je 0x180005751
inc ecx
cmp ecx, r9d
jb 0x180005739
jmp 0x18000576d
mov ebx, dword [r8 + rdx*8 + 0x28]
add rbx, rsi
mov dword [rbx], r15d
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [rbx + 4], eax
mov dword [rbx + 8], r14d
mov dword [rbx + 0xc], r12d
call fcn.180003b60
lea rdx, [rbp + 0x210]
mov ecx, 0x104
mov dword [rdi + 4], eax
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
lea r9, [rbp]
lea rdx, [0x18001055c]
lea rcx, [rbp + 0x210]
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_GetTempFileNameW]
xor r15d, r15d
lea rcx, [rbp]
mov qword [rsp + 0x30], r15
xor r9d, r9d
xor r8d, r8d
mov edx, 0x40000000
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 4
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x180005807
mov r8d, dword [rbp + 0x478]
lea r9, [rbp + 0x468]
mov rdx, rsi
mov rcx, rax
mov dword [rbp + 0x468], r15d
mov qword [rsp + 0x20], r15
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [rsp + 0x78], 0x4d0046
mov word [rbp - 0x74], r15w
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
lea r10, [rsp + 0x7c]
mov r11d, 8
mov ecx, eax
shr ecx, 0x1c
and cl, 0xf
movzx r9d, cl
lea edx, [r9 + 0x30]
add r9w, 0x57
cmp cl, 0x39
cmovbe r9w, dx
shl eax, 4
mov word [r10], r9w
lea r10, [r10 + 2]
dec r11
jne 0x180005825
lea rax, [rsp + 0x78]
lea r8d, [r11 + 4]
xor r9d, r9d
mov qword [rsp + 0x28], rax
xor edx, edx
or rcx, 0xffffffffffffffff
mov dword [rsp + 0x20], r14d
call qword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov rdi, rax
test rax, rax
je 0x18000596d
mov ecx, r14d
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rcx
mov rcx, rax
mov edx, 0xf001f
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov rbx, rax
test rax, rax
je 0x180005964
mov rdx, qword [rsp + 0x70]
lea rcx, [rax + 8]
mov r8d, r13d
mov r9d, ecx
mov dword [rax + 4], r13d
sub r9d, eax
mov dword [rax], r9d
call fcn.18000cbb0
xor edx, edx
lea r8d, [rdx + 0x60]
lea rcx, [rbp - 0x68]
call sub.ntdll.dll_memset
xor eax, eax
lea rcx, [rbp]
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], rax
lea rax, [rsp + 0x50]
mov qword [rsp + 0x48], rax
lea rax, [rbp - 0x70]
xor r9d, r9d
mov qword [rsp + 0x40], rax
lea rax, [rbp + 0x210]
xor r8d, r8d
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], r15
xor edx, edx
mov dword [rsp + 0x28], 0xc000000
mov dword [rbp - 0x70], 0x68
mov qword [rsp + 0x50], r15
mov dword [rsp + 0x20], 1
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x18000595b
mov rcx, qword [rsp + 0x50]
or edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, [rbp]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov rcx, qword [0x180013580]
mov r8, rsi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rbx, qword [rsp + 0x560]
mov eax, 1
add rsp, 0x520
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret