joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1001cda7
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x1010e070]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x214], ecx
test edi, edi
jne 0x1001cdcf
xor eax, eax
jmp 0x1001ceb7
push ebx
push esi
push 0x100ecd3c
xor esi, esi
push 0x100d29d4
mov dword [ebp - 0x21c], esi
mov dword [ebp - 0x218], esi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ebx, eax
test ebx, ebx
je 0x1001ce0c
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call ebx
cmp dword [ebp - 0x218], esi
lea eax, [ebp - 0x21c]
push eax
mov ecx, 0x20219
mov eax, 0x20019
cmovne eax, ecx
push eax
push esi
push dword [ebp - 0x214]
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1001ceb3
cmp dword [ebp - 0x21c], esi
je 0x1001ceb3
push 0x20c
lea eax, [ebp - 0x210]
push esi
push eax
call fcn.1008f060
add esp, 0xc
mov dword [ebp - 0x214], 0x20b
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x210]
push eax
push esi
push esi
push str.InstallDir
push dword [ebp - 0x21c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1001cea3
push 0xffffffffffffffff
lea eax, [ebp - 0x210]
push eax
push 0x103
push edi
call fcn.10091bbe
xor esi, esi
add esp, 0x10
inc esi
push dword [ebp - 0x21c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x1001ceb5
xor eax, eax
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.1008bb47
mov esp, ebp
pop ebp
ret
Function at 0x1001cec6
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x480
mov eax, dword [0x1010e070]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
xor esi, esi
mov dword [ebp - 0x480], ecx
push esi
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
push 0x42
mov edi, eax
lea eax, [ebp - 0x48]
push esi
push eax
call fcn.1008f060
add esp, 0xc
cmp edi, 0xffffffff
je 0x1001cfec
test edi, edi
je 0x1001cfec
push ebx
mov ebx, 0x22c
lea eax, [ebp - 0x47c]
push ebx
push esi
push eax
call fcn.1008f060
add esp, 0xc
mov dword [ebp - 0x47c], ebx
lea eax, [ebp - 0x47c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
jmp 0x1001cfd7
lea eax, [ebp - 0x458]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
mov ebx, eax
test ebx, ebx
je 0x1001cfc9
push 0x208
lea eax, [ebp - 0x250]
push esi
push eax
call fcn.1008f060
push 0xffffffffffffffff
push ebx
lea eax, [ebp - 0x250]
push 0x103
push eax
call fcn.10091bbe
add esp, 0x1c
lea eax, [ebp - 0x250]
push eax
call dword [sym.imp.USER32.dll_CharUpperW]
lea edx, [ebp - 0x250]
lea ecx, [edx + 2]
mov ax, word [edx]
add edx, 2
cmp ax, si
jne 0x1001cf90
sub edx, ecx
lea eax, [ebp - 0x48]
sar edx, 1
lea ecx, [ebp - 0x250]
push eax
add edx, edx
call fcn.1004ce17
pop ecx
test al, al
je 0x1001cfc9
push dword [ebp - 0x480]
lea eax, [ebp - 0x48]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x1001cfe1
lea eax, [ebp - 0x47c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x1001cf3e
jmp 0x1001cfe4
xor esi, esi
inc esi
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
xor ecx, ebp
pop esi
call fcn.1008bb47
mov esp, ebp
pop ebp
ret
Function at 0x1001da25
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
lea ecx, [esi + 0x30]
call fcn.10033f5d
mov ecx, dword [esi + 0x38]
test ecx, ecx
je 0x1001da4d
call fcn.10007ab7
push dword [esi + 0x3c]
mov ecx, dword [esi + 0x38]
call fcn.10007af0
xor ebx, ebx
cmp dword [esi + 0x104], 0xffffffff
je 0x1001daa5
mov eax, dword [esi + 0x10c]
test eax, eax
je 0x1001da69
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
push 0xffffffffffffffff
push dword [esi + 0x104]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [esi + 0x104]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
or dword [esi + 0x104], 0xffffffff
mov eax, dword [esi + 0x10c]
mov dword [esi + 0x108], ebx
test eax, eax
je 0x1001daa5
push eax
call edi
mov dword [esi + 0x10c], ebx
cmp dword [esi + 0x14], ebx
je 0x1001dab6
push dword [esi + 0x14]
call fcn.100b42d0
pop ecx
mov dword [esi + 0x14], ebx
mov eax, dword [esi + 0x18]
mov dword [esi + 0x1c], eax
mov eax, dword [esi + 0x24]
mov dword [esi + 0x28], eax
cmp dword [esi + 0x4c], ebx
je 0x1001dad3
push dword [esi + 0x4c]
call dword [sym.imp.USER32.dll_DestroyWindow]
mov dword [esi + 0x4c], ebx
lea edi, [esi - 4]
mov ecx, edi
call fcn.10020b10
call fcn.10023857
mov ecx, eax
call fcn.1001733d
call fcn.10033da7
lea ebx, [edi + 0x8c]
mov esi, dword [ebx]
jmp 0x1001db0e
cmp dword [esi + 0x14], 8
jb 0x1001db02
mov eax, dword [esi]
jmp 0x1001db04
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
add esi, 0x18
cmp esi, dword [edi + 0x90]
jne 0x1001daf8
mov ecx, ebx
call fcn.10023a52
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret 4
Function at 0x1001db26
Capabilities:
Delete file

Disassembly:
push 0x1a4
mov eax, 0x100bf121
call fcn.1008c851
mov dword [ebp - 0x190], ecx
xor ebx, ebx
mov byte [ebp - 0x189], bl
mov dword [ebp - 0x14], ebx
call fcn.100017d6
push eax
lea ecx, [ebp - 0x14]
call fcn.10001572
mov dword [ebp - 4], ebx
mov dword [ebp - 0x18], ebx
call fcn.100017d6
push eax
lea ecx, [ebp - 0x18]
call fcn.10001572
push str.15.10.10395.201
lea ecx, [ebp - 0x194]
mov byte [ebp - 4], 1
call fcn.1000564f
mov byte [ebp - 4], 2
call fcn.10018b84
push 0x100d2a54
push 0x100f332c
lea edi, [eax + 4]
lea eax, [ebp - 0x1b0]
push eax
call fcn.10018b84
mov ecx, eax
call fcn.1000a09a
mov esi, eax
push ebx
mov byte [ebp - 4], 3
mov eax, dword [edi]
push 0x100ed2e8
push edi
call dword [eax + 0x10]
lea eax, [ebp - 0x14]
push eax
push esi
push ecx
lea eax, [ebp - 0x194]
push eax
call fcn.1001f0af
push ebx
push 1
lea ecx, [ebp - 0x1b0]
call fcn.10001f53
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x194]
lea ecx, [ecx - 0x10]
call fcn.100018f3
lea eax, [ebp - 0x194]
push eax
call fcn.1001f03a
push eax
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 4
call fcn.10005601
mov ecx, dword [ebp - 0x194]
lea ecx, [ecx - 0x10]
call fcn.100018f3
mov edi, dword [ebp - 0x18]
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [ebp - 0x188]
call fcn.1001c359
lea ecx, [ebp - 0xc0]
call fcn.1001c89a
mov byte [ebp - 4], 6
push edi
mov dword [ebp - 0xbc], 0x186a0
call fcn.10001a48
pop ecx
push eax
push edi
lea ecx, [ebp - 0x98]
call fcn.10001ddf
mov ebx, dword [ebp - 0x14]
push ebx
call fcn.10001a48
pop ecx
push eax
push ebx
lea ecx, [ebp - 0x188]
call fcn.10001ddf
push edi
call fcn.10001a48
pop ecx
push eax
push edi
lea ecx, [ebp - 0x170]
call fcn.10001ddf
mov esi, dword [ebp - 0x190]
lea edx, [ebp - 0xc0]
push edx
lea edx, [ebp - 0x188]
push edx
mov ecx, dword [esi + 0x18]
mov eax, dword [ecx]
call dword [eax + 4]
test eax, eax
je 0x1001dcc4
mov eax, dword [ebp - 0xc0]
and dword [esi + 0x78], 0
and dword [ebp - 0xb4], 0
mov byte [ebp - 0x189], 1
mov dword [esi + 0x44], eax
mov dword [ebp - 0xb8], 5
jmp 0x1001dcda
push 0x12
pop eax
mov dword [esi + 0x78], eax
mov dword [ebp - 0xb8], 7
mov dword [ebp - 0xb4], eax
lea eax, [ebp - 0xc0]
push eax
lea eax, [ebp - 0x198]
push eax
lea ecx, [esi + 0x10]
call fcn.100246db
mov ecx, dword [ebp - 0x198]
lea eax, [ebp - 0x188]
push eax
lea ecx, [ecx + 0xb8]
call fcn.1001c3e6
cmp byte [ebp - 0x189], 0
jne 0x1001dd3a
mov eax, dword [ebp - 0x190]
mov esi, dword [esi + 0x1c]
cmp esi, dword [eax + 0x20]
je 0x1001dd3a
mov ebx, eax
mov ecx, dword [esi]
test ecx, ecx
je 0x1001dd2f
push dword [ebx + 0x78]
mov eax, dword [ecx]
push ecx
call dword [eax]
add esi, 4
cmp esi, dword [ebx + 0x20]
jne 0x1001dd21
mov ebx, dword [ebp - 0x14]
lea ecx, [ebp - 0xc0]
call fcn.1001c972
lea ecx, [ebp - 0x188]
call fcn.1001dd6c
lea ecx, [edi - 0x10]
call fcn.100018f3
lea ecx, [ebx - 0x10]
call fcn.100018f3
mov al, byte [ebp - 0x189]
call fcn.1008c7fb
ret
Function at 0x1001e554
Capabilities:
Create thread

Disassembly:
push ebx
push esi
push edi
mov edi, ecx
xor ebx, ebx
cmp dword [edi + 0x100], ebx
jne 0x1001e5cf
mov ebx, 0x100d3f58
lea esi, [edi + 0xf0]
push ebx
call fcn.10001a48
pop ecx
push eax
push ebx
mov ecx, esi
call fcn.10001ddf
mov eax, dword [edi + 0xa8]
mov ecx, esi
push 0xffffffffffffffff
push 0
add eax, 0x18
push eax
call fcn.10002aa5
push ebx
call fcn.10001a48
pop ecx
push eax
push ebx
mov ecx, esi
call fcn.10005760
mov ebx, 0x100d3ccc
push ebx
call fcn.10001a48
pop ecx
push eax
push ebx
mov ecx, esi
call fcn.10005760
mov ebx, 0x100f3880
push ebx
call fcn.10001a48
pop ecx
push eax
push ebx
mov ecx, esi
call fcn.10005760
xor ebx, ebx
push ebx
push ebx
push edi
push 0x1001e53e
push ebx
push ebx
call fcn.100974fc
add esp, 0x18
mov dword [edi + 0x108], eax
cmp eax, 0xffffffff
jne 0x1001e608
push str.CTxdlController::StartTbsPackage__beginthreadex_failed
push 0xd2
push str.D:qci_workspace_root_workspaces__qci_pipeline_10566830_1QQPCDownloadTxdlTxdlController.cpp
call fcn.1006b794
xor eax, eax
add esp, 0xc
inc eax
jmp 0x1001e62d
call fcn.10018a1a
mov dword [eax + 0xe4], 2
call fcn.10018a1a
push ebx
mov esi, eax
call fcn.100a112c
mov dword [esi + 0x138], eax
xor eax, eax
pop ecx
pop edi
pop esi
pop ebx
ret
Function at 0x1001e850
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x24
mov eax, dword [0x1010e070]
xor eax, esp
mov dword [esp + 0x20], eax
and dword [esp + 4], 0
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, dword [ebp + 0x10]
cmp dword [ebx + 4], 1
push 9
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], edi
pop esi
jne 0x1001e8a8
cmp dword [ecx + 0x114], 0
jne 0x1001e8a8
call fcn.1001ea6e
movzx esi, ax
test si, si
jne 0x1001e987
mov dword [esp + 0x10], 1
call fcn.10018b84
add eax, 4
push 0
push str.VerMode
push eax
mov ecx, dword [eax]
call dword [ecx + 0x10]
mov dword [esp + 0x1c], eax
test eax, eax
je 0x1001e942
xor eax, eax
lea edi, [esp + 0x20]
stosd dword es:[edi], eax
lea ecx, [esp + 0x20]
push 0x2001f
push str.SoftwareTencentQQPCMgr
push reloc.OLEAUT32.dll_SysReAllocString
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor edi, edi
mov dword [esp + 0x2c], edi
mov dword [esp + 0x30], edi
mov dword [esp + 0x34], edi
call fcn.10003d94
test eax, eax
je 0x1001e914
push ecx
push ecx
push 0x2001f
push ecx
push ecx
push str.SoftwareTencentQQPCMgr
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [esp + 0x3c]
call fcn.1001937f
mov eax, dword [esp + 0x1c]
push 4
mov dword [esp + 0x20], eax
lea eax, [esp + 0x20]
push eax
push 4
push edi
push str.VerMode
push dword [esp + 0x34]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
lea ecx, [esp + 0x20]
call fcn.10003d7a
mov edi, dword [esp + 0x14]
lea eax, [ebx + 0x28]
cmp dword [eax + 0x14], 8
jb 0x1001e94d
mov eax, dword [eax]
push dword [ebx + 4]
push dword [ebx + 0x98]
push dword [esp + 0x20]
push eax
call fcn.10023857
mov ecx, eax
call fcn.10016fb6
test eax, eax
je 0x1001e97b
mov edx, dword [eax]
mov ecx, eax
push edi
call dword [edx + 4]
test eax, eax
je 0x1001e97b
xor esi, esi
jmp 0x1001e987
cmp dword [esp + 0x10], 0
je 0x1001e987
call fcn.10019485
mov ecx, dword [esp + 0x2c]
mov ax, si
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.1008bb47
mov esp, ebp
pop ebp
ret 0xc
Function at 0x1001eb07
Capabilities:
Create process on windows

Disassembly:
push 0x88
mov eax, 0x100bf2b4
call fcn.1008c851
mov esi, dword [ebp + 8]
xor edi, edi
mov dword [ebp - 0x18], edi
call fcn.100017d6
push eax
lea ecx, [ebp - 0x18]
call fcn.10001572
push 0x100f3c2c
push str.QQPCRtp.exe
push esi
lea eax, [ebp - 0x18]
mov dword [ebp - 4], edi
push str.__s_s___d
push eax
call fcn.10005db1
push 0x44
lea eax, [ebp - 0x84]
push edi
push eax
call fcn.1008f060
mov esi, dword [ebp - 0x18]
lea eax, [ebp - 0x94]
add esp, 0x20
xorps xmm0, xmm0
movups xmmword [ebp - 0x94], xmm0
push eax
lea eax, [ebp - 0x84]
push eax
push edi
push edi
push edi
push edi
push edi
push edi
push esi
push edi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x1001ec16
jmp 0x1001ebc3
cmp dword [ebp - 0x34], 0x113
jne 0x1001eb9c
cmp dword [ebp - 0x30], 0x32
je 0x1001ebb0
lea eax, [ebp - 0x38]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp - 0x38]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
push 1
push edi
push edi
push edi
lea eax, [ebp - 0x38]
push eax
call dword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
jne 0x1001eb8d
push 0xf
push dword [ebp - 0x94]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x1001ebb0
lea eax, [ebp - 0x1c]
push eax
push dword [ebp - 0x94]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
je 0x1001ebef
cmp dword [ebp - 0x1c], 0
je 0x1001ec16
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
call fcn.10018a1a
mov dword [eax + 0x158], edi
mov edi, dword [ebp - 0x1c]
call fcn.10018a1a
push 2
mov dword [eax + 0x20], edi
mov dword [eax + 0x15c], edi
pop edi
lea ecx, [esi - 0x10]
call fcn.100018f3
mov eax, edi
call fcn.1008c7fb
ret 4
Function at 0x1001ee77
Capabilities:
Create directory
Delete file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1a4
mov eax, dword [0x1010e070]
xor eax, esp
mov dword [esp + 0x1a0], eax
push ebx
mov ebx, dword [ebp + 8]
mov ecx, ebx
push esi
push edi
call fcn.10020b10
xor esi, esi
mov dword [esp + 0x34], esi
call fcn.100017d6
push eax
lea ecx, [esp + 0x38]
call fcn.10001572
push str.Download_
lea ecx, [esp + 0x14]
mov dword [esp + 0x34], esi
call fcn.1001b109
mov edx, eax
lea ecx, [esp + 0x34]
call fcn.10001474
pop ecx
mov ecx, dword [esp + 0x10]
lea ecx, [ecx - 0x10]
call fcn.100018f3
push esi
push dword [esp + 0x34]
push esi
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
push 0xb
push str.QQPCFix.exe
lea ecx, [esp + 0x38]
call fcn.10003991
push dword [esp + 0x30]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [esp + 0x38]
call fcn.1001c89a
push dword [esp + 0x30]
mov dword [esp + 0x40], 2
mov dword [esp + 0x44], esi
call fcn.10001a48
pop ecx
push eax
push dword [esp + 0x34]
lea ecx, [esp + 0x68]
call fcn.10001ddf
call fcn.10018b84
push 0x100d2a54
push 0x100f332c
lea edi, [eax + 4]
lea eax, [esp + 0x20]
push eax
call fcn.10018b84
mov ecx, eax
call fcn.1000a09a
mov esi, eax
cmp dword [esi + 0x14], 8
jb 0x1001ef5d
mov esi, dword [esi]
mov eax, dword [edi]
push 0
push 0x100ed2e8
push edi
call dword [eax + 0x10]
push eax
lea eax, [esp + 0x38]
push esi
push eax
call fcn.10005db1
add esp, 0xc
lea ecx, [esp + 0x18]
push 0
push 1
call fcn.10001f53
lea ecx, [esp + 0xe0]
call fcn.1001c359
mov esi, dword [esp + 0x34]
push esi
call fcn.10001a48
pop ecx
push eax
push esi
lea ecx, [esp + 0xe8]
call fcn.10001ddf
push dword [esp + 0x30]
call fcn.10001a48
pop ecx
push eax
push dword [esp + 0x34]
lea ecx, [esp + 0x100]
call fcn.10001ddf
lea eax, [esp + 0x38]
push eax
lea eax, [esp + 0x14]
push eax
lea ecx, [ebx + 0x10]
call fcn.100246db
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0xe0]
push eax
lea ecx, [ecx + 0xb8]
call fcn.1001c3e6
lea eax, [ebx + 4]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x1c]
lea ecx, [esp + 0xe0]
call fcn.1001dd6c
lea ecx, [esp + 0x38]
call fcn.1001c972
mov ecx, dword [esp + 0x30]
lea ecx, [ecx - 0x10]
call fcn.100018f3
lea ecx, [esi - 0x10]
call fcn.100018f3
mov ecx, dword [esp + 0x1ac]
xor eax, eax
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.1008bb47
mov esp, ebp
pop ebp
ret 4

Function at 0x1001f1b6
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov ebx, ecx
xor edi, edi
call fcn.10018b84
mov esi, dword [ebp + 8]
add eax, 4
push esi
push eax
mov edx, dword [eax]
call dword [edx + 4]
test eax, eax
js 0x1001f1f5
mov ecx, ebx
call fcn.1001f257
mov ecx, ebx
call fcn.1001fa64
mov ecx, ebx
call fcn.100202cb
xor eax, eax
inc eax
cmp eax, dword [ebx + 0x14]
sbb edi, edi
neg edi
cmp dword [esi + 0x14], 8
jb 0x1001f1fd
mov esi, dword [esi]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, edi
pop edi
pop esi
pop ebx
pop ebp
ret 4
Function at 0x1001f257
Capabilities:
Check if file exists
Create directory
Get common file path
Query environment variable

Disassembly:
push 0x454
mov eax, 0x100bf3c7
call fcn.1008c851
mov edi, ecx
push 0x412
xor ebx, ebx
lea eax, [ebp - 0x428]
push ebx
push eax
call fcn.1008f060
add esp, 0xc
call fcn.1001b206
test eax, eax
je 0x1001f2e9
push 0x208
lea eax, [ebp - 0x428]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
lea eax, [ebp - 0x428]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
lea edx, [ebp - 0x428]
lea ecx, [edi + 0x84]
lea esi, [edx + 2]
mov ax, word [edx]
add edx, 2
cmp ax, bx
jne 0x1001f2b6
sub edx, esi
lea eax, [ebp - 0x428]
sar edx, 1
push edx
push eax
call fcn.10005c3c
push 0xe
lea ecx, [edi + 0x88]
push str.YoudaoNote.exe
call fcn.10005c3c
jmp 0x1001f4a1
push str._appdata__tencentQQPCMgrDownload_
lea eax, [ebp - 0x444]
push str.PackageDirCfg
push eax
call fcn.10018b84
mov ecx, eax
call fcn.1000a09a
mov dword [ebp - 4], ebx
lea ecx, [ebp - 0x428]
cmp dword [ebp - 0x430], 8
lea eax, [ebp - 0x444]
push 0x208
cmovae eax, dword [ebp - 0x444]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
lea eax, [ebp - 0x428]
push eax
call esi
test eax, eax
jne 0x1001f3b9
push ebx
lea eax, [ebp - 0x428]
push eax
push ebx
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
lea eax, [ebp - 0x428]
push eax
call esi
test eax, eax
je 0x1001f37b
lea edx, [ebp - 0x428]
lea ecx, [edi + 0x84]
lea esi, [edx + 2]
mov ax, word [edx]
add edx, 2
cmp ax, bx
jne 0x1001f36e
jmp 0x1001f3d3
lea ecx, [ebp - 0x448]
call fcn.1001b109
lea esi, [edi + 0x84]
mov byte [ebp - 4], 1
push eax
mov ecx, esi
call fcn.10005601
mov byte [ebp - 4], bl
mov ecx, dword [ebp - 0x448]
lea ecx, [ecx - 0x10]
call fcn.100018f3
push 9
push str.Download_
mov ecx, esi
call fcn.10003991
jmp 0x1001f3e4
lea edx, [ebp - 0x428]
lea ecx, [edi + 0x84]
lea esi, [edx + 2]
mov ax, word [edx]
add edx, 2
cmp ax, bx
jne 0x1001f3c8
sub edx, esi
lea eax, [ebp - 0x428]
sar edx, 1
push edx
push eax
call fcn.10005c3c
push 0x100d2a54
lea eax, [ebp - 0x460]
mov dword [ebp - 0x42c], ebx
push str.QQPCMgrNameCfg
push eax
call fcn.10018b84
mov ecx, eax
call fcn.1000a09a
mov byte [ebp - 4], 2
cmp dword [eax + 0x14], 8
jb 0x1001f413
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0x42c]
call fcn.1000564f
push ebx
push 1
lea ecx, [ebp - 0x460]
mov byte [ebp - 4], 4
call fcn.10001f53
mov eax, dword [ebp - 0x42c]
cmp dword [eax - 0xc], ebx
jne 0x1001f473
call fcn.10018b84
add eax, 4
push ebx
push str.ModuleType
push eax
mov ecx, dword [eax]
call dword [ecx + 0x10]
test eax, eax
mov ecx, str.QQPCMgr_Setup.dll
mov esi, str.QQPCMgr_Setup.exe
cmovne esi, ecx
mov ecx, esi
call fcn.10001556
push eax
push esi
lea ecx, [ebp - 0x42c]
call fcn.10005c3c
lea eax, [ebp - 0x42c]
push eax
lea ecx, [edi + 0x88]
call fcn.10005601
mov ecx, dword [ebp - 0x42c]
lea ecx, [ecx - 0x10]
call fcn.100018f3
push ebx
push 1
lea ecx, [ebp - 0x444]
call fcn.10001f53
call fcn.1008c7fb
ret
Function at 0x10020953
Capabilities:
Get common file path
Get program files directory

Disassembly:
push 0x220
mov eax, 0x100bf685
call fcn.1008c851
mov edi, dword [ebp + 8]
xor ebx, ebx
mov esi, dword [ebp + 0x10]
mov dword [ebp - 0x224], ebx
call fcn.100017d6
push eax
lea ecx, [ebp - 0x224]
call fcn.10001572
mov dword [ebp - 4], ebx
call fcn.10018b84
add eax, 4
push ebx
push str.KvNoCmdline
push eax
mov ecx, dword [eax]
call dword [ecx + 0x18]
test eax, eax
je 0x100209b7
cmp dword [esi + 0x60], ebx
jne 0x100209b7
push ebx
push 0x100d2a54
lea ecx, [ebp - 0x224]
call fcn.10005c3c
jmp 0x10020a79
push 0x20a
lea eax, [ebp - 0x21c]
push ebx
push eax
call fcn.1008f060
add esp, 0xc
lea eax, [ebp - 0x21c]
push ebx
push 0x26
push eax
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push str.Kingsoft
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
mov dword [ebp - 0x220], ebx
call fcn.100017d6
push eax
lea ecx, [ebp - 0x220]
call fcn.10001572
lea eax, [ebp - 0x21c]
mov byte [ebp - 4], 1
push eax
push dword [ebp + 0xc]
lea eax, [ebp - 0x220]
push edi
push str._silence1handle_dsupply_dinstallpath__s_
push eax
call fcn.10005db1
lea eax, [esi + 0x80]
add esp, 0x14
cmp dword [eax + 0x14], 8
jb 0x10020a37
mov eax, dword [eax]
push eax
lea edx, [ebp - 0x220]
lea ecx, [ebp - 0x22c]
call fcn.10001474
pop ecx
push eax
lea ecx, [ebp - 0x224]
mov byte [ebp - 4], 2
call fcn.10005601
mov ecx, dword [ebp - 0x22c]
lea ecx, [ecx - 0x10]
call fcn.100018f3
mov byte [ebp - 4], bl
mov ecx, dword [ebp - 0x220]
lea ecx, [ecx - 0x10]
call fcn.100018f3
cmp dword [esi + 0x78], 0
mov dword [ebp - 0x228], ebx
jne 0x10020a8c
mov eax, str.Install
jmp 0x10020a97
lea eax, [esi + 0x68]
cmp dword [eax + 0x14], 8
jb 0x10020a97
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0x228]
call fcn.1000564f
xor ecx, ecx
mov byte [ebp - 4], 3
cmp dword [esi + 0x60], ebx
lea eax, [esi + 0x28]
setne cl
mov dword [esi + 0x98], ecx
cmp dword [eax + 0x14], 8
jb 0x10020ac0
mov eax, dword [eax]
push dword [esi + 4]
push ecx
push dword [ebp - 0x228]
push eax
call fcn.10023857
mov ecx, eax
call fcn.10016fb6
mov esi, dword [ebp - 0x224]
test eax, eax
je 0x10020aed
mov edx, dword [eax]
mov ecx, eax
push esi
call dword [edx + 4]
test eax, eax
jne 0x10020af0
push 9
pop ebx
mov ecx, dword [ebp - 0x228]
add ecx, 0xfffffff0
call fcn.100018f3
lea ecx, [esi - 0x10]
call fcn.100018f3
mov eax, ebx
call fcn.1008c7fb
ret 0xc
Function at 0x10020ea8
Capabilities:
Check if file exists
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x224
mov eax, dword [0x1010e070]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov esi, 0x20a
lea eax, [ebp - 0x210]
xor edi, edi
push esi
push edi
push eax
mov dword [ebp - 0x224], edi
call fcn.1008f060
add esp, 0xc
mov dword [ebp - 0x218], edi
call fcn.100017d6
push eax
lea ecx, [ebp - 0x218]
call fcn.10001572
lea eax, [ebp - 0x224]
mov dword [ebp - 0x21c], esi
push eax
push 0x20019
push edi
push str.SoftwareTencentQQPCMgr
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x10020fe1
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x220]
push eax
push edi
push str.InstallDir
push dword [ebp - 0x224]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x10020fd5
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
lea ecx, [ebp - 0x210]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, di
jne 0x10020f62
sub ecx, edx
lea eax, [ebp - 0x210]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x218]
call fcn.10005c3c
push str.QQRepair.exe
lea edx, [ebp - 0x218]
mov dword [ebp - 0x214], edi
lea ecx, [ebp - 0x214]
call fcn.10001474
pop ecx
push dword [ebp - 0x214]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x10020fc7
push ecx
push edi
push ecx
mov ecx, dword [ebp - 0x214]
mov edx, str._ext1
call fcn.1001b4a1
add esp, 0xc
mov ecx, dword [ebp - 0x214]
lea ecx, [ecx - 0x10]
call fcn.100018f3
push dword [ebp - 0x224]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0x218]
lea ecx, [ecx - 0x10]
call fcn.100018f3
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
xor ecx, ebp
pop esi
call fcn.1008bb47
mov esp, ebp
pop ebp
ret 4