Function at 0x1006c291
Capabilities:
Delete file
Get file size
Read file on windows
Set file attributes
Timestomp file
Write file on windows

Disassembly:
mov eax, 0x101390d4
call fcn.1007db34
sub esp, 0xb98
push ebx
xor ebx, ebx
push esi
push ebx
call fcn.100680fb
mov eax, dword [ebp + 8]
pop ecx
cmp eax, ebx
je 0x1006ca05
cmp word [eax], bx
je 0x1006ca05
mov esi, dword [ebp + 0xc]
cmp esi, ebx
je 0x1006ca05
cmp word [esi], bx
je 0x1006ca05
cmp dword [0x101aef34], ebx
jne 0x1006c2e8
push 0x2bda
push 2
jmp 0x1006ca0c
push eax
call fcn.10073be5
test al, 0x10
pop ecx
mov dword [ebp - 0x54], eax
je 0x1006c302
push 0x2be2
push 0x1d
jmp 0x1006ca0c
push esi
call fcn.10073be5
cmp eax, 0xffffffff
pop ecx
mov dword [ebp - 0x10], eax
je 0x1006c321
test al, 0x10
je 0x1006c321
push 0x2bec
push 0x1e
jmp 0x1006ca0c
cmp dword [ebp + 0x1c], ebx
push 5
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x34], ebx
pop esi
je 0x1006c354
cmp dword [0x101b04b8], ebx
push 7
pop esi
je 0x1006c354
push esi
push 0x2bff
push str._CEncryptScheme::EncryptFile__Line:_d__Call_From_CopyFileExW_ShareMode___08x_
push str.SafeDoc
push 4
call fcn.1007bb15
add esp, 0x14
push edi
mov edi, 0x80
push ebx
push edi
push 3
push ebx
push esi
push connect
push dword [ebp + 8]
call fcn.1006c0f5
add esp, 0x1c
cmp eax, 0xffffffff
mov dword [ebp - 0x14], eax
je 0x1006c95b
cmp dword [ebp - 0x10], 0xffffffff
je 0x1006c397
test byte [ebp - 0x10], 1
je 0x1006c397
mov eax, dword [ebp - 0x10]
and al, 0xfe
push eax
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push ebx
push edi
push 4
push ebx
push 1
pop esi
push esi
push 0xc0000000
push dword [ebp + 0xc]
call fcn.1006c0f5
add esp, 0x1c
cmp eax, 0xffffffff
mov dword [ebp + 0x1c], eax
je 0x1006c96e
xor eax, eax
cmp dword [ebp - 0x10], 0xffffffff
mov ecx, 0xf7
lea edi, [ebp - 0x81b]
sete al
mov dword [ebp - 0x34], eax
xor eax, eax
mov byte [ebp - 0x81c], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x81c]
push eax
call fcn.1006ba8f
test eax, eax
pop ecx
je 0x1006c977
mov edx, 0xe1
xor eax, eax
mov ecx, edx
lea edi, [ebp - 0x43b]
mov byte [ebp - 0x43c], bl
cmp dword [ebp + 0x10], ebx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
jne 0x1006c476
cmp dword [ebp - 0x10], 0xffffffff
je 0x1006c476
mov ecx, edx
xor eax, eax
lea edi, [ebp - 0xba3]
mov byte [ebp - 0xba4], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0xba4]
push eax
push dword [ebp + 0x1c]
call fcn.1006b6c4
pop ecx
test eax, eax
pop ecx
je 0x1006c476
lea eax, [ebp - 0xba4]
push 0x10
push eax
lea eax, [ebp - 0x43c]
push eax
xor esi, esi
call fcn.1007dea0
lea eax, [ebp - 0xb5c]
push 0x198
push eax
lea eax, [ebp - 0x3f4]
push eax
call fcn.1007dea0
add esp, 0x18
lea eax, [ebp - 0x43c]
push esi
push eax
call fcn.1006bb59
pop ecx
test eax, eax
pop ecx
je 0x1006c980
push 0xf
xor eax, eax
pop ecx
lea edi, [ebp - 0xb3]
mov byte [ebp - 0xb4], bl
mov dword [ebp - 0x4c], ebx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x40]
mov dword [ebp - 0x40], ebx
push eax
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0xb4]
push 0x40
push eax
push dword [ebp - 0x248]
mov dword [ebp - 0x24], ebx
push dword [ebp - 0x250]
push dword [ebp - 0x41c]
call fcn.10070e2f
mov esi, eax
add esp, 0x20
cmp esi, ebx
mov dword [ebp - 0x60], esi
je 0x1006c989
push esi
call fcn.1005fb73
cmp eax, ebx
pop ecx
mov dword [ebp - 0x18], eax
je 0x1006c992
xor eax, eax
lea edi, [ebp - 0x58]
mov dword [ebp - 0x5c], ebx
mov dword [ebp - 0x68], ebx
stosd dword es:[edi], eax
lea edi, [ebp - 0x64]
mov dword [ebp - 0x70], ebx
stosd dword es:[edi], eax
lea edi, [ebp - 0x6c]
stosd dword es:[edi], eax
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp - 0x5c]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_GetFileTime]
lea eax, [ebp - 0x38]
mov dword [ebp - 0x38], ebx
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push dword [ebp - 0x38]
mov edi, eax
push edi
push dword [ebp + 0x1c]
call fcn.100615fb
add esp, 0xc
test eax, eax
je 0x1006c99b
cmp dword [ebp - 0x4c], ebx
mov dword [ebp - 0x34], 1
je 0x1006c562
or dword [ebp - 0x7f8], 8
cmp dword [ebp - 0x40], ebx
je 0x1006c56e
or dword [ebp - 0x7f8], 0x10
push dword [ebp - 0x14]
call fcn.10071121
mov dword [ebp - 0x42c], eax
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x420], eax
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0xb4]
push dword [ebp - 0x24]
mov dword [ebp - 0x428], ebx
mov dword [ebp - 0x424], edi
mov dword [ebp - 0x418], esi
push eax
call fcn.10074cd3
add esp, 0x10
mov esi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov edi, 0x3e0
mov dword [ebp - 0x400], ebx
push ebx
push ebx
push ebx
mov dword [ebp - 0x404], edi
push dword [ebp - 0x14]
mov dword [ebp - 0x3fc], ebx
mov dword [ebp - 0x3f8], ebx
mov dword [ebp - 0xc4], ebx
mov dword [ebp - 0xc0], ebx
mov dword [ebp - 0xbc], ebx
mov dword [ebp - 0xb8], ebx
call esi
push ebx
push ebx
push ebx
push dword [ebp + 0x1c]
call esi
lea eax, [ebp - 0x81c]
push eax
call fcn.1006bad2
lea eax, [ebp - 0x81c]
push edi
push eax
push dword [ebp + 0x1c]
call fcn.1006bd3b
add esp, 0x10
test eax, eax
je 0x1006c9a4
cmp dword [ebp - 0x424], ebx
mov dword [ebp - 0x30], ebx
mov dword [ebp + 0x10], ebx
jne 0x1006c647
cmp dword [ebp - 0x420], ebx
jne 0x1006c647
mov dword [ebp - 0x30], 1
mov dword [ebp + 0x10], ebx
jmp 0x1006c80d
mov edi, 0x10000
push edi
call fcn.1007e238
pop ecx
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x18]
push edi
mov eax, dword [ecx]
call dword [eax + 8]
add eax, 4
push eax
mov dword [ebp - 0x44], eax
call fcn.1007e238
pop ecx
mov dword [ebp - 0x50], eax
push ebx
push ebx
push dword [ebp - 0x404]
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x74], ebx
mov dword [ebp - 0x10], eax
push dword [ebp + 0x1c]
call esi
push edi
push ebx
push dword [ebp - 0x1c]
call fcn.1007e1e0
push dword [ebp - 0x44]
push ebx
push dword [ebp - 0x10]
call fcn.1007e1e0
add esp, 0x18
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], ebx
push ebx
push eax
push edi
push dword [ebp - 0x1c]
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1006c761
cmp dword [ebp - 0x20], ebx
je 0x1006c76a
lea eax, [ebp - 0x74]
mov dword [ebp - 0x28], ebx
push eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xb4]
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push dword [ebp - 0x24]
push eax
push dword [ebp - 0x18]
call fcn.1006c142
add esp, 0x28
cmp eax, ebx
jne 0x1006c773
mov eax, dword [ebp - 0x10]
push dword [ebp - 0x28]
add eax, 4
push eax
call fcn.10074cb0
pop ecx
pop ecx
mov ecx, dword [ebp - 0x10]
push ebx
mov dword [ecx], eax
lea eax, [ebp - 0x48]
push eax
mov eax, dword [ebp - 0x28]
add eax, 4
mov dword [ebp - 0x48], ebx
push eax
push dword [ebp - 0x10]
push dword [ebp + 0x1c]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1006c7c4
mov eax, dword [ebp - 0x28]
add eax, 4
cmp dword [ebp - 0x48], eax
jb 0x1006c7cb
cmp dword [ebp - 0x400], ebx
jne 0x1006c750
mov dword [ebp - 0x3fc], eax
inc dword [ebp - 0x400]
mov dword [ebp - 0x3f8], eax
jmp 0x1006c685
push 0x2cbd
push 0xd
jmp 0x1006c7d2
mov dword [ebp - 0x30], 1
jmp 0x1006c7e0
jge 0x1006c7bb
push 0x1019f4bc
lea ecx, [ebp - 0x18]
call fcn.10094520
push 0x2cd0
lea eax, [ebp - 0x18]
push dword [ebp - 0x24]
mov dword [ebp - 4], ebx
push dword [ebp - 0x20]
push dword [ebp - 0x60]
push dword [ebp + 8]
push str.Error:_Encrypt_Data_Failed__File_s__Algrithm_d__DataLen_lu_KeyLen_lu__LINE_d
push eax
call fcn.10097c40
push dword [ebp - 0x18]
call fcn.10072272
or dword [ebp - 4], 0xffffffff
add esp, 0x20
lea ecx, [ebp - 0x18]
call fcn.10094cc0
push 0x2cd4
push 0x11
jmp 0x1006c7d2
push 0x2cde
jmp 0x1006c7d0
push 0x2ce5
push 0xe
call fcn.100680dd
pop ecx
mov dword [ebp + 0x10], 1
pop ecx
cmp dword [ebp - 0x1c], ebx
je 0x1006c7ee
push dword [ebp - 0x1c]
call fcn.1007de95
pop ecx
cmp dword [ebp - 0x50], ebx
je 0x1006c7fc
push dword [ebp - 0x50]
call fcn.1007de95
pop ecx
cmp dword [ebp - 0x2c], ebx
je 0x1006c80d
push dword [ebp - 0x2c]
call fcn.1007de95
pop ecx
mov dword [ebp - 0x2c], ebx
push dword [ebp + 0x1c]
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
cmp dword [ebp - 0x30], ebx
je 0x1006c9c2
cmp dword [ebp + 0x10], ebx
jne 0x1006c9c2
mov edi, dword [ebp + 0x14]
cmp edi, ebx
je 0x1006c8ea
mov eax, dword [ebp - 0x400]
cmp eax, ebx
jne 0x1006c84f
mov dword [ebp - 0xc4], 0x3e0
mov dword [ebp - 0xc0], ebx
jmp 0x1006c880
push ebx
dec eax
push dword [ebp - 0x3fc]
push ebx
push eax
call fcn.1007ea30
mov ecx, dword [ebp - 0x3f8]
xor edi, edi
add eax, ecx
adc edx, edi
mov edi, dword [ebp + 0x14]
add eax, 0x3e0
adc edx, ebx
mov dword [ebp - 0xc4], eax
mov dword [ebp - 0xc0], edx
lea eax, [ebp - 0x43c]
push edi
push eax
push dword [ebp - 0x7fc]
push dword [ebp + 0x1c]
call fcn.10069087
add esp, 0x10
test eax, eax
je 0x1006c8dc
lea eax, [ebp - 0x7f8]
push edi
push eax
call fcn.100721af
or dword [ebp - 0x7f8], 4
push edi
call fcn.10074d62
add esp, 0xc
test eax, eax
jne 0x1006c8c5
or dword [ebp - 0x7f8], 1
add edi, 0x10
push edi
call fcn.10074d62
test eax, eax
pop ecx
jne 0x1006c8ea
or dword [ebp - 0x7f8], 2
jmp 0x1006c8ea
push 0x2d28
push 0x10
call fcn.100680dd
pop ecx
pop ecx
lea eax, [ebp - 0x81c]
push eax
call fcn.1006baf3
lea eax, [ebp - 0x43c]
push eax
lea eax, [ebp - 0x81c]
push eax
call fcn.1006b971
add esp, 0xc
test eax, eax
je 0x1006c9ab
push ebx
push ebx
push ebx
push dword [ebp + 0x1c]
call esi
lea eax, [ebp - 0x81c]
push 0x3e0
push eax
push dword [ebp + 0x1c]
call fcn.1006bd3b
add esp, 0xc
test eax, eax
je 0x1006c9b4
test byte [ebp + 0x18], 1
mov dword [ebp - 0x3c], 1
je 0x1006c9c2
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp - 0x5c]
push eax
push dword [ebp + 0x1c]
call dword [sym.imp.KERNEL32.dll_SetFileTime]
jmp 0x1006c9c2
push 0x2c0c
push 3
call fcn.100680dd
pop ecx
pop ecx
jmp 0x1006c9ff
push 0x2c1f
push 4
jmp 0x1006c9bb
push 0x2c2a
push 7
jmp 0x1006c9bb
push 0x2c3f
push 8
jmp 0x1006c9bb
push 0x2c52
push 0xb
jmp 0x1006c9bb
push 0x2c59
push 0xc
jmp 0x1006c9bb
push 0x2c6c
push 0x25
jmp 0x1006c9bb
push 0x2c96
jmp 0x1006c9b9
push 0x2d32
push 0x13
jmp 0x1006c9bb
push 0x2d3a
push 0x10
call fcn.100680dd
pop ecx
pop ecx
push dword [ebp - 0x14]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
cmp dword [ebp + 0x1c], 0xffffffff
je 0x1006c9d8
push dword [ebp + 0x1c]
call edi
cmp dword [ebp - 0x3c], ebx
je 0x1006c9f1
test byte [ebp + 0x18], 2
je 0x1006c9ff
push dword [ebp - 0x54]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
jmp 0x1006c9ff
cmp dword [ebp - 0x34], ebx
je 0x1006c9ff
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [ebp - 0x3c]
pop edi
jmp 0x1006ca15
push 0x2bd4
push 1
call fcn.100680dd
pop ecx
xor eax, eax
pop ecx
mov ecx, dword [ebp - 0xc]
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret