Function at 0x715e0a6a
Capabilities:
Delete file
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov eax, dword [eax + 0x14]
push edi
mov edi, 0x8000
xor ebx, ebx
push edi
push 0x40
mov dword [ebp - 0x24], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x20], eax
call esi
push edi
push 0x40
mov dword [ebp - 8], eax
call esi
cmp dword [ebp - 8], ebx
mov dword [ebp - 0x18], eax
je 0x715e0c70
cmp eax, ebx
je 0x715e0c70
push ebx
mov ebx, 0x80
mov esi, dword [sym.imp.KERNEL32.dll_CreateFileA]
push ebx
push 2
push 0
mov edi, 0xc0000000
push 0
push edi
push dword [ebp + 0xc]
call esi
cmp eax, 0xffffffff
mov dword [ebp - 0x10], eax
jne 0x715e0aef
push dword [ebp + 0xc]
call fcn.715e0ee1
xor eax, eax
push eax
push ebx
push 2
push eax
push eax
push edi
push dword [ebp + 0xc]
call esi
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0xffffffff
je 0x715e0c67
mov eax, dword [ebp + 8]
xor edi, edi
push edi
push edi
push dword [eax + 0x18]
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov esi, dword [sym.imp.KERNEL32.dll_ReadFile]
cmp eax, 0xffffffff
je 0x715e0b46
lea eax, [ebp - 0x28]
push edi
push eax
lea eax, [ebp - 0xc]
push 4
push eax
push dword [ebp + 0x10]
call esi
test eax, eax
je 0x715e0b3d
cmp dword [ebp - 0xc], 0x504a4743
je 0x715e0b4a
mov dword [ebp - 4], 0xfffffff9
jmp 0x715e0b4a
mov dword [ebp - 4], 0xfffffffb
jmp 0x715e0b4a
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 4], edi
jne 0x715e0c2d
cmp dword [ebp - 0x20], edi
jle 0x715e0c2d
lea eax, [ebp - 0x28]
push edi
push eax
lea eax, [ebp - 0xc]
push 4
push eax
push dword [ebp + 0x10]
call esi
test eax, eax
je 0x715e0c1d
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 8]
movzx ebx, word [ebp - 0xc]
shr eax, 0x10
cmp ax, 0x8000
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x14], ebx
ja 0x715e0cc1
cmp word [ebp - 0xc], 0x8000
ja 0x715e0cc1
cmp ax, di
jne 0x715e0bbb
lea eax, [ebp - 0x14]
push edi
push eax
push ebx
push ecx
push dword [ebp + 0x10]
call esi
test eax, eax
jne 0x715e0be4
mov dword [ebp - 4], 0xfffffffb
jmp 0x715e0be4
movzx edi, ax
mov ecx, dword [ebp - 0x18]
lea eax, [ebp - 0x28]
push 0
push eax
push edi
mov dword [ebp - 0x1c], ecx
push dword [ebp - 8]
push dword [ebp + 0x10]
call esi
test eax, eax
jne 0x715e0c9d
mov dword [ebp - 4], 0xfffffffb
xor edi, edi
cmp dword [ebp - 4], edi
jne 0x715e0c2d
push dword [ebp - 0x24]
push dword [ebp - 0x14]
push dword [ebp - 0x1c]
call fcn.715e109e
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x2c]
push edi
push eax
push dword [ebp - 0x14]
push dword [ebp - 0x1c]
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x715e0c26
mov eax, dword [ebp - 0x2c]
sub dword [ebp - 0x20], eax
jmp 0x715e0b53
mov dword [ebp - 4], 0xfffffffb
jmp 0x715e0c2d
mov dword [ebp - 4], 0xfffffffa
mov esi, dword [ebp + 8]
lea eax, [esi + 0xc]
push eax
push edi
push edi
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_SetFileTime]
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x24]
cmp eax, dword [esi + 0x1c]
je 0x715e0c57
mov dword [ebp - 4], 0xfffffff5
cmp dword [ebp - 4], edi
je 0x715e0c77
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
jmp 0x715e0c77
mov dword [ebp - 4], 0xfffffff6
jmp 0x715e0c77
mov dword [ebp - 4], 0xfffffff7
cmp dword [ebp - 8], 0
mov esi, dword [sym.imp.KERNEL32.dll_LocalFree]
je 0x715e0c88
push dword [ebp - 8]
call esi
cmp dword [ebp - 0x18], 0
je 0x715e0c93
push dword [ebp - 0x18]
call esi
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 0xc
push ebx
push dword [ebp - 0x18]
push edi
push dword [ebp - 8]
call fcn.715df706
cmp eax, ebx
mov dword [ebp - 0x14], eax
je 0x715e0be2
mov dword [ebp - 4], 0xfffffff8
jmp 0x715e0be2
mov dword [ebp - 4], 0xfffffffd
jmp 0x715e0be4