Function at 0x1000e090
Capabilities:
Copy file
Manipulate boot configuration
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10056650
mov eax, dword fs:[0]
push eax
sub esp, 0x14c
mov eax, dword [0x10076008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x158], ecx
mov byte [ebp - 0x119], 0
mov dword [ebp - 0x124], 0
lea ecx, [ebp - 0x40]
call fcn.10005620
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.10005620
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x58]
call fcn.10005620
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x70]
call fcn.10005ad0
mov byte [ebp - 4], 3
push str._boot_loader__r_ntimeout30_r_ndefaultmulti_0_disk_0_rdisk_0_partition_1_WINDOWS_r_n_operating_systems__r_nmulti_0_disk_0_rdisk_0_partition_1_WINDOWS_Microsoft_Windows_XP_Professional___noexecuteoptin__fastdetect_r_n
lea ecx, [ebp - 0x70]
call fcn.10005870
movsx eax, byte [ebp + 0xc]
push eax
movsx ecx, byte [ebp + 8]
push ecx
push str._INF__CopySysFileXP__Start___chSys__d____chWin__d_
call fcn.100098e0
add esp, 0xc
movsx edx, byte [ebp + 8]
push edx
push 0x100682cc
lea eax, [ebp - 0xa0]
push eax
call fcn.1002eaa0
add esp, 0xc
mov dword [ebp - 0x140], eax
mov ecx, dword [ebp - 0x140]
push ecx
lea ecx, [ebp - 0x40]
call fcn.100054a0
lea ecx, [ebp - 0xa0]
call fcn.10005450
movsx edx, byte [ebp + 0xc]
push edx
push str._c:_ntldr
lea eax, [ebp - 0x118]
push eax
call fcn.1002eaa0
add esp, 0xc
mov dword [ebp - 0x13c], eax
mov ecx, dword [ebp - 0x13c]
push ecx
lea ecx, [ebp - 0x28]
call fcn.100054a0
lea ecx, [ebp - 0x118]
call fcn.10005450
push 0
lea ecx, [ebp - 0x28]
call fcn.10005370
push eax
lea ecx, [ebp - 0x40]
call fcn.10005370
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x1000e1c2
mov byte [ebp - 0x11a], 1
jmp 0x1000e1c9
mov byte [ebp - 0x11a], 0
mov dl, byte [ebp - 0x11a]
mov byte [ebp - 0x119], dl
movzx eax, byte [ebp - 0x119]
test eax, eax
jne 0x1000e212
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x144], esp
lea edx, [ebp - 0x28]
push edx
call fcn.10005670
call fcn.10009b10
add esp, 0x18
mov byte [ebp - 0x11d], al
movzx eax, byte [ebp - 0x11d]
test eax, eax
jne 0x1000e212
jmp 0x1000e4d5
movsx ecx, byte [ebp + 8]
push ecx
push 0x100682f4
lea edx, [ebp - 0x100]
push edx
call fcn.1002eaa0
add esp, 0xc
mov dword [ebp - 0x138], eax
mov eax, dword [ebp - 0x138]
push eax
lea ecx, [ebp - 0x40]
call fcn.100054a0
lea ecx, [ebp - 0x100]
call fcn.10005450
movsx ecx, byte [ebp + 0xc]
push ecx
push str._c:_ntdetect.com
lea edx, [ebp - 0xe8]
push edx
call fcn.1002eaa0
add esp, 0xc
mov dword [ebp - 0x134], eax
mov eax, dword [ebp - 0x134]
push eax
lea ecx, [ebp - 0x28]
call fcn.100054a0
lea ecx, [ebp - 0xe8]
call fcn.10005450
push 0
lea ecx, [ebp - 0x28]
call fcn.10005370
push eax
lea ecx, [ebp - 0x40]
call fcn.10005370
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x1000e2ab
mov byte [ebp - 0x11b], 1
jmp 0x1000e2b2
mov byte [ebp - 0x11b], 0
mov cl, byte [ebp - 0x11b]
mov byte [ebp - 0x119], cl
movzx edx, byte [ebp - 0x119]
test edx, edx
jne 0x1000e2fb
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x148], esp
lea eax, [ebp - 0x28]
push eax
call fcn.10005670
call fcn.10009b10
add esp, 0x18
mov byte [ebp - 0x11e], al
movzx ecx, byte [ebp - 0x11e]
test ecx, ecx
jne 0x1000e2fb
jmp 0x1000e4d5
movsx edx, byte [ebp + 8]
push edx
push 0x1006833c
lea eax, [ebp - 0xd0]
push eax
call fcn.1002eaa0
add esp, 0xc
mov dword [ebp - 0x130], eax
mov ecx, dword [ebp - 0x130]
push ecx
lea ecx, [ebp - 0x40]
call fcn.100054a0
lea ecx, [ebp - 0xd0]
call fcn.10005450
movsx edx, byte [ebp + 0xc]
push edx
push str._c:_bootfont.bin
lea eax, [ebp - 0xb8]
push eax
call fcn.1002eaa0
add esp, 0xc
mov dword [ebp - 0x12c], eax
mov ecx, dword [ebp - 0x12c]
push ecx
lea ecx, [ebp - 0x28]
call fcn.100054a0
lea ecx, [ebp - 0xb8]
call fcn.10005450
push 0
lea ecx, [ebp - 0x28]
call fcn.10005370
push eax
lea ecx, [ebp - 0x40]
call fcn.10005370
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x1000e394
mov byte [ebp - 0x11c], 1
jmp 0x1000e39b
mov byte [ebp - 0x11c], 0
mov dl, byte [ebp - 0x11c]
mov byte [ebp - 0x119], dl
movzx eax, byte [ebp - 0x119]
test eax, eax
jne 0x1000e3e4
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x14c], esp
lea edx, [ebp - 0x28]
push edx
call fcn.10005670
call fcn.10009b10
add esp, 0x18
mov byte [ebp - 0x120], al
movzx eax, byte [ebp - 0x120]
test eax, eax
jne 0x1000e3e4
jmp 0x1000e4d5
movsx ecx, byte [ebp + 0xc]
push ecx
push str._c:_boot.ini
lea edx, [ebp - 0x88]
push edx
call fcn.1002eaa0
add esp, 0xc
mov dword [ebp - 0x128], eax
mov eax, dword [ebp - 0x128]
push eax
lea ecx, [ebp - 0x58]
call fcn.100054a0
lea ecx, [ebp - 0x88]
call fcn.10005450
push 0x80
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x150], esp
lea edx, [ebp - 0x58]
push edx
call fcn.10005670
call fcn.10009e20
add esp, 0x1c
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x154], esp
lea eax, [ebp - 0x58]
push eax
call fcn.10005670
call fcn.10009ca0
add esp, 0x18
push 0x100683a0
lea ecx, [ebp - 0x58]
call fcn.10005370
push eax
lea ecx, [ebp - 0x124]
push ecx
call fcn.10040ef1
add esp, 0xc
test eax, eax
je 0x1000e491
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._ERR__CopySysFileXP__File_Open_Error_GetLastError__d
call fcn.100098e0
add esp, 8
jmp 0x1000e4d5
mov edx, dword [ebp - 0x124]
push edx
lea ecx, [ebp - 0x70]
call fcn.10005e70
push eax
push 1
lea ecx, [ebp - 0x70]
call fcn.100057f0
push eax
call fcn.100419e6
add esp, 0x10
test eax, eax
ja 0x1000e4ce
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._ERR__CopySysFileXP__CopySysFileXP_File_Write_Error_GetLastError__d
call fcn.100098e0
add esp, 8
jmp 0x1000e4d5
mov byte [ebp - 0x119], 1
cmp dword [ebp - 0x124], 0
je 0x1000e4ed
mov eax, dword [ebp - 0x124]
push eax
call fcn.10041000
add esp, 4
movzx ecx, byte [ebp - 0x119]
push ecx
push str._SUC__CopySysFileXP__End__bRet_:__d_
call fcn.100098e0
add esp, 8
mov dl, byte [ebp - 0x119]
mov byte [ebp - 0x11f], dl
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x70]
call fcn.10005900
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x58]
call fcn.10005450
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.10005450
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.10005450
mov al, byte [ebp - 0x11f]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1002fa64
mov esp, ebp
pop ebp
ret 8