joyce8/EMBER2024-capa huggingface dataset:
Function at 0x405e10
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x420315
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x42d030]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
mov eax, dword [ebx + 0x144]
mov edi, dword [eax]
add ebx, 0x140
mov dword [esp + 0x18], edi
cmp ebx, ebx
mov esi, dword [ebx + 4]
je 0x405e5e
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
cmp edi, esi
je 0x405f0e
cmp edi, dword [ebx + 4]
jne 0x405e71
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov esi, dword [edi + 8]
test esi, esi
mov dword [esp + 0x10], esi
je 0x405ef6
mov ecx, dword [esi + 0x74]
mov eax, dword [ecx]
mov dword [ecx], ecx
mov ecx, dword [esi + 0x74]
mov dword [ecx + 4], ecx
cmp eax, dword [esi + 0x74]
mov dword [esi + 0x78], 0
je 0x405eab
mov edi, dword [eax]
push eax
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
cmp edi, dword [esi + 0x74]
mov eax, edi
jne 0x405e95
mov edi, dword [esp + 0x18]
mov eax, dword [esi + 0x74]
push eax
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
mov dword [esi + 0x74], 0
lea ecx, [esi + 0x3c]
mov dword [esp + 0x28], 1
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
lea ecx, [esi + 0x1c]
mov byte [esp + 0x28], 0
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
mov ecx, esi
mov dword [esp + 0x28], 0xffffffff
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
push esi
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
cmp edi, dword [ebx + 4]
jne 0x405f01
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov eax, dword [edi]
mov dword [esp + 0x18], eax
mov edi, eax
jmp 0x405e51
mov ecx, dword [ebx + 4]
mov eax, dword [ecx]
mov dword [ecx], ecx
mov ecx, dword [ebx + 4]
mov dword [ecx + 4], ecx
cmp eax, dword [ebx + 4]
mov dword [ebx + 8], 0
je 0x405f39
mov esi, dword [eax]
push eax
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
cmp esi, dword [ebx + 4]
mov eax, esi
jne 0x405f27
mov edi, dword [ebp + 8]
mov ecx, dword [edi + 0x15c]
mov ebx, dword [ecx + 4]
add edi, 0x158
cmp byte [ebx + 0x15], 0
mov esi, ebx
jne 0x405f71
mov edx, dword [esi + 8]
push edx
mov ecx, edi
call fcn.004115f0
mov esi, dword [esi]
push ebx
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
cmp byte [esi + 0x15], 0
mov ebx, esi
je 0x405f53
mov eax, dword [edi + 4]
mov dword [eax + 4], eax
mov eax, dword [edi + 4]
mov dword [edi + 8], 0
mov dword [eax], eax
mov edi, dword [edi + 4]
mov dword [edi + 8], edi
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x406dc0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41fb1b
mov eax, dword fs:[0]
push eax
push ebx
push esi
push edi
mov eax, dword [0x42d030]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
mov dword [esi + 4], eax
lea eax, [esi + 0x14]
xor edi, edi
push eax
mov dword [esi], vtable.XFDownload::CAsynXFDownload.0
mov dword [esi + 8], edi
mov dword [esi + 0xc], 1
mov dword [esi + 0x10], edi
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov dword [ebp - 4], edi
mov dword [esi + 0x2c], edi
mov dword [esi + 0x38], edi
push 0x4226ec
lea ecx, [esi + 0x44]
mov dword [esi + 0x3c], edi
mov dword [esi + 0x40], 0x3be64970
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_wchar_t_const__]
mov ebx, dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [esi + 0x60], edi
push edi
push edi
mov dword [esi + 0x68], edi
mov dword [esi + 0x6c], edi
mov dword [esi + 0x70], edi
mov dword [esi + 0x74], edi
push 1
push edi
mov dword [esi + 0x7c], edi
mov dword [esi + 0x80], edi
mov dword [esi + 0x84], edi
mov dword [esi + 0x88], edi
call ebx
push edi
push edi
push edi
push edi
mov dword [esi + 0x30], eax
call ebx
mov dword [esi + 0x34], eax
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x406ed0
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x420a8d
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x42d030]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov dword [edi], vtable.XFDownload::CAsynXFDownload.0
mov eax, edi
mov dword [ebp - 4], 3
call fcn.004076c0
mov eax, dword [edi + 0x34]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call esi
mov ecx, dword [edi + 0x30]
xor ebx, ebx
push ecx
mov dword [edi + 0x34], ebx
call esi
mov esi, edi
mov dword [edi + 0x30], ebx
call fcn.00407090
mov eax, dword [edi + 0x60]
push eax
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
lea esi, [edi + 0x78]
mov dword [edi + 0x60], ebx
call fcn.004086e0
lea esi, [edi + 0x64]
call fcn.004086e0
lea ecx, [edi + 0x44]
mov byte [ebp - 4], bl
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
add edi, 0x14
push edi
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x407530
Capabilities:
Check if file exists
Check mutex on windows

Disassembly:
push ecx
push esi
push edi
push str.F294CCDA_8F1C_493c_ADE2_29ABFBBD25C2
push 0
push 0x100000
call dword [sym.imp.KERNEL32.dll_OpenMutexW]
test eax, eax
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
je 0x40755d
push eax
mov esi, 1
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x407569
call edi
xor ecx, ecx
cmp eax, 2
setne cl
mov esi, ecx
call fcn.00402150
push eax
mov edx, 3
call fcn.00419930
test eax, eax
je 0x4075b5
test esi, esi
mov eax, 0x4226ec
jne 0x40758b
mov eax, 0x424ac0
push eax
push str.ExistsSoftMgrMutex__:_mutex__s_exists
push str.XFDownload::ExistsSoftMgrMutex
push 0x106
push str.D:jenkins_TrunkworkspaceMainline_SourceJob_2qqpcmgr_projFTHardwareQMPublicExeQMDLDownloadEngineengine_xfAsynXFDownload.cpp
call edi
push eax
push 3
push 0
call fcn.00402150
push eax
call fcn.004199e0
add esp, 0x24
pop edi
mov eax, esi
pop esi
pop ecx
ret

Function at 0x4076c0
Capabilities:
Terminate thread

Disassembly:
push esi
push 2
mov esi, eax
push 1
lea eax, [esi + 0x38]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
cmp eax, 1
je 0x4077b0
test eax, eax
je 0x4077b0
cmp eax, 3
jne 0x407727
call fcn.00402150
push eax
mov edx, 4
call fcn.00419930
test eax, eax
je 0x407723
push str.CAsynXFDownload:_Init_failed_because_of_Status_Starting
push str.XFDownload::CAsynXFDownload::Uninit
push 0x134
push str.D:jenkins_TrunkworkspaceMainline_SourceJob_2qqpcmgr_projFTHardwareQMPublicExeQMDLDownloadEngineengine_xfAsynXFDownload.cpp
push 0
push 4
push 0
call fcn.00402150
push eax
call fcn.00419af0
add esp, 0x20
xor eax, eax
pop esi
ret
mov ecx, dword [esi + 0x30]
push ecx
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov eax, dword [esi + 0x2c]
test eax, eax
je 0x407788
push 0x7530
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x407777
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
push edi
mov edi, 3
mov eax, dword [esi + 0x2c]
push 0x3ff
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
test eax, eax
jne 0x407775
push 0xa
call ebx
mov edx, edi
sub edi, 1
test edx, edx
jne 0x407755
pop edi
pop ebx
mov eax, dword [esi + 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x2c], 0
mov eax, dword [esi + 0x10]
test eax, eax
je 0x4077ab
push 0
push 0xffffffffffffffeb
push eax
call dword [sym.imp.USER32.dll_SetWindowLongW]
mov ecx, dword [esi + 0x10]
push ecx
call dword [sym.imp.USER32.dll_DestroyWindow]
mov dword [esi + 0x10], 0
call fcn.00407090
mov eax, 1
pop esi
ret
Function at 0x409c00
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2e0
mov eax, dword [0x42d030]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0xc8
lea eax, [ebp - 0xcc]
push 0
push eax
mov esi, ecx
call fcn.0041ecbc
movzx edx, byte [esi + 0xe]
movzx eax, byte [esi + 0xf]
xor ecx, ecx
mov ch, byte [esi + 0xc]
mov cl, byte [esi + 0xd]
shl ecx, 8
or ecx, edx
shl ecx, 8
or ecx, eax
movzx eax, word [esi + 6]
push ecx
xor ecx, ecx
mov ch, byte [esi + 0xa]
xor edx, edx
mov dh, byte [esi + 8]
mov cl, byte [esi + 0xb]
mov dl, byte [esi + 9]
push ecx
movzx ecx, word [esi + 4]
push edx
mov edx, dword [esi]
mov esi, dword [sym.imp.SHLWAPI.dll_wnsprintfW]
push eax
push ecx
push edx
push 0x425260
lea eax, [ebp - 0xcc]
push 0x63
push eax
call esi
lea ecx, [ebp - 0xcc]
push ecx
push str.CLSID_sLocalServer32
lea edx, [ebp - 0x2d4]
push 0x103
push edx
call esi
add esp, 0x40
lea eax, [ebp - 0x2d8]
push eax
lea ecx, [ebp - 0x2d4]
push ecx
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x409cfe
lea edx, [ebp - 0x2e0]
push edx
mov edx, dword [ebp - 0x2d8]
lea eax, [ebp - 0x2d4]
push eax
lea ecx, [ebp - 0x2dc]
push ecx
push 0
push 0
push edx
mov dword [ebp - 0x2dc], 1
mov dword [ebp - 0x2e0], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x409d0f
mov eax, dword [ebp - 0x2d8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041e838
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0x2d8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea edx, [ebp - 0x2d4]
push edx
mov ecx, edi
mov word [ebp - 0xce], 0
call dword [0x4221e0]
cmp dword [edi + 0x14], 2
jb 0x409cfe
cmp dword [edi + 0x18], 8
lea esi, [edi + 4]
jb 0x409d47
mov eax, dword [esi]
jmp 0x409d49
mov eax, esi
cmp word [eax], 0x22
jne 0x409d5b
push 1
push 0
mov ecx, edi
call dword [sym.imp.MSVCP80.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::erase_unsigned_int__unsigned_int_]
mov eax, dword [edi + 0x14]
push ebx
lea ebx, [eax - 1]
cmp ebx, eax
jbe 0x409d6c
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
cmp dword [edi + 0x18], 8
jb 0x409d74
mov esi, dword [esi]
cmp word [esi + ebx*2], 0x22
pop ebx
jne 0x409d8d
mov eax, dword [edi + 0x14]
push 1
sub eax, 1
push eax
mov ecx, edi
call dword [sym.imp.MSVCP80.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::erase_unsigned_int__unsigned_int_]
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov eax, 1
pop esi
call fcn.0041e838
mov esp, ebp
pop ebp
ret
Function at 0x411ab0
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42085a
mov eax, dword fs:[0]
push eax
push ebx
push esi
push edi
mov eax, dword [0x42d030]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
mov dword [edi], vtable.CQMDldClientMgr.0
lea esi, [edi + 0x64]
mov dword [ebp - 4], 6
mov eax, dword [esi + 8]
xor ebx, ebx
cmp eax, ebx
mov dword [esi], vtable.IPC::CQMIpcResponseHandle_class_CQMDldClientMgr_.0
je 0x411b11
mov ecx, dword [eax]
mov edx, dword [ecx + 0x38]
push esi
push eax
call edx
mov eax, dword [esi + 8]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esi + 8], ebx
mov dword [esi + 4], ebx
lea esi, [edi + 0x50]
mov byte [ebp - 4], 5
mov eax, dword [esi + 4]
cmp eax, ebx
mov dword [esi], vtable.IPC::CQMIpcRequestHandle_class_CQMDldClientMgr_.0
je 0x411b3c
mov ecx, dword [eax]
mov edx, dword [ecx + 0x40]
push esi
push eax
call edx
mov eax, dword [esi + 4]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0x10], ebx
mov byte [ebp - 4], 4
mov eax, dword [edi + 0x4c]
cmp eax, ebx
mov dword [edi + 0x48], vtable.IPC::CQMIpcPipe.0
je 0x411b5c
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
lea eax, [edi + 0x3c]
mov dword [edi + 0x4c], ebx
mov byte [ebp - 4], 3
call fcn.00411690
lea eax, [edi + 0x30]
mov byte [ebp - 4], 2
call fcn.00411690
lea esi, [edi + 0x24]
call fcn.00406990
lea eax, [edi + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
mov dword [edi], vtable.utils::CSingleton_class_CQMDldClientMgr_.0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x411d40
Capabilities:
Enumerate process modules
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4207db
mov eax, dword fs:[0]
push eax
mov eax, 0x11c0
call fcn.0041f280
mov eax, dword [0x42d030]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor ebx, ebx
push 0xf9c
lea eax, [ebp - 0x11c8]
push ebx
push eax
mov dword [ebp - 0x11cc], ebx
call fcn.0041ecbc
add esp, 0xc
lea ecx, [ebp - 0x228]
push ecx
push 0xfa0
lea edx, [ebp - 0x11cc]
push edx
mov dword [ebp - 0x228], ebx
call sub.PSAPI.DLL_EnumProcesses
test eax, eax
je 0x411f50
mov eax, dword [ebp - 0x228]
cmp eax, ebx
je 0x411f50
shr eax, 2
mov dword [ebp - 0x220], eax
mov edi, ebx
je 0x411f50
mov eax, dword [ebp + edi*4 - 0x11cc]
push eax
push ebx
push 0x411
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
cmp esi, ebx
je 0x411ea2
push 0x208
lea ecx, [ebp - 0x21a]
push ebx
push ecx
mov dword [ebp - 0x22c], ebx
mov word [ebp - 0x21c], bx
call fcn.0041ecbc
add esp, 0xc
lea edx, [ebp - 0x228]
push edx
push 4
lea eax, [ebp - 0x22c]
push eax
push esi
call sub.PSAPI.DLL_EnumProcessModules
test eax, eax
je 0x411ea2
mov edx, dword [ebp - 0x22c]
push 0x104
lea ecx, [ebp - 0x21c]
push ecx
push edx
push esi
call sub.PSAPI.DLL_GetModuleBaseNameW
test eax, eax
je 0x411ea2
lea eax, [ebp - 0x224]
push eax
lea ecx, [ebp - 0x21c]
call fcn.004020b0
mov dword [ebp - 4], ebx
mov ecx, dword [ebp - 0x224]
push str.tencentdl.exe
push ecx
call dword [sym.imp.MSVCR80.dll__wcsicmp]
add esp, 8
test eax, eax
je 0x411eb6
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x224]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x411ea2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
add edi, 1
cmp edi, dword [ebp - 0x220]
jb 0x411dd4
jmp 0x411f50
call fcn.00402150
push eax
mov edx, 4
call fcn.00419930
test eax, eax
je 0x411eed
push str.CDldWnd::ReStartXF
push str.CQMDldClientMgr::RestartXfDld
push 0x7b
push str.D:jenkins_TrunkworkspaceMainline_SourceJob_2qqpcmgr_projFTHardwareQMPublicExeQMDLQMDldClientMgr.cpp
push ebx
push 4
push ebx
call fcn.00402150
push eax
call fcn.004199e0
add esp, 0x20
lea ecx, [ebp - 0x220]
push ecx
push esi
mov dword [ebp - 0x220], ebx
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov edx, dword [ebp - 0x220]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push 0x7d0
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call fcn.00411ff0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x224]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x411f50
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0041e838
mov esp, ebp
pop ebp
ret
Function at 0x411f70
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
push edi
lea eax, [ebp - 4]
push eax
push 0x20019
xor esi, esi
push esi
push str.SOFTWARETencentQQPCMgrQMDL
push SysStringLen
mov dword [ebp - 8], 0
mov dword [ebp - 4], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x411fd3
mov esi, dword [ebp - 4]
lea ecx, [ebp - 0xc]
push ecx
lea edx, [ebp - 8]
push edx
lea eax, [ebp - 0x10]
push eax
push 0
push str.QMRestartFlag
push esi
mov dword [ebp - 0xc], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test esi, esi
je 0x411fd3
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor esi, esi
xor ecx, ecx
cmp dword [ebp - 8], ecx
setne cl
test esi, esi
mov edi, ecx
je 0x411fe8
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x411ff0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
lea eax, [ebp - 8]
push eax
push 0x20006
xor esi, esi
push esi
push str.SoftwareTencentQQPCMgr_
push SysStringLen
mov dword [ebp - 8], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, esi
jne 0x412078
mov edx, dword [ebp - 8]
push ebx
mov dword [ebp - 4], esi
push edi
lea esi, [ebp - 4]
mov edi, edx
call fcn.00402740
test eax, eax
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [ebp - 4]
jne 0x41205f
push 4
lea ecx, [ebp - 0xc]
push ecx
push 4
push 0
push str.QMRestartFlag
push esi
mov dword [ebp - 0xc], 1
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test esi, esi
je 0x41205f
push esi
call ebx
xor esi, esi
test edi, edi
je 0x412068
push edi
call ebx
xor edi, edi
test esi, esi
je 0x41206f
push esi
call ebx
test edi, edi
je 0x412076
push edi
call ebx
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x416a00
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x4204e6
mov eax, dword fs:[0]
push eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x42d030]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov edi, dword [esp + 0x24]
mov dword [edi], vtable.QMDlder::CQMDlderMessage.0
mov ebx, 1
xor ebp, ebp
mov dword [edi + 4], ebx
mov dword [edi + 8], ebp
mov dword [esp + 0x1c], ebp
lea esi, [edi + 0x44]
mov dword [edi + 0xc], 3
mov dword [edi + 0x10], ebp
call fcn.00416da0
mov byte [esp + 0x1c], bl
mov ebx, dword [esp + 0x28]
xor eax, eax
cmp dword [esp + 0x2c], ebp
mov dword [edi + 0x78], ebp
mov dword [edi + 0x20], eax
mov dword [edi + 0x24], eax
mov dword [edi + 0x28], eax
mov dword [edi + 0x2c], eax
mov dword [edi + 0x30], eax
mov dword [edi + 0x34], eax
mov dword [edi + 0x38], eax
mov dword [edi + 0x3c], eax
mov dword [edi + 0x40], eax
mov dword [edi + 0x14], eax
mov dword [edi + 0x18], eax
mov dword [edi + 0x1c], eax
push edi
je 0x416a90
call fcn.00416bf0
jmp 0x416a95
call fcn.00416ca0
mov eax, edi
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 0xc

Function at 0x416ad0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x4204ab
mov eax, dword fs:[0]
push eax
push ebx
push esi
push edi
mov eax, dword [0x42d030]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov edi, dword [esp + 0x20]
mov dword [edi], vtable.QMDlder::CQMDlderMessage.0
xor ebx, ebx
mov dword [edi + 4], 1
mov dword [edi + 8], ebx
mov dword [esp + 0x18], ebx
lea esi, [edi + 0x44]
mov dword [edi + 0xc], 2
mov dword [edi + 0x10], ebx
call fcn.00416da0
xor eax, eax
mov dword [edi + 0x78], ebx
mov dword [edi + 0x28], eax
mov dword [edi + 0x2c], eax
mov dword [edi + 0x30], eax
mov dword [edi + 0x34], eax
mov dword [edi + 0x38], eax
mov dword [edi + 0x3c], eax
mov dword [edi + 0x40], eax
mov dword [edi + 0x14], eax
mov dword [edi + 0x18], eax
mov dword [edi + 0x1c], eax
mov eax, dword [esp + 0x24]
mov dword [edi + 0x20], 0x24
mov dword [edi + 0x24], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ecx, dword [esp + 0x28]
mov dword [edi + 0x28], eax
mov dword [edi + 0x30], ecx
mov eax, edi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0xc
ret 0xc
Function at 0x4197e0
Capabilities:
Read file on windows
Write file on windows

Disassembly:
sub esp, 0x224
mov eax, dword [0x42d030]
xor eax, esp
mov dword [esp + 0x220], eax
mov eax, dword [esp + 0x228]
push ebx
push esi
push edi
add eax, 0x48
push str.LastException.dat
push eax
lea edi, [esp + 0x28]
call fcn.0041a3d0
add esp, 8
test eax, eax
jne 0x41981e
xor eax, eax
jmp 0x4198d4
xor ebx, ebx
push ebx
push ebx
push 4
push ebx
push 1
push 0xc0000000
lea eax, [esp + 0x38]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x419817
push ebx
lea ecx, [esp + 0x10]
push ecx
push 8
lea edx, [esp + 0x1c]
push edx
push edi
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x20], ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x419869
cmp dword [esp + 0xc], 8
je 0x419871
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], ebx
push ebx
call dword [sym.imp.MSVCR80.dll__time64]
mov esi, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
add esp, 4
add esi, 0xa8c0
adc ecx, ebx
cmp edx, ecx
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], edx
jl 0x4198cb
jg 0x41989d
cmp eax, esi
jb 0x4198cb
push ebx
push ebx
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push ebx
lea eax, [esp + 0x10]
push eax
push 8
lea ecx, [esp + 0x24]
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4198cb
cmp dword [esp + 0xc], 8
jne 0x4198cb
mov ebx, 1
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
mov ecx, dword [esp + 0x22c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0041e838
add esp, 0x224
ret 4

Function at 0x41a110
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 8
push esi
push edi
push str.IsWow64Process
xor edi, edi
push str.kernel32
mov dword [esp + 0x10], edi
mov dword [esp + 0x14], edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
cmp esi, edi
je 0x41a14e
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call esi
test eax, eax
je 0x41a152
mov eax, dword [esp + 0xc]
mov edx, dword [esp + 0x18]
neg eax
sbb eax, eax
and eax, 0x200
lea ecx, [esp + 8]
push ecx
add eax, 1
push eax
mov eax, dword [esp + 0x1c]
push edi
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x41a1b2
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 8]
lea ecx, [esp + 0xc]
push ecx
push ebx
push edi
push edi
push edx
push eax
mov dword [esp + 0x24], 0x208
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x41a1a7
mov word [ebx + 0x206], di
lea edi, [eax + 1]
mov ecx, dword [esp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
pop edi
pop esi
add esp, 8
ret