joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44914f
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, 0x46235b
call fcn.0045be24
sub esp, 0x2c
mov eax, dword [0x484894]
and dword [ebp - 0x30], 0
push ebx
push esi
push edi
mov esi, ecx
push 0x465798
lea ecx, [ebp - 0x34]
mov dword [ebp - 0x10], eax
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_3]
movzx edi, word [0x484a90]
xor ebx, ebx
inc ebx
mov dword [ebp - 4], ebx
call sub.MFC71.DLL_AfxGetModuleState
mov eax, dword [eax + 0xc]
push str.BINHELP
push edi
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
call sub.MFC71.DLL_AfxGetModuleState
mov eax, dword [eax + 0xc]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0x38], eax
call sub.MFC71.DLL_AfxGetModuleState
mov eax, dword [eax + 0xc]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
push dword [ebp - 0x38]
add esi, 0x68
push eax
mov ecx, esi
call fcn.00450b56
lea ecx, [ebp - 0x2c]
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_void_]
lea eax, [ebp + 0xc]
push eax
mov ecx, esi
mov byte [ebp - 4], 2
call fcn.004490ce
cmp dword [eax + 0x18], 0x10
jb 0x4491f3
mov eax, dword [eax + 4]
jmp 0x4491f6
add eax, 4
push eax
lea ecx, [ebp - 0x2c]
call dword [0x464e84]
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x2c]
push eax
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, [ebp - 0x2c]
mov dword [ebp - 0x30], ebx
mov byte [ebp - 4], bl
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [ebp - 0x34]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
pop edi
pop esi
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
pop ebx
call fcn.0045b711
leave
ret 8
Function at 0x4496e4
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, 0x462390
call fcn.0045be24
push ecx
push esi
mov esi, ecx
push edi
mov edi, dword [ebp + 8]
mov eax, dword [edi]
mov dword [esi], eax
mov eax, dword [edi + 4]
mov dword [esi + 4], eax
mov eax, dword [edi + 8]
mov dword [esi + 8], eax
mov eax, dword [edi + 0xc]
mov dword [esi + 0xc], eax
mov eax, dword [edi + 0x10]
mov dword [esi + 0x10], eax
lea eax, [edi + 0x14]
push eax
lea ecx, [esi + 0x14]
mov dword [ebp - 0x10], esi
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::constructor_class_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int___const__]
and dword [ebp - 4], 0
lea eax, [edi + 0x30]
push eax
lea ecx, [esi + 0x30]
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::constructor_class_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int___const__]
add edi, 0x4c
push edi
lea ecx, [esi + 0x4c]
mov byte [ebp - 4], 1
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::constructor_class_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int___const__]
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
leave
ret 4
Function at 0x44c37c
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call sub.MFC71.DLL_AfxGetModuleState
push dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
push dword [ebp + 8]
mov dword [ebp - 8], esi
push esi
mov byte [ebp - 1], 0
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
mov dword [ebp + 0xc], eax
jne 0x44c3ac
xor al, al
jmp 0x44c42d
push edi
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
jne 0x44c3bf
xor al, al
jmp 0x44c42c
mov esi, dword [ebp + 0x10]
mov eax, dword [esi]
test eax, eax
je 0x44c3d2
push eax
call sub.MFC71.DLL_operator_delete
and dword [esi], 0
pop ecx
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
mov dword [ebp + 8], eax
je 0x44c429
cmp dword [esi], 0
mov edi, dword [ebp + 0x14]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_SizeofResource]
jne 0x44c3f9
push dword [ebp + 0xc]
push dword [ebp - 8]
call ebx
mov dword [edi], eax
mov eax, dword [edi]
test eax, eax
je 0x44c428
push eax
call sub.MFC71.DLL_operator_new_1
pop ecx
push dword [ebp + 0xc]
mov dword [esi], eax
push dword [ebp - 8]
mov edi, dword [edi]
call ebx
cmp edi, eax
jl 0x44c428
push edi
push dword [ebp + 8]
push dword [esi]
call sub.MSVCR71.dll_memcpy
add esp, 0xc
mov byte [ebp - 1], 1
pop ebx
mov al, byte [ebp - 1]
pop edi
pop esi
leave
ret 0x10
Function at 0x451387
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, 0x462b09
call fcn.0045be24
push ecx
push esi
mov esi, ecx
push edi
lea ecx, [esi + 0x14]
mov dword [ebp - 0x10], esi
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::constructor_void_]
xor edi, edi
lea ecx, [esi + 0x30]
mov dword [ebp - 4], edi
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::constructor_void_]
lea ecx, [esi + 0x4c]
mov byte [ebp - 4], 1
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::constructor_void_]
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword [esi + 4], edi
mov dword [esi + 0x10], edi
mov dword [esi + 8], edi
mov dword [esi + 0xc], edi
mov dword [esi], eax
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
leave
ret 4

Function at 0x45148a
Capabilities:
Get common file path

Disassembly:
mov eax, 0x462b48
call fcn.0045be24
push ecx
push ecx
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x14], esi
call sub.MFC71.DLL_CWnd::CWnd
xor edi, edi
mov dword [esi], 0x472118
mov dword [ebp - 4], edi
mov dword [esi + 0x70], edi
mov dword [esi + 0x6c], 0x465830
lea ecx, [esi + 0x78]
mov byte [ebp - 4], 1
call sub.MFC71.DLL_CPtrArray::CPtrArray
lea ecx, [esi + 0x8c]
mov byte [ebp - 4], 2
call fcn.0045b626
mov ebx, dword [sym.imp.USER32.dll_GetSysColor]
push 0xf
mov byte [ebp - 4], 3
call ebx
push 8
mov dword [esi + 0x54], eax
call ebx
push 0xffffffffffffffff
push edi
lea ecx, [esi + 0x78]
mov dword [esi + 0x58], eax
mov dword [esi + 0x5c], edi
mov dword [esi + 0x60], edi
mov dword [esi + 0x64], edi
mov dword [esi + 0x68], edi
mov dword [esi + 0xa0], edi
mov dword [esi + 0xa4], edi
mov dword [esi + 0xa8], edi
mov dword [esi + 0xac], edi
mov dword [esi + 0x74], edi
call sub.MFC71.DLL_CPtrArray::SetSize
push 0xffffffffffffffff
push edi
lea ecx, [esi + 0x8c]
call sub.MFC71.DLL_CStringArray::SetSize
lea ecx, [ebp - 0x10]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_2]
push 0x410
push 0x411
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 4
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::GetBuffer]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push 0xffffffffffffffff
lea ecx, [ebp - 0x10]
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::ReleaseBuffer]
push str.winhlp32.exe
lea ecx, [ebp - 0x10]
call dword [0x464b38]
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ebx, eax
cmp ebx, edi
je 0x451594
push 0x6a
push ebx
call dword [sym.imp.USER32.dll_LoadCursorA]
cmp eax, edi
je 0x451594
push eax
call dword [sym.imp.USER32.dll_CopyIcon]
mov dword [esi + 0xa8], eax
push ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea ecx, [ebp - 0x10]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x45378c
Capabilities:
Set registry value

Disassembly:
push 4
lea eax, [esp + 0xc]
push eax
push 4
push 0
push dword [esp + 0x14]
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
ret 8

Function at 0x453f0c
Capabilities:
Create process on windows

Disassembly:
mov eax, 0x463109
call fcn.0045be24
sub esp, 0x14
and dword [ebp - 0x18], 0
push ebx
push esi
push dword [ebp + 8]
lea ecx, [ebp - 0x10]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_3]
and dword [ebp - 4], 0
push str.mailto:
lea ecx, [ebp - 0x14]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_3]
mov byte [ebp - 4], 1
call dword [sym.imp.USER32.dll_GetDesktopWindow]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x14]
mov esi, dword [eax - 0xc]
push 0
push 0x40
lea ecx, [ebp - 0x10]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::Find_1]
cmp eax, 0xffffffff
je 0x453f8a
push esi
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x10]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::Left]
push dword [ebp - 0x14]
mov ecx, eax
mov dword [ebp - 0x18], 1
call dword [sym.imp.MFC71.DLL_ATL::CStringT::Compare]
test eax, eax
je 0x453f8a
mov bl, 1
jmp 0x453f8c
xor bl, bl
test byte [ebp - 0x18], 1
je 0x453f9b
lea ecx, [ebp - 0x1c]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
test bl, bl
je 0x453fca
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.0040f3f0
add esp, 0xc
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 2
call dword [sym.imp.MFC71.DLL_ATL::CStringT::operator_2]
lea ecx, [ebp - 0x1c]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
push 5
push 0x465798
push 0
push dword [ebp - 0x10]
push 0x46c460
push dword [ebp - 0x20]
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
lea ecx, [ebp - 0x14]
mov esi, eax
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
lea ecx, [ebp - 0x10]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x454091
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push edi
lea eax, [ebp - 8]
push eax
push 1
xor ebx, ebx
push ebx
push dword [ebp + 0xc]
mov dword [ebp - 8], ebx
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov edi, eax
cmp edi, ebx
jne 0x454109
push esi
mov esi, dword [ebp + 0x14]
lea eax, [ebp - 1]
push eax
lea eax, [esi + 1]
push eax
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0xc], esi
mov byte [ebp - 1], bl
call fcn.00454068
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 0x18]
push ebx
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
push esi
push dword [ebp - 0x18]
mov edi, eax
push dword [ebp + 0x10]
call dword [sym.imp.MSVCR71.dll__mbsnbcpy]
add esp, 0xc
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0x1c]
mov dword [ebp - 8], ebx
call fcn.0044a4b7
pop esi
mov eax, edi
pop edi
pop ebx
leave
ret
Function at 0x45410f
Capabilities:
Create process on windows

Disassembly:
push ebp
lea ebp, [esp - 0x420]
sub esp, 0x4a0
mov eax, dword [0x484894]
push esi
xor esi, esi
cmp dword [ebp + 0x428], esi
mov dword [ebp + 0x41c], eax
mov dword [ebp + 4], esi
je 0x45425c
cmp dword [ebp + 0x430], esi
je 0x454156
push dword [ebp + 0x428]
call fcn.00453f0c
pop ecx
mov dword [ebp + 4], eax
jmp 0x45425c
push ebx
push edi
xor eax, eax
mov byte [ebp + 8], 0
mov ecx, 0x104
lea edi, [ebp + 9]
rep stosd dword es:[edi], eax
mov ebx, 0x410
push ebx
lea eax, [ebp + 8]
push eax
push str..htm
mov edi, DirectSoundCreate
push edi
call fcn.00454091
add esp, 0x10
test eax, eax
jne 0x45423d
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
push str._shellopencommand
lea eax, [ebp + 8]
push eax
call esi
push ebx
lea eax, [ebp + 8]
push eax
push eax
push edi
call fcn.00454091
add esp, 0x10
test eax, eax
jne 0x45425a
mov ebx, dword [sym.imp.MSVCR71.dll__mbsstr]
lea eax, [ebp + 8]
push str.__1_
push eax
call ebx
mov edi, eax
test edi, edi
pop ecx
pop ecx
jne 0x4541f1
lea eax, [ebp + 8]
push 0x47277c
push eax
call ebx
mov edi, eax
test edi, edi
pop ecx
pop ecx
jne 0x4541f1
lea eax, [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea edi, [ebp + eax + 7]
jmp 0x4541f4
mov byte [edi], 0
push 0x46cabc
push edi
call esi
push dword [ebp + 0x428]
push edi
call esi
lea eax, [ebp - 0x7c]
mov dword [ebp - 0x80], eax
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x80]
call fcn.00453e7e
push dword [ebp + 0x42c]
push dword [ebp - 0x80]
call dword [sym.imp.KERNEL32.dll_WinExec]
mov dword [ebp + 4], eax
lea eax, [ebp - 0x7c]
cmp dword [ebp - 0x80], eax
je 0x45425a
push dword [ebp - 0x80]
call dword [sym.imp.MSVCR71.dll_free]
pop ecx
jmp 0x45425a
push dword [ebp + 0x42c]
push esi
push esi
push dword [ebp + 0x428]
push str.explore
push esi
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov dword [ebp + 4], eax
pop edi
pop ebx
mov ecx, dword [ebp + 0x41c]
mov eax, dword [ebp + 4]
pop esi
call fcn.0045b711
add ebp, 0x420
leave
ret

Function at 0x45538c
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp dword [ecx], 0xffffffff
mov eax, dword [0x484894]
mov dword [ebp - 4], eax
je 0x4553ca
call fcn.004552b0
push 7
lea ecx, [ebp - 0xc]
push ecx
movzx eax, ax
push 0x1004
push eax
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
je 0x4553ca
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.MSVCR71.dll_atoi]
pop ecx
jmp 0x4553cc
xor eax, eax
mov ecx, dword [ebp - 4]
call fcn.0045b711
leave
ret
Function at 0x455e29
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x484894]
push edi
push 0
push dword [ebp + 0xc]
mov dword [ebp - 4], eax
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov edi, eax
test edi, edi
jne 0x455e57
mov edi, dword [ebp + 8]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
mov eax, dword [ebp + 8]
jmp 0x455ee2
push esi
push edi
call dword [sym.imp.MSVCR71.dll_malloc]
mov esi, eax
test esi, esi
pop ecx
jne 0x455e72
mov edi, dword [ebp + 8]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
mov eax, dword [ebp + 8]
jmp 0x455ee1
push esi
push edi
push 0
push dword [ebp + 0xc]
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x455e99
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x4681e4
push esi
call sub.VERSION.dll_VerQueryValueA
test eax, eax
jne 0x455eae
push esi
call dword [sym.imp.MSVCR71.dll_free]
mov edi, dword [ebp + 8]
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
mov eax, dword [ebp + 8]
jmp 0x455ee0
mov eax, dword [ebp - 0x14]
movzx ecx, word [eax + 0x14]
push ecx
movzx ecx, word [eax + 0x16]
push ecx
movzx ecx, word [eax + 0x10]
movzx eax, word [eax + 0x12]
push ecx
push eax
lea ecx, [ebp - 0x10]
call fcn.00455448
push esi
call dword [sym.imp.MSVCR71.dll_free]
mov eax, dword [ebp + 8]
lea esi, [ebp - 0x10]
mov edi, eax
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
pop ecx
pop esi
mov ecx, dword [ebp - 4]
pop edi
call fcn.0045b711
leave
ret
Function at 0x458e50
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, dword [0x484bcc]
sub esp, 0xc
test eax, eax
mov dword [0x484bc8], 0
je 0x458e6c
xor eax, eax
add esp, 0xc
ret
mov eax, 0x484bd8
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x458e74
sub eax, edx
push esi
mov dword [esp + 0xc], eax
jne 0x458f11
lea eax, [esp + 4]
push eax
push 1
xor esi, esi
push esi
push str.CLSID0280750F_22B0_46fd_BCCA_99B3BF28765EInprocServer32
push DirectSoundCreate
mov dword [esp + 0x18], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x458ef5
lea ecx, [esp + 0xc]
push ecx
push 0x484bd8
lea edx, [esp + 0x10]
push edx
push eax
push eax
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x18]
push eax
mov dword [esp + 0x24], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x458ee6
cmp dword [esp + 8], 1
jne 0x458ee6
mov esi, 1
mov ecx, dword [esp + 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x458f11
mov eax, dword [0x484bc8]
test eax, eax
jle 0x458f07
mov word [0x484bca], 0x8007
mov eax, 0x80004005
pop esi
add esp, 0xc
ret
push 0x484bd8
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
test eax, eax
mov dword [0x484bcc], eax
je 0x458ef5
xor eax, eax
pop esi
add esp, 0xc
ret
Function at 0x458fd0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4637ab
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, 0x1114
call fcn.0045bb20
mov eax, dword [0x484894]
push ebx
push esi
push edi
push 0x484bb0
mov dword [esp + 0x1120], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edi, 1
mov dword [esp + 0x14], edi
mov eax, dword [0x484bcc]
xor esi, esi
cmp eax, esi
mov dword [esp + 0x112c], esi
je 0x459037
cmp dword [0x484bd0], esi
jne 0x459192
mov byte [esp + 0x118], 0
call fcn.00458e50
test eax, eax
jge 0x459068
push 0x1000
lea eax, [esp + 0x11c]
push str.This_program_requires_the_file_advrcntr2.dll__which_was_not_found_on_this_system.
push eax
call dword [sym.imp.MSVCR71.dll__mbsnbcpy]
add esp, 0xc
jmp 0x45910d
mov ebx, dword [ebp + 8]
push ebx
call fcn.00458f30
add esp, 4
test eax, eax
jge 0x459192
test bl, bl
mov dword [esp + 0x10], esi
je 0x4590d4
mov eax, dword [0x484bd0]
cmp eax, esi
jne 0x4590b9
mov eax, dword [0x484bcc]
cmp eax, esi
je 0x4590d4
push 6
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, esi
je 0x4590b0
push esi
call eax
add esp, 4
mov dword [0x484bd0], eax
jmp 0x4590b5
mov eax, dword [0x484bd0]
cmp eax, esi
je 0x4590d4
lea esi, [eax + 0x28]
push esi
mov edi, 2
call fcn.00458f80
add esp, 4
test eax, eax
je 0x4590d4
call dword [esi]
mov dword [esp + 0x10], eax
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 0x14]
mov eax, dword [ebp + 0x10]
push ecx
mov ecx, dword [esp + 0x14]
push edx
push eax
push ecx
push 0x1f40
push 0x29cc
push edi
push str.Fatal_Error:_r_nInstallation_corrupted___please_reinstall_NERO__r_n_r_nError_Code:__i____i____i____i_r_nParameters:__i____i____i_r_nSee_Doc4536
lea edx, [esp + 0x138]
push 0x1000
push edx
call dword [sym.imp.MSVCR71.dll__snprintf]
add esp, 0x28
xor esi, esi
push 0x484bb0
mov dword [0x484bd0], esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ax, word [0x474420]
mov cl, byte [0x474422]
mov word [esp + 0x18], ax
mov byte [esp + 0x1a], cl
xor eax, eax
mov ecx, 0x3f
lea edi, [esp + 0x1b]
rep stosd dword es:[edi], eax
push 0x100
lea edx, [esp + 0x1c]
push edx
push str.NeroSuppressProxyCheck
stosb byte es:[edi], al
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
test eax, eax
je 0x45916c
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.MSVCR71.dll_atoi]
add esp, 4
test eax, eax
jne 0x45918b
test byte [0x484bd4], 1
jne 0x45918b
push 0x10
push str.Nero
lea ecx, [esp + 0x120]
push ecx
push esi
call dword [sym.imp.USER32.dll_MessageBoxA]
mov eax, 0x80004005
jmp 0x45919f
push 0x484bb0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor eax, eax
mov ecx, dword [esp + 0x1124]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x111c]
call fcn.0045b711
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x45bbd8
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x74
push 0x4748f0
call fcn.0045bdd8
xor ebx, ebx
mov dword [ebp - 0x20], ebx
push ebx
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x45bc18
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x45bc18
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x45bc30
cmp eax, 0x20b
je 0x45bc1d
mov dword [ebp - 0x1c], ebx
jmp 0x45bc44
cmp dword [ecx + 0x84], 0xe
jbe 0x45bc18
xor eax, eax
cmp dword [ecx + 0xf8], ebx
jmp 0x45bc3e
cmp dword [ecx + 0x74], 0xe
jbe 0x45bc18
xor eax, eax
cmp dword [ecx + 0xe8], ebx
setne al
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], ebx
push 2
call dword [sym.imp.MSVCR71.dll___set_app_type]
pop ecx
or dword [0x484d50], 0xffffffff
or dword [0x484d54], 0xffffffff
call dword [sym.imp.MSVCR71.dll___p__fmode]
mov ecx, dword [0x484cf4]
mov dword [eax], ecx
call dword [sym.imp.MSVCR71.dll___p__commode]
mov ecx, dword [0x484cf0]
mov dword [eax], ecx
mov eax, dword [sym.imp.MSVCR71.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x484d4c], eax
call fcn.0045beec
call fcn.0045bf8c
cmp dword [0x4848c0], ebx
jne 0x45bca4
push fcn.0045bf8c
call dword [sym.imp.MSVCR71.dll___setusermatherr]
pop ecx
call fcn.0045bf7a
push 0x484064
push 0x484060
call sub.MSVCR71.dll__initterm
push 0x45bf30
call fcn.0045bab0
mov eax, dword [0x484cec]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x28]
push eax
push dword [0x484ce8]
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x38]
push eax
call dword [sym.imp.MSVCR71.dll___getmainargs]
add esp, 0x20
mov dword [ebp - 0x3c], eax
cmp eax, ebx
jge 0x45bcf8
push 8
call sub.MSVCR71.dll__amsg_exit
pop ecx
push 0x48405c
push section..data
call sub.MSVCR71.dll__initterm
pop ecx
pop ecx
mov eax, dword [sym.imp.MSVCR71.dll__acmdln]
mov esi, dword [eax]
mov dword [ebp - 0x24], esi
mov al, byte [esi]
cmp al, 0x20
ja 0x45bd76
cmp al, bl
je 0x45bd22
cmp dword [ebp - 0x20], ebx
jne 0x45bd76
mov al, byte [esi]
cmp al, bl
je 0x45bd32
cmp al, 0x20
ja 0x45bd32
inc esi
mov dword [ebp - 0x24], esi
jmp 0x45bd22
mov dword [ebp - 0x58], ebx
lea eax, [ebp - 0x84]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
test byte [ebp - 0x58], 1
je 0x45bd4e
movzx eax, word [ebp - 0x54]
jmp 0x45bd51
push 0xa
pop eax
push eax
push esi
push ebx
push ebx
call edi
push eax
call fcn.0045c34a
mov esi, eax
mov dword [ebp - 0x40], esi
cmp dword [ebp - 0x1c], ebx
jne 0x45bd6e
push esi
call dword [sym.imp.MSVCR71.dll_exit]
call dword [sym.imp.MSVCR71.dll__cexit]
jmp 0x45bdcb
cmp al, 0x22
jne 0x45bd85
xor ecx, ecx
cmp dword [ebp - 0x20], ebx
sete cl
mov dword [ebp - 0x20], ecx
movzx eax, al
push eax
call dword [sym.imp.MSVCR71.dll__ismbblead]
pop ecx
test eax, eax
je 0x45bd98
inc esi
mov dword [ebp - 0x24], esi
inc esi
jmp 0x45bd10
or dword [ebp - 4], 0xffffffff
mov eax, esi
call fcn.0045be13
ret