joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4d7c40
Capabilities:
Enumerate files on windows
Enumerate files recursively
Set current directory

Disassembly:
push 0xffffffffffffffff
push 0x512656
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x150
push ebx
push ebp
push esi
push edi
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::CString_3
lea ecx, [esp + 0x10]
mov dword [esp + 0x168], 0
call sub.MFC42.DLL_CString::CString_3
mov esi, dword [esp + 0x170]
lea ecx, [esp + 0x14]
push esi
mov byte [esp + 0x16c], 1
call fcn.004c8322
lea eax, [esp + 0x18]
push 1
push eax
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CString::Right
mov eax, dword [eax]
push 0x542a7c
push eax
call dword [sym.imp.MSVCRT.dll__mbscmp]
add esp, 8
lea ecx, [esp + 0x18]
test eax, eax
setne bl
call sub.MFC42.DLL_CString::CString
test bl, bl
je 0x4d7cd6
push 0x542a7c
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::operator_2
push esi
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
test eax, eax
jne 0x4d7d0d
lea ecx, [esp + 0x10]
mov byte [esp + 0x168], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x14]
mov dword [esp + 0x168], 0xffffffff
call sub.MFC42.DLL_CString::CString
xor eax, eax
jmp 0x4d7e04
mov ebp, dword [esp + 0x178]
test ebp, ebp
mov eax, ebp
jne 0x4d7d1f
mov eax, 0x543088
lea ecx, [esp + 0x20]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4d7dda
mov esi, dword [esp + 0x17c]
mov edi, dword [esp + 0x174]
lea edx, [esp + 0x14]
lea ecx, [esp + 0x10]
push edx
call fcn.004c830a
lea eax, [esp + 0x4c]
lea ecx, [esp + 0x10]
push eax
call sub.MFC42.DLL_CString::operator_2
test byte [esp + 0x20], 0x10
je 0x4d7d9e
cmp byte [esp + 0x4c], 0x2e
je 0x4d7db6
mov ecx, dword [esp + 0x10]
push esi
push ebp
push edi
push ecx
call fcn.004d7c40
add esp, 0x10
test eax, eax
je 0x4d7ce1
mov edx, dword [esp + 0x170]
push edx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
test eax, eax
je 0x4d7ce1
jmp 0x4d7db6
push ecx
lea eax, [esp + 0x14]
mov ecx, esp
mov dword [esp + 0x20], esp
push eax
call sub.MFC42.DLL_CString::CString_2
mov ecx, edi
call fcn.00415d90
test esi, esi
jbe 0x4d7dbf
cmp dword [edi + 8], esi
jae 0x4d7dd3
lea ecx, [esp + 0x20]
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x4d7d44
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
lea ecx, [esp + 0x10]
mov byte [esp + 0x168], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x14]
mov dword [esp + 0x168], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov eax, 1
mov ecx, dword [esp + 0x160]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x15c
ret
Function at 0x4e6cb0
Capabilities:
Create process on windows

Disassembly:
mov eax, dword [ecx + 0x20]
push esi
mov esi, dword [ecx + 0x44]
push eax
call dword [sym.imp.USER32.dll_GetParent]
push eax
call sub.MFC42.DLL_CWnd::FromHandle
test eax, eax
je 0x4e6ccb
mov eax, dword [eax + 0x20]
push 5
push 0
push 0
push esi
push str.open
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
xor ecx, ecx
cmp eax, 0x20
setg cl
mov eax, ecx
pop esi
ret

Function at 0x4e6cf0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
sub esp, 0x14
push esi
mov al, 0x3a
mov esi, ecx
push edi
mov byte [esp + 0x11], al
mov byte [esp + 0x12], al
lea edi, [esp + 8]
or ecx, 0xffffffff
xor eax, eax
mov byte [esp + 8], 0x48
mov byte [esp + 9], 0x6d
mov byte [esp + 0xa], 0x3c
mov byte [esp + 0xb], 0x7e
mov byte [esp + 0xc], 0x3f
mov byte [esp + 0xd], 0x2a
mov byte [esp + 0xe], 0x37
mov byte [esp + 0xf], 0x22
mov byte [esp + 0x10], 0x23
mov byte [esp + 0x13], 0x58
mov byte [esp + 0x14], 0x33
mov byte [esp + 0x15], 0x24
mov byte [esp + 0x16], 0x55
mov byte [esp + 0x17], 0x77
mov byte [esp + 0x18], 0
xor edx, edx
repne scasb al, byte es:[edi]
not ecx
dec ecx
test ecx, ecx
jle 0x4e6d7d
mov al, byte [esp + edx + 8]
lea edi, [esp + 8]
add al, 0x80
or ecx, 0xffffffff
mov byte [esp + edx + 8], al
xor eax, eax
inc edx
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp edx, ecx
jl 0x4e6d60
push 0
mov ecx, esi
call sub.MFC42.DLL_CWnd::ShowWindow
lea eax, [esp + 8]
mov ecx, esi
push eax
call sub.MFC42.DLL_CWnd::SetWindowTextA
push 9
mov ecx, esi
call sub.MFC42.DLL_CWnd::ShowWindow
pop edi
pop esi
add esp, 0x14
ret
Function at 0x4e6dcb
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x51305e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x218
push esi
mov esi, ecx
call sub.MFC42.DLL_AfxGetModuleState
mov ecx, dword [eax + 4]
call sub.MFC42.DLL_CCmdTarget::BeginWaitCursor
lea eax, [esp + 4]
mov dword [esp + 0x224], 0
push eax
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
test eax, eax
jl 0x4e6e2c
mov edx, dword [esp + 0x22c]
lea ecx, [esp + 0xc]
push ecx
push edx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jl 0x4e6e22
mov eax, dword [esp + 0xc]
lea edx, [esp + 0x14]
push edx
push eax
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
test eax, eax
jne 0x4e6e4b
mov eax, dword [esp + 4]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov dword [esp + 0x224], 0xffffffff
call sub.MFC42.DLL_AfxGetModuleState
mov ecx, dword [eax + 4]
call sub.MFC42.DLL_CCmdTarget::EndWaitCursor
xor eax, eax
jmp 0x4e6f06
lea ecx, [esp + 8]
call sub.MFC42.DLL_CString::CString_3
lea edx, [esp + 8]
mov ecx, esi
push edx
mov byte [esp + 0x228], 1
call sub.MFC42.DLL_CWnd::GetWindowTextA
mov eax, dword [esp + 8]
push 0x547bdc
lea ecx, [esp + 0x18]
push eax
push ecx
lea edx, [esp + 0x124]
push 0
push edx
call dword [sym.imp.MSVCRT.dll__makepath]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x20]
add esp, 0x14
mov ecx, dword [eax]
push edx
push eax
call dword [ecx + 0x14]
lea eax, [esp + 0x118]
lea ecx, [esp + 0x10]
push eax
call sub.MFC42.DLL_CString::CString_1
lea ecx, [esp + 0x10]
mov byte [esp + 0x224], 2
push ecx
mov ecx, esi
call fcn.004e6f40
lea ecx, [esp + 0x10]
mov esi, eax
mov byte [esp + 0x224], 1
call sub.MFC42.DLL_CString::CString
mov eax, dword [esp + 4]
push eax
mov edx, dword [eax]
call dword [edx + 8]
lea ecx, [esp + 8]
mov byte [esp + 0x224], 0
call sub.MFC42.DLL_CString::CString
mov dword [esp + 0x224], 0xffffffff
call sub.MFC42.DLL_AfxGetModuleState
mov ecx, dword [eax + 4]
call sub.MFC42.DLL_CCmdTarget::EndWaitCursor
mov eax, esi
mov ecx, dword [esp + 0x21c]
pop esi
mov dword fs:[0], ecx
add esp, 0x224
ret 4
Function at 0x4e78ea
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x5131fa
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0x10], esi
mov dword [esi], 0x514bb8
lea ecx, [esi + 4]
mov dword [esp + 0x2c], 0
call fcn.004e7880
lea ebp, [esi + 0x20]
mov byte [esp + 0x2c], 1
mov ecx, ebp
call sub.MFC42.DLL_CString::CString_3
lea ecx, [esi + 0x30]
mov byte [esp + 0x2c], 2
call sub.MFC42.DLL_CString::CString_3
lea edi, [esi + 0x34]
mov byte [esp + 0x2c], 3
mov ecx, edi
call sub.MFC42.DLL_CString::CString_3
lea ebx, [esi + 0x44]
mov byte [esp + 0x2c], 4
mov ecx, ebx
call sub.MFC42.DLL_CString::CString_3
lea ecx, [esi + 0x58]
mov byte [esp + 0x2c], 5
call fcn.004e7670
xor eax, eax
push 0x54aebc
lea ecx, [esp + 0x18]
mov byte [esp + 0x30], 6
mov dword [esi], 0x51daa4
mov dword [esi + 0x54], eax
mov dword [esi + 0x74], eax
mov dword [esi + 0x78], eax
call sub.MFC42.DLL_CString::CString_1
lea eax, [esp + 0x14]
mov ecx, edi
push eax
mov byte [esp + 0x30], 7
call fcn.004c830a
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x20]
mov dword [edi + 4], ecx
lea ecx, [esp + 0x14]
mov dword [edi + 8], edx
mov dword [edi + 0xc], eax
mov byte [esp + 0x2c], 6
call sub.MFC42.DLL_CString::CString
push 0x54aebc
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::CString_1
lea ecx, [esp + 0x14]
mov byte [esp + 0x2c], 8
push ecx
mov ecx, ebp
call fcn.004c830a
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
mov dword [ebp + 0xc], ecx
lea ecx, [esp + 0x14]
mov dword [ebp + 4], edx
mov dword [ebp + 8], eax
mov byte [esp + 0x2c], 6
call sub.MFC42.DLL_CString::CString
push 0x54aebc
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::CString_1
lea edx, [esp + 0x14]
mov ecx, edi
push edx
mov byte [esp + 0x30], 9
call fcn.004c830a
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x20]
mov dword [edi + 8], ecx
lea ecx, [esp + 0x14]
mov dword [edi + 4], eax
mov dword [edi + 0xc], edx
mov byte [esp + 0x2c], 6
call sub.MFC42.DLL_CString::CString
push 0x54aebc
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::CString_1
lea eax, [esp + 0x14]
mov ecx, ebx
push eax
mov byte [esp + 0x30], 0xa
call fcn.004c830a
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x20]
mov dword [ebx + 4], ecx
lea ecx, [esp + 0x14]
mov dword [ebx + 8], edx
mov dword [ebx + 0xc], eax
mov byte [esp + 0x2c], 6
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x24]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret
Function at 0x4e7d0d
Capabilities:
Read .ini file

Disassembly:
mov ecx, 0x54c100
jmp 0x4e7cf0
push 0xffffffffffffffff
push 0x5132c8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x310
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0x14], esi
lea edi, [esi + 4]
mov ecx, edi
call sub.MFC42.DLL_CString::CString_3
lea ebx, [esi + 8]
mov dword [esp + 0x328], 0
mov ecx, ebx
call sub.MFC42.DLL_CString::CString_3
lea ebp, [esi + 0xc]
mov byte [esp + 0x328], 1
mov ecx, ebp
call sub.MFC42.DLL_CString::CString_3
lea ecx, [esi + 0x18]
mov byte [esp + 0x328], 2
call fcn.004e9670
lea eax, [esp + 0x21c]
push 0x104
push eax
push 0
mov byte [esp + 0x334], 3
mov dword [esi], 0x51dab8
mov dword [esi + 0x78], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jbe 0x4e7e25
push 0
lea ecx, [esp + 0x1c]
push 0
lea edx, [esp + 0x18]
push ecx
lea eax, [esp + 0x228]
push edx
push eax
call dword [sym.imp.MSVCRT.dll__splitpath]
add esp, 0x14
lea ecx, [esp + 0x10]
push ecx
mov ecx, ebx
call fcn.004c8322
lea edx, [esp + 0x18]
mov ecx, ebx
push edx
call sub.MFC42.DLL_CString::operator_2
mov ebx, dword [sym.imp.MSVCRT.dll__makepath]
push 0x54a294
lea eax, [esp + 0x1c]
push str.SmitOCR
lea ecx, [esp + 0x18]
push eax
lea edx, [esp + 0x124]
push ecx
push edx
call ebx
add esp, 0x14
lea eax, [esp + 0x118]
mov ecx, edi
push eax
call fcn.004c8322
push 0x54a4f0
lea ecx, [esp + 0x1c]
push str.tesseract
lea edx, [esp + 0x18]
push ecx
lea eax, [esp + 0x124]
push edx
push eax
call ebx
add esp, 0x14
lea ecx, [esp + 0x118]
push ecx
mov ecx, ebp
call fcn.004c8322
mov eax, dword [edi]
mov ebx, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
push eax
push 1
push str.Mode
push str.System
call ebx
mov edi, dword [edi]
mov dword [esi + 0x10], eax
push edi
push 3
push str.DIBType
push str.System
call ebx
mov ecx, esi
mov dword [esi + 0x14], eax
call fcn.004e7f20
mov ecx, dword [esp + 0x320]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x31c
ret
Function at 0x4e7f20
Capabilities:
Link many functions at runtime

Disassembly:
mov eax, dword [ecx + 0x10]
cmp eax, 1
jne 0x4e7f2d
jmp 0x4e8030
cmp eax, 3
jne 0x4e7f3a
add ecx, 0x18
jmp 0x4e9750
jmp 0x4e84d0
mov ecx, dword [ecx + 0xc]
push 0
push ecx
call dword [sym.imp.MSVCRT.dll__access]
add esp, 8
neg eax
sbb eax, eax
inc eax
ret
push esi
mov esi, ecx
mov eax, dword [esi + 0x78]
test eax, eax
je 0x4e84df
call fcn.004e7f40
push 0
push 1
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
push str.OCRDLL.DLL
mov dword [esi + 0x74], eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
test eax, eax
mov dword [esi + 0x78], eax
jne 0x4e8504
pop esi
ret
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.CreateMultipleImg
push eax
call edi
mov dword [esi + 0x7c], eax
mov eax, dword [esi + 0x78]
push str.FreeMultipleImg
push eax
call edi
mov ecx, dword [esi + 0x78]
push str.AddDIB
push ecx
mov dword [esi + 0x88], eax
call edi
mov edx, dword [esi + 0x78]
push str.GetImage
push edx
mov dword [esi + 0x80], eax
call edi
mov dword [esi + 0x84], eax
mov eax, dword [esi + 0x78]
push str.SetOutputMode
push eax
call edi
mov ecx, dword [esi + 0x78]
push str.OCRSetOutputHandler
push ecx
mov dword [esi + 0x8c], eax
call edi
mov edx, dword [esi + 0x78]
push 0x54a580
push edx
mov dword [esi + 0x90], eax
call edi
mov dword [esi + 0x94], eax
mov eax, dword [esi + 0x78]
push str.SetLanguage
push eax
call edi
mov ecx, dword [esi + 0x78]
push str.DIBToIMG
push ecx
mov dword [esi + 0x98], eax
call edi
mov edx, dword [esi + 0x78]
push str.ExtractImgArea
push edx
mov dword [esi + 0x9c], eax
call edi
mov dword [esi + 0xa0], eax
mov eax, dword [esi + 0x78]
push str.FreeImg
push eax
call edi
mov ecx, dword [esi + 0x78]
push str.GetImgSize
push ecx
mov dword [esi + 0xa4], eax
call edi
mov ecx, dword [esi + 0x7c]
mov dword [esi + 0xa8], eax
test ecx, ecx
pop edi
je 0x4e8641
mov ecx, dword [esi + 0x88]
test ecx, ecx
je 0x4e8641
mov ecx, dword [esi + 0x80]
test ecx, ecx
je 0x4e8641
mov ecx, dword [esi + 0x84]
test ecx, ecx
je 0x4e8641
mov ecx, dword [esi + 0x8c]
test ecx, ecx
je 0x4e8641
mov ecx, dword [esi + 0x90]
test ecx, ecx
je 0x4e8641
mov ecx, dword [esi + 0x94]
test ecx, ecx
je 0x4e8641
mov ecx, dword [esi + 0x98]
test ecx, ecx
je 0x4e8641
mov ecx, dword [esi + 0x9c]
test ecx, ecx
je 0x4e8641
mov ecx, dword [esi + 0xa0]
test ecx, ecx
je 0x4e8641
mov ecx, dword [esi + 0xa4]
test ecx, ecx
je 0x4e8641
test eax, eax
jne 0x4e8652
mov edx, dword [esi + 0x78]
push edx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [esi + 0x78], 0
mov ecx, dword [esi + 0x78]
xor eax, eax
test ecx, ecx
setne al
pop esi
ret
push esi
mov esi, ecx
push str.TOCRdll.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
test eax, eax
mov dword [esi + 4], eax
jne 0x4e9767
pop esi
ret
mov ecx, esi
call fcn.004e9790
test eax, eax
jne 0x4e977d
mov ecx, esi
call fcn.004e96f0
xor eax, eax
pop esi
ret
push 2
push 0xffffffffffffffff
mov ecx, esi
call fcn.004e99a0
mov eax, 1
pop esi
ret
Function at 0x4eaf00
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x104
push ebx
mov ebx, dword [esp + 0x10c]
push ebp
push esi
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x14]
rep stosd dword es:[edi], eax
mov dword [esp + 0x10], eax
lea eax, [esp + 0x10]
push eax
push ebx
call fcn.004eaf90
mov ebp, dword [esp + 0x18]
add esp, 8
test ebp, ebp
jle 0x4eaf62
mov eax, dword [esp + 0x11c]
mov esi, dword [esp + 0x120]
mov ecx, ebx
lea edi, [esp + 0x14]
sub ecx, eax
sub esi, eax
sub edi, eax
mov dl, byte [esi + eax]
xor dl, byte [ecx + eax]
xor dl, byte [eax]
inc eax
dec ebp
mov byte [edi + eax - 1], dl
jne 0x4eaf52
lea edi, [esp + 0x14]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x104
ret

Function at 0x4ef3c9
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov ecx, dword [eax + 8]
push 0xfffffffffffffff0
add ecx, 0x646c6f47
pop esi
xor word [eax + 0xc], cx
xor word [eax + 0xe], cx
xor dword [eax + 0x110], ecx
xor byte [eax + 0x114], cl
mov dword [ebp + 8], ecx
lea ecx, [eax + 0x10]
sub esi, eax
mov edi, 0x100
lea eax, [ecx + esi]
push 4
cdq
pop ebx
idiv ebx
mov al, byte [edx + ebp + 8]
xor byte [ecx], al
inc ecx
dec edi
jne 0x4ef3ff
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x4ef417
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
mov eax, dword [eax + 8]
mov dword [ebp + 0x10], 0x100
add eax, 0x646c6f47
xor edi, edi
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov esi, dword [eax + 4]
mov eax, dword [ebp + 0xc]
lea ecx, [eax + 7]
mov eax, edi
push 4
cdq
pop ebx
idiv ebx
mov al, byte [edx + ebp - 4]
xor al, byte [esi + edi]
inc edi
mov byte [ecx], al
inc ecx
dec dword [ebp + 0x10]
jne 0x4ef441
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4ef45e
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x94
lea eax, [ebp - 0x94]
mov dword [ebp - 0x94], 0x94
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
jne 0x4ef486
xor eax, eax
leave
ret
mov eax, dword [ebp - 0x84]
xor ecx, ecx
sub eax, ecx
je 0x4ef4ba
dec eax
je 0x4ef49a
dec eax
je 0x4ef4ac
jmp 0x4ef482
cmp dword [ebp - 0x8c], ecx
jne 0x4ef4a6
push 4
jmp 0x4ef4bc
jbe 0x4ef4ac
push 5
jmp 0x4ef4bc
cmp dword [ebp - 0x90], 5
sbb eax, eax
add eax, 7
leave
ret
push 3
pop eax
leave
ret
Function at 0x4ef4bf
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
mov byte [esi], 0x4d
mov byte [esi + 1], 0x48
mov eax, dword [edi]
mov cl, byte [eax]
mov al, byte [eax + 1]
mov byte [esi + 3], al
mov eax, dword [edi + 8]
mov byte [esi + 2], cl
mov eax, dword [eax]
mov dword [esi + 4], eax
call fcn.004ef55c
mov dword [esi + 8], eax
lea ecx, [eax + 0x646c6f47]
mov eax, dword [edi]
mov dword [ebp + 8], ecx
mov dx, word [eax + 2]
xor dx, cx
mov word [esi + 0xc], dx
mov edx, dword [eax + 0x12]
mov edx, dword [edx]
xor edx, ecx
mov dword [esi + 0x110], edx
mov dx, word [eax + 8]
xor dx, cx
mov word [esi + 0xe], dx
mov dl, byte [eax + 0x16]
xor dl, cl
mov byte [esi + 0x114], dl
mov dx, word [eax + 4]
test dx, dx
jbe 0x4ef558
mov edi, dword [eax + 0xe]
push ebx
movzx eax, dx
xor ebx, ebx
lea ecx, [esi + 0x10]
mov dword [ebp + 0xc], eax
mov eax, ebx
push 4
cdq
pop esi
idiv esi
mov al, byte [edx + ebp + 8]
xor al, byte [edi + ebx]
inc ebx
mov byte [ecx], al
inc ecx
dec dword [ebp + 0xc]
jne 0x4ef53f
pop ebx
pop edi
pop esi
pop ebp
ret

Function at 0x4ef5af
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
add dword [ebp + 0x10], 0x646c6f47
mov eax, dword [eax]
mov dx, word [eax + 6]
test dx, dx
jbe 0x4ef5f6
push ebx
push esi
mov esi, dword [eax + 0xa]
mov eax, dword [ebp + 0xc]
push edi
xor edi, edi
lea ecx, [eax + 7]
movzx eax, dx
mov dword [ebp + 8], eax
mov eax, edi
push 4
cdq
pop ebx
idiv ebx
mov al, byte [edx + ebp + 0x10]
xor al, byte [ecx]
mov byte [esi + edi], al
inc edi
inc ecx
dec dword [ebp + 8]
jne 0x4ef5db
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x4efb82
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push es
mov ax, 0x101f
mov es, ax
xor eax, eax
mov esi, eax
mov ecx, 0x8000
xor al, byte es:[esi]
inc esi
loop 0x4efb98
pop es
mov byte [ebp - 1], al
mov al, byte [ebp - 1]
test al, al
jne 0x4efbab
add al, 0x55
mov ecx, dword [ebp + 8]
pop esi
mov byte [ecx], al
xor al, al
leave
ret
Function at 0x4efce0
Capabilities:
Access peb ldr_data
Get ntdll base address
Get process heap flags
Get process heap force flags

Disassembly:
push 0xffffffffffffffff
push 0x513668
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
push edi
mov dword [esp + 8], esi
lea ecx, [esi + 8]
call sub.MFC42.DLL_CString::CString_3
xor edi, edi
lea ecx, [esi + 0xc]
mov dword [esp + 0x14], edi
call sub.MFC42.DLL_CString::CString_3
lea ecx, [esi + 0x10]
mov byte [esp + 0x14], 1
call sub.MFC42.DLL_CString::CString_3
lea ecx, [esi + 0x14]
mov byte [esp + 0x14], 2
call sub.MFC42.DLL_CString::CString_3
lea ecx, [esi + 0x18]
mov byte [esp + 0x14], 3
call sub.MFC42.DLL_CString::CString_3
mov eax, 0x51dad8
mov dword [esi + 0x24], edi
mov dword [esi + 0x20], eax
mov dword [esi + 0x30], edi
mov dword [esi + 0x2c], edi
mov dword [esi + 0x28], edi
mov dword [esi + 0x34], eax
mov dword [esi + 0x38], edi
mov dword [esi + 0x44], edi
mov dword [esi + 0x40], edi
mov dword [esi + 0x3c], edi
lea ecx, [esi + 0x4c]
mov byte [esp + 0x14], 6
call sub.MFC42.DLL_CString::CString_3
lea ecx, [esi + 0x50]
mov byte [esp + 0x14], 7
call sub.MFC42.DLL_CString::CString_3
mov ecx, dword [esp + 0xc]
mov dword [esi + 4], edi
mov dword [esi + 0x1c], edi
mov dword [esi], 0x51dad4
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x4f0730
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x51381b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x804
mov al, byte [0x54aebc]
push esi
mov esi, ecx
push edi
mov byte [esp + 0xc], al
mov ecx, 0x1ff
xor eax, eax
lea edi, [esp + 0xd]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [esi + 0xc]
lea ecx, [esp + 0xc]
push eax
push 0x7ff
push ecx
push 0x54aebc
push 0x54adb8
push str.System
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov al, byte [esp + 0xc]
test al, al
jne 0x4f07ac
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 0x804]
mov dword fs:[0], ecx
add esp, 0x810
ret
lea edx, [esp + 0xc]
mov ecx, esi
push edx
call fcn.004f0490
lea ecx, [esp + 8]
call sub.MFC42.DLL_CString::CString_3
lea eax, [esp + 8]
mov ecx, esi
push eax
mov dword [esp + 0x818], 0
call fcn.004efef0
test eax, eax
jne 0x4f0809
lea ecx, [esp + 8]
mov dword [esp + 0x814], 0xffffffff
call sub.MFC42.DLL_CString::CString
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 0x804]
mov dword fs:[0], ecx
add esp, 0x810
ret
mov ecx, dword [esp + 8]
mov esi, dword [esi + 0x10]
push ecx
push esi
call dword [sym.imp.MSVCRT.dll__mbscmp]
add esp, 8
mov dword [esp + 0x814], 0xffffffff
test eax, eax
lea ecx, [esp + 8]
je 0x4f084c
call sub.MFC42.DLL_CString::CString
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 0x804]
mov dword fs:[0], ecx
add esp, 0x810
ret
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x80c]
pop edi
mov eax, 1
pop esi
mov dword fs:[0], ecx
add esp, 0x810
ret