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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10034063
mov eax, dword fs:[0]
push eax
sub esp, 0x5a0
mov eax, dword [0x10048024]
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.1000f66d
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 0x10013147
lea ecx, [ebp - 0x130]
call fcn.1002df30
mov dword [ebp - 4], 0
lea edx, [ebp - 0x344]
push edx
lea eax, [ebp - 0x338]
push eax
lea ecx, [ebp - 0x130]
call fcn.1002de40
test eax, eax
jne 0x10012d50
call sym.Comn.dll_GetObjectLog
mov dword [ebp - 0x59c], eax
push 0x3df
push 0x10037e1c
call fcn.10010eb0
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.1002ded0
mov eax, dword [ebp - 0x560]
jmp 0x1001327a
lea ecx, [ebp - 0x340]
push ecx
lea edx, [ebp - 0x33c]
push edx
lea ecx, [ebp - 0x130]
call fcn.1002ddb0
test eax, eax
jne 0x10012e04
call sym.Comn.dll_GetObjectLog
mov dword [ebp - 0x5a0], eax
push 0x3e5
push 0x10037e48
call fcn.10010eb0
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.10010e80
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.1002ded0
mov eax, dword [ebp - 0x568]
jmp 0x1001327a
mov edx, dword [ebp - 0x340]
push edx
mov eax, dword [ebp - 0x344]
push eax
lea ecx, [ebp - 0x130]
call fcn.1002db00
test eax, eax
jne 0x10012ec2
call sym.Comn.dll_GetObjectLog
mov dword [ebp - 0x5a4], eax
push 0x3ec
push 0x10037e74
call fcn.10010eb0
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.10010e80
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.1002ded0
mov eax, dword [ebp - 0x570]
jmp 0x1001327a
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.10011130
add esp, 4
test eax, eax
jne 0x10012f37
cmp dword [ebp - 0x18], 0
je 0x10012f10
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.1002ded0
mov eax, dword [ebp - 0x578]
jmp 0x1001327a
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.1002dd60
test eax, eax
jne 0x10013042
call sym.Comn.dll_GetObjectLog
mov dword [ebp - 0x5a8], eax
push 0x3fe
push 0x10037ec0
call fcn.10010eb0
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.10010e80
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.1002ded0
mov eax, dword [ebp - 0x580]
jmp 0x1001327a
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.1002dc20
test eax, eax
jne 0x1001310c
call sym.Comn.dll_GetObjectLog
mov dword [ebp - 0x5ac], eax
push 0x406
push 0x10037eec
call fcn.10010eb0
add esp, 8
push eax
push 0x10037efc
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.10010e80
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.1002ded0
mov eax, dword [ebp - 0x588]
jmp 0x1001327a
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.10010e80
add esp, 0x10
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x130]
call fcn.1002ded0
jmp 0x10013251
push 0x10037f18
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 0x10013187
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 0x1001327a
push 0x10037f1c
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 0x100131d7
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 0x1001327a
mov edx, dword [ebp - 0x550]
push edx
call dword [sym.imp.MSVCR80.dll_feof]
add esp, 4
test eax, eax
jne 0x10013231
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 0x100131d7
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.1000f672
mov esp, ebp
pop ebp
ret 0xc