joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10005900
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x1007b00c]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
mov edi, ecx
mov eax, dword [edi + 0x44]
cmp eax, dword [edi + 0x48]
jne 0x10005920
or ecx, 0xffffffff
jmp 0x1000595e
mov eax, dword [eax + 4]
mov dword [edi + 0x58], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, eax
mov edx, 0x1007df28
xor eax, eax
lock cmpxchg dword [edx], ecx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, eax
mov eax, dword [0x1007df28]
cmp eax, ecx
ja 0x1000594e
sub ecx, eax
jmp 0x10005951
sub ecx, eax
dec ecx
mov eax, dword [edi + 0x58]
sub eax, ecx
mov ecx, 0
cmovns ecx, eax
push 4
or eax, 0xffffffff
test ecx, ecx
push 0x1cff
cmovns eax, ecx
push eax
push 0
push 0
call dword [sym.imp.USER32.dll_MsgWaitForMultipleObjectsEx]
pop edi
test eax, eax
jne 0x100059bd
xorps xmm0, xmm0
mov dword [ebp - 0x20], eax
push 6
movups xmmword [ebp - 0x1c], xmm0
movq qword [ebp - 0xc], xmm0
call dword [sym.imp.USER32.dll_GetQueueStatus]
shr eax, 0x10
test al, 6
je 0x100059bd
push 0
push 0x20e
push 0x200
push 0
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
jne 0x100059bd
call dword [sym.imp.USER32.dll_WaitMessage]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1005b6db
mov esp, ebp
pop ebp
ret

Function at 0x10005ce0
Capabilities:
Allocate thread local storage
Set thread local storage value

Disassembly:
push esi
push edi
mov edi, ecx
mov eax, dword [edi + 0x88]
mov dword [edi], vtable.qmbase::MessageLoopForIO.0
test eax, eax
je 0x10005d05
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi + 0x88], 0
mov eax, dword [edi + 0x94]
mov ecx, dword [eax]
mov dword [eax], eax
mov eax, dword [edi + 0x94]
mov dword [eax + 4], eax
mov dword [edi + 0x98], 0
cmp ecx, dword [edi + 0x94]
je 0x10005d45
nop word [eax + eax]
mov esi, dword [ecx]
push ecx
call fcn.1005b6d6
add esp, 4
mov ecx, esi
cmp esi, dword [edi + 0x94]
jne 0x10005d30
push dword [edi + 0x94]
call fcn.1005b6d6
mov eax, dword [edi + 0x8c]
add esp, 4
mov ecx, dword [eax]
mov dword [eax], eax
mov eax, dword [edi + 0x8c]
mov dword [eax + 4], eax
mov dword [edi + 0x90], 0
cmp ecx, dword [edi + 0x8c]
je 0x10005d8d
mov esi, dword [ecx]
push ecx
call fcn.1005b6d6
add esp, 4
mov ecx, esi
cmp esi, dword [edi + 0x8c]
jne 0x10005d78
push dword [edi + 0x8c]
call fcn.1005b6d6
add esp, 4
mov ecx, edi
pop edi
pop esi
jmp fcn.10004b40
Function at 0x10006bf0
Capabilities:
Allocate thread local storage
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1005d418
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x1007b00c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
lea esi, [ebx + 8]
push esi
mov dword [ebp - 0x10], esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [ebp - 4], 0
cmp dword [ebx + 0x20], 0
je 0x10006c7b
mov edi, dword [0x1007de18]
test edi, edi
jne 0x10006c69
push 8
call fcn.1005b6ec
mov edi, eax
add esp, 4
mov dword [ebp - 0x14], edi
mov dword [edi], 0
mov dword [edi + 4], 0xffffffff
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [edi + 4], eax
mov dword [0x1007de18], edi
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, dword [ebx + 0x20]
jne 0x10006c7b
mov bl, 1
jmp 0x10006c7d
xor bl, bl
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov al, bl
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 0x10006cc0
Capabilities:
Allocate thread local storage
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1005d448
mov eax, dword fs:[0]
push eax
sub esp, 0x21c
push ebx
push esi
push edi
mov eax, dword [0x1007b00c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
lea esi, [ebx + 8]
mov byte [ebp - 0xd], 0
push esi
mov dword [ebp - 0x14], esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [ebp - 4], 0
cmp dword [ebx + 0x20], 0
je 0x10006da0
mov edi, dword [0x1007de18]
test edi, edi
jne 0x10006d44
push 8
call fcn.1005b6ec
mov edi, eax
add esp, 4
mov dword [ebp - 0x18], edi
mov dword [edi], 0
mov dword [edi + 4], 0xffffffff
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [edi + 4], eax
mov dword [0x1007de18], edi
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, dword [ebx + 0x20]
je 0x10006da0
mov edi, dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncpy_s]
lea eax, [ebp - 0x228]
push 0xffffffffffffffff
push str.qmbase::MessageLoopProxyImpl::OnDestruct
push 0x105
push eax
call edi
push 0xffffffffffffffff
push str.AEAsyncFrameMessageLoopProxyImpl.cpp
lea eax, [ebp - 0x123]
push 0x105
push eax
call edi
mov ecx, dword [ebx + 0x20]
lea eax, [ebp - 0x228]
add esp, 0x20
mov dword [ebp - 0x1c], 0x38
push ebx
push eax
call fcn.10006e80
mov byte [ebp - 0xd], 1
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp byte [ebp - 0xd], 0
jne 0x10006db6
mov eax, dword [ebx]
mov ecx, ebx
push 1
call dword [eax + 0x14]
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 0x10006dd0
Capabilities:
Allocate thread local storage
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1005d483
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x1007b00c]
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 + 4], 0
lea eax, [edi + 8]
mov dword [ebp - 4], 0
push 0x7d0
push eax
mov dword [edi], vtable.qmbase::MessageLoopProxyImpl.0
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSectionAndSpinCount]
mov byte [ebp - 4], 1
mov esi, dword [0x1007de18]
test esi, esi
jne 0x10006e56
push 8
call fcn.1005b6ec
mov esi, eax
add esp, 4
mov dword [ebp - 0x10], esi
mov dword [esi], 0
mov dword [esi + 4], 0xffffffff
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [esi + 4], eax
mov dword [0x1007de18], esi
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [edi + 0x20], eax
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x10007c20
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
cmp dword [0x1007de34], 0
jne 0x10007c36
call fcn.10050af0
mov dword [0x1007de34], eax
pop ebp
jmp fcn.10050a60

Function at 0x10007e90
Capabilities:
Check if file exists
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
mov eax, dword [0x1007b00c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
xor eax, eax
test esi, esi
je 0x10007eff
cmp ax, word [esi]
je 0x10007efd
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x10007efd
push 0x38
lea eax, [ebp - 0x3c]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [ebp - 0x40], 0x3c
lea eax, [ebp - 0x40]
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x34], str.properties
mov dword [ebp - 0x3c], 0xc
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1005b6db
mov esp, ebp
pop ebp
ret 4
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.1005b6db
mov esp, ebp
pop ebp
ret 4

Function at 0x10008610
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x64
mov eax, dword [0x1007b00c]
xor eax, esp
mov dword [esp + 0x60], eax
mov edx, dword [ebp + 8]
lea ecx, [esp + 4]
push esi
push dword [ebp + 0xc]
mov esi, dword [ebp + 0x10]
mov dword [esp + 0x20], 0
mov dword [esp + 0x1c], 0
mov dword [esp + 0xc], 0x67452301
mov dword [esp + 0x10], 0xefcdab89
mov dword [esp + 0x14], 0x98badcfe
mov dword [esp + 0x18], 0x10325476
call fcn.10034a10
add esp, 4
lea edx, [esp + 8]
mov ecx, esi
call fcn.10034ae0
mov ecx, dword [esp + 0x64]
pop esi
xor ecx, esp
call fcn.1005b6db
mov esp, ebp
pop ebp
ret 0xc
Function at 0x10008940
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x1007b00c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0x20a
lea eax, [ebp - 0x210]
mov esi, edx
push 0
push eax
mov edi, ecx
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x210]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
jne 0x10008997
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1005b6db
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x210]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100089a0
sub ecx, edx
sar ecx, 1
lea eax, [ecx + 1]
cmp esi, eax
jb 0x10008985
lea eax, [ebp - 0x210]
push eax
push esi
push edi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy_s]
mov ecx, dword [ebp - 4]
add esp, 0xc
xor ecx, ebp
mov eax, 1
pop edi
pop esi
call fcn.1005b6db
mov esp, ebp
pop ebp
ret

Function at 0x10008c70
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
mov eax, dword [0x1007b00c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x48]
push esi
push edi
push 0x44
push 0
push eax
mov edi, edx
mov esi, ecx
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [ebp - 0x48], 0x44
cmp dword [ebp + 0xc], 0
xorps xmm0, xmm0
movups xmmword [ebp - 0x58], xmm0
jne 0x10008cbb
xor ecx, ecx
mov eax, 1
mov word [ebp - 0x18], cx
jmp 0x10008cbe
mov eax, dword [ebp - 0x1c]
or eax, 0x80
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x48]
push eax
push ebx
push 0
push 0
push 0
push 0
push 0
push edi
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x10008d06
cmp dword [ebp + 0x10], 0
je 0x10008cf6
push 0xffffffffffffffff
push dword [ebp - 0x58]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 0x58]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x54]
call esi
mov ecx, dword [ebp - 4]
mov eax, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1005b6db
mov esp, ebp
pop ebp
ret
Function at 0x10008d20
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x23c
mov eax, dword [0x1007b00c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov eax, edx
mov dword [ebp - 0x238], ecx
push 0
push 2
mov dword [ebp - 0x23c], eax
mov dword [ebp - 0x234], 0
mov dword [eax], 0
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
cmp esi, 0xffffffff
je 0x10008d86
lea eax, [ebp - 0x230]
mov dword [ebp - 0x230], 0x22c
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
jne 0x10008d97
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1005b6db
mov esp, ebp
pop ebp
ret
push ebx
mov ebx, dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_Process32NextW]
cmp dword [ebp - 0x228], 0
jbe 0x10008dca
mov ecx, dword [ebp - 0x238]
call fcn.10002cb0
push eax
lea eax, [ebp - 0x20c]
push eax
call ebx
add esp, 8
test eax, eax
je 0x10008dda
lea eax, [ebp - 0x230]
push eax
push esi
call edi
test eax, eax
jne 0x10008da5
jmp 0x10008df2
mov ecx, dword [ebp - 0x23c]
mov eax, dword [ebp - 0x228]
mov dword [ebp - 0x234], 1
mov dword [ecx], eax
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x234]
xor ecx, ebp
pop edi
pop ebx
pop esi
call fcn.1005b6db
mov esp, ebp
pop ebp
ret
Function at 0x10008e10
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1005d4a8
mov eax, dword fs:[0]
push eax
sub esp, 0x24c
mov eax, dword [0x1007b00c]
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
mov eax, edx
mov dword [ebp - 0x258], eax
mov esi, ecx
xor ebx, ebx
push ebx
push 2
mov dword [eax], ebx
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov edi, eax
cmp edi, 0xffffffff
je 0x10008e7f
lea eax, [ebp - 0x254]
mov dword [ebp - 0x254], 0x22c
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
jne 0x10008e86
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x10008f44
xor eax, eax
mov dword [ebp - 0x14], 7
push 0xffffffffffffffff
push eax
push esi
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x18], ebx
mov word [ebp - 0x28], ax
call fcn.10002f00
push 2
push 0
push 0x1006748c
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 0
call fcn.1000b060
mov esi, eax
cmp esi, 0xffffffff
je 0x10008eea
push 1
push 0x10067494
push 2
push esi
lea ecx, [ebp - 0x28]
call fcn.1000b150
push 2
push esi
push 0x1006748c
lea ecx, [ebp - 0x28]
call fcn.1000b060
mov esi, eax
cmp esi, 0xffffffff
jne 0x10008ec1
mov esi, dword [sym.imp.KERNEL32.dll_Process32NextW]
mov ecx, dword [ebp - 0x24c]
test ecx, ecx
je 0x10008f06
lea edx, [ebp - 0x28]
call fcn.10008f60
test eax, eax
jne 0x10008f16
lea eax, [ebp - 0x254]
push eax
push edi
call esi
test eax, eax
jne 0x10008ef0
jmp 0x10008f29
mov ecx, dword [ebp - 0x258]
mov ebx, 1
mov eax, dword [ebp - 0x24c]
mov dword [ecx], eax
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x14]
cmp ecx, 8
jb 0x10008f42
inc ecx
push ecx
push dword [ebp - 0x28]
call fcn.10003020
mov eax, ebx
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.1005b6db
mov esp, ebp
pop ebp
ret
Function at 0x10008f60
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x434
mov eax, dword [0x1007b00c]
xor eax, esp
mov dword [esp + 0x430], eax
push ebx
push esi
push edi
push ecx
push 8
mov dword [esp + 0x14], edx
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov edi, eax
cmp edi, 0xffffffff
je 0x10008fb0
lea eax, [esp + 0x10]
mov dword [esp + 0x10], 0x428
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Module32FirstW]
test eax, eax
jne 0x10008fc7
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x430]
xor ecx, esp
call fcn.1005b6db
mov esp, ebp
pop ebp
ret
mov ebx, dword [sym.imp.KERNEL32.dll_Module32NextW]
nop dword [eax]
mov ecx, dword [esp + 0xc]
call fcn.10002cb0
push eax
lea eax, [esp + 0x234]
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
add esp, 8
mov esi, eax
neg esi
sbb esi, esi
add esi, 1
jne 0x10009002
lea eax, [esp + 0x10]
push eax
push edi
call ebx
test eax, eax
jne 0x10008fd0
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x43c]
mov eax, esi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.1005b6db
mov esp, ebp
pop ebp
ret

Function at 0x10009020
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
push ebx
push esi
mov esi, ecx
mov dword [esp + 8], 0
push edi
mov ebx, edx
mov edi, 1
cmp dword [esi + 0x14], 8
jb 0x10009045
mov esi, dword [esi]
xor eax, eax
mov dword [esp + 0x24], 7
mov dword [esp + 0x20], 0
mov word [esp + 0x10], ax
cmp word [esi], ax
jne 0x10009065
xor ecx, ecx
jmp 0x1000907f
mov ecx, esi
lea edx, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10009070
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [esp + 0x18]
call fcn.10002e00
lea edx, [esp + 0xc]
lea ecx, [esp + 0x10]
call fcn.10008d20
mov esi, eax
mov eax, dword [esp + 0x24]
cmp eax, 8
jb 0x100090ad
inc eax
push eax
push dword [esp + 0x14]
call fcn.10003020
test esi, esi
je 0x100090f3
push dword [esp + 0xc]
push 0
push 0x100001
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x100090fc
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push esi
call ebx
cmp eax, 0x102
jne 0x100090ec
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push 0x1f4
push esi
mov edi, eax
call ebx
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x10009480
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1000949e
test al, 0x10
je 0x1000949e
mov eax, 1
pop ebp
ret 4
xor eax, eax
pop ebp
ret 4

Function at 0x10009740
Capabilities:
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
test eax, eax
je 0x10009755
push 4
push 0
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
pop ebp
ret 4
Function at 0x10009760
Capabilities:
Check if file exists
Delete file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x1000977c
mov eax, 1
pop esi
pop ebp
ret 4
push edi
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
push esi
call edi
test eax, eax
jne 0x1000979d
push 0x80
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push esi
call edi
test eax, eax
je 0x100097a8
pop edi
mov eax, 1
pop esi
pop ebp
ret 4
mov edx, 0x10000000
mov ecx, esi
call fcn.1003ab50
push esi
call edi
xor ecx, ecx
test eax, eax
pop edi
setne cl
mov eax, ecx
pop esi
pop ebp
ret 4

Function at 0x10009850
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push edi
push 0
push 0x80
push 3
push 0
push 1
push 0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x1000987a
xor eax, eax
pop edi
pop ebp
ret 4
push esi
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop esi
pop edi
pop ebp
ret 4

Function at 0x10009910
Capabilities:
Check mutex on windows

Disassembly:
push esi
push str.05A474B6_3AD5_4328_A0E7_177A92567F6E
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov esi, eax
test esi, esi
je 0x10009947
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
cmp eax, 0xb7
jne 0x10009941
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
pop esi
ret
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop esi
ret

Function at 0x10009950
Capabilities:
Enumerate processes

Disassembly:
mov ecx, str.QQDrUpdate.exe
jmp fcn.1003db90

Function at 0x10009960
Capabilities:
Enumerate processes

Disassembly:
mov ecx, str.QQPCMgrUpdate.exe
jmp fcn.1003db90
Function at 0x100099d0
Capabilities:
Delete registry value
Persist via run registry key
Set registry value

Disassembly:
jmp 0x1003ff60
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff0
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
sub esp, 0x80
mov eax, dword [0x1007b00c]
xor eax, ebp
mov dword [ebp - 4], eax
mov ax, word [0x10067714]
movups xmm0, xmmword [str.SOFTWARETencentQQPCMgr]
push 0
mov word [ebp - 0x40], ax
mov eax, dword [0x1006a1e8]
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x78]
push eax
push 0
movups xmmword [ebp - 0x70], xmm0
push 2
movups xmm0, xmmword [0x100676f4]
push 0
push 0
movups xmmword [ebp - 0x60], xmm0
push 0
movups xmm0, xmmword [0x10067704]
lea eax, [ebp - 0x70]
mov dword [ebp - 0x78], 0
push eax
movups xmmword [ebp - 0x50], xmm0
push reloc.OLEAUT32.dll_SysReAllocString
movups xmm0, xmmword [str.autostart]
mov dword [ebp - 0x74], 0
movups xmmword [ebp - 0x30], xmm0
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x1004000c
push 4
lea eax, [ebp - 0x74]
push eax
push 4
push 0
lea eax, [ebp - 0x30]
push eax
push dword [ebp - 0x78]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push str._QQPCTray
push str.SOFTWAREMicrosoftWindowsCurrentVersionRun
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHDeleteValueW]
test eax, eax
je 0x10040043
call fcn.1003fae0
test eax, eax
je 0x10040043
push str._QQPCTray
push str.SOFTWAREMicrosoftWindowsCurrentVersionRun
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHDeleteValueW]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1005b6db
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret

Function at 0x10009c80
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x1007b00c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x20c]
push 0x208
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x20c]
push 0x103
push eax
push str._APPDATA_TencentQQDoctor_
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
lea ecx, [ebp - 0x20c]
call fcn.10043020
mov esi, eax
test esi, esi
je 0x10009cf0
push 0xffffffffffffffff
lea eax, [ebp - 0x20c]
push eax
push 0x104
push edi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncpy_s]
add esp, 0x10
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.1005b6db
mov esp, ebp
pop ebp
ret 4
Function at 0x10009d20
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x1007b00c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x20c]
push 0x208
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x20c]
push 0x103
push eax
push str._APPDATA_TencentQQPCMgr_
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
lea ecx, [ebp - 0x20c]
call fcn.10043020
mov esi, eax
test esi, esi
je 0x10009d90
push 0xffffffffffffffff
lea eax, [ebp - 0x20c]
push eax
push 0x104
push edi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncpy_s]
add esp, 0x10
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.1005b6db
mov esp, ebp
pop ebp
ret 4

Function at 0x1000a370
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x1007b00c]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x114
lea eax, [ebp - 0x118]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [ebp - 0x118], 0x114
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x114], 6
mov ecx, dword [ebp - 4]
sbb eax, eax
xor ecx, ebp
inc eax
call fcn.1005b6db
mov esp, ebp
pop ebp
ret

Function at 0x1000a440
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x1007b00c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x208]
mov dword [ebp - 0x20c], 0x100
push eax
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
test eax, eax
je 0x1000a4a3
lea eax, [ebp - 0x208]
push eax
push dword [ebp + 0xc]
push esi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy_s]
add esp, 0xc
mov eax, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1005b6db
mov esp, ebp
pop ebp
ret 8
push str.UNAVAILABLE
push dword [ebp + 0xc]
push esi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy_s]
mov ecx, dword [ebp - 4]
add esp, 0xc
xor ecx, ebp
xor eax, eax
pop esi
call fcn.1005b6db
mov esp, ebp
pop ebp
ret 8

Function at 0x1000aaf0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, dword [ebp + 8]
lea edx, [ebp - 4]
mov dword [ebp - 4], 0
call fcn.10008e10
test eax, eax
je 0x1000ab49
mov ecx, dword [ebp - 4]
test ecx, ecx
je 0x1000ab49
push esi
push edi
push ecx
xor edi, edi
push edi
push 0x100001
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x1000ab45
push edi
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push 0x1f4
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4