Function at 0x1000ccb0
Capabilities:
Delete file
Enumerate pe sections
Get file size
Get system information on windows
Parse pe header
Read file via mapping
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1001db2e
mov eax, dword fs:[0]
push eax
sub esp, 0xc0
mov eax, dword [0x10028008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x7c], edx
mov esi, ecx
xor edi, edi
mov byte [ebp - 0x41], 0
mov dword [ebp - 0x98], edi
mov dword [ebp - 0x94], edi
mov dword [ebp - 0x90], edi
mov dword [ebp - 4], edi
mov dword [ebp - 0x8c], edi
mov dword [ebp - 0x88], edi
mov dword [ebp - 0x84], edi
mov dword [ebp - 0x78], edi
mov dword [ebp - 0x74], edi
mov dword [ebp - 0x70], edi
mov byte [ebp - 4], 2
lea eax, [ebp - 0xc8]
xorps xmm0, xmm0
mov dword [ebp - 0xc8], edi
push eax
movdqu xmmword [ebp - 0xc4], xmm0
movdqu xmmword [ebp - 0xb4], xmm0
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
cmp dword [esi + 0x14], 8
mov eax, dword [ebp - 0xac]
mov dword [ebp - 0x80], eax
jb 0x1000cd53
mov esi, dword [esi]
push 0
push 0x80
push 3
push 0
push 7
push 0x80000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [ebp - 0x60], esi
cmp esi, 0xffffffff
je 0x1000d1e6
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
je 0x1000d1af
cmp eax, 0x8000
jb 0x1000d1af
push 0
push 0
push 0
push 2
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [ebp - 0x68], eax
test eax, eax
je 0x1000d1af
push 0x8000
push 0
push 0
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov edi, eax
mov dword [ebp - 0x4c], edi
test edi, edi
je 0x1000d1a0
mov eax, 0x5a4d
cmp word [edi], ax
je 0x1000cde8
push edi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
jmp 0x1000d1a0
mov edx, dword [edi + 0x3c]
mov dword [ebp - 0x5c], edx
cmp dword [edx + edi], 0x4550
je 0x1000ce03
push edi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
jmp 0x1000d1a0
movzx ecx, word [edx + edi + 6]
mov dword [ebp - 0x48], ecx
test cx, cx
jne 0x1000ce1c
push edi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
jmp 0x1000d1a0
movzx eax, word [edx + edi + 0x14]
lea esi, [edi + 0x18]
add eax, edx
add esi, eax
xor eax, eax
cmp ax, cx
jae 0x1000ce4d
movzx edi, cx
push esi
lea ecx, [ebp - 0x98]
call fcn.1000d210
add esi, 0x28
dec edi
jne 0x1000ce32
mov edi, dword [ebp - 0x4c]
mov ecx, dword [ebp - 0x48]
mov edx, dword [ebp - 0x5c]
mov eax, dword [edx + edi + 0x8c]
mov esi, dword [edx + edi + 0x88]
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x48], 0
test eax, eax
jne 0x1000ce75
push edi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
jmp 0x1000d19d
movzx eax, cx
xor edx, edx
mov dword [ebp - 0x5c], eax
test eax, eax
jle 0x1000cebc
mov eax, dword [ebp - 0x98]
add eax, 0xc
lea ebx, [ebx]
mov ecx, dword [eax]
mov dword [ebp - 0x4c], ecx
mov ecx, dword [eax - 4]
add ecx, dword [eax]
cmp esi, dword [eax]
jb 0x1000cea2
cmp esi, ecx
jb 0x1000cead
inc edx
add eax, 0x28
cmp edx, dword [ebp - 0x5c]
jl 0x1000ce90
jmp 0x1000cebc
mov eax, dword [eax + 8]
sub eax, dword [ebp - 0x4c]
add esi, eax
mov dword [ebp - 0x48], 1
push edi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
cmp dword [ebp - 0x48], 0
je 0x1000d19d
mov ecx, dword [ebp - 0x80]
xor edx, edx
mov eax, esi
div ecx
mov edi, eax
test edx, edx
je 0x1000ceea
imul edi, ecx
mov eax, esi
mov ecx, dword [ebp - 0x50]
sub eax, edi
add ecx, eax
jmp 0x1000ceef
mov ecx, dword [ebp - 0x50]
mov edi, esi
push ecx
push edi
push 0
push 4
push dword [ebp - 0x68]
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [ebp - 0xa4], eax
test eax, eax
je 0x1000d19d
sub eax, edi
mov edi, eax
mov dword [ebp - 0x58], eax
add edi, esi
mov dword [ebp - 0x58], edi
mov esi, edi
xor ecx, ecx
mov dword [ebp - 0x48], esi
mov ax, word [esi + 0xe]
lea edx, [esi + 0x10]
add ax, word [esi + 0xc]
mov dword [ebp - 0x54], ecx
movzx ecx, ax
mov eax, dword [ebp - 0x54]
mov dword [ebp - 0x6c], ecx
mov dword [ebp - 0x50], edx
cmp ax, cx
jae 0x1000d0fb
movzx eax, ax
mov esi, dword [edx + eax*8 + 4]
test esi, esi
js 0x1000d144
mov eax, dword [esi + edi + 4]
lea ecx, [esi + edi]
mov dword [ebp - 0x64], ecx
mov dword [ebp - 0x4c], eax
cmp eax, 0x1000
jb 0x1000d0ea
mov esi, dword [ecx]
xor edx, edx
cmp dword [ebp - 0x5c], edx
jle 0x1000d0e7
mov eax, dword [ebp - 0x98]
add eax, 0xc
nop
mov edi, dword [eax]
mov ecx, dword [eax - 4]
add ecx, edi
cmp esi, edi
jb 0x1000cf8f
cmp esi, ecx
jb 0x1000cf9d
inc edx
add eax, 0x28
cmp edx, dword [ebp - 0x5c]
jl 0x1000cf80
jmp 0x1000d0e4
mov eax, dword [eax + 8]
xor edx, edx
mov ecx, dword [ebp - 0x80]
sub eax, edi
add esi, eax
mov eax, esi
div ecx
mov edi, eax
mov eax, dword [ebp - 0x4c]
test edx, edx
je 0x1000cfbf
imul edi, ecx
sub eax, edi
add eax, esi
jmp 0x1000cfc1
mov edi, esi
push eax
push edi
push 0
push 4
push dword [ebp - 0x68]
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [ebp - 0x9c], eax
test eax, eax
je 0x1000d0e4
sub eax, edi
lea edi, [eax + esi]
mov eax, 0x5a4d
cmp word [edi], ax
jne 0x1000d0d8
xor eax, eax
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
push 0x10025b40
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 3
call fcn.10001a70
lea edx, [ebp - 0x28]
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x40]
call fcn.1000bb20
lea ecx, [ebp - 0x40]
mov byte [ebp - 0x41], al
mov byte [ebp - 4], 3
call fcn.10001ad0
cmp byte [ebp - 0x41], 0
je 0x1000d0cc
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push 0
cmovae eax, dword [ebp - 0x28]
push 0x80
push 2
push 0
push 1
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x1000d0cc
push 0
lea eax, [ebp - 0x4c]
mov dword [ebp - 0x4c], 0
push eax
mov eax, dword [ebp - 0x64]
push dword [eax + 4]
push edi
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x28]
lea edx, [ebp - 0xa0]
cmovae ecx, dword [ebp - 0x28]
call fcn.1000bf10
test al, al
je 0x1000d0ba
mov eax, dword [ebp - 0xa0]
mov ecx, dword [ebp - 0x7c]
mov dword [ebp - 0x64], eax
lea eax, [ebp - 0x64]
push eax
call fcn.10004980
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 2
call fcn.10001ad0
push dword [ebp - 0x9c]
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov edi, dword [ebp - 0x58]
mov edx, dword [ebp - 0x50]
mov eax, dword [ebp - 0x54]
inc eax
mov dword [ebp - 0x54], eax
cmp ax, word [ebp - 0x6c]
jb 0x1000cf42
mov edx, dword [ebp - 0x88]
mov eax, edx
mov esi, dword [ebp - 0x8c]
sub eax, esi
sar eax, 2
test eax, eax
je 0x1000d180
lea ecx, [eax - 1]
cmp eax, ecx
jbe 0x1000d176
mov eax, dword [ebp - 0x74]
sub eax, dword [ebp - 0x78]
mov esi, dword [esi + ecx*4]
sar eax, 1
mov dword [ebp - 0x48], esi
cmp eax, ecx
jbe 0x1000d176
mov eax, dword [ebp - 0x78]
sub edx, 4
sub dword [ebp - 0x74], 2
mov dword [ebp - 0x88], edx
movzx ecx, word [eax + ecx*2]
jmp 0x1000cf1f
lea eax, [ebp - 0x48]
push eax
lea ecx, [ebp - 0x8c]
call fcn.10004980
mov eax, dword [ebp - 0x54]
lea ecx, [ebp - 0x78]
inc eax
movzx eax, ax
mov dword [ebp - 0x6c], eax
lea eax, [ebp - 0x6c]
push eax
call fcn.1000d2c0
and esi, 0x7fffffff
add esi, edi
jmp 0x1000cf1a
push str.invalid_vector_T__subscript
call fcn.1000db67
push dword [ebp - 0xa4]
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov ecx, dword [ebp - 0x7c]
mov eax, dword [ecx + 4]
sub eax, dword [ecx]
test eax, 0xfffffffc
setne byte [ebp - 0x41]
mov esi, dword [ebp - 0x60]
push dword [ebp - 0x68]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [ebp - 0x98]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x78]
test eax, eax
je 0x1000d1c6
push eax
call fcn.1000e356
add esp, 4
mov eax, dword [ebp - 0x8c]
test eax, eax
je 0x1000d1d9
push eax
call fcn.1000e356
add esp, 4
test edi, edi
je 0x1000d1e6
push edi
call fcn.1000e356
add esp, 4
mov al, byte [ebp - 0x41]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1000db9e
mov esp, ebp
pop ebp
ret