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

Disassembly:
mov eax, 0x408990
call fcn.00408540
sub esp, 0x284
movzx eax, word [0x411012]
movzx ecx, word [0x411014]
lea eax, [eax + eax*2]
push ebx
push esi
push edi
lea esi, [ecx + eax*8]
mov ebx, 0x249f0
movzx eax, word [0x411016]
imul esi, esi, 0x3c
add esi, eax
imul esi, esi, 0xea60
test esi, esi
jne 0x406372
mov esi, ebx
and dword [ebp - 0x14], 0
and dword [ebp - 0x18], 0
push 0x410088
push 0x411148
mov dword [ebp - 0x28], esi
call sub.MSVCRT.dll_fopen
mov edi, eax
pop ecx
test edi, edi
pop ecx
je 0x40641c
push edi
push 4
lea eax, [ebp - 0x10]
push 1
push eax
call sub.MSVCRT.dll_fread
add esp, 0x10
test eax, eax
je 0x4063f9
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 [0x40c268]
add esp, 0xc
fnstsw ax
sahf
jbe 0x4063f7
fmul qword [0x40c260]
and dword [ebp - 0x20], 0
mov dword [ebp - 0x24], esi
fild qword [ebp - 0x24]
fld st(1)
fcompp
fnstsw ax
sahf
jae 0x4063f1
call sub.MSVCRT.dll__ftol
sub esi, eax
jmp 0x4063f9
fstp st(0)
mov esi, ebx
jmp 0x4063f9
fstp st(0)
test byte [0x411004], 0x20
je 0x406413
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 0x40641e
mov esi, ebx
cmp esi, ebx
jae 0x406424
mov esi, ebx
lea eax, [ebp - 0x68]
push 0x20
push eax
mov dword [ebp - 0x10], 1
call fcn.00407517
lea eax, [ebp - 0x88]
push 0x20
push eax
call fcn.004074ec
add esp, 0x10
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, 0x10
push esi
push dword [ebp + 8]
call ebx
cmp eax, 0x102
jne 0x406607
mov edi, 0x410708
test byte [0x411004], 0x20
je 0x406525
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 0x406517
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 0x406510
test eax, eax
je 0x406510
or dword [0x411004], 0x40
jmp 0x406517
and dword [0x411004], 0xffffffbf
or dword [ebp - 4], 0xffffffff
push 1
lea ecx, [ebp - 0x38]
call fcn.004047cd
call dword [0x41102c]
lea eax, [ebp - 0x48]
push eax
call fcn.0040729e
mov eax, dword [eax + 4]
pop ecx
test eax, eax
jne 0x406541
mov eax, 0x40c228
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 0x411044
call fcn.00406647
add esp, 0x14
test eax, eax
je 0x4065ed
lea eax, [ebp - 0x1c]
push eax
call sub.MSVCRT.dll_time
mov dword [esp], 0x4106dc
push 0x411148
call sub.MSVCRT.dll_fopen
mov esi, eax
pop ecx
test esi, esi
pop ecx
je 0x4065e1
push esi
push 4
lea eax, [ebp - 0x1c]
push 1
push eax
call sub.MSVCRT.dll_fwrite
add esp, 0x10
test byte [0x411004], 0x20
je 0x4065da
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 0x4065f6
and dword [ebp - 0x10], 0
mov eax, 0x249f0
push eax
push dword [ebp + 8]
call ebx
cmp eax, 0x102
je 0x406482
push dword [0x41101c]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push dword [0x411024]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push dword [0x411028]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push dword [0x411020]
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