Function at 0x10673c0
Capabilities:
Set uefi variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1044
mov eax, dword [0x10a4ce0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov dword [ebp - 0x1040], 0
mov dword [ebp - 0x1038], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov dword [ebp - 0x1044], eax
mov byte [ebp - 0x1024], 0
push 0xfff
push 0
lea eax, [ebp - 0x1023]
push eax
call fcn.01027af0
add esp, 0xc
mov dword [ebp - 0x1028], 0
mov dword [ebp - 0x102c], 0
mov dword [ebp - 0x103c], 0
mov dword [ebp - 0x1034], 0
push 0x1000
push 0
mov ecx, 1
imul edx, ecx, 0
lea eax, [ebp + edx - 0x1024]
push eax
call fcn.01027af0
add esp, 0xc
lea ecx, [ebp - 0x1020]
mov dword [ebp - 0x1034], ecx
mov dword [ebp - 0x1028], 0
jmp 0x106747f
mov edx, dword [ebp - 0x1028]
add edx, 1
mov dword [ebp - 0x1028], edx
mov eax, dword [ebp - 0x1028]
cmp eax, dword [ebp + 0xc]
jae 0x1067566
push 0x10b1b18
imul ecx, dword [ebp - 0x1028], 0x64
mov edx, dword [ebp + 8]
lea eax, [edx + ecx + 0x14]
push eax
call fcn.0102b02c
add esp, 8
test eax, eax
je 0x1067561
push 0x10
imul ecx, dword [ebp - 0x1028], 0x64
add ecx, dword [ebp + 8]
push ecx
imul edx, dword [ebp - 0x102c], 0x64
add edx, dword [ebp - 0x1034]
push edx
call fcn.0108de60
add esp, 0xc
imul eax, dword [ebp - 0x1028], 0x64
imul ecx, dword [ebp - 0x102c], 0x64
mov edx, dword [ebp - 0x1034]
mov esi, dword [ebp + 8]
mov eax, dword [esi + eax + 0x10]
mov dword [edx + ecx + 0x10], eax
imul ecx, dword [ebp - 0x1028], 0x64
mov edx, dword [ebp + 8]
lea eax, [edx + ecx + 0x14]
push eax
imul ecx, dword [ebp - 0x102c], 0x64
mov edx, dword [ebp - 0x1034]
lea eax, [edx + ecx + 0x14]
push eax
call fcn.01066e30
add esp, 8
imul ecx, dword [ebp - 0x1028], 0x64
mov edx, dword [ebp + 8]
lea eax, [edx + ecx + 0x54]
imul ecx, dword [ebp - 0x102c], 0x64
mov edx, dword [ebp - 0x1034]
lea ecx, [edx + ecx + 0x54]
mov edx, dword [eax]
mov dword [ecx], edx
mov edx, dword [eax + 4]
mov dword [ecx + 4], edx
mov edx, dword [eax + 8]
mov dword [ecx + 8], edx
mov eax, dword [eax + 0xc]
mov dword [ecx + 0xc], eax
mov ecx, dword [ebp - 0x102c]
add ecx, 1
mov dword [ebp - 0x102c], ecx
jmp 0x1067470
mov edx, dword [ebp - 0x102c]
mov dword [ebp + 0xc], edx
lea eax, [ebp - 0x1038]
push eax
push 0xf01ff
mov ecx, dword [ebp - 0x1044]
push ecx
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
push 1
push str.SeSystemEnvironmentPrivilege
mov edx, dword [ebp - 0x1038]
push edx
call fcn.01067780
add esp, 0xc
mov byte [ebp - 0x102d], al
movzx eax, byte [ebp - 0x102d]
test eax, eax
je 0x106765e
push str.WindPatchFvList
lea ecx, [ebp - 0x24]
push ecx
call fcn.01071ae4
add esp, 8
cmp dword [ebp + 0xc], 0
jne 0x1067604
push 0
push 0
push str.932f0c58_1b0c_433b_9ce2_d305fea4e5ce
lea edx, [ebp - 0x24]
push edx
call dword [sym.imp.KERNEL32.dll_SetFirmwareEnvironmentVariableA]
mov dword [ebp - 0x1040], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x522
jne 0x1067602
push str.ERROR:_Privilege_not_present_to_set_the_variable__n
call fcn.01072843
add esp, 4
or eax, 0xffffffff
jmp 0x1067665
jmp 0x106765c
imul eax, dword [ebp + 0xc], 0x64
add eax, 4
mov dword [ebp - 0x103c], eax
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x1024], ecx
mov edx, dword [ebp - 0x103c]
push edx
lea eax, [ebp - 0x1024]
push eax
push str.932f0c58_1b0c_433b_9ce2_d305fea4e5ce
lea ecx, [ebp - 0x24]
push ecx
call dword [sym.imp.KERNEL32.dll_SetFirmwareEnvironmentVariableA]
mov dword [ebp - 0x1040], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x522
jne 0x106765c
push str.ERROR:_Privilege_not_present_to_set_the_variable__n
call fcn.01072843
add esp, 4
or eax, 0xffffffff
jmp 0x1067665
jmp 0x1067663
or eax, 0xffffffff
jmp 0x1067665
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.01026ff0
mov esp, ebp
pop ebp
ret