Function at 0x10070771
Capabilities:
Delete file
Read file on windows
Set file attributes
Timestomp file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4b8
push ebx
push esi
xor ebx, ebx
push edi
push ebx
call fcn.100680fb
mov esi, dword [ebp + 8]
pop ecx
cmp esi, ebx
je 0x10070e1a
cmp word [esi], bx
je 0x10070e1a
mov edi, dword [ebp + 0xc]
cmp edi, ebx
je 0x10070e1a
cmp word [edi], bx
je 0x10070e1a
cmp dword [0x101aef34], ebx
jne 0x100707c2
push 0x3ac7
push 2
jmp 0x10070e21
push esi
call fcn.10073be5
test al, 0x10
pop ecx
mov dword [ebp - 0x58], eax
je 0x100707dc
push 0x3acf
push 0x1d
jmp 0x10070e21
push edi
call fcn.10073be5
cmp eax, 0xffffffff
pop ecx
mov dword [ebp - 0x1c], eax
je 0x100707fb
test al, 0x10
je 0x100707fb
push 0x3ad9
push 0x1e
jmp 0x10070e21
or dword [ebp + 8], 0xffffffff
push ebx
push ebx
push 3
push ebx
push 5
push connect
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x2c], ebx
call esi
cmp eax, 0xffffffff
mov dword [ebp - 0x18], eax
je 0x10070d36
push ebx
push ebx
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ecx, 0x105
xor eax, eax
lea edi, [ebp - 0x4b7]
mov byte [ebp - 0x4b8], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x4b8]
push 0x418
push eax
push dword [ebp - 0x18]
call fcn.1006bccb
add esp, 0xc
test eax, eax
je 0x10070d49
lea eax, [ebp - 0x4b8]
push eax
call fcn.1006bdf6
cmp eax, ebx
pop ecx
mov dword [ebp - 4], eax
je 0x10070d52
cmp eax, 3
jne 0x100708ed
push dword [ebp - 0x484]
lea eax, [ebp - 0x4b8]
push 0x34
push eax
call fcn.10074c8c
add esp, 0xc
test eax, eax
je 0x10070d61
push dword [ebp - 0x48c]
call fcn.1007e238
mov edi, eax
pop ecx
cmp edi, ebx
mov dword [ebp - 0x2c], edi
je 0x10070d6d
push dword [ebp - 0x48c]
push ebx
push edi
call fcn.1007e1e0
lea eax, [ebp - 0x5c]
mov dword [ebp - 0x5c], ebx
push eax
push dword [ebp - 0x48c]
push edi
push dword [ebp - 0x18]
call fcn.10069372
add esp, 0x1c
test eax, eax
je 0x10070dca
push ebx
push 0x80
push 4
push ebx
mov edi, 0xc0000000
push ebx
push edi
push dword [ebp + 0xc]
call esi
cmp eax, 0xffffffff
mov dword [ebp + 8], eax
jne 0x1007093a
mov eax, dword [ebp - 0x1c]
test al, 1
je 0x1007091d
and al, 0xfe
push eax
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push ebx
push 0x80
push 3
push ebx
push 1
push edi
push dword [ebp + 0xc]
call esi
cmp eax, 0xffffffff
mov dword [ebp + 8], eax
je 0x10070d76
xor eax, eax
lea edi, [ebp - 0x44]
mov dword [ebp - 0x48], ebx
mov dword [ebp - 0x50], ebx
stosd dword es:[edi], eax
lea edi, [ebp - 0x4c]
mov dword [ebp - 0x40], ebx
stosd dword es:[edi], eax
lea edi, [ebp - 0x3c]
mov dword [ebp - 0x38], 1
stosd dword es:[edi], eax
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp - 0x48]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_GetFileTime]
cmp dword [ebp - 4], 3
jne 0x10070bb3
mov esi, dword [ebp - 0x2c]
push dword [esi + 0x24]
call fcn.1005fb73
cmp eax, ebx
pop ecx
mov dword [ebp - 0x30], eax
je 0x10070d7f
push 0xf
xor eax, eax
pop ecx
lea edi, [ebp - 0x9f]
mov byte [ebp - 0xa0], bl
mov edx, dword [esi + 0x20]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0xa0]
push 0x3f
push eax
push dword [esi + 0x5c]
push dword [esi + 0x54]
push edx
call fcn.1007105b
add esp, 0x14
test eax, eax
je 0x10070d86
lea eax, [esi + 0x28]
push eax
lea eax, [ebp - 0xa0]
push eax
call fcn.1007e450
pop ecx
push eax
lea eax, [ebp - 0xa0]
push eax
call fcn.10074d07
add esp, 0xc
test eax, eax
je 0x10070d8f
mov edi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push ebx
push ebx
push ebx
push dword [ebp + 8]
call edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov eax, dword [esi + 0x3c]
cmp eax, ebx
je 0x10070d98
mov ecx, dword [esi + 0x40]
cmp eax, 1
mov dword [ebp - 8], ecx
jne 0x10070a23
mov eax, dword [esi + 0x44]
mov dword [ebp - 8], eax
push dword [ebp - 8]
call fcn.1007e238
pop ecx
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0x30]
push dword [ebp - 8]
mov eax, dword [ecx]
call dword [eax + 0xc]
push eax
mov dword [ebp - 0x24], eax
call fcn.1007e238
pop ecx
mov dword [ebp - 0x10], eax
push ebx
push ebx
push dword [esi + 0x38]
push dword [ebp - 0x18]
call edi
mov dword [ebp - 0x14], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x60], ebx
inc dword [ebp - 0x14]
mov edi, dword [esi + 0x40]
mov eax, dword [ebp - 0x14]
cmp eax, dword [esi + 0x3c]
jne 0x10070a72
mov edi, dword [esi + 0x44]
mov dword [ebp - 4], 1
push dword [ebp - 8]
push ebx
push dword [ebp - 0xc]
call fcn.1007e1e0
push dword [ebp - 0x24]
push ebx
push dword [ebp - 0x10]
call fcn.1007e1e0
add esp, 0x18
lea eax, [ebp - 0x54]
mov dword [ebp - 0x54], ebx
push ebx
push eax
push edi
push dword [ebp - 0xc]
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x10070b32
mov eax, dword [ebp - 0xc]
add edi, 0xfffffffc
push dword [eax]
lea ecx, [eax + 4]
mov dword [ebp - 0x34], ecx
push edi
push ecx
call fcn.10074c8c
add esp, 0xc
test eax, eax
je 0x10070b3b
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x20], ebx
mov edx, dword [eax]
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0xa0]
push dword [ebp - 0x24]
push dword [ebp - 0x10]
push edi
push dword [ebp - 0x34]
mov dword [ebp - 0x34], edx
push eax
call fcn.1007e450
pop ecx
mov ecx, dword [ebp - 0x30]
push eax
lea eax, [ebp - 0xa0]
push eax
mov eax, dword [ebp - 0x34]
call dword [eax + 0x14]
test eax, eax
je 0x10070b44
lea eax, [ebp - 0x1c]
push ebx
push eax
mov dword [ebp - 0x1c], ebx
push dword [ebp - 0x20]
push dword [ebp - 0x10]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x10070b4d
mov eax, dword [ebp - 0x1c]
cmp eax, dword [ebp - 0x20]
jb 0x10070b54
cmp dword [ebp - 4], ebx
je 0x10070a5a
mov esi, dword [ebp - 0x60]
jmp 0x10070b65
push 0x3b97
push 0xd
jmp 0x10070b5b
push 0x3ba0
push 0x1c
jmp 0x10070b5b
push 0x3ba9
push 0x12
jmp 0x10070b5b
push 0x3bb1
jmp 0x10070b59
push 0x3bb8
push 0xe
call fcn.100680dd
pop ecx
pop ecx
push 1
pop esi
push dword [ebp - 0xc]
call fcn.1007de95
push dword [ebp - 0x10]
call fcn.1007de95
cmp dword [ebp - 4], ebx
pop ecx
pop ecx
je 0x10070dca
cmp esi, ebx
jne 0x10070dca
test byte [ebp + 0x10], 1
mov dword [ebp - 0x28], 1
je 0x10070dca
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp - 0x48]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileTime]
jmp 0x10070dca
cmp dword [ebp - 4], 1
je 0x10070bc3
cmp dword [ebp - 4], 2
jne 0x10070dca
push 2
call fcn.1005fb73
cmp eax, ebx
pop ecx
mov dword [ebp - 0x1c], eax
je 0x10070dbc
push 0xf
xor eax, eax
pop ecx
lea edi, [ebp - 0x9f]
mov byte [ebp - 0xa0], bl
push str.ocularoea
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0xa0]
push eax
call fcn.1007e520
mov eax, dword [ebp - 0x474]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x470]
push ebx
push ebx
lea eax, [eax + ecx + 0x100]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov edi, 0x10000
push edi
call fcn.1007e238
push edi
mov dword [ebp - 0xc], eax
call fcn.1007e238
pop ecx
mov dword [ebp - 0x14], eax
pop ecx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 8], ebx
push edi
push ebx
push dword [ebp - 0xc]
call fcn.1007e1e0
push edi
push ebx
push dword [ebp - 0x14]
call fcn.1007e1e0
add esp, 0x18
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], ebx
push ebx
push eax
push edi
push dword [ebp - 0xc]
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x10070ce5
cmp dword [ebp - 0x10], edi
jae 0x10070c82
cmp dword [ebp - 0x10], ebx
mov dword [ebp - 0x20], 1
je 0x10070d13
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 4], ebx
mov esi, dword [eax]
lea eax, [ebp - 4]
push eax
push edi
push dword [ebp - 0x14]
lea eax, [ebp - 0xa0]
push dword [ebp - 0x10]
push dword [ebp - 0xc]
push eax
call fcn.1007e450
pop ecx
mov ecx, dword [ebp - 0x1c]
push eax
lea eax, [ebp - 0xa0]
push eax
call dword [esi + 0x14]
test eax, eax
je 0x10070cee
lea eax, [ebp - 0x24]
push ebx
push eax
mov dword [ebp - 0x24], ebx
push dword [ebp - 4]
push dword [ebp - 0x14]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x10070cf7
mov eax, dword [ebp - 0x24]
cmp eax, dword [ebp - 4]
jb 0x10070cfe
cmp dword [ebp - 0x20], ebx
je 0x10070c3d
jmp 0x10070d13
push 0x3bef
push 0xd
jmp 0x10070d05
push 0x3bff
push 0x12
jmp 0x10070d05
push 0x3c07
jmp 0x10070d03
push 0x3c0e
push 0xe
call fcn.100680dd
pop ecx
mov dword [ebp - 8], 1
pop ecx
push dword [ebp - 0xc]
call fcn.1007de95
push dword [ebp - 0x14]
call fcn.1007de95
cmp dword [ebp - 0x20], ebx
pop ecx
pop ecx
je 0x10070dca
cmp dword [ebp - 8], ebx
jmp 0x10070b82
push 0x3af1
push 3
call fcn.100680dd
pop ecx
pop ecx
jmp 0x10070e15
push 0x3afb
push 0xf
jmp 0x10070d59
push 0x3b02
push 0x23
call fcn.100680dd
pop ecx
jmp 0x10070dd7
push 0x3b0a
push 0x1c
jmp 0x10070e21
push 0x3b14
push 0x21
jmp 0x10070dc3
push 0x3b3a
push 4
jmp 0x10070dc3
push 0x3b4c
jmp 0x10070dc1
push 0x3b58
push 0xb
jmp 0x10070dc3
push 0x3b5f
push 0x1b
jmp 0x10070dc3
test byte [ebp + 0x10], 1
je 0x10070db3
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp - 0x48]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileTime]
mov dword [ebp - 0x28], 1
jmp 0x10070dca
push 0x3bd2
push 0xc
call fcn.100680dd
pop ecx
pop ecx
cmp dword [ebp - 0x2c], ebx
je 0x10070dd8
push dword [ebp - 0x2c]
call fcn.1007de95
pop ecx
push dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
cmp dword [ebp + 8], 0xffffffff
je 0x10070dee
push dword [ebp + 8]
call esi
cmp dword [ebp - 0x28], ebx
je 0x10070e07
test byte [ebp + 0x10], 2
je 0x10070e15
push dword [ebp - 0x58]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
jmp 0x10070e15
cmp dword [ebp - 0x38], ebx
je 0x10070e15
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [ebp - 0x28]
jmp 0x10070e2a
push 0x3ac1
push 1
call fcn.100680dd
pop ecx
xor eax, eax
pop ecx
pop edi
pop esi
pop ebx
leave
ret