joyce8/EMBER2024-capa huggingface dataset:
Function at 0x670c102c
Capabilities:
Write file on windows

Disassembly:
push 0x10
mov eax, 0x671aed80
call fcn.671a2b02
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp + 0x10]
mov ebx, dword [ecx + 0xc]
mov dword [ebp - 0x1c], ebx
test edx, edx
jl 0x670c1174
mov esi, dword [ebp + 0xc]
jg 0x670c1174
test esi, esi
jb 0x670c1174
test edx, edx
jne 0x670c1174
xorps xmm0, xmm0
mov eax, esi
or eax, edx
movlpd qword [ebp - 0x18], xmm0
mov ebx, dword [ebp - 0x14]
mov edi, dword [ebp - 0x18]
je 0x670c1167
cmp dword [ecx + 0x60], edx
je 0x670c10cd
push dword [ecx + 0x60]
mov eax, esi
sub eax, edi
push eax
mov eax, dword [ebp + 8]
add eax, edi
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
add edi, eax
adc ebx, 0
test eax, eax
jne 0x670c10b4
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
xor ecx, ecx
cmp dword [eax], 4
sete cl
jmp 0x670c10c4
mov ecx, dword [ebp - 0x10]
cmp ebx, dword [ebp + 0x10]
jl 0x670c1082
jg 0x670c10c2
cmp edi, esi
jb 0x670c1082
xor ecx, ecx
test ecx, ecx
mov ecx, dword [ebp - 0x10]
jne 0x670c1082
jmp 0x670c1121
cmp dword [ecx + 0x78], 0xffffffff
je 0x670c1121
mov eax, esi
sub eax, edi
mov dword [ebp - 0x14], eax
mov eax, edx
sbb eax, ebx
mov edx, 0x7fffffff
test eax, eax
ja 0x670c10f2
mov eax, dword [ebp - 0x14]
jb 0x670c10f0
cmp eax, edx
jae 0x670c10f2
mov edx, eax
mov eax, dword [ebp + 8]
push edx
add eax, edi
push eax
push dword [ecx + 0x78]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__write]
add esp, 0xc
test eax, eax
jle 0x670c111e
mov ecx, dword [ebp - 0x10]
cdq
add edi, eax
adc ebx, edx
mov edx, dword [ebp + 0x10]
cmp ebx, edx
jl 0x670c10d3
jg 0x670c111e
cmp edi, esi
jb 0x670c10d3
mov ecx, dword [ebp - 0x10]
mov eax, edi
or eax, ebx
jne 0x670c1167
or edi, 0xffffffff
lea eax, [ebp + 8]
push edi
push eax
or ebx, edi
call sym.Qt5Core.dll_public:_static_class_QString___cdecl_QSystemError::stdString_int_
pop ecx
pop ecx
mov esi, eax
mov dword [ebp - 4], 1
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov ecx, dword [ebp - 0x1c]
push 2
pop edx
cmp dword [eax], 0x1c
push 4
pop eax
cmove edx, eax
push esi
push edx
call sym.Qt5Core.dll_protected:_void___thiscall_QAbstractFileEngine::setError_enum_QFileDevice::FileError__class_QString_const__
lea ecx, [ebp + 8]
call sym.Qt5Core.dll_public:_void___thiscall_QString::destructor_void_
jmp 0x670c116e
and dword [ecx + 0x28], 0xffdfffff
mov eax, edi
mov edx, ebx
jmp 0x670c119c
lea eax, [ebp + 8]
push 0x16
push eax
call sym.Qt5Core.dll_public:_static_class_QString___cdecl_QSystemError::stdString_int_
pop ecx
pop ecx
and dword [ebp - 4], 0
mov ecx, ebx
push eax
push 2
call sym.Qt5Core.dll_protected:_void___thiscall_QAbstractFileEngine::setError_enum_QFileDevice::FileError__class_QString_const__
lea ecx, [ebp + 8]
call sym.Qt5Core.dll_public:_void___thiscall_QString::destructor_void_
or eax, 0xffffffff
or edx, eax
call fcn.671a2adc
ret 0xc
Function at 0x670c753f
Capabilities:
Get disk information

Disassembly:
sub esp, 0x48
mov eax, dword [0x6753165c]
xor eax, esp
mov dword [esp + 0x44], eax
push ebx
push ebp
push esi
mov esi, dword [esp + 0x58]
xor ebp, ebp
push edi
mov edi, ecx
mov edx, dword [esi]
cmp dword [edx + 4], 2
jl 0x670c7591
mov eax, dword [edx + 0xc]
mov ax, word [edx + eax]
movzx eax, ax
push eax
call sym.Qt5Core.dll_public:_static_bool___cdecl_QChar::isLetter_unsigned_int_
pop ecx
test al, al
je 0x670c7591
mov eax, dword [esi]
mov ecx, dword [eax + 0xc]
cmp word [ecx + eax + 2], 0x3a
jne 0x670c7591
movzx ecx, word [ecx + eax]
call sym.Qt5Core.dll_public:_static_unsigned_int___fastcall_QChar::toUpper_unsigned_int_
movzx ecx, ax
jmp 0x670c7593
mov ecx, ebp
test cx, cx
je 0x670c7689
lea ebx, [edi + 0x10]
mov eax, dword [ebx]
jmp 0x670c75b0
cmp word [eax + 4], cx
je 0x670c7689
add eax, 8
cmp eax, dword [edi + 0x14]
jne 0x670c75a3
mov esi, str..A:_
mov word [esp + 0x14], cx
lea edi, [esp + 0x44]
lea eax, [esp + 0x4c]
push eax
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov word [esp + 0x50], cx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 2
jne 0x670c7689
push ebp
push 0x2000000
push 3
push ebp
push 7
push 0x80
lea eax, [esp + 0x5c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x670c7615
lea eax, [esp + 0x44]
push eax
push str.CreateFile__ls_failed.
call sym.Qt5Core.dll_void___cdecl_qErrnoWarning_char_const__
pop ecx
pop ecx
jmp 0x670c7689
push 0x2c
pop esi
push esi
lea eax, [esp + 0x1c]
push ebp
push eax
call sub.VCRUNTIME140.dll_memset
push 1
mov dword [esp + 0x28], esi
mov dword [esp + 0x2c], 6
mov dword [esp + 0x34], edi
call fcn.67019431
mov ecx, eax
add esp, 0x10
mov eax, dword [ecx + 0x2c]
test eax, eax
jne 0x670c764c
call fcn.67018aa0
push ebp
lea ecx, [esp + 0x1c]
push ecx
mov ecx, eax
call sym.Qt5Core.dll_public:_struct_HWND______thiscall_QEventDispatcherWin32::internalHwnd_void_
push eax
call dword [sym.imp.USER32.dll_RegisterDeviceNotificationW]
mov esi, eax
push edi
mov dword [esp + 0x14], esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
jne 0x670c767d
lea eax, [esp + 0x44]
push eax
push str.RegisterDeviceNotification__ls_failed.
jmp 0x670c760c
lea eax, [esp + 0x10]
mov ecx, ebx
push eax
call fcn.670c6ae3
mov ecx, dword [esp + 0x54]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.671a2acb
add esp, 0x48
ret 4
Function at 0x670cbf97
Capabilities:
Create process on windows

Disassembly:
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov edi, dword [esp + 0x14]
cmp dword [esi + 0x134], 0
je 0x670cbfb6
push edi
lea ecx, [esi + 0x110]
call fcn.670cbf64
push dword [edi + 0x24]
movzx eax, byte [edi + 0x10]
push dword [edi + 0x20]
push dword [edi + 0x1c]
push dword [edi + 0x18]
push dword [edi + 0x14]
push eax
push dword [edi + 0xc]
push dword [edi + 8]
push dword [edi + 4]
push dword [edi]
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
mov eax, dword [esi + 0xb0]
setne bl
or ebp, 0xffffffff
cmp eax, ebp
je 0x670cbffc
push eax
call edi
mov dword [esi + 0xb0], ebp
mov eax, dword [esi + 0xd4]
cmp eax, ebp
je 0x670cc00f
push eax
call edi
mov dword [esi + 0xd4], ebp
mov ecx, dword [esi + 0xf4]
cmp ecx, ebp
je 0x670cc022
push ecx
call edi
mov dword [esi + 0xf4], ebp
pop edi
pop esi
pop ebp
mov al, bl
pop ebx
ret 4
Function at 0x670ccce9
Capabilities:
Connect pipe
Create pipe

Disassembly:
sub esp, 0x238
mov eax, dword [0x6753165c]
xor eax, esp
mov dword [esp + 0x234], eax
and dword [esp + 0x18], 0
and dword [esp + 0x1c], 0
push ebx
mov bl, byte [esp + 0x244]
push ebp
push esi
mov esi, dword [esp + 0x248]
movzx eax, bl
push edi
movzx ebp, bl
mov edi, eax
xor ebp, 1
shl edi, 0x14
shl ebp, 0x14
add eax, 0x40000001
mov byte [esp + 0x13], bl
mov dword [esp + 0x24], 0xc
mov dword [esp + 0x18], 0x3e8
mov dword [esp + 0x20], edi
mov dword [esp + 0x1c], eax
call sym.Qt5Core.dll_public:_static_class_QRandomGenerator64____cdecl_QRandomGenerator64::global_void_
lea ecx, [esp + 0x18]
push ecx
lea ecx, [esp + 0x18]
push ecx
mov ecx, eax
call sym.Qt5Core.dll_private:_void___thiscall_QRandomGenerator::_fillRange_void___void__
call sym.Qt5Core.dll_public:_static_long_long___int64____cdecl_QCoreApplication::applicationPid_void_
push dword [esp + 0x14]
push eax
push str..pipeqt__lX__X
lea eax, [esp + 0x50]
push 0x100
push eax
call fcn.670cde8f
add esp, 0x14
lea eax, [esp + 0x24]
push eax
push 0
push ebp
push edi
push 1
push 8
push dword [esp + 0x34]
lea eax, [esp + 0x60]
push eax
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x670ccdcf
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xe7
jne 0x670ccdbd
sub dword [esp + 0x18], 1
mov edi, dword [esp + 0x20]
jne 0x670ccd4b
push str.QProcess:_CreateNamedPipe_failed.
push eax
call sym.Qt5Core.dll_void___cdecl_qErrnoWarning_int__char_const__
pop ecx
pop ecx
jmp 0x670ccea9
xor ebp, ebp
mov dword [esp + 0x2c], 1
push ebp
mov eax, 0x40000000
lea ecx, [esp + 0x28]
push eax
push 3
push ecx
mov ecx, 0x80000100
test bl, bl
push ebp
cmovne eax, ecx
push eax
lea eax, [esp + 0x5c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x670cce1c
push str.QProcess:_CreateFile_failed.
call sym.Qt5Core.dll_void___cdecl_qErrnoWarning_char_const__
pop ecx
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x670ccea9
push 0x14
lea eax, [esp + 0x34]
push ebp
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
push ebp
push ebp
push 1
push ebp
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [esp + 0x40], eax
lea eax, [esp + 0x30]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
test eax, eax
jne 0x670cce8c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x217
je 0x670cce8c
cmp eax, 0x3e5
je 0x670cce80
push str.QProcess:_ConnectNamedPipe_failed.
push eax
call sym.Qt5Core.dll_void___cdecl_qErrnoWarning_int__char_const__
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ecx
pop ecx
push dword [esp + 0x40]
call esi
push ebx
call esi
push edi
call esi
jmp 0x670ccea9
push 0xffffffffffffffff
push dword [esp + 0x44]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [esp + 0x40]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [esp + 0x13], 0
je 0x670ccea4
mov dword [esi], ebx
mov dword [esi + 4], edi
jmp 0x670ccea9
mov dword [esi], edi
mov dword [esi + 4], ebx
mov ecx, dword [esp + 0x244]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.671a2acb
add esp, 0x238
ret
Function at 0x670d572b
Capabilities:
Get common file path

Disassembly:
push 0xc
mov eax, 0x671b0ac6
call fcn.671a2b02
xor edi, edi
mov dword [ebp - 0x14], edi
mov esi, dword [ebp + 8]
mov dword [esi], sym.Qt5Core.dll_struct_QArrayData_const__const_const_QArrayData::shared_null
lea eax, [ebp - 0x10]
mov dword [ebp - 4], edi
push eax
push edi
push 0x4000
push dword [ebp + 0xc]
mov dword [ebp - 0x14], 1
mov dword [ebp - 0x10], edi
call sub.SHELL32.dll_SHGetKnownFolderPath
test eax, eax
jne 0x670d5794
push 0xffffffffffffffff
push dword [ebp - 0x10]
lea eax, [ebp - 0x18]
push eax
call sym.Qt5Core.dll_public:_static_class_QString___cdecl_QString::fromWCharArray_wchar_t_const___int_
mov ecx, dword [esi]
mov edx, eax
add esp, 0xc
mov eax, dword [edx]
mov dword [esi], eax
mov dword [edx], ecx
lea ecx, [ebp - 0x18]
call sym.Qt5Core.dll_public:_void___thiscall_QString::destructor_void_
push dword [ebp - 0x10]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov eax, dword [esi]
cmp dword [eax + 4], edi
jne 0x670d57e3
push 0x10
push 0x67496678
push dword [ebp + 0xc]
call sub.VCRUNTIME140.dll_memcmp
add esp, 0xc
test eax, eax
jne 0x670d57b8
mov edi, str.C:_tempqt_common
jmp 0x670d57d3
push 0x10
push 0x67496688
push dword [ebp + 0xc]
call sub.VCRUNTIME140.dll_memcmp
add esp, 0xc
test eax, eax
jne 0x670d57e3
mov edi, str.C:_tempqt_user
push edi
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
pop ecx
push edi
push eax
mov ecx, esi
call fcn.67066a57
mov eax, esi
call fcn.671a2adc
ret
Function at 0x670d6123
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x671a6181
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x6753165c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x18], edi
cmp byte [edi + 0x58], 0
mov dword [edi], vtable.QWinSettingsPrivate.0
je 0x670d61c4
call fcn.670d7ae7
test eax, eax
je 0x670d61c4
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x14], sym.Qt5Core.dll_struct_QArrayData_const__const_const_QArrayData::shared_null
call sym.Qt5Core.dll_public:_unsigned_short_int_const____thiscall_QString::utf16_void_const
mov ecx, edi
mov esi, eax
call fcn.670d7ae7
push esi
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov esi, eax
test esi, esi
je 0x670d61bc
mov edx, dword [edi + 0x54]
mov ecx, dword [edx + 0xc]
mov ecx, dword [ecx + edx + 8]
mov dword [ebp - 0x10], ecx
call fcn.670042b7
lea ecx, [ebp - 0x10]
call sym.Qt5Core.dll_public:_unsigned_short_int_const____thiscall_QString::utf16_void_const
push eax
push str.QSettings:_Failed_to_delete_key___ls_
push esi
call sym.Qt5Core.dll_void___cdecl_qErrnoWarning_int__char_const__
add esp, 0xc
lea ecx, [ebp - 0x10]
call sym.Qt5Core.dll_public:_void___thiscall_QString::destructor_void_
lea ecx, [ebp - 0x14]
call sym.Qt5Core.dll_public:_void___thiscall_QString::destructor_void_
lea esi, [edi + 0x54]
xor ebx, ebx
mov eax, dword [esi]
cmp dword [eax + 4], ebx
jle 0x670d61f5
mov edi, ebx
mov ecx, esi
call fcn.670d6b1b
mov eax, dword [esi]
mov ecx, dword [eax + 0xc]
add ecx, edi
add ecx, eax
call fcn.670d680c
mov eax, dword [esi]
inc ebx
add edi, 0x14
cmp ebx, dword [eax + 4]
jl 0x670d61d2
mov edi, dword [ebp - 0x18]
mov ecx, esi
call fcn.670d610a
mov ecx, edi
call fcn.670cf553
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x670d6a01
Capabilities:
Delete registry key

Disassembly:
push 0xc
mov eax, 0x671b0d77
call fcn.671a2b02
push 2
push dword [ebp + 8]
lea eax, [ebp - 0x18]
push eax
call fcn.670d6422
add esp, 0xc
mov esi, dword [ebp - 0x18]
xor edi, edi
mov dword [ebp - 4], edi
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 8]
sub eax, ecx
test eax, eax
jle 0x670d6adc
add ecx, edi
mov ecx, dword [esi + ecx*4 + 0x10]
mov dword [ebp - 0x10], ecx
call fcn.670042b7
push dword [ebp + 0xc]
lea eax, [ebp - 0x10]
mov byte [ebp - 4], 1
push eax
push 0x2001f
push dword [ebp + 8]
call fcn.670d7069
mov ebx, eax
add esp, 0x10
test ebx, ebx
je 0x670d6a8f
push dword [ebp + 0xc]
push ebx
call fcn.670d6a01
pop ecx
pop ecx
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0x10]
call sym.Qt5Core.dll_public:_unsigned_short_int_const____thiscall_QString::utf16_void_const
push eax
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov ebx, eax
test ebx, ebx
jne 0x670d6aa6
lea ecx, [ebp - 0x10]
call sym.Qt5Core.dll_public:_void___thiscall_QString::destructor_void_
mov eax, dword [esi + 0xc]
inc edi
mov ecx, dword [esi + 8]
sub eax, ecx
cmp edi, eax
jl 0x670d6a36
jmp 0x670d6adc
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x14], ecx
call fcn.670042b7
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 2
call sym.Qt5Core.dll_public:_unsigned_short_int_const____thiscall_QString::utf16_void_const
push eax
push str.QSettings:_RegDeleteKey_failed_on_subkey___ls_
push ebx
call sym.Qt5Core.dll_void___cdecl_qErrnoWarning_int__char_const__
add esp, 0xc
lea ecx, [ebp - 0x14]
call sym.Qt5Core.dll_public:_void___thiscall_QString::destructor_void_
lea ecx, [ebp - 0x10]
call sym.Qt5Core.dll_public:_void___thiscall_QString::destructor_void_
mov ecx, esi
mov dword [ebp - 4], 4
call fcn.6700346c
test al, al
jne 0x670d6af7
push esi
lea ecx, [ebp - 0x18]
call fcn.6701316b
call fcn.671a2adc
ret
Function at 0x670d8d24
Capabilities:
Read file on windows

Disassembly:
push 0x18
mov eax, 0x671b125e
call fcn.671a2b02
mov edi, ecx
cmp dword [edi + 0x60], 0
mov ebx, dword [edi + 0xc]
mov dword [ebp - 0x1c], ebx
jne 0x670d8df6
or esi, 0xffffffff
cmp dword [edi + 0x78], esi
jne 0x670d8e38
cmp dword [edi + 0x64], esi
je 0x670d8e32
mov eax, dword [ebp + 0xc]
xorps xmm0, xmm0
movlpd qword [ebp - 0x18], xmm0
mov edx, dword [ebp - 0x14]
mov ebx, dword [ebp - 0x18]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x10], edx
lea eax, [ebp - 0x24]
push 0x67291460
push eax
call fcn.67036aa7
pop ecx
pop ecx
push 0
mov eax, dword [eax]
lea ecx, [ebp - 0x14]
push ecx
push eax
mov eax, dword [ebp + 8]
add eax, ebx
push eax
push dword [edi + 0x64]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x670d8dcc
mov ecx, dword [ebp - 0x14]
test ecx, ecx
je 0x670d8dc5
mov eax, dword [ebp - 0x10]
add ebx, ecx
adc eax, 0
sub dword [ebp - 0x24], ecx
mov dword [ebp - 0x10], eax
sbb dword [ebp - 0x20], 0
cmp eax, dword [ebp + 0x10]
jg 0x670d8dc5
jl 0x670d8d74
cmp ebx, dword [ebp + 0xc]
jb 0x670d8d74
mov edx, dword [ebp - 0x10]
mov eax, ebx
jmp 0x670d8e48
mov edx, dword [ebp - 0x10]
mov eax, ebx
or eax, edx
jne 0x670d8dc8
lea eax, [ebp + 8]
push esi
push eax
call sym.Qt5Core.dll_class_QString___cdecl_qt_error_string_int_
pop ecx
pop ecx
xor ecx, ecx
inc ecx
push eax
mov dword [ebp - 4], ecx
push ecx
mov ecx, dword [ebp - 0x1c]
call sym.Qt5Core.dll_protected:_void___thiscall_QAbstractFileEngine::setError_enum_QFileDevice::FileError__class_QString_const__
lea ecx, [ebp + 8]
jmp 0x670d8e2d
call fcn.670d8b7b
test al, al
je 0x670d8e38
push dword [edi + 0x60]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_feof]
pop ecx
test eax, eax
je 0x670d8e38
or esi, 0xffffffff
lea eax, [ebp + 0x10]
push esi
push eax
call sym.Qt5Core.dll_public:_static_class_QString___cdecl_QSystemError::stdString_int_
pop ecx
pop ecx
and dword [ebp - 4], 0
mov ecx, ebx
push eax
push 1
call sym.Qt5Core.dll_protected:_void___thiscall_QAbstractFileEngine::setError_enum_QFileDevice::FileError__class_QString_const__
lea ecx, [ebp + 0x10]
call sym.Qt5Core.dll_public:_void___thiscall_QString::destructor_void_
mov eax, esi
mov edx, esi
jmp 0x670d8e48
push dword [ebp + 0x10]
mov ecx, edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.670c0ac9
call fcn.671a2adc
ret 0xc
Function at 0x670d8fac
Capabilities:
Write file on windows

Disassembly:
push 0x1c
mov eax, 0x671b083e
call fcn.671a2b02
mov esi, ecx
cmp dword [esi + 0x60], 0
mov eax, dword [esi + 0xc]
mov dword [ebp - 0x18], eax
jne 0x670d908a
or ecx, 0xffffffff
cmp dword [esi + 0x78], ecx
jne 0x670d908a
cmp dword [esi + 0x64], ecx
jne 0x670d8fe4
mov eax, ecx
mov edx, ecx
jmp 0x670d909a
mov eax, dword [ebp + 0xc]
xorps xmm0, xmm0
and dword [ebp - 0x24], 0
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0x10]
movlpd qword [ebp - 0x14], xmm0
mov ebx, dword [ebp - 0x10]
mov edi, dword [ebp - 0x14]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x28], 0x2000000
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x20]
push eax
call fcn.67036aa7
pop ecx
pop ecx
push 0
mov eax, dword [eax]
lea ecx, [ebp - 0x10]
push ecx
push eax
mov eax, dword [ebp + 8]
add eax, edi
push eax
push dword [esi + 0x64]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x670d9059
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x670d9053
add edi, eax
adc ebx, 0
sub dword [ebp - 0x20], eax
sbb dword [ebp - 0x1c], 0
cmp ebx, dword [ebp + 0x10]
jg 0x670d9053
jl 0x670d9009
cmp edi, dword [ebp + 0xc]
jb 0x670d9009
mov eax, edi
mov edx, ebx
jmp 0x670d909a
mov eax, edi
or eax, ebx
jne 0x670d9053
lea eax, [ebp + 8]
push 0xffffffffffffffff
push eax
call sym.Qt5Core.dll_class_QString___cdecl_qt_error_string_int_
pop ecx
pop ecx
mov ecx, dword [ebp - 0x18]
and dword [ebp - 4], 0
push eax
push 2
call sym.Qt5Core.dll_protected:_void___thiscall_QAbstractFileEngine::setError_enum_QFileDevice::FileError__class_QString_const__
lea ecx, [ebp + 8]
call sym.Qt5Core.dll_public:_void___thiscall_QString::destructor_void_
or eax, 0xffffffff
or edx, eax
jmp 0x670d909a
push dword [ebp + 0x10]
mov ecx, esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.670c102c
call fcn.671a2adc
ret 0xc
Function at 0x670d9403
Capabilities:
Clear file content

Disassembly:
push 0x14
mov eax, 0x671b12cc
call fcn.671a2b02
mov edi, ecx
mov eax, dword [edi + 4]
or ebx, 0xffffffff
mov esi, dword [eax + 0x64]
cmp esi, ebx
jne 0x670d94fb
cmp dword [eax + 0x78], ebx
jne 0x670d94cf
cmp dword [eax + 0x60], 0
jne 0x670d94cf
lea esi, [eax + 0x10]
mov ecx, esi
call fcn.670a5172
test al, al
jne 0x670d9552
lea eax, [ebp - 0x10]
mov ecx, esi
push eax
call fcn.670c171e
and dword [ebp - 4], 0
lea ecx, [ebp - 0x20]
push eax
call sym.Qt5Core.dll_public:_void___thiscall_QFile::constructor_class_QString_const__
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 2
call sym.Qt5Core.dll_public:_void___thiscall_QString::destructor_void_
push ecx
mov eax, esp
lea ecx, [ebp - 0x20]
mov dword [eax], 3
call sym.Qt5Core.dll_public_virtual:_bool___thiscall_QFile::open_class_QFlags_enum_QIODevice::OpenModeFlag__
lea ecx, [ebp - 0x20]
test al, al
je 0x670d94c5
push dword [ebp + 0xc]
push dword [ebp + 8]
call sym.Qt5Core.dll_public_virtual:_bool___thiscall_QFile::resize_long_long___int64__
mov bl, al
test bl, bl
jne 0x670d94b6
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x20]
call sym.Qt5Core.dll_public:_class_QString___thiscall_QIODevice::errorString_void_
push eax
push 0xc
mov ecx, edi
mov byte [ebp - 4], 3
call sym.Qt5Core.dll_protected:_void___thiscall_QAbstractFileEngine::setError_enum_QFileDevice::FileError__class_QString_const__
lea ecx, [ebp - 0x18]
call sym.Qt5Core.dll_public:_void___thiscall_QString::destructor_void_
lea ecx, [ebp - 0x20]
call sym.Qt5Core.dll_public_virtual:_void___thiscall_QFile::destructor_void_
mov al, bl
jmp 0x670d9554
call sym.Qt5Core.dll_public_virtual:_void___thiscall_QFile::destructor_void_
jmp 0x670d9552
cmp esi, ebx
jne 0x670d94fb
mov ecx, dword [eax + 0x60]
test ecx, ecx
je 0x670d94eb
push ecx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__fileno]
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__get_osfhandle]
pop ecx
jmp 0x670d94f4
push dword [eax + 0x78]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__get_osfhandle]
mov esi, eax
pop ecx
cmp esi, ebx
je 0x670d9552
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x18]
push dword [ebp + 0xc]
mov dword [ebp - 0x14], eax
mov ecx, edi
mov eax, dword [edi]
push dword [ebp + 8]
mov dword [ebp - 0x10], edx
mov eax, dword [eax + 0x1c]
call eax
test al, al
je 0x670d9545
push esi
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
je 0x670d9545
mov esi, dword [edi]
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.67036aa7
pop ecx
pop ecx
mov ecx, edi
push dword [eax + 4]
push dword [eax]
call dword [esi + 0x1c]
mov al, 1
jmp 0x670d9554
push dword [ebp - 0x10]
mov eax, dword [edi]
mov ecx, edi
push dword [ebp - 0x14]
call dword [eax + 0x1c]
xor al, al
call fcn.671a2adc
ret 8