Function at 0x140003800
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r14
lea rbp, [rsp - 0x1d0]
sub rsp, 0x2d0
mov rax, qword [0x140010008]
xor rax, rsp
mov qword [rbp + 0x1c0], rax
mov rsi, rdx
mov rdi, rcx
mov qword [rsp + 0x48], rcx
xor r14d, r14d
mov r8, rdx
lea rdx, str._windir_Sysnative_
lea rcx, [rsp + 0x20]
call fcn.1400075a0
nop
cmp qword [rax + 0x18], 8
jb 0x14000385b
mov rax, qword [rax]
mov r8d, 0x104
lea rdx, [rbp - 0x50]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
xorps xmm0, xmm0
movups xmmword [rsp + 0x70], xmm0
mov qword [rbp - 0x80], r14
mov qword [rbp - 0x78], r14
lea rax, [rbp - 0x50]
mov rbx, 0xffffffffffffffff
mov r8, rbx
nop dword [rax]
inc r8
cmp word [rax + r8*2], 0
jne 0x140003890
lea rdx, [rbp - 0x50]
lea rcx, [rsp + 0x70]
call fcn.140008230
nop
mov rdx, qword [rsp + 0x38]
cmp rdx, 8
jb 0x1400038ef
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400038ea
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400038ea
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400098fc
movdqa xmm0, xmmword [0x14000bf30]
movdqu xmmword [rsp + 0x30], xmm0
mov word [rsp + 0x20], r14w
mov r8, rsi
lea rdx, str._windir_System32_
lea rcx, [rsp + 0x50]
call fcn.1400075a0
nop
cmp qword [rax + 0x18], 8
jb 0x140003922
mov rax, qword [rax]
mov r8d, 0x104
lea rdx, [rbp - 0x50]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
xorps xmm0, xmm0
movups xmmword [rbp - 0x70], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x60], xmm1
lea rax, [rbp - 0x50]
nop dword [rax + rax]
inc rbx
cmp word [rax + rbx*2], 0
jne 0x140003950
mov r8, rbx
lea rdx, [rbp - 0x50]
lea rcx, [rbp - 0x70]
call fcn.140008230
nop
mov rdx, qword [rsp + 0x68]
cmp rdx, 8
jb 0x1400039b0
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400039ab
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400039ab
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400098fc
movdqa xmm0, xmmword [0x14000bf30]
movdqu xmmword [rsp + 0x60], xmm0
mov word [rsp + 0x50], r14w
lea rdx, [rsp + 0x70]
cmp qword [rbp - 0x78], 8
cmovae rdx, qword [rsp + 0x70]
xorps xmm0, xmm0
movups xmmword [rsp + 0x20], xmm0
mov qword [rsp + 0x30], r14
mov qword [rsp + 0x38], r14
mov r8, qword [rbp - 0x80]
lea rcx, [rsp + 0x20]
call fcn.140008230
nop
lea rcx, [rsp + 0x20]
call fcn.1400030a0
movzx ebx, al
mov rdx, qword [rsp + 0x38]
cmp rdx, 8
jb 0x140003a47
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140003a42
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140003a42
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400098fc
test bl, bl
je 0x140003b1c
movups xmm0, xmmword [rsp + 0x70]
movups xmmword [rdi], xmm0
movups xmm1, xmmword [rbp - 0x80]
movups xmmword [rdi + 0x10], xmm1
mov qword [rbp - 0x80], r14
mov edx, 7
mov qword [rbp - 0x78], rdx
mov word [rsp + 0x70], r14w
mov rax, qword [rbp - 0x58]
cmp rax, 8
jb 0x140003ab9
lea rdx, [rax*2 + 2]
mov rcx, qword [rbp - 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140003ab0
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140003ab0
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400098fc
mov rdx, qword [rbp - 0x78]
cmp rdx, 8
jb 0x140003af2
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140003aed
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140003b63
call fcn.1400098fc
mov rax, rdi
mov rcx, qword [rbp + 0x1c0]
xor rcx, rsp
call fcn.1400098a0
lea r11, [rsp + 0x2d0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
movups xmm0, xmmword [rbp - 0x70]
movups xmmword [rdi], xmm0
movups xmm1, xmmword [rbp - 0x60]
movups xmmword [rdi + 0x10], xmm1
mov rdx, qword [rbp - 0x78]
cmp rdx, 8
jb 0x140003af2
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140003aed
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140003aed
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3