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

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x9d8]
sub rsp, 0xac0
mov rax, qword [0x1401f7030]
xor rax, rsp
mov qword [rbp + 0x9b0], rax
xor r14d, r14d
cmp byte [0x1401fcb58], r14b
jne 0x1400abdae
mov rcx, qword [0x1401fcba8]
or r15, 0xffffffffffffffff
mov esi, 0x104
test rcx, rcx
jne 0x1400abddc
mov rdx, qword [0x1401fa508]
mov qword [rsp + 0x50], r14
test rdx, rdx
jne 0x1400abf46
lea r8, [0x1401a3d50]
lea rcx, [0x1401fa508]
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll__wdupenv_s]
mov rdx, qword [0x1401fa508]
test rdx, rdx
jne 0x1400abf5f
mov rcx, qword [rbp + 0x9b0]
xor rcx, rsp
call fcn.14005a600
lea r11, [rsp + 0xac0]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
mov rcx, qword [0x1401fa508]
test rcx, rcx
je 0x140056969
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
jmp 0x1400abdd0
mov edx, 0xfce
call fcn.1400ebbc8
mov qword [0x1401fa508], r14
jmp 0x140056969
cmp qword [0x1401fa9c0], r14
je 0x1400abf2b
mov edx, 0x2f
call qword [sym.imp.VCRUNTIME140.dll_wcschr]
test rax, rax
jne 0x1400abea5
mov rcx, qword [0x1401fcba8]
lea edx, [rax + 0x5c]
call qword [sym.imp.VCRUNTIME140.dll_wcschr]
test rax, rax
jne 0x1400abea5
mov rcx, qword [0x1401fa9c0]
lea rax, [rbp + 0x170]
mov qword [rsp + 0x40], pe_nt_image_headers64
xor r9d, r9d
mov qword [rsp + 0x38], rax
xor r8d, r8d
lea rax, [rbp + 0x590]
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x28], rax
xor edx, edx
mov qword [rsp + 0x20], r14
call qword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__wsplitpath_s]
lea r8, [rbp + 0x590]
mov rdx, rsi
lea rcx, [rbp + 0x380]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy_s]
lea r8, [rbp + 0x170]
mov rdx, rsi
lea rcx, [rbp + 0x380]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscat_s]
mov rdx, qword [0x1401fcba8]
lea rcx, [rbp + 0x380]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
test eax, eax
je 0x140056930
jmp 0x1400abdae
mov rdx, qword [0x1401fa9c0]
lea rcx, [rbp + 0x380]
mov r8, rsi
call qword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__wfullpath]
test rax, rax
jne 0x1400abec9
xor ecx, ecx
call fcn.14005e418
int3
mov rdx, qword [0x1401fcba8]
mov rdi, r15
inc rdi
cmp word [rdx + rdi*2], r14w
jne 0x1400abed3
lea rax, [rbp + 0x380]
mov rbx, r15
inc rbx
cmp word [rax + rbx*2], r14w
jne 0x1400abee7
mov rcx, r15
inc rcx
cmp word [rdx + rcx*2], r14w
jne 0x1400abef4
mov rax, rbx
sub rax, rcx
lea rcx, [rbp + 0x380]
lea rcx, [rcx + rax*2]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
test eax, eax
jne 0x1400abdae
cmp rbx, rdi
jae 0x140056930
jmp 0x1400abdae
lea r9, str._OUT
mov edx, 0x4c4
lea r8, str._LINKREPROTARGET
xor ecx, ecx
call fcn.14005e3e8
int3
lea rcx, [0x1401a3d50]
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll__wputenv_s]
mov byte [0x1401fac7c], 1
jmp 0x140056959
mov r8, rsi
lea rcx, [rsp + 0x60]
call qword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__wfullpath]
mov r8, rsi
lea rdx, [0x1401a51c4]
lea rcx, [rbp + 0x7a0]
call qword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__wfullpath]
lea rdx, [rbp + 0x7a0]
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
mov r8, qword [0x1401fa508]
xor ecx, ecx
test eax, eax
je 0x1400abdc6
mov edx, 0x1792
call fcn.1400eb834
lea r8, str.LINK_REPRO_NAME
xor edx, edx
lea rcx, [rsp + 0x50]
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll__wdupenv_s]
mov rax, qword [rsp + 0x50]
lea r8, str.link.rsp
test rax, rax
lea rcx, [rsp + 0x60]
mov rdx, rsi
cmovne r8, rax
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscat_s]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov r8d, 0x20
mov qword [rsp + 0x50], r14
lea rdx, [0x1401c9a7c]
lea rcx, [rsp + 0x60]
call fcn.14000a280
mov qword [0x1401fa988], rax
test rax, rax
jne 0x1400ac02b
lea r8, [rsp + 0x60]
mov edx, 0x478
xor ecx, ecx
call fcn.14005e3e8
int3
mov edx, 2
lea rcx, [0x1401a7024]
mov r9, rax
lea r8d, [rdx - 1]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp byte [0x1401fb5ac], r14b
je 0x1400ac057
test rax, rax
jne 0x1400ac057
call fcn.1400eb368
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov rbx, rax
test rax, rax
je 0x140056969
lea rax, [rsp + 0x60]
mov rdi, r15
inc rdi
cmp word [rax + rdi*2], r14w
jne 0x1400ac071
lea r8, [rsp + 0x60]
mov rdx, rsi
lea rcx, [rbp + 0x170]
sub rdi, 8
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy_s]
lea rcx, [rbp + 0x170]
sub rsi, rdi
lea rcx, [rcx + rdi*2]
mov rdx, rsi
lea r8, str.env.setting
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy_s]
mov r8d, 0x20
lea rdx, [0x1401a6edc]
lea rcx, [rbp + 0x170]
call fcn.14000a280
mov rdi, rax
test rax, rax
jne 0x1400ac10b
lea r8, [rbp + 0x170]
mov edx, 0x478
xor ecx, ecx
call fcn.14005e3e8
int3
mov r8, rbx
lea rdx, [0x1401a6508]
call fcn.1400ebc1c
mov rax, r15
inc rax
cmp word [rbx + rax*2], r14w
jne 0x1400ac0f9
lea rbx, [rbx + rax*2]
add rbx, 2
mov rcx, rdi
cmp word [rbx], r14w
jne 0x1400ac0e7
call fcn.14000a1a8
nop
jmp 0x140056969