joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45ca70
Capabilities:
Get process image filename

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d790d
mov eax, dword fs:[0]
push eax
sub esp, 0x430
mov eax, dword [0x511070]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
mov ecx, edi
mov esi, dword [ebp + 0xc]
mov dword [ebp - 4], 0
push 0x4ed230
mov dword [ebp - 0x43c], edi
mov dword [ebp - 0x438], 0
call fcn.0041c970
push esi
push 0
mov dword [ebp - 4], 0
push 0x410
mov dword [ebp - 0x438], 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x45cb97
call fcn.0048a040
push 0x105
test eax, eax
je 0x45cb59
lea eax, [ebp - 0x430]
push eax
push esi
call dword [sym.imp.PSAPI.DLL_GetProcessImageFileNameW]
push ecx
lea eax, [ebp - 0x430]
mov ecx, esp
push eax
call fcn.0041c970
lea eax, [ebp - 0x434]
push eax
call fcn.0045c6d0
push eax
mov ecx, edi
mov dword [ebp - 4], 1
call fcn.0041c6d0
mov byte [ebp - 4], 0
or eax, 0xffffffff
mov edx, dword [ebp - 0x434]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x45cb90
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x45cb90
lea eax, [ebp - 0x220]
push eax
push 0
push esi
call dword [sym.imp.PSAPI.DLL_GetModuleFileNameExW]
lea ecx, [ebp - 0x220]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x45cb72
sub ecx, edx
lea eax, [ebp - 0x220]
sar ecx, 1
push ecx
push eax
mov ecx, edi
call fcn.0041ccd0
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004a578d
mov esp, ebp
pop ebp
ret 8

Function at 0x45d6c0
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
mov ebx, ecx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 4
push 0x4ff
push 0x64
push 0
push 0
mov dword [ebp - 4], eax
call dword [sym.imp.USER32.dll_MsgWaitForMultipleObjectsEx]
cmp dword [ebx + 0xc], 0
jne 0x45d77d
mov esi, dword [sym.imp.USER32.dll_PeekMessageW]
mov edi, dword [sym.imp.USER32.dll_DispatchMessageW]
nop dword [eax]
cmp dword [ebx + 0x10], 0
jne 0x45d77d
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [ebp - 4]
cmp eax, 0x2710
jae 0x45d78b
call dword [sym.imp.KERNEL32.dll_GetTickCount]
cmp eax, dword [ebp - 4]
jb 0x45d78b
push 1
push 0
push 0
xorps xmm0, xmm0
mov dword [ebp - 0x20], 0
push 0
lea eax, [ebp - 0x20]
movq qword [ebp - 0xc], xmm0
push eax
movups xmmword [ebp - 0x1c], xmm0
call esi
test eax, eax
je 0x45d764
lea eax, [ebp - 0x20]
push eax
call edi
cmp dword [ebp - 0x1c], 0x12
je 0x45d78b
push 1
push 0
push 0
push 0
lea eax, [ebp - 0x20]
push eax
call esi
test eax, eax
jne 0x45d746
push 4
push 0x4ff
push 0x64
push 0
push 0
call dword [sym.imp.USER32.dll_MsgWaitForMultipleObjectsEx]
cmp dword [ebx + 0xc], 0
je 0x45d700
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret 4
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x45d7a0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x511070]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
push edi
mov edi, ecx
test ebx, ebx
jne 0x45d8e5
push 0x4ef0d0
push dword [edi + 8]
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], ebx
push eax
call fcn.004b10ba
mov eax, dword [ebp - 0x18]
add esp, 0xc
test eax, eax
je 0x45d8df
push esi
push 2
push ebx
push eax
call fcn.004b13ed
push dword [ebp - 0x18]
call fcn.004b19e6
mov esi, eax
add esp, 0x10
mov dword [ebp - 0x24], esi
cmp esi, 0x2800
jge 0x45d8cd
cmp esi, 0xffffffff
je 0x45d8cd
push esi
call fcn.004a5807
add esi, 0x40
mov dword [ebp - 0x20], eax
push esi
mov dword [ebp - 0x28], esi
call fcn.004a5807
push dword [ebp - 0x24]
mov dword [ebp - 0x1c], eax
push ebx
push dword [ebp - 0x20]
call fcn.004a83c0
push esi
push ebx
push dword [ebp - 0x1c]
call fcn.004a83c0
push ebx
push ebx
push dword [ebp - 0x18]
call fcn.004b13ed
push dword [ebp - 0x18]
mov esi, dword [ebp - 0x24]
push esi
push 1
push dword [ebp - 0x20]
call fcn.004b1bbd
lea eax, [ebp - 0x28]
mov dword [ebp - 0x14], 0x910f032
push eax
push dword [ebp - 0x1c]
lea eax, [ebp - 0x14]
mov dword [ebp - 0x10], 0xb5dc7989
mov edx, esi
mov dword [ebp - 0xc], 0x715d2fc0
mov esi, dword [ebp - 0x20]
mov ecx, esi
push eax
mov dword [ebp - 8], 0x884a6cee
call fcn.00433230
add esp, 0x48
test al, al
je 0x45d8aa
push dword [ebp - 0x28]
mov ecx, edi
push dword [ebp - 0x1c]
call fcn.0045d910
test eax, eax
jne 0x45d8ae
or dword [edi + 0x1c], 0x10
jmp 0x45d8ae
or dword [edi + 0x1c], 8
push dword [ebp - 0x1c]
call fcn.004a5802
push esi
call fcn.004a5802
add esp, 8
push dword [ebp - 0x18]
call fcn.004b58e1
add esp, 4
pop esi
jmp 0x45d8e9
push dword [ebp - 0x18]
or dword [edi + 0x1c], 4
call fcn.004b58e1
add esp, 4
pop esi
jmp 0x45d8e9
or dword [edi + 0x1c], 2
jmp 0x45d8e9
or dword [edi + 0x1c], 1
mov ecx, dword [ebp - 4]
mov dword [edi + 0x18], ebx
xor ecx, ebp
mov dword [edi + 0x10], 1
pop edi
pop ebx
call fcn.004a578d
mov esp, ebp
pop ebp
ret 8
Function at 0x45e800
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d7b88
mov eax, dword fs:[0]
push eax
sub esp, 8
mov eax, dword [0x511070]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea edx, [ecx + 0x58]
push str.QQPCRTP.exe
lea ecx, [ebp - 0x10]
call fcn.0041c010
add esp, 4
push str.OpenSelfProtect:_Begin__Run_QQPCRTP__e
push 0x515488
mov dword [ebp - 4], 0
call fcn.0048cf90
add esp, 8
push dword [ebp - 0x10]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x45e881
mov ecx, dword [ebp - 0x10]
mov edx, 0x4f5a78
push 0
push 0
push 0x1388
call fcn.0045aa40
add esp, 0xc
mov ecx, 1
call fcn.00489b10
push str.OpenSelfProtect:_End
push 0x515488
call fcn.0048cf90
mov dword [ebp - 4], 0xffffffff
add esp, 8
mov eax, dword [ebp - 0x10]
or ecx, 0xffffffff
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], ecx
dec ecx
test ecx, ecx
jg 0x45e8b5
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret
Function at 0x45f070
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d7c98
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x511070]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov ecx, dword [esi + 0x60]
lea edi, [esi + 0x60]
xor eax, eax
cmp dword [ecx - 0xc], eax
jle 0x45f0b1
push ecx
push eax
lea ecx, [esi + 0x70]
call fcn.004692d0
test eax, eax
je 0x45f216
push str.setup.xml
mov edx, edi
lea ecx, [ebp - 0x10]
call fcn.0041c010
add esp, 4
mov dword [ebp - 4], 0
lea ecx, [esi + 0x174]
push dword [eax]
call fcn.00456490
mov dword [ebp - 4], 0xffffffff
mov ebx, eax
mov edx, dword [ebp - 0x10]
or eax, 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x45f103
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
test ebx, ebx
je 0x45f214
push str.InitBugReportSupport
push 0x515488
call fcn.0048cf90
mov eax, dword [esi]
lea ecx, [ebp - 0x10]
add esp, 8
push ecx
mov ecx, esi
call dword [eax + 0x10]
mov dword [ebp - 4], 1
mov ecx, dword [eax]
call fcn.0049a560
mov dword [ebp - 4], 0xffffffff
or ebx, 0xffffffff
mov edx, dword [ebp - 0x10]
mov eax, ebx
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x45f15a
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp dword [esi + 0x3c], 0
je 0x45f1fd
push str.UpdateTrayIcon.exe
mov edx, edi
lea ecx, [ebp - 0x10]
call fcn.0041c010
add esp, 4
push dword [eax]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov edx, dword [ebp - 0x10]
mov esi, eax
add edx, 0xfffffff0
mov eax, ebx
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x45f19a
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
test esi, esi
je 0x45f1fd
push str.CheckTrayIcon
push 0x515488
call fcn.0048cf90
push str.UpdateTrayIcon.exe
mov edx, edi
lea ecx, [ebp - 0x14]
call fcn.0041c010
add esp, 0xc
push 0
mov dword [ebp - 4], 2
mov edx, str._CheckTrayIcon_1
mov ecx, dword [eax]
push 0
push 0x1388
call fcn.0045aa40
mov dword [ebp - 4], 0xffffffff
add esp, 0xc
mov edx, dword [ebp - 0x14]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x45f1fd
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, ebx
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 0x45f230
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d7ce0
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x511070]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
lea edx, [ecx + 0x58]
push str.QQPCRTP.exe
lea ecx, [ebp - 0x3c]
mov dword [ebp - 0x34], 0
call fcn.0041c010
add esp, 4
push str.LoadRtp:_Begin__Run_QQPCRTP__s
mov dword [ebp - 4], 0
push 0x515488
mov dword [ebx], 0
call fcn.0048cf90
add esp, 8
push dword [ebp - 0x3c]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov esi, eax
or edi, 0xffffffff
test esi, esi
je 0x45f3fd
mov ecx, dword [ebp - 0x3c]
lea eax, [ebp - 0x34]
push eax
push 0
push 0x1388
mov edx, 0x4f5c54
call fcn.0045aa40
add esp, 0xc
push dword [ebp - 0x34]
push str.LoadRtp:_QQPCRTP.exe__s__return:__d
push 0x515488
call fcn.0048cf90
add esp, 0xc
cmp dword [ebp - 0x34], 0
je 0x45f3e5
push str.mmon.dll
xor esi, esi
mov dword [ebx], 1
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x45f3ea
lea ecx, [ebp - 0x2c]
call fcn.0048dbe0
mov byte [ebp - 4], 1
cmp dword [eax + 0x14], 8
jb 0x45f316
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0x38]
call fcn.0041c970
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 3
call fcn.004335b0
lea ecx, [ebp - 0x38]
call fcn.00488ae0
push str.mmon.dll
lea edx, [ebp - 0x38]
lea ecx, [ebp - 0x30]
call fcn.0041c010
add esp, 4
push dword [eax]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov edx, dword [ebp - 0x30]
mov ecx, edi
mov dword [ebp - 0x40], eax
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], ecx
dec ecx
test ecx, ecx
jg 0x45f36e
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x40]
test eax, eax
je 0x45f3c5
lea eax, [ebp - 0x30]
mov byte [ebp - 4], 4
push eax
push 0x20019
push 0
push str.SOFTWAREMShield3
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x30], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push 0x4ee3e0
push 0x515488
call fcn.0048cf90
mov eax, dword [ebp - 0x30]
add esp, 8
mov dword [ebx], 0
test eax, eax
je 0x45f3be
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x30], 0
mov byte [ebp - 4], 0
mov eax, edi
mov edx, dword [ebp - 0x38]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x45f3ea
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x45f3ea
mov esi, 1
push esi
push str.LoadRtp:_End__Success_u
push 0x515488
call fcn.0048cf90
add esp, 0xc
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x3c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], edi
dec edi
test edi, edi
jg 0x45f41c
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004a578d
mov esp, ebp
pop ebp
ret 4
Function at 0x45f440
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d7d20
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x511070]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push str.AcLayers.dll
mov dword [ebp - 0x10], 0
xor edi, edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
mov ecx, 1
lea eax, [ebp - 0x10]
cmovne edi, ecx
mov ecx, esi
push eax
call fcn.0045f230
push dword [esi + 4]
push str.Check_need_start_qqpcmgr__bDownloadSetupInOne_d
push 0x515488
call fcn.0048cf90
add esp, 0xc
or ebx, 0xffffffff
cmp dword [esi + 4], 0
jne 0x45f515
cmp dword [ebp + 8], 0
je 0x45f4bf
push edi
mov ecx, esi
call fcn.00463b30
cmp dword [esi + 8], 0
je 0x45f515
push str.QMPersonalCenter.exe
lea edx, [esi + 0x58]
lea ecx, [ebp - 0x14]
call fcn.0041c010
add esp, 4
push 0
mov dword [ebp - 4], 0
mov edx, str.wndtype3_supplyid200
mov ecx, dword [eax]
push 1
push 0
call fcn.0045aa40
mov dword [ebp - 4], 0xffffffff
add esp, 0xc
mov edx, dword [ebp - 0x14]
mov eax, ebx
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x45f515
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
test edi, edi
jne 0x45f584
push str.QQPCTray.exe
lea edx, [esi + 0x58]
lea ecx, [ebp + 8]
call fcn.0041c010
add esp, 4
push str.Run_QQPCTray
push 0x515488
mov dword [ebp - 4], 1
call fcn.0048cf90
add esp, 8
push dword [ebp + 8]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x45f565
mov ecx, dword [ebp + 8]
mov edx, str._regrun
push edi
push edi
push edi
call fcn.0045aa40
add esp, 0xc
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp + 8]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x45f584
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push ecx
push dword [ebp - 0x10]
mov ecx, esi
call fcn.00463c00
test edi, edi
je 0x45f59a
mov ecx, esi
call fcn.00463db0
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 0x45f5b0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d7d48
mov eax, dword fs:[0]
push eax
sub esp, 0x10
mov eax, dword [0x511070]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 0
push eax
push 0x20019
push 0
push str.SOFTWARETencentQQPCMgr
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x45f635
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x14], 4
test eax, eax
je 0x45f643
lea ecx, [ebp - 0x14]
push ecx
lea ecx, [ebp - 0x1c]
push ecx
lea ecx, [ebp - 0x18]
push ecx
push 0
push 0x4f338c
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x45f635
cmp dword [ebp - 0x18], 4
jne 0x45f635
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp - 0x1c]
mov dword [ecx], eax
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x45f643
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 8

Function at 0x45f660
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d7d78
mov eax, dword fs:[0]
push eax
push ecx
mov eax, dword [0x511070]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 0
push eax
push 0
push 0xf003f
push 0
push 0
push 0
push str.SOFTWARETencentQQPCMgr
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x45f6d2
mov eax, dword [ebp + 0xc]
mov dword [ebp + 0xc], eax
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x45f6e0
push 4
lea ecx, [ebp + 0xc]
push ecx
push 4
push 0
push dword [ebp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x45f6e0
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 8

Function at 0x45f700
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d5b68
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
mov eax, dword [0x511070]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor esi, esi
push esi
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], esi
push eax
push esi
push 0xf003f
push esi
push esi
push esi
push str.SOFTWARETencentQQPCMgr
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
mov eax, dword [ebp - 0x10]
jne 0x45f795
test eax, eax
je 0x45f7a0
mov edx, dword [ebp + 0xc]
lea ebx, [edx + 2]
nop dword [eax]
mov cx, word [edx]
add edx, 2
test cx, cx
jne 0x45f760
sub edx, ebx
sar edx, 1
lea ecx, [edx*2 + 2]
push ecx
push dword [ebp + 0xc]
push 1
push 0
push dword [ebp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
mov ecx, 1
mov eax, dword [ebp - 0x10]
cmove esi, ecx
test eax, eax
je 0x45f7a0
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x45fb00
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d7df0
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push ebx
push esi
push edi
mov eax, dword [0x511070]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x1c], edi
mov ecx, dword [ebp + 8]
mov ecx, dword [ecx]
sub ecx, 0x10
call fcn.0041c670
lea esi, [eax + 0x10]
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], 0
or ebx, 0xffffffff
cmp dword [esi - 0xc], 3
jle 0x45fb8c
push 3
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x10]
call fcn.00421e80
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 1
call fcn.0041c6d0
mov byte [ebp - 4], 0
mov eax, ebx
mov edx, dword [ebp - 0x14]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x45fb89
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp - 0x10]
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x24]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
jne 0x45fbb3
xorps xmm0, xmm0
movlpd qword [ebp - 0x18], xmm0
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x18]
jmp 0x45fbb9
mov ecx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x20]
shrd ecx, eax, 0x14
shr eax, 0x14
cmp ecx, 0x1f4
jge 0x45fbcf
mov edi, 1
jmp 0x45fc00
cmp dword [edi + 0x3c], 0
jne 0x45fbfe
mov eax, dword [ebp + 8]
push ecx
mov edi, esp
mov dword [ebp - 0x14], edi
mov ecx, dword [eax]
sub ecx, 0x10
call fcn.0041c670
mov ecx, dword [ebp - 0x1c]
add eax, 0x10
mov dword [edi], eax
call fcn.00464bc0
test eax, eax
jne 0x45fbfe
lea edi, [eax + 2]
jmp 0x45fc00
xor edi, edi
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
lock xadd dword [esi + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x45fc1c
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, edi
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 0x45fc40
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d7e1b
mov eax, dword fs:[0]
push eax
sub esp, 0xec
mov eax, dword [0x511070]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
mov ecx, dword [esi + 0x58]
sub ecx, 0x10
mov dword [ebp - 0xf4], esi
call fcn.0041c670
add eax, 0x10
mov dword [ebp - 0xe4], eax
mov dword [ebp - 4], 0
lea ecx, [ebp - 0xe4]
mov eax, dword [esi]
push ecx
mov ecx, esi
call dword [eax + 4]
mov dword [ebp - 0xe8], eax
test eax, eax
je 0x45fddc
cmp dword [esi + 0x3c], 0
jne 0x45fd1d
push dword [esi + 0x58]
push 0x4f5e40
push 0x515488
call fcn.0048cf90
add esp, 0xc
mov byte [ebp - 4], 1
xor ebx, ebx
lea eax, [ebp - 0xe0]
mov dword [ebp - 0xec], ebx
push 0xc8
push ebx
push eax
call fcn.004a83c0
add esp, 0xc
lea eax, [ebp - 0xe0]
push eax
push 0x64
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
nop dword [eax + eax]
lea edi, [ebp - 0xe0]
cmp word [edi + ebx*2], 0
lea edi, [edi + ebx*2]
jne 0x45fd39
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0xe8]
cmp eax, 1
jne 0x45fe34
mov eax, dword [esi]
mov ecx, esi
push 1
call dword [eax + 0x1c]
push 0x4f5e98
jmp 0x45fe47
push edi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
jne 0x45fe26
movzx eax, word [edi]
mov dword [ebp - 0xf0], eax
mov eax, dword [ebp - 0xe4]
mov ebx, dword [eax - 0xc]
test ebx, ebx
jg 0x45fd69
push 0x80070057
call fcn.0041cdf0
cmp dword [eax - 4], 1
jle 0x45fd81
push ebx
lea ecx, [ebp - 0xe4]
call fcn.0041ca90
mov eax, dword [ebp - 0xe4]
mov ecx, dword [ebp - 0xf0]
mov word [eax], cx
test ebx, ebx
js 0x45fd5f
mov eax, dword [ebp - 0xe4]
cmp ebx, dword [eax - 8]
jg 0x45fd5f
mov dword [eax - 0xc], ebx
xor ecx, ecx
mov eax, dword [ebp - 0xe4]
mov word [eax + ebx*2], cx
lea ecx, [ebp - 0xe4]
mov eax, dword [esi]
push ecx
mov ecx, esi
call dword [eax + 4]
test eax, eax
jne 0x45fe20
movzx eax, word [edi]
push eax
push ecx
lea ecx, [esi + 0x58]
call fcn.00465ea0
push dword [esi + 0x58]
push 0x4f5e6c
push 0x515488
call fcn.0048cf90
add esp, 0xc
mov dword [ebp - 4], 0xffffffff
or eax, 0xffffffff
mov edx, dword [ebp - 0xe4]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x45fe01
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, 1
jmp 0x45fe7b
mov ebx, dword [ebp - 0xec]
add ebx, 4
mov dword [ebp - 0xec], ebx
jmp 0x45fd00
cmp eax, 2
jne 0x45fe54
mov eax, dword [esi]
mov ecx, esi
push 0x13
call dword [eax + 0x1c]
push 0x4f5eb4
push 0x515488
call fcn.0048cf90
add esp, 8
mov dword [ebp - 4], 0xffffffff
or eax, 0xffffffff
mov edx, dword [ebp - 0xe4]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x45fe79
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004a578d
mov esp, ebp
pop ebp
ret
Function at 0x460ab0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x511070]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0x208
lea eax, [ebp - 0x210]
mov edi, ecx
push 0
push eax
call fcn.004a83c0
add esp, 0xc
lea eax, [ebp - 0x210]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
jne 0x460b03
mov esi, dword [edi]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x64
jmp 0x460b96
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
lea esi, [edi + 0x60]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
push str.TencentQQPCMgr_
lea eax, [ebp - 0x210]
push eax
push str._s_s_x_
push esi
call fcn.00421db0
mov ecx, dword [esi]
add esp, 0x14
call fcn.00489ee0
test eax, eax
jne 0x460bd0
push eax
push 0x23
lea eax, [ebp - 0x210]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x460bd0
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
push str.TencentQQPCMgrSetupTemp_
lea eax, [ebp - 0x210]
push eax
push 0x4ed424
push esi
call fcn.00421db0
mov ecx, dword [esi]
add esp, 0x10
call fcn.00489ee0
test eax, eax
jne 0x460bd0
mov esi, dword [edi]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x65
mov ecx, edi
call dword [esi + 0x20]
push str.Failed_to_InitTempPath
push 0x515488
call fcn.0048cf90
add esp, 8
lea ecx, [edi + 0x60]
call fcn.0041ca30
mov edx, dword [edi]
mov ecx, edi
push 0x16
call dword [edx + 0x1c]
xor eax, eax
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a578d
mov esp, ebp
pop ebp
ret
push dword [esi]
push str.temp_:__ws
push 0x515488
call fcn.0048cf90
add esp, 0xc
push dword [esi]
call fcn.004205d0
mov ecx, eax
call fcn.004202d0
mov ecx, dword [ebp - 4]
mov eax, 1
pop edi
xor ecx, ebp
pop esi
call fcn.004a578d
mov esp, ebp
pop ebp
ret