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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 0x10c], edx
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0
push 0x80
push 4
push 0
push 0
push 0x40000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x10065915
push 2
push 0
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea eax, [ebp - 0x108]
push eax
push 9
push str._Version_
push ebx
call edi
push 0
lea eax, [ebp - 0x108]
push eax
push 2
push 0x100c5bac
push ebx
call edi
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
push 0x80
push 4
push 0
push 0
push 0x40000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x1006596f
push 2
push 0
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea eax, [ebp - 0x108]
push eax
push 0x18
push str.Signature__Windows_NT__
push ebx
call edi
push 0
lea eax, [ebp - 0x108]
push eax
push 2
push 0x100c5bac
push ebx
call edi
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
push 0x80
push 4
push 0
push 0
push 0x40000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x100659c9
push 2
push 0
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea eax, [ebp - 0x108]
push eax
push 0x10
push str._Defaultinstall_
push ebx
call edi
push 0
lea eax, [ebp - 0x108]
push eax
push 2
push 0x100c5bac
push ebx
call edi
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x10c], 0
mov ecx, esi
mov edx, str.addREGGc
jne 0x100659de
mov edx, str.delregGc
call fcn.10065810
push 0
push 0x80
push 4
push 0
push 0
push 0x40000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x10065a41
push 2
push 0
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea eax, [ebp - 0x108]
push eax
push 4
push str._Gc_
push ebx
call edi
push 0
lea eax, [ebp - 0x108]
push eax
push 2
push 0x100c5bac
push ebx
call edi
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
call ebx
jmp 0x10065a47
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x10c], 0
movdqu xmm0, xmmword [str.HKCR__lnkfile___IsShortcut_]
mov eax, dword [0x100c6290]
mov dword [ebp - 0xec], eax
movdqu xmmword [ebp - 0x104], xmm0
movq xmm0, qword [0x100c6288]
movq qword [ebp - 0xf4], xmm0
je 0x10065ab3
lea ecx, [ebp - 0x104]
dec ecx
mov al, byte [ecx + 1]
lea ecx, [ecx + 1]
test al, al
jne 0x10065a82
mov eax, dword [str.__0x00000000____]
mov dword [ecx], eax
mov eax, dword [0x100c6298]
mov dword [ecx + 4], eax
mov eax, dword [0x100c629c]
mov dword [ecx + 8], eax
mov eax, dword [0x100c62a0]
mov dword [ecx + 0xc], eax
mov al, byte [0x100c62a4]
mov byte [ecx + 0x10], al
push 0
push 0x80
push 4
push 0
push 0
push 0x40000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x10065b23
push 2
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea ecx, [ebp - 0x104]
lea edx, [ecx + 1]
lea esp, [esp]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10065af0
push 0
lea eax, [ebp - 0x108]
sub ecx, edx
push eax
push ecx
lea eax, [ebp - 0x104]
push eax
push esi
call edi
push 0
lea eax, [ebp - 0x108]
push eax
push 2
push 0x100c5bac
push esi
call edi
push esi
call ebx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1007a730
mov esp, ebp
pop ebp
ret