joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4b8a26
Capabilities:
Create process on windows

Disassembly:
mov eax, 0x4fbe68
call fcn.00475fe0
sub esp, 0x30
push ebx
push esi
mov esi, ecx
push edi
lea ecx, [ebp - 0x20]
call sub.MFC42.DLL_CString::CString_4
push dword [esi + 0x60]
and dword [ebp - 4], 0
call dword [sym.imp.BasicCtrlDll.dll_unsigned_long_int___cdecl_GetCurrentUin_struct_IQQCore__]
pop ecx
mov edi, 0x551760
push eax
lea eax, [ebp - 0x20]
push edi
push eax
call sub.MFC42.DLL_CString::Format
push 0x10
lea eax, [ebp - 0x3c]
push 0x30
push eax
call sub.MSVCRT.dll_memset
add esp, 0x18
lea ecx, [ebp - 0x1c]
call sub.MFC42.DLL_CString::CString_4
push dword [esi + 0x20]
lea eax, [ebp - 0x1c]
mov byte [ebp - 4], 1
push edi
push eax
call sub.MFC42.DLL_CString::Format
mov ecx, dword [ebp - 0x1c]
mov eax, dword [ecx - 8]
push eax
push ecx
lea ecx, [ebp - 0x2c]
sub ecx, eax
push ecx
call sub.MSVCRT.dll_memcpy
add esp, 0x18
lea ecx, [ebp - 0x10]
call sub.MFC42.DLL_CString::CString_4
mov eax, dword [ebp - 0x20]
mov byte [ebp - 4], 2
mov dword [ebp - 0x28], eax
mov ecx, dword [eax - 8]
lea edi, [ecx + 0x20]
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x14], edi
mov ebx, dword [eax - 8]
lea eax, [ebp - 0x14]
push eax
push edi
call sub.MFC42.DLL_CString::GetBuffer
push eax
lea eax, [ebp - 0x3c]
push eax
push ebx
push dword [ebp - 0x28]
call fcn.0043f34f
add esp, 0x14
lea ecx, [ebp - 0x10]
push edi
call sub.MFC42.DLL_CString::ReleaseBuffer
push dword [ebp - 0x14]
lea ecx, [ebp - 0x10]
call sub.MFC42.DLL_CString::GetBufferSetLength
push dword [ebp - 0x14]
lea eax, [ebp - 0x24]
push dword [ebp - 0x10]
push eax
call dword [sym.imp.BasicCtrlDll.dll_class_CString___cdecl_Base64Encode_char_const___int_]
add esp, 0xc
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 3
call sub.MFC42.DLL_CString::CString_4
mov byte [ebp - 4], 4
push dword [esi + 0x20]
lea eax, [ebp - 0x18]
push dword [ebp + 8]
push dword [ebp - 0x24]
push str._s__d__d_0_1
push eax
call sub.MFC42.DLL_CString::Format
add esp, 0x14
lea eax, [ebp - 0x2c]
mov ecx, esi
push eax
call fcn.004b89b9
lea eax, [ebp + 8]
mov ecx, esi
push eax
mov byte [ebp - 4], 5
call fcn.004b89b9
mov eax, dword [eax]
push 5
push 0
mov byte [ebp - 4], 6
push dword [ebp - 0x18]
push eax
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
lea ecx, [ebp + 8]
mov byte [ebp - 4], 5
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 4
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 3
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 2
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 1
call sub.MFC42.DLL_CString::CString
and byte [ebp - 4], 0
lea ecx, [ebp - 0x1c]
call sub.MFC42.DLL_CString::CString
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x20]
call sub.MFC42.DLL_CString::CString
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4
Function at 0x4ba525
Capabilities:
Check for peb ntglobalflag flag

Disassembly:
mov eax, 0x4fc1ef
call fcn.00475fe0
push ecx
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esi
call fcn.00475aac
xor ebx, ebx
lea ecx, [esi + 0x20]
mov dword [ebp - 4], ebx
call fcn.004e6c24
lea ecx, [esi + 0x28]
mov byte [ebp - 4], 1
call fcn.004e6c24
lea ecx, [esi + 0x30]
mov byte [ebp - 4], 2
call fcn.004e6c24
lea ecx, [esi + 0x38]
mov byte [ebp - 4], 3
call fcn.004e6c24
lea ecx, [esi + 0x40]
mov byte [ebp - 4], 4
call fcn.004e6c24
lea ecx, [esi + 0x48]
mov byte [ebp - 4], 5
call fcn.004e6c24
lea ecx, [esi + 0x50]
mov byte [ebp - 4], 6
call fcn.004e6c24
lea ecx, [esi + 0x58]
mov byte [ebp - 4], 7
call fcn.004e6c24
lea ecx, [esi + 0x60]
mov byte [ebp - 4], 8
call fcn.004e6c24
lea ecx, [esi + 0x68]
mov byte [ebp - 4], 9
call fcn.004e6c24
lea ecx, [esi + 0x70]
mov byte [ebp - 4], 0xa
call fcn.004e6c24
mov edi, dword [sym.imp.QQBaseClassInDll.dll_public:_void___thiscall_CbmpImageList::constructor_void_]
lea ecx, [esi + 0x78]
mov byte [ebp - 4], 0xb
call edi
lea ecx, [esi + 0xa4]
mov byte [ebp - 4], 0xc
call edi
lea ecx, [esi + 0xd0]
mov byte [ebp - 4], 0xd
call edi
lea ecx, [esi + 0xfc]
mov byte [ebp - 4], 0xe
call edi
lea ecx, [esi + 0x128]
mov byte [ebp - 4], 0xf
call dword [sym.imp.QQBaseClassInDll.dll_public:_void___thiscall_CbmpImageListEx::constructor_void_]
lea ecx, [esi + 0x154]
mov byte [ebp - 4], 0x10
call fcn.004e6c24
mov byte [ebp - 4], 0x11
mov dword [esi + 0x198], 0x517260
mov dword [esi], 0x517200
mov dword [esi + 0x174], ebx
mov ecx, dword [ebp - 0xc]
or dword [ebp - 4], 0xffffffff
mov dword [esi + 0x160], ebx
mov dword [esi + 0x168], ebx
mov dword [esi + 0x164], ebx
mov dword [esi + 0x16c], ebx
mov dword [esi + 0x170], ebx
mov dword [esi + 0x188], 1
mov dword [esi + 0x18c], ebx
mov dword [esi + 0x178], ebx
mov dword [esi + 0x17c], ebx
mov dword [esi + 0x180], ebx
mov dword [esi + 0x184], ebx
mov dword [esi + 0x190], ebx
mov dword [esi + 0x194], ebx
mov dword [esi + 0x15c], ebx
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x4ba6ae
Capabilities:
Check for peb ntglobalflag flag

Disassembly:
mov eax, 0x4fc2d3
call fcn.00475fe0
push ecx
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esi
mov dword [esi], 0x517200
lea ebx, [esi + 0x20]
mov dword [ebp - 4], 0x11
mov ecx, ebx
call sub.MFC42.DLL_CImageList::DeleteImageList
lea ecx, [esi + 0x30]
call sub.MFC42.DLL_CImageList::DeleteImageList
lea ecx, [esi + 0x38]
call sub.MFC42.DLL_CImageList::DeleteImageList
lea ecx, [esi + 0x40]
call sub.MFC42.DLL_CImageList::DeleteImageList
lea ecx, [esi + 0x48]
call sub.MFC42.DLL_CImageList::DeleteImageList
mov edi, dword [sym.imp.QQBaseClassInDll.dll_public:_void___thiscall_CbmpImageList::DeleteAllBitmaps_void_]
lea ecx, [esi + 0x78]
call edi
lea ecx, [esi + 0xa4]
call edi
lea ecx, [esi + 0xd0]
call edi
lea ecx, [esi + 0xfc]
call edi
lea ecx, [esi + 0x68]
call sub.MFC42.DLL_CImageList::DeleteImageList
lea ecx, [esi + 0x70]
call sub.MFC42.DLL_CImageList::DeleteImageList
lea edi, [esi + 0x154]
mov ecx, edi
call sub.MFC42.DLL_CImageList::DeleteImageList
mov ecx, edi
mov byte [ebp - 4], 0x10
call sub.MFC42.DLL_CImageList::CImageList
lea ecx, [esi + 0x128]
mov byte [ebp - 4], 0xf
call dword [sym.imp.QQBaseClassInDll.dll_public_virtual:_void___thiscall_CbmpImageListEx::destructor_void_]
mov edi, dword [sym.imp.QQBaseClassInDll.dll_public:_void___thiscall_CbmpImageList::destructor_void_]
lea ecx, [esi + 0xfc]
mov byte [ebp - 4], 0xe
call edi
lea ecx, [esi + 0xd0]
mov byte [ebp - 4], 0xd
call edi
lea ecx, [esi + 0xa4]
mov byte [ebp - 4], 0xc
call edi
lea ecx, [esi + 0x78]
mov byte [ebp - 4], 0xb
call edi
lea ecx, [esi + 0x70]
mov byte [ebp - 4], 0xa
call sub.MFC42.DLL_CImageList::CImageList
lea ecx, [esi + 0x68]
mov byte [ebp - 4], 9
call sub.MFC42.DLL_CImageList::CImageList
lea ecx, [esi + 0x60]
mov byte [ebp - 4], 8
call sub.MFC42.DLL_CImageList::CImageList
mov byte [ebp - 4], 7
lea ecx, [esi + 0x58]
call sub.MFC42.DLL_CImageList::CImageList
lea ecx, [esi + 0x50]
mov byte [ebp - 4], 6
call sub.MFC42.DLL_CImageList::CImageList
lea ecx, [esi + 0x48]
mov byte [ebp - 4], 5
call sub.MFC42.DLL_CImageList::CImageList
lea ecx, [esi + 0x40]
mov byte [ebp - 4], 4
call sub.MFC42.DLL_CImageList::CImageList
lea ecx, [esi + 0x38]
mov byte [ebp - 4], 3
call sub.MFC42.DLL_CImageList::CImageList
lea ecx, [esi + 0x30]
mov byte [ebp - 4], 2
call sub.MFC42.DLL_CImageList::CImageList
lea ecx, [esi + 0x28]
mov byte [ebp - 4], 1
call sub.MFC42.DLL_CImageList::CImageList
and byte [ebp - 4], 0
mov ecx, ebx
call sub.MFC42.DLL_CImageList::CImageList
or dword [ebp - 4], 0xffffffff
mov ecx, esi
call sub.MFC42.DLL_CCmdTarget::CCmdTarget
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x4bd66c
Capabilities:
Get common file path

Disassembly:
mov eax, 0x4fc8b8
call fcn.00475fe0
sub esp, 0x20c
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esi
call fcn.00475aac
lea edi, [esi + 0x20]
xor ebx, ebx
mov ecx, edi
mov dword [ebp - 4], ebx
call dword [sym.imp.QQBaseClassInDll.dll_protected:_void___thiscall_CHttpDownloadUIInterface::constructor_void_]
lea eax, [esi + 0x24]
push 0x10
push 0x23
push eax
mov byte [ebp - 4], 1
call sub.MSVCRT.dll_memset
add esp, 0xc
mov dword [esi + 0x34], 0x24
mov byte [ebp - 4], 2
mov dword [esi + 0x38], 0x518990
lea ecx, [esi + 0x40]
mov dword [esi + 0x3c], 0x51897c
call fcn.004bfee5
lea ecx, [esi + 0x54]
mov byte [ebp - 4], 3
call fcn.004bfee5
lea ecx, [esi + 0x80]
mov byte [ebp - 4], 4
call dword [sym.imp.QQBaseClassInDll.dll_public:_void___thiscall_CHttpDownload::constructor_void_]
mov eax, esi
mov byte [ebp - 4], 5
neg eax
sbb eax, eax
mov dword [edi], 0x518958
and eax, edi
lea edi, [esi + 0x80]
push eax
mov ecx, edi
mov dword [esi], 0x5188f8
mov dword [esi + 0x68], ebx
mov dword [esi + 0x6c], ebx
mov dword [esi + 0x78], ebx
mov dword [esi + 0x7c], ebx
mov dword [esi + 0x70], ebx
mov dword [esi + 0x74], ebx
call dword [sym.imp.QQBaseClassInDll.dll_public:_void___thiscall_CHttpDownload::SetUIInterface_class_CHttpDownloadUIInterface__]
lea eax, [ebp - 0x114]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea eax, [ebp - 0x218]
push eax
push ebx
lea eax, [ebp - 0x114]
push str.tempswf
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
lea eax, [ebp - 0x114]
mov ecx, edi
push eax
call dword [sym.imp.QQBaseClassInDll.dll_public:_void___thiscall_CHttpDownload::SetDownloadTempDir_char_const__]
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 0x4c06db
Capabilities:
Terminate thread

Disassembly:
mov eax, 0x4fced7
call fcn.00475fe0
sub esp, 0xc
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x18], esi
mov dword [esi], 0x518c20
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 0x502998
mov eax, dword [eax + 0xd4]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x1c]
test eax, eax
jne 0x4c0742
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x4c0742
mov ebx, dword [eax]
push 0x502978
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 0x503698
mov eax, dword [eax + 0xd4]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x1c]
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x4c0788
mov ebx, dword [eax]
push 0x503668
mov ecx, esi
mov edi, eax
call sub.MFC42.DLL_CCmdTarget::GetInterface
push eax
push 0xffffff5d
push edi
call dword [ebx + 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 0x4c07b0
push 0
push eax
call edi
push 0x7d0
push dword [esi + 0x8c]
call ebx
mov eax, dword [esi + 0x90]
test eax, eax
je 0x4c07cc
push 0
push eax
call edi
push 0x7d0
push dword [esi + 0x90]
call ebx
mov eax, dword [esi + 0x6c]
test eax, eax
je 0x4c07de
push eax
call sub.MFC42.DLL_operatordelete
and dword [esi + 0x6c], 0
pop ecx
mov eax, dword [esi + 0x74]
test eax, eax
je 0x4c07f0
push eax
call sub.MFC42.DLL_operatordelete
and dword [esi + 0x74], 0
pop ecx
mov ecx, esi
call fcn.004c2140
mov eax, dword [ebp - 0x10]
mov byte [ebp - 4], 2
test eax, eax
je 0x4c0808
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x14]
mov byte [ebp - 4], 1
test eax, eax
je 0x4c0819
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 0x4c1034
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 0x4c11b5
push 0x104
lea eax, [ebp - 0x11c]
push ebx
push eax
call sub.MSVCRT.dll_memset
lea eax, [ebp - 0x11c]
push eax
call fcn.004c11b9
lea eax, [ebp - 0x11c]
push 0x5567bc
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.004c11b9
cmp dword [ebp - 4], 0xffffffff
pop ecx
mov dword [ebp - 8], ebx
je 0x4c11ac
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.00440554
add esp, 0x14
cmp dword [edi + 0x70], ebx
jle 0x4c1181
mov dword [ebp + 8], ebx
mov esi, dword [edi + 0x74]
add esi, dword [ebp + 8]
test byte [esi], 2
je 0x4c1171
test byte [esi + 0x21], 2
jne 0x4c1171
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 0x4c1171
dec word [edi + 0x78]
or byte [esi + 0x21], 2
test byte [esi], 4
je 0x4c1171
lea eax, [ebp - 0x360]
push 0x50229c
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.004c126f
add esp, 0x24
or byte [esi + 0x21], 4
add dword [ebp + 8], 0x32
inc ebx
cmp ebx, dword [edi + 0x70]
jl 0x4c10eb
xor ebx, ebx
cmp word [edi + 0x78], bx
je 0x4c119b
lea eax, [ebp - 0x25c]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x4c11a2
mov dword [ebp - 8], 1
cmp dword [ebp - 8], ebx
je 0x4c10b2
pop esi
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FindClose]
pop edi
pop ebx
leave
ret
Function at 0x4c126f
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 0x4c1358
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 0x4c1358
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 0x4c1316
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 0x4c1336
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4c1358
push ebx
push ebx
push ebx
push 2
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov edi, eax
cmp edi, ebx
jne 0x4c135f
push dword [ebp - 4]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp + 0xc]
call esi
xor eax, eax
jmp 0x4c13f3
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 0x4c13aa
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 0x4c1388
push esi
push edi
push dword [ebp + 0x10]
call fcn.00440554
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 0x4c6bd4
Capabilities:
Create directory

Disassembly:
mov eax, 0x4fdb2f
call fcn.00475fe0
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_4
lea ecx, [esi + 8]
mov byte [ebp - 4], 1
call sub.MFC42.DLL_CString::CString_4
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], 0x519104
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 0x4c73e3
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
mov eax, 0x4fdd54
call fcn.00475fe0
sub esp, 0x48
push ebx
push esi
lea ecx, [ebp - 0x54]
call fcn.00475a8e
push dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x4c745c
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 0x4c745f
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 0x4c74e2
push 1
pop esi
lea ecx, [ebp - 0x54]
call sub.MFC42.DLL_CFileFind::Close
lea ecx, [ebp - 0x38]
call fcn.00475a8e
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 0x4c74bc
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 0x4c74a6
xor esi, esi
lea ecx, [ebp - 0x38]
call sub.MFC42.DLL_CFileFind::Close
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 1
call fcn.00475cfe
jmp 0x4c74c9
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 0x4c7c51
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, 0x4fe07b
call fcn.00475fe0
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 0x4c7cde
Capabilities:
Delete file

Disassembly:
mov eax, 0x4fe0ac
call fcn.00475fe0
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 0x4c7dac
cmp ebx, 2
je 0x4c7db5
jle 0x4c7e1b
cmp ebx, 4
jg 0x4c7e1b
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 0x4c7d74
mov ecx, edi
call dword [sym.imp.QQBaseClassInDll.dll_public:_void___thiscall_CHttpDownload::constructor_void_]
mov dword [edi], 0x5123e8
mov ecx, edi
jmp 0x4c7d76
xor ecx, ecx
mov byte [ebp - 4], 1
mov dword [esi + 0x74], ecx
test ecx, ecx
je 0x4c7e1b
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 0x4c7e15
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 0x4c7de3
mov ecx, edi
call dword [sym.imp.QQBaseClassInDll.dll_public:_void___thiscall_CHttpDownload::constructor_void_]
mov dword [edi], 0x5123e8
mov ecx, edi
jmp 0x4c7de5
xor ecx, ecx
mov byte [ebp - 4], 1
mov dword [esi + 0x20], ecx
test ecx, ecx
je 0x4c7e1b
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