Function at 0x140014a40
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 [0x140065480]
xor rax, rsp
mov qword [rsp + 0x80], rax
mov rcx, qword [0x1400672e8]
test rcx, rcx
jne 0x140014a9a
lea rcx, [0x14005506f]
call qword [sym.imp.python38.dll_PyImport_ImportModule]
mov rcx, rax
mov qword [0x1400672e8], rax
test rax, rax
je 0x140014cce
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 0x140014bc5
mov word [rsp + 0x30], 0
movzx esi, byte [rbx]
test sil, sil
je 0x140014b67
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 0x140014b21
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 0x140014b10
test rcx, rcx
je 0x140014cce
mov rcx, r12
call fcn.140038f98
lea rcx, [r12 + rax*2]
mov byte [rsp + 0x2e], sil
mov byte [rsp + 0x2f], 0
mov r8d, 2
mov rdx, r14
call fcn.140036eb0
movzx esi, byte [rbx + 1]
test sil, sil
je 0x140014b67
inc rbx
dec r13
movzx eax, word [rbp + 2]
add rbp, 2
jmp 0x140014af0
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 0x140014cb8
dec qword [rbx]
jne 0x140014c89
mov rax, qword [rbx + 8]
mov rcx, rbx
call qword [rax + 0x30]
dec qword [rdi]
jne 0x140014c8e
jmp 0x140014ce0
mov word [rsp + 0x30], 0
movzx esi, byte [rbx]
test sil, sil
je 0x140014c67
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 0x140014c21
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 0x140014c10
test rcx, rcx
je 0x140014cce
mov rcx, r12
call fcn.140038f98
lea rcx, [r12 + rax*2]
mov byte [rsp + 0x2e], sil
mov byte [rsp + 0x2f], 0
mov r8d, 2
mov rdx, r15
call fcn.140036eb0
movzx esi, byte [rbx + 1]
test sil, sil
je 0x140014c67
inc rbx
dec r13
movzx eax, word [rbp + 2]
add rbp, 2
jmp 0x140014bf0
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 0x140014cd3
dec qword [rdi]
je 0x140014ce0
dec qword [rsi]
je 0x140014cef
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.140028c00
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.140036b64
mov rcx, r14
call fcn.140005710
dec qword [rdi]
jne 0x140014c8e
mov rax, qword [rdi + 8]
mov rcx, rdi
call qword [rax + 0x30]
dec qword [rsi]
jne 0x140014c93
mov rax, qword [rsi + 8]
mov rcx, rsi
call qword [rax + 0x30]
jmp 0x140014c93