joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4c1fe2
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
mov eax, 0x4ef20c
call fcn.00471450
sub esp, 0x48
push ebx
push esi
lea ecx, [ebp - 0x54]
call sub.MFC42.DLL_CFileFind::CFileFind
push dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x4c205b
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 0x4c205e
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 fcn.00470ef6
xor eax, eax
jmp 0x4c20e1
push 1
pop esi
lea ecx, [ebp - 0x54]
call sub.MFC42.DLL_CFileFind::Close
lea ecx, [ebp - 0x38]
call sub.MFC42.DLL_CFileFind::CFileFind
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 0x4c20bb
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 0x4c20a5
xor esi, esi
lea ecx, [ebp - 0x38]
call sub.MFC42.DLL_CFileFind::Close
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 1
call fcn.0047116c
jmp 0x4c20c8
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 fcn.00470ef6
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x54]
call fcn.00470ef6
mov eax, esi
mov ecx, dword [ebp - 0xc]
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 0xc

Function at 0x4c2850
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, 0x4ef533
call fcn.00471450
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 0x4c28dd
Capabilities:
Delete file

Disassembly:
mov eax, 0x4ef564
call fcn.00471450
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 0x4c29ab
cmp ebx, 2
je 0x4c29b4
jle 0x4c2a1a
cmp ebx, 4
jg 0x4c2a1a
and dword [esi + 0x74], 0
push 0x150
call sub.MFC42.DLL_operatornew
mov edi, eax
pop ecx
mov dword [ebp + 0x10], edi
test edi, edi
mov byte [ebp - 4], 3
je 0x4c2973
mov ecx, edi
call dword [sym.imp.QQBaseClassInDll.dll_public:_void___thiscall_CHttpDownload::constructor_void_]
mov dword [edi], 0x5032c0
mov ecx, edi
jmp 0x4c2975
xor ecx, ecx
mov byte [ebp - 4], 1
mov dword [esi + 0x74], ecx
test ecx, ecx
je 0x4c2a1a
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 0x4c2a14
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
and dword [esi + 0x20], 0
push 0x150
call sub.MFC42.DLL_operatornew
mov edi, eax
pop ecx
mov dword [ebp + 0x10], edi
test edi, edi
mov byte [ebp - 4], 2
je 0x4c29e2
mov ecx, edi
call dword [sym.imp.QQBaseClassInDll.dll_public:_void___thiscall_CHttpDownload::constructor_void_]
mov dword [edi], 0x5032c0
mov ecx, edi
jmp 0x4c29e4
xor ecx, ecx
mov byte [ebp - 4], 1
mov dword [esi + 0x20], ecx
test ecx, ecx
je 0x4c2a1a
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 0x4c4285
Capabilities:
Check if file exists
Create directory
Delete file
Get file attributes

Disassembly:
mov eax, 0x4ef834
call fcn.00471450
sub esp, 0x4c
push ebx
push esi
mov esi, ecx
push edi
push 0x551404
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 sub.MFC42.DLL_CFileFind::CFileFind
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 0x4c4327
push dword [edi]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x4c4327
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 0x4c4327
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 fcn.00470ef6
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call sub.MFC42.DLL_CString::CString
xor eax, eax
jmp 0x4c43f1
lea ecx, [ebp - 0x3c]
call sub.MFC42.DLL_CFileFind::Close
lea ecx, [ebp - 0x58]
call sub.MFC42.DLL_CFileFind::CFileFind
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 0x4c43b0
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 0x4c4372
xor esi, esi
jmp 0x4c4375
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.0047116c
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 1
call fcn.00470ef6
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], bl
call fcn.00470ef6
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call sub.MFC42.DLL_CString::CString
mov eax, esi
jmp 0x4c43f1
cmp dword [ebp + 8], 1
jne 0x4c43cb
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 fcn.00470ef6
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], bl
call fcn.00470ef6
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 0x4c4898
Capabilities:
Read .ini file

Disassembly:
mov eax, 0x4ef90c
call fcn.00471450
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_4
push dword [ebp + 8]
and dword [ebp - 4], 0
lea eax, [ebp - 0x10]
push 0x54ce68
push eax
call sub.MFC42.DLL_CString::Format
add esp, 0xc
lea eax, [ebp - 0x114]
push dword [esi + 0x60]
push 0x104
push eax
push 0x4f423c
push str.userpanelver
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
pop edi
pop esi
test eax, eax
je 0x4c491a
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 0x4c55e7
Capabilities:
Read .ini file

Disassembly:
mov eax, 0x4ef9dc
call fcn.00471450
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_3
or dword [ebp - 4], 0xffffffff
mov ecx, edi
call fcn.004c5707
test eax, eax
jne 0x4c5621
push 1
jmp 0x4c564d
push dword [esi]
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea eax, [ebp - 0x12c]
mov ebx, 0x4f423c
push 0x104
push eax
push ebx
push str.PanelArray
push str.PanelInfo
call edi
test eax, eax
jne 0x4c5653
push 2
pop eax
jmp 0x4c56f8
lea ecx, [ebp - 0x28]
call fcn.004ac2e4
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 0x4c56de
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_1
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 0x4c56e3
call sub.MFC42.DLL_CString::CString
mov eax, dword [ebp - 0x20]
inc dword [ebp - 0x14]
dec eax
cmp dword [ebp - 0x14], eax
jle 0x4c567e
push 3
pop esi
jmp 0x4c56ea
call sub.MFC42.DLL_CString::CString
xor esi, esi
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.004ac331
mov eax, esi
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret

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

Disassembly:
mov eax, 0x4efa38
call fcn.00471450
sub esp, 0x28
push esi
mov esi, ecx
lea ecx, [ebp - 0x34]
call sub.MFC42.DLL_CFileFind::CFileFind
push dword [esi + 0x68]
and dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x4c5934
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 0x4c5934
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 fcn.00470ef6
xor eax, eax
jmp 0x4c5959
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 fcn.00470ef6
push 1
pop eax
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
leave
ret 0xc
Function at 0x4c5968
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
mov eax, 0x4efa5c
call fcn.00471450
sub esp, 0x48
push ebx
push esi
lea ecx, [ebp - 0x54]
call sub.MFC42.DLL_CFileFind::CFileFind
push dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x4c59e1
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 0x4c59e4
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 fcn.00470ef6
xor eax, eax
jmp 0x4c5a67
push 1
pop esi
lea ecx, [ebp - 0x54]
call sub.MFC42.DLL_CFileFind::Close
lea ecx, [ebp - 0x38]
call sub.MFC42.DLL_CFileFind::CFileFind
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 0x4c5a41
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 0x4c5a2b
xor esi, esi
lea ecx, [ebp - 0x38]
call sub.MFC42.DLL_CFileFind::Close
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 1
call fcn.0047116c
jmp 0x4c5a4e
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 fcn.00470ef6
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x54]
call fcn.00470ef6
mov eax, esi
mov ecx, dword [ebp - 0xc]
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 0xc

Function at 0x4c5a77
Capabilities:
Read .ini file

Disassembly:
mov eax, 0x4efa8f
call fcn.00471450
sub esp, 0x10c
and dword [ebp - 0x10], 0
push ebx
push 1
lea eax, [ebp - 0x118]
pop ebx
push dword [ecx + 0x6c]
mov dword [ebp - 4], ebx
push 0x104
push eax
push 0x4f423c
push 0x5546e8
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea ecx, [ebp - 0x14]
call sub.MFC42.DLL_CString::CString_4
lea eax, [ebp - 0x118]
lea ecx, [ebp - 0x14]
push eax
mov byte [ebp - 4], 2
call sub.MFC42.DLL_CString::operator_2
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x14]
push eax
call sub.MFC42.DLL_CString::CString_3
mov dword [ebp - 0x10], ebx
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], bl
call sub.MFC42.DLL_CString::CString
and byte [ebp - 4], 0
lea ecx, [ebp + 0xc]
call sub.MFC42.DLL_CString::CString
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
pop ebx
mov dword fs:[0], ecx
leave
ret 8
Function at 0x4c9db3
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x94
push esi
lea eax, [ebp - 0x94]
push edi
mov edi, ecx
push eax
mov dword [ebp - 0x94], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x90], 5
ja 0x4c9df2
jne 0x4c9deb
cmp dword [ebp - 0x8c], 1
jae 0x4c9df2
mov esi, 0x735
jmp 0x4c9df7
mov esi, 0x734
call sub.MFC42.DLL_AfxGetModuleState
mov eax, dword [eax + 0xc]
push 0
movzx ecx, si
mov esi, dword [sym.imp.USER32.dll_LoadImageA]
push 0x10
push 0x10
push 1
push ecx
push eax
call esi
test eax, eax
mov dword [edi + 0x4b8], eax
je 0x4c9e4c
call sub.MFC42.DLL_AfxGetModuleState
mov eax, dword [eax + 0xc]
push 0
push 0x10
push 0x10
push 1
push 0x162
push eax
call esi
test eax, eax
mov dword [edi + 0x4bc], eax
jne 0x4c9e50
push dword [edi + 0x4b8]
call dword [sym.imp.USER32.dll_DestroyIcon]
xor eax, eax
jmp 0x4c9e5e
push 0
push 0x435b
mov ecx, edi
call sub.MFC42.DLL_CDialog::Create
pop edi
pop esi
leave
ret
Function at 0x4cad90
Capabilities:
Terminate thread

Disassembly:
mov eax, 0x4f0829
call fcn.00471450
push ecx
push ecx
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x14], esi
mov dword [esi], 0x50aa98
mov eax, dword [esi + 0x2f0]
lea edi, [esi + 0x2f0]
test eax, eax
mov dword [ebp - 4], 0x11
je 0x4cadd7
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push 0x7d0
push dword [edi]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
and dword [ebp - 0x10], 0
mov byte [ebp - 4], 0x12
call sub.MFC42.DLL_AfxGetAppModuleState
mov eax, dword [eax + 4]
lea edx, [ebp - 0x10]
push edx
push 0x4f4918
mov eax, dword [eax + 0xd4]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x1c]
test eax, eax
mov eax, dword [ebp - 0x10]
jne 0x4cae1f
test eax, eax
je 0x4cae1f
mov ebx, dword [eax]
push 0x4f48f8
mov ecx, esi
mov edi, eax
call sub.MFC42.DLL_CCmdTarget::GetInterface
push eax
push edi
call dword [ebx + 0x2c]
mov eax, dword [ebp - 0x10]
test eax, eax
mov byte [ebp - 4], 0x11
je 0x4cae2d
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
lea ecx, [esi + 0x768]
mov byte [ebp - 4], 0x10
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 0x760]
mov byte [ebp - 4], 0xf
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 0x75c]
mov byte [ebp - 4], 0xe
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 0x2f8]
mov byte [ebp - 4], 0xd
call dword [sym.imp.QQBaseClassInDll.dll_public_virtual:_void___thiscall_CQQShowWnd::destructor_void_]
lea ecx, [esi + 0x2ec]
mov byte [ebp - 4], 0xc
call sub.MFC42.DLL_CString::CString
lea edi, [esi + 0x2e4]
mov byte [ebp - 4], 0xb
mov dword [ebp - 0x10], edi
mov dword [edi], 0x50ab6c
mov byte [ebp - 4], 0xb
mov dword [edi], 0x50567c
mov ecx, edi
mov byte [ebp - 4], 0x14
call sub.MFC42.DLL_CGdiObject::DeleteObject
mov ebx, 0x4f65ac
mov byte [ebp - 4], 0xb
mov dword [edi], ebx
mov edi, dword [sym.imp.QQBaseClassInDll.dll_public_virtual:_void___thiscall_CHypelinkButton::destructor_void_]
lea ecx, [esi + 0x268]
mov byte [ebp - 4], 0xa
call edi
lea ecx, [esi + 0x1ec]
mov byte [ebp - 4], 9
call edi
lea ecx, [esi + 0x170]
mov byte [ebp - 4], 8
call edi
lea ecx, [esi + 0xf4]
mov byte [ebp - 4], 7
call edi
lea ecx, [esi + 0xe0]
mov byte [ebp - 4], 6
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 0xdc]
mov byte [ebp - 4], 5
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 0xd8]
mov byte [ebp - 4], 4
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 0x94]
mov byte [ebp - 4], 3
call sub.MFC42.DLL_CWnd::CWnd
lea edi, [esi + 0x88]
mov byte [ebp - 4], 2
mov dword [ebp - 0x10], edi
mov dword [edi], 0x5081f8
mov byte [ebp - 4], 2
mov dword [edi], 0x50567c
mov ecx, edi
mov byte [ebp - 4], 0x16
call sub.MFC42.DLL_CGdiObject::DeleteObject
mov byte [ebp - 4], 2
mov dword [edi], ebx
lea ecx, [esi + 0x5c]
mov byte [ebp - 4], 1
call sub.MFC42.DLL_CString::CString
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
pop edi
mov ecx, dword [ebp - 0xc]
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x4cdb15
Capabilities:
Create pipe
Create two anonymous pipes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
push esi
push edi
push 1
pop edi
xor esi, esi
mov dword [ebp - 0xc], ecx
push 0xfffffffffffffff5
mov dword [ebp - 0x28], 0xc
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x24], esi
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
lea eax, [ebp - 0x28]
or dword [ebp - 8], 0xffffffff
or dword [ebp - 4], 0xffffffff
push esi
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
je 0x4cdc17
or dword [ebp - 0x18], 0xffffffff
push 2
push esi
lea eax, [ebp - 0x18]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call esi
push eax
push dword [ebp - 8]
call esi
mov ebx, dword [sym.imp.KERNEL32.dll_DuplicateHandle]
push eax
call ebx
mov ecx, dword [ebp - 0xc]
push edi
test eax, eax
lea eax, [ebp - 8]
push edi
push eax
jne 0x4cdb9e
call fcn.004ce0c0
mov ecx, dword [ebp - 0xc]
push edi
lea eax, [ebp - 4]
push edi
push eax
jmp 0x4cdc12
call fcn.004ce0c0
lea eax, [ebp - 0x28]
or dword [ebp - 0x14], 0xffffffff
or dword [ebp - 0x10], 0xffffffff
push 0
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
je 0x4cdc17
or dword [ebp - 0x1c], 0xffffffff
push 2
push 0
lea eax, [ebp - 0x1c]
push 0
push eax
call esi
push eax
push dword [ebp - 0x10]
call esi
push eax
call ebx
test eax, eax
push edi
push edi
jne 0x4cdc1b
mov esi, dword [ebp - 0xc]
lea eax, [ebp - 8]
push eax
mov ecx, esi
call fcn.004ce0c0
push edi
lea eax, [ebp - 4]
push edi
push eax
mov ecx, esi
call fcn.004ce0c0
push edi
lea eax, [ebp - 0x14]
push edi
push eax
mov ecx, esi
call fcn.004ce0c0
push edi
lea eax, [ebp - 0x10]
push edi
push eax
mov ecx, esi
call fcn.004ce0c0
xor eax, eax
jmp 0x4cdc87
mov esi, dword [ebp - 0xc]
lea eax, [ebp - 0x10]
push eax
mov ecx, esi
call fcn.004ce0c0
lea eax, [ebp - 0x14]
mov ecx, esi
push eax
lea eax, [ebp - 4]
push eax
call fcn.004cdc8c
test eax, eax
jne 0x4cdc40
xor ebx, ebx
jmp 0x4cdc51
lea eax, [ebp - 4]
mov ecx, esi
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.004cdd1f
mov ebx, eax
push edi
lea eax, [ebp - 0x18]
push edi
push eax
mov ecx, esi
call fcn.004ce0c0
push edi
lea eax, [ebp - 4]
push edi
push eax
mov ecx, esi
call fcn.004ce0c0
push edi
lea eax, [ebp - 0x14]
push edi
push eax
mov ecx, esi
call fcn.004ce0c0
push edi
lea eax, [ebp - 0x1c]
push edi
push eax
mov ecx, esi
call fcn.004ce0c0
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4cdc8c
Capabilities:
Create a process with modified i/o handles and window
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
cmp dword [eax], 0xffffffff
je 0x4cdd16
mov ebx, dword [ebp + 0xc]
cmp dword [ebx], 0xffffffff
je 0x4cdd16
xor esi, esi
push 0x10
lea eax, [ebp - 0x10]
push esi
push eax
call sub.MSVCRT.dll_memset
push 0x44
lea eax, [ebp - 0x54]
pop edi
push edi
push esi
push eax
call sub.MSVCRT.dll_memset
mov eax, dword [ebp + 8]
add esp, 0x18
or word [ebp - 0x28], 0x101
mov dword [ebp - 0x54], edi
mov eax, dword [eax]
mov word [ebp - 0x24], si
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], eax
mov eax, dword [ebx]
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x54]
push eax
push esi
push esi
push esi
push 1
push esi
push esi
push str.ipconfig__all
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
mov edi, eax
cmp edi, esi
je 0x4cdd16
push dword [ebp - 0x10]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0xc]
call esi
mov eax, edi
jmp 0x4cdd18
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 8