Function at 0x4062d1
Capabilities:
Read file on windows
Write file on windows

Disassembly:
mov eax, 0x408910
call sub.MSVCRT.dll__EH_prolog
sub esp, 0x284
movzx eax, word [0x410e82]
movzx ecx, word [0x410e84]
lea eax, [eax + eax*2]
push ebx
push esi
push edi
lea esi, [ecx + eax*8]
mov ebx, 0x249f0
movzx eax, word [0x410e86]
imul esi, esi, 0x3c
add esi, eax
imul esi, esi, 0xea60
test esi, esi
jne 0x406315
mov esi, ebx
and dword [ebp - 0x14], 0
and dword [ebp - 0x18], 0
push 0x410088
push 0x410fb8
mov dword [ebp - 0x28], esi
call sub.MSVCRT.dll_fopen
mov edi, eax
pop ecx
test edi, edi
pop ecx
je 0x4063bf
push edi
push 4
lea eax, [ebp - 0x10]
push 1
push eax
call sub.MSVCRT.dll_fread
add esp, 0x10
test eax, eax
je 0x40639c
lea eax, [ebp - 0x1c]
push eax
call sub.MSVCRT.dll_time
push dword [ebp - 0x10]
push dword [ebp - 0x1c]
call sub.MSVCRT.dll_difftime
fcom qword [0x40c270]
add esp, 0xc
fnstsw ax
sahf
jbe 0x40639a
fmul qword [0x40c268]
and dword [ebp - 0x20], 0
mov dword [ebp - 0x24], esi
fild qword [ebp - 0x24]
fld st(1)
fcompp
fnstsw ax
sahf
jae 0x406394
call sub.MSVCRT.dll__ftol
sub esi, eax
jmp 0x40639c
fstp st(0)
mov esi, ebx
jmp 0x40639c
fstp st(0)
test byte [0x410e74], 0x20
je 0x4063b6
push edi
push 4
lea eax, [ebp - 0x14]
push 1
push eax
call sub.MSVCRT.dll_fread
add esp, 0x10
push edi
call sub.MSVCRT.dll_fclose
pop ecx
jmp 0x4063c1
mov esi, ebx
cmp esi, ebx
jae 0x4063c7
mov esi, ebx
lea eax, [ebp - 0x68]
push 0x20
push eax
mov dword [ebp - 0x10], 1
call fcn.004074ab
lea eax, [ebp - 0x88]
push 0x20
push eax
call fcn.00407480
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp - 0x88]
push eax
lea eax, [ebp - 0x290]
push str.Log_report_of_computer__s___s_
push eax
call sub.MSVCRT.dll_sprintf
mov ebx, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
add esp, 0x20
push esi
push dword [ebp + 8]
call ebx
cmp eax, 0x102
jne 0x4065a7
mov edi, 0x410570
test byte [0x410e74], 0x20
je 0x4064c5
mov al, byte [ebp + 0xb]
push 0
lea ecx, [ebp - 0x38]
mov byte [ebp - 0x38], al
call fcn.004047cd
and dword [ebp - 4], 0
lea eax, [ebp - 0x38]
push eax
push 6
call fcn.00404b3e
pop ecx
test eax, eax
pop ecx
je 0x4064b7
mov al, byte [ebp + 0xb]
sub esp, 0x10
mov esi, esp
mov dword [ebp - 0x18], esp
push 0
mov ecx, esi
mov byte [esi], al
call fcn.004047cd
push edi
call sub.MSVCRT.dll_strlen
pop ecx
push eax
push edi
mov ecx, esi
call fcn.00404e51
sub esp, 0x10
lea eax, [ebp - 0x38]
mov ecx, esp
mov dword [ebp - 0x20], esp
push eax
mov byte [ebp - 4], 1
call fcn.00404d59
and byte [ebp - 4], 0
call fcn.00404bc7
add esp, 0x20
cmp eax, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
je 0x4064b0
test eax, eax
je 0x4064b0
or dword [0x410e74], 0x40
jmp 0x4064b7
and dword [0x410e74], 0xffffffbf
or dword [ebp - 4], 0xffffffff
push 1
lea ecx, [ebp - 0x38]
call fcn.004047cd
call dword [0x410e9c]
lea eax, [ebp - 0x48]
push eax
call fcn.00407235
mov eax, dword [eax + 4]
pop ecx
test eax, eax
jne 0x4064e1
mov eax, 0x40c230
push eax
lea eax, [ebp - 0x18c]
push str._s_log_report
push eax
call sub.MSVCRT.dll_sprintf
add esp, 0xc
lea ecx, [ebp - 0x48]
push 1
call fcn.004047cd
lea eax, [ebp - 0x18c]
push str.See_attached_file_s_...
push eax
lea eax, [ebp - 0x290]
push eax
push dword [ebp - 0x10]
push 0x410eb4
call fcn.004065e7
add esp, 0x14
test eax, eax
je 0x40658d
lea eax, [ebp - 0x1c]
push eax
call sub.MSVCRT.dll_time
mov dword [esp], 0x410544
push 0x410fb8
call sub.MSVCRT.dll_fopen
mov esi, eax
pop ecx
test esi, esi
pop ecx
je 0x406581
push esi
push 4
lea eax, [ebp - 0x1c]
push 1
push eax
call sub.MSVCRT.dll_fwrite
add esp, 0x10
test byte [0x410e74], 0x20
je 0x40657a
mov eax, dword [ebp - 0x18]
push esi
mov dword [ebp - 0x14], eax
push 4
lea eax, [ebp - 0x14]
push 1
push eax
call sub.MSVCRT.dll_fwrite
add esp, 0x10
push esi
call sub.MSVCRT.dll_fclose
pop ecx
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x10], 1
jmp 0x406596
and dword [ebp - 0x10], 0
mov eax, 0x249f0
push eax
push dword [ebp + 8]
call ebx
cmp eax, 0x102
je 0x406422
push dword [0x410e8c]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push dword [0x410e94]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push dword [0x410e98]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push dword [0x410e90]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
mov ecx, dword [ebp - 0xc]
add esp, 0x10
xor eax, eax
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
leave
ret