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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1e0
push ebx
mov ebx, ecx
push esi
push edi
lea ecx, [ebp - 0x148]
call fcn.01006fb1
and dword [ebp - 8], 0
and dword [ebp - 0x14], 0
lea ecx, [ebp - 0x1e0]
call fcn.010079b9
lea ecx, [ebp - 0xb8]
call fcn.010074d1
push dword [ebp + 0x10]
mov edi, dword [ebp + 8]
mov eax, dword [ebp + 0x18]
mov ecx, ebx
push edi
mov dword [ebx + 0x80], eax
call fcn.01003dd4
test eax, eax
jl 0x10045eb
mov ecx, dword [ebx + 0x88]
mov eax, dword [ebx + 0x80]
xor edx, edx
and dword [ebx + 0xb8], 0
lea eax, [eax + ecx - 1]
div ecx
mov ecx, dword [ebp + 0x14]
test ecx, ecx
mov dword [ebx + 0x7c], ecx
mov esi, eax
mov dword [ebp + 0x10], esi
je 0x100405c
xor edx, edx
div ecx
mov dword [ebx + 0xb8], eax
push 2
lea ecx, [ebp - 0x148]
call fcn.010073d4
lea eax, [ebp - 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTime]
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
push dword [ebp - 0x1c]
lea ecx, [ebp - 0x148]
push dword [ebp - 0x20]
call fcn.0100735e
and dword [ebp - 0xc], 0
mov eax, esi
add eax, dword [ebx + 0x74]
mov dword [ebp - 0x10], eax
fild qword [ebp - 0x10]
fdiv qword [ebx + 0x90]
fsub qword [0x10014a0]
fmul qword [0x10014b0]
call sub.MSVCRT.dll__ftol
push edx
push eax
lea ecx, [ebp - 0x148]
call fcn.01007388
and dword [ebp - 0xc], 0
mov dword [ebp - 0x10], esi
fild qword [ebp - 0x10]
fdiv qword [ebx + 0x90]
fmul qword [0x10014b0]
call sub.MSVCRT.dll__ftol
push edx
push eax
lea ecx, [ebp - 0x148]
call fcn.0100739d
push dword [ebx + 0x6c]
lea ecx, [ebp - 0x148]
call fcn.010073e6
push dword [ebx + 0x6c]
lea ecx, [ebp - 0x148]
call fcn.010073f8
mov ecx, dword [ebx + 0x7c]
test ecx, ecx
je 0x1004125
mov eax, dword [ebx + 0x98]
lea edx, [ecx + 1]
imul eax, edx
shl eax, 3
xor edx, edx
div ecx
jmp 0x100412e
mov eax, dword [ebx + 0x98]
shl eax, 3
push eax
lea ecx, [ebp - 0x148]
call fcn.0100740a
fild qword [ebx + 0xc0]
mov eax, dword [ebx + 0x74]
and dword [ebp - 0xc], 0
mov dword [ebp - 0x10], eax
fmul qword [0x10014b8]
fsub qword [0x10014a0]
fstp qword [ebx + 0xc8]
fild qword [ebp - 0x10]
fdiv qword [ebx + 0x90]
fsub qword [0x10014a0]
fmul qword [0x10014a8]
call sub.MSVCRT.dll__ftol
push edx
push eax
lea ecx, [ebp - 0x148]
call fcn.010073bf
lea eax, [ebp - 0x30]
push eax
call sub.RPCRT4.dll_UuidCreate
test eax, eax
je 0x100419c
xor eax, eax
lea edi, [ebp - 0x30]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x30]
lea ecx, [ebp - 0x148]
push eax
call fcn.01007347
mov ecx, dword [ebx + 0x9c]
lea eax, [ebp - 0x148]
push eax
call fcn.01006448
push 0x1001380
lea ecx, [ebp - 0x1e0]
call fcn.01007c11
test eax, eax
jl 0x10045c5
mov ecx, dword [ebx + 0x9c]
lea eax, [ebp - 0x1e0]
push eax
call fcn.01006448
mov ecx, dword [ebx + 0x9c]
lea eax, [ebx + 8]
push eax
call fcn.01006448
cmp dword [ebx + 0x7c], 0
je 0x100426d
lea ecx, [ebp - 0x190]
call fcn.01008426
push 0x10013b0
lea ecx, [ebp - 0x190]
call fcn.01008f34
mov eax, dword [ebx + 0x7c]
push 4
mov dword [ebp + 0x18], eax
lea eax, [ebp + 0x18]
push eax
lea ecx, [ebp - 0x190]
call fcn.01008621
mov ecx, dword [ebx + 0x9c]
lea eax, [ebp - 0x190]
push eax
call fcn.01006448
mov eax, dword [ebx + 0x6c]
imul eax, dword [ebx + 0x7c]
push eax
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
pop ecx
mov dword [ebx + 0xd4], eax
test eax, eax
lea ecx, [ebp - 0x190]
jne 0x1004268
call fcn.0100847c
jmp 0x10045c5
call fcn.0100847c
push 0x10013f0
lea ecx, [ebp - 0xb8]
call fcn.01008f34
push 1
lea ecx, [ebp - 0xb8]
call fcn.010079a8
push 0
push 0
lea ecx, [ebp - 0xb8]
call fcn.010078dd
push dword [ebp + 0xc]
lea ecx, [ebp - 0xb8]
push edi
call fcn.010078f2
cmp dword [ebx + 0x78], 0
je 0x1004314
push 0x10013e0
lea ecx, [ebp - 0xb8]
call fcn.01007347
push 0x10
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
pop ecx
mov dword [ebp - 8], eax
mov ecx, dword [ebx + 0x74]
imul ecx, dword [ebx + 0x88]
mov dword [eax], ecx
cmp word [edi], 0x55
jne 0x10042e1
mov cx, word [edi + 0x18]
jmp 0x10042e5
mov cx, word [edi + 0xc]
mov word [eax + 4], cx
mov word [eax + 6], 8
mov ecx, dword [0x1016184]
push 0x10
mov dword [eax + 8], ecx
mov ecx, dword [0x1016188]
mov dword [eax + 0xc], ecx
push eax
lea ecx, [ebp - 0xb8]
call fcn.0100794d
jmp 0x10043d8
push 0x10013d0
lea ecx, [ebp - 0xb8]
call fcn.01007347
mov cx, word [edi]
cmp cx, 0x55
jne 0x1004333
mov ax, word [edi + 0x18]
jmp 0x1004337
mov ax, word [edi + 0xc]
movzx eax, ax
cmp cx, 0x55
mov dword [ebp - 4], eax
je 0x10045c5
lea eax, [ebp - 4]
mov ecx, ebx
push eax
lea eax, [ebp - 0x14]
push eax
push edi
call fcn.0100521b
test eax, eax
jl 0x10045c5
mov eax, dword [ebp - 4]
add eax, 7
push eax
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov edi, eax
mov al, byte [ebx + 0x74]
xor edx, edx
pop ecx
mov byte [edi], al
mov ax, word [ebx + 0x88]
mov word [edi + 1], ax
mov eax, dword [ebx + 0x88]
div dword [ebx + 0x74]
mov dword [ebp - 8], edi
mov word [edi + 3], ax
mov ax, word [ebp - 4]
mov word [edi + 5], ax
mov ecx, dword [ebp - 4]
test ecx, ecx
jbe 0x10043c2
mov esi, dword [ebp - 0x14]
mov eax, ecx
add edi, 7
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push dword [ebp - 0x14]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
mov esi, dword [ebp + 0x10]
mov edi, dword [ebp - 8]
pop ecx
mov eax, dword [ebp - 4]
lea ecx, [ebp - 0xb8]
add eax, 7
push eax
push edi
call fcn.0100794d
mov edi, dword [ebp + 8]
mov ecx, dword [ebx + 0x9c]
lea eax, [ebp - 0xb8]
push eax
call fcn.01006448
push dword [ebp + 0xc]
mov ecx, ebx
push edi
call fcn.01004616
lea ecx, [ebx + 0x58]
call fcn.01003792
test eax, eax
je 0x1004410
mov ecx, ebx
call fcn.01004761
test eax, eax
jl 0x10045c5
lea ecx, [ebx + 0x60]
call fcn.01003792
test eax, eax
je 0x100442b
mov ecx, ebx
call fcn.010048b4
test eax, eax
jl 0x10045c5
mov ecx, dword [ebx + 0x9c]
mov edi, dword [ecx + 0xe0]
test edi, edi
je 0x10045c5
call fcn.0100640c
mov ecx, esi
push 0
add ecx, dword [ebx + 0xb8]
imul ecx, dword [ebx + 0x6c]
add eax, ecx
mov ecx, edi
push eax
call fcn.010078dd
mov eax, esi
push 0
add eax, dword [ebx + 0xb8]
mov ecx, edi
push eax
call fcn.01007373
mov edi, dword [ebx + 0x9c]
add edi, 0x48
je 0x10045c5
mov eax, esi
push 0
add eax, dword [ebx + 0xb8]
mov ecx, edi
push eax
call fcn.01008f4b
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0xc]
add esi, dword [ebx + 0xb8]
push 0
mov ecx, edi
imul esi, dword [ebx + 0x6c]
add eax, esi
push eax
call fcn.01006c3c
lea eax, [ebp - 0x30]
mov ecx, edi
push eax
call fcn.01008f34
push 1
mov ecx, edi
pop esi
push esi
call fcn.01008f60
push esi
mov ecx, edi
call fcn.01008f6f
mov ecx, dword [ebx + 0x9c]
call fcn.0100640c
mov edi, eax
push edi
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
pop ecx
mov dword [ebp + 8], eax
mov ecx, dword [ebx + 0x9c]
push 0
push edi
push eax
call fcn.01005e87
test eax, eax
jl 0x10045bc
lea eax, [ebp - 0x18]
push 0
push eax
push edi
push dword [ebp + 8]
push dword [ebx + 0xa4]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x10045bc
cmp dword [ebp - 0x18], edi
jne 0x10045bc
push dword [ebx + 0x6c]
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
pop ecx
mov dword [ebx + 0xd8], eax
push dword [ebx + 0x88]
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov dword [ebx + 0xdc], eax
mov eax, dword [ebx + 0x74]
imul eax, dword [ebx + 0x88]
pop ecx
push eax
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
pop ecx
mov dword [ebx + 0xa8], eax
push dword [ebp + 8]
xor eax, eax
fldz
mov dword [ebx + 0xc0], eax
mov dword [ebx + 0xac], eax
fstp qword [ebx + 0xc8]
mov dword [ebx + 0xb0], esi
mov dword [ebx + 0xb4], esi
mov dword [ebx + 0xc4], eax
mov dword [ebx + 0xd0], eax
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
push dword [ebp - 8]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
lea ecx, [ebp - 0xb8]
call fcn.01007541
lea ecx, [ebp - 0x1e0]
call fcn.01007a0f
lea ecx, [ebp - 0x148]
call fcn.01007012
mov eax, esi
jmp 0x100460f
push dword [ebp + 8]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
push dword [ebp - 8]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
lea esi, [ebx + 0xa4]
pop ecx
push dword [esi]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebx + 0xa0]
or dword [esi], 0xffffffff
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [ebp - 0xb8]
call fcn.01007541
lea ecx, [ebp - 0x1e0]
call fcn.01007a0f
lea ecx, [ebp - 0x148]
call fcn.01007012
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret 0x14