Function at 0x10c1770
Capabilities:
Manipulate boot configuration
Set file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x494
mov dword [ebp - 0x46c], ecx
call fcn.010905a0
mov dword [ebp - 0xc], eax
mov word [ebp - 0x468], 0
push 0xfe
push 0
lea eax, [ebp - 0x466]
push eax
call sub.ntdll.dll_memset
add esp, 0xc
push 0x80
lea ecx, [ebp - 0x468]
push ecx
mov edx, dword [ebp - 0xc]
mov eax, dword [edx]
mov ecx, dword [ebp - 0xc]
mov edx, dword [eax + 0x24]
call edx
mov dword [ebp - 0x33c], eax
mov eax, dword [ebp - 0x46c]
cmp dword [eax + 0x2c], 0
je 0x10c1842
mov ecx, dword [ebp - 0x46c]
mov edx, dword [ecx + 0x2c]
mov dword [ebp - 0x470], edx
lea eax, [ebp - 0x468]
mov dword [ebp - 0x474], eax
mov ecx, dword [ebp - 0x474]
mov dword [ebp - 0x478], ecx
mov edx, dword [ebp - 0x470]
mov ax, word [edx]
mov word [ebp - 0x47a], ax
mov ecx, dword [ebp - 0x474]
mov dx, word [ebp - 0x47a]
mov word [ecx], dx
mov eax, dword [ebp - 0x470]
add eax, 2
mov dword [ebp - 0x470], eax
mov ecx, dword [ebp - 0x474]
add ecx, 2
mov dword [ebp - 0x474], ecx
cmp word [ebp - 0x47a], 0
jne 0x10c17fa
cmp dword [ebp - 0x33c], 0
jne 0x10c1889
call fcn.010906a0
mov dword [ebp - 0x480], eax
push 0x240
push 0x10092d4
call fcn.010c0520
push eax
push 0x1009548
mov edx, dword [ebp - 0x480]
push edx
mov eax, dword [ebp - 0x480]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
call edx
add esp, 0xc
xor eax, eax
jmp 0x10c1a96
mov word [ebp - 0x128], 0
push 0xfe
push 0
lea eax, [ebp - 0x126]
push eax
call sub.ntdll.dll_memset
add esp, 0xc
lea ecx, [ebp - 0x468]
mov dword [ebp - 0x484], ecx
lea edx, [ebp - 0x128]
mov dword [ebp - 0x488], edx
mov eax, dword [ebp - 0x488]
mov dword [ebp - 0x48c], eax
mov ecx, dword [ebp - 0x484]
mov dx, word [ecx]
mov word [ebp - 0x48e], dx
mov eax, dword [ebp - 0x488]
mov cx, word [ebp - 0x48e]
mov word [eax], cx
mov edx, dword [ebp - 0x484]
add edx, 2
mov dword [ebp - 0x484], edx
mov eax, dword [ebp - 0x488]
add eax, 2
mov dword [ebp - 0x488], eax
cmp word [ebp - 0x48e], 0
jne 0x10c18cc
mov word [ebp - 0x330], 0
push 0x1fe
push 0
lea ecx, [ebp - 0x32e]
push ecx
call sub.ntdll.dll_memset
add esp, 0xc
lea edx, [ebp - 0x128]
push edx
push 0x1005718
lea eax, [ebp - 0x330]
push eax
call sub.ntdll.dll_swprintf
add esp, 0xc
mov dword [ebp - 0x130], 0xffffffff
lea ecx, [ebp - 0x330]
push ecx
lea edx, [ebp - 0x338]
push edx
call dword [sym.imp.ntdll.dll_RtlInitUnicodeString]
mov dword [ebp - 0x24], 0x18
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x18], 0x40
lea eax, [ebp - 0x338]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0
push 0x20
push 0
lea ecx, [ebp - 8]
push ecx
lea edx, [ebp - 0x24]
push edx
push 0x100100
lea eax, [ebp - 0x130]
push eax
call dword [sym.imp.ntdll.dll_ZwOpenFile]
mov dword [ebp - 0x12c], eax
cmp dword [ebp - 0x12c], 0
jne 0x10c1a3b
xor ecx, ecx
mov dword [ebp - 0x368], ecx
mov dword [ebp - 0x364], ecx
mov dword [ebp - 0x360], ecx
mov dword [ebp - 0x35c], ecx
mov dword [ebp - 0x358], ecx
mov dword [ebp - 0x354], ecx
mov dword [ebp - 0x350], ecx
mov dword [ebp - 0x34c], ecx
mov dword [ebp - 0x348], ecx
mov dword [ebp - 0x344], ecx
mov edx, dword [ebp + 8]
mov dword [ebp - 0x348], edx
push 4
push 0x28
lea eax, [ebp - 0x368]
push eax
lea ecx, [ebp - 8]
push ecx
mov edx, dword [ebp - 0x130]
push edx
call dword [sym.imp.ntdll.dll_ZwSetInformationFile]
mov dword [ebp - 0x12c], eax
mov eax, dword [ebp - 0x130]
push eax
call dword [sym.imp.ntdll.dll_ZwClose]
cmp dword [ebp - 0x12c], 0
jne 0x10c1a4b
mov eax, 1
jmp 0x10c1a96
mov ecx, dword [ebp - 0x12c]
push ecx
call sub.ntdll.dll_RtlNtStatusToDosError
push eax
call fcn.0108d110
call fcn.010906a0
mov dword [ebp - 0x494], eax
push 0x274
push 0x10092d4
call fcn.010c0520
push eax
push 0x1009500
mov edx, dword [ebp - 0x494]
push edx
mov eax, dword [ebp - 0x494]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
call edx
add esp, 0xc
xor eax, eax
mov esp, ebp
pop ebp
ret 4