Function at 0x1400026a0
Capabilities:
Query environment variable
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x37]
sub rsp, 0xb0
mov rax, qword [0x14000d008]
xor rax, rsp
mov qword [rbp + 0x2f], rax
xor ebx, ebx
lea rcx, str.SystemRoot
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
xorps xmm0, xmm0
movups xmmword [rbp + 0xf], xmm0
mov qword [rbp + 0x1f], rbx
mov qword [rbp + 0x27], rbx
mov r8, 0xffffffffffffffff
inc r8
cmp byte [rax + r8], bl
jne 0x1400026f7
mov rdx, rax
lea rcx, [rbp + 0xf]
call fcn.140002fb0
nop
movabs rcx, 0x7fffffffffffffff
mov rax, rcx
mov r15, qword [rbp + 0x1f]
sub rax, r15
cmp rax, 0x14
jb 0x140002ace
lea rax, [rbp + 0xf]
mov r14, qword [rbp + 0xf]
mov r13, qword [rbp + 0x27]
cmp r13, 0x10
cmovae rax, r14
mov qword [rbp - 0x39], rax
xorps xmm0, xmm0
movups xmmword [rbp - 0x11], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 1], xmm1
lea r12, [r15 + 0x14]
mov ebx, 0xf
mov edi, ebx
lea rsi, [rbp - 0x11]
lea edx, [rbx + 7]
cmp r12, rbx
jbe 0x1400027e4
mov rdi, r12
or rdi, rbx
cmp rdi, rcx
jbe 0x140002779
mov rdi, rcx
jmp 0x140002780
cmp rdi, rdx
cmovb rdi, rdx
mov rcx, rdi
add rcx, 1
mov rdx, 0xffffffffffffffff
cmovb rcx, rdx
cmp rcx, 0x1000
jb 0x1400027cb
lea rax, [rcx + 0x27]
cmp rax, rcx
jbe 0x140002ad4
mov rcx, rax
call fcn.1400072a0
test rax, rax
je 0x140002a44
lea rsi, [rax + 0x27]
and rsi, 0xffffffffffffffe0
mov qword [rsi - 8], rax
mov rax, qword [rbp - 0x39]
jmp 0x1400027e0
test rcx, rcx
je 0x1400027de
call fcn.1400072a0
mov rsi, rax
mov rax, qword [rbp - 0x39]
jmp 0x1400027e0
xor esi, esi
mov qword [rbp - 0x11], rsi
mov qword [rbp - 1], r12
mov qword [rbp + 7], rdi
mov r8, r15
mov rdx, rax
mov rcx, rsi
call sub.VCRUNTIME140.dll_memcpy
movups xmm0, xmmword [str.libcrypto_3_x64.dll]
movups xmmword [rsi + r15], xmm0
mov eax, dword [0x140009630]
mov dword [rsi + r15 + 0x10], eax
mov byte [rsi + r12], 0
lea r12, [rbp + 0xf]
cmp r13, 0x10
cmovae r12, r14
xorps xmm0, xmm0
movups xmmword [rbp - 0x31], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x21], xmm1
lea rsi, [r15 + 0x11]
lea rdi, [rbp - 0x31]
cmp rsi, 0xf
jbe 0x1400028c7
mov rbx, rsi
or rbx, 0xf
movabs rax, 0x7fffffffffffffff
cmp rbx, rax
jbe 0x14000285e
mov rbx, rax
jmp 0x14000286b
cmp rbx, 0x16
mov eax, 0x16
cmovb rbx, rax
mov rcx, rbx
add rcx, 1
mov rax, 0xffffffffffffffff
cmovb rcx, rax
cmp rcx, 0x1000
jb 0x1400028b2
lea rax, [rcx + 0x27]
cmp rax, rcx
jbe 0x140002ac8
mov rcx, rax
call fcn.1400072a0
test rax, rax
je 0x1400029f5
lea rdi, [rax + 0x27]
and rdi, 0xffffffffffffffe0
mov qword [rdi - 8], rax
jmp 0x1400028c3
test rcx, rcx
je 0x1400028c1
call fcn.1400072a0
mov rdi, rax
jmp 0x1400028c3
xor edi, edi
mov qword [rbp - 0x31], rdi
mov qword [rbp - 0x21], rsi
mov qword [rbp - 0x19], rbx
mov r8, r15
mov rdx, r12
mov rcx, rdi
call sub.VCRUNTIME140.dll_memcpy
movups xmm0, xmmword [str.libssl_3_x64.dll]
movups xmmword [rdi + r15], xmm0
movzx eax, byte [0x140009648]
mov byte [rdi + r15 + 0x10], al
mov byte [rdi + rsi], 0
lea rcx, [rbp - 0x11]
cmp qword [rbp + 7], 0x10
cmovae rcx, qword [rbp - 0x11]
xor edi, edi
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 1
xor r9d, r9d
xor r8d, r8d
mov edx, 0xc0000000
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14000295f
mov qword [rsp + 0x20], rdi
xor r9d, r9d
mov r8d, 0x4ed000
lea rdx, [0x140985e60]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, [rbp - 0x31]
cmp qword [rbp - 0x19], 0x10
cmovae rcx, qword [rbp - 0x31]
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 1
xor r9d, r9d
xor r8d, r8d
mov edx, 0xc0000000
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1400029c3
mov qword [rsp + 0x20], rdi
xor r9d, r9d
mov r8d, 0xbe000
lea rdx, [0x1408c7e60]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rdx, qword [rbp - 0x19]
cmp rdx, 0x10
jb 0x140002a01
inc rdx
mov rcx, qword [rbp - 0x31]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400029fc
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400029fc
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140007298
movdqa xmm0, xmmword [0x140009880]
movdqu xmmword [rbp - 0x21], xmm0
mov byte [rbp - 0x31], dil
mov rdx, qword [rbp + 7]
cmp rdx, 0x10
jb 0x140002a50
inc rdx
mov rcx, qword [rbp - 0x11]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140002a4b
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140002a4b
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140007298
movdqa xmm0, xmmword [0x140009880]
movdqu xmmword [rbp - 1], xmm0
mov byte [rbp - 0x11], 0
cmp r13, 0x10
jb 0x140002a9b
lea rdx, [r13 + 1]
mov rax, r14
cmp rdx, 0x1000
jb 0x140002a93
add rdx, 0x27
mov r14, qword [r14 - 8]
sub rax, r14
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140002a93
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, r14
call fcn.140007298
mov rcx, qword [rbp + 0x2f]
xor rcx, rsp
call fcn.140007270
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
call fcn.1400013f0
nop
call fcn.140001490
int3
call fcn.1400013f0
int3