joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40100a
Capabilities:
Check os version

Disassembly:
jmp 0x415910
push 0xffffffffffffffff
push 0x43c145
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xa4
push esi
push edi
push 0x44e400
lea ecx, [esp + 0xc]
mov dword [esp + 0x10], 0
call sub.MFC42.DLL_CString::CString_1
mov ecx, 0x27
xor eax, eax
lea edi, [esp + 0x10]
mov dword [esp + 0xb4], 1
rep stosd dword es:[edi], eax
lea eax, [esp + 0x10]
mov dword [esp + 0x10], 0x9c
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov esi, eax
mov eax, dword [esp + 0x20]
sub eax, 0
je 0x415ad8
dec eax
je 0x415a8a
dec eax
jne 0x415af4
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov edi, 5
cmp eax, edi
jne 0x4159d7
test ecx, ecx
jne 0x4159b9
lea ecx, [esp + 0x24]
lea edx, [esp + 8]
push ecx
push str.Windows_2000_com__s
push edx
call sub.MFC42.DLL_CString::Format
add esp, 0xc
jmp 0x415a0f
cmp ecx, 1
jne 0x4159fb
lea eax, [esp + 0x24]
lea ecx, [esp + 8]
push eax
push str.Windows_XP__s
push ecx
call sub.MFC42.DLL_CString::Format
add esp, 0xc
jmp 0x415a0f
cmp eax, 4
ja 0x4159fb
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0x24]
push edx
push ecx
push eax
lea edx, [esp + 0x14]
push str.Windows_NT__d._d_com__s
push edx
call sub.MFC42.DLL_CString::Format
add esp, 0x14
jmp 0x415a0f
push ecx
push eax
lea eax, [esp + 0x10]
push str.Windows__d._d
push eax
call sub.MFC42.DLL_CString::Format
add esp, 0x10
test esi, esi
je 0x415af4
cmp byte [esp + 0xaa], 1
jne 0x415af4
cmp dword [esp + 0x14], edi
jne 0x415a73
cmp dword [esp + 0x18], 1
jne 0x415a59
mov eax, dword [esp + 0xa8]
test ah, 2
je 0x415a45
push str._Home_Edition
jmp 0x415a4a
push str._Professional
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CString::operator
cmp dword [esp + 0x14], edi
jne 0x415a73
mov eax, dword [esp + 0x18]
test eax, eax
jne 0x415af4
push str._Professional
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CString::operator
cmp dword [esp + 0x14], 4
jne 0x415af4
push str._Workstation
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CString::operator
jmp 0x415af4
mov eax, dword [esp + 0x18]
test eax, eax
jne 0x415aa6
lea ecx, [esp + 8]
push str.Windows_95
push ecx
call sub.MFC42.DLL_CString::Format
add esp, 8
jmp 0x415af4
cmp eax, 0xa
jne 0x415abf
lea edx, [esp + 8]
push str.Windows_98
push edx
call sub.MFC42.DLL_CString::Format
add esp, 8
jmp 0x415af4
cmp eax, 0x5a
jne 0x415af4
lea eax, [esp + 8]
push str.Windows_Me
push eax
call sub.MFC42.DLL_CString::Format
add esp, 8
jmp 0x415af4
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
push ecx
push edx
lea eax, [esp + 0x10]
push 0x44a5e4
push eax
call sub.MFC42.DLL_CString::Format
add esp, 0x10
mov esi, dword [esp + 0xbc]
lea ecx, [esp + 8]
push ecx
mov ecx, esi
call sub.MFC42.DLL_CString::CString_2
mov dword [esp + 0xc], 1
lea ecx, [esp + 8]
mov byte [esp + 0xb4], 0
call fcn.0043641e
mov ecx, dword [esp + 0xac]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0xb0
ret

Function at 0x40102d
Capabilities:
Delete file

Disassembly:
jmp 0x402a40
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.MSVCRT.dll_remove]
add esp, 4
neg eax
sbb eax, eax
ret
Function at 0x40105a
Capabilities:
Receive data
Receive data on socket

Disassembly:
jmp 0x4275d0
mov eax, dword [esp + 0xc]
push ebx
push ebp
mov ebp, ecx
mov ecx, dword [esp + 0x10]
push esi
mov esi, dword [esp + 0x10]
mov edx, dword [ebp + 0x19d]
push edi
push eax
push ecx
push esi
push edx
call sub.WS2_32.dll_recv
mov dword [esp + 0x1c], eax
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
add ebp, 0x11c6
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebx, ecx
cmp ebx, 0xfffffffd
jbe 0x427614
call dword [sym.imp.MSVCP60.dll_void___cdecl_std::_Xlen_void_]
mov ecx, dword [ebp + 4]
xor edi, edi
cmp ecx, edi
je 0x42763c
mov al, byte [ecx - 1]
test al, al
je 0x42763c
cmp al, 0xff
je 0x42763c
cmp ebx, edi
jne 0x427662
dec al
mov byte [ecx - 1], al
mov dword [ebp + 4], edi
mov dword [ebp + 8], edi
mov dword [ebp + 0xc], edi
jmp 0x42768e
cmp ebx, edi
jne 0x42764c
push 1
mov ecx, ebp
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
jmp 0x42768e
mov eax, dword [ebp + 0xc]
cmp eax, 0x1f
ja 0x427658
cmp eax, ebx
jae 0x42766b
push 1
mov ecx, ebp
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
push ebx
mov ecx, ebp
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Copy_unsigned_int_]
mov edi, dword [ebp + 4]
mov ecx, ebx
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebp + 4]
mov esi, dword [esp + 0x14]
mov dword [ebp + 8], ebx
xor edi, edi
mov byte [ebx + ecx], 0
mov eax, dword [esp + 0x1c]
cmp eax, 0xffffffff
je 0x4276ce
push 0x44c628
mov byte [eax + esi], 0
push esi
mov esi, dword [sym.imp.MSVCRT.dll_strtok]
call esi
mov edx, eax
add esp, 8
cmp edx, edi
je 0x4276ce
mov al, byte [edx + 3]
cmp al, 0x20
je 0x4276d7
cmp al, 0x2d
je 0x4276d7
push 0x44c628
push edi
call esi
mov edx, eax
add esp, 8
cmp edx, edi
jne 0x4276b2
pop edi
pop esi
pop ebp
xor al, al
pop ebx
ret 0x10
mov esi, dword [esp + 0x20]
or ecx, 0xffffffff
mov edi, esi
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push esi
push edx
call dword [sym.imp.MSVCRT.dll_strncmp]
add esp, 0xc
test eax, eax
pop edi
pop esi
pop ebp
pop ebx
sete al
ret 0x10
Function at 0x4010aa
Capabilities:
Move file

Disassembly:
jmp 0x41e480
push 0xffffffffffffffff
push 0x43c711
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x124
lea ecx, [esp + 8]
call sub.MFC42.DLL_CFileFind::CFileFind
lea ecx, [esp]
mov dword [esp + 0x12c], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 4]
mov byte [esp + 0x12c], 1
call sub.MFC42.DLL_CString::CString
lea eax, [esp + 0x24]
mov byte [esp + 0x12c], 2
push eax
call fcn.004013a2
lea ecx, [esp + 0x28]
lea edx, [esp + 4]
push ecx
push str._sMedVirt.prg
push edx
call sub.MFC42.DLL_CString::Format
lea eax, [esp + 0x34]
push str.MedVirtual
push eax
lea ecx, [esp + 0x1c]
push str._s_s.prg
push ecx
call sub.MFC42.DLL_CString::Format
mov edx, dword [esp + 0x20]
add esp, 0x20
lea ecx, [esp + 8]
push 0
push edx
call sub.MFC42.DLL_CFileFind::FindFile
test eax, eax
je 0x41e532
mov eax, dword [esp + 4]
mov ecx, dword [esp]
push eax
push ecx
call dword [sym.imp.MSVCRT.dll_rename]
add esp, 8
lea ecx, [esp + 4]
mov byte [esp + 0x12c], 1
call fcn.0043641e
lea ecx, [esp]
mov byte [esp + 0x12c], 0
call fcn.0043641e
lea ecx, [esp + 8]
mov dword [esp + 0x12c], 0xffffffff
call fcn.004365fe
mov ecx, dword [esp + 0x124]
mov dword fs:[0], ecx
add esp, 0x130
ret
Function at 0x401271
Capabilities:
Reference sql statements

Disassembly:
jmp 0x40d420
push 0xffffffffffffffff
push 0x43b8d0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebp
mov ebp, dword [esp + 0x20]
push esi
push edi
mov eax, dword [ebp]
push 0x44e400
lea ecx, [esp + 0x10]
mov dword [esp + 0x14], eax
call sub.MFC42.DLL_CString::CString_1
push 0x44e400
lea ecx, [esp + 0x2c]
mov dword [esp + 0x20], 0
call sub.MFC42.DLL_CString::CString_1
movsx ecx, word [esp + 0x2c]
push ecx
lea edx, [esp + 0x2c]
push str.Analogica_d
push edx
mov byte [esp + 0x28], 1
call sub.MFC42.DLL_CString::Format
mov edi, dword [esp + 0x3c]
add esp, 0xc
test edi, edi
je 0x40d4fe
mov ecx, dword [esp + 0x34]
test ecx, ecx
je 0x40d4fe
lea eax, [esp + 0x30]
push 0x449134
push eax
call sub.MFC42.DLL_COleDateTime::Format
mov esi, eax
lea ecx, [esp + 0x2c]
push 0x449134
push ecx
mov ecx, edi
mov byte [esp + 0x24], 2
call sub.MFC42.DLL_COleDateTime::Format
mov edx, dword [esi]
mov eax, dword [eax]
mov ecx, dword [esp + 0x28]
push edx
push eax
push ecx
lea edx, [esp + 0x18]
push str.SELECT__FROM__s_WHERE_DataHora_BETWEEN__s_AND__s_ORDER_BY_DataHora_DESC_
push edx
mov byte [esp + 0x30], 3
call sub.MFC42.DLL_CString::Format
add esp, 0x14
lea ecx, [esp + 0x2c]
mov byte [esp + 0x1c], 2
call fcn.0043641e
lea ecx, [esp + 0x30]
mov byte [esp + 0x1c], 1
call fcn.0043641e
jmp 0x40d516
mov eax, dword [esp + 0x28]
push eax
push eax
lea eax, [esp + 0x14]
push str.SELECT__FROM__s_WHERE_DataHora___SELECT_MAX_DataHora__FROM__s__
push eax
call sub.MFC42.DLL_CString::Format
add esp, 0x10
mov ecx, dword [esp + 0x10]
mov esi, dword [esp + 0x24]
push ecx
push esi
call fcn.00401311
add esp, 4
lea edx, [esp + 0x10]
mov ecx, esp
mov dword [esp + 0x38], esp
push edx
call sub.MFC42.DLL_CString::CString_2
lea eax, [esp + 0x14]
push eax
push esi
call fcn.004017d5
add esp, 0xc
cmp al, 0xff
jne 0x40d553
mov ecx, dword [esp + 0x10]
mov dword [ebp], ecx
jmp 0x40d55a
mov edx, dword [esp + 0x10]
mov dword [ebp], edx
lea ecx, [esp + 0x28]
mov byte [esp + 0x1c], 0
call fcn.0043641e
lea ecx, [esp + 0xc]
mov dword [esp + 0x1c], 0xffffffff
call fcn.0043641e
mov ecx, dword [esp + 0x14]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebp
add esp, 0x14
ret

Function at 0x401280
Capabilities:
Get memory capacity

Disassembly:
jmp 0x415bd0
push 0xffffffffffffffff
push 0x43c17f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x28
push esi
push 0x44e400
lea ecx, [esp + 8]
mov dword [esp + 0xc], 0
call sub.MFC42.DLL_CString::CString_1
lea eax, [esp + 0xc]
mov dword [esp + 0x34], 1
push eax
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatus]
mov ecx, dword [esp + 0x14]
lea edx, [esp + 4]
shr ecx, 0x14
push ecx
push str._d_MB
push edx
call sub.MFC42.DLL_CString::Format
mov esi, dword [esp + 0x48]
add esp, 0xc
lea eax, [esp + 4]
mov ecx, esi
push eax
call sub.MFC42.DLL_CString::CString_2
mov dword [esp + 8], 1
lea ecx, [esp + 4]
mov byte [esp + 0x34], 0
call fcn.0043641e
mov ecx, dword [esp + 0x2c]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x34
ret
Function at 0x401294
Capabilities:
Access peb ldr_data

Disassembly:
jmp 0x416da0
push 0xffffffffffffffff
push 0x43c45f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x70
push esi
push edi
lea ecx, [esp + 0x10]
mov dword [esp + 0xc], 0
call sub.MFC42.DLL_CFileFind::CFileFind
lea ecx, [esp + 0x2c]
mov dword [esp + 0x80], 1
call fcn.00401203
push 0x44e400
lea ecx, [esp + 0xc]
mov byte [esp + 0x84], 2
call sub.MFC42.DLL_CString::CString_1
push 0x44fb64
mov byte [esp + 0x84], 3
call fcn.00401942
mov edi, dword [esp + 0x90]
or ecx, 0xffffffff
xor eax, eax
add esp, 4
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push eax
mov esi, edi
mov edx, ecx
mov edi, 0x44fb64
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push 0x44fb64
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CFileFind::FindFile
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CFileFind::FindNextFileA
push 0x44fb64
lea ecx, [esp + 0x30]
call fcn.00401924
mov eax, dword [esp + 0x3c]
lea edx, [esp + 8]
shr eax, 0x10
push eax
mov eax, dword [esp + 0x3c]
mov ecx, eax
and ecx, 0xffff
shr eax, 0x10
push ecx
push eax
push str._d._d._d
push edx
call sub.MFC42.DLL_CString::Format
mov esi, dword [esp + 0x9c]
add esp, 0x14
lea eax, [esp + 8]
mov ecx, esi
push eax
call sub.MFC42.DLL_CString::CString_2
mov dword [esp + 0xc], 1
lea ecx, [esp + 8]
mov byte [esp + 0x80], 2
call fcn.0043641e
lea ecx, [esp + 0x2c]
mov byte [esp + 0x80], 1
call fcn.004016b3
lea ecx, [esp + 0x10]
mov byte [esp + 0x80], 0
call fcn.004365fe
mov ecx, dword [esp + 0x78]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x7c
ret
Function at 0x4012a8
Capabilities:
Reference sql statements

Disassembly:
jmp 0x40ceb0
push 0xffffffffffffffff
push 0x43b810
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebp
mov ebp, dword [esp + 0x20]
push esi
push edi
mov eax, dword [ebp]
push 0x44e400
lea ecx, [esp + 0x10]
mov dword [esp + 0x14], eax
call sub.MFC42.DLL_CString::CString_1
push 0x44e400
lea ecx, [esp + 0x2c]
mov dword [esp + 0x20], 0
call sub.MFC42.DLL_CString::CString_1
movsx ecx, word [esp + 0x2c]
push ecx
lea edx, [esp + 0x2c]
push str.Utilidades_d
push edx
mov byte [esp + 0x28], 1
call sub.MFC42.DLL_CString::Format
mov edi, dword [esp + 0x3c]
add esp, 0xc
test edi, edi
je 0x40cf8e
mov ecx, dword [esp + 0x34]
test ecx, ecx
je 0x40cf8e
lea eax, [esp + 0x30]
push 0x449134
push eax
call sub.MFC42.DLL_COleDateTime::Format
mov esi, eax
lea ecx, [esp + 0x2c]
push 0x449134
push ecx
mov ecx, edi
mov byte [esp + 0x24], 2
call sub.MFC42.DLL_COleDateTime::Format
mov edx, dword [esi]
mov eax, dword [eax]
mov ecx, dword [esp + 0x28]
push edx
push eax
push ecx
lea edx, [esp + 0x18]
push str.SELECT__FROM__s_WHERE_DataHora_BETWEEN__s_AND__s_ORDER_BY_DataHora_ASC_
push edx
mov byte [esp + 0x30], 3
call sub.MFC42.DLL_CString::Format
add esp, 0x14
lea ecx, [esp + 0x2c]
mov byte [esp + 0x1c], 2
call fcn.0043641e
lea ecx, [esp + 0x30]
mov byte [esp + 0x1c], 1
call fcn.0043641e
jmp 0x40cfa6
mov eax, dword [esp + 0x28]
push eax
push eax
lea eax, [esp + 0x14]
push str.SELECT__FROM__s_WHERE_DataHora___SELECT_MIN_DataHora__FROM__s__
push eax
call sub.MFC42.DLL_CString::Format
add esp, 0x10
mov ecx, dword [esp + 0x10]
mov esi, dword [esp + 0x24]
push ecx
push esi
call fcn.00401311
add esp, 4
lea edx, [esp + 0x10]
mov ecx, esp
mov dword [esp + 0x38], esp
push edx
call sub.MFC42.DLL_CString::CString_2
lea eax, [esp + 0x14]
push eax
push esi
call fcn.004017d5
add esp, 0xc
cmp al, 0xff
jne 0x40cfe3
mov ecx, dword [esp + 0x10]
mov dword [ebp], ecx
jmp 0x40cfea
mov edx, dword [esp + 0x10]
mov dword [ebp], edx
lea ecx, [esp + 0x28]
mov byte [esp + 0x1c], 0
call fcn.0043641e
lea ecx, [esp + 0xc]
mov dword [esp + 0x1c], 0xffffffff
call fcn.0043641e
mov ecx, dword [esp + 0x14]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebp
add esp, 0x14
ret
Function at 0x401357
Capabilities:
Delete file

Disassembly:
jmp 0x409190
push 0xffffffffffffffff
push 0x43b338
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x24
push esi
push edi
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CFileFind::CFileFind
lea ecx, [esp + 0xc]
mov dword [esp + 0x34], 0
xor esi, esi
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 8]
mov byte [esp + 0x34], 1
call sub.MFC42.DLL_CString::CString
push 0x447bc8
push 0x44eb30
mov byte [esp + 0x3c], 2
call dword [sym.imp.MSVCRT.dll_strtok]
add esp, 8
lea ecx, [esp + 0xc]
push eax
call fcn.0043642a
mov edi, dword [sym.imp.MSVCRT.dll_remove]
mov eax, dword [esp + 0xc]
inc esi
push esi
push eax
push 0x44f078
lea ecx, [esp + 0x14]
push str._s_s.z_.2d
push ecx
call sub.MFC42.DLL_CString::Format
mov edx, dword [esp + 0x1c]
add esp, 0x14
lea ecx, [esp + 0x10]
push 0
push edx
call sub.MFC42.DLL_CFileFind::FindFile
test eax, eax
je 0x40923a
mov eax, dword [esp + 8]
push eax
call edi
add esp, 4
jmp 0x4091fc
mov ecx, dword [esp + 0xc]
push esi
push ecx
push 0x44f078
lea edx, [esp + 0x14]
push str._s_s.zip
push edx
call sub.MFC42.DLL_CString::Format
mov eax, dword [esp + 0x1c]
push eax
call edi
add esp, 0x18
lea ecx, [esp + 8]
mov byte [esp + 0x34], 1
call fcn.0043641e
lea ecx, [esp + 0xc]
mov byte [esp + 0x34], 0
call fcn.0043641e
lea ecx, [esp + 0x10]
mov dword [esp + 0x34], 0xffffffff
call fcn.004365fe
mov ecx, dword [esp + 0x2c]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x30
ret
Function at 0x4013a7
Capabilities:
Reference sql statements

Disassembly:
jmp 0x40d250
push 0xffffffffffffffff
push 0x43b890
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebp
mov ebp, dword [esp + 0x20]
push esi
push edi
mov eax, dword [ebp]
push 0x44e400
lea ecx, [esp + 0x10]
mov dword [esp + 0x14], eax
call sub.MFC42.DLL_CString::CString_1
push 0x44e400
lea ecx, [esp + 0x2c]
mov dword [esp + 0x20], 0
call sub.MFC42.DLL_CString::CString_1
movsx ecx, word [esp + 0x2c]
push ecx
lea edx, [esp + 0x2c]
push str.Analogica_d
push edx
mov byte [esp + 0x28], 1
call sub.MFC42.DLL_CString::Format
mov edi, dword [esp + 0x3c]
add esp, 0xc
test edi, edi
je 0x40d32e
mov ecx, dword [esp + 0x34]
test ecx, ecx
je 0x40d32e
lea eax, [esp + 0x30]
push 0x449134
push eax
call sub.MFC42.DLL_COleDateTime::Format
mov esi, eax
lea ecx, [esp + 0x2c]
push 0x449134
push ecx
mov ecx, edi
mov byte [esp + 0x24], 2
call sub.MFC42.DLL_COleDateTime::Format
mov edx, dword [esi]
mov eax, dword [eax]
mov ecx, dword [esp + 0x28]
push edx
push eax
push ecx
lea edx, [esp + 0x18]
push str.SELECT__FROM__s_WHERE_DataHora_BETWEEN__s_AND__s_ORDER_BY_DataHora_ASC_
push edx
mov byte [esp + 0x30], 3
call sub.MFC42.DLL_CString::Format
add esp, 0x14
lea ecx, [esp + 0x2c]
mov byte [esp + 0x1c], 2
call fcn.0043641e
lea ecx, [esp + 0x30]
mov byte [esp + 0x1c], 1
call fcn.0043641e
jmp 0x40d346
mov eax, dword [esp + 0x28]
push eax
push eax
lea eax, [esp + 0x14]
push str.SELECT__FROM__s_WHERE_DataHora___SELECT_MIN_DataHora__FROM__s__
push eax
call sub.MFC42.DLL_CString::Format
add esp, 0x10
mov ecx, dword [esp + 0x10]
mov esi, dword [esp + 0x24]
push ecx
push esi
call fcn.00401311
add esp, 4
lea edx, [esp + 0x10]
mov ecx, esp
mov dword [esp + 0x38], esp
push edx
call sub.MFC42.DLL_CString::CString_2
lea eax, [esp + 0x14]
push eax
push esi
call fcn.004017d5
add esp, 0xc
cmp al, 0xff
jne 0x40d383
mov ecx, dword [esp + 0x10]
mov dword [ebp], ecx
jmp 0x40d38a
mov edx, dword [esp + 0x10]
mov dword [ebp], edx
lea ecx, [esp + 0x28]
mov byte [esp + 0x1c], 0
call fcn.0043641e
lea ecx, [esp + 0xc]
mov dword [esp + 0x1c], 0xffffffff
call fcn.0043641e
mov ecx, dword [esp + 0x14]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebp
add esp, 0x14
ret
Function at 0x401406
Capabilities:
Access peb ldr_data

Disassembly:
jmp 0x416f50
push 0xffffffffffffffff
push 0x43c4af
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x70
push esi
push edi
lea ecx, [esp + 0x10]
mov dword [esp + 0xc], 0
call sub.MFC42.DLL_CFileFind::CFileFind
lea ecx, [esp + 0x2c]
mov dword [esp + 0x80], 1
call fcn.00401203
push 0x44e400
lea ecx, [esp + 0xc]
mov byte [esp + 0x84], 2
call sub.MFC42.DLL_CString::CString_1
push 0x44f664
mov byte [esp + 0x84], 3
call fcn.00401942
mov edi, dword [esp + 0x90]
or ecx, 0xffffffff
xor eax, eax
add esp, 4
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push eax
mov esi, edi
mov edx, ecx
mov edi, 0x44f664
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push 0x44f664
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CFileFind::FindFile
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CFileFind::FindNextFileA
push 0x44f664
lea ecx, [esp + 0x30]
call fcn.00401924
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CFileFind::GetLength
push eax
lea eax, [esp + 0xc]
push str._d_bytes
push eax
call sub.MFC42.DLL_CString::Format
mov esi, dword [esp + 0x94]
add esp, 0xc
lea ecx, [esp + 8]
push ecx
mov ecx, esi
call sub.MFC42.DLL_CString::CString_2
mov dword [esp + 0xc], 1
lea ecx, [esp + 8]
mov byte [esp + 0x80], 2
call fcn.0043641e
lea ecx, [esp + 0x2c]
mov byte [esp + 0x80], 1
call fcn.004016b3
lea ecx, [esp + 0x10]
mov byte [esp + 0x80], 0
call fcn.004365fe
mov ecx, dword [esp + 0x78]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x7c
ret
Function at 0x4014ab
Capabilities:
Access peb ldr_data

Disassembly:
jmp 0x409030
push 0xffffffffffffffff
push 0x43b308
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x24
push esi
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CFileFind::CFileFind
lea ecx, [esp + 8]
mov dword [esp + 0x30], 0
xor esi, esi
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 4]
mov byte [esp + 0x30], 1
call sub.MFC42.DLL_CString::CString
push 0x447bc8
push 0x44eb30
mov byte [esp + 0x38], 2
call dword [sym.imp.MSVCRT.dll_strtok]
add esp, 8
lea ecx, [esp + 8]
push eax
call fcn.0043642a
mov eax, dword [esp + 8]
inc esi
push esi
push eax
push 0x44f078
lea ecx, [esp + 0x10]
push str._s_s.z_.2d
push ecx
call sub.MFC42.DLL_CString::Format
mov edx, dword [esp + 0x18]
add esp, 0x14
lea ecx, [esp + 0xc]
push 0
push edx
call sub.MFC42.DLL_CFileFind::FindFile
test eax, eax
jne 0x409095
mov eax, dword [esp + 8]
push esi
push eax
push 0x44f078
lea ecx, [esp + 0x10]
push str._s_s.zip
push ecx
call sub.MFC42.DLL_CString::Format
mov edx, dword [esp + 0x18]
add esp, 0x14
lea ecx, [esp + 0xc]
push 0
push edx
call sub.MFC42.DLL_CFileFind::FindFile
test eax, eax
jne 0x4090f9
dec esi
lea ecx, [esp + 4]
mov byte [esp + 0x30], 1
call fcn.0043641e
lea ecx, [esp + 8]
mov byte [esp + 0x30], 0
call fcn.0043641e
lea ecx, [esp + 0xc]
mov dword [esp + 0x30], 0xffffffff
call fcn.004365fe
mov ecx, dword [esp + 0x28]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x30
ret

Function at 0x4014bf
Capabilities:
Delete file
Read file on windows

Disassembly:
jmp 0x41a8e0
sub esp, 0x100
push ebx
push esi
push edi
mov esi, ecx
call fcn.004010aa
lea eax, [esp + 0xc]
push eax
call fcn.004013a2
mov ebx, dword [sym.imp.MSVCRT.dll_sprintf]
lea ecx, [esp + 0x10]
push str.MedVirtual
push ecx
lea edx, [esp + 0x18]
push str._s_s.prg
push edx
call ebx
lea eax, [esp + 0x20]
push 0x44ae28
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov edi, eax
add esp, 0x1c
test edi, edi
jne 0x41a942
mov ecx, esi
call fcn.00401474
pop edi
pop esi
mov al, 1
pop ebx
add esp, 0x100
ret
push edi
push 0xf2f8
lea ecx, [esi + 0x1b9]
push 1
push ecx
call dword [sym.imp.MSVCRT.dll_fread]
add esp, 0x10
cmp eax, 0xf2f8
jae 0x41a996
cmp eax, 0x797c
jne 0x41a92f
lea edx, [esp + 0xc]
push edx
call fcn.004019ba
lea eax, [esp + 0x10]
push str.MedVirtual
push eax
lea ecx, [esp + 0x18]
push str._s_s.db
push ecx
call ebx
lea edx, [esp + 0x20]
push edx
call dword [sym.imp.MSVCRT.dll_remove]
add esp, 0x18
push edi
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
xor al, al
pop edi
pop esi
pop ebx
add esp, 0x100
ret
Function at 0x401541
Capabilities:
Read file on windows

Disassembly:
jmp 0x41f530
sub esp, 0x100
lea eax, [esp]
push ebx
push esi
push edi
push eax
call fcn.004013a2
mov edi, str.CopiaMDB32.prg
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x10]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x44ae28
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0x14]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
xor ebx, ebx
add esp, 0xc
cmp esi, ebx
je 0x41f5b7
push esi
push 0x502
push 1
push 0x44e500
call dword [sym.imp.MSVCRT.dll_fread]
add esp, 0x10
cmp eax, 0x502
push esi
jae 0x41f682
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
or ecx, 0xffffffff
mov edi, 0x44e400
xor eax, eax
mov byte [0x44e500], bl
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
shr ecx, 2
mov edi, 0x44e501
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
or ecx, 0xffffffff
mov edi, 0x44e400
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
shr ecx, 2
mov edi, 0x44e601
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x44e400
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, 0x44e701
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x44e400
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov byte [0x44e801], bl
mov eax, ecx
mov esi, edi
mov edi, 0x44e802
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x44e400
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, 0x44e902
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
pop ebx
add esp, 0x100
ret
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
pop edi
pop esi
pop ebx
add esp, 0x100
ret