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

Disassembly:
push rbp
sub rsp, 0x8d0
lea rbp, [rsp + 0x40]
mov qword [rbp + 0x38], 0xfffffffffffffffe
mov qword [rbp + 0x8a0], rbx
mov qword [rbp + 0x8a8], rsi
mov qword [rbp + 0x8b0], rdi
mov rax, qword [0x140051040]
xor rax, rbp
mov qword [rbp + 0x880], rax
lea rdx, str.:RepeatDEL___s_if_exist___s__goto_RepeatDEL___s_
lea rcx, [rbp + 0x10]
call fcn.1400052d4
nop
and dword [rbp + 0x670], 0
xor edx, edx
mov r8d, 0x206
lea rcx, [rbp + 0x674]
call fcn.140021ef0
mov ebx, 0x104
mov r8d, ebx
lea rdx, [rbp + 0x670]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea rdx, [rbp + 0x670]
lea rcx, [rbp + 0x30]
call fcn.1400052d4
mov rdx, rax
lea rcx, [rbp + 0x18]
call fcn.140010f88
nop
lea r8, str._selfdestruct.bat
lea rdx, [rbp + 0x18]
lea rcx, [rbp + 8]
call fcn.140011144
nop
and dword [rbp + 0x250], 0
mov edi, 0x204
mov r8, rdi
xor edx, edx
lea rcx, [rbp + 0x254]
call fcn.140021ef0
and dword [rbp + 0x40], 0
mov r8, rdi
xor edx, edx
lea rcx, [rbp + 0x44]
call fcn.140021ef0
and dword [rbp + 0x460], 0
mov r8, rdi
xor edx, edx
lea rcx, [rbp + 0x464]
call fcn.140021ef0
lea rdx, [rbp + 0x40]
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
lea rdx, [rbp + 0x460]
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
lea rdi, [rbp + 0x40]
xor eax, eax
or rcx, 0xffffffffffffffff
repne scasw ax, word [rdi]
mov rdx, qword [rbp + 8]
xor ecx, ecx
movzx eax, word [rdx + rcx]
mov word [rdi + rcx - 2], ax
add rcx, 2
test ax, ax
jne 0x140011d0a
mov r8d, ebx
lea rdx, [rbp + 0x250]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea rdx, [rbp + 0x250]
lea rcx, [rbp + 0x20]
call fcn.1400052d4
nop
and qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 2
xor r9d, r9d
xor r8d, r8d
mov edx, 0x40000000
lea rcx, [rbp + 0x40]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x140011ea2
lea rcx, [rbp]
call fcn.140004508
nop
mov rcx, qword [rbp + 8]
mov qword [rsp + 0x20], rcx
mov r8, qword [rbp + 0x20]
mov r9, r8
mov rdx, qword [rbp + 0x10]
lea rcx, [rbp]
call fcn.1400054b0
lea r8, [0x140039ff8]
lea rdx, [0x140039ff0]
lea rcx, [rbp]
call fcn.1400048a0
mov rdi, qword [rbp]
test rdi, rdi
je 0x140011e45
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrlenW]
lea edx, [rax + 1]
cmp edx, 0x3fffffff
jle 0x140011dda
xor edi, edi
jmp 0x140011e45
movsxd rax, edx
add rax, rax
lea rcx, [rax + 0xf]
cmp rcx, rax
ja 0x140011df3
movabs rcx, 0xffffffffffffff0
and rcx, 0xfffffffffffffff0
mov rax, rcx
call fcn.1400332d0
sub rsp, rcx
lea rbx, [rsp + 0x40]
test rbx, rbx
je 0x140011e43
mov byte [rbx], 0
lea eax, [rdx + rdx]
and qword [rsp + 0x38], 0
and qword [rsp + 0x30], 0
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rbx
or r9d, 0xffffffff
mov r8, rdi
xor edx, edx
lea ecx, [rdx + 3]
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
neg eax
sbb rdi, rdi
and rdi, rbx
jmp 0x140011e45
xor edi, edi
lea rcx, [rbp]
call fcn.140004178
mov r8d, eax
and qword [rsp + 0x20], 0
lea r9, [rbp + 0x28]
mov rdx, rdi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
and dword [rsp + 0x28], 0
lea rax, [rbp + 0x460]
mov qword [rsp + 0x20], rax
xor r9d, r9d
lea r8, [rbp + 0x40]
lea rdx, str.open
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_ShellExecuteW]
nop
lea rcx, [rbp]
call fcn.140004268
nop
lea rcx, [rbp + 0x20]
call fcn.140004268
nop
lea rcx, [rbp + 8]
call fcn.140004268
nop
lea rcx, [rbp + 0x18]
call fcn.140004268
nop
lea rcx, [rbp + 0x10]
call fcn.140004268
mov rcx, qword [rbp + 0x880]
xor rcx, rbp
call fcn.140021e20
mov rbx, qword [rbp + 0x8a0]
mov rsi, qword [rbp + 0x8a8]
mov rdi, qword [rbp + 0x8b0]
lea rsp, [rbp + 0x890]
pop rbp
ret