Function at 0x14033e2c0
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r14
lea rbp, [rsp - 0x1c0]
sub rsp, 0x2c0
mov rax, qword [0x1404e1800]
xor rax, rsp
mov qword [rbp + 0x1b0], rax
mov rsi, r8
mov rdi, rdx
lea r12, str.WinDefend
mov rdx, r12
lea rcx, [rsp + 0x58]
call fcn.14008c350
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0x58]
call fcn.1400af5e8
mov ebx, eax
lea rcx, [rsp + 0x58]
call fcn.14007a7c0
cmp ebx, 0x80070424
jne 0x14033e381
call fcn.140091ae4
cmp dword [rax], 4
jbe 0x14033e358
lea rcx, str.Defender_not_installed_on_this_machine___not_enabling_Sense_mode
mov qword [rsp + 0x48], rcx
lea rcx, [rsp + 0x48]
mov qword [rsp + 0x20], rcx
lea rdx, [0x14044edad]
mov rcx, rax
call fcn.140005f40
xor eax, eax
mov rcx, qword [rbp + 0x1b0]
xor rcx, rsp
call fcn.140112420
mov rbx, qword [rsp + 0x2f0]
add rsp, 0x2c0
pop r14
pop r12
pop rdi
pop rsi
pop rbp
ret
test ebx, ebx
jns 0x14033e3b0
lea rax, str.Failed_to_get_Defender_run_state
mov edx, 0x3e
lea r8, str.amcorewcd_sourcecommon_srcdefendersettings.cpp
mov r9d, ebx
mov qword [rsp + 0x20], rax
mov rcx, qword [rbp + 0x1e8]
call fcn.14008f264
mov eax, ebx
jmp 0x14033e35a
call fcn.140091ae4
cmp dword [rax], 4
jbe 0x14033e3fb
mov rcx, rdi
cmp qword [rdi + 0x18], 8
jb 0x14033e3c7
mov rcx, qword [rdi]
mov qword [rsp + 0x50], rcx
lea rcx, str.Enabling_Sense_for_Windows_Defender
mov qword [rsp + 0x40], rcx
lea rcx, [rsp + 0x50]
mov qword [rsp + 0x28], rcx
lea rcx, [rsp + 0x40]
mov qword [rsp + 0x20], rcx
lea rdx, [0x140459d53]
mov rcx, rax
call fcn.1400056ec
lea r14, str.SOFTWAREMicrosoftWindows_DefenderFeatures
mov rdx, r14
lea rcx, [rsp + 0x78]
call fcn.14008c350
nop
lea rdx, str.SenseOrgId
lea rcx, [rsp + 0x58]
call fcn.14008c350
mov byte [rsp + 0x20], 1
xor r9d, r9d
lea r8, [rsp + 0x78]
mov rdx, rdi
lea rcx, [rsp + 0x58]
call fcn.14023f940
mov ebx, eax
lea rcx, [rsp + 0x58]
call fcn.14007a7c0
nop
lea rcx, [rsp + 0x78]
call fcn.14007a7c0
test ebx, ebx
jns 0x14033e487
lea rax, str.Failed_setting_SenseOrgId_under_Defender_registry__ws
mov edx, 0x47
mov qword [rsp + 0x28], r14
mov rcx, qword [rbp + 0x1e8]
mov qword [rsp + 0x20], rax
mov r9d, ebx
lea r8, str.amcorewcd_sourcecommon_srcdefendersettings.cpp
call fcn.14008f264
jmp 0x14033e3ac
mov rdx, r14
lea rcx, [rsp + 0x58]
call fcn.14008c350
nop
lea rdx, str.SenseEnabled
lea rcx, [rsp + 0x78]
call fcn.14008c350
lea r8, [rsp + 0x58]
mov edx, 1
lea rcx, [rsp + 0x78]
call fcn.1401f278c
mov ebx, eax
lea rcx, [rsp + 0x78]
call fcn.14007a7c0
nop
lea rcx, [rsp + 0x58]
call fcn.14007a7c0
test ebx, ebx
jns 0x14033e4e6
lea rax, str.Failed_setting_SenseEnabled_under_Defender_registry__ws
mov edx, VarR8FromUI1
jmp 0x14033e462
mov rdx, r14
lea rcx, [rsp + 0x58]
call fcn.14008c350
nop
lea rdx, str.GeoPreferenceId
lea rcx, [rsp + 0x78]
call fcn.14008c350
mov byte [rsp + 0x20], 1
xor r9d, r9d
lea r8, [rsp + 0x58]
mov rdx, rsi
lea rcx, [rsp + 0x78]
call fcn.14023f940
mov ebx, eax
lea rcx, [rsp + 0x78]
call fcn.14007a7c0
nop
lea rcx, [rsp + 0x58]
call fcn.14007a7c0
test ebx, ebx
jns 0x14033e54b
lea rax, str.Failed_setting_GeoPreferenceId_under_Defender_registry__ws
mov edx, 0x4f
jmp 0x14033e462
call fcn.140091ae4
mov ebx, dword [rsp + 0x48]
cmp dword [rax], 4
jbe 0x14033e58f
mov dword [rsp + 0x48], ebx
lea rcx, str.Defender_run_state
mov qword [rsp + 0x40], rcx
lea rcx, [rsp + 0x48]
mov qword [rsp + 0x28], rcx
lea rcx, [rsp + 0x40]
mov qword [rsp + 0x20], rcx
xor r8d, r8d
lea rdx, [0x140459c95]
mov rcx, rax
call fcn.14000615c
cmp ebx, 1
jne 0x14033e358
call fcn.140091ae4
cmp dword [rax], 4
jbe 0x14033e5d6
mov qword [rsp + 0x40], r12
lea rcx, str.Defender_service_is_stopped._Starting_it.
mov qword [rsp + 0x50], rcx
lea rcx, [rsp + 0x40]
mov qword [rsp + 0x28], rcx
lea rcx, [rsp + 0x50]
mov qword [rsp + 0x20], rcx
lea rdx, [0x140459c68]
mov rcx, rax
call fcn.1400056ec
mov r8d, 0x104
lea rdx, [rbp - 0x60]
lea rcx, str._SystemRoot_System32DriversWdBoot.sys
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
nop dword [rax + rax]
dec eax
cmp eax, 0x103
ja 0x14033e674
and qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
xor r9d, r9d
lea edx, [r9 + 1]
mov r8d, edx
lea rcx, [rbp - 0x60]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
nop dword [rax + rax]
mov qword [rsp + 0x40], rax
test rax, rax
jne 0x14033e63b
lea edx, [rax + 0x6a]
jmp 0x14033e657
cmp rax, 0xffffffffffffffff
je 0x14033e66a
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_InstallELAMCertificateInfo]
nop dword [rax + rax]
test eax, eax
jne 0x14033e66a
lea edx, [rax + 0x6e]
lea r8, str.amcorewcd_sourcecommon_srcdefendersettings.cpp
mov rcx, qword [rbp + 0x1e8]
call fcn.14029d7b8
lea rcx, [rsp + 0x40]
call fcn.1400f0310
call fcn.14033eb00
mov ebx, eax
test eax, eax
jns 0x14033e358
lea rax, str.Failed_to_start_Defender_service
mov edx, reloc.WS2_32.dll_WSACleanup
jmp 0x14033e391