Function at 0x10012c80
Capabilities:
Manipulate boot configuration
Read file on windows
Set file attributes
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10035f57
mov eax, dword fs:[0]
push eax
sub esp, 0x5a0
mov eax, dword [0x1004c024]
xor eax, ebp
mov dword [ebp - 0x1c], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x598], ecx
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0
push 0x80000
call fcn.1000f6bd
add esp, 4
mov dword [ebp - 0x558], eax
mov eax, dword [ebp - 0x558]
mov dword [ebp - 0x18], eax
push 0x80000
push 0
mov ecx, dword [ebp - 0x18]
push ecx
call sub.ntdll.dll_memset
add esp, 0xc
cmp dword [ebp + 8], 5
jle 0x10013197
lea ecx, [ebp - 0x130]
call fcn.1002fcd0
mov dword [ebp - 4], 0
lea edx, [ebp - 0x344]
push edx
lea eax, [ebp - 0x338]
push eax
lea ecx, [ebp - 0x130]
call fcn.1002fbe0
test eax, eax
jne 0x10012da0
call sym.Comn.dll_GetObjectLog
mov dword [ebp - 0x59c], eax
push 0x3df
push 0x10039f3c
call fcn.10010f00
add esp, 8
push eax
push str._s:_Create_out_pipe_failed.
mov ecx, dword [ebp - 0x59c]
push ecx
mov edx, dword [ebp - 0x59c]
mov eax, dword [edx]
mov ecx, dword [eax + 0xc]
call ecx
add esp, 0xc
mov edx, dword [ebp - 0x18]
mov dword [ebp - 0x55c], edx
mov eax, dword [ebp - 0x55c]
push eax
call sub.MSVCR80.dll_void___cdecl_operator_delete___void__
add esp, 4
mov dword [ebp - 0x560], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x130]
call fcn.1002fc70
mov eax, dword [ebp - 0x560]
jmp 0x100132ca
lea ecx, [ebp - 0x340]
push ecx
lea edx, [ebp - 0x33c]
push edx
lea ecx, [ebp - 0x130]
call fcn.1002fb50
test eax, eax
jne 0x10012e54
call sym.Comn.dll_GetObjectLog
mov dword [ebp - 0x5a0], eax
push 0x3e5
push 0x10039f68
call fcn.10010f00
add esp, 8
push eax
push str._s:_Create_in_pipe_failed.
mov eax, dword [ebp - 0x5a0]
push eax
mov ecx, dword [ebp - 0x5a0]
mov edx, dword [ecx]
mov eax, dword [edx + 0xc]
call eax
add esp, 0xc
push 0
push 0
mov ecx, dword [ebp - 0x344]
push ecx
mov edx, dword [ebp - 0x338]
push edx
call fcn.10010ed0
add esp, 0x10
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x564], eax
mov ecx, dword [ebp - 0x564]
push ecx
call sub.MSVCR80.dll_void___cdecl_operator_delete___void__
add esp, 4
mov dword [ebp - 0x568], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x130]
call fcn.1002fc70
mov eax, dword [ebp - 0x568]
jmp 0x100132ca
mov edx, dword [ebp - 0x340]
push edx
mov eax, dword [ebp - 0x344]
push eax
lea ecx, [ebp - 0x130]
call fcn.1002f8a0
test eax, eax
jne 0x10012f12
call sym.Comn.dll_GetObjectLog
mov dword [ebp - 0x5a4], eax
push 0x3ec
push 0x10039f94
call fcn.10010f00
add esp, 8
push eax
push str._s:_Create_cmd_process_failed.
mov ecx, dword [ebp - 0x5a4]
push ecx
mov edx, dword [ebp - 0x5a4]
mov eax, dword [edx]
mov ecx, dword [eax + 0xc]
call ecx
add esp, 0xc
mov edx, dword [ebp - 0x344]
push edx
mov eax, dword [ebp - 0x338]
push eax
mov ecx, dword [ebp - 0x340]
push ecx
mov edx, dword [ebp - 0x33c]
push edx
call fcn.10010ed0
add esp, 0x10
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x56c], eax
mov ecx, dword [ebp - 0x56c]
push ecx
call sub.MSVCR80.dll_void___cdecl_operator_delete___void__
add esp, 4
mov dword [ebp - 0x570], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x130]
call fcn.1002fc70
mov eax, dword [ebp - 0x570]
jmp 0x100132ca
mov byte [ebp - 0x124], 0
push 0x103
push 0
lea edx, [ebp - 0x123]
push edx
call sub.ntdll.dll_memset
add esp, 0xc
lea eax, [ebp - 0x124]
push eax
call fcn.10011180
add esp, 4
test eax, eax
jne 0x10012f87
cmp dword [ebp - 0x18], 0
je 0x10012f60
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 0x574], ecx
mov edx, dword [ebp - 0x574]
push edx
call sub.MSVCR80.dll_void___cdecl_operator_delete___void__
add esp, 4
mov dword [ebp - 0x578], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x130]
call fcn.1002fc70
mov eax, dword [ebp - 0x578]
jmp 0x100132ca
mov byte [ebp - 0x334], 0
push 0x1ff
push 0
lea eax, [ebp - 0x333]
push eax
call sub.ntdll.dll_memset
add esp, 0xc
mov ecx, dword [ebp + 0x10]
push ecx
lea edx, [ebp - 0x124]
push edx
push str._s_bcdedit.exe__export__s_n
lea eax, [ebp - 0x334]
push eax
call dword [sym.imp.ntdll.dll_sprintf]
add esp, 0x10
lea ecx, [ebp - 0x334]
push ecx
call sub.ntdll.dll_strlen
add esp, 4
push eax
lea edx, [ebp - 0x334]
push edx
mov eax, dword [ebp - 0x33c]
push eax
lea ecx, [ebp - 0x130]
call fcn.1002fb00
test eax, eax
jne 0x10013092
call sym.Comn.dll_GetObjectLog
mov dword [ebp - 0x5a8], eax
push 0x3fe
push 0x10039fe0
call fcn.10010f00
add esp, 8
push eax
push str._s:_Write_to_pipe_failed.
mov ecx, dword [ebp - 0x5a8]
push ecx
mov edx, dword [ebp - 0x5a8]
mov eax, dword [edx]
mov ecx, dword [eax + 0xc]
call ecx
add esp, 0xc
mov edx, dword [ebp - 0x344]
push edx
mov eax, dword [ebp - 0x338]
push eax
mov ecx, dword [ebp - 0x340]
push ecx
mov edx, dword [ebp - 0x33c]
push edx
call fcn.10010ed0
add esp, 0x10
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x57c], eax
mov ecx, dword [ebp - 0x57c]
push ecx
call sub.MSVCR80.dll_void___cdecl_operator_delete___void__
add esp, 4
mov dword [ebp - 0x580], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x130]
call fcn.1002fc70
mov eax, dword [ebp - 0x580]
jmp 0x100132ca
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
lea edx, [ebp - 0x14]
push edx
mov eax, dword [ebp - 0x18]
push eax
mov ecx, dword [ebp - 0x338]
push ecx
lea ecx, [ebp - 0x130]
call fcn.1002f9c0
test eax, eax
jne 0x1001315c
call sym.Comn.dll_GetObjectLog
mov dword [ebp - 0x5ac], eax
push 0x406
push 0x1003a00c
call fcn.10010f00
add esp, 8
push eax
push 0x1003a01c
mov edx, dword [ebp - 0x5ac]
push edx
mov eax, dword [ebp - 0x5ac]
mov ecx, dword [eax]
mov edx, dword [ecx + 0xc]
call edx
add esp, 0xc
mov eax, dword [ebp - 0x344]
push eax
mov ecx, dword [ebp - 0x338]
push ecx
mov edx, dword [ebp - 0x340]
push edx
mov eax, dword [ebp - 0x33c]
push eax
call fcn.10010ed0
add esp, 0x10
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 0x584], ecx
mov edx, dword [ebp - 0x584]
push edx
call sub.MSVCR80.dll_void___cdecl_operator_delete___void__
add esp, 4
mov dword [ebp - 0x588], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x130]
call fcn.1002fc70
mov eax, dword [ebp - 0x588]
jmp 0x100132ca
mov eax, dword [ebp - 0x344]
push eax
mov ecx, dword [ebp - 0x338]
push ecx
mov edx, dword [ebp - 0x340]
push edx
mov eax, dword [ebp - 0x33c]
push eax
call fcn.10010ed0
add esp, 0x10
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x130]
call fcn.1002fc70
jmp 0x100132a1
push 0x1003a038
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.MSVCR80.dll_fopen]
add esp, 8
mov dword [ebp - 0x550], eax
cmp dword [ebp - 0x550], 0
jne 0x100131d7
mov edx, dword [ebp - 0x18]
mov dword [ebp - 0x58c], edx
mov eax, dword [ebp - 0x58c]
push eax
call sub.MSVCR80.dll_void___cdecl_operator_delete___void__
add esp, 4
xor eax, eax
jmp 0x100132ca
push 0x1003a03c
mov ecx, dword [ebp + 0x10]
push ecx
call dword [sym.imp.MSVCR80.dll_fopen]
add esp, 8
mov dword [ebp - 0x348], eax
cmp dword [ebp - 0x348], 0
jne 0x10013227
mov edx, dword [ebp - 0x18]
mov dword [ebp - 0x590], edx
mov eax, dword [ebp - 0x590]
push eax
call sub.MSVCR80.dll_void___cdecl_operator_delete___void__
add esp, 4
mov ecx, dword [ebp - 0x550]
push ecx
call dword [sym.imp.MSVCR80.dll_fclose]
add esp, 4
xor eax, eax
jmp 0x100132ca
mov edx, dword [ebp - 0x550]
push edx
call dword [sym.imp.MSVCR80.dll_feof]
add esp, 4
test eax, eax
jne 0x10013281
mov eax, dword [ebp - 0x550]
push eax
push 0x200
push 1
lea ecx, [ebp - 0x54c]
push ecx
call dword [sym.imp.MSVCR80.dll_fread]
add esp, 0x10
mov dword [ebp - 0x554], eax
mov edx, dword [ebp - 0x348]
push edx
mov eax, dword [ebp - 0x554]
push eax
push 1
lea ecx, [ebp - 0x54c]
push ecx
call dword [sym.imp.MSVCR80.dll_fwrite]
add esp, 0x10
jmp 0x10013227
mov edx, dword [ebp - 0x550]
push edx
call dword [sym.imp.MSVCR80.dll_fclose]
add esp, 4
mov eax, dword [ebp - 0x348]
push eax
call dword [sym.imp.MSVCR80.dll_fclose]
add esp, 4
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 0x594], ecx
mov edx, dword [ebp - 0x594]
push edx
call sub.MSVCR80.dll_void___cdecl_operator_delete___void__
add esp, 4
push 2
mov eax, dword [ebp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.1000f6c2
mov esp, ebp
pop ebp
ret 0xc