Function at 0x1401cd4e0
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 [0x140230008]
xor rax, rsp
mov qword [rsp + 0x80], rax
mov rcx, qword [0x14023da20]
test rcx, rcx
jne 0x1401cd53a
lea rcx, [0x14021cc7f]
call qword [sym.imp.python310.dll_PyImport_ImportModule]
mov rcx, rax
mov qword [0x14023da20], rax
test rax, rax
je 0x1401cd76e
lea rdx, str.environ
call qword [sym.imp.python310.dll_PyObject_GetAttrString]
mov qword [rsp + 0x20], rax
mov rcx, rbx
call qword [sym.imp.python310.dll_PyUnicode_FromString]
mov rdi, rax
test r15, r15
je 0x1401cd665
mov word [rsp + 0x30], 0
movzx esi, byte [rbx]
test sil, sil
je 0x1401cd607
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 0x1401cd5c1
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 0x1401cd5b0
test rcx, rcx
je 0x1401cd76e
mov rcx, r12
call fcn.140202a78
lea rcx, [r12 + rax*2]
mov byte [rsp + 0x2e], sil
mov byte [rsp + 0x2f], 0
mov r8d, 2
mov rdx, r14
call fcn.1402009a0
movzx esi, byte [rbx + 1]
test sil, sil
je 0x1401cd607
inc rbx
dec r13
movzx eax, word [rbp + 2]
add rbp, 2
jmp 0x1401cd590
lea rcx, [rsp + 0x30]
mov rdx, r15
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov rcx, r15
mov rdx, 0xffffffffffffffff
call qword [sym.imp.python310.dll_PyUnicode_FromWideChar]
mov rbx, rax
mov rsi, qword [rsp + 0x20]
mov rcx, rsi
mov rdx, rdi
mov r8, rax
call qword [sym.imp.python310.dll_PyObject_SetItem]
test eax, eax
jne 0x1401cd758
dec qword [rbx]
jne 0x1401cd729
mov rax, qword [rbx + 8]
mov rcx, rbx
call qword [rax + 0x30]
dec qword [rdi]
jne 0x1401cd72e
jmp 0x1401cd780
mov word [rsp + 0x30], 0
movzx esi, byte [rbx]
test sil, sil
je 0x1401cd707
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 0x1401cd6c1
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 0x1401cd6b0
test rcx, rcx
je 0x1401cd76e
mov rcx, r12
call fcn.140202a78
lea rcx, [r12 + rax*2]
mov byte [rsp + 0x2e], sil
mov byte [rsp + 0x2f], 0
mov r8d, 2
mov rdx, r15
call fcn.1402009a0
movzx esi, byte [rbx + 1]
test sil, sil
je 0x1401cd707
inc rbx
dec r13
movzx eax, word [rbp + 2]
add rbp, 2
jmp 0x1401cd690
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.python310.dll_PyObject_DelItem]
test eax, eax
jne 0x1401cd773
dec qword [rdi]
je 0x1401cd780
dec qword [rsi]
je 0x1401cd78f
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.1401f1a80
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.python310.dll_PyErr_PrintEx]
mov ecx, 1
call qword [sym.imp.python310.dll_Py_Exit]
call fcn.140200658
mov rcx, r14
call fcn.140013670
dec qword [rdi]
jne 0x1401cd72e
mov rax, qword [rdi + 8]
mov rcx, rdi
call qword [rax + 0x30]
dec qword [rsi]
jne 0x1401cd733
mov rax, qword [rsi + 8]
mov rcx, rsi
call qword [rax + 0x30]
jmp 0x1401cd733