joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5217f7
Capabilities:
Get file version info

Disassembly:
mov eax, 0x55aa53
call fcn.005493c0
sub esp, 0x43c
mov eax, dword [0x5c58d0]
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x438], ebx
xor eax, eax
mov byte [ebp - 0x424], bl
mov ecx, 0x104
lea edi, [ebp - 0x423]
rep stosd dword es:[edi], eax
push 0x410
lea eax, [ebp - 0x424]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 0x434]
push eax
lea eax, [ebp - 0x424]
push eax
mov dword [ebp - 0x434], ebx
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov esi, eax
cmp esi, ebx
jne 0x52188d
lea eax, [ebp - 0x434]
push eax
lea eax, [ebp - 0x424]
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov esi, eax
cmp esi, ebx
jne 0x52188d
mov ecx, dword [ebp + 8]
push 0x57e144
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_8]
jmp 0x521965
lea eax, [ebp - 0x425]
push eax
push esi
lea ecx, [ebp - 0x448]
mov byte [ebp - 0x425], bl
call fcn.005217b8
push dword [ebp - 0x444]
lea eax, [ebp - 0x424]
push esi
push ebx
push eax
mov dword [ebp - 4], ebx
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x5218ef
lea eax, [ebp - 0x438]
push eax
lea eax, [ebp - 0x430]
push eax
push 0x57e6f4
push dword [ebp - 0x444]
mov dword [ebp - 0x438], ebx
mov dword [ebp - 0x430], ebx
call sub.VERSION.dll_VerQueryValueA
test eax, eax
jne 0x5218ff
mov ecx, dword [ebp + 8]
push 0x57e144
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_8]
jmp 0x52195a
lea ecx, [ebp - 0x42c]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_9]
mov eax, dword [ebp - 0x430]
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 eax, [ebp - 0x42c]
push str._d._d._d._d
push eax
mov byte [ebp - 4], 1
call dword [sym.imp.MFC71.DLL_ATL::CStringT::Format_1]
mov ecx, dword [ebp + 8]
add esp, 0x18
lea eax, [ebp - 0x42c]
push eax
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_10]
lea ecx, [ebp - 0x42c]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_1]
lea ecx, [ebp - 0x448]
call fcn.00521774
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.0054939e
leave
ret 4

Function at 0x521fbe
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 0x523855
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x390]
sub esp, 0x410
mov eax, dword [0x5c58d0]
mov dword [ebp + 0x38c], eax
call fcn.0052369b
test eax, eax
je 0x523991
mov eax, dword [0x5c537c]
push ebx
xor ebx, ebx
inc ebx
cmp eax, ebx
je 0x523981
push edi
xor edi, edi
cmp eax, edi
je 0x523977
push esi
lea eax, [ebp - 0x78]
push eax
push 0x20019
push edi
push str.SoftwareNeroShared32
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [0x5c537c], edi
mov dword [ebp - 0x78], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
mov esi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
jne 0x523902
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x80]
push eax
push edi
push 0x5766a4
push dword [ebp - 0x78]
mov dword [ebp - 0x80], ebx
mov dword [ebp - 0x7c], 0x400
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x5238f9
lea eax, [ebp - 0x74]
push eax
call esi
mov dword [0x5cc480], eax
push dword [ebp - 0x78]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [0x5cc480]
cmp eax, edi
jne 0x523923
cmp dword [ebp + 0x398], ebx
jne 0x523962
push str.LLS.DLL
call esi
cmp eax, edi
mov dword [0x5cc480], eax
je 0x523962
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.GetLLSInterface
push eax
mov dword [0x5c537c], ebx
call esi
cmp eax, edi
mov dword [0x5cc484], eax
jne 0x523946
mov dword [0x5c537c], edi
push str.DeleteLLSInterface
push dword [0x5cc480]
call esi
cmp eax, edi
mov dword [0x5cc488], eax
jne 0x523962
mov dword [0x5c537c], edi
cmp dword [0x5c537c], edi
pop esi
jne 0x523977
push dword [0x5cc480]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [0x5c537c]
cmp eax, ebx
pop edi
jne 0x523987
inc dword [0x5cc48c]
xor ecx, ecx
cmp eax, ebx
sete cl
pop ebx
mov eax, ecx
mov ecx, dword [ebp + 0x38c]
call fcn.0054939e
add ebp, 0x390
leave
ret
Function at 0x5244eb
Capabilities:
Delete registry key

Disassembly:
mov eax, 0x55accb
call fcn.005493c0
sub esp, 0x58
push ebx
mov ebx, ecx
push edi
mov dword [ebp - 0x1c], ebx
mov eax, dword [ebp + 8]
xor edi, edi
cmp eax, edi
mov dword [ebp - 4], 1
mov dword [ebx], 0x576934
mov dword [ebx + 4], eax
je 0x52465c
push esi
mov esi, 0x57e144
push esi
lea ecx, [ebp + 0xc]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::Compare]
test eax, eax
jne 0x524542
push esi
lea ecx, [ebp + 0x10]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::Compare]
test eax, eax
je 0x52465b
push 0x5c
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.00407b80
lea ecx, [ebp + 0x10]
push ecx
push eax
lea eax, [ebp - 0x10]
push eax
mov byte [ebp - 4], 2
call fcn.004079b0
add esp, 0x18
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 4
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_1]
push dword [ebp + 0x10]
lea eax, [ebp - 0x18]
push dword [ebp + 0xc]
push eax
call fcn.00524264
add esp, 0xc
mov esi, dword [eax]
mov byte [ebp - 4], 5
call sub.MFC71.DLL_AfxGetModuleState
mov eax, dword [eax + 4]
push edi
push str.Bars
push esi
mov ecx, eax
call sub.MFC71.DLL_CWinApp::GetProfileIntA
lea ecx, [ebp - 0x18]
mov dword [ebp + 8], eax
mov byte [ebp - 4], 4
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_1]
lea ecx, [ebp - 0x64]
call sub.MFC71.DLL_CDockState::CDockState
push dword [ebp - 0x10]
lea ecx, [ebp - 0x64]
mov byte [ebp - 4], 6
call sub.MFC71.DLL_CDockState::LoadState
lea eax, [ebp - 0x64]
push eax
mov ecx, ebx
call fcn.00524350
cmp eax, edi
jne 0x524646
call sub.MFC71.DLL_AfxGetModuleState
mov ecx, dword [eax + 4]
call sub.MFC71.DLL_CWinApp::GetAppRegistryKey
mov ebx, eax
cmp ebx, edi
je 0x52463c
push dword [ebp + 0x10]
lea eax, [ebp - 0x18]
push dword [ebp + 0xc]
push eax
call fcn.00524264
mov esi, dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
add esp, 0xc
push dword [eax]
push ebx
call esi
lea ecx, [ebp - 0x18]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_1]
cmp dword [ebp + 8], edi
jle 0x52463c
push edi
push dword [ebp + 0x10]
lea eax, [ebp - 0x18]
push dword [ebp + 0xc]
push eax
call fcn.005242d5
add esp, 0x10
push dword [eax]
push ebx
call esi
lea ecx, [ebp - 0x18]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_1]
inc edi
cmp edi, dword [ebp + 8]
jl 0x524615
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ebx, dword [ebp - 0x1c]
lea ecx, [ebp - 0x64]
mov byte [ebp - 4], 4
call fcn.0054824a
lea ecx, [ebp - 0x10]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_1]
pop esi
lea ecx, [ebp + 0xc]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_1]
lea ecx, [ebp + 0x10]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_1]
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, ebx
pop ebx
mov dword fs:[0], ecx
leave
ret 0xc
Function at 0x52486c
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x98
mov eax, dword [0x5c58d0]
mov dword [ebp - 4], eax
lea eax, [ebp - 0x98]
push eax
mov dword [ebp - 0x98], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x88], 1
mov ecx, dword [ebp - 0x90]
jne 0x5248b9
test ecx, ecx
je 0x5248ca
cmp ecx, 0xa
je 0x5248b5
cmp ecx, 0x5a
jne 0x5248b9
push 3
jmp 0x5248ed
push 2
jmp 0x5248ed
mov eax, dword [ebp - 0x94]
sub eax, 4
je 0x5248eb
dec eax
je 0x5248d3
dec eax
je 0x5248cf
xor eax, eax
inc eax
jmp 0x5248ee
push 8
jmp 0x5248ed
mov eax, ecx
sub eax, 0
je 0x5248e7
dec eax
je 0x5248e3
dec eax
push 7
dec eax
jmp 0x5248ed
push 6
jmp 0x5248ed
push 5
jmp 0x5248ed
push 4
pop eax
mov ecx, dword [ebp - 4]
call fcn.0054939e
leave
ret

Function at 0x5249e6
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push edi
mov edi, dword [esp + 8]
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x5249fc
xor eax, eax
inc eax
pop edi
ret
push esi
mov esi, dword [sym.imp.MSVCR71.dll__mbsnicmp]
push 7
push str.http:__
push edi
call esi
add esp, 0xc
test eax, eax
jne 0x524a19
xor eax, eax
inc eax
jmp 0x524a3c
push 6
push str.ftp:__
push edi
call esi
add esp, 0xc
test eax, eax
je 0x524a14
push 5
push str.mail:
push edi
call esi
add esp, 0xc
neg eax
sbb eax, eax
inc eax
pop esi
pop edi
ret
Function at 0x52531d
Capabilities:
Create process on windows

Disassembly:
mov eax, 0x55adcc
call fcn.005493c0
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_8]
and dword [ebp - 4], 0
push str.mailto:
lea ecx, [ebp - 0x14]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_8]
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 0x52539b
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 0x52539b
mov bl, 1
jmp 0x52539d
xor bl, bl
test byte [ebp - 0x18], 1
je 0x5253ac
lea ecx, [ebp - 0x1c]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_1]
test bl, bl
je 0x5253db
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.004079b0
add esp, 0xc
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 2
call dword [sym.imp.MFC71.DLL_ATL::CStringT::operator_5]
lea ecx, [ebp - 0x1c]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_1]
push 5
push 0x57e144
push 0
push dword [ebp - 0x10]
push str.open
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_1]
lea ecx, [ebp - 0x10]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_1]
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x525ba2
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 0x525c1a
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.0042ac60
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.0042acd0
pop esi
mov eax, edi
pop edi
pop ebx
leave
ret
Function at 0x525c20
Capabilities:
Create process on windows

Disassembly:
push ebp
lea ebp, [esp - 0x420]
sub esp, 0x4a0
mov eax, dword [0x5c58d0]
push esi
xor esi, esi
cmp dword [ebp + 0x428], esi
mov dword [ebp + 0x41c], eax
mov dword [ebp + 4], esi
je 0x525d6d
cmp dword [ebp + 0x430], esi
je 0x525c67
push dword [ebp + 0x428]
call fcn.0052531d
pop ecx
mov dword [ebp + 4], eax
jmp 0x525d6d
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, SysReAllocString
push edi
call fcn.00525ba2
add esp, 0x10
test eax, eax
jne 0x525d4e
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
push 0x576f0c
lea eax, [ebp + 8]
push eax
call esi
push ebx
lea eax, [ebp + 8]
push eax
push eax
push edi
call fcn.00525ba2
add esp, 0x10
test eax, eax
jne 0x525d6b
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 0x525d02
lea eax, [ebp + 8]
push 0x58d298
push eax
call ebx
mov edi, eax
test edi, edi
pop ecx
pop ecx
jne 0x525d02
lea eax, [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea edi, [ebp + eax + 7]
jmp 0x525d05
mov byte [edi], 0
push 0x58142c
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.005252d0
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 0x525d6b
push dword [ebp - 0x80]
call dword [sym.imp.MSVCR71.dll_free]
pop ecx
jmp 0x525d6b
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.0054939e
add ebp, 0x420
leave
ret
Function at 0x5275e1
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, 0x55b0da
call fcn.005493c0
sub esp, 0x2c
mov eax, dword [0x5c58d0]
and dword [ebp - 0x30], 0
push ebx
push esi
push edi
mov esi, ecx
push 0x57e144
lea ecx, [ebp - 0x34]
mov dword [ebp - 0x10], eax
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_8]
movzx edi, word [0x5cc4d4]
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.00531c8b
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.00527560
cmp dword [eax + 0x18], 0x10
jb 0x527685
mov eax, dword [eax + 4]
jmp 0x527688
add eax, 4
push eax
lea ecx, [ebp - 0x2c]
call dword [0x575208]
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_1]
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.0054939e
leave
ret 8
Function at 0x52a41d
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 0x52a44d
xor al, al
jmp 0x52a4ce
push edi
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
jne 0x52a460
xor al, al
jmp 0x52a4cd
mov esi, dword [ebp + 0x10]
mov eax, dword [esi]
test eax, eax
je 0x52a473
push eax
call sub.MFC71.DLL_operator_delete_1
and dword [esi], 0
pop ecx
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
mov dword [ebp + 8], eax
je 0x52a4ca
cmp dword [esi], 0
mov edi, dword [ebp + 0x14]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_SizeofResource]
jne 0x52a49a
push dword [ebp + 0xc]
push dword [ebp - 8]
call ebx
mov dword [edi], eax
mov eax, dword [edi]
test eax, eax
je 0x52a4c9
push eax
call sub.MFC71.DLL_operator_new
pop ecx
push dword [ebp + 0xc]
mov dword [esi], eax
push dword [ebp - 8]
mov edi, dword [edi]
call ebx
cmp edi, eax
jl 0x52a4c9
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 0x530460
Capabilities:
Hash data with md5

Disassembly:
mov eax, dword [esp + 4]
and dword [eax + 0x10], 0
and dword [eax + 0x14], 0
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
ret
Function at 0x535a67
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, 0x55bf41
call fcn.005493c0
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 0x538f30
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, 0x55c244
call fcn.005493c0
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 0x539764
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push dword [ecx + 8]
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x53977c
mov ecx, dword [esp + 8]
mov dword [ecx], eax
inc esi
mov eax, esi
pop esi
ret 4
Function at 0x53ad4f
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x39c]
sub esp, 0x41c
mov eax, dword [0x5c58d0]
and dword [ebp - 0x7c], 0
mov dword [ebp + 0x398], eax
push esi
lea eax, [ebp - 0x7c]
push eax
xor esi, esi
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
lea eax, [ebp - 0x80]
push eax
push dword [ebp + 0x3a4]
push esi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jne 0x53adaf
lea eax, [ebp - 0x78]
push eax
push dword [ebp - 0x80]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
test eax, eax
je 0x53adaf
mov ecx, dword [ebp + 0x3a8]
lea eax, [ebp - 0x78]
push eax
call fcn.0053a371
inc esi
cmp dword [ebp - 0x80], 0
je 0x53adc1
mov eax, dword [ebp - 0x7c]
push dword [ebp - 0x80]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x14]
mov eax, dword [ebp - 0x7c]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov ecx, dword [ebp + 0x398]
mov eax, esi
pop esi
call fcn.0054939e
add ebp, 0x39c
leave
ret

Function at 0x53ade0
Capabilities:
Get common file path

Disassembly:
push ebx
push esi
push edi
mov esi, 0x410
push esi
xor ebx, ebx
call sub.MFC71.DLL_operator_new
mov edi, eax
test edi, edi
pop ecx
jne 0x53ae00
push esi
call sub.MFC71.DLL_operator_new
pop ecx
mov edi, eax
push edi
lea eax, [esi - 1]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
mov byte [edi + esi - 1], 0
je 0x53ae30
cmp eax, esi
push edi
jle 0x53ae24
add esi, esi
call sub.MFC71.DLL_operator_delete
xor edi, edi
jmp 0x53adf2
mov ecx, dword [esp + 0x14]
xor ebx, ebx
inc ebx
call fcn.0053a371
test edi, edi
je 0x53ae3b
push edi
call sub.MFC71.DLL_operator_delete
pop ecx
pop edi
pop esi
mov eax, ebx
pop ebx
ret

Function at 0x53c645
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
xor eax, eax
mov esi, ecx
cmp dword [esi + 0xc], 0xffffffff
push edi
sete al
test eax, eax
mov dword [ebp - 4], eax
je 0x53c67a
mov eax, dword [esi]
mov edi, dword [esi + 4]
push 1
call dword [eax + 0x34]
test eax, eax
mov dword [esi + 4], edi
je 0x53c67a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 8], eax
jmp 0x53c6f0
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
lea eax, [ebp - 8]
push eax
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
call edi
test eax, eax
jne 0x53c6be
push 1
xor edi, edi
push edi
push edi
push dword [ebp - 8]
call fcn.005495f0
mov ecx, eax
xor eax, eax
add ecx, ebx
adc edx, eax
mov eax, dword [ebp + 8]
mov dword [eax], ecx
mov dword [eax + 4], edx
jmp 0x53c6e0
call edi
mov ecx, dword [esi + 0x14]
test ecx, ecx
mov dword [esi + 8], eax
je 0x53c6dd
push dword [esi + 0x10]
mov edx, dword [ecx]
push eax
push 0x80
push str..CPortableWinPFile.cpp
call dword [edx + 4]
mov edi, dword [esi + 8]
cmp dword [ebp - 4], 0
pop ebx
je 0x53c6ee
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x1c]
mov eax, edi
pop edi
pop esi
leave
ret 4