joyce8/EMBER2024-capa huggingface dataset:
Function at 0x418288
Capabilities:
Create process on windows

Disassembly:
mov eax, 0x4e981f
call fcn.004e6580
sub esp, 0xa8
push ebx
push esi
push edi
lea ecx, [ebp - 0x60]
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_void_]
xor ebx, ebx
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], ebx
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_void_]
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 1
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_void_]
cmp dword [ebp + 8], ebx
mov byte [ebp - 4], 2
je 0x4182e1
lea eax, [ebp - 0x60]
push eax
push dword [ebp + 8]
call sub.MSVCR71.dll_strlen
pop ecx
push eax
push dword [ebp + 8]
call fcn.00417303
add esp, 0xc
cmp dword [ebp + 0xc], ebx
je 0x4182ff
lea eax, [ebp - 0x28]
push eax
push dword [ebp + 0xc]
call sub.MSVCR71.dll_strlen
pop ecx
push eax
push dword [ebp + 0xc]
call fcn.00417303
add esp, 0xc
mov edi, dword [ebp + 0x10]
cmp edi, ebx
je 0x41831b
lea eax, [ebp - 0x44]
push eax
push edi
call sub.MSVCR71.dll_strlen
pop ecx
push eax
push edi
call fcn.00417303
add esp, 0xc
push 0x44
pop esi
push esi
lea eax, [ebp - 0xb4]
push ebx
push eax
call sub.MSVCR71.dll_memset
push 0x10
lea eax, [ebp - 0x70]
push ebx
push eax
mov dword [ebp - 0xb4], esi
call sub.MSVCR71.dll_memset
push dword [ebp + 8]
call sub.MSVCR71.dll_strlen
add esp, 0x1c
test eax, eax
jne 0x418379
push edi
call sub.MSVCR71.dll_strlen
test eax, eax
pop ecx
jne 0x418379
cmp dword [ebp - 0x10], 8
mov eax, dword [ebp - 0x24]
jae 0x418364
lea eax, [ebp - 0x24]
lea ecx, [ebp - 0x70]
push ecx
lea ecx, [ebp - 0xb4]
push ecx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push eax
push ebx
jmp 0x4183b0
cmp dword [ebp - 0x2c], 8
mov edx, dword [ebp - 0x40]
jae 0x418385
lea edx, [ebp - 0x40]
cmp dword [ebp - 0x10], 8
mov ecx, dword [ebp - 0x24]
jae 0x418391
lea ecx, [ebp - 0x24]
cmp dword [ebp - 0x48], 8
mov eax, dword [ebp - 0x5c]
jae 0x41839d
lea eax, [ebp - 0x5c]
lea esi, [ebp - 0x70]
push esi
lea esi, [ebp - 0xb4]
push esi
push edx
push ebx
push ebx
push ebx
push ebx
push ebx
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
xor esi, esi
test eax, eax
jne 0x4183bd
inc esi
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 1
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], bl
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x60]
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 0xc
Function at 0x41846b
Capabilities:
Read .ini file

Disassembly:
mov eax, 0x4e9844
call fcn.004e6580
mov eax, 0x2054
call fcn.004e67d0
push ebx
push esi
lea ecx, [ebp - 0x44]
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_void_]
xor ebx, ebx
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], ebx
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_void_]
lea ecx, [ebp - 0x60]
mov byte [ebp - 4], 1
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_void_]
cmp dword [ebp + 8], ebx
mov byte [ebp - 4], 2
je 0x4184c7
lea eax, [ebp - 0x44]
push eax
push dword [ebp + 8]
call sub.MSVCR71.dll_strlen
pop ecx
push eax
push dword [ebp + 8]
call fcn.00417303
add esp, 0xc
cmp dword [ebp + 0xc], ebx
je 0x4184e5
lea eax, [ebp - 0x28]
push eax
push dword [ebp + 0xc]
call sub.MSVCR71.dll_strlen
pop ecx
push eax
push dword [ebp + 0xc]
call fcn.00417303
add esp, 0xc
cmp dword [ebp + 0x10], ebx
je 0x418503
lea eax, [ebp - 0x60]
push eax
push dword [ebp + 0x10]
call sub.MSVCR71.dll_strlen
pop ecx
push eax
push dword [ebp + 0x10]
call fcn.00417303
add esp, 0xc
cmp dword [ebp - 0x2c], 8
mov edx, dword [ebp - 0x40]
jae 0x41850f
lea edx, [ebp - 0x40]
cmp dword [ebp - 0x48], 8
mov ecx, dword [ebp - 0x5c]
jae 0x41851b
lea ecx, [ebp - 0x5c]
cmp dword [ebp - 0x10], 8
mov eax, dword [ebp - 0x24]
jae 0x418527
lea eax, [ebp - 0x24]
push edx
push 0x1000
lea edx, [ebp - 0x2060]
push edx
push 0x4feb50
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
cmp eax, ebx
jbe 0x41855c
push dword [ebp + 0x14]
push eax
lea eax, [ebp - 0x2060]
push eax
call fcn.00417cdc
add esp, 0xc
xor esi, esi
jmp 0x41855f
xor esi, esi
inc esi
lea ecx, [ebp - 0x60]
mov byte [ebp - 4], 1
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], bl
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x44]
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 0x10

Function at 0x41874a
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
lea eax, [ebp - 0x208]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
jbe 0x418781
push dword [ebp + 8]
push eax
lea eax, [ebp - 0x208]
push eax
call fcn.00417cdc
xor eax, eax
add esp, 0xc
inc eax
jmp 0x418783
xor eax, eax
leave
ret 4
Function at 0x4188ed
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
lea eax, [ebp - 0x208]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
jbe 0x418932
push dword [ebp + 8]
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.MSVCR71.dll_wcslen]
pop ecx
push eax
lea eax, [ebp - 0x208]
push eax
call fcn.00417cdc
xor eax, eax
add esp, 0xc
inc eax
jmp 0x418934
xor eax, eax
leave
ret 4

Function at 0x418c24
Capabilities:
Copy file

Disassembly:
mov eax, 0x4e97d5
call fcn.004e6580
sub esp, 0x38
lea ecx, [ebp - 0x44]
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_void_]
and dword [ebp - 4], 0
lea ecx, [ebp - 0x28]
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_void_]
lea eax, [ebp - 0x44]
push eax
push dword [ebp + 8]
mov byte [ebp - 4], 1
call sub.MSVCR71.dll_strlen
pop ecx
push eax
push dword [ebp + 8]
call fcn.00417303
add esp, 0xc
lea eax, [ebp - 0x28]
push eax
push dword [ebp + 0xc]
call sub.MSVCR71.dll_strlen
pop ecx
push eax
push dword [ebp + 0xc]
call fcn.00417303
mov ecx, dword [ebp - 0x24]
add esp, 0xc
cmp dword [ebp - 0x10], 8
jae 0x418c89
lea ecx, [ebp - 0x24]
cmp dword [ebp - 0x2c], 8
mov eax, dword [ebp - 0x40]
jae 0x418c95
lea eax, [ebp - 0x40]
push esi
push dword [ebp + 0x10]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
xor esi, esi
test eax, eax
je 0x418ca8
inc esi
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x44]
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
mov dword fs:[0], ecx
leave
ret 0xc
Function at 0x41f4f8
Capabilities:
Hide graphical window

Disassembly:
mov eax, 0x4e9ddc
call fcn.004e6580
push ebx
push ebp
push esi
push edi
push 0x117
mov esi, ecx
call fcn.0041a579
mov eax, dword [esp + 0x30]
mov edi, dword [sym.imp.USER32.dll_GetDlgItem]
mov ebp, 0x423
xor ebx, ebx
push ebp
mov dword [eax], ebx
push dword [esi + 4]
call edi
xor ecx, ecx
cmp dword [esi + 0x20], ebx
push ebx
setne cl
push ecx
push 0xf1
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
push 0xffffffffffffffff
push dword [esi + 4]
call edi
lea ecx, [esi + 0x28]
mov ebx, eax
call dword [sym.imp.MFC71U.DLL_ATL::CSimpleStringT::operator_class_ATL::CSimpleStringT_]
push eax
push ebx
call dword [sym.imp.USER32.dll_SetWindowTextW]
mov eax, dword [esi + 0x38]
cmp eax, 1
mov ebx, dword [sym.imp.USER32.dll_ShowWindow]
jne 0x41f58f
push 1
push dword [esi + 4]
call edi
push 0
push eax
call ebx
push 2
push dword [esi + 4]
call edi
push 0
push eax
call ebx
push 0x44d
push dword [esi + 4]
call edi
push 1
jmp 0x41f5b8
cmp eax, 2
jne 0x41f5bb
push 1
push dword [esi + 4]
call edi
push 1
push eax
call ebx
push 2
push dword [esi + 4]
call edi
push 1
push eax
call ebx
push 0x44d
push dword [esi + 4]
call edi
push 0
push eax
call ebx
cmp dword [esi + 0x24], 0
push ebp
push dword [esi + 4]
je 0x41f5cb
call edi
push 1
jmp 0x41f5cf
call edi
push 0
push eax
call ebx
push ebp
push dword [esi + 4]
call edi
lea ecx, [esi + 0x2c]
mov edi, eax
call dword [sym.imp.MFC71U.DLL_ATL::CSimpleStringT::operator_class_ATL::CSimpleStringT_]
push eax
push edi
call dword [sym.imp.USER32.dll_SetWindowTextW]
xor edi, edi
cmp dword [esi + 0x30], edi
je 0x41f63f
mov dword [esp + 0x30], edi
mov eax, dword [esi + 0x34]
cmp eax, edi
mov dword [esp + 0x18], edi
jne 0x41f608
push str.CommonDlg
jmp 0x41f612
cmp eax, 1
jne 0x41f622
push 0x5026c4
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
lea ecx, [esp + 0x30]
push eax
call fcn.004d3519
mov eax, dword [esi + 0x30]
mov ecx, dword [eax]
push edi
push edi
push edi
push dword [esp + 0x3c]
push dword [esi + 4]
push eax
call dword [ecx + 0x20]
push dword [esp + 0x30]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov ecx, dword [esp + 0x10]
pop edi
pop esi
xor eax, eax
pop ebp
inc eax
pop ebx
mov dword fs:[0], ecx
leave
ret 0x10

Function at 0x41fd79
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 8]
push eax
push dword [ecx]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
mov dword [ebp - 4], eax
jne 0x41fd99
call dword [sym.imp.KERNEL32.dll_GetLastError]
and dword [ebp - 0x10], 0
and dword [ebp - 0xc], 0
push 4
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x10]
push eax
call sub.MSVCR71.dll_memcpy
push 4
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
call sub.MSVCR71.dll_memcpy
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0xc]
add esp, 0x18
leave
ret
Function at 0x42058e
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
push 0x11c
lea eax, [ebp - 0x11c]
push 0
push eax
call sub.MSVCR71.dll_memset
add esp, 0xc
lea eax, [ebp - 0x11c]
push eax
mov dword [ebp - 0x11c], 0x11c
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x118], 6
sbb eax, eax
inc eax
leave
ret

Function at 0x42307e
Capabilities:
Hash data using sha1

Disassembly:
xor eax, eax
push 0x40
mov dword [ecx + 0x14], eax
mov dword [ecx + 0x18], eax
mov dword [ecx], 0x67452301
mov dword [ecx + 4], 0xefcdab89
mov dword [ecx + 8], 0x98badcfe
mov dword [ecx + 0xc], 0x10325476
mov dword [ecx + 0x10], 0xc3d2e1f0
push eax
add ecx, 0x1c
push ecx
call sub.MSVCR71.dll_memset
add esp, 0xc
ret

Function at 0x424aa8
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, ecx
mov ecx, dword [esi + 0x14]
mov eax, dword [esi + 0x18]
shl eax, 3
mov edx, ecx
shr edx, 0x1d
or eax, edx
mov ebx, eax
shr ebx, 0x18
mov byte [ebp - 8], bl
mov ebx, eax
shr ebx, 0x10
mov byte [ebp - 5], al
mov edx, ecx
shl edx, 3
mov byte [ebp - 7], bl
mov ebx, eax
mov eax, edx
shr eax, 0x18
mov byte [ebp - 4], al
mov eax, edx
shr eax, 0x10
mov byte [ebp - 3], al
mov eax, edx
shr eax, 8
push 0x38
mov byte [ebp - 2], al
shr ebx, 8
and ecx, 0x3f
pop eax
cmp ecx, eax
mov byte [ebp - 6], bl
mov byte [ebp - 1], dl
jb 0x424b09
push 0x78
pop eax
sub eax, ecx
push eax
push 0x54d4b0
mov ecx, esi
call fcn.00424a0d
push 8
lea eax, [ebp - 8]
push eax
mov ecx, esi
call fcn.00424a0d
mov cl, byte [esi + 3]
mov eax, dword [ebp + 8]
mov byte [eax], cl
mov cl, byte [esi + 2]
mov byte [eax + 1], cl
mov ecx, dword [esi]
shr ecx, 8
mov byte [eax + 2], cl
mov cl, byte [esi]
mov byte [eax + 3], cl
mov cl, byte [esi + 7]
mov byte [eax + 4], cl
mov cl, byte [esi + 6]
mov byte [eax + 5], cl
mov ecx, dword [esi + 4]
shr ecx, 8
mov byte [eax + 6], cl
mov cl, byte [esi + 4]
mov byte [eax + 7], cl
mov cl, byte [esi + 0xb]
mov byte [eax + 8], cl
mov cl, byte [esi + 0xa]
mov byte [eax + 9], cl
mov ecx, dword [esi + 8]
shr ecx, 8
mov byte [eax + 0xa], cl
mov cl, byte [esi + 8]
mov byte [eax + 0xb], cl
mov cl, byte [esi + 0xf]
mov byte [eax + 0xc], cl
mov cl, byte [esi + 0xe]
mov byte [eax + 0xd], cl
mov ecx, dword [esi + 0xc]
shr ecx, 8
mov byte [eax + 0xe], cl
mov cl, byte [esi + 0xc]
mov byte [eax + 0xf], cl
mov cl, byte [esi + 0x13]
mov byte [eax + 0x10], cl
mov cl, byte [esi + 0x12]
mov byte [eax + 0x11], cl
mov ecx, dword [esi + 0x10]
shr ecx, 8
mov byte [eax + 0x12], cl
mov cl, byte [esi + 0x10]
mov byte [eax + 0x13], cl
mov ecx, esi
call fcn.0042307e
pop esi
pop ebx
leave
ret 4
Function at 0x4257e1
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
lea eax, [ebp - 4]
push eax
push 1
call esi
test eax, eax
mov ebx, dword [ebp + 0xc]
mov dword [ebx], eax
je 0x425828
push edi
mov edi, dword [ebp + 8]
add eax, 0xa
push eax
mov ecx, edi
mov dword [ebp + 0xc], eax
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::resize_unsigned_int_]
cmp dword [edi + 0x18], 8
jb 0x42581c
mov edi, dword [edi + 4]
jmp 0x42581f
add edi, 4
push edi
push dword [ebp + 0xc]
call esi
mov dword [ebx], eax
pop edi
pop esi
mov al, 1
pop ebx
leave
ret 8
Function at 0x425ceb
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
call fcn.004010c5
mov eax, dword [eax + 0x20]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x14], eax
xor eax, eax
inc eax
mov word [ebp - 0x10], ax
mov dword [ebp - 0xe], eax
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x1c], 2
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
leave
ret 8

Function at 0x426309
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
and dword [ebp - 0x10], 0
and dword [ebp - 0xc], 0
push ebx
mov ebx, dword [ebp + 8]
mov eax, dword [ebx + 4]
push esi
mov esi, dword [eax]
cmp esi, eax
je 0x4263a1
push edi
lea ecx, [esi + 8]
call dword [sym.imp.MFC71U.DLL_CRecordset::AllocStatusArrays]
push eax
lea ecx, [ebp + 8]
call fcn.004021ce
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocStringLen
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x426389
lea eax, [ebp - 4]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
mov dword [ebp - 8], eax
jne 0x426377
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x426389
mov ecx, dword [ebp - 4]
xor eax, eax
or eax, dword [ebp - 8]
xor edx, edx
or ecx, edx
add dword [ebp - 0x10], eax
adc dword [ebp - 0xc], ecx
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp + 8]
mov esi, dword [esi]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
cmp esi, dword [ebx + 4]
jne 0x426326
pop edi
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0xc]
pop esi
pop ebx
leave
ret 4
Function at 0x427a23
Capabilities:
Check if file exists
Enumerate files on windows
Get file attributes

Disassembly:
mov eax, 0x4ea7b7
call fcn.004e6580
sub esp, 0x2ac
push dword [ebp + 8]
lea ecx, [ebp - 0x60]
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const__]
and dword [ebp - 4], 0
cmp dword [ebp - 0x48], 8
mov eax, dword [ebp - 0x5c]
jae 0x427a4f
lea eax, [ebp - 0x5c]
push eax
call dword [sym.imp.MSVCR71.dll__wchdir]
lea ecx, [ebp - 0x44]
mov dword [esp], 0x503d94
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_wchar_t_const__]
cmp dword [ebp - 0x2c], 8
mov eax, dword [ebp - 0x40]
mov byte [ebp - 4], 1
jae 0x427a76
lea eax, [ebp - 0x40]
push edi
lea ecx, [ebp - 0x2b8]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x427a94
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x427afc
lea eax, [ebp - 0x28c]
push eax
lea ecx, [ebp - 0x28]
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_wchar_t_const__]
cmp dword [ebp - 0x10], 8
mov eax, dword [ebp - 0x24]
mov byte [ebp - 4], 2
jae 0x427ab4
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x427ad4
test al, 0x10
jne 0x427ad4
mov ecx, dword [ebp + 0xc]
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x68]
push eax
call fcn.00426eb6
lea eax, [ebp - 0x2b8]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
cmp eax, 1
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 1
jne 0x427af6
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
jmp 0x427a94
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 0
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x60]
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
mov ecx, dword [ebp - 0xc]
pop edi
mov dword fs:[0], ecx
leave
ret 8
Function at 0x42c444
Capabilities:
Check if file exists

Disassembly:
mov eax, 0x4eaf50
call fcn.004e6580
sub esp, 0x2c
push ebx
push esi
mov esi, ecx
xor ebx, ebx
lea ecx, [ebp + 8]
mov dword [ebp - 4], ebx
call dword [sym.imp.MFC71U.DLL_ATL::CSimpleStringT::operator_class_ATL::CSimpleStringT_]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x42c524
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x14], ebx
call fcn.004e5e60
push ebx
push 0xffffffffffffffff
push ebx
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 1
call fcn.0042c2e2
cmp dword [esi], ebx
mov byte [ebp - 4], 2
je 0x42c49c
mov ecx, esi
call fcn.0042c2ce
lea eax, [ebp - 0x38]
push eax
push 0x8000
lea ecx, [ebp + 8]
call dword [sym.imp.MFC71U.DLL_ATL::CSimpleStringT::operator_class_ATL::CSimpleStringT_]
push eax
lea ecx, [ebp - 0x24]
call sub.MFC71U.DLL_CDataPathProperty::Open
test eax, eax
je 0x42c506
push edi
lea ecx, [ebp - 0x24]
call sub.MFC71U.DLL_ATL::CSimpleStringT::GetLength
mov edi, eax
push edi
call sub.MFC71U.DLL_SerializeElements
pop ecx
push edi
push eax
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x10], eax
call sub.MFC71U.DLL_CAsyncMonikerFile::Read
test eax, eax
jbe 0x42c4f4
push edi
push dword [ebp - 0x10]
mov ecx, esi
call fcn.0042c3a2
test eax, eax
je 0x42c4f4
mov dword [ebp - 0x14], 1
lea ecx, [ebp - 0x24]
call sub.MFC71U.DLL_CDatabase::Close
push dword [ebp - 0x10]
call sub.MFC71U.DLL_operator_new
pop ecx
pop edi
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x38], 0x504508
call dword [sym.imp.MFC71U.DLL_ATL::CSimpleStringT::CSimpleStringT]
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], bl
call sub.MFC71U.DLL_CEvent::CEvent
mov ebx, dword [ebp - 0x14]
lea ecx, [ebp + 8]
call dword [sym.imp.MFC71U.DLL_ATL::CSimpleStringT::CSimpleStringT]
mov ecx, dword [ebp - 0xc]
pop esi
mov eax, ebx
pop ebx
mov dword fs:[0], ecx
leave
ret 4
Function at 0x4392f4
Capabilities:
Get file system object information

Disassembly:
mov eax, 0x4ec10c
call fcn.004e6580
sub esp, 0x2fc
push esi
mov esi, dword [ebp + 8]
push edi
push esi
lea eax, [ebp + 8]
push eax
mov edi, ecx
call fcn.00438ac7
mov eax, dword [edi + 4]
mov ecx, dword [ebp + 8]
cmp ecx, eax
je 0x43932c
mov eax, dword [ecx + 0x28]
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
jmp 0x4393ae
cmp dword [esi + 0x18], 8
jb 0x439337
mov eax, dword [esi + 4]
jmp 0x43933a
lea eax, [esi + 4]
push 0x4511
push 0x2b4
lea ecx, [ebp - 0x308]
push ecx
push 0x80
push eax
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
test eax, eax
jne 0x43935f
xor al, al
jmp 0x4393b0
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x308]
push eax
mov dword [eax], ecx
push esi
lea ecx, [ebp - 0x54]
call fcn.0043853b
and dword [ebp - 4], 0
push eax
lea ecx, [ebp - 0x34]
call fcn.0043858d
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x14]
push eax
mov ecx, edi
mov byte [ebp - 4], 1
call fcn.004390f9
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 0
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x54]
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
mov al, 1
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret 8

Function at 0x4426bc
Capabilities:
Get common file path

Disassembly:
mov eax, 0x4ecf8a
call fcn.004e6580
sub esp, 0x30c
and dword [ebp - 0x10], 0
push esi
push 0x308
lea eax, [ebp - 0x318]
push 0
push eax
call sub.MSVCR71.dll_memset
add esp, 0xc
mov esi, 0x104
push esi
lea eax, [ebp - 0x318]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
cmp word [ebp - 0x318], 0
je 0x442724
lea eax, [ebp - 0x318]
push eax
call dword [sym.imp.MSVCR71.dll_wcslen]
cmp word [ebp + eax*2 - 0x31a], 0x5c
pop ecx
je 0x442724
push str.drivers_tcpip.sys
jmp 0x442729
push 0x508c28
lea eax, [ebp - 0x318]
push eax
call dword [sym.imp.MSVCR71.dll_wcscat]
pop ecx
pop ecx
lea ecx, [ebp - 0x10]
call dword [sym.imp.MFC71U.DLL_ATL::CStringT::CStringT_9]
and dword [ebp - 4], 0
lea eax, [ebp - 0x318]
push eax
push esi
lea ecx, [ebp - 0x10]
call dword [sym.imp.MFC71U.DLL_CRecordset::GetBoundParamIndex]
push eax
call dword [sym.imp.MSVCR71.dll_wcscpy]
pop ecx
pop ecx
push 0xffffffffffffffff
lea ecx, [ebp - 0x10]
call dword [sym.imp.MFC71U.DLL_CDC::ReleaseAttribDC]
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.MFC71U.DLL_ATL::CStringT::CStringT_7]
lea ecx, [ebp - 0x10]
call dword [sym.imp.MFC71U.DLL_ATL::CSimpleStringT::CSimpleStringT]
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
pop esi
mov dword fs:[0], ecx
leave
ret 4