Function at 0x140023b50
Capabilities:
Create process on windows
Get common file path
Self delete

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
mov qword [rsp + 0x20], r14
push rbp
lea rbp, [rsp - 0x4b0]
sub rsp, 0x5b0
mov rax, qword [0x14009b0c0]
xor rax, rsp
mov qword [rbp + 0x4a0], rax
mov r8d, 0x104
lea rdx, [rbp + 0x290]
xor ecx, ecx
xor edi, edi
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea rdx, [rbp + 0x80]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
lea rax, [rbp + 0x80]
sub rax, 2
nop dword [rax]
cmp word [rax + 2], di
lea rax, [rax + 2]
jne 0x140023bc0
movups xmm0, xmmword [str.adb.bat]
mov qword [rbp + 0x20], rdi
lea r14, vtable.std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__.0
xorps xmm1, xmm1
mov qword [rbp + 0x28], rdi
movups xmmword [rax], xmm0
xor eax, eax
mov qword [rbp + 0x38], rdi
xorps xmm0, xmm0
mov qword [rbp + 8], rax
mov dword [rbp + 0x10], eax
lea rdx, [rsp + 0x78]
mov qword [rbp + 0x30], rax
lea rcx, [rbp + 0x18]
mov dword [rbp + 0x72], eax
xor r8d, r8d
mov word [rbp + 0x76], ax
lea rax, [0x140090e60]
mov qword [rsp + 0x70], rax
movups xmmword [rsp + 0x78], xmm1
mov word [rbp + 0x70], di
movups xmmword [rbp - 0x78], xmm1
mov qword [rbp + 0x18], r14
movups xmmword [rbp - 0x68], xmm1
mov dword [rbp + 0x14], 0x98
movups xmmword [rbp - 0x58], xmm1
movups xmmword [rbp - 0x48], xmm1
movups xmmword [rbp - 0x38], xmm1
movups xmmword [rbp - 0x28], xmm1
movups xmmword [rbp - 0x18], xmm1
movups xmmword [rbp - 8], xmm1
movdqa xmmword [rbp + 0x40], xmm0
movdqa xmmword [rbp + 0x50], xmm1
movdqa xmmword [rbp + 0x60], xmm0
call fcn.14001f0e0
mov rax, qword [rsp + 0x70]
lea rsi, vtable.std::basic_ofstream_wchar_t__struct_std::char_traits_wchar_t__.0
movsxd rcx, dword [rax + 4]
mov qword [rsp + rcx + 0x70], rsi
mov rax, qword [rsp + 0x70]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xa8]
mov dword [rsp + rcx + 0x6c], edx
lea rcx, [rsp + 0x78]
call fcn.140028270
mov r8d, 2
lea rdx, [rbp + 0x80]
lea rcx, [rsp + 0x78]
call fcn.140028170
mov ebx, 4
test rax, rax
jne 0x140023ce1
mov rax, qword [rsp + 0x70]
movsxd rcx, dword [rax + 4]
mov eax, ebx
cmp qword [rbp + rcx - 0x48], rdi
mov edx, dword [rbp + rcx - 0x7c]
cmovne eax, edi
or eax, dword [rbp + rcx - 0x80]
and eax, 0x15
or eax, 2
mov dword [rbp + rcx - 0x80], eax
and edx, eax
jne 0x140023e98
lea rdx, str._echo_off_n
lea rcx, [rsp + 0x70]
call fcn.14001f550
lea rdx, str.timeout__t_3__nobreak__nul_n
lea rcx, [rsp + 0x70]
call fcn.14001f550
lea rdx, str.del__f__q__
lea rcx, [rsp + 0x70]
call fcn.14001f550
mov rcx, rax
lea rdx, [rbp + 0x290]
call fcn.14001f550
mov rcx, rax
lea rdx, [0x140090c10]
call fcn.14001f550
lea rdx, str.del__f__q__
lea rcx, [rsp + 0x70]
call fcn.14001f550
mov rcx, rax
lea rdx, [rbp + 0x80]
call fcn.14001f550
mov rcx, rax
lea rdx, [0x140090c10]
call fcn.14001f550
lea rcx, [rsp + 0x78]
call fcn.140028070
test rax, rax
jne 0x140023d9b
mov rax, qword [rsp + 0x70]
movsxd rcx, dword [rax + 4]
cmp qword [rbp + rcx - 0x48], rdi
mov eax, dword [rbp + rcx - 0x7c]
cmovne ebx, edi
or ebx, dword [rbp + rcx - 0x80]
and ebx, 0x15
or ebx, 2
mov dword [rbp + rcx - 0x80], ebx
and eax, ebx
jne 0x140023e46
mov dword [rsp + 0x28], edi
lea r8, [rbp + 0x80]
xor r9d, r9d
mov qword [rsp + 0x20], rdi
lea rdx, str.open
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_ShellExecuteW]
mov rax, qword [rsp + 0x70]
movsxd rcx, dword [rax + 4]
mov qword [rsp + rcx + 0x70], rsi
mov rax, qword [rsp + 0x70]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xa8]
mov dword [rsp + rcx + 0x6c], edx
lea rcx, [rsp + 0x78]
call fcn.140027cc0
mov rax, qword [rsp + 0x70]
movsxd rcx, dword [rax + 4]
mov qword [rsp + rcx + 0x70], r14
mov rax, qword [rsp + 0x70]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::ios_base.0
lea edx, [rcx - 0x10]
mov dword [rsp + rcx + 0x6c], edx
lea rcx, [rbp + 0x18]
mov qword [rbp + 0x18], rax
call fcn.14002e05c
mov rcx, qword [rbp + 0x4a0]
xor rcx, rsp
call fcn.140052f30
lea r11, [rsp + 0x5b0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov r14, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
test al, 4
je 0x140023e53
lea rbx, str.ios_base::badbit_set
jmp 0x140023e67
test al, 2
lea rbx, str.ios_base::failbit_set
lea rax, str.ios_base::eofbit_set
cmove rbx, rax
mov edx, 1
lea rcx, [rsp + 0x38]
call fcn.140018ac0
mov r8, rax
lea rcx, [rsp + 0x48]
mov rdx, rbx
call fcn.14001bce0
lea rdx, [0x140099d70]
lea rcx, [rsp + 0x48]
call fcn.140053fc0
int3
test bl, dl
je 0x140023ea5
lea rbx, str.ios_base::badbit_set
jmp 0x140023eba
test dl, 2
lea rbx, str.ios_base::failbit_set
lea rax, str.ios_base::eofbit_set
cmove rbx, rax
mov edx, 1
lea rcx, [rsp + 0x38]
call fcn.140018ac0
mov r8, rax
lea rcx, [rsp + 0x48]
mov rdx, rbx
call fcn.14001bce0
lea rdx, [0x140099d70]
lea rcx, [rsp + 0x48]
call fcn.140053fc0
int3