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

Disassembly:
mov eax, 0x4ecbd8
call fcn.00471450
sub esp, 0x18
push esi
xor esi, esi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 4], esi
call sub.MFC42.DLL_AfxGetAppModuleState
mov eax, dword [eax + 4]
lea edx, [ebp - 0x1c]
push edx
push 0x4f49d8
mov eax, dword [eax + 0xd4]
push eax
mov ecx, dword [eax]
call dword [ecx + 0xc]
test eax, eax
jne 0x4af16a
push ebx
push edi
push str.SETUP_OPTION
lea ecx, [ebp - 0x14]
call sub.MFC42.DLL_CString::CString_1
lea eax, [ebp - 0x20]
mov byte [ebp - 4], 1
push eax
call dword [sym.imp.BasicCtrlDll.dll_class_CString___cdecl_GetExeFolder_void_]
mov dword [esp], str.SetupInfo.ini
push eax
lea eax, [ebp - 0x10]
mov byte [ebp - 4], 2
push eax
call sub.MFC42.DLL_operator_3
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 4
call sub.MFC42.DLL_CString::CString
push dword [ebp - 0x10]
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov ebx, str.SETUP_TYPE
push esi
push ebx
push dword [ebp - 0x14]
call edi
cmp eax, 1
mov dword [ebp - 0x24], eax
je 0x4af0b6
cmp eax, 2
jne 0x4af150
call sub.MFC42.DLL_AfxGetAppModuleState
mov eax, dword [eax + 4]
movzx esi, byte [eax + 0xce]
call sub.MFC42.DLL_AfxGetAppModuleState
imul esi, esi, 0x64
mov eax, dword [eax + 4]
push dword [ebp - 0x10]
movzx eax, byte [eax + 0xcf]
add esi, eax
push 0
mov dword [ebp - 0x20], esi
mov esi, str.SETUP_VERSION
push esi
push dword [ebp - 0x14]
call edi
test eax, eax
jle 0x4af104
push dword [ebp - 0x24]
mov ecx, dword [ebp - 0x1c]
push dword [ebp - 0x20]
mov edx, dword [ecx]
push eax
push 1
push 7
push ecx
call dword [edx + 0x1c]
push dword [ebp - 0x10]
mov edi, dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
push 0x54d1fc
push ebx
push dword [ebp - 0x14]
call edi
lea ecx, [ebp - 0x18]
call sub.MFC42.DLL_CString::CString_4
push dword [ebp - 0x20]
lea eax, [ebp - 0x18]
mov byte [ebp - 4], 5
push 0x54d614
push eax
call sub.MFC42.DLL_CString::Format
add esp, 0xc
push dword [ebp - 0x10]
push dword [ebp - 0x18]
push esi
push dword [ebp - 0x14]
call edi
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 4
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 - 0x14]
call sub.MFC42.DLL_CString::CString
pop edi
pop ebx
mov eax, dword [ebp - 0x1c]
or dword [ebp - 4], 0xffffffff
test eax, eax
pop esi
je 0x4af17c
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
leave
ret
Function at 0x4af275
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x9c
push esi
mov esi, 0x9c
push esi
lea eax, [ebp - 0x9c]
push 0
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
lea eax, [ebp - 0x9c]
mov dword [ebp - 0x9c], esi
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExA]
push eax
call esi
test eax, eax
jne 0x4af2ce
lea eax, [ebp - 0x9c]
mov dword [ebp - 0x9c], 0x94
push eax
call esi
test eax, eax
jne 0x4af2ce
xor ax, ax
jmp 0x4af372
mov eax, dword [ebp - 0x8c]
sub eax, 0
je 0x4af36f
dec eax
je 0x4af31c
dec eax
je 0x4af2ea
xor eax, eax
jmp 0x4af372
push 4
pop eax
cmp dword [ebp - 0x98], eax
ja 0x4af2f9
push 1
jmp 0x4af371
cmp dword [ebp - 0x98], 5
jne 0x4af372
cmp dword [ebp - 0x94], 0
jne 0x4af30f
push 2
jmp 0x4af371
cmp dword [ebp - 0x94], 1
jne 0x4af372
push 3
jmp 0x4af371
cmp dword [ebp - 0x98], 4
push 0xa
pop eax
jne 0x4af372
cmp dword [ebp - 0x94], 0
jne 0x4af34a
cmp byte [ebp - 0x87], 0x43
push 5
pop eax
je 0x4af346
cmp byte [ebp - 0x87], 0x42
jne 0x4af372
push 6
jmp 0x4af371
cmp dword [ebp - 0x94], eax
jne 0x4af362
cmp byte [ebp - 0x87], 0x41
push 7
pop eax
jne 0x4af372
push 8
jmp 0x4af371
cmp dword [ebp - 0x94], 0x5a
jne 0x4af372
push 9
jmp 0x4af371
push 0xb
pop eax
pop esi
leave
ret
Function at 0x4afeef
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
push esi
test edx, edx
je 0x4b0012
mov esi, dword [ebp + 0x10]
test esi, esi
jle 0x4b0012
mov eax, dword [ebp + 8]
push ebx
cmp esi, 8
push edi
not eax
mov ecx, 0xff
jl 0x4affef
mov edi, esi
shr edi, 3
mov ebx, edi
neg ebx
lea esi, [esi + ebx*8]
mov dword [ebp + 0x10], esi
movzx ebx, byte [edx]
mov esi, eax
and esi, ecx
xor esi, ebx
mov ebx, eax
shr ebx, 8
mov eax, dword [esi*4 + 0x505b84]
xor eax, ebx
inc edx
mov esi, eax
movzx ebx, byte [edx]
and esi, ecx
xor esi, ebx
movzx ebx, byte [edx + 1]
mov esi, dword [esi*4 + 0x505b84]
shr eax, 8
xor esi, eax
inc edx
mov eax, esi
and eax, ecx
xor eax, ebx
movzx ebx, byte [edx + 1]
mov eax, dword [eax*4 + 0x505b84]
shr esi, 8
xor eax, esi
inc edx
mov esi, eax
and esi, ecx
xor esi, ebx
movzx ebx, byte [edx + 1]
mov esi, dword [esi*4 + 0x505b84]
shr eax, 8
xor esi, eax
inc edx
mov eax, esi
and eax, ecx
xor eax, ebx
movzx ebx, byte [edx + 1]
mov eax, dword [eax*4 + 0x505b84]
shr esi, 8
xor eax, esi
inc edx
mov esi, eax
and esi, ecx
xor esi, ebx
movzx ebx, byte [edx + 1]
mov esi, dword [esi*4 + 0x505b84]
shr eax, 8
xor esi, eax
inc edx
mov eax, esi
and eax, ecx
xor eax, ebx
movzx ebx, byte [edx + 1]
mov eax, dword [eax*4 + 0x505b84]
shr esi, 8
xor eax, esi
inc edx
mov esi, eax
and esi, ecx
xor esi, ebx
shr eax, 8
mov esi, dword [esi*4 + 0x505b84]
xor eax, esi
inc edx
dec edi
jne 0x4aff2d
mov esi, dword [ebp + 0x10]
test esi, esi
je 0x4b000c
movzx ebx, byte [edx]
mov edi, eax
and edi, ecx
xor edi, ebx
shr eax, 8
mov edi, dword [edi*4 + 0x505b84]
xor eax, edi
inc edx
dec esi
jne 0x4afff3
pop edi
pop ebx
not eax
jmp 0x4b0015
mov eax, dword [ebp + 8]
pop esi
pop ebp
ret 0xc
Function at 0x4b7ee4
Capabilities:
Create process on windows

Disassembly:
mov eax, 0x4edc24
call fcn.00471450
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, 0x54ce68
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.0043b195
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.004b7e77
lea eax, [ebp + 8]
mov ecx, esi
push eax
mov byte [ebp - 4], 5
call fcn.004b7e77
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 0x4b99ca
Capabilities:
Check for peb ntglobalflag flag

Disassembly:
mov eax, 0x4edfab
call fcn.00471450
push ecx
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esi
call sub.MFC42.DLL_CCmdTarget::CCmdTarget
xor ebx, ebx
lea ecx, [esi + 0x20]
mov dword [ebp - 4], ebx
call fcn.004d86d6
lea ecx, [esi + 0x28]
mov byte [ebp - 4], 1
call fcn.004d86d6
lea ecx, [esi + 0x30]
mov byte [ebp - 4], 2
call fcn.004d86d6
lea ecx, [esi + 0x38]
mov byte [ebp - 4], 3
call fcn.004d86d6
lea ecx, [esi + 0x40]
mov byte [ebp - 4], 4
call fcn.004d86d6
lea ecx, [esi + 0x48]
mov byte [ebp - 4], 5
call fcn.004d86d6
lea ecx, [esi + 0x50]
mov byte [ebp - 4], 6
call fcn.004d86d6
lea ecx, [esi + 0x58]
mov byte [ebp - 4], 7
call fcn.004d86d6
lea ecx, [esi + 0x60]
mov byte [ebp - 4], 8
call fcn.004d86d6
lea ecx, [esi + 0x68]
mov byte [ebp - 4], 9
call fcn.004d86d6
lea ecx, [esi + 0x70]
mov byte [ebp - 4], 0xa
call fcn.004d86d6
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.004d86d6
mov byte [ebp - 4], 0x11
mov dword [esi + 0x198], 0x5081e0
mov dword [esi], 0x508180
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 0x4b9b53
Capabilities:
Check for peb ntglobalflag flag

Disassembly:
mov eax, 0x4ee08f
call fcn.00471450
push ecx
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esi
mov dword [esi], 0x508180
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 fcn.00470f1a
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x4bcaa0
Capabilities:
Get common file path

Disassembly:
mov eax, 0x4ee674
call fcn.00471450
sub esp, 0x20c
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esi
call sub.MFC42.DLL_CCmdTarget::CCmdTarget
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], 0x5095ac
lea ecx, [esi + 0x40]
mov dword [esi + 0x3c], 0x509598
call fcn.004beff4
lea ecx, [esi + 0x54]
mov byte [ebp - 4], 3
call fcn.004beff4
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], 0x509578
and eax, edi
lea edi, [esi + 0x80]
push eax
mov ecx, edi
mov dword [esi], 0x509518
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 0x4bf859
Capabilities:
Terminate thread

Disassembly:
mov eax, 0x4eec77
call fcn.00471450
push ecx
push ecx
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x14], esi
mov dword [esi], 0x509778
mov dword [ebp - 4], 1
and dword [ebp - 0x10], 0
mov byte [ebp - 4], 2
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
jne 0x4bf8bd
mov edi, dword [ebp - 0x10]
test edi, edi
je 0x4bf8bd
mov ebx, dword [edi]
push 0x4f48f8
mov ecx, esi
call sub.MFC42.DLL_CCmdTarget::GetInterface
push eax
push edi
call dword [ebx + 0x2c]
mov eax, dword [esi + 0x88]
mov edi, dword [sym.imp.KERNEL32.dll_TerminateThread]
mov ebx, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x4bf8e5
push 0
push eax
call edi
push 0x7d0
push dword [esi + 0x88]
call ebx
mov eax, dword [esi + 0x8c]
test eax, eax
je 0x4bf901
push 0
push eax
call edi
push 0x7d0
push dword [esi + 0x8c]
call ebx
mov eax, dword [esi + 0x6c]
test eax, eax
je 0x4bf913
push eax
call sub.MFC42.DLL_operatordelete
and dword [esi + 0x6c], 0
pop ecx
mov eax, dword [esi + 0x74]
test eax, eax
je 0x4bf925
push eax
call sub.MFC42.DLL_operatordelete
and dword [esi + 0x74], 0
pop ecx
mov eax, dword [ebp - 0x10]
mov byte [ebp - 4], 1
test eax, eax
je 0x4bf936
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 0x4c0101
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 0x4c0282
push 0x104
lea eax, [ebp - 0x11c]
push ebx
push eax
call sub.MSVCRT.dll_memset
lea eax, [ebp - 0x11c]
push eax
call fcn.004c0286
lea eax, [ebp - 0x11c]
push 0x551404
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.004c0286
cmp dword [ebp - 4], 0xffffffff
pop ecx
mov dword [ebp - 8], ebx
je 0x4c0279
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.0043c39a
add esp, 0x14
cmp dword [edi + 0x70], ebx
jle 0x4c024e
mov dword [ebp + 8], ebx
mov esi, dword [edi + 0x74]
add esi, dword [ebp + 8]
test byte [esi], 2
je 0x4c023e
test byte [esi + 0x21], 2
jne 0x4c023e
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 0x4c023e
dec word [edi + 0x78]
or byte [esi + 0x21], 2
test byte [esi], 4
je 0x4c023e
lea eax, [ebp - 0x360]
push 0x4f423c
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.004c033c
add esp, 0x24
or byte [esi + 0x21], 4
add dword [ebp + 8], 0x32
inc ebx
cmp ebx, dword [edi + 0x70]
jl 0x4c01b8
xor ebx, ebx
cmp word [edi + 0x78], bx
je 0x4c0268
lea eax, [ebp - 0x25c]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x4c026f
mov dword [ebp - 8], 1
cmp dword [ebp - 8], ebx
je 0x4c017f
pop esi
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FindClose]
pop edi
pop ebx
leave
ret
Function at 0x4c033c
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 0x4c0425
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 0x4c0425
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 0x4c03e3
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 0x4c0403
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4c0425
push ebx
push ebx
push ebx
push 2
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov edi, eax
cmp edi, ebx
jne 0x4c042c
push dword [ebp - 4]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp + 0xc]
call esi
xor eax, eax
jmp 0x4c04c0
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 0x4c0477
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 0x4c0455
push esi
push edi
push dword [ebp + 0x10]
call fcn.0043c39a
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 0x4c17b0
Capabilities:
Create directory

Disassembly:
mov eax, 0x4eefe7
call fcn.00471450
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], 0x509950
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