Function at 0x489ede
Capabilities:
Clear file content
Copy file
Delete file
Enumerate pe sections
Move file
Parse pe header
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b7a78
push 0x4a8984
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
add esp, 0xfffffebc
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov dword [ebp - 0x154], ecx
mov dword [ebp - 0x130], 0xffffffff
mov dword [ebp - 0x128], 0
mov dword [ebp - 0x124], 0
mov byte [ebp - 0x11c], 0
mov ecx, 0x40
xor eax, eax
lea edi, [ebp - 0x11b]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov dword [ebp - 0x120], 0
mov dword [ebp - 0x12c], 0
mov dword [ebp - 0x134], 0xffffffff
cmp dword [ebp + 0xc], 0
je 0x48a009
push 0
push 0
push 3
push 0
push 1
push 0x12019f
mov eax, dword [ebp + 8]
push eax
call dword [0x54b4dc]
mov dword [ebp - 0x130], eax
cmp dword [ebp - 0x130], 0xffffffff
jne 0x48a007
lea ecx, [ebp - 0x11c]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.0048989e
add esp, 8
test eax, eax
je 0x489fd9
push 1
lea eax, [ebp - 0x11c]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
test eax, eax
je 0x489fd9
push 0
mov edx, dword [ebp + 8]
push edx
lea eax, [ebp - 0x11c]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
jne 0x489fde
jmp 0x48a2f9
push 0
push 0
push 3
push 0
push 1
push 0x12019f
mov ecx, dword [ebp + 8]
push ecx
call dword [0x54b4dc]
mov dword [ebp - 0x130], eax
mov dword [ebp - 0x12c], 1
jmp 0x48a028
push 0
push 0
push 3
push 0
push 1
push 0x120089
mov edx, dword [ebp + 8]
push edx
call dword [0x54b4dc]
mov dword [ebp - 0x130], eax
cmp dword [ebp - 0x130], 0xffffffff
jne 0x48a040
mov dword [ebp - 0x134], 0
jmp 0x48a2f9
push 0
push 0
push 0
mov eax, dword [ebp + 0xc]
neg eax
sbb eax, eax
and eax, 2
add eax, 2
push eax
push 0
mov ecx, dword [ebp - 0x130]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov dword [ebp - 0x128], eax
cmp dword [ebp - 0x128], 0
jne 0x48a081
mov dword [ebp - 0x134], 0
jmp 0x48a2f9
push 0
push 0
push 0
mov edx, dword [ebp + 0xc]
neg edx
sbb edx, edx
and edx, 0xfffffffe
add edx, 4
push edx
mov eax, dword [ebp - 0x128]
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [ebp - 0x124], eax
cmp dword [ebp - 0x124], 0
jne 0x48a0c0
mov dword [ebp - 0x134], 0
jmp 0x48a2f9
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x124]
mov dword [ebp - 0x138], ecx
mov edx, dword [ebp - 0x138]
xor eax, eax
mov ax, word [edx]
cmp eax, 0x5a4d
je 0x48a0ea
jmp 0x48a2d6
mov ecx, dword [ebp - 0x138]
mov edx, dword [ebp - 0x124]
add edx, dword [ecx + 0x3c]
mov dword [ebp - 0x144], edx
mov eax, dword [ebp - 0x144]
cmp dword [eax], 0x4550
jne 0x48a11d
mov ecx, dword [ebp - 0x144]
xor edx, edx
mov dx, word [ecx + 6]
test edx, edx
jne 0x48a122
jmp 0x48a2d6
mov eax, dword [ebp - 0x144]
xor ecx, ecx
mov cx, word [eax + 0x14]
mov edx, dword [ebp - 0x144]
lea eax, [edx + ecx + 0x18]
mov dword [ebp - 0x140], eax
mov ecx, dword [ebp - 0x144]
xor edx, edx
mov dx, word [ecx + 6]
sub edx, 1
imul edx, edx, 0x28
mov eax, dword [ebp - 0x140]
add eax, edx
mov dword [ebp - 0x140], eax
mov ecx, dword [ebp - 0x144]
mov edx, dword [ebp - 0x140]
mov eax, dword [ecx + 0x28]
cmp eax, dword [edx + 0xc]
jb 0x48a18f
mov ecx, dword [ebp - 0x140]
mov edx, dword [ecx + 0xc]
mov eax, dword [ebp - 0x140]
add edx, dword [eax + 8]
mov ecx, dword [ebp - 0x144]
cmp dword [ecx + 0x28], edx
jbe 0x48a194
jmp 0x48a2d6
mov edx, dword [ebp - 0x140]
cmp dword [edx], 0x73622e
je 0x48a1a7
jmp 0x48a2d6
mov eax, dword [ebp - 0x140]
mov ecx, dword [ebp - 0x124]
add ecx, dword [eax + 0x14]
mov dword [ebp - 0x148], ecx
mov edx, dword [ebp - 0x144]
mov eax, dword [ebp - 0x140]
mov ecx, dword [edx + 0x28]
sub ecx, dword [eax + 0xc]
mov edx, dword [ebp - 0x148]
add edx, ecx
mov dword [ebp - 0x14c], edx
push 1
push 0x54297c
mov eax, dword [ebp - 0x14c]
push eax
call sub.ntdll.dll_memcmp
add esp, 0xc
test eax, eax
je 0x48a1fb
jmp 0x48a2d6
mov ecx, dword [ebp - 0x14c]
add ecx, 0x199
mov dword [ebp - 0x13c], ecx
mov edx, dword [ebp - 0x13c]
xor eax, eax
mov al, byte [edx]
cmp eax, 0xe9
je 0x48a223
jmp 0x48a2d6
cmp dword [ebp + 0xc], 0
je 0x48a2c2
mov ecx, dword [ebp - 0x13c]
add ecx, 5
sub ecx, dword [ebp - 0x148]
mov edx, dword [ebp - 0x140]
add ecx, dword [edx + 0xc]
mov eax, dword [ebp - 0x13c]
add ecx, dword [eax + 1]
mov dword [ebp - 0x150], ecx
mov ecx, dword [ebp - 0x144]
mov edx, dword [ebp - 0x150]
mov dword [ecx + 0x28], edx
mov eax, dword [ebp - 0x144]
mov cx, word [eax + 6]
sub cx, 1
mov edx, dword [ebp - 0x144]
mov word [edx + 6], cx
mov eax, dword [ebp - 0x140]
mov ecx, dword [eax + 0x14]
mov dword [ebp - 0x120], ecx
mov edx, dword [ebp - 0x144]
mov eax, dword [edx + 0x38]
push eax
mov ecx, dword [ebp - 0x140]
mov edx, dword [ecx + 0xc]
push edx
call fcn.00489ea2
add esp, 8
mov ecx, dword [ebp - 0x144]
mov dword [ecx + 0x50], eax
push 0x28
push 0
mov edx, dword [ebp - 0x140]
push edx
call sub.ntdll.dll_memset
add esp, 0xc
mov dword [ebp - 0x134], 1
xor eax, eax
test eax, eax
jne 0x48a0c7
mov dword [ebp - 4], 0xffffffff
jmp 0x48a2ef
xor ecx, ecx
test ecx, ecx
jne 0x489f62
cmp dword [ebp - 0x124], 0
je 0x48a30f
mov edx, dword [ebp - 0x124]
push edx
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
cmp dword [ebp - 0x128], 0
je 0x48a325
mov eax, dword [ebp - 0x128]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x130], 0xffffffff
je 0x48a3b7
cmp dword [ebp + 0xc], 0
je 0x48a3aa
cmp dword [ebp - 0x134], 1
jne 0x48a37d
cmp dword [ebp - 0x120], 0
je 0x48a37d
push 0
push 0
mov ecx, dword [ebp - 0x120]
push ecx
mov edx, dword [ebp - 0x130]
push edx
call dword [0x54b4e4]
mov eax, dword [ebp - 0x130]
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x48a37d
mov dword [ebp - 0x134], 0
cmp dword [ebp - 0x134], 1
jne 0x48a3aa
cmp dword [ebp - 0x12c], 0
je 0x48a3aa
push 4
push 0
lea ecx, [ebp - 0x11c]
push ecx
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
mov dword [ebp - 0x134], 0xfffffffe
mov edx, dword [ebp - 0x130]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x134]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8