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

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x43f0e8]
je 0x421690
inc edi
cmp edi, 0x17
jb 0x421681
cmp edi, 0x17
jae 0x421810
push ebp
push 3
call fcn.0042a174
cmp eax, 1
pop ecx
je 0x4217dc
push 3
call fcn.0042a174
test eax, eax
pop ecx
jne 0x4216c4
cmp dword [0x43ecdc], 1
je 0x4217dc
cmp ebx, 0xfc
je 0x42180f
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x440520
push ebp
call fcn.0041e6cd
add esp, 0xc
test eax, eax
je 0x4216fa
push esi
push esi
push esi
push esi
push esi
call fcn.0041f810
add esp, 0x14
push 0x104
mov esi, 0x440539
push esi
push 0
mov byte [0x44063d], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x42173e
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.0041e6cd
add esp, 0xc
test eax, eax
je 0x42173e
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.0041f810
add esp, 0x14
push esi
call fcn.0041de10
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x421783
push esi
call fcn.0041de10
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x440834
push 0x43580c
sub ecx, eax
push ecx
push eax
call fcn.0042a0c1
add esp, 0x14
test eax, eax
je 0x421783
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.0041f810
add esp, 0x14
jmp 0x421785
xor esi, esi
push 0x435808
push ebx
push ebp
call fcn.0042a050
add esp, 0xc
test eax, eax
je 0x4217a5
push esi
push esi
push esi
push esi
push esi
call fcn.0041f810
add esp, 0x14
push dword [edi*8 + 0x43f0ec]
push ebx
push ebp
call fcn.0042a050
add esp, 0xc
test eax, eax
je 0x4217c7
push esi
push esi
push esi
push esi
push esi
call fcn.0041f810
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.00429e93
add esp, 0xc
jmp 0x42180f
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x42180f
cmp ebp, 0xffffffff
je 0x42180f
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x43f0ec]
push dword [esi]
call fcn.0041de10
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x429e93
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.00421928
xor ebx, ebx
cmp dword [0x440ca8], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x429f69
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x42a049
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x42a049
push eax
call fcn.004218ba
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x440ca8], eax
call esi
push eax
call fcn.004218ba
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x440cac], eax
call esi
push eax
call fcn.004218ba
mov dword [0x440cb0], eax
lea eax, [ebp - 0xc]
push eax
call fcn.0041dfd0
test eax, eax
pop ecx
pop ecx
je 0x429f37
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0041f810
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x429f69
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.004218ba
cmp eax, ebx
pop ecx
mov dword [0x440cb8], eax
je 0x429f69
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.004218ba
pop ecx
mov dword [0x440cb4], eax
mov eax, dword [0x440cb4]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x429fee
cmp dword [0x440cb8], ecx
je 0x429fee
push eax
call fcn.00421931
push dword [0x440cb8]
mov esi, eax
call fcn.00421931
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x429fee
cmp edi, ebx
je 0x429fee
call esi
cmp eax, ebx
je 0x429fbb
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x429fbb
test byte [ebp - 0x18], 1
jne 0x429fee
lea eax, [ebp - 0x10]
push eax
call fcn.0041e007
test eax, eax
pop ecx
je 0x429fd6
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0041f810
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x429fe5
or dword [ebp + 0x10], 0x200000
jmp 0x42a029
or dword [ebp + 0x10], 0x40000
jmp 0x42a029
mov eax, dword [0x440cac]
cmp eax, dword [ebp - 8]
je 0x42a029
push eax
call fcn.00421931
cmp eax, ebx
pop ecx
je 0x42a029
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x42a029
mov eax, dword [0x440cb0]
cmp eax, dword [ebp - 8]
je 0x42a029
push eax
call fcn.00421931
cmp eax, ebx
pop ecx
je 0x42a029
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x440ca8]
call fcn.00421931
cmp eax, ebx
pop ecx
je 0x42a049
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x42a04b
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401000
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4a4004]
jne 0x40100a
repz ret
jmp fcn.004017af

Function at 0x405d6a
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4a4004]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.00403529
and dword [ebp - 0x14], 0
cmp dword [0x4a686c], 0
mov dword [ebp - 0x18], eax
jne 0x405e1d
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x405ec5
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x405ec5
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x4a686c], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x4a6870], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x4a6874], eax
call edi
push eax
call esi
mov dword [0x4a687c], eax
test eax, eax
je 0x405e1d
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x4a6878], eax
mov eax, dword [0x4a6878]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x405e76
cmp dword [0x4a687c], ecx
je 0x405e76
push eax
call esi
push dword [0x4a687c]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x405e76
test ebx, ebx
je 0x405e76
call edi
test eax, eax
je 0x405e6d
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x405e6d
test byte [ebp - 8], 1
jne 0x405e76
or dword [ebp + 0x10], 0x200000
jmp 0x405ea9
mov eax, dword [0x4a6870]
cmp eax, dword [ebp - 0x18]
je 0x405ea9
push eax
call esi
test eax, eax
je 0x405ea9
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x405ea9
mov eax, dword [0x4a6874]
cmp eax, dword [ebp - 0x18]
je 0x405ea9
push eax
call esi
test eax, eax
je 0x405ea9
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x4a686c]
call esi
test eax, eax
je 0x405ec5
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x405ec7
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00401000
leave
ret
Function at 0x40164e
Capabilities:
Query environment variable

Disassembly:
mov eax, dword [0x2d3990c]
push esi
mov esi, eax
shr esi, 3
push edi
mov edi, dword [0x2d39864]
test esi, esi
je 0x401694
push ebx
xor ebx, ebx
cmp eax, 0x959
jne 0x40167f
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_SetConsoleCtrlHandler]
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
mov ecx, edi
call fcn.004014f2
add edi, 8
dec esi
je 0x401693
mov eax, dword [0x2d3990c]
jmp 0x401667
pop ebx
pop edi
pop esi
ret 4
Function at 0x40d069
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x41a36c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.00404ed5
mov dword [ebp - 0x14], eax
cmp dword [0x43ffc0], esi
jne 0x40d15c
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x40d0e9
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x40d23c
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x40d23c
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40d23c
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x43ffc0], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x43ffc4], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x43ffc8], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x43ffd0], eax
test eax, eax
je 0x40d159
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x43ffcc], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x40d181
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x40d174
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x40d196
push 4
pop eax
jmp 0x40d23e
cmp dword [ebp - 0x14], esi
je 0x40d196
push dword [0x43ffc0]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x40d17b
mov eax, dword [0x43ffcc]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x40d1f4
cmp dword [0x43ffd0], edi
je 0x40d1f4
push eax
call ebx
push dword [0x43ffd0]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x40d1f4
test eax, eax
je 0x40d1f4
call ecx
test eax, eax
je 0x40d1e9
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x40d1e9
test byte [ebp - 8], 1
jne 0x40d1f4
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x40d224
mov eax, dword [0x43ffc4]
cmp eax, edi
je 0x40d221
push eax
call ebx
test eax, eax
je 0x40d221
call eax
mov esi, eax
test esi, esi
je 0x40d221
mov eax, dword [0x43ffc8]
cmp eax, edi
je 0x40d221
push eax
call ebx
test eax, eax
je 0x40d221
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x43ffc0]
call ebx
test eax, eax
je 0x40d23c
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x40d23e
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040415b
mov esp, ebp
pop ebp
ret
Function at 0x402810
Capabilities:
Contain obfuscated stackstrings
Create new key via cryptacquirecontext
Encrypt data using aes via winapi

Disassembly:
sub esp, 0x4c
cmp dword [esi], 0
mov al, 0x47
mov cl, 0x11
mov byte [esp + 2], al
mov byte [esp + 3], cl
mov byte [esp + 4], al
mov byte [esp + 7], al
mov byte [esp + 0xa], cl
mov cl, 0x74
mov al, 0x9c
mov byte [esp], 0x4c
mov byte [esp + 1], 0xcf
mov byte [esp + 5], 0xc1
mov byte [esp + 6], 0xa9
mov byte [esp + 8], 0x6e
mov byte [esp + 9], 0x2c
mov byte [esp + 0xb], 0xcc
mov byte [esp + 0xc], 0xca
mov byte [esp + 0xd], 0x75
mov byte [esp + 0xe], 0x67
mov byte [esp + 0xf], 0x50
mov byte [esp + 0x10], 0x76
mov byte [esp + 0x11], cl
mov byte [esp + 0x12], 0x96
mov byte [esp + 0x13], al
mov byte [esp + 0x14], 0x8d
mov byte [esp + 0x15], 0x62
mov byte [esp + 0x16], 0x8f
mov byte [esp + 0x17], 0xc7
mov byte [esp + 0x18], 0xa0
mov byte [esp + 0x19], 0xe
mov byte [esp + 0x1a], 0x63
mov byte [esp + 0x1b], 0x23
mov byte [esp + 0x1c], al
mov byte [esp + 0x1d], cl
mov byte [esp + 0x1e], 0x5f
mov byte [esp + 0x1f], 5
jne 0x4028d4
push 0xf0000000
push 0x18
push 0
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
jne 0x4028d4
mov dword [esi], eax
xor al, al
add esp, 0x4c
ret
push 0x2c
lea eax, [esp + 0x24]
push 0
push eax
call fcn.00401100
push 0x20
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x40]
push edx
mov word [esp + 0x38], 0x208
mov word [esp + 0x3c], 0x6610
mov byte [esp + 0x40], 0x20
call fcn.00401140
mov edx, dword [esi]
add esp, 0x18
lea eax, [esi + 4]
push eax
push 0
push 0
push 0x2c
lea ecx, [esp + 0x30]
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_CryptImportKey]
test eax, eax
jne 0x40293a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00407a20
add esp, 4
xor al, al
add esp, 0x4c
ret
mov al, 1
add esp, 0x4c
ret
Function at 0x4046f0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x428603
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 [0x42c64c]
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 0x4048f0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4286c3
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_]
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 0x409d10
Capabilities:
Delete file

Disassembly:
push ebx
mov ebx, ecx
push esi
mov esi, dword [ebx + 4]
test esi, esi
mov dword [ebx], vtable.CTempFileList.0
je 0x409d37
push edi
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, esi
mov eax, dword [eax + 8]
mov esi, dword [esi]
push eax
call edi
test esi, esi
jne 0x409d28
pop edi
pop esi
mov dword [ebx], vtable.CList_class_ATL::CStringT_char__class_StrTraitMFC_DLL_char__class_ATL::ChTraitsCRT_char_____char_const__.0
mov ecx, ebx
pop ebx
jmp 0x409960

Function at 0x40a120
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x428f79
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
push edi
mov edi, dword [esp + 0x20]
mov ecx, edi
mov dword [esp + 8], 0
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::GetManager]
push eax
lea ecx, [esp + 0x24]
call dword [0x42c2e8]
mov edx, dword [esp + 0x24]
test edx, edx
mov dword [esp + 0x14], 0
jne 0x40a16b
xor eax, eax
jmp 0x40a179
mov eax, edx
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40a170
sub eax, esi
mov ecx, dword [edi]
push eax
mov eax, dword [ecx - 0xc]
push edx
push eax
push ecx
lea ecx, [esp + 0x30]
push ecx
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::Concatenate]
mov esi, dword [esp + 0x30]
add esp, 0x14
lea edx, [esp + 0x20]
push edx
mov ecx, esi
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_4]
lea ecx, [esp + 0x20]
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 0x40a1c0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x428f99
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebp
push esi
mov esi, dword [esp + 0x24]
mov ecx, esi
mov dword [esp + 8], 0
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::GetManager]
push eax
lea ecx, [esp + 0x28]
call dword [0x42c2e8]
mov edx, dword [esp + 0x20]
test edx, edx
mov esi, dword [esi]
mov ebp, dword [esi - 0xc]
mov dword [esp + 0x14], 0
jne 0x40a210
xor eax, eax
jmp 0x40a220
mov eax, edx
push edi
lea edi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40a216
sub eax, edi
pop edi
push ebp
push esi
push eax
push edx
lea eax, [esp + 0x34]
push eax
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::Concatenate]
mov esi, dword [esp + 0x30]
add esp, 0x14
lea ecx, [esp + 0x24]
push ecx
mov ecx, esi
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_4]
lea ecx, [esp + 0x24]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
mov ecx, dword [esp + 0xc]
mov eax, esi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x40f7c0
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4296c1
push eax
mov dword fs:[0], esp
sub esp, 0x30
push ebp
push esi
mov esi, dword [esp + 0x48]
push edi
push esi
mov ebp, ecx
call fcn.0040e780
mov edi, eax
cmp edi, dword [ebp + 4]
je 0x40f7fe
lea eax, [edi + 0xc]
push eax
mov ecx, esi
call dword [sym.imp.iCDBPI.dll_public:_bool___thiscall_iCDB::Index::operator__struct_iCDB::Index_const__const]
test al, al
je 0x40f877
lea ecx, [esp + 0xc]
call dword [sym.imp.iCDBPI.dll_public:_void___thiscall_iCDB::ContainerT_class_iCDB::IComp_const__::constructor_void_]
mov ecx, dword [esi]
mov edx, dword [esi + 4]
mov dword [esp + 0x20], ecx
push eax
lea ecx, [esp + 0x2c]
mov dword [esp + 0x48], 0
mov dword [esp + 0x28], edx
call dword [sym.imp.iCDBPI.dll_public:_void___thiscall_iCDB::ContainerT_class_iCDB::IComp_const__::constructor_class_iCDB::ContainerT_class_iCDB::IComp_const___const__]
lea eax, [esp + 0x20]
push eax
push edi
lea ecx, [esp + 0x54]
push ecx
mov ecx, ebp
mov byte [esp + 0x50], 1
call fcn.0040f5e0
mov edi, dword [sym.imp.iCDBPI.dll_public:_void___thiscall_iCDB::ContainerT_class_iCDB::IComp_const__::destructor_void_]
mov esi, dword [eax]
lea ecx, [esp + 0x28]
mov byte [esp + 0x44], 0
call edi
lea ecx, [esp + 0xc]
mov dword [esp + 0x44], 0xffffffff
call edi
pop edi
lea eax, [esi + 0x14]
pop esi
pop ebp
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
add esp, 0x3c
ret 4
mov ecx, dword [esp + 0x3c]
lea eax, [edi + 0x14]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x3c
ret 4
Function at 0x40ff80
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x620
mov eax, dword [0x43aae0]
xor eax, esp
push ebp
push esi
mov esi, dword [esp + 0x630]
lea ecx, [esp + 0x524]
push ecx
lea edx, [esp + 0x1c]
push edx
lea ecx, [esp + 0x328]
push ecx
lea edx, [esp + 0x18]
mov dword [esp + 0x630], eax
mov eax, dword [esp + 0x638]
push edx
push eax
xor ebp, ebp
call dword [sym.imp.MSVCR71.dll__splitpath]
lea eax, [esp + 0x2c]
push eax
call dword [sym.imp.MSVCR71.dll__strlwr]
push str..ini
lea ecx, [esp + 0x34]
push ecx
lea edx, [esp + 0x340]
push edx
lea eax, [esp + 0x30]
push eax
push esi
call dword [sym.imp.MSVCR71.dll__makepath]
push 0x42db7c
push esi
call dword [sym.imp.MSVCR71.dll_fopen]
add esp, 0x34
test eax, eax
je 0x410124
push eax
call dword [sym.imp.MSVCR71.dll_fclose]
mov al, byte [esi]
add esp, 4
test al, al
mov ebp, 1
jne 0x41016d
push ebx
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x120]
push str._s.ini
push edx
call dword [sym.imp.MSVCR71.dll_sprintf]
add esp, 0xc
xor ebx, ebx
push edi
nop
test ebp, ebp
jne 0x410152
xor edi, edi
lea ebx, [ebx]
test ebp, ebp
jne 0x410146
mov ecx, dword [edi + 0x43a76c]
lea eax, [esp + 0x20]
push eax
push ecx
lea edx, [esp + 0x430]
push str._s_s
push edx
call dword [sym.imp.MSVCR71.dll_sprintf]
mov edx, dword [ebx + 0x43a764]
add esp, 0x10
lea eax, [esp + 0x10]
push eax
push 0x20019
push ebp
lea ecx, [esp + 0x434]
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x41013a
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x228]
push ecx
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0x24]
push edx
push ebp
lea eax, [esp + 0x130]
push eax
push ecx
mov dword [esp + 0x34], 1
mov dword [esp + 0x30], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x41012f
mov al, byte [esp + 0x224]
test al, al
je 0x41012f
push ebp
lea edx, [esp + 0x124]
push edx
lea eax, [esp + 0x22c]
push eax
push ebp
push esi
call dword [sym.imp.MSVCR71.dll__makepath]
push 0x42db7c
push esi
call dword [sym.imp.MSVCR71.dll_fopen]
add esp, 0x1c
test eax, eax
je 0x41012c
push eax
call dword [sym.imp.MSVCR71.dll_fclose]
add esp, 4
mov ebp, 1
jmp 0x41012f
mov byte [esi], 0
jmp 0x410020
mov byte [esi], 0
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
add edi, 4
cmp edi, 8
jb 0x410050
add ebx, 4
cmp ebx, 8
jb 0x410040
pop edi
pop ebx
pop esi
mov eax, ebp
pop ebp
mov ecx, dword [esp + 0x61c]
xor ecx, esp
call fcn.0042708e
add esp, 0x620
ret
mov ecx, dword [esp + 0x624]
pop esi
mov eax, ebp
pop ebp
xor ecx, esp
call fcn.0042708e
add esp, 0x620
ret
Function at 0x4224f0
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x42b019
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
push 1
push str.PassSelectionFromPowerPCBToViewDraw
push str.Cross_Selection
mov esi, ecx
call sub.MFC71.DLL_CWinApp::GetProfileIntA
push 1
push str.PassSelectionFromViewDrawToPowerPCB
push str.Cross_Selection
mov ecx, esi
mov dword [esi + 0x884], eax
call sub.MFC71.DLL_CWinApp::GetProfileIntA
push 1
push str.PowerPCB_Zoom
push str.Cross_Selection
mov ecx, esi
mov dword [esi + 0x888], eax
call sub.MFC71.DLL_CWinApp::GetProfileIntA
push 0
push str.Highlight_In_Schematic
push str.Placement_Actions
mov ecx, esi
mov dword [esi + 0x55c], eax
call sub.MFC71.DLL_CWinApp::GetProfileIntA
push 2
push str.Show_Placed_Components
push str.Placement_Actions
mov ecx, esi
mov dword [esi + 0x88c], eax
call sub.MFC71.DLL_CWinApp::GetProfileIntA
push 0
push str.Editor
mov dword [esi + 0x890], eax
push str.General
lea eax, [esp + 0x10]
push eax
mov ecx, esi
call sub.MFC71.DLL_CWinApp::GetProfileStringA
add esi, 0x870
push eax
mov ecx, esi
mov dword [esp + 0x14], 0
call dword [sym.imp.MFC71.DLL_ATL::CStringT::operator_2]
lea ecx, [esp + 4]
mov dword [esp + 0x10], 0xffffffff
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
mov ecx, dword [esi]
mov eax, dword [ecx - 0xc]
test eax, eax
jne 0x422605
push 0x104
mov ecx, esi
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::GetBuffer]
push 0x43c138
push 0x104
push eax
push str.notepad
push str.Editor
push str.General
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push 0xffffffffffffffff
mov ecx, esi
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::ReleaseBuffer]
mov ecx, dword [esp + 8]
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret