joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4da6d0
Capabilities:
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x55fc29
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push ebx
push ebp
push esi
push edi
mov edi, ecx
mov ecx, dword [edi + 0x20]
lea eax, [esp + 0x18]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetWindowRect]
lea ecx, [esp + 0x10]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_9]
mov dword [esp + 0x30], 0
mov edx, dword [edi + 0xb0]
push edx
lea eax, [esp + 0x14]
push str._s_HSIZE
push eax
call dword [sym.imp.MFC71.DLL_ATL::CStringT::Format_1]
mov edx, dword [esp + 0x2c]
mov esi, dword [esp + 0x24]
mov ecx, dword [0x68c9b4]
mov eax, dword [ecx + 0x24]
mov ebx, dword [esp + 0x1c]
add esp, 0xc
sub edx, esi
push str.DialogStates
mov dword [esp + 0x18], edx
call fcn.0045ee50
mov ebp, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov esi, eax
test esi, esi
je 0x4da770
push 4
lea eax, [esp + 0x18]
push eax
push 4
push 0
push ebx
push esi
call ebp
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [edi + 0xb0]
push ecx
lea edx, [esp + 0x14]
push str._s_VSIZE
push edx
call dword [sym.imp.MFC71.DLL_ATL::CStringT::Format_1]
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x28]
mov eax, dword [0x68c9b4]
mov eax, dword [eax + 0x24]
mov edi, dword [esp + 0x1c]
add esp, 0xc
sub ecx, edx
push str.DialogStates
mov dword [esp + 0x18], ecx
call fcn.0045ee50
mov esi, eax
test esi, esi
je 0x4da7ca
push 4
lea edx, [esp + 0x18]
push edx
push 4
push 0
push edi
push esi
call ebp
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0x10]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_1]
mov ecx, dword [esp + 0x28]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x24
ret
Function at 0x4dca10
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x565b4a
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push ebx
push ebp
push esi
xor esi, esi
push edi
mov dword [esp + 0x14], esi
call fcn.004dd700
mov edi, eax
mov dword [esp + 0x20], edi
mov dword [esp + 0x24], esi
mov eax, dword [esp + 0x38]
mov dword [esp + 0x30], esi
mov ebx, dword [eax + 8]
cmp ebx, dword [eax + 0xc]
je 0x4dcaf0
mov eax, dword [ebx]
lea esi, [esp + 0x14]
call fcn.004a1c80
mov esi, dword [edi]
cmp esi, edi
mov ebp, eax
je 0x4dca7f
mov eax, dword [ebp]
lea ecx, [esi + 8]
push eax
call dword [sym.imp.MFC71.DLL_ATL::CStringT::Compare]
test eax, eax
je 0x4dca7f
mov esi, dword [esi]
cmp esi, edi
jne 0x4dca68
lea ecx, [esp + 0x14]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_1]
cmp esi, edi
jne 0x4dcad6
mov eax, dword [ebx]
lea esi, [esp + 0x18]
call fcn.004a1c80
push eax
mov byte [esp + 0x34], 1
mov eax, dword [edi + 4]
lea ebp, [edi + 4]
push eax
push edi
call fcn.004dd920
mov ecx, 1
lea edx, [esp + 0x1c]
mov esi, eax
call fcn.004dd9b0
mov dword [ebp], esi
mov eax, dword [esi + 4]
lea ecx, [esp + 0x18]
mov dword [eax], esi
mov byte [esp + 0x30], 0
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_1]
mov edi, dword [esp + 0x20]
mov ecx, dword [esp + 0x38]
mov eax, dword [ecx + 0xc]
add ebx, 4
cmp ebx, eax
jne 0x4dca55
mov eax, dword [esp + 0x24]
test eax, eax
jne 0x4dcb30
mov ebp, dword [esp + 0x3c]
push 0x57e144
mov ecx, ebp
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_8]
mov esi, dword [edi]
cmp esi, edi
mov dword [edi], edi
mov dword [edi + 4], edi
je 0x4dcb2a
lea esp, [esp]
mov ebx, dword [esi]
lea ecx, [esi + 8]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_1]
push esi
call sub.MFC71.DLL_operator_delete_1
add esp, 4
cmp ebx, edi
mov esi, ebx
jne 0x4dcb10
push edi
jmp 0x4dcbbb
lea edx, [esp + 0x1c]
push edx
call fcn.004dcf30
lea ecx, [esp + 0x10]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_9]
mov byte [esp + 0x30], 2
mov esi, dword [esp + 0x20]
mov edi, dword [esi]
cmp edi, esi
je 0x4dcb7a
cmp edi, dword [esi]
je 0x4dcb66
mov eax, dword [esp + 0x40]
push eax
lea ecx, [esp + 0x14]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::operator_2]
lea ecx, [edi + 8]
push ecx
lea ecx, [esp + 0x14]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::operator_2]
mov edi, dword [edi]
cmp edi, esi
jne 0x4dcb53
mov ebp, dword [esp + 0x3c]
lea edx, [esp + 0x10]
push edx
mov ecx, ebp
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_10]
lea ecx, [esp + 0x10]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_1]
mov edi, dword [esi]
cmp edi, esi
mov dword [esi], esi
mov dword [esi + 4], esi
je 0x4dcbba
mov ebx, dword [edi]
lea ecx, [edi + 8]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_1]
push edi
call sub.MFC71.DLL_operator_delete_1
add esp, 4
cmp ebx, esi
mov edi, ebx
jne 0x4dcba0
push esi
call sub.MFC71.DLL_operator_delete_1
mov ecx, dword [esp + 0x2c]
add esp, 4
pop edi
pop esi
mov eax, ebp
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x24
ret 0xc
Function at 0x4de220
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x568be2
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
push ebp
mov ebp, dword [esp + 0x20]
push esi
push edi
push 0x7d00
mov edi, ecx
call sub.MFC71.DLL_operator_new
mov ecx, dword [esp + 0x30]
mov ecx, dword [ecx]
add esp, 4
mov ebx, eax
mov eax, dword [ebp + 4]
push eax
push 0x7d00
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionA]
cmp byte [ebx], 0
mov esi, ebx
jne 0x4de2b0
push ebx
call sub.MFC71.DLL_operator_delete
mov eax, dword [ebp]
add esp, 4
test eax, eax
je 0x4de28d
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp], 0
push 0x5a6944
lea edx, [esp + 0x14]
push edx
mov dword [esp + 0x18], vtable.CFormatException.0
mov dword [esp + 0x1c], 0
call sub.MSVCR71.dll__CxxThrowException
lea esp, [esp]
push 0x3d
push esi
call dword [sym.imp.MSVCR71.dll__mbschr]
mov ebp, eax
add esp, 8
test ebp, ebp
je 0x4de31f
sub eax, esi
push eax
push esi
lea ecx, [esp + 0x34]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_6]
lea ecx, [ebp + 1]
push ecx
lea ecx, [esp + 0x2c]
mov dword [esp + 0x24], 0
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_8]
lea edx, [esp + 0x28]
push edx
lea ecx, [esp + 0x30]
mov byte [esp + 0x24], 1
call fcn.0045c7c0
mov ecx, eax
call dword [sym.imp.MFC71.DLL_ATL::CStringT::operator_5]
lea ecx, [esp + 0x28]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_1]
lea ecx, [esp + 0x2c]
mov dword [esp + 0x20], 0xffffffff
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_1]
jmp 0x4de321
mov ebp, esi
mov eax, ebp
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4de326
sub eax, edx
lea esi, [eax + ebp + 1]
cmp byte [esi], 0
jne 0x4de2b0
push ebx
call sub.MFC71.DLL_operator_delete
mov ecx, dword [esp + 0x1c]
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x14
ret 8
Function at 0x4de420
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x568bb8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x24
mov eax, dword [0x68c9b4]
mov eax, dword [eax + 0x24]
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x10], esp
push ecx
mov edi, edx
call fcn.0045ee50
xor ebx, ebx
cmp eax, ebx
mov dword [esi], eax
jne 0x4de474
push 0x5a697c
lea edx, [ebp - 0x20]
push edx
mov dword [ebp - 0x20], vtable.CStreamException.0
mov dword [ebp - 0x1c], ebx
call sub.MSVCR71.dll__CxxThrowException
mov dword [esi + 4], edi
lea ecx, [ebp - 0x14]
push ecx
push ebx
lea edx, [ebp - 0x18]
push edx
push ebx
push edi
mov dword [ebp - 4], ebx
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push eax
call edi
test eax, eax
je 0x4de4aa
push 0x5a697c
lea eax, [ebp - 0x28]
push eax
mov dword [ebp - 0x28], vtable.CStreamException.0
mov dword [ebp - 0x24], ebx
call sub.MSVCR71.dll__CxxThrowException
mov ecx, dword [ebp - 0x14]
push ecx
call sub.MFC71.DLL_operator_new
mov ecx, dword [esi + 4]
add esp, 4
lea edx, [ebp - 0x14]
push edx
mov edx, dword [esi]
push eax
mov dword [esi + 8], eax
lea eax, [ebp - 0x18]
push eax
push ebx
push ecx
push edx
call edi
test eax, eax
je 0x4de4f7
mov eax, dword [esi + 8]
push eax
call sub.MFC71.DLL_operator_delete
add esp, 4
push 0x5a697c
lea ecx, [ebp - 0x30]
push ecx
mov dword [esi + 8], ebx
mov dword [ebp - 0x30], vtable.CStreamException.0
mov dword [ebp - 0x2c], ebx
call sub.MSVCR71.dll__CxxThrowException
mov byte [ebp - 4], 1
call fcn.004de3a0
jmp 0x4de50b
mov edx, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
pop edi
mov dword [esi + 0xc], edx
mov eax, esi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4de640
Capabilities:
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x568b7f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push esi
mov esi, dword [esp + 0x24]
push edi
mov dword [esi], vtable.CRegistryOutputStream.0
mov dword [esp + 0x20], 1
mov eax, dword [esi + 0x20]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor ebx, ebx
cmp eax, ebx
je 0x4de6e8
cmp dword [esi + 0x1c], 0x10
mov edx, dword [esi + 0x18]
jb 0x4de68a
mov ecx, dword [esi + 8]
jmp 0x4de68d
lea ecx, [esi + 8]
push edx
push ecx
mov ecx, dword [esi + 0x24]
push 3
push ebx
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x4de6bc
push 0x5a697c
lea edx, [esp + 0x14]
push edx
mov dword [esp + 0x18], vtable.CStreamException.0
mov dword [esp + 0x1c], ebx
call sub.MSVCR71.dll__CxxThrowException
mov eax, dword [esi + 0x20]
cmp eax, ebx
je 0x4de6e8
push eax
call edi
test eax, eax
mov dword [esi + 0x20], ebx
je 0x4de6e8
push 0x5a697c
lea eax, [esp + 0x14]
push eax
mov dword [esp + 0x18], vtable.CStreamException.0
mov dword [esp + 0x1c], ebx
call sub.MSVCR71.dll__CxxThrowException
mov byte [esp + 0x20], bl
mov eax, dword [esi + 0x20]
cmp eax, ebx
je 0x4de718
push eax
call edi
test eax, eax
mov dword [esi + 0x20], ebx
je 0x4de718
push 0x5a697c
lea ecx, [esp + 0x14]
push ecx
mov dword [esp + 0x18], vtable.CStreamException.0
mov dword [esp + 0x1c], ebx
call sub.MSVCR71.dll__CxxThrowException
lea ecx, [esi + 4]
mov dword [esp + 0x20], 0xffffffff
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 + 0x18]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x18
ret 4
Function at 0x4e4780
Capabilities:
Get geographical location
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x55faa8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
mov eax, dword [0x5c58d0]
push ebx
push ebp
push esi
mov esi, dword [esp + 0x28]
push edi
mov ecx, esi
mov dword [esp + 0x18], eax
call sub.MFC71.DLL_CWnd::CWnd
lea edi, [esi + 0x60]
mov ecx, edi
mov dword [esi], vtable.CTypeEdit.0
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_9]
lea ebp, [esi + 0x64]
mov ecx, ebp
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_9]
xor ebx, ebx
mov dword [esi + 0x6c], ebx
mov byte [esi + 0x68], bl
mov byte [esi + 0x70], bl
push 5
lea eax, [esp + 0x14]
push eax
push 0xe
mov dword [esp + 0x30], ebx
push 0x400
mov dword [esi], vtable.CFloatEdit.0
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
je 0x4e4805
mov cl, byte [esp + 0x10]
mov byte [esi + 0x90], cl
jmp 0x4e480c
mov byte [esi + 0x90], 0x2e
push str._0.02f
mov ecx, ebp
call dword [sym.imp.MFC71.DLL_ATL::CStringT::operator_6]
push 0x583eb0
mov ecx, edi
call dword [sym.imp.MFC71.DLL_ATL::CStringT::operator_6]
xor edx, edx
mov dl, byte [esi + 0x90]
mov ecx, edi
push edx
call dword [sym.imp.MFC71.DLL_ATL::CStringT::operator_3]
push 0x58dd14
mov ecx, edi
call dword [0x5746d4]
fld qword [0x594df0]
mov ecx, dword [esp + 0x1c]
fstp qword [esi + 0x78]
fld qword [0x594de8]
pop edi
fstp qword [esi + 0x80]
mov byte [esi + 0x91], bl
fld qword [0x594cd8]
mov eax, esi
fstp qword [esi + 0x88]
pop esi
pop ebp
mov dword fs:[0], ecx
mov ecx, dword [esp + 0xc]
pop ebx
call fcn.0054939e
add esp, 0x18
ret 4
Function at 0x4e82eb
Capabilities:
Access peb ldr_data

Disassembly:
sub ecx, dword [ecx - 4]
jmp 0x4e82d0
push 0xffffffffffffffff
push 0x568ae8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
xor eax, eax
push ebx
push esi
mov esi, ecx
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x24], 1
mov edx, 5
lea ecx, [esp + 0xc]
mov dword [esp + 8], vtable.CPropertyList.0
call fcn.00407d10
mov eax, dword [esp + 0x30]
push 1
lea ebx, [esp + 0xc]
mov dword [esp + 0x28], 2
call fcn.004475a0
mov eax, dword [esi - 0x10c]
mov ecx, dword [eax + 0x10]
mov edx, dword [ecx + esi - 0x10c]
lea eax, [esp + 8]
push eax
mov eax, dword [esp + 0x30]
lea ecx, [ecx + esi - 0x10c]
push eax
call dword [edx + 0x34]
mov ecx, ebx
mov esi, eax
mov dword [esp + 0x24], 0xffffffff
call fcn.00447010
mov ecx, dword [esp + 0x1c]
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret 8
Function at 0x4e8620
Capabilities:
Access peb ldr_data
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x565a3b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xd0
push ebx
push esi
push edi
mov edi, ecx
mov eax, dword [edi]
lea ecx, [esp + 0x20]
push ecx
xor esi, esi
mov ecx, edi
mov dword [esp + 0x48], esi
call dword [eax + 4]
mov edx, dword [ebp + 8]
mov ecx, dword [edx]
mov dword [esp + 0x10], ecx
mov ecx, dword [edx + 4]
mov dword [esp + 0x14], ecx
fld qword [esp + 0x10]
mov ecx, dword [edx + 8]
fsub qword [eax]
mov edx, dword [edx + 0xc]
mov dword [esp + 0x1c], edx
mov dword [esp + 0x18], ecx
fld qword [esp + 0x18]
fsub qword [eax + 8]
lea edx, [esp + 0x48]
fxch st(1)
mov dword [esp + 0x48], 0x582aec
fstp qword [esp + 0x20]
mov dword [esp + 0x84], vtable.CMatrix_double_.0
mov dword [esp + 0x80], esi
fstp qword [esp + 0x28]
call fcn.00438c70
lea edx, [esp + 0x48]
mov dword [esp + 0xe4], esi
call fcn.00438c70
fld qword [esp + 0x20]
fstp qword [esp + 0x60]
lea esi, [edi + 8]
fld qword [esp + 0x28]
mov eax, esi
lea ebx, [esp + 0x98]
fstp qword [esp + 0x78]
lea ecx, [esp + 0x48]
call fcn.00438e40
fld qword [eax + 8]
fstp qword [esi + 8]
fld qword [eax + 0x10]
fstp qword [esi + 0x10]
fld qword [eax + 0x18]
fstp qword [esi + 0x18]
fld qword [eax + 0x20]
fstp qword [esi + 0x20]
fld qword [eax + 0x28]
fstp qword [esi + 0x28]
fld qword [eax + 0x30]
fstp qword [esi + 0x30]
mov eax, dword [edi + 0xb0]
mov ebx, dword [eax]
cmp ebx, eax
je 0x4e87bc
lea esp, [esp]
mov eax, dword [ebx + 8]
push 0
push 0x5c84a0
push 0x5c61a4
push 0
push eax
call sub.MSVCR71.dll___RTDynamicCast
mov esi, eax
add esp, 0x14
test esi, esi
je 0x4e87ae
mov edx, dword [esi]
lea eax, [esp + 0x88]
push eax
mov ecx, esi
call dword [edx + 4]
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov dword [esp + 0x10], ecx
mov ecx, dword [eax + 8]
mov dword [esp + 0x14], edx
fld qword [esp + 0x10]
mov edx, dword [eax + 0xc]
fadd qword [esp + 0x20]
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], edx
fstp qword [esp + 0x10]
mov eax, dword [esp + 0x10]
fld qword [esp + 0x18]
mov ecx, dword [esp + 0x14]
fadd qword [esp + 0x28]
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], ecx
mov ecx, esi
fstp qword [esp + 0x18]
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
mov dword [esp + 0x3c], eax
lea eax, [esp + 0x30]
mov dword [esp + 0x38], edx
mov edx, dword [esi]
push eax
call dword [edx + 8]
mov ebx, dword [ebx]
cmp ebx, dword [edi + 0xb0]
jne 0x4e8720
mov ecx, dword [esp + 0xdc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x502110
Capabilities:
Access peb ldr_data
Check for peb beingdebugged flag

Disassembly:
push 0xffffffffffffffff
push 0x56a579
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
mov eax, dword [0x5c58d0]
push ebx
push esi
mov esi, ecx
lea ecx, [esp + 8]
mov dword [esp + 0x24], eax
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 dword [esp + 0x30], 0
mov eax, dword [esi]
mov eax, dword [eax - 0xc]
lea ecx, [eax + eax + 2]
push ecx
lea ecx, [esp + 0xc]
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__::resize_unsigned_int_]
mov eax, dword [esi]
mov edx, dword [esp + 0x20]
mov ecx, dword [eax - 0xc]
mov esi, 8
cmp edx, esi
mov edx, dword [esp + 0xc]
jae 0x502175
lea edx, [esp + 0xc]
inc ecx
push ecx
push edx
push 0xffffffffffffffff
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp dword [esp + 0x20], esi
mov eax, dword [esp + 0xc]
jae 0x502193
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.MSVCR71.dll_wcslen]
add esp, 4
push eax
lea ecx, [esp + 0xc]
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__::resize_unsigned_int_]
mov edx, dword [esp + 0x44]
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x3c]
push edx
push eax
push ecx
mov ecx, dword [esp + 0x44]
lea edx, [esp + 0x14]
push edx
call fcn.00502200
lea ecx, [esp + 8]
mov bl, al
mov dword [esp + 0x30], 0xffffffff
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__::destructor_void_]
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x24]
mov al, bl
call fcn.0054939e
pop esi
pop ebx
add esp, 0x2c
ret 0x10
Function at 0x505cd0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x55f238
push eax
mov eax, dword [esp + 0x10]
mov dword fs:[0], esp
fld qword [0x594cf0]
xor ecx, ecx
mov dword [eax], vtable.TextRenderer::CTemplate.0
mov dword [eax + 8], ecx
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], ecx
fstp qword [eax + 0x18]
mov dword [eax + 0x24], ecx
mov dword [eax + 0x20], ecx
mov dword [eax + 0x30], ecx
mov ecx, dword [esp]
mov dword fs:[0], ecx
add esp, 0xc
ret 4
Function at 0x50de70
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x55d40b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
mov eax, dword [esp + 0x20]
cdq
mov ecx, 0x3c
idiv ecx
push ebx
push ebp
push esi
mov esi, edx
mov ebx, eax
cdq
idiv ecx
lea ecx, [esp + 0x18]
mov ebp, edx
mov dword [esp + 0x14], eax
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_9]
lea ecx, [esp + 0x10]
mov dword [esp + 0x24], 0
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_9]
lea ecx, [esp + 0xc]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_9]
mov eax, dword [esp + 0x30]
cmp eax, 8
mov byte [esp + 0x24], 2
ja case.default.0x50dedc
jmp dword [eax*4 + 0x50e050]
push 0x52f6
lea ecx, [esp + 0x1c]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::LoadStringA_1]
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x2c]
push edx
push eax
push str._d__s
push edi
call dword [sym.imp.MFC71.DLL_ATL::CStringT::Format_1]
add esp, 0x10
jmp 0x50e009
push esi
push ebx
push str._d:_02d
push edi
call dword [sym.imp.MFC71.DLL_ATL::CStringT::Format_1]
add esp, 0x10
jmp 0x50e009
push esi
push ebx
push str._02d:_02d
push edi
call dword [sym.imp.MFC71.DLL_ATL::CStringT::Format_1]
add esp, 0x10
jmp 0x50e009
push 0x52f7
lea ecx, [esp + 0x14]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::LoadStringA_1]
mov ecx, dword [esp + 0x10]
push ecx
push esi
push ebx
push str._d:_02d__s
push edi
call dword [sym.imp.MFC71.DLL_ATL::CStringT::Format_1]
add esp, 0x14
jmp 0x50e009
push 0x52f7
lea ecx, [esp + 0x14]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::LoadStringA_1]
mov edx, dword [esp + 0x10]
push edx
push esi
push ebx
push str._02d:_02d__s
push edi
call dword [sym.imp.MFC71.DLL_ATL::CStringT::Format_1]
add esp, 0x14
jmp 0x50e009
mov eax, dword [esp + 0x14]
push esi
push ebp
push eax
push str._d:_02d:_02d
push edi
call dword [sym.imp.MFC71.DLL_ATL::CStringT::Format_1]
add esp, 0x14
jmp 0x50e009
mov ecx, dword [esp + 0x14]
push esi
push ebp
push ecx
push str._02d:_02d:_02d
push edi
call dword [sym.imp.MFC71.DLL_ATL::CStringT::Format_1]
add esp, 0x14
jmp 0x50e009
push 0x52f8
lea ecx, [esp + 0x10]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::LoadStringA_1]
mov edx, dword [esp + 0xc]
mov eax, dword [esp + 0x14]
push edx
push esi
push ebp
push eax
push str._d:_02d:_02d__s
jmp 0x50dfff
push 0x52f8
lea ecx, [esp + 0x10]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::LoadStringA_1]
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x14]
push ecx
push esi
push ebp
push edx
push str._02d:_02d:_02d__s
push edi
call dword [sym.imp.MFC71.DLL_ATL::CStringT::Format_1]
add esp, 0x18
mov eax, dword [esp + 0x30]
mov ecx, dword [eax*4 + 0x57d238]
push ecx
mov ecx, dword [esp + 0x38]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::LoadStringA_1]
lea ecx, [esp + 0xc]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_1]
lea ecx, [esp + 0x10]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_1]
lea ecx, [esp + 0x18]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_1]
mov ecx, dword [esp + 0x1c]
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x1c
ret
Function at 0x51b89f
Capabilities:
Get common file path

Disassembly:
mov eax, 0x5599c5
call fcn.005493c0
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], method.CLSXHTMLStatic.virtual_0
mov dword [ebp - 4], edi
mov dword [esi + 0x70], edi
mov dword [esi + 0x6c], vtable.CFont.0
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 sub.MFC71.DLL_CStringArray::CStringArray
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_9]
push 0x410
push 0x411
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 4
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::GetBuffer_2]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push 0xffffffffffffffff
lea ecx, [ebp - 0x10]
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::ReleaseBuffer_1]
push str.winhlp32.exe
lea ecx, [ebp - 0x10]
call dword [0x5746d4]
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ebx, eax
cmp ebx, edi
je 0x51b9a9
push 0x6a
push ebx
call dword [sym.imp.USER32.dll_LoadCursorA]
cmp eax, edi
je 0x51b9a9
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_1]
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x520144
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push 2
push dword [ebp + 0xc]
mov dword [ebp - 4], ecx
push dword [ebp + 8]
xor esi, esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x5201c7
push edi
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push 0
mov esi, eax
call dword [sym.imp.USER32.dll_GetDC]
mov ecx, dword [ebp - 4]
mov edi, eax
lea eax, [ebp + 8]
push eax
push esi
call fcn.005200a4
test eax, eax
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
je 0x5201a5
push 0
push eax
push edi
call dword [sym.imp.GDI32.dll_SelectPalette]
push edi
call dword [sym.imp.GDI32.dll_RealizePalette]
mov eax, dword [ebp + 8]
push 0
push esi
lea eax, [esi + eax*4]
add eax, dword [esi]
push eax
push 4
push esi
push edi
call dword [sym.imp.GDI32.dll_CreateDIBitmap]
push edi
push 0
mov esi, eax
call dword [sym.imp.USER32.dll_ReleaseDC]
pop edi
mov eax, esi
pop esi
leave
ret 0xc