Function at 0x1400052e0
Capabilities:
Set environment variable

Disassembly:
mov rax, rsp
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x68]
sub rsp, 0x140
mov qword [rsp + 0x78], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov rax, qword [0x14003f2f0]
xor rax, rsp
mov qword [rbp + 0x30], rax
xor r12b, r12b
mov qword [rbp - 0x58], 0xf
mov qword [rbp - 0x60], 0
mov byte [rbp - 0x70], r12b
xor esi, esi
mov qword [rsp + 0x38], rsi
xor r9d, r9d
mov qword [rsp + 0x40], r9
xor r8d, r8d
mov qword [rsp + 0x48], r8
xor eax, eax
xor ecx, ecx
cpuid
mov r13d, eax
mov dword [rbp - 0x7c], ebx
mov dword [rbp - 0x78], ecx
mov dword [rbp - 0x74], edx
xor edi, edi
movabs r10, 0xfffffffffffffff
test eax, eax
js 0x140005519
nop
mov eax, edi
xor ecx, ecx
cpuid
mov r12d, edx
mov r15d, ecx
mov r14d, eax
mov dword [rbp - 0x80], eax
mov dword [rbp - 0x7c], ebx
mov dword [rbp - 0x78], ecx
mov dword [rbp - 0x74], edx
lea rax, [rbp - 0x80]
cmp rax, r9
jae 0x140005457
lea rax, [rbp - 0x80]
cmp rsi, rax
ja 0x140005457
lea rbx, [rbp - 0x80]
sub rbx, rsi
cmp r9, r8
jne 0x140005428
mov rax, r8
sub rax, r9
sar rax, 4
cmp rax, 1
jae 0x140005428
sub r9, rsi
sar r9, 4
mov rax, r10
sub rax, r9
cmp rax, 1
jb 0x1400054fc
inc r9
sub r8, rsi
sar r8, 4
mov rcx, r8
shr rcx, 1
mov rax, r10
sub rax, rcx
cmp rax, r8
jae 0x1400053f8
xor r8d, r8d
jmp 0x1400053fb
add r8, rcx
cmp r8, r9
cmovb r8, r9
mov rdx, r8
lea rcx, [rsp + 0x38]
call fcn.140013bf0
mov r8, qword [rsp + 0x48]
mov r9, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x38]
movabs r10, 0xfffffffffffffff
and rbx, 0xfffffffffffffff0
add rbx, rsi
test r9, r9
je 0x1400054e7
mov eax, dword [rbx]
mov dword [r9], eax
mov eax, dword [rbx + 4]
mov dword [r9 + 4], eax
mov eax, dword [rbx + 8]
mov dword [r9 + 8], eax
mov eax, dword [rbx + 0xc]
mov dword [r9 + 0xc], eax
jmp 0x1400054e7
cmp r9, r8
jne 0x1400054d3
mov rax, r8
sub rax, r9
sar rax, 4
cmp rax, 1
jae 0x1400054d3
sub r9, rsi
sar r9, 4
mov rax, r10
sub rax, r9
cmp rax, 1
jb 0x140005509
inc r9
sub r8, rsi
sar r8, 4
mov rcx, r8
shr rcx, 1
mov rax, r10
sub rax, rcx
cmp rax, r8
jae 0x1400054a3
xor r8d, r8d
jmp 0x1400054a6
add r8, rcx
cmp r8, r9
cmovb r8, r9
mov rdx, r8
lea rcx, [rsp + 0x38]
call fcn.140013bf0
mov r8, qword [rsp + 0x48]
mov r9, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x38]
movabs r10, 0xfffffffffffffff
test r9, r9
je 0x1400054e7
mov dword [r9], r14d
mov dword [r9 + 4], ebx
mov dword [r9 + 8], r15d
mov dword [r9 + 0xc], r12d
add r9, 0x10
mov qword [rsp + 0x40], r9
inc edi
cmp edi, r13d
jg 0x140005516
jmp 0x140005370
lea rcx, str.vector_T__too_long
call fcn.1400155c8
int3
lea rcx, str.vector_T__too_long
call fcn.1400155c8
int3
xor r12b, r12b
xor eax, eax
mov qword [rbp - 0x30], rax
mov qword [rbp - 0x28], rax
mov qword [rbp - 0x20], rax
mov qword [rbp - 0x18], rax
mov eax, dword [rsi + 4]
mov dword [rbp - 0x30], eax
mov eax, dword [rsi + 0xc]
mov dword [rbp - 0x2c], eax
mov eax, dword [rsi + 8]
mov dword [rbp - 0x28], eax
or r13, 0xffffffffffffffff
cmp byte [rbp - 0x30], 0
jne 0x14000554c
xor r8d, r8d
jmp 0x14000555d
lea rax, [rbp - 0x30]
mov r8, r13
inc r8
cmp byte [rax + r8], 0
jne 0x140005553
lea rdx, [rbp - 0x30]
lea rcx, [rbp - 0x70]
call fcn.140003cd0
lea rcx, [rbp - 0x70]
mov rdi, qword [rbp - 0x70]
mov r14, qword [rbp - 0x58]
cmp r14, 0x10
cmovae rcx, rdi
mov r15d, 0xc
mov r8d, r15d
mov rbx, qword [rbp - 0x60]
cmp rbx, r15
cmovb r8, rbx
test r8, r8
jne 0x14000559b
xor eax, eax
jmp 0x1400055a7
lea rdx, str.GenuineIntel
call fcn.140018d10
cdqe
test rax, rax
jne 0x1400055c0
cmp rbx, r15
jae 0x1400055b8
mov eax, r13d
jmp 0x1400055c0
xor eax, eax
cmp rbx, r15
setne al
test eax, eax
jne 0x1400055e5
mov r12b, 1
lea rdx, str.Intel
lea rcx, str.CPUBrandName
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov r14, qword [rbp - 0x58]
mov rdi, qword [rbp - 0x70]
mov edi, dword [rbp - 0x70]
lea rcx, [rbp - 0x70]
cmp r14, 0x10
cmovae rcx, rdi
cmp rbx, r15
cmovb r15, rbx
test r15, r15
jne 0x140005601
xor eax, eax
jmp 0x140005610
mov r8, r15
lea rdx, str.AuthenticAMD
call fcn.140018d10
cdqe
test rax, rax
jne 0x14000562b
cmp rbx, 0xc
jae 0x140005622
mov eax, r13d
jmp 0x14000562b
xor eax, eax
cmp rbx, 0xc
setne al
test eax, eax
jne 0x140005650
mov r15b, 1
lea rdx, [0x14002dca8]
lea rcx, str.CPUBrandName
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov r14, qword [rbp - 0x58]
mov rdi, qword [rbp - 0x70]
jmp 0x140005653