joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4d2bfa
Capabilities:
Terminate thread

Disassembly:
mov eax, 0x51432f
call fcn.00484660
sub esp, 0x10
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x1c], esi
mov dword [esi], 0x532af0
mov dword [ebp - 4], 1
and dword [ebp - 0x14], 0
mov byte [ebp - 4], 2
call sub.MFC42.DLL_AfxGetAppModuleState
mov eax, dword [eax + 4]
lea edx, [ebp - 0x14]
push edx
push 0x51ab68
mov eax, dword [eax + 0xd4]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x1c]
test eax, eax
jne 0x4d2c61
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x4d2c61
mov ebx, dword [eax]
push 0x51ab48
mov ecx, esi
mov edi, eax
call sub.MFC42.DLL_CCmdTarget::GetInterface
push eax
push edi
call dword [ebx + 0x2c]
and dword [ebp - 0x10], 0
mov byte [ebp - 4], 3
call sub.MFC42.DLL_AfxGetAppModuleState
mov eax, dword [eax + 4]
lea edx, [ebp - 0x10]
push edx
push 0x51b8c8
mov eax, dword [eax + 0xd4]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x1c]
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x4d2cca
mov ebx, dword [eax]
mov edi, 0x51b898
push edi
mov ecx, esi
mov dword [ebp - 0x18], eax
call sub.MFC42.DLL_CCmdTarget::GetInterface
push eax
push 0xffffff5d
push dword [ebp - 0x18]
call dword [ebx + 0x10]
mov eax, dword [ebp - 0x10]
push edi
mov ecx, esi
mov ebx, eax
mov edx, dword [eax]
mov dword [ebp - 0x18], edx
call sub.MFC42.DLL_CCmdTarget::GetInterface
push eax
mov eax, dword [ebp - 0x18]
push 0xffffff3b
push ebx
call dword [eax + 0x10]
mov eax, dword [esi + 0x8c]
mov edi, dword [sym.imp.KERNEL32.dll_TerminateThread]
mov ebx, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x4d2cf2
push 0
push eax
call edi
push 0x7d0
push dword [esi + 0x8c]
call ebx
mov eax, dword [esi + 0x90]
test eax, eax
je 0x4d2d0e
push 0
push eax
call edi
push 0x7d0
push dword [esi + 0x90]
call ebx
mov eax, dword [esi + 0x6c]
test eax, eax
je 0x4d2d20
push eax
call sub.MFC42.DLL_operatordelete
and dword [esi + 0x6c], 0
pop ecx
mov eax, dword [esi + 0x74]
test eax, eax
je 0x4d2d32
push eax
call sub.MFC42.DLL_operatordelete
and dword [esi + 0x74], 0
pop ecx
mov ecx, esi
call fcn.004d46ea
mov eax, dword [ebp - 0x10]
mov byte [ebp - 4], 2
test eax, eax
je 0x4d2d4a
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x14]
mov byte [ebp - 4], 1
test eax, eax
je 0x4d2d5b
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
and byte [ebp - 4], 0
push 0x10
lea eax, [esi + 0x40]
push 0
push eax
call sub.MSVCRT.dll_memset
or dword [ebp - 4], 0xffffffff
add esp, 0xc
mov ecx, esi
call sub.MFC42.DLL_CWnd::CWnd
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x4d35d3
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x360
push ebx
push edi
mov edi, dword [ebp + 8]
xor ebx, ebx
cmp word [edi + 0x78], bx
jbe 0x4d3754
push 0x104
lea eax, [ebp - 0x11c]
push ebx
push eax
call sub.MSVCRT.dll_memset
lea eax, [ebp - 0x11c]
push eax
call fcn.004d3758
lea eax, [ebp - 0x11c]
push 0x5760b8
push eax
call sub.MSVCRT.dll_strcat
add esp, 0x18
lea eax, [ebp - 0x25c]
push eax
lea eax, [ebp - 0x11c]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ebp - 4], eax
lea eax, [ebp - 0x11c]
push eax
call fcn.004d3758
cmp dword [ebp - 4], 0xffffffff
pop ecx
mov dword [ebp - 8], ebx
je 0x4d374b
push esi
lea eax, [ebp - 0x230]
push eax
call dword [sym.imp.MSVCRT.dll__strlwr]
lea eax, [ebp - 0x230]
push eax
call sub.MSVCRT.dll_strlen
push eax
lea eax, [ebp - 0x230]
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.0044d75b
add esp, 0x14
cmp dword [edi + 0x70], ebx
jle 0x4d3720
mov dword [ebp + 8], ebx
mov esi, dword [edi + 0x74]
add esi, dword [ebp + 8]
test byte [esi], 2
je 0x4d3710
test byte [esi + 0x21], 2
jne 0x4d3710
lea eax, [ebp - 0x18]
push 0x10
push eax
lea eax, [esi + 1]
push eax
call sub.MSVCRT.dll_memcmp
add esp, 0xc
test eax, eax
jne 0x4d3710
dec word [edi + 0x78]
or byte [esi + 0x21], 2
test byte [esi], 4
je 0x4d3710
lea eax, [ebp - 0x360]
push 0x51a314
push eax
call sub.MSVCRT.dll_strcpy
lea eax, [ebp - 0x11c]
push eax
lea eax, [ebp - 0x360]
push eax
call sub.MSVCRT.dll_strcat
lea eax, [ebp - 0x230]
push eax
lea eax, [ebp - 0x360]
push eax
call sub.MSVCRT.dll_strcat
lea eax, [esi + 0x22]
push eax
lea eax, [ebp - 0x360]
push eax
lea eax, [esi + 0x11]
push eax
call fcn.004d380e
add esp, 0x24
or byte [esi + 0x21], 4
add dword [ebp + 8], 0x32
inc ebx
cmp ebx, dword [edi + 0x70]
jl 0x4d368a
xor ebx, ebx
cmp word [edi + 0x78], bx
je 0x4d373a
lea eax, [ebp - 0x25c]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x4d3741
mov dword [ebp - 8], 1
cmp dword [ebp - 8], ebx
je 0x4d3651
pop esi
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FindClose]
pop edi
pop ebx
leave
ret
Function at 0x4d380e
Capabilities:
Copy file
Delete file
Encode data using xor
Get common file path
Get file size
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
push ebx
push esi
lea eax, [ebp - 0x210]
push edi
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea eax, [ebp - 0x10c]
xor ebx, ebx
push eax
push ebx
lea eax, [ebp - 0x210]
push str.tempdll
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
lea eax, [ebp - 0x10c]
push ebx
push eax
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
je 0x4d38f7
mov esi, 0x80
lea eax, [ebp - 0x10c]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push ebx
push esi
push 3
push ebx
push ebx
lea eax, [ebp - 0x10c]
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
mov dword [ebp + 0xc], edi
je 0x4d38f7
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
shr eax, 4
mov ecx, eax
mov dword [ebp - 8], esi
shl ecx, 4
cmp ecx, esi
je 0x4d38b5
lea esi, [eax + 1]
shl esi, 4
lea eax, [esi + 1]
push ebx
push eax
push ebx
push 4
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
cmp eax, ebx
mov dword [ebp - 4], eax
jne 0x4d38d5
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4d38f7
push ebx
push ebx
push ebx
push 2
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov edi, eax
cmp edi, ebx
jne 0x4d38fe
push dword [ebp - 4]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp + 0xc]
call esi
xor eax, eax
jmp 0x4d3992
mov eax, dword [ebp - 8]
mov ecx, esi
sub ecx, eax
add eax, edi
inc ecx
push ecx
push ebx
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
cmp esi, ebx
jbe 0x4d3949
mov ecx, dword [ebp + 8]
mov dword [ebp + 8], 0xfffffffc
sub dword [ebp + 8], edi
lea eax, [edi + 4]
mov edx, dword [ecx]
xor dword [eax - 4], edx
mov edx, dword [ecx + 4]
xor dword [eax], edx
mov edx, dword [ecx + 8]
xor dword [eax + 4], edx
mov edx, dword [ecx + 0xc]
xor dword [eax + 8], edx
mov edx, dword [ebp + 8]
add eax, 0x10
add edx, eax
cmp edx, esi
jb 0x4d3927
push esi
push edi
push dword [ebp + 0x10]
call fcn.0044d75b
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push dword [ebp - 4]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
push ebx
push ebx
push esi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
push dword [ebp + 0xc]
call edi
lea eax, [ebp - 0x10c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4d55e3
Capabilities:
Create directory

Disassembly:
mov eax, 0x51479f
call fcn.00484660
sub esp, 0xc
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x18], esi
call dword [sym.imp.QQBaseClassInDll.dll_protected:_void___thiscall_CHttpDownloadUIInterface::constructor_void_]
and dword [ebp - 4], 0
lea ebx, [esi + 4]
mov ecx, ebx
call sub.MFC42.DLL_CString::CString_5
lea ecx, [esi + 8]
mov byte [ebp - 4], 1
call sub.MFC42.DLL_CString::CString_5
lea edi, [esi + 0xc]
mov byte [ebp - 4], 2
mov ecx, edi
call dword [sym.imp.QQBaseClassInDll.dll_public:_void___thiscall_CHttpDownload::constructor_void_]
mov byte [ebp - 4], 3
push esi
mov ecx, edi
mov dword [esi], 0x532cd0
call dword [sym.imp.QQBaseClassInDll.dll_public:_void___thiscall_CHttpDownload::SetUIInterface_class_CHttpDownloadUIInterface__]
mov edi, dword [sym.imp.BasicCtrlDll.dll_class_CString___cdecl_GetExeFolder_void_]
lea eax, [ebp - 0x14]
push eax
call edi
mov dword [esp], str.QQSuperbag
push eax
lea eax, [ebp - 0x10]
mov byte [ebp - 4], 4
push eax
call sub.MFC42.DLL_operator_3
mov eax, dword [eax]
push 0
push eax
mov byte [ebp - 4], 5
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 4
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 3
call sub.MFC42.DLL_CString::CString
lea eax, [ebp - 0x10]
push eax
call edi
mov dword [esp], str.QQSuperbag_superbag.xml
push eax
lea eax, [ebp - 0x14]
mov byte [ebp - 4], 6
push eax
call sub.MFC42.DLL_operator_3
push eax
lea ecx, [esi + 8]
mov byte [ebp - 4], 7
call sub.MFC42.DLL_CString::operator_1
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 6
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 3
call sub.MFC42.DLL_CString::CString
push str.http:__theme.qq.com_superbag.xml
mov ecx, ebx
call sub.MFC42.DLL_CString::operator_2
mov ecx, dword [ebp - 0xc]
or dword [ebp - 4], 0xffffffff
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x4d5def
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
mov eax, 0x5149c4
call fcn.00484660
sub esp, 0x48
push ebx
push esi
lea ecx, [ebp - 0x54]
call fcn.004840b8
push dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x4d5e68
push 0xc
lea eax, [ebp - 0x18]
pop esi
push esi
push ebx
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
mov dword [ebp - 0x18], esi
lea eax, [ebp - 0x18]
mov dword [ebp - 0x14], ebx
push 1
pop esi
push eax
mov dword [ebp - 0x10], esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x4d5e6b
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [ebp - 0x54]
call sub.MFC42.DLL_CFileFind::Close
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x54]
call sub.MFC42.DLL_CFileFind::CFileFind
xor eax, eax
jmp 0x4d5eee
push 1
pop esi
lea ecx, [ebp - 0x54]
call sub.MFC42.DLL_CFileFind::Close
lea ecx, [ebp - 0x38]
call fcn.004840b8
push ebx
lea ecx, [ebp - 0x38]
push dword [ebp + 0xc]
mov byte [ebp - 4], 1
call sub.MFC42.DLL_CFileFind::FindFile
test eax, eax
jne 0x4d5ec8
lea ecx, [ebp - 0x1c]
call sub.MFC42.DLL_CFile::CFile
push ebx
push 0x1002
push dword [ebp + 0xc]
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 2
call sub.MFC42.DLL_CFile::Open
test eax, eax
jne 0x4d5eb2
xor esi, esi
lea ecx, [ebp - 0x38]
call sub.MFC42.DLL_CFileFind::Close
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 1
call fcn.0048433a
jmp 0x4d5ed5
lea ecx, [ebp - 0x38]
call sub.MFC42.DLL_CFileFind::Close
mov eax, dword [ebp + 0x10]
mov dword [eax], esi
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], bl
call sub.MFC42.DLL_CFileFind::CFileFind
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x54]
call sub.MFC42.DLL_CFileFind::CFileFind
mov eax, esi
mov ecx, dword [ebp - 0xc]
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 0xc

Function at 0x4d665d
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, 0x514ceb
call fcn.00484660
push ecx
push esi
mov esi, ecx
mov dword [ebp - 0x10], esi
lea ecx, [esi + 0x30]
mov dword [ebp - 4], 7
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 0x2c]
mov byte [ebp - 4], 6
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 0x28]
mov byte [ebp - 4], 5
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 0x24]
mov byte [ebp - 4], 4
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 0x20]
mov byte [ebp - 4], 3
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 0x1c]
mov byte [ebp - 4], 2
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 0x14]
mov byte [ebp - 4], 1
call sub.MFC42.DLL_CString::CString
and byte [ebp - 4], 0
lea ecx, [esi + 0x10]
call sub.MFC42.DLL_CString::CString
or dword [ebp - 4], 0xffffffff
lea ecx, [esi + 0xc]
call sub.MFC42.DLL_CString::CString
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
leave
ret
Function at 0x4d66ea
Capabilities:
Delete file

Disassembly:
mov eax, 0x514d1c
call fcn.00484660
push ebx
push esi
push edi
mov esi, ecx
push dword [ebp + 0xc]
lea ecx, [esi + 0x13c]
mov dword [ebp - 4], 1
call sub.MFC42.DLL_CMapStringToOb::operator__
mov ebx, dword [ebp + 0x10]
lea ecx, [esi + 0x174]
mov dword [eax], ebx
push dword [ebp + 0xc]
call sub.MFC42.DLL_CMapStringToOb::operator__
mov ecx, dword [ebp + 0x14]
mov dword [eax], ecx
push dword [ebp + 0xc]
mov edi, dword [esi + 0x20]
lea ecx, [esi + 0x190]
call sub.MFC42.DLL_CMapStringToPtr::operator__
cmp ebx, 1
mov dword [eax], edi
je 0x4d67b8
cmp ebx, 2
je 0x4d67c1
jle 0x4d6827
cmp ebx, 4
jg 0x4d6827
and dword [esi + 0x74], 0
push 0x154
call sub.MFC42.DLL_operatornew
mov edi, eax
pop ecx
mov dword [ebp + 0x10], edi
test edi, edi
mov byte [ebp - 4], 3
je 0x4d6780
mov ecx, edi
call dword [sym.imp.QQBaseClassInDll.dll_public:_void___thiscall_CHttpDownload::constructor_void_]
mov dword [edi], 0x52be20
mov ecx, edi
jmp 0x4d6782
xor ecx, ecx
mov byte [ebp - 4], 1
mov dword [esi + 0x74], ecx
test ecx, ecx
je 0x4d6827
push esi
call dword [sym.imp.QQBaseClassInDll.dll_public:_void___thiscall_CHttpDownload::SetUIInterface_class_CHttpDownloadUIInterface__]
push dword [ebp + 0xc]
mov edi, dword [esi + 0x74]
lea ecx, [esi + 0x1ac]
call sub.MFC42.DLL_CMapStringToPtr::operator__
push 0
mov dword [eax], edi
push dword [ebp + 0xc]
mov ecx, dword [esi + 0x74]
push dword [ebp + 8]
jmp 0x4d6821
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
and dword [esi + 0x20], 0
push 0x154
call sub.MFC42.DLL_operatornew
mov edi, eax
pop ecx
mov dword [ebp + 0x10], edi
test edi, edi
mov byte [ebp - 4], 2
je 0x4d67ef
mov ecx, edi
call dword [sym.imp.QQBaseClassInDll.dll_public:_void___thiscall_CHttpDownload::constructor_void_]
mov dword [edi], 0x52be20
mov ecx, edi
jmp 0x4d67f1
xor ecx, ecx
mov byte [ebp - 4], 1
mov dword [esi + 0x20], ecx
test ecx, ecx
je 0x4d6827
push esi
call dword [sym.imp.QQBaseClassInDll.dll_public:_void___thiscall_CHttpDownload::SetUIInterface_class_CHttpDownloadUIInterface__]
push dword [ebp + 0xc]
mov edi, dword [esi + 0x20]
lea ecx, [esi + 0x190]
call sub.MFC42.DLL_CMapStringToPtr::operator__
push 0
mov dword [eax], edi
push dword [ebp + 0xc]
mov ecx, dword [esi + 0x20]
push dword [ebp + 8]
call dword [sym.imp.QQBaseClassInDll.dll_public:_unsigned_int___thiscall_CHttpDownload::Download_char_const___char_const___struct__SYSTEMTIME__]
and byte [ebp - 4], 0
lea ecx, [ebp + 8]
call sub.MFC42.DLL_CString::CString
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call sub.MFC42.DLL_CString::CString
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 0x10
Function at 0x4d8092
Capabilities:
Check if file exists
Create directory
Delete file
Get file attributes

Disassembly:
mov eax, 0x514fec
call fcn.00484660
sub esp, 0x4c
push ebx
push esi
mov esi, ecx
push edi
push 0x5760b8
lea eax, [ebp - 0x10]
lea edi, [esi + 0x5c]
push edi
push eax
call sub.MFC42.DLL_operator_3
xor ebx, ebx
lea ecx, [ebp - 0x3c]
mov dword [ebp - 4], ebx
call fcn.004840b8
mov eax, dword [esi + 0x60]
push ebx
push eax
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 1
call sub.MFC42.DLL_CFileFind::FindFile
test eax, eax
jne 0x4d8134
push dword [edi]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x4d8134
push 0xc
lea eax, [ebp - 0x1c]
push ebx
push eax
call sub.MSVCRT.dll_memset
mov edi, dword [edi]
add esp, 0xc
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x1c], 0xc
push eax
push edi
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], 1
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x4d8134
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [ebp - 0x3c]
call sub.MFC42.DLL_CFileFind::Close
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], bl
call sub.MFC42.DLL_CFileFind::CFileFind
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call sub.MFC42.DLL_CString::CString
xor eax, eax
jmp 0x4d81fe
lea ecx, [ebp - 0x3c]
call sub.MFC42.DLL_CFileFind::Close
lea ecx, [ebp - 0x58]
call fcn.004840b8
mov eax, dword [esi + 0x60]
push ebx
push eax
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 2
call sub.MFC42.DLL_CFileFind::FindFile
test eax, eax
jne 0x4d81bd
lea ecx, [ebp - 0x20]
call sub.MFC42.DLL_CFile::CFile
mov esi, dword [esi + 0x60]
push ebx
push 0x1002
push esi
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 3
call sub.MFC42.DLL_CFile::Open
test eax, eax
jne 0x4d817f
xor esi, esi
jmp 0x4d8182
push 1
pop esi
lea ecx, [ebp - 0x58]
call sub.MFC42.DLL_CFileFind::Close
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 2
call fcn.0048433a
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 1
call sub.MFC42.DLL_CFileFind::CFileFind
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], bl
call sub.MFC42.DLL_CFileFind::CFileFind
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call sub.MFC42.DLL_CString::CString
mov eax, esi
jmp 0x4d81fe
cmp dword [ebp + 8], 1
jne 0x4d81d8
push dword [esi + 0x60]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push dword [esi + 0x60]
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 1
call sub.MFC42.DLL_CFileFind::CFileFind
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], bl
call sub.MFC42.DLL_CFileFind::CFileFind
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 4
Function at 0x4d86a5
Capabilities:
Read .ini file

Disassembly:
mov eax, 0x5150c4
call fcn.00484660
sub esp, 0x108
and byte [ebp - 0x114], 0
push esi
push edi
mov esi, ecx
push 0x40
xor eax, eax
pop ecx
lea edi, [ebp - 0x113]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea ecx, [ebp - 0x10]
stosb byte es:[edi], al
call sub.MFC42.DLL_CString::CString_5
push dword [ebp + 8]
and dword [ebp - 4], 0
lea eax, [ebp - 0x10]
push 0x57089c
push eax
call sub.MFC42.DLL_CString::Format
add esp, 0xc
lea eax, [ebp - 0x114]
push dword [esi + 0x60]
push 0x104
push eax
push 0x51a314
push str.userpanelver
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
pop edi
pop esi
test eax, eax
je 0x4d8727
mov ecx, dword [ebp + 0xc]
lea eax, [ebp - 0x114]
push eax
call sub.MFC42.DLL_CString::operator_2
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call sub.MFC42.DLL_CString::CString
mov ecx, dword [ebp - 0xc]
push 1
pop eax
mov dword fs:[0], ecx
leave
ret 8
Function at 0x4d93f2
Capabilities:
Read .ini file

Disassembly:
mov eax, 0x515194
call fcn.00484660
sub esp, 0x120
push ebx
push esi
push edi
mov edi, ecx
push ecx
mov dword [ebp - 0x10], edi
lea esi, [edi + 0x60]
mov ecx, esp
mov dword [ebp - 0x14], esp
push esi
call sub.MFC42.DLL_CString::CString_4
or dword [ebp - 4], 0xffffffff
mov ecx, edi
call fcn.004d9512
test eax, eax
jne 0x4d942c
push 1
jmp 0x4d9458
push dword [esi]
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea eax, [ebp - 0x12c]
mov ebx, 0x51a314
push 0x104
push eax
push ebx
push str.PanelArray
push str.PanelInfo
call edi
test eax, eax
jne 0x4d945e
push 2
pop eax
jmp 0x4d9503
lea ecx, [ebp - 0x28]
call fcn.004bce5e
lea eax, [ebp - 0x28]
mov dword [ebp - 4], 1
push eax
mov eax, dword [ebp - 0x10]
lea ecx, [eax + 0x78]
call dword [sym.imp.QQBaseClassInDll.dll_public:_void___thiscall_CDataProcessing::GetPanelIDArray_class_CArray_class_CString__class_CString___]
mov eax, dword [ebp - 0x20]
and dword [ebp - 0x14], 0
dec eax
test eax, eax
jl 0x4d94e9
mov eax, dword [esi]
mov ecx, dword [ebp - 0x24]
mov edx, dword [ebp - 0x14]
push eax
lea eax, [ebp - 0x12c]
push 0x104
mov ecx, dword [ecx + edx*4]
push eax
push ebx
push str.syspanel
push ecx
call edi
lea eax, [ebp - 0x12c]
lea ecx, [ebp - 0x10]
push eax
call sub.MFC42.DLL_CString::CString_3
push str.TRUE
mov byte [ebp - 4], 2
push dword [ebp - 0x10]
call dword [sym.imp.MSVCRT.dll__mbsicmp]
pop ecx
mov byte [ebp - 4], 1
pop ecx
test eax, eax
lea ecx, [ebp - 0x10]
je 0x4d94ee
call sub.MFC42.DLL_CString::CString
mov eax, dword [ebp - 0x20]
inc dword [ebp - 0x14]
dec eax
cmp dword [ebp - 0x14], eax
jle 0x4d9489
push 3
pop esi
jmp 0x4d94f5
call sub.MFC42.DLL_CString::CString
xor esi, esi
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.004bceab
mov eax, esi
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret

Function at 0x4d96d0
Capabilities:
Check if file exists
Copy file
Create directory
Get file attributes

Disassembly:
mov eax, 0x5151f0
call fcn.00484660
sub esp, 0x28
push esi
mov esi, ecx
lea ecx, [ebp - 0x34]
call fcn.004840b8
push dword [esi + 0x68]
and dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x4d973f
push 0xc
lea eax, [ebp - 0x18]
push 0
push eax
call sub.MSVCRT.dll_memset
mov esi, dword [esi + 0x68]
and dword [ebp - 0x14], 0
add esp, 0xc
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], 0xc
mov dword [ebp - 0x10], 1
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x4d973f
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [ebp - 0x34]
call sub.MFC42.DLL_CFileFind::Close
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x34]
call sub.MFC42.DLL_CFileFind::CFileFind
xor eax, eax
jmp 0x4d9764
lea ecx, [ebp - 0x34]
call sub.MFC42.DLL_CFileFind::Close
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CopyFileA]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x34]
call sub.MFC42.DLL_CFileFind::CFileFind
push 1
pop eax
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
leave
ret 0xc