joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4d76a9
Capabilities:
Read .ini file

Disassembly:
mov eax, 0x4f72b8
call fcn.004e1580
sub esp, 0x14
push ebx
push esi
xor ebx, ebx
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
push ebx
mov esi, ecx
push ebx
push 0x14b
push dword [esi + 0x20]
call edi
lea ecx, [ebp - 0x1c]
call sub.MFC42.DLL_CString::CString_3
lea eax, [ebp - 0x1c]
mov ecx, esi
push eax
mov dword [ebp - 4], ebx
call sub.MFC42.DLL_CWnd::GetWindowTextA_1
push 0xffffffffffffffff
lea ecx, [esi + 0x58]
push ebx
call sub.MFC42.DLL_CStringArray::SetSize
lea ecx, [ebp - 0x18]
call sub.MFC42.DLL_CString::CString_3
mov eax, dword [esi + 0x44]
mov ecx, dword [esi + 0x4c]
mov dword [ebp - 0x14], ecx
mov ecx, dword [esi + 0x48]
push eax
mov eax, 0x2000
mov dword [ebp - 0x10], ecx
push eax
push eax
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 1
call sub.MFC42.DLL_CString::GetBuffer
push eax
push 0x52fdc0
push dword [ebp - 0x14]
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push 0xffffffffffffffff
lea ecx, [ebp - 0x18]
call sub.MFC42.DLL_CString::ReleaseBuffer
push dword [esi + 0x6c]
lea eax, [esi + 0x58]
mov ecx, esi
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.004d7930
push dword [esi + 0x40]
push ebx
push 0x143
push dword [esi + 0x20]
call edi
cmp dword [esi + 0x60], ebx
mov dword [ebp - 0x14], ebx
jle 0x4d77f7
mov eax, dword [esi + 0x5c]
mov ecx, dword [ebp - 0x14]
lea eax, [eax + ecx*4]
lea ecx, [ebp - 0x10]
push eax
call sub.MFC42.DLL_CString::CString_1
cmp dword [esi + 0x74], ebx
mov byte [ebp - 4], 2
jne 0x4d7792
push dword [ebp - 0x10]
push 0xffffffffffffffff
push 0x158
push dword [esi + 0x20]
call edi
cmp eax, 0xffffffff
jne 0x4d77dc
cmp dword [esi + 0x78], ebx
je 0x4d77d2
push dword [ebp - 0x10]
lea eax, [ebp - 0x20]
push eax
call fcn.004d3048
pop ecx
pop ecx
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 3
call sub.MFC42.DLL_CString::operator_1
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 2
call sub.MFC42.DLL_CString::CString
push dword [ebp - 0x10]
push 0xffffffffffffffff
push 0x158
push dword [esi + 0x20]
call edi
cmp eax, 0xffffffff
jne 0x4d77dc
push dword [ebp - 0x10]
mov ecx, esi
call fcn.004d7538
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 1
call sub.MFC42.DLL_CString::CString
inc dword [ebp - 0x14]
mov eax, dword [ebp - 0x14]
cmp eax, dword [esi + 0x60]
jl 0x4d7763
push ebx
push ebx
push 0x146
push dword [esi + 0x20]
call edi
cmp eax, 1
jle 0x4d7814
push ebx
push ebx
push 0x14e
push dword [esi + 0x20]
call edi
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], bl
call sub.MFC42.DLL_CString::CString
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call sub.MFC42.DLL_CString::CString
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x4d7db8
Capabilities:
Get file size

Disassembly:
mov eax, 0x4f7358
call fcn.004e1580
sub esp, 0x410
push ebx
push esi
push edi
lea eax, [ebp - 0x10]
push dword [ebp + 8]
push eax
call fcn.004d13d5
pop ecx
pop ecx
mov eax, dword [ebp - 0x10]
cmp byte [eax], 0x35
je 0x4d7de9
or edi, 0xffffffff
jmp 0x4d7fb7
xor edi, edi
push edi
push 0x80
push 3
push edi
push 2
push 0x10000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
or ebx, 0xffffffff
cmp esi, ebx
mov dword [ebp - 0x14], esi
jne 0x4d7e17
mov edi, ebx
jmp 0x4d7fb7
push edi
push edi
push edi
push 4
push edi
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
cmp eax, edi
mov dword [ebp + 8], eax
jne 0x4d7e32
mov edi, ebx
jmp 0x4d7fae
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push edi
push edi
push edi
push 2
push dword [ebp + 8]
mov dword [0x533ab4], eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov esi, eax
cmp esi, edi
jne 0x4d7e5a
mov edi, ebx
jmp 0x4d7fa5
push 0x400
lea eax, [ebp - 0x41c]
push edi
push eax
mov dword [0x533ac8], esi
call sub.MSVCRT.dll_memset
mov edx, dword [0x533ac8]
mov dword [0x533ab0], esi
mov eax, dword [esi + 0x3c]
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcmpiA]
add eax, edx
add esp, 0xc
mov dword [0x533ac4], eax
mov ecx, dword [eax + 0x80]
mov dword [0x533abc], ecx
mov eax, dword [eax + 0x84]
add ecx, edx
mov dword [0x533ab8], eax
mov dword [0x533abc], ecx
mov dword [0x533acc], ecx
je 0x4d7ee4
mov eax, dword [ecx + 0xc]
cmp eax, edi
je 0x4d7ee4
mov ecx, dword [0x533ac8]
push str.ntoskrnl.exe
add eax, ecx
push eax
call ebx
test eax, eax
je 0x4d7ee4
mov ecx, dword [0x533acc]
add ecx, 0x14
mov dword [0x533acc], ecx
jne 0x4d7eb8
mov eax, dword [0x533acc]
mov eax, dword [eax + 0x10]
add eax, dword [0x533ac8]
mov dword [0x533aac], eax
je 0x4d7f24
mov ecx, dword [eax]
cmp ecx, edi
je 0x4d7f24
mov eax, dword [0x533ac8]
push str.KeInitializeSpinLock
add eax, ecx
mov dword [0x533ac0], eax
add eax, 2
push eax
call ebx
test eax, eax
mov eax, dword [0x533aac]
je 0x4d7f24
add eax, 4
jmp 0x4d7ef2
push dword [0x52f604]
mov dword [0x533aa8], eax
push 0x50a200
push dword [0x533ab4]
push esi
call fcn.004d7d2a
push dword [0x52f608]
mov ebx, eax
sub eax, esi
push 0x50a20c
push eax
push ebx
call fcn.004d7d2a
add esp, 0x20
cmp ebx, edi
je 0x4d7f9b
cmp eax, edi
je 0x4d7f9b
mov ecx, dword [ebp + 0xc]
add eax, 8
cmp ecx, edi
jne 0x4d7f70
movzx edi, word [eax]
jmp 0x4d7f9e
mov byte [eax], cl
inc eax
shr ecx, 8
mov byte [eax], cl
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x1c]
push eax
push dword [0x533ab4]
push esi
call dword [sym.imp.IMAGEHLP.dll_CheckSumMappedFile]
mov ecx, dword [0x533ac4]
mov eax, dword [ebp - 0x18]
mov dword [ecx + 0x58], eax
jmp 0x4d7f9e
or edi, 0xffffffff
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call sub.MFC42.DLL_CString::CString
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x4d7fd4
Capabilities:
Get file size
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
or dword [ebp - 4], 0xffffffff
push esi
xor esi, esi
push edi
cmp dword [ebp + 8], esi
je 0x4d80ae
push esi
push 0x80
push 3
push esi
push 1
push 0xc0000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
mov dword [ebp - 0x10], edi
je 0x4d80ae
cmp edi, esi
je 0x4d80ae
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push esi
push esi
push esi
push 4
push esi
push edi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
cmp eax, esi
mov dword [ebp - 0xc], eax
je 0x4d80a4
cmp eax, 0xffffffff
je 0x4d80a4
push esi
push esi
push esi
push 6
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov edi, eax
cmp edi, esi
je 0x4d809b
mov eax, dword [ebp + 0xc]
cmp eax, esi
jne 0x4d8062
mov eax, dword [ebp + 0x10]
mov eax, dword [edi + eax]
mov dword [ebp - 4], eax
jmp 0x4d8094
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 4], eax
mov dword [edi + ecx], eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp + 8]
push eax
push ebx
push edi
call dword [sym.imp.IMAGEHLP.dll_CheckSumMappedFile]
push edi
call dword [sym.imp.IMAGEHLP.dll_ImageNtHeader]
cmp eax, esi
je 0x4d8094
mov ecx, dword [eax + 0x58]
cmp ecx, dword [ebp + 8]
jne 0x4d8094
mov ecx, dword [ebp - 8]
mov dword [eax + 0x58], ecx
push edi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
mov eax, dword [ebp - 4]
pop edi
pop esi
leave
ret

Function at 0x4d839b
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 0x10]
push eax
push str.SYSTEMCurrentControlSetServicesTcpipParameters
push reloc.BugReport.dll_Ordinal_2
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
je 0x4d83bd
xor eax, eax
leave
ret
push 4
and dword [ebp - 4], 0
pop eax
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0xc]
push eax
push 0
push str.TcpNumConnections
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov eax, dword [ebp - 4]
leave
ret

Function at 0x4d83eb
Capabilities:
Persist via windows service
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
push eax
push str.SYSTEMCurrentControlSetServicesTcpipParameters
push reloc.BugReport.dll_Ordinal_2
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
je 0x4d840b
xor eax, eax
leave
ret
lea eax, [ebp + 8]
push 4
push eax
push 4
push 0
push str.TcpNumConnections
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
neg eax
sbb eax, eax
inc eax
leave
ret
Function at 0x4d87a1
Capabilities:
Copy file
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30c
push esi
lea eax, [ebp - 0x30c]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x4d8865
mov esi, dword [sym.imp.MSVCRT.dll_sprintf]
push edi
lea eax, [ebp - 0x30c]
push str.drivers_tcpip.sys
push eax
mov edi, str._s_s
lea eax, [ebp - 0x208]
push edi
push eax
call esi
add esp, 0x10
lea eax, [ebp - 0x30c]
push str.drivers_tcpip.sys.td
push eax
lea eax, [ebp - 0x104]
push edi
push eax
call esi
add esp, 0x10
xor esi, esi
cmp dword [ebp + 8], esi
lea eax, [ebp - 0x104]
pop edi
push esi
push eax
je 0x4d882e
call fcn.004d1e1a
pop ecx
test eax, eax
pop ecx
je 0x4d8865
lea eax, [ebp - 0x208]
push esi
push eax
lea eax, [ebp - 0x104]
jmp 0x4d885a
call fcn.004d1e1a
pop ecx
test eax, eax
pop ecx
jne 0x4d8869
lea eax, [ebp - 0x208]
push esi
push eax
call fcn.004d1e1a
pop ecx
test eax, eax
pop ecx
je 0x4d8865
lea eax, [ebp - 0x104]
push esi
push eax
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
jne 0x4d8869
xor eax, eax
jmp 0x4d886c
push 1
pop eax
pop esi
leave
ret
Function at 0x4d8de0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x9c
push 0x9c
lea eax, [ebp - 0x9c]
push 0
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
lea eax, [ebp - 0x9c]
mov dword [ebp - 0x9c], 0x9c
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x98], 6
jne 0x4d8e2e
cmp word [ebp - 8], 0
jne 0x4d8e2e
push 1
pop eax
cmp byte [ebp - 2], al
je 0x4d8e30
xor eax, eax
leave
ret

Function at 0x4d9685
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ecx + 0xc]
push ebx
xor ebx, ebx
push esi
cmp eax, ebx
mov dword [ebp - 0xc], ecx
jne 0x4d969e
mov eax, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
push ebx
push 0x80
push 3
push ebx
push 1
push Ordinal_1
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
mov dword [ebp - 0x1c], esi
jne 0x4d96c6
xor al, al
jmp 0x4d97e9
push edi
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x10], eax
inc eax
push eax
call sub.MFC42.DLL_operatornew
pop ecx
mov edi, eax
lea eax, [ebp - 0x10]
push ebx
push eax
mov dword [ebp - 0x14], edi
push dword [ebp - 0x10]
push edi
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [ebp - 0x10]
cmp edi, ebx
mov esi, edi
mov dword [ebp - 4], edi
mov byte [edi + eax], bl
mov dword [ebp - 8], ebx
je 0x4d97d6
movsx eax, byte [esi]
sub eax, ebx
je 0x4d97cc
sub eax, 0xa
je 0x4d97c6
sub eax, 0x19
je 0x4d979a
sub eax, 0x18
je 0x4d979a
dec eax
dec eax
je 0x4d9771
sub eax, 0x1e
je 0x4d9732
inc esi
jmp 0x4d97ce
inc esi
push esi
mov edi, esi
call fcn.004d97ed
push 0x5d
push edi
mov esi, eax
call dword [sym.imp.MSVCRT.dll_strchr]
add esp, 0xc
cmp eax, ebx
je 0x4d9769
mov ecx, dword [ebp - 0xc]
push edi
mov byte [eax], bl
mov dword [ebp - 8], edi
call fcn.004d9a71
cmp eax, 0xffffffff
jne 0x4d9769
mov ecx, dword [ebp - 0xc]
push edi
call fcn.004d9b5a
mov edi, dword [ebp - 0x14]
mov dword [ebp - 4], esi
jmp 0x4d97ce
mov byte [esi], bl
inc esi
push esi
mov dword [ebp - 0x18], esi
call fcn.004d97ed
cmp dword [ebp - 8], ebx
pop ecx
mov esi, eax
je 0x4d97c7
push 1
mov ecx, dword [ebp - 0xc]
push dword [ebp - 0x18]
push dword [ebp - 4]
push dword [ebp - 8]
call fcn.004d9eda
jmp 0x4d97c7
inc esi
push esi
mov dword [ebp - 4], esi
call fcn.004d97ed
cmp dword [ebp - 8], ebx
pop ecx
push dword [ebp - 4]
mov esi, eax
jne 0x4d97b9
mov ecx, dword [ebp - 0xc]
call fcn.004da53d
jmp 0x4d97c7
push dword [ebp - 8]
mov ecx, dword [ebp - 0xc]
call fcn.004da79f
jmp 0x4d97c7
inc esi
mov dword [ebp - 4], esi
jmp 0x4d97ce
xor esi, esi
cmp esi, ebx
jne 0x4d9705
push edi
call sub.MFC42.DLL_operatordelete
pop ecx
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4db4f9
Capabilities:
Read .ini file

Disassembly:
mov eax, 0x4f760d
call fcn.004e1580
sub esp, 0x20
push esi
push edi
mov edi, dword [ebp + 0x18]
test edi, edi
ja 0x4db516
xor eax, eax
jmp 0x4db5ad
lea esi, [ecx + 0x18]
lea eax, [ebp - 0x2c]
push ebx
push eax
mov ecx, esi
call fcn.004db5bd
push dword [ebp + 0x1c]
and dword [ebp - 4], 0
push eax
call dword [sym.imp.MSVCP60.dll_bool___cdecl_std::operator__class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___char_const__]
or dword [ebp - 4], 0xffffffff
pop ecx
pop ecx
mov bl, al
push 1
lea ecx, [ebp - 0x2c]
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
test bl, bl
pop ebx
je 0x4db563
push dword [ebp + 0x1c]
push edi
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
jmp 0x4db5ad
push dword [ebp + 0x10]
lea eax, [ebp - 0x1c]
mov ecx, esi
push dword [ebp + 0xc]
push dword [ebp + 8]
push eax
call fcn.004da1da
mov esi, dword [ebp - 0x14]
cmp esi, edi
jb 0x4db581
lea esi, [edi - 1]
mov eax, dword [ebp - 0x18]
test eax, eax
jne 0x4db58d
mov eax, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
mov edi, dword [ebp + 0x14]
push esi
push eax
push edi
call dword [sym.imp.MSVCRT.dll__mbsnbcpy]
and byte [esi + edi], 0
add esp, 0xc
lea ecx, [ebp - 0x1c]
push 1
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
mov eax, esi
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret 0x18
Function at 0x4dc13c
Capabilities:
Copy file

Disassembly:
mov eax, 0x4f76e4
call fcn.004e1580
push ecx
push esi
mov esi, ecx
push edi
mov edi, dword [ebp + 8]
mov eax, dword [esi + 4]
push edi
push eax
call dword [sym.imp.MSVCRT.dll__mbscmp]
pop ecx
test eax, eax
pop ecx
je 0x4dc223
mov eax, dword [esi + 4]
cmp dword [eax - 8], 0
je 0x4dc181
push 0
push eax
call fcn.004d1e1a
pop ecx
test eax, eax
pop ecx
je 0x4dc181
mov esi, dword [esi + 4]
push 1
push edi
push esi
call dword [sym.imp.KERNEL32.dll_CopyFileA]
jmp 0x4dc223
mov eax, dword [esi]
push ebx
mov ecx, esi
call dword [eax + 0xc]
mov ebx, eax
push edi
lea ecx, [ebx + 4]
call sub.MFC42.DLL_CString::operator_2
lea ecx, [ebp - 0x10]
call sub.MFC42.DLL_CString::CString_3
movzx eax, word [esi + 8]
and dword [ebp - 4], 0
push eax
lea eax, [ebp - 0x10]
push 0x52a2a4
push eax
call sub.MFC42.DLL_CString::Format_1
add esp, 0xc
push edi
push dword [ebp - 0x10]
push str.LANGID
push str.LanguageInfo
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
mov esi, dword [esi + 0x14]
test esi, esi
jne 0x4dc1de
call sub.MFC42.DLL_AfxGetModuleState
mov eax, dword [eax + 0xc]
mov dword [ebp + 8], eax
jmp 0x4dc1e1
mov dword [ebp + 8], esi
mov esi, dword [sym.imp.KERNEL32.dll_EnumResourceNamesA]
mov edi, 0x4dc233
push ebx
push edi
push 4
push dword [ebp + 8]
call esi
push ebx
push edi
push 6
push dword [ebp + 8]
call esi
push ebx
push edi
push 5
push dword [ebp + 8]
call esi
test ebx, ebx
je 0x4dc213
mov eax, dword [ebx]
push 1
mov ecx, ebx
call dword [eax]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call sub.MFC42.DLL_CString::CString
push 1
pop eax
pop ebx
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret 4
Function at 0x4dc379
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, 0x4f7708
call fcn.004e1580
sub esp, 0x1c
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
push 5
push esi
push dword [ebp + 8]
mov edi, ecx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov ebx, eax
test ebx, ebx
je 0x4dc508
lea ecx, [ebp - 0x10]
call sub.MFC42.DLL_CString::CString_3
and dword [ebp - 4], 0
test esi, 0xffff0000
je 0x4dc3c3
push esi
lea ecx, [ebp - 0x10]
call sub.MFC42.DLL_CString::operator_2
jmp 0x4dc3e8
mov eax, dword [edi]
lea ecx, [ebp - 0x18]
push esi
push ecx
mov ecx, edi
call dword [eax + 0x1c]
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 1
call sub.MFC42.DLL_CString::operator_1
and byte [ebp - 4], 0
lea ecx, [ebp - 0x18]
call sub.MFC42.DLL_CString::CString
push ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
push esi
call fcn.004dc28b
push eax
lea ecx, [ebp + 0xc]
call sub.MFC42.DLL_CString::CString_2
mov eax, dword [ebp + 0xc]
mov byte [ebp - 4], 2
cmp dword [eax - 8], 0
je 0x4dc436
mov eax, dword [edi]
lea ecx, [ebp + 0xc]
push ecx
mov ecx, edi
call dword [eax + 0x28]
push dword [edi + 4]
push dword [ebp + 0xc]
push str.Title
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
mov ax, word [esi + 2]
xor ecx, ecx
cmp ax, 0xffff
sete cl
cmp ax, 0xffff
mov dword [ebp + 8], ecx
lea eax, [esi + 0x10]
je 0x4dc452
lea eax, [esi + 8]
movzx ebx, word [eax]
push esi
call fcn.004dc551
test ebx, ebx
mov esi, eax
jle 0x4dc4ed
mov dword [ebp - 0x14], ebx
cmp dword [ebp + 8], 0
je 0x4dc473
mov ebx, dword [esi + 0x14]
jmp 0x4dc480
mov ax, word [esi + 0x10]
cmp ax, 0xffff
je 0x4dc4d9
movzx ebx, ax
cmp ebx, 0xffffffff
je 0x4dc4d9
lea ecx, [ebp + 0xc]
call sub.MFC42.DLL_CString::Empty
push dword [ebp + 8]
push esi
call fcn.004dc519
push eax
lea ecx, [ebp + 0xc]
call sub.MFC42.DLL_CString::operator
mov eax, dword [ebp + 0xc]
cmp dword [eax - 8], 0
je 0x4dc4d9
mov eax, dword [edi]
lea ecx, [ebp + 0xc]
push ecx
mov ecx, edi
call dword [eax + 0x28]
push ebx
lea eax, [ebp - 0x28]
push str.Ctrl_u
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0xc
lea eax, [ebp - 0x28]
push dword [edi + 4]
push dword [ebp + 0xc]
push eax
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
push dword [ebp + 8]
push esi
call fcn.004dc5d7
dec dword [ebp - 0x14]
mov esi, eax
jne 0x4dc468
and byte [ebp - 4], 0
lea ecx, [ebp + 0xc]
call sub.MFC42.DLL_CString::CString
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call sub.MFC42.DLL_CString::CString
push 1
pop eax
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 8
Function at 0x4dc77f
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, 0x4f7750
call fcn.004e1580
sub esp, 0x20
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
push 6
push eax
push dword [ebp + 8]
lea ebx, [eax + 0xfffffff]
mov dword [ebp - 0x18], ecx
shl ebx, 4
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
mov edi, eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push edi
mov dword [ebp - 0x1c], eax
call dword [sym.imp.KERNEL32.dll_LockResource]
xor esi, esi
lea ecx, [ebp - 0x10]
mov dword [ebp + 8], eax
mov dword [ebp + 0xc], esi
call sub.MFC42.DLL_CString::CString_3
cmp dword [ebp - 0x1c], esi
mov dword [ebp - 4], esi
jbe 0x4dc883
mov eax, dword [ebp + 8]
add dword [ebp + 0xc], 2
add dword [ebp + 8], 2
mov ax, word [eax]
cmp ax, si
je 0x4dc876
movzx edi, ax
push esi
push esi
push esi
push esi
push edi
push dword [ebp + 8]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push eax
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x14], eax
call sub.MFC42.DLL_CString::GetBuffer
push esi
push esi
push dword [ebp - 0x14]
push eax
push edi
push dword [ebp + 8]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push dword [ebp - 0x14]
lea ecx, [ebp - 0x10]
call sub.MFC42.DLL_CString::ReleaseBuffer
mov ecx, dword [ebp - 0x18]
lea edx, [ebp - 0x10]
push edx
mov eax, dword [ecx]
call dword [eax + 0x28]
push ebx
lea eax, [ebp - 0x2c]
push str.String_d
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
mov eax, dword [ebp - 0x18]
add esp, 0xc
push dword [eax + 4]
lea eax, [ebp - 0x2c]
push dword [ebp - 0x10]
push eax
push str.StringTable
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
add edi, edi
add dword [ebp + 0xc], edi
add dword [ebp + 8], edi
mov eax, dword [ebp - 0x1c]
inc ebx
cmp dword [ebp + 0xc], eax
jb 0x4dc7e8
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call sub.MFC42.DLL_CString::CString
mov ecx, dword [ebp - 0xc]
push 1
pop eax
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 8

Function at 0x4dcb95
Capabilities:
Hash data using sha1

Disassembly:
xor eax, eax
mov dword [ecx], 0x67452301
mov dword [ecx + 0x14], eax
mov dword [ecx + 0x18], eax
mov dword [ecx + 4], 0xefcdab89
mov dword [ecx + 8], 0x98badcfe
mov dword [ecx + 0xc], 0x10325476
mov dword [ecx + 0x10], 0xc3d2e1f0
push 0x40
add ecx, 0x1c
push eax
push ecx
call sub.MSVCRT.dll_memset
add esp, 0xc
ret
Function at 0x4de783
Capabilities:
Get file size
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x64
push ebx
xor ebx, ebx
push esi
push ebx
push ebx
push 3
push ebx
push ebx
push Ordinal_1
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
mov dword [ebp - 8], esi
jne 0x4de7b2
xor al, al
jmp 0x4de83e
lea eax, [ebp + 8]
push edi
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, ebx
jbe 0x4de832
push ebx
push edi
push dword [ebp + 8]
push 2
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x4de832
push ebx
push ebx
push ebx
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov esi, eax
cmp esi, ebx
je 0x4de829
lea ecx, [ebp - 0x64]
call fcn.004dcb89
cmp dword [ebp + 8], ebx
jbe 0x4de80b
push 0xffffffffffffffff
push esi
lea ecx, [ebp - 0x64]
call fcn.004de5bb
dec esi
inc ebx
cmp ebx, dword [ebp + 8]
jb 0x4de7f9
push edi
push esi
lea ecx, [ebp - 0x64]
call fcn.004de5bb
push dword [ebp + 0xc]
lea ecx, [ebp - 0x64]
call fcn.004de656
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov bl, 1
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, bl
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4dea99
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
and dword [ebp - 4], 0
push ebx
push esi
push edi
mov edi, ecx
lea ecx, [eax + 4]
lea esi, [edi + 4]
mov eax, ecx
xor edx, edx
shl eax, 4
add eax, dword [ebp - 4]
add eax, edi
mov bl, byte [eax]
push 4
xor byte [esi + edx], bl
pop ebx
inc edx
add eax, ebx
cmp edx, ebx
jl 0x4deabb
inc dword [ebp - 4]
add esi, ebx
cmp dword [ebp - 4], ebx
jl 0x4deaaf
pop edi
pop esi
pop ebx
leave
ret 4