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

Disassembly:
sub esp, 0x108
mov eax, dword [0x4245a0]
mov ecx, dword [esp + 0x10c]
mov dword [esp + 0x104], eax
push edi
lea eax, [esp + 0x114]
push eax
push ecx
lea edx, [esp + 0x10]
push edx
call dword [sym.imp.MSVCR71.dll_vsprintf]
lea edi, [esp + 0x14]
add esp, 0xc
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x401a86
mov ax, word [0x41af88]
mov cl, byte [0x41af8a]
mov word [edi], ax
lea eax, [esp + 8]
mov byte [edi + 2], cl
mov dword [esp + 4], 0
lea edx, [eax + 1]
pop edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x401ab0
mov ecx, dword [0x4245f8]
sub eax, edx
push 0
lea edx, [esp + 4]
push edx
push eax
lea eax, [esp + 0x10]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [esp + 0x104]
call fcn.00417291
add esp, 0x108
ret

Function at 0x401e70
Capabilities:
Get memory capacity

Disassembly:
sub esp, 0x124
mov eax, dword [0x4245a0]
push esi
mov dword [esp + 0x124], eax
mov eax, dword [esp + 0x12c]
mov esi, dword [eax + 4]
push edi
mov edi, dword [eax]
push str._r_n___EXCEPTION____r_n
call fcn.00401a50
mov eax, dword [edi + 0xc]
push eax
push str.Exception_at:_________0x_08X
call fcn.00401a50
mov ecx, dword [esi + 0xa8]
mov edx, dword [esi + 0xac]
mov eax, dword [esi + 0xa4]
push ecx
mov ecx, dword [esi + 0xb0]
push edx
mov edx, dword [esi + 0xa0]
push eax
mov eax, dword [esi + 0x9c]
push ecx
push edx
push eax
push str.Integer_Registers:____EDI_08X____ESI_08X____EAX_08X____EBX____08X____ECX___08X___EDX___08X
call fcn.00401a50
mov ecx, dword [esi + 0xc8]
mov edx, dword [esi + 0xbc]
mov eax, dword [esi + 0xc0]
push ecx
mov ecx, dword [esi + 0xc4]
push edx
mov edx, dword [esi + 0xb8]
push eax
mov eax, dword [esi + 0xb4]
push ecx
push edx
push eax
push str.Control_Registers:____EBP_08X____EIP_08X____ESP_08X____EFlags_08X____SegCS_08X___SegSS_08X
call fcn.00401a50
xor ecx, ecx
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], ecx
mov dword [esp + 0x54], ecx
mov dword [esp + 0x58], ecx
mov dword [esp + 0x5c], ecx
mov dword [esp + 0x60], ecx
add esp, 0x44
lea edx, [esp + 8]
mov dword [esp + 0x20], ecx
push edx
mov dword [esp + 0x28], ecx
mov dword [esp + 0xc], 0x20
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatus]
push str._r_n___MEMORY_STATUS____r_n
call fcn.00401a50
mov ecx, dword [esp + 0x18]
push 0x40
lea eax, [esp + 0xb0]
push eax
push ecx
call fcn.004019a0
add esp, 0x10
push eax
mov eax, dword [esp + 0x14]
push 0x40
lea edx, [esp + 0x70]
push edx
push eax
call fcn.004019a0
mov edx, dword [esp + 0x1c]
add esp, 0xc
push eax
push 0x40
lea ecx, [esp + 0x34]
push ecx
push edx
call fcn.004019a0
add esp, 0xc
push eax
push str.Load____________15s__Total_Physical______15s__Available_Physical___15s
call fcn.00401a50
mov ecx, dword [esp + 0x34]
push 0x40
lea eax, [esp + 0xfc]
push eax
push ecx
call fcn.004019a0
add esp, 0x1c
push eax
mov eax, dword [esp + 0x24]
push 0x40
lea edx, [esp + 0xb0]
push edx
push eax
call fcn.004019a0
add esp, 0xc
push eax
push str.Total_Virtual___15s__Available_Virtual___15s
call fcn.00401a50
mov ecx, dword [esp + 0x134]
add esp, 0xc
pop edi
pop esi
call fcn.00417291
add esp, 0x124
ret
Function at 0x401ff0
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x270
mov eax, dword [0x4245a0]
push esi
push edi
push str._r_n___MODULES_LIST____r_n
mov dword [esp + 0x278], eax
call fcn.00401a50
add esp, 4
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push 8
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
xor eax, eax
mov ecx, 0x89
lea edi, [esp + 0x48]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x48]
push eax
push esi
mov dword [esp + 0x50], 0x224
call sub.KERNEL32.dll_Module32First
test eax, eax
je 0x40208e
jmp 0x402050
mov ecx, dword [esp + 0x5c]
mov eax, dword [esp + 0x60]
push ecx
push 0x40
lea edx, [esp + 0x10]
push edx
push eax
call fcn.004019a0
add esp, 0xc
push eax
lea ecx, [esp + 0x170]
push ecx
push str.Module:___48s__Size:__10s___Base_Adress:_0x_08X
call fcn.00401a50
add esp, 0x10
lea edx, [esp + 0x48]
push edx
push esi
call sub.KERNEL32.dll_Module32Next
test eax, eax
jne 0x402050
mov ecx, dword [esp + 0x274]
call fcn.00417291
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4037a0
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x41859c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x420
mov eax, dword [0x4245a0]
push esi
push edi
xor edi, edi
push 0x41af78
lea ecx, [esp + 0x10]
mov dword [esp + 0x428], eax
mov dword [esp + 0x20], edi
call dword [0x41a194]
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea eax, [esp + 8]
push eax
push 0x20019
push edi
push str.SOFTWARE
push SysStringLen
mov dword [esp + 0x444], edi
mov dword [esp + 0x1c], edi
mov dword [esp + 0x28], edi
mov dword [esp + 0x24], edi
mov dword [esp + 0x2c], edi
mov dword [esp + 0x30], 1
mov dword [esp + 0x34], 0x400
call esi
test eax, eax
jne 0x4038ae
mov edx, dword [esp + 8]
lea ecx, [esp + 0x14]
push ecx
push 0x20019
push edi
push str.Ubisoft
push edx
call esi
test eax, eax
jne 0x4038ae
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x10]
push eax
push 0x20019
push edi
push str.Prince_of_Persia_Warrior_Within
push ecx
call esi
test eax, eax
jne 0x4038ae
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x18]
push edx
push 0x20019
push edi
push str.1.00.999
push eax
call esi
test eax, eax
jne 0x4038ae
lea ecx, [esp + 0x20]
push ecx
mov ecx, dword [esp + 0x1c]
lea edx, [esp + 0x28]
push edx
lea eax, [esp + 0x24]
push eax
push edi
push str.Product_Path
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4038ae
lea edx, [esp + 0x24]
push edx
lea ecx, [esp + 0x10]
call dword [0x41a29c]
mov eax, dword [esp + 0x18]
cmp eax, edi
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
je 0x4038bf
push eax
call esi
mov eax, dword [esp + 0x10]
cmp eax, edi
je 0x4038ca
push eax
call esi
mov eax, dword [esp + 0x14]
cmp eax, edi
je 0x4038d5
push eax
call esi
mov eax, dword [esp + 8]
cmp eax, edi
je 0x4038e0
push eax
call esi
mov esi, dword [esp + 0x438]
lea eax, [esp + 0xc]
push eax
mov ecx, esi
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_1]
lea ecx, [esp + 0xc]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
mov ecx, dword [esp + 0x428]
pop edi
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x420]
mov eax, esi
pop esi
call fcn.00417291
add esp, 0x42c
ret 4
Function at 0x403970
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4185b9
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, dword [esp + 0x1c]
push edi
xor edi, edi
mov ecx, esi
mov dword [esp + 8], edi
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::GetManager]
push eax
lea ecx, [esp + 0xc]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_2]
mov dword [esp + 0x14], edi
mov edi, dword [esp + 0x24]
push edi
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::StringLength]
add esp, 4
push eax
push edi
mov ecx, esi
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::GetLength]
push eax
mov ecx, esi
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
push eax
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::Concatenate]
mov esi, dword [esp + 0x30]
add esp, 0x14
lea ecx, [esp + 8]
push ecx
mov ecx, esi
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_1]
lea ecx, [esp + 8]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
mov ecx, dword [esp + 0xc]
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret

Function at 0x403f10
Capabilities:
Check if file exists

Disassembly:
push 0xffffffffffffffff
push 0x418632
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
lea eax, [esp + 8]
xor esi, esi
push eax
mov dword [esp + 0xc], esi
call fcn.004037a0
push str.POP2.exe
push eax
lea ecx, [esp + 0xc]
push ecx
mov dword [esp + 0x20], esi
call fcn.00403970
add esp, 0xc
lea ecx, [esp + 8]
mov byte [esp + 0x14], 2
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
lea ecx, [esp + 4]
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x403f83
push 0x41af78
lea ecx, [esp + 8]
call dword [0x41a29c]
mov esi, dword [esp + 0x1c]
lea edx, [esp + 4]
push edx
mov ecx, esi
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_1]
lea ecx, [esp + 4]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
mov ecx, dword [esp + 0xc]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret 4

Function at 0x404250
Capabilities:
Check for time delay via gettickcount
Terminate process

Disassembly:
push esi
mov esi, ecx
mov ecx, 0x4246f8
call fcn.004040a0
test al, al
je 0x404265
xor al, al
pop esi
ret
lea ecx, [esi + 0xc]
call fcn.0040a8f0
test al, al
je 0x4042af
mov eax, dword [esi + 0x18]
test eax, eax
jne 0x404285
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esi + 0x18], eax
mov al, 1
pop esi
ret
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [esi + 0x18]
cmp eax, 0xea60
jb 0x4042b6
push 0xdead00
mov ecx, 0x4246f8
call fcn.004040c0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov al, 1
pop esi
ret
mov dword [esi + 0x18], 0
mov al, 1
pop esi
ret
Function at 0x404760
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4186e3
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
mov eax, dword [esp + 0x34]
push esi
push eax
lea ecx, [esp + 0xc]
mov dword [esp + 8], 0
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
mov ecx, dword [esp + 0x3c]
push ecx
mov ecx, eax
mov dword [esp + 0x30], 1
call dword [0x41a710]
mov esi, dword [esp + 0x34]
push eax
mov ecx, esi
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
lea ecx, [esp + 8]
mov dword [esp + 4], 1
mov byte [esp + 0x2c], 0
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov ecx, dword [esp + 0x24]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x2c
ret

Function at 0x4047e0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x418713
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
mov eax, dword [esp + 0x34]
push esi
push eax
lea ecx, [esp + 0xc]
mov dword [esp + 8], 0
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
mov ecx, dword [esp + 0x3c]
push ecx
mov ecx, eax
mov dword [esp + 0x30], 1
call dword [0x41a710]
mov esi, dword [esp + 0x34]
push eax
mov ecx, esi
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
lea ecx, [esp + 8]
mov dword [esp + 4], 1
mov byte [esp + 0x2c], 0
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov ecx, dword [esp + 0x24]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x2c
ret
Function at 0x404860
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x418743
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
mov eax, dword [esp + 0x34]
push esi
push eax
lea ecx, [esp + 0xc]
mov dword [esp + 8], 0
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
mov ecx, dword [esp + 0x3c]
push ecx
mov ecx, eax
mov dword [esp + 0x30], 1
call dword [sym.imp.MSVCP71.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::operator_char_const__]
mov esi, dword [esp + 0x34]
push eax
mov ecx, esi
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
lea ecx, [esp + 8]
mov dword [esp + 4], 1
mov byte [esp + 0x2c], 0
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov ecx, dword [esp + 0x24]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x2c
ret
Function at 0x406c00
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x418b89
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [0x424718]
test eax, eax
jne 0x406cae
push esi
lea ecx, [esp + 4]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_3]
push 0x104
push 0x104
lea ecx, [esp + 0xc]
mov dword [esp + 0x18], 0
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::GetBuffer]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push 0xffffffffffffffff
lea ecx, [esp + 8]
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::ReleaseBuffer]
push str.winhlp32.exe
lea ecx, [esp + 8]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::operator]
lea ecx, [esp + 4]
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
test esi, esi
je 0x406c9c
push 0x6a
push esi
call dword [sym.imp.USER32.dll_LoadCursorA]
test eax, eax
je 0x406c9c
push eax
call dword [sym.imp.USER32.dll_CopyIcon]
mov dword [0x424718], eax
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea ecx, [esp + 4]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
pop esi
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
add esp, 0x10
ret

Function at 0x406cc0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x110
mov eax, dword [0x4245a0]
mov ecx, dword [esp + 0x118]
mov edx, dword [esp + 0x114]
push esi
mov dword [esp + 0x110], eax
lea eax, [esp + 4]
push eax
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x406d34
mov edx, dword [esp + 4]
lea eax, [esp + 8]
push eax
lea ecx, [esp + 0x10]
push ecx
push esi
push edx
mov dword [esp + 0x18], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov ecx, dword [esp + 0x120]
lea eax, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x110]
mov eax, esi
pop esi
call fcn.00417291
add esp, 0x110
ret
Function at 0x406d50
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x20c
mov eax, dword [0x4245a0]
push ebx
mov ebx, dword [esp + 0x218]
push ebp
mov ebp, dword [esp + 0x218]
push esi
push ebx
push 0
push 0
push ebp
push str.open
push 0
mov dword [esp + 0x22c], eax
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov esi, eax
cmp esi, 0x20
ja 0x406e6a
lea eax, [esp + 0xc]
push eax
push str..htm
push 0x80000000
call fcn.00406cc0
add esp, 0xc
test eax, eax
jne 0x406e6a
push edi
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatA]
push str._shellopencommand
lea ecx, [esp + 0x14]
push ecx
call edi
lea edx, [esp + 0x10]
push edx
mov eax, edx
push eax
push 0x80000000
call fcn.00406cc0
add esp, 0xc
test eax, eax
jne 0x406e51
lea ecx, [esp + 0x10]
push str.__1_
push ecx
call dword [sym.imp.MSVCR71.dll__mbsstr]
mov esi, eax
add esp, 8
test esi, esi
jne 0x406e1f
lea edx, [esp + 0x10]
push 0x41bb40
push edx
call dword [sym.imp.MSVCR71.dll_strstr]
mov esi, eax
add esp, 8
test esi, esi
jne 0x406e1f
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0xf]
jmp 0x406e22
mov byte [esi], 0
push 0x41bb3c
push esi
call edi
push ebp
push esi
call edi
push ebx
lea ecx, [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_WinExec]
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x208]
call fcn.00417291
add esp, 0x20c
ret
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x208]
call fcn.00417291
add esp, 0x20c
ret
mov ecx, dword [esp + 0x214]
mov eax, esi
pop esi
pop ebp
pop ebx
call fcn.00417291
add esp, 0x20c
ret

Function at 0x407db0
Capabilities:
Check mutex on windows

Disassembly:
mov eax, dword [esp + 4]
push esi
push eax
mov esi, ecx
push 1
push 0
mov dword [esi], 0x41c120
mov byte [esi + 4], 0
mov dword [esi + 8], 0xffffffff
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
cmp eax, 0xffffffff
mov dword [esi + 8], eax
je 0x407df0
test eax, eax
je 0x407df0
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
sete cl
mov byte [esi + 4], cl
mov eax, esi
pop esi
ret 4
Function at 0x410ef0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x41952c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
push edi
xor edi, edi
push 0x41af78
lea ecx, [esi + 8]
mov dword [esp + 0xc], esi
mov dword [esi], 0x41cc7c
mov dword [esi + 4], edi
call dword [0x41a194]
push 0x41af78
lea ecx, [esi + 0xc]
mov dword [esp + 0x18], edi
call dword [0x41a194]
mov ecx, dword [esp + 0xc]
mov dword [esi + 0x14], edi
mov dword [esi + 0x18], edi
mov dword [esi + 0x1c], edi
mov dword [esi + 0x20], edi
mov dword [esi + 0x24], edi
mov dword [esi + 0x28], edi
mov dword [esi + 0x2c], edi
mov dword [esi + 0x30], edi
mov dword [esi + 0x38], edi
mov dword [esi + 0x40], edi
mov dword [esi + 0x44], edi
mov dword [esi + 0x34], 0xffffffff
mov dword [esi + 0x3c], 0x40
mov dword [esi + 0x48], edi
mov dword [esi + 0x4c], edi
mov dword [esi + 0x50], edi
mov dword [esi + 0x54], edi
mov dword [esi + 0x58], edi
mov dword [esi + 0x5c], edi
mov dword [esi + 0x60], edi
mov dword [esi + 0x64], edi
mov dword [esi + 0x68], edi
mov dword [esi + 0x6c], edi
mov dword [esi + 0x70], edi
mov dword [esi + 0x74], edi
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret

Function at 0x413c10
Capabilities:
Access peb ldr_data
Check for peb beingdebugged flag

Disassembly:
push 0xffffffffffffffff
push 0x419768
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
mov eax, dword [esp + 0x30]
push ebx
push ebp
push edi
push eax
lea ecx, [esp + 0x10]
call sub.MFC71.DLL_CBrush::CBrush
lea ecx, [esp + 0xc]
push ecx
mov ecx, esi
mov dword [esp + 0x30], 0
call sub.MFC71.DLL_CDC::SelectObject_1
mov edi, dword [esp + 0x38]
mov ebx, dword [esp + 0x34]
mov edx, dword [esi + 4]
push 0xf00021
push 0xd
push 0xd
push edi
push ebx
push edx
mov ebp, eax
call dword [sym.imp.GDI32.dll_PatBlt]
push ebp
mov ecx, esi
call sub.MFC71.DLL_CDC::SelectObject_1
lea eax, [edi + 0xf]
push eax
lea ecx, [ebx + 0xf]
push ecx
add edi, 0xfffffffe
push edi
add ebx, 0xfffffffe
push ebx
lea edx, [esp + 0x24]
push edx
call dword [sym.imp.USER32.dll_SetRect]
mov ebx, dword [esp + 0x40]
mov edx, dword [esi + 4]
xor eax, eax
test ebx, ebx
sete al
push 0xf
lea ecx, [esp + 0x18]
lea eax, [eax + eax + 2]
push eax
push ecx
push edx
call dword [sym.imp.USER32.dll_DrawEdge]
lea ecx, [esp + 0xc]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0xc], 0x41bb70
call sub.MFC71.DLL_CGdiObject::DeleteObject
mov ecx, dword [esp + 0x24]
pop edi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x24
ret
Function at 0x414a20
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x419933
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1d4
mov eax, dword [0x4245a0]
push ebp
push esi
push edi
mov edi, ecx
lea ecx, [esp + 0xc]
mov dword [esp + 0x1dc], eax
mov byte [edi + 0x17c], 1
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_3]
lea eax, [esp + 0xc]
lea esi, [edi + 0xd4]
push eax
mov ecx, esi
mov dword [esp + 0x1ec], 0
call sub.MFC71.DLL_CWnd::GetWindowTextA
push 0
push edi
lea ecx, [edi + 0xd0]
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
push eax
push 0x1800
lea ecx, [esp + 0x1c]
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
push eax
push 0
push 1
lea ecx, [esp + 0x30]
call sub.MFC71.DLL_CFileDialog::CFileDialog
lea ecx, [esp + 0x14]
mov byte [esp + 0x1e8], 1
call sub.MFC71.DLL_CFileDialog::DoModal
cmp eax, 1
jne 0x414af5
lea ecx, [esp + 0x10]
push ecx
lea ecx, [esp + 0x18]
call sub.MFC71.DLL_CFileDialog::GetPathName
mov ecx, eax
mov byte [esp + 0x1e8], 2
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
push eax
mov ecx, esi
call sub.MFC71.DLL_CWnd::SetWindowTextA
lea ecx, [esp + 0x10]
mov byte [esp + 0x1e8], 1
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
mov edx, dword [esi + 0x20]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0xffffffffffffffff
push 0
push 0xb1
push edx
call ebp
mov eax, dword [esi + 0x20]
push 0
push 0
push 0xb7
push eax
call ebp
mov ecx, esi
call sub.MFC71.DLL_CWnd::SetFocus
lea ecx, [esp + 0x14]
mov byte [edi + 0x17c], 0
mov byte [esp + 0x1e8], 0
call fcn.00416f9c
lea ecx, [esp + 0xc]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
mov ecx, dword [esp + 0x1e0]
pop edi
pop esi
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x1d4]
pop ebp
call fcn.00417291
add esp, 0x1e0
ret
Function at 0x10007170
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x24
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0x10], 0
mov ebx, dword [ebp + 0x14]
test byte [0x100560c4], 8
jne 0x10007280
mov esi, dword [esi + 8]
mov eax, dword [esi + 0xc]
cmp eax, 0xffffffff
je 0x10007210
mov ecx, dword [ebp + 0xc]
lea edx, [ebp - 0x10]
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], edx
mov dword [esp + 8], edi
mov dword [esp + 4], ecx
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_ReadFile]
sub esp, 0x14
test eax, eax
je 0x100071f0
mov eax, dword [ebp - 0x10]
test ebx, ebx
je 0x100071d8
mov dword [ebx], eax
lea esi, [esi]
test eax, eax
sete al
movzx eax, al
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret 0x10
mov eax, 0x800c0008
test ebx, ebx
je 0x100071fe
mov edx, dword [ebp - 0x10]
mov dword [ebx], edx
test byte [0x100560c4], 1
jne 0x10007250
mov eax, dword [ebp - 0x10]
jmp 0x100071d8
mov eax, dword [esi + 8]
lea ecx, [ebp - 0x10]
mov edx, dword [eax]
mov dword [esp + 0xc], ecx
mov ecx, dword [ebp + 0xc]
mov dword [esp + 8], edi
mov dword [esp], eax
mov dword [esp + 4], ecx
call dword [edx + 0x24]
mov dword [esi + 0x10], eax
sub esp, 0x10
test ebx, ebx
je 0x1000723c
mov edx, dword [ebp - 0x10]
mov dword [ebx], edx
cmp eax, 0x8000000a
je 0x100071e0
test eax, eax
jns 0x10007207
test byte [0x100560c4], 1
je 0x10007207
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.Read_failed:__08lx_n
mov dword [esp + 8], str.ProtocolStream_Read
mov dword [esp + 4], 0x100560c4
mov dword [esp], 0
call sym._wine_dbg_log.constprop.0_2
jmp 0x10007207
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x18], edi
mov dword [esp + 0x14], eax
lea eax, [esi - 4]
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.__p_____p__ld__p__n
mov dword [esp + 8], str.ProtocolStream_Read
mov dword [esp + 4], 0x100560c4
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_2
jmp 0x10007196