Function at 0x14007fc00
Capabilities:
Set environment variable

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x88
mov r15, r8
mov rbx, rdx
mov r14, rcx
mov rax, qword [0x1400d7900]
xor rax, rsp
mov qword [rsp + 0x80], rax
mov rcx, qword [0x1400db748]
test rcx, rcx
jne 0x14007fc5a
lea rcx, [0x1400c5ccb]
call qword [sym.imp.python38.dll_PyImport_ImportModule]
mov rcx, rax
mov qword [0x1400db748], rax
test rax, rax
je 0x14007fe8e
lea rdx, str.environ
call qword [sym.imp.python38.dll_PyObject_GetAttrString]
mov qword [rsp + 0x20], rax
mov rcx, rbx
call qword [sym.imp.python38.dll_PyUnicode_FromString]
mov rdi, rax
test r15, r15
je 0x14007fd85
mov word [rsp + 0x30], 0
movzx esi, byte [rbx]
test sil, sil
je 0x14007fd27
mov r13d, 0x28
lea rbp, [rsp + 0x30]
xor eax, eax
lea r14, [rsp + 0x2e]
nop word cs:[rax + rax]
mov r12, rbp
mov rcx, r13
test ax, ax
je 0x14007fce1
mov rcx, r13
mov rax, rbp
nop word cs:[rax + rax]
lea r12, [rax + 2]
dec rcx
cmp word [rax + 2], 0
mov rax, r12
jne 0x14007fcd0
test rcx, rcx
je 0x14007fe8e
mov rcx, r12
call fcn.1400aa3d8
lea rcx, [r12 + rax*2]
mov byte [rsp + 0x2e], sil
mov byte [rsp + 0x2f], 0
mov r8d, 2
mov rdx, r14
call fcn.1400a82f0
movzx esi, byte [rbx + 1]
test sil, sil
je 0x14007fd27
inc rbx
dec r13
movzx eax, word [rbp + 2]
add rbp, 2
jmp 0x14007fcb0
lea rcx, [rsp + 0x30]
mov rdx, r15
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov rcx, r15
mov rdx, 0xffffffffffffffff
call qword [sym.imp.python38.dll_PyUnicode_FromWideChar]
mov rbx, rax
mov rsi, qword [rsp + 0x20]
mov rcx, rsi
mov rdx, rdi
mov r8, rax
call qword [sym.imp.python38.dll_PyObject_SetItem]
test eax, eax
jne 0x14007fe78
dec qword [rbx]
jne 0x14007fe49
mov rax, qword [rbx + 8]
mov rcx, rbx
call qword [rax + 0x30]
dec qword [rdi]
jne 0x14007fe4e
jmp 0x14007fea0
mov word [rsp + 0x30], 0
movzx esi, byte [rbx]
test sil, sil
je 0x14007fe27
mov r13d, 0x28
lea rbp, [rsp + 0x30]
xor eax, eax
lea r15, [rsp + 0x2e]
nop word [rax + rax]
mov r12, rbp
mov rcx, r13
test ax, ax
je 0x14007fde1
mov rcx, r13
mov rax, rbp
nop word cs:[rax + rax]
lea r12, [rax + 2]
dec rcx
cmp word [rax + 2], 0
mov rax, r12
jne 0x14007fdd0
test rcx, rcx
je 0x14007fe8e
mov rcx, r12
call fcn.1400aa3d8
lea rcx, [r12 + rax*2]
mov byte [rsp + 0x2e], sil
mov byte [rsp + 0x2f], 0
mov r8d, 2
mov rdx, r15
call fcn.1400a82f0
movzx esi, byte [rbx + 1]
test sil, sil
je 0x14007fe27
inc rbx
dec r13
movzx eax, word [rbp + 2]
add rbp, 2
jmp 0x14007fdb0
lea rcx, [rsp + 0x30]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov rsi, qword [rsp + 0x20]
mov rcx, rsi
mov rdx, rdi
call qword [sym.imp.python38.dll_PyObject_DelItem]
test eax, eax
jne 0x14007fe93
dec qword [rdi]
je 0x14007fea0
dec qword [rsi]
je 0x14007feaf
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.140099f80
nop
add rsp, 0x88
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov ecx, 1
call qword [sym.imp.python38.dll_PyErr_PrintEx]
mov ecx, 1
call qword [sym.imp.python38.dll_Py_Exit]
call fcn.1400a7fa8
mov rcx, r14
call fcn.14001e870
dec qword [rdi]
jne 0x14007fe4e
mov rax, qword [rdi + 8]
mov rcx, rdi
call qword [rax + 0x30]
dec qword [rsi]
jne 0x14007fe53
mov rax, qword [rsi + 8]
mov rcx, rsi
call qword [rax + 0x30]
jmp 0x14007fe53