Function at 0x14022e581
Capabilities:
Set environment variable

Disassembly:
jmp 0x1404d67a8
mov qword [rsp + 8], rbx
cmp spl, 0x7f
stc
mov qword [rsp + 0x10], rbp
clc
mov qword [rsp + 0x18], rsi
shld bp, ax, 0x91
sbb bpl, sil
push rdi
clc
push r12
neg bpl
bsf bp, r14w
push r13
test r9b, bpl
btc rbp, 0x38
stc
push r14
push r15
sbb r15d, 0x28011f16
sar bp, cl
sub rsp, 0x30
xor ebp, r10d
sub bp, si
movzx ebp, dx
sub esi, esi
mov ebp, edx
bsf r15, r15
mov r15, rcx
test r10b, bl
test rcx, rcx
jmp 0x1404d680d
jne 0x1404d6830
call fcn.1404b275a
mov dword [rax], 0x16
cmp r10b, r14b
cmc
or rax, 0xffffffffffffffff
jmp 0x1404d682b
jmp 0x1404d6da0
mov edx, 0x3d
movzx di, r15b
movsx edi, bx
movsxd rdi, ecx
mov rdi, r15
jmp 0x1404d6848
call fcn.1401ff674
mov r13, rax
clc
test r10b, 0x81
cmc
test rax, rax
je 0x1404d6d4b
cmp rax, r15
jmp 0x1404d6867
je 0x1404d6d4b
mov r14, qword [0x1400ba2e8]
cmp r14, qword [0x1400ba2f0]
xchg r12b, r12b
movzx r12d, word [rax + 2]
jne 0x1404d68af
mov rcx, r14
jmp 0x1404d6891
call fcn.1404d6e2d
mov r14, rax
mov qword [0x1400ba2e8], rax
cmovbe rbx, r11
xor ebx, 0x14eb3aa7
bt bx, r10w
mov ebx, 1
clc
test r14, r14
jmp 0x1404d68bd
jne 0x1404d6a06
mov rax, qword [0x1400ba2e0]
cmp dil, bl
test ebp, ebp
je 0x1404d6939
test rax, rax
jmp 0x1404d68dd
je 0x1404d6939
call fcn.1404b297b
test rax, rax
je 0x1404d6d4b
mov r14, qword [0x1400ba2e8]
test r15w, sp
jmp 0x1404d6901
cmp r14, qword [0x1400ba2f0]
jmp 0x1404d690d
jne 0x1404d69f8
mov rcx, r14
jmp 0x1404d691b
call fcn.1404d6e2d
mov r14, rax
jmp 0x1404d6928
mov qword [0x1400ba2e8], rax
jmp 0x1404d6934
jmp 0x1404d69f8
test r12w, r12w
jmp 0x1404d6942
je 0x1404d6d6a
test rax, rax
jne 0x1404d69ba
lea edx, [rax + 8]
movsx rcx, r11w
movsx ecx, bp
mov ecx, 0x592142d
mov rcx, rbx
jmp 0x1404d6968
call fcn.1404ca959
sub ecx, ecx
jmp 0x1404d6974
mov qword [0x1400ba2e0], rax
jmp 0x1404d6980
call fcn.1404c67c1
cmp qword [0x1400ba2e0], rsi
jmp 0x1404d6991
jne 0x1404d69a5
or rbp, 0xffffffffffffffff
jmp 0x1404d69a0
jmp 0x1404d6d73
mov r14, qword [0x1400ba2e8]
jmp 0x1404d69b1
test r14, r14
jne 0x1404d6a06
mov edx, 8
movsx cx, dil
xchg cl, ch
movzx ecx, cx
mov rcx, rbx
call fcn.1404ca959
xor ecx, ecx
jmp 0x1404d69d8
mov qword [0x1400ba2e8], rax
jmp 0x1404d69e4
call fcn.1404c67c1
mov r14, qword [0x1400ba2e8]
test r15, rsi
jmp 0x1404d69f8
test r14, r14
jmp 0x1404d6a00
je 0x1404d6997
mov rax, qword [r14]
cmovl bx, r8w
sar bl, 0xac
sub r13, r15
setle bl
rol bh, cl
cmc
sar r13, 1
mov rbx, r14
test r10w, ax
clc
test rax, rax
jmp 0x1404d6a2d
je 0x1404d6a9f
mov r8, r13
mov rdx, rax
mov rcx, r15
call fcn.1404e2cd5
test eax, eax
jmp 0x1404d6a48
jne 0x1404d6a76
mov rax, qword [rbx]
and cx, 0x1414
mov ecx, 0x3d
cmp bp, 0xffc
cmp word [rax + r13*2], cx
je 0x1404d6a8e
cmp word [rax + r13*2], si
je 0x1404d6a8e
add rbx, 8
bswap ax
movsx ax, bpl
cmovge ax, cx
mov rax, qword [rbx]
jmp 0x1404d6a25
sub rbx, r14
clc
cmp r14b, 0xcb
sar rbx, 3
jmp 0x1404d6ab2
sub rbx, r14
jmp 0x1404d6aab
sar rbx, 3
neg rbx
test rbx, rbx
js 0x1404d6b76
cmp qword [r14], rsi
jmp 0x1404d6ac3
je 0x1404d6b76
mov rcx, qword [r14 + rbx*8]
call fcn.1404c67c1
test r12w, r12w
jmp 0x1404d6adb
je 0x1404d6b0e
mov qword [r14 + rbx*8], r15
jmp 0x1404d6aea
jmp 0x1404d6c33
mov rax, qword [r14 + rbx*8 + 8]
jmp 0x1404d6af9
mov qword [r14 + rbx*8], rax
jmp 0x1404d6b02
inc rbx
test r14b, 0x6e
jmp 0x1404d6b0e
cmp qword [r14 + rbx*8], rsi
jmp 0x1404d6b17
jne 0x1404d6aef
mov r8d, 8
mov cl, bh
mov rdx, rbx
bswap ecx
mov rcx, 0xc94362f
setae cl
mov rcx, r14
jmp 0x1404d6b3c
call fcn.1404d61c7
sub ecx, ecx
movsxd rbx, r9d
movsx rbx, di
mov rbx, rax
jmp 0x1404d6b52
call fcn.1404c67c1
test rbx, rbx
jmp 0x1404d6b5f
je 0x1404d6c3b
mov qword [0x1400ba2e8], rbx
jmp 0x1404d6b71
jmp 0x1404d6c3b
test r12w, r12w
jmp 0x1404d6b7f
je 0x1404d6d75
neg rbx
lea rdx, [rbx + 2]
test dl, r10b
stc
clc
cmp rdx, rbx
jae 0x1404d6ba3
or rbp, 0xffffffffffffffff
jmp 0x1404d6d82
movabs rax, 0x1fffffffffffffff
clc
test r11, r8
cmp ch, 9
cmp rdx, rax
jmp 0x1404d6bbc
jae 0x1404d6b9a
mov r8d, 8
movsx ecx, r11w
mov cx, 0xc3d
mov rcx, r14
jmp 0x1404d6bd8
call fcn.1404d61c7
xor ecx, ecx
jmp 0x1404d6bed
mov r14, rax
jmp 0x1404d6bf5
call fcn.1404c67c1
test r14, r14
jmp 0x1404d6c02
je 0x1404d6b9a
mov qword [r14 + rbx*8], r15
shr di, cl
shr dil, 0xd3
movsx edi, cx
mov qword [r14 + rbx*8 + 8], rsi
adc dil, dl
xor dil, al
mov qword [0x1400ba2e8], r14
ror di, 0xa8
sar di, 0xcb
btc edi, ebx
mov rdi, rsi
jmp 0x1404d6c3b
test ebp, ebp
jmp 0x1404d6c42
je 0x1404d6d8c
or rbp, 0xffffffffffffffff
cmovs r14, rbx
movsx r14d, di
dec r14w
mov r14, rbp
jmp 0x1404d6c60
inc r14
stc
test r9b, r8b
cmp r14b, cl
cmp word [r15 + r14*2], si
jmp 0x1404d6c74
jne 0x1404d6c60
mov edx, 2
rcr cl, 0x3b
movsx ecx, si
add r14, rdx
movsx ecx, r11w
movsx rcx, r8w
movsxd rcx, eax
mov rcx, r14
jmp 0x1404d6c9b
call fcn.1404ca959
mov rbx, rax
test rax, rax
jmp 0x1404d6cab
je 0x1404d6d39
mov r8, r15
mov rdx, r14
mov rcx, rax
jmp 0x1404d6cbf
call fcn.1404c74ac
test eax, eax
jmp 0x1404d6ccb
jne 0x1404d6e07
neg r12w
movsx ax, r12b
lea rax, [r13 + 1]
mov cx, 0x6586
bswap cx
movsx rcx, r11w
lea rax, [rbx + rax*2]
movzx rcx, r8w
mov ch, bl
mov rcx, rbx
jmp 0x1404d6cfb
sbb rdx, rdx
mov word [rax - 2], si
cmc
clc
and rdx, rax
jmp 0x1404d6d0c
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
test eax, eax
jmp 0x1404d6d19
jne 0x1404d6d39
call fcn.1404b275a
mov esi, ebp
movsxd rcx, ebx
jmp 0x1404d6d2e
mov dword [rax], 0x2a
movzx cx, r13b
mov rcx, rbx
jmp 0x1404d6d41
call fcn.1404c67c1
jmp 0x1404d6d8c
call fcn.1404b275a
or rsi, 0xffffffffffffffff
movsx ebp, r8w
cmovno rbp, rbx
mov dword [rax], 0x16
movzx cx, r13b
movzx ebp, sp
mov ebp, esi
movsx ecx, r15w
xchg si, cx
mov esi, ebp
mov ebp, esi
movsx si, cl
mov cl, 0x7a
jmp 0x1404d6d82
mov esi, ebp
xchg rcx, rcx
jmp 0x1404d6d8c
mov rcx, rdi
jmp 0x1404d6d94
call fcn.1404c67c1
mov eax, esi
bt bp, 0
mov rbx, qword [rsp + 0x60]
cmovns r13d, ebx
xor r13w, r8w
btr r14, rcx
mov rbp, qword [rsp + 0x68]
movsx r12d, r13w
sbb r14, r8
dec r13b
mov rsi, qword [rsp + 0x70]
cmp sp, 0x1ac5
rol r15, 0x42
rcl r15b, cl
add rsp, 0x30
not dil
movsx r15d, si
mov dil, spl
pop r15
pop r14
movzx r12w, r10b
pop r13
mov dil, dl
sets dil
bswap r12d
pop r12
bswap di
setns dil
movsxd rdi, r9d
pop rdi
jmp 0x1404d6e06
ret
sub r9d, r9d
mov qword [rsp + 0x20], rsi
cmc
test edi, 0x71201b9c
xor r8d, r8d
xor edx, edx
sub ecx, ecx
jmp 0x1404d6e22
call fcn.1404b34d0
int3