Function at 0x140008290
Capabilities:
Query environment variable

Disassembly:
push rdi
sub rsp, 0x3d0
mov qword [rsp + 0x38], 0xfffffffffffffffe
mov qword [rsp + 0x3e8], rbx
mov rax, qword [0x1400a6188]
xor rax, rsp
mov qword [rsp + 0x3c0], rax
mov rdi, rcx
call fcn.140010cf0
mov rcx, rax
lea r9, [0x140071118]
lea r8, str.RpcServer::WMIData::ReadBuildFromFile
xor edx, edx
call fcn.14002c750
xor ebx, ebx
mov qword [rsp + 0x30], rbx
call fcn.140010cf0
cmp byte [rax + 0x64], bl
je 0x14000833a
lea ecx, [rbx + 0x28]
call fcn.140025d40
mov rbx, rax
mov qword [rsp + 0x78], rax
test rax, rax
je 0x140008333
xor eax, eax
mov qword [rbx], rax
mov qword [rbx + 8], rax
mov qword [rbx + 0x10], rax
mov qword [rbx + 0x18], rax
mov qword [rbx + 0x20], rax
call fcn.140010cf0
mov rdx, rax
lea r8, str.RpcServer::WMIData::ReadBuildFromFile
mov rcx, rbx
call fcn.140027d20
mov rbx, rax
jmp 0x140008335
xor ebx, ebx
mov qword [rsp + 0x30], rbx
xor edx, edx
mov r8d, 0x208
lea rcx, [rsp + 0x1b0]
call fcn.14004b830
mov r8d, 0x104
lea rdx, [rsp + 0x1b0]
lea rcx, str.SystemDrive
call qword [sym.imp.api_ms_win_core_processenvironment_l1_1_0.dll_GetEnvironmentVariableW]
test eax, eax
je 0x14000852d
mov qword [rsp + 0x78], 0
lea r8, [0x1400a8fc8]
lea rdx, [rsp + 0x1b0]
lea rcx, [rsp + 0x78]
call fcn.140005c70
nop
xor edx, edx
mov r8d, 0x110
lea rcx, [rsp + 0xa0]
call fcn.14004b830
mov dword [rsp + 0x20], 1
mov r9d, 0x40
lea r8d, [r9 - 0x3f]
mov rdx, qword [rsp + 0x78]
lea rcx, [rsp + 0xa0]
call fcn.140003c70
nop
movdqa xmm0, xmmword [0x140072ae0]
movdqu xmmword [rsp + 0x90], xmm0
mov byte [rsp + 0x80], 0
mov rax, qword [rsp + 0xa0]
movsxd rcx, dword [rax + 4]
lea rax, [rsp + 0xa0]
add rcx, rax
mov dl, 0xa
call fcn.140011f00
movzx r8d, al
lea rdx, [rsp + 0x80]
lea rcx, [rsp + 0xa0]
call fcn.140002b00
lea rdx, [rsp + 0x80]
cmp qword [rsp + 0x98], 0x10
cmovae rdx, qword [rsp + 0x80]
lea rcx, [rdi + 0x40]
call fcn.140005830
lea rcx, [rsp + 0xb0]
call fcn.14000ffd0
test rax, rax
jne 0x140008496
mov rax, qword [rsp + 0xa0]
movsxd rcx, dword [rax + 4]
mov eax, 6
mov edx, 2
cmp qword [rsp + rcx + 0xe8], 0
cmovne eax, edx
or eax, dword [rsp + rcx + 0xb0]
and eax, 0x17
mov dword [rsp + rcx + 0xb0], eax
mov edx, dword [rsp + rcx + 0xb4]
and edx, eax
jne 0x140008592
mov rdx, qword [rsp + 0x98]
cmp rdx, 0x10
jb 0x1400084d9
inc rdx
mov rcx, qword [rsp + 0x80]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400084d4
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400085e6
call fcn.140025d80
movdqa xmm0, xmmword [0x140072ae0]
movdqu xmmword [rsp + 0x90], xmm0
mov byte [rsp + 0x80], 0
lea rcx, [rsp + 0xa0]
call fcn.140005e70
nop
mov rdx, qword [rsp + 0x78]
add rdx, 0xffffffffffffffe8
mov eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140008528
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x140010e16.0]
mov rbx, qword [rsp + 0x30]
jmp 0x140008534
call fcn.140010cf0
mov rcx, rax
lea r9, [0x140071118]
lea r8, str.RpcServer::WMIData::ReadBuildFromFile
mov edx, 1
call fcn.14002c750
nop
test rbx, rbx
je 0x14000856f
mov rcx, rbx
call fcn.1400287c0
mov edx, 0x28
mov rcx, rbx
call fcn.140025d80
xor al, al
mov rcx, qword [rsp + 0x3c0]
xor rcx, rsp
call fcn.1400264a0
mov rbx, qword [rsp + 0x3e8]
add rsp, 0x3d0
pop rdi
ret
test dl, 4
je 0x1400085a0
lea rbx, str.ios_base::badbit_set
jmp 0x1400085b5
test dl, 2
lea rbx, str.ios_base::failbit_set
lea rax, str.ios_base::eofbit_set
cmove rbx, rax
mov edx, 1
lea rcx, [rsp + 0x40]
call fcn.140010e50
mov r8, rax
mov rdx, rbx
lea rcx, [rsp + 0x50]
call fcn.140004b50
lea rdx, [0x1400a1fc8]
lea rcx, [rsp + 0x50]
call fcn.14004ace0
nop
call fcn.14004e3b0
int3