Function at 0x10026d5a
Capabilities:
Delete file
Write file on windows

Disassembly:
push 0x54
mov eax, 0x10077866
call fcn.1004e336
mov ebx, ecx
cmp dword [ebp + 0xc], 3
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0x5c], esi
jne 0x10026e9f
call fcn.100276b1
cmp dword [ebx + 0x14], 0
je 0x10026dcc
sub esp, 0x18
mov ecx, esp
push 0x100893e0
call fcn.100017d6
lea edx, [ebx + 0x10]
lea ecx, [ebp - 0x58]
call fcn.100262f9
add esp, 0x18
and dword [ebp - 4], 0
cmp dword [eax + 0x14], 0x10
jb 0x10026daf
mov eax, dword [eax]
push eax
push str.decrypt_to:__s
call fcn.1002f2c1
or dword [ebp - 4], 0xffffffff
pop ecx
pop ecx
push 0
push 1
lea ecx, [ebp - 0x58]
call fcn.10001805
mov esi, str.77u_cG9kbH
push esi
call fcn.10001390
pop ecx
push eax
push 0
push esi
mov ecx, edi
call fcn.100067d1
neg eax
sbb eax, eax
inc eax
cmp dword [ebx + 0x36c], 0xffffffff
mov dword [ebx + 0x370], eax
jne 0x10026f6f
lea esi, [ebx + 0x162]
mov dl, 1
mov ecx, esi
call fcn.1003022c
push dword [ebp - 0x5c]
lea eax, [ebp - 0x40]
push eax
call fcn.100039d4
pop ecx
pop ecx
mov dword [ebp - 4], 1
cmp dword [eax + 0x14], 8
jb 0x10026e27
mov eax, dword [eax]
push eax
call fcn.10030905
push eax
lea eax, [ebp - 0x58]
push str..._08x__s
push eax
call fcn.100324b2
add esp, 0x10
cmp dword [eax + 0x14], 8
jb 0x10026e47
mov eax, dword [eax]
push eax
push esi
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
push 0
push 1
lea ecx, [ebp - 0x58]
call fcn.100065b4
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
push 0
push 1
call fcn.100065b4
xor eax, eax
push eax
push eax
push 2
push eax
push eax
push 0x40000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebx + 0x36c], eax
cmp eax, 0xffffffff
jne 0x10026e9c
push 0x1008c9a0
call fcn.1002f536
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov esi, dword [ebp - 0x5c]
mov eax, dword [ebx + 0x36c]
cmp eax, 0xffffffff
je 0x10026fb3
cmp dword [ebp + 0xc], 1
jne 0x10026f7c
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebx + 0x370], 0
je 0x10026ed8
push ecx
push 2
lea ecx, [ebx + 0x162]
pop edx
call fcn.1003fd57
pop ecx
or dword [ebx + 0x36c], 0xffffffff
cmp dword [ebx + 0x370], 0
je 0x10026f2b
lea eax, [ebp - 0x40]
push esi
push eax
call fcn.100039d4
pop ecx
pop ecx
push eax
mov ecx, ebx
mov dword [ebp - 4], 2
lea edi, [ebx + 0x162]
call fcn.1001a672
push edi
mov esi, eax
call fcn.10002f58
pop ecx
push eax
push edi
mov ecx, esi
call fcn.1000660b
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
push 0
push 1
call fcn.100065b4
push dword [ebp - 0x5c]
lea eax, [ebp - 0x40]
push eax
call fcn.100039d4
pop ecx
pop ecx
push eax
lea ecx, [ebx + 8]
mov dword [ebp - 4], 3
lea edi, [ebx + 0x162]
call fcn.1001a672
push edi
mov esi, eax
call fcn.10002f58
pop ecx
push eax
push edi
mov ecx, esi
call fcn.1000660b
push 0
push 1
lea ecx, [ebp - 0x40]
call fcn.100065b4
jmp 0x10026fb3
push 0x1008c9b8
call fcn.1002f7ab
pop ecx
jmp 0x10026fb3
mov edx, edi
lea ecx, [ebp - 0x28]
call fcn.10035136
cmp dword [ebp - 0x14], 0x10
lea ecx, [ebp - 0x5c]
push 0
push ecx
push dword [ebp - 0x18]
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
push dword [ebx + 0x36c]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
push 1
lea ecx, [ebp - 0x28]
call fcn.10001805
call fcn.1004e2e0
ret 0xc