joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40af3c
Capabilities:
Delete file
Set file attributes

Disassembly:
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
mov eax, dword [esi]
mov eax, dword [eax + 4]
mov eax, dword [eax + esi + 4]
cmp dword [eax + 0x4c], 0xffffffff
je 0x40af7d
call dword [sym.imp.MSVCIRT.dll_public:_void___thiscall_fstream::close_void_]
cmp byte [esi + 0x14], bl
je 0x40af6f
push dword [esi + 0x140]
call dword [sym.imp.MSVCRT.dll_remove]
pop ecx
mov byte [esi + 0x14], bl
jmp 0x40af7d
push 2
push dword [esi + 0x140]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov eax, dword [esi + 0x14c]
lea edi, [esi + 0x14c]
cmp eax, ebx
je 0x40af96
push eax
call sub.MFC42.DLL_operatordelete
pop ecx
mov dword [edi], ebx
mov eax, dword [esi + 0x13c]
lea edi, [esi + 0x13c]
cmp eax, ebx
je 0x40afaf
push eax
call sub.MFC42.DLL_operatordelete
pop ecx
mov dword [edi], ebx
mov eax, dword [esi + 0x1c]
cmp eax, ebx
je 0x40afc0
push eax
call sub.MFC42.DLL_operatordelete
pop ecx
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x158], ebx
mov dword [esi + 0x150], 0x82
mov eax, dword [sym.imp.MSVCIRT.dll_int_const_filebuf::sh_none]
pop edi
mov eax, dword [eax]
mov byte [esi + 0x148], bl
mov dword [esi + 0x154], eax
mov byte [esi + 0x149], bl
pop esi
pop ebx
ret
Function at 0x40afed
Capabilities:
Set file attributes

Disassembly:
mov eax, 0x42b571
call sub.MSVCRT.dll__EH_prolog
sub esp, 0x5c
push ebx
push esi
mov esi, ecx
push edi
push 1
lea ecx, [ebp - 0x68]
mov byte [ebp - 0xd], 1
call dword [sym.imp.MSVCIRT.dll_public:_void___thiscall_ofstream::constructor_void_]
mov eax, dword [esi]
xor ebx, ebx
mov dword [ebp - 4], ebx
mov eax, dword [eax + 4]
mov eax, dword [eax + esi + 4]
cmp dword [eax + 0x4c], 0xffffffff
jne 0x40b044
push str.FILE_MUST_BE_OPENED_FOR_COPY_COMMAND
push dword [0x43b000]
call dword [sym.imp.MSVCRT.dll_sprintf]
pop ecx
pop ecx
mov ecx, dword [0x43b000]
push 2
push ebx
push ecx
call fcn.0041ae3d
mov eax, dword [ebp + 8]
cmp eax, dword [esi + 0x18]
je 0x40b113
push 1
push eax
mov ecx, esi
call fcn.0040bd81
test al, al
je 0x40b07b
mov eax, dword [sym.imp.MSVCIRT.dll_int_const_filebuf::sh_read]
lea ecx, [ebp - 0x68]
push dword [eax]
push 0x80
push dword [esi + 0x144]
call dword [sym.imp.MSVCIRT.dll_public:_void___thiscall_ofstream::open_char_const___int__int_]
jmp 0x40b07e
mov byte [ebp - 0xd], bl
cmp byte [ebp - 0xd], bl
je 0x40b0ec
lea eax, [ebp - 0x68]
test eax, eax
je 0x40b094
mov eax, dword [ebp - 0x68]
mov eax, dword [eax + 4]
lea eax, [ebp + eax - 0x68]
mov ecx, dword [eax + 8]
and cl, 6
neg cl
sbb ecx, ecx
not ecx
and eax, ecx
cmp eax, ebx
je 0x40b0ec
push 0x64
call sub.MFC42.DLL_operatornew
pop ecx
mov edi, eax
push ebx
push ebx
mov ecx, esi
call dword [sym.imp.MSVCIRT.dll_public:_class_istream____thiscall_istream::seekg_long_int__enum_ios::seek_dir_]
mov eax, dword [esi]
mov eax, dword [eax + 4]
mov eax, dword [eax + esi + 8]
test al, 1
jne 0x40b0e5
test al, 6
jne 0x40b0e5
push 0x64
push edi
mov ecx, esi
call dword [sym.imp.MSVCIRT.dll_public:_class_istream____thiscall_istream::read_char___int_]
push dword [esi + 8]
lea ecx, [ebp - 0x68]
push edi
call dword [sym.imp.MSVCIRT.dll_public:_class_ostream____thiscall_ostream::write_char_const___int_]
jmp 0x40b0ba
push edi
call sub.MFC42.DLL_operatordelete
pop ecx
mov eax, dword [ebp - 0x68]
mov eax, dword [eax + 4]
mov eax, dword [ebp + eax - 0x64]
cmp dword [eax + 0x4c], 0xffffffff
je 0x40b113
lea ecx, [ebp - 0x68]
call dword [sym.imp.MSVCIRT.dll_public:_void___thiscall_ofstream::close_void_]
push 2
push dword [esi + 0x144]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push dword [esi + 0x144]
add esi, 0x144
call sub.MFC42.DLL_operatordelete
or dword [ebp - 4], 0xffffffff
pop ecx
lea ecx, [ebp - 0x60]
mov dword [esi], ebx
call dword [sym.imp.MSVCIRT.dll_public_virtual:_void___thiscall_ofstream::destructor_void_]
lea ecx, [ebp - 0x60]
call dword [sym.imp.MSVCIRT.dll_public_virtual:_void___thiscall_ios::destructor_void_]
mov ecx, dword [ebp - 0xc]
mov al, byte [ebp - 0xd]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 4

Function at 0x40b247
Capabilities:
Encode data using xor

Disassembly:
push esi
push edi
mov edi, ecx
mov eax, dword [edi + 0x158]
mov esi, dword [edi + 0x1c]
test eax, eax
jle 0x40b26b
push ebx
mov ebx, eax
xor byte [esi], 0x3f
push esi
mov ecx, edi
call fcn.0040c30e
inc esi
dec ebx
jne 0x40b25b
pop ebx
pop edi
pop esi
ret
Function at 0x40b2cf
Capabilities:
Encode data using xor

Disassembly:
push esi
push edi
mov edi, ecx
mov eax, dword [edi + 0x158]
mov esi, dword [edi + 0x1c]
test eax, eax
jle 0x40b2f3
push ebx
mov ebx, eax
push esi
mov ecx, edi
call fcn.0040c30e
xor byte [esi], 0x3f
inc esi
dec ebx
jne 0x40b2e3
pop ebx
pop edi
pop esi
ret

Function at 0x40b493
Capabilities:
Delete file
Set file attributes

Disassembly:
mov eax, 0x42b613
call sub.MSVCRT.dll__EH_prolog
push ecx
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esi
mov eax, dword [esi - 0x160]
lea edi, [esi - 0x160]
mov eax, dword [eax + 4]
mov dword [eax + esi - 0x160], 0x42fd20
mov eax, dword [edi]
xor ebx, ebx
mov dword [ebp - 4], 1
mov eax, dword [eax + 4]
mov eax, dword [eax + edi + 4]
cmp dword [eax + 0x4c], 0xffffffff
je 0x40b505
mov ecx, edi
call dword [sym.imp.MSVCIRT.dll_public:_void___thiscall_fstream::close_void_]
cmp byte [esi - 0x14c], bl
je 0x40b4fa
push dword [edi + 0x140]
call dword [sym.imp.MSVCRT.dll_remove]
pop ecx
mov byte [edi + 0x14], bl
jmp 0x40b505
push 2
push dword [esi - 0x20]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov eax, dword [esi - 0x14]
cmp eax, ebx
je 0x40b516
push eax
call sub.MFC42.DLL_operatordelete
pop ecx
mov dword [esi - 0x14], ebx
mov eax, dword [esi - 0x24]
cmp eax, ebx
je 0x40b527
push eax
call sub.MFC42.DLL_operatordelete
pop ecx
mov dword [esi - 0x24], ebx
mov eax, dword [esi - 0x20]
cmp eax, ebx
je 0x40b538
push eax
call sub.MFC42.DLL_operatordelete
pop ecx
mov dword [esi - 0x20], ebx
mov eax, dword [esi - 0x144]
lea edi, [esi - 0x144]
cmp eax, ebx
je 0x40b551
push eax
call sub.MFC42.DLL_operatordelete
pop ecx
mov dword [edi], ebx
lea ecx, [esi - 4]
mov byte [ebp - 4], bl
call sub.MFC42.DLL_CString::CString
or dword [ebp - 4], 0xffffffff
lea ecx, [esi - 0x14c]
call dword [sym.imp.MSVCIRT.dll_public_virtual:_void___thiscall_fstream::destructor_void_]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret

Function at 0x40c2b7
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
mov ebx, ecx
test edi, edi
jle 0x40c2d8
push esi
mov ecx, ebx
call fcn.0040c30e
xor byte [esi], 0x3f
inc esi
dec edi
jne 0x40c2c9
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x40c2df
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
mov ebx, ecx
test edi, edi
jle 0x40c300
xor byte [esi], 0x3f
push esi
mov ecx, ebx
call fcn.0040c30e
inc esi
dec edi
jne 0x40c2f1
pop edi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x40c35b
Capabilities:
Read file on windows

Disassembly:
mov eax, 0x42b6a8
call sub.MSVCRT.dll__EH_prolog
sub esp, 0xc
push ebx
push esi
push edi
mov esi, ecx
mov edi, 0x101
xor ebx, ebx
push edi
mov dword [esi + 8], ebx
call sub.MFC42.DLL_operatornew
pop ecx
mov dword [esi], eax
push edi
call sub.MFC42.DLL_operatornew
pop ecx
mov dword [esi + 4], eax
push 0x119
call sub.MFC42.DLL_operatornew
pop ecx
mov dword [esi + 8], eax
push 0x43b184
push eax
call sub.MSVCRT.dll_strcpy
pop ecx
pop ecx
push edi
push ebx
push dword [esi]
call sub.MSVCRT.dll_memset
add esp, 0xc
push edi
push ebx
push dword [esi + 4]
call sub.MSVCRT.dll_memset
add esp, 0xc
lea eax, [ebp - 0x18]
mov ecx, 0x441ef8
push eax
call fcn.00403db2
push 0x43b194
push eax
lea eax, [ebp - 0x14]
mov dword [ebp - 4], ebx
push eax
call sub.MFC42.DLL_operator_2
push 0x40
push 0x43b190
push dword [eax]
mov byte [ebp - 4], 1
call dword [sym.imp.MSVCRT.dll__fsopen]
add esp, 0xc
lea ecx, [ebp - 0x14]
test eax, eax
setne bl
and byte [ebp - 4], 0
mov dword [ebp - 0x10], eax
call sub.MFC42.DLL_CString::CString
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call sub.MFC42.DLL_CString::CString
test bl, bl
je 0x40c477
push dword [ebp - 0x10]
mov ebx, dword [sym.imp.MSVCRT.dll_fread]
dec edi
push edi
push 1
push dword [esi]
call ebx
add esp, 0x10
push dword [ebp - 0x10]
push edi
push 1
push dword [esi + 4]
call ebx
add esp, 0x10
cmp eax, edi
je 0x40c46b
push 0x43b1a4
push str.FILECONV
push 0x42fd38
push dword [esi + 8]
call dword [sym.imp.MSVCRT.dll_sprintf]
mov ecx, dword [0x43b000]
add esp, 0x10
push 2
push 0
push dword [esi + 8]
call fcn.0041ae3d
push dword [ebp - 0x10]
call dword [sym.imp.MSVCRT.dll_fclose]
pop ecx
jmp 0x40c4a4
push str.DDECCONV.DAT
push str.FILECONV
push 0x42fd50
push dword [esi + 8]
call dword [sym.imp.MSVCRT.dll_sprintf]
mov ecx, dword [0x43b000]
add esp, 0x10
push 2
push 0
push dword [esi + 8]
call fcn.0041ae3d
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret
Function at 0x40c632
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x12c
push ebx
push esi
push edi
mov edi, ecx
push 0x4b
mov byte [ebp - 1], 1
mov byte [ebp - 2], 1
call sub.MFC42.DLL_operatornew
pop ecx
mov dword [ebp - 8], eax
push 0x4b
call sub.MFC42.DLL_operatornew
pop ecx
mov dword [ebp - 0xc], eax
push 0x64
call sub.MFC42.DLL_operatornew
pop ecx
mov dword [ebp - 0x10], eax
push 0
call dword [sym.imp.MSVCRT.dll_time]
pop ecx
mov esi, dword [sym.imp.MSVCRT.dll_sprintf]
push dword [ebp + 0xc]
mov dword [ebp - 0x14], eax
push dword [ebp + 8]
push 0x43b1dc
push dword [ebp - 0xc]
call esi
mov ecx, dword [edi + 4]
add esp, 0x10
push 0x48
push dword [ebp - 0xc]
call fcn.00405dc4
push dword [ebp + 8]
push str.DELETING_FILES_IN__s
push dword [ebp - 0x10]
call esi
add esp, 0xc
mov ecx, dword [edi + 4]
lea eax, [ebp - 0x12c]
push eax
call fcn.00405cd3
test eax, eax
je 0x40c6ed
cmp eax, 0xfe
je 0x40c6cf
and byte [ebp - 2], 0
mov byte [ebp - 1], 1
jmp 0x40c74b
push dword [ebp - 8]
push str.FLMAINT
push 0x42fdc8
push dword [edi]
call esi
and byte [ebp - 2], 0
add esp, 0x10
and byte [ebp - 1], 0
jmp 0x40c74b
push dword [ebp + 8]
push dword [ebp - 8]
call sub.MSVCRT.dll_strcpy
pop ecx
lea eax, [ebp - 0x118]
pop ecx
push eax
push dword [ebp - 8]
call sub.MSVCRT.dll_strcat
pop ecx
pop ecx
push 0x24
call sub.MFC42.DLL_operatornew
mov ebx, eax
pop ecx
test ebx, ebx
je 0x40c74b
push ebx
push dword [ebp - 8]
call dword [sym.imp.MSVCRT.dll__stat]
pop ecx
test eax, eax
pop ecx
jne 0x40c744
mov eax, dword [ebp + 0x10]
imul eax, eax, 0x15180
add eax, dword [ebx + 0x1c]
cmp dword [ebp - 0x14], eax
jle 0x40c744
push dword [ebp - 8]
call dword [sym.imp.MSVCRT.dll_remove]
pop ecx
push ebx
call sub.MFC42.DLL_operatordelete
pop ecx
cmp byte [ebp - 2], 0
jne 0x40c6ab
cmp byte [ebp - 1], 0
jne 0x40c773
push dword [0x442410]
mov ecx, dword [0x43b000]
push 0x42fd78
push dword [edi]
call fcn.0041b07d
push dword [ebp - 8]
call sub.MFC42.DLL_operatordelete
pop ecx
push dword [ebp - 0xc]
call sub.MFC42.DLL_operatordelete
pop ecx
push dword [ebp - 0x10]
call sub.MFC42.DLL_operatordelete
mov al, byte [ebp - 1]
pop ecx
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x40cd9d
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [sym.imp.MSVCRT.dll__open]
push edi
push 0x8000
mov edi, 0xff00
push dword [ebp + 8]
mov dword [ebp - 4], edi
call esi
mov ebx, eax
pop ecx
cmp ebx, 0xffffffff
pop ecx
je 0x40ce97
push 0x180
push 0x8301
push dword [ebp + 0xc]
call esi
add esp, 0xc
cmp eax, 0xffffffff
mov dword [ebp + 0xc], eax
je 0x40ce97
mov esi, dword [sym.imp.MSVCRT.dll__filelength]
push ebx
call esi
cmp eax, edi
pop ecx
jae 0x40cdfd
push ebx
call esi
pop ecx
mov edi, eax
jmp 0x40ce00
mov edi, dword [ebp - 4]
push edi
call dword [sym.imp.MSVCRT.dll_malloc]
test eax, eax
pop ecx
mov dword [ebp + 8], eax
jne 0x40ce2f
push dword [0x442410]
mov ecx, dword [0x43b000]
push 0x42fd78
push str.Memory_Error
call fcn.0041b07d
push 0xc
pop eax
jmp 0x40ce90
push ebx
call dword [sym.imp.MSVCRT.dll__eof]
test eax, eax
pop ecx
jne 0x40ce74
mov esi, 0xffff
push edi
push dword [ebp + 8]
push ebx
call dword [sym.imp.MSVCRT.dll__read]
add esp, 0xc
cmp eax, esi
je 0x40ce97
push eax
push dword [ebp + 8]
push dword [ebp + 0xc]
call dword [sym.imp.MSVCRT.dll__write]
mov edi, eax
add esp, 0xc
cmp edi, esi
je 0x40ce97
push ebx
call dword [sym.imp.MSVCRT.dll__eof]
test eax, eax
pop ecx
je 0x40ce40
mov esi, dword [sym.imp.MSVCRT.dll__close]
push ebx
call esi
pop ecx
push dword [ebp + 0xc]
call esi
pop ecx
push dword [ebp + 8]
call dword [sym.imp.MSVCRT.dll_free]
pop ecx
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 8
call dword [sym.imp.MSVCRT.dll__errno]
mov eax, dword [eax]
jmp 0x40ce90
Function at 0x412225
Capabilities:
Write file on windows

Disassembly:
mov eax, 0x42bf89
call sub.MSVCRT.dll__EH_prolog
sub esp, 0x14
push ebx
push esi
push edi
mov esi, ecx
push 0x1b0
mov byte [ebp - 0xd], 1
call sub.MFC42.DLL_operatornew
pop ecx
mov dword [ebp - 0x1c], eax
and dword [ebp - 4], 0
test eax, eax
je 0x41226f
mov eax, dword [esi]
push 1
mov ecx, esi
call dword [eax + 0xdc]
mov ecx, dword [ebp - 0x1c]
push eax
push 0x52
push dword [ebp + 8]
call fcn.0040b3c3
mov ebx, eax
jmp 0x412271
xor ebx, ebx
or dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x18], ebx
test ebx, ebx
je 0x4123b0
push 0x64
call sub.MFC42.DLL_operatornew
test eax, eax
pop ecx
mov dword [ebp - 0x14], eax
je 0x41239b
mov edi, dword [sym.imp.MSVCRT.dll_sprintf]
cmp byte [ebp - 0xd], 0
je 0x412390
push 0x64
mov ecx, ebx
push dword [ebp - 0x14]
call fcn.0040beb4
cmp eax, 0xffffffff
mov dword [ebp - 0x1c], eax
je 0x4122fe
cmp eax, 1
jne 0x41235e
push dword [esi + 0x124]
mov ecx, ebx
call fcn.0040b591
push eax
push 1
push dword [ebp - 0x14]
call dword [sym.imp.MSVCRT.dll_fwrite]
mov edx, eax
add esp, 0x10
mov ecx, ebx
mov dword [ebp - 0x20], edx
call fcn.0040b591
mov ecx, dword [ebp - 0x20]
cmp ecx, eax
je 0x412383
push dword [ebp + 8]
lea ebx, [esi + 0x131]
jmp 0x412336
push dword [esi + 0x124]
mov ecx, ebx
call fcn.0040b591
push eax
push 1
push dword [ebp - 0x14]
call dword [sym.imp.MSVCRT.dll_fwrite]
mov edx, eax
add esp, 0x10
mov ecx, ebx
mov dword [ebp - 0x20], edx
call fcn.0040b591
mov ecx, dword [ebp - 0x20]
push dword [ebp + 8]
cmp ecx, eax
lea ebx, [esi + 0x131]
je 0x412364
push dword [0x442424]
push 0x4303e8
push ebx
call edi
mov ecx, dword [0x43b000]
add esp, 0x10
push 2
push 0
push ebx
call fcn.0041ae3d
mov byte [esi + 0x130], 1
and byte [ebp - 0xd], 0
jmp 0x412383
push str.FILE_COPIED_SUCCESSFULLY:__s.
push ebx
call edi
mov ecx, dword [0x43b000]
add esp, 0xc
push 0
push 0
push ebx
call fcn.0041b07d
and dword [ebp - 0x1c], 0
cmp dword [ebp - 0x1c], 0
mov ebx, dword [ebp - 0x18]
jne 0x412299
push dword [ebp - 0x14]
call sub.MFC42.DLL_operatordelete
pop ecx
jmp 0x41239f
and byte [ebp - 0xd], 0
mov eax, dword [ebx]
push 1
mov eax, dword [eax + 4]
lea ecx, [eax + ebx]
mov eax, dword [eax + ebx]
call dword [eax]
jmp 0x4123b4
and byte [ebp - 0xd], 0
mov ecx, dword [ebp - 0xc]
mov al, byte [ebp - 0xd]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 4

Function at 0x4123c8
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
push dword [ebp + 8]
mov edi, ecx
call sub.MSVCRT.dll_strlen
pop ecx
mov esi, eax
push dword [ebp + 0xc]
call sub.MSVCRT.dll_strlen
pop ecx
lea eax, [esi + eax + 1]
push eax
call sub.MFC42.DLL_operatornew
mov esi, eax
pop ecx
test esi, esi
je 0x412418
push dword [ebp + 0xc]
push dword [ebp + 8]
push 0x43c704
push esi
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0x10
push esi
call dword [sym.imp.MSVCRT.dll_remove]
pop ecx
push esi
call sub.MFC42.DLL_operatordelete
pop ecx
and byte [edi + 0x130], 0
pop edi
pop esi
pop ebp
ret 8
Function at 0x412689
Capabilities:
Read file on windows

Disassembly:
mov eax, 0x42bfcf
call sub.MSVCRT.dll__EH_prolog
sub esp, 0x10
and byte [ebp - 0xe], 0
push ebx
push esi
push edi
xor edi, edi
mov esi, ecx
push 0x1b0
mov byte [ebp - 0xd], 1
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x14], edi
call sub.MFC42.DLL_operatornew
pop ecx
mov dword [ebp - 0x18], eax
cmp eax, edi
mov dword [ebp - 4], edi
je 0x4126df
mov eax, dword [esi]
push 1
mov ecx, esi
call dword [eax + 0xdc]
mov ecx, dword [ebp - 0x18]
push eax
push 0x57
push dword [ebp + 8]
call fcn.0040b3c3
mov dword [ebp - 0x18], eax
jmp 0x4126e2
mov dword [ebp - 0x18], edi
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x18], edi
jne 0x4126ef
and byte [ebp - 0xd], 0
cmp byte [ebp - 0xd], 0
je 0x41270f
push 0xb9a
call sub.MFC42.DLL_operatornew
cmp eax, edi
pop ecx
mov dword [ebp - 0x14], eax
jne 0x41270b
and byte [ebp - 0xd], 0
cmp byte [ebp - 0xd], 0
mov edi, dword [sym.imp.MSVCRT.dll_sprintf]
mov ebx, dword [sym.imp.MSVCRT.dll_fread]
je 0x41274f
push dword [esi + 0x124]
push 0x10
push 1
push dword [ebp - 0x14]
call ebx
add esp, 0x10
cmp eax, 0x10
mov dword [ebp - 0x1c], eax
jge 0x41274f
push dword [ebp + 8]
lea eax, [esi + 0x131]
push str.ERROR:_READING_DDEC_II_BASE_CAL___s
push eax
call edi
add esp, 0xc
and byte [ebp - 0xd], 0
cmp byte [ebp - 0xd], 0
je 0x41278c
push dword [esi + 0x124]
push 0xb9a
push 1
push dword [ebp - 0x14]
call ebx
add esp, 0x10
cmp eax, 0xb9a
mov dword [ebp - 0x1c], eax
jge 0x41278c
push dword [ebp + 8]
lea eax, [esi + 0x131]
push str.ERROR:_READING_DDEC_II_BASE_CAL___s
push eax
call edi
add esp, 0xc
and byte [ebp - 0xd], 0
cmp byte [ebp - 0xd], 0
mov ebx, str.ERROR:_WRITING_ENCRYPTED_DDEC_II_BASE_CAL___s
je 0x4127bc
push dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x18]
push dword [ebp - 0x14]
call fcn.0040c154
test al, al
mov byte [ebp - 0xd], al
jne 0x4127bc
push dword [ebp + 8]
lea eax, [esi + 0x131]
push ebx
push eax
call edi
add esp, 0xc
and dword [ebp - 0x1c], 0
cmp byte [ebp - 0xd], 0
je 0x4127fa
mov ecx, dword [ebp - 0x18]
lea eax, [ebp - 0xe]
push 1
push eax
call fcn.0040c215
test al, al
mov byte [ebp - 0xd], al
jne 0x4127eb
push dword [ebp + 8]
lea eax, [esi + 0x131]
push ebx
push eax
call edi
add esp, 0xc
inc dword [ebp - 0x1c]
cmp dword [ebp - 0x1c], 0x1e
jl 0x4127c0
cmp byte [ebp - 0xd], 0
jne 0x412810
mov ecx, dword [0x43b000]
push 1
add esi, 0x131
push 0
push esi
call fcn.0041ae3d
push dword [ebp - 0x14]
call sub.MFC42.DLL_operatordelete
mov eax, dword [ebp - 0x18]
pop ecx
test eax, eax
je 0x41282d
mov ecx, dword [eax]
push 1
mov ecx, dword [ecx + 4]
add ecx, eax
mov eax, dword [ecx]
call dword [eax]
mov ecx, dword [ebp - 0xc]
mov al, byte [ebp - 0xd]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 4
Function at 0x412841
Capabilities:
Read file on windows

Disassembly:
mov eax, 0x42bfe3
call sub.MSVCRT.dll__EH_prolog
sub esp, 0x10
push ebx
push esi
push edi
mov esi, ecx
push 0x1b0
mov byte [ebp - 0xd], 1
call sub.MFC42.DLL_operatornew
pop ecx
mov dword [ebp - 0x18], eax
and dword [ebp - 4], 0
test eax, eax
je 0x41288c
mov eax, dword [esi]
push 1
mov ecx, esi
call dword [eax + 0xdc]
mov ecx, dword [ebp - 0x18]
push eax
push 0x57
push dword [ebp + 8]
call fcn.0040b3c3
mov dword [ebp - 0x14], eax
jmp 0x412890
and dword [ebp - 0x14], 0
mov eax, dword [ebp - 0x14]
or dword [ebp - 4], 0xffffffff
test eax, eax
je 0x41296f
push 0x64
call sub.MFC42.DLL_operatornew
test eax, eax
pop ecx
mov dword [ebp - 0x18], eax
je 0x41295d
mov ebx, dword [sym.imp.MSVCRT.dll_sprintf]
cmp byte [ebp - 0xd], 0
je 0x412961
push dword [esi + 0x124]
push 0x64
push 1
push dword [ebp - 0x18]
call dword [sym.imp.MSVCRT.dll_fread]
add esp, 0x10
mov dword [ebp - 0x1c], eax
test eax, eax
je 0x4128fa
mov ecx, dword [ebp - 0x14]
push eax
push dword [ebp - 0x18]
call fcn.0040c154
test al, al
jne 0x412951
push 2
push 0
push str.ERROR_WRITING_TO_FILE
jmp 0x412925
mov eax, dword [esi + 0x124]
push dword [ebp + 8]
lea edi, [esi + 0x131]
test byte [eax + 0xc], 0x10
jne 0x412936
push dword [0x442424]
push 0x4303d0
push edi
call ebx
add esp, 0x10
push 2
push 0
push edi
mov ecx, dword [0x43b000]
call fcn.0041ae3d
and byte [ebp - 0xd], 0
jmp 0x412951
push str.FILE_COPIED_SUCCESSFULLY:__s.
push edi
call ebx
mov ecx, dword [0x43b000]
add esp, 0xc
push 0
push 0
push edi
call fcn.0041b07d
cmp dword [ebp - 0x1c], 0
jne 0x4128b8
jmp 0x412961
and byte [ebp - 0xd], 0
push dword [ebp - 0x18]
call sub.MFC42.DLL_operatordelete
mov eax, dword [ebp - 0x14]
pop ecx
jmp 0x412973
and byte [ebp - 0xd], 0
test eax, eax
je 0x412984
mov ecx, dword [eax]
push 1
mov ecx, dword [ecx + 4]
add ecx, eax
mov eax, dword [ecx]
call dword [eax]
mov ecx, dword [ebp - 0xc]
mov al, byte [ebp - 0xd]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 4
Function at 0x41e6a5
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
fld qword [ebp + 0x14]
fcomp qword [0x4310e0]
push ebx
fnstsw ax
sahf
ja 0x41e6ce
fld qword [ebp + 0x14]
fcomp qword [0x4310e8]
fnstsw ax
sahf
jb 0x41e6ce
and byte [ebp - 1], 0
jmp 0x41e6d2
mov byte [ebp - 1], 1
cmp byte [ebp - 1], 0
je 0x41e6f0
fld qword [ebp + 0x14]
lea eax, [ebp - 0x20]
push eax
push ecx
push ecx
fchs
fstp qword [esp]
push 1
call fcn.0041e7e5
add esp, 0x10
fld qword [ebp + 0xc]
fcomp qword [0x4310f0]
fnstsw ax
sahf
ja 0x41e710
fld qword [ebp + 0xc]
fcomp qword [0x4310f8]
fnstsw ax
sahf
jb 0x41e710
xor bl, bl
jmp 0x41e712
mov bl, 1
test bl, bl
je 0x41e74d
fld qword [ebp + 0xc]
fcomp qword [0x431100]
fnstsw ax
sahf
jbe 0x41e731
fld qword [ebp + 0xc]
lea eax, [ebp - 0x10]
mov byte [ebp + 0x1b], 0x2f
push eax
jmp 0x41e73e
fld1
lea eax, [ebp - 0x10]
mov byte [ebp + 0x1b], 0x2a
fdiv qword [ebp + 0xc]
push eax
push ecx
push ecx
fstp qword [esp]
push 0
call fcn.0041e7e5
add esp, 0x10
cmp byte [ebp - 1], 0
je 0x41e794
test bl, bl
je 0x41e777
lea eax, [ebp - 0x10]
push eax
movsx eax, byte [ebp + 0x1b]
push eax
lea eax, [ebp - 0x20]
push eax
push str._E_s__c_s
push dword [ebp + 8]
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0x14
jmp 0x41e7c6
cmp byte [ebp - 1], 0
je 0x41e794
lea eax, [ebp - 0x20]
push eax
push 0x43f714
push dword [ebp + 8]
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0xc
jmp 0x41e7c6
test bl, bl
je 0x41e7b4
lea eax, [ebp - 0x10]
push eax
movsx eax, byte [ebp + 0x1b]
push eax
push str.E_c_s
push dword [ebp + 8]
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0x10
jmp 0x41e7c6
push 0x43f720
push dword [ebp + 8]
call sub.MSVCRT.dll_strcpy
pop ecx
pop ecx
push 1
pop eax
cmp eax, 0xe
jle 0x41e7e2
push 0
push 0
push str.Equation_size_overran
call sub.MFC42.DLL_AfxMessageBox_1
push 0
call dword [sym.imp.MSVCRT.dll_exit]
pop ecx
pop ebx
leave
ret