Function at 0x14023e5b0
Capabilities:
Create process on windows
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x80
mov rax, qword [0x1404af540]
xor rax, rsp
mov qword [rbp - 8], rax
xor r12d, r12d
xor r8d, r8d
xor edx, edx
lea rcx, str.CommonProgramW6432
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov ebx, eax
xorps xmm0, xmm0
movups xmmword [rbp - 0x28], xmm0
mov qword [rbp - 0x18], r12
mov esi, 7
mov qword [rbp - 0x10], rsi
mov word [rbp - 0x28], r12w
mov r13d, 0xa
test eax, eax
je 0x14023e8b3
mov edx, ebx
cmp rbx, rsi
ja 0x14023e63e
mov qword [rbp - 0x18], rbx
movzx eax, r12w
lea rdi, [rbp - 0x28]
mov ecx, ebx
rep stosw word [rdi], ax
mov word [rbp + rbx*2 - 0x28], r12w
jmp 0x14023e64a
mov r9, rdx
lea rcx, [rbp - 0x28]
call fcn.1401aa0a0
lea rdx, [rbp - 0x28]
cmp qword [rbp - 0x10], 7
cmova rdx, qword [rbp - 0x28]
mov r8d, ebx
lea rcx, str.CommonProgramW6432
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov rdi, qword [rbp - 0x18]
test rdi, rdi
je 0x14023e878
lea rax, [rbp - 0x28]
mov rcx, qword [rbp - 0x28]
mov r9, qword [rbp - 0x10]
cmp r9, 7
cmova rax, rcx
cmp word [rax + rdi*2 - 2], 0
jne 0x14023e71d
lea r8, [rdi - 1]
xorps xmm0, xmm0
movups xmmword [rbp - 0x50], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x40], xmm1
cmp rdi, r8
cmovb r8, rdi
lea rdx, [rbp - 0x28]
cmp r9, 7
cmova rdx, rcx
lea rcx, [rbp - 0x50]
call fcn.140006340
lea rdx, [rbp - 0x50]
lea rcx, [rbp - 0x28]
call fcn.140004930
mov rdx, qword [rbp - 0x38]
cmp rdx, 7
jbe 0x14023e711
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14023e70c
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14023e865
call fcn.1403ca488
mov rcx, qword [rbp - 0x28]
mov rdi, qword [rbp - 0x18]
mov r9, qword [rbp - 0x10]
movabs rdx, 0x7ffffffffffffffe
mov rax, rdx
sub rax, rdi
cmp rax, 0x20
jb 0x14023e969
lea r15, [rbp - 0x28]
cmp r9, 7
cmova r15, rcx
xorps xmm0, xmm0
movups xmmword [rbp - 0x50], xmm0
lea r14, [rdi + 0x20]
lea rbx, [rbp - 0x50]
cmp r14, 7
jbe 0x14023e7d4
mov rsi, r14
or rsi, 7
movabs rax, 0x7fffffffffffffff
cmp rsi, rdx
jbe 0x14023e7aa
mov rsi, rdx
lea rcx, [rax + rax]
cmp rcx, 0x1000
jb 0x14023e7c8
lea rax, [rcx + 0x27]
cmp rax, rcx
jbe 0x14023e963
mov rcx, rax
call fcn.1403ca490
test rax, rax
je 0x14023e865
lea rbx, [rax + 0x27]
and rbx, 0xffffffffffffffe0
mov qword [rbx - 8], rax
jmp 0x14023e7d0
cmp rsi, r13
cmovb rsi, r13
lea rcx, [rsi + 1]
cmp rcx, rax
ja 0x14023e963
add rcx, rcx
jne 0x14023e775
mov rbx, r12
jmp 0x14023e7d0
call fcn.1403ca490
mov rbx, rax
mov qword [rbp - 0x50], rbx
mov qword [rbp - 0x40], r14
mov qword [rbp - 0x38], rsi
add rdi, rdi
mov r8, rdi
mov rdx, r15
mov rcx, rbx
call sub.VCRUNTIME140.dll_memcpy
movaps xmm0, xmmword [str.microsoft_sharedinkTabTip.exe]
movups xmmword [rdi + rbx], xmm0
movaps xmm1, xmmword [0x14044eb30]
movups xmmword [rdi + rbx + 0x10], xmm1
movaps xmm0, xmmword [0x14044eb40]
movups xmmword [rdi + rbx + 0x20], xmm0
movaps xmm1, xmmword [0x14044eb50]
movups xmmword [rdi + rbx + 0x30], xmm1
mov word [rbx + r14*2], r12w
lea rdx, [rbp - 0x50]
lea rcx, [rbp - 0x28]
call fcn.140004930
mov rdx, qword [rbp - 0x38]
cmp rdx, 7
jbe 0x14023e871
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14023e86c
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14023e86c
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1403ca488
cmp qword [rbp - 0x18], 0
jne 0x14023e8c8
mov rax, qword [rbp - 0x10]
cmp rax, 0x3e
jb 0x14023e8b3
lea rdi, [rbp - 0x28]
cmp rax, 7
cmova rdi, qword [rbp - 0x28]
mov qword [rbp - 0x18], 0x3e
mov r8d, 0x7c
lea rdx, str.C:Program_FilesCommon_Filesmicrosoft_sharedinkTabTip.exe
mov rcx, rdi
call sub.VCRUNTIME140.dll_memmove
mov word [rdi + 0x7c], r12w
jmp 0x14023e8c8
lea r9, str.C:Program_FilesCommon_Filesmicrosoft_sharedinkTabTip.exe
mov edx, 0x3e
lea rcx, [rbp - 0x28]
call fcn.140004f70
lea r8, [rbp - 0x28]
cmp qword [rbp - 0x10], 7
cmova r8, qword [rbp - 0x28]
mov dword [rsp + 0x28], r13d
mov qword [rsp + 0x20], r12
xor r9d, r9d
lea rdx, str.open
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_ShellExecuteW]
nop
mov rdx, qword [rbp - 0x10]
cmp rdx, 7
jbe 0x14023e936
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14023e931
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14023e931
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1403ca488
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.1403ca460
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
call fcn.1400062b0
nop
call fcn.140006110
int3