joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1003a430
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x434
mov eax, dword [0x1007b00c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push 0x20a
lea eax, [ebp - 0x41c]
mov dword [ebp - 0x430], 0
mov ebx, edx
mov esi, ecx
push 0
push eax
mov dword [ebp - 0x434], ebx
call sub.VCRUNTIME140.dll_memset
push 0x20a
lea eax, [ebp - 0x210]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0x18
mov dword [ebp - 0x428], 0
mov dword [ebp - 0x424], 0
mov dword [ebp - 0x420], 0
mov dword [ebp - 0x42c], 0
test esi, esi
je 0x1003a60b
xor eax, eax
cmp ax, word [esi]
je 0x1003a60b
test ebx, ebx
je 0x1003a60b
mov eax, dword [ebp + 8]
test eax, eax
jle 0x1003a60b
add eax, eax
push eax
push 0
push ebx
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
push 0
push esi
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov ebx, eax
test ebx, ebx
je 0x1003a5f5
push edi
push 0x1007da74
push ebx
call fcn.1005be25
mov edi, eax
add esp, 8
test edi, edi
je 0x1003a5f4
push edi
push ebx
push 0
push esi
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x1003a5eb
mov ebx, dword [sym.imp.VERSION.dll_VerQueryValueW]
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0x42c]
push eax
push 0x100697e8
push edi
call ebx
test eax, eax
je 0x1003a5eb
xor esi, esi
test dword [ebp - 0x420], 0xfffffffc
jbe 0x1003a5cb
nop
mov eax, dword [ebp - 0x42c]
lea ecx, [eax + esi*4]
movzx eax, word [ecx + 2]
push eax
movzx eax, word [ecx]
push eax
push str.StringFileInfo_04x_04xFileVersion
push 0xffffffffffffffff
lea eax, [ebp - 0x210]
push 0x105
push eax
call fcn.1000f290
add esp, 0x18
mov dword [ebp - 0x428], 0
lea eax, [ebp - 0x424]
push eax
lea eax, [ebp - 0x428]
push eax
lea eax, [ebp - 0x210]
push eax
push edi
call ebx
test eax, eax
jne 0x1003a5b3
mov eax, dword [ebp - 0x420]
inc esi
shr eax, 2
cmp esi, eax
jb 0x1003a550
jmp 0x1003a5cb
push 0x104
push dword [ebp - 0x428]
lea eax, [ebp - 0x41c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
push dword [ebp + 8]
lea eax, [ebp - 0x41c]
push eax
push dword [ebp - 0x434]
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
mov dword [ebp - 0x430], 1
push edi
call fcn.1005be17
add esp, 4
pop edi
mov eax, dword [ebp - 0x430]
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1005b6db
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
pop esi
xor ecx, ebp
pop ebx
call fcn.1005b6db
mov esp, ebp
pop ebp
ret

Function at 0x1003a620
Capabilities:
Get file attributes
Set file attributes

Disassembly:
push esi
push 0
push 0x80
push 3
push 0
push 1
mov esi, ecx
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
je 0x1003a680
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 1
je 0x1003a65b
and eax, 0xfffffffe
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push 0
push 0x80
push 3
push 0
push 0
push 0x40000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
je 0x1003a687
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
pop esi
ret
xor eax, eax
pop esi
ret
Function at 0x1003a690
Capabilities:
Parse pe header
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x148
mov eax, dword [0x1007b00c]
xor eax, esp
mov dword [esp + 0x144], eax
push esi
push edi
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x1003a6e2
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0x144]
xor ecx, esp
call fcn.1005b6db
mov esp, ebp
pop ebp
ret
push 0x40
lea eax, [esp + 0x14]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
push 0xf8
lea eax, [esp + 0x60]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0x18
mov dword [esp + 0xc], 0
xor esi, esi
lea eax, [esp + 0xc]
push esi
push eax
push 0x40
lea eax, [esp + 0x1c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1003a781
cmp dword [esp + 0xc], 0x40
jne 0x1003a781
mov eax, 0x5a4d
cmp word [esp + 0x10], ax
jne 0x1003a781
push esi
push esi
push dword [esp + 0x54]
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp dword [esp + 0x4c], eax
jne 0x1003a781
push esi
lea eax, [esp + 0x10]
push eax
push 0xf8
lea eax, [esp + 0x5c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1003a781
cmp dword [esp + 0xc], 0xf8
jne 0x1003a781
cmp dword [esp + 0x50], 0x4550
mov eax, 1
cmove esi, eax
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x14c]
mov eax, esi
pop edi
pop esi
xor ecx, esp
call fcn.1005b6db
mov esp, ebp
pop ebp
ret
Function at 0x1003acb0
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x68c
mov eax, dword [0x1007b00c]
xor eax, esp
mov dword [esp + 0x688], eax
mov eax, dword [ebp + 8]
xorps xmm0, xmm0
push ebx
push esi
push edi
push 0x250
mov dword [esp + 0x14], eax
mov ebx, edx
lea eax, [esp + 0x24]
movlpd qword [esp + 0x1c], xmm0
push 0
push eax
mov esi, ecx
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [esp + 0x270]
push 0x20a
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [esp + 0x480]
push 0x20a
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [esp + 0x270]
push esi
push 0x10069938
push 0xffffffffffffffff
push 0x104
push eax
call fcn.1000f290
add esp, 0x14
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x274]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [esp + 0x14], eax
cmp eax, 0xffffffff
je 0x1003ae59
lea ecx, [esp + 0x270]
lea edx, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1003ad70
sub ecx, edx
sar ecx, 1
lea ecx, [ecx*2 - 6]
cmp ecx, 0x20a
jae 0x1003ae7a
mov esi, dword [esp + 0x1c]
xor eax, eax
mov edi, dword [esp + 0x18]
mov word [esp + ecx + 0x270], ax
test byte [esp + 0x20], 0x10
je 0x1003ae24
lea eax, [esp + 0x4c]
push 0x10069934
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
add esp, 8
test eax, eax
je 0x1003ae31
lea eax, [esp + 0x4c]
push 0x10069948
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
add esp, 8
test eax, eax
je 0x1003ae31
lea eax, [esp + 0x4c]
push eax
lea eax, [esp + 0x274]
push eax
push str._s_s
push 0xffffffffffffffff
lea eax, [esp + 0x490]
push 0x104
push eax
call fcn.1000f290
push dword [esp + 0x28]
mov edx, ebx
lea ecx, [esp + 0x49c]
call fcn.1003acb0
add esp, 0x1c
add edi, eax
mov eax, dword [esp + 0x10]
adc esi, edx
test eax, eax
je 0x1003ae2a
inc dword [eax]
jmp 0x1003ae2a
test ebx, ebx
je 0x1003ae2a
inc dword [ebx]
add edi, dword [esp + 0x40]
adc esi, 0
lea eax, [esp + 0x20]
push eax
push dword [esp + 0x18]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x1003ada4
mov eax, dword [esp + 0x14]
test eax, eax
je 0x1003ae61
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x1003ae61
mov esi, dword [esp + 0x1c]
mov edi, dword [esp + 0x18]
mov ecx, dword [esp + 0x694]
mov eax, edi
pop edi
mov edx, esi
pop esi
pop ebx
xor ecx, esp
call fcn.1005b6db
mov esp, ebp
pop ebp
ret
call fcn.1005bfc9
int3
Function at 0x1003c660
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2aac
call fcn.1005cad0
mov eax, dword [0x1007b00c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push 0x20a
lea eax, [ebp - 0x210]
mov ebx, ecx
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x210]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
push 0xc
push 0x10068a3c
lea eax, [ebp - 0x210]
push 0x104
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncat_s]
add esp, 0x10
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [ebp - 0x2aac], eax
test eax, eax
jne 0x1003c6f3
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1005b6db
mov esp, ebp
pop ebp
ret
push str.GetAdaptersInfo
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x1003c7f6
lea ecx, [ebp - 0x2a94]
mov dword [ebp - 0x2a94], 0x2880
push ecx
lea ecx, [ebp - 0x2a90]
push ecx
call eax
test eax, eax
jne 0x1003c7f6
mov eax, ebx
mov dword [ebp - 0x2aa4], 3
lea ecx, [ebp - 0x2a9c]
push esi
sub eax, ecx
push edi
lea edi, [ebp - 0x2a90]
mov dword [ebp - 0x2aa8], eax
nop dword [eax + eax]
lea ecx, [edi + 8]
call fcn.1003c860
mov dword [ebp - 0x2aa0], eax
xor eax, eax
mov dword [ebp - 0x2a9c], eax
xor ecx, ecx
mov word [ebp - 0x2a98], ax
mov eax, dword [ebp - 0x2aa8]
lea esi, [ebp - 0x2a9c]
add esi, ecx
mov dl, byte [eax + esi]
cmp dl, byte [esi]
jne 0x1003c792
inc ecx
cmp ecx, 6
jb 0x1003c775
mov ecx, dword [ebp - 0x2aa0]
jmp 0x1003c7a9
cmp dword [edi + 0x1a0], 6
jne 0x1003c7ea
mov ecx, dword [ebp - 0x2aa0]
cmp dword [ebp - 0x2aa4], ecx
jle 0x1003c7ea
movzx eax, byte [edi + 0x194]
mov byte [ebx], al
movzx eax, byte [edi + 0x195]
mov byte [ebx + 1], al
movzx eax, byte [edi + 0x196]
mov byte [ebx + 2], al
movzx eax, byte [edi + 0x197]
mov byte [ebx + 3], al
movzx eax, byte [edi + 0x198]
mov byte [ebx + 4], al
movzx eax, byte [edi + 0x199]
mov byte [ebx + 5], al
mov dword [ebp - 0x2aa4], ecx
mov edi, dword [edi]
test edi, edi
jne 0x1003c750
pop edi
pop esi
push dword [ebp - 0x2aac]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor eax, eax
xor edx, edx
mov dword [ebp - 0x2a9c], eax
mov word [ebp - 0x2a98], ax
lea eax, [ebp - 0x2a9c]
sub ebx, eax
nop dword [eax + eax]
lea ecx, [ebp - 0x2a9c]
add ecx, edx
mov al, byte [ebx + ecx]
cmp al, byte [ecx]
jne 0x1003c846
inc edx
cmp edx, 6
jb 0x1003c820
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1005b6db
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, 1
xor ecx, ebp
pop ebx
call fcn.1005b6db
mov esp, ebp
pop ebp
ret
Function at 0x1003c860
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
mov eax, dword [0x1007b00c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea eax, [ebp - 0x11c]
push edi
push eax
push 0x20019
push 0
push str.SystemCurrentControlSetControlNetwork4D36E972_E325_11CE_BFC1_08002BE10318
push reloc.OLEAUT32.dll_SysReAllocString
mov edi, ecx
mov dword [ebp - 0x10c], 0x104
mov ebx, 3
mov dword [ebp - 0x110], 1
mov dword [ebp - 0x11c], 0
mov dword [ebp - 0x118], 0
mov dword [ebp - 0x114], 0
call esi
test eax, eax
jne 0x1003ca2e
push edi
push str._sConnection
push 0xffffffffffffffff
lea eax, [ebp - 0x108]
push 0x103
push eax
call fcn.100311f0
add esp, 0x14
lea eax, [ebp - 0x118]
push eax
push 0x20019
push 0
lea eax, [ebp - 0x108]
push eax
push dword [ebp - 0x11c]
call esi
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x1003ca26
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [ebp - 0x10c]
push eax
lea eax, [ebp - 0x114]
mov dword [ebp - 0x110], 4
push eax
lea eax, [ebp - 0x110]
mov dword [ebp - 0x10c], 4
push eax
push 0
push str.MediaSubType
push dword [ebp - 0x118]
call esi
test eax, eax
jne 0x1003ca1e
push 0x104
push eax
lea eax, [ebp - 0x108]
mov dword [ebp - 0x110], 1
push eax
mov dword [ebp - 0x10c], 0x103
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x10c]
push eax
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x110]
push eax
push 0
push str.PnpInstanceID
push dword [ebp - 0x118]
call esi
test eax, eax
jne 0x1003ca1e
mov eax, dword [ebp - 0x114]
cmp eax, 1
jne 0x1003ca0f
mov esi, dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncmp]
lea eax, [ebp - 0x108]
push ebx
push 0x10069a60
push eax
call esi
add esp, 0xc
test eax, eax
jne 0x1003c9e0
xor ebx, ebx
jmp 0x1003ca1e
mov eax, dword [ebp - 0x114]
cmp eax, 1
jne 0x1003ca0f
push 3
lea eax, [ebp - 0x108]
push 0x10069a60
push eax
call esi
add esp, 0xc
test eax, eax
je 0x1003ca09
mov ebx, 2
jmp 0x1003ca1e
mov eax, dword [ebp - 0x114]
xor ebx, ebx
cmp eax, 2
setne bl
lea ebx, [ebx*2 + 1]
push dword [ebp - 0x118]
call edi
push dword [ebp - 0x11c]
call edi
mov eax, ebx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1005b6db
mov esp, ebp
pop ebp
ret
Function at 0x1003d270
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1005f1db
mov eax, dword fs:[0]
push eax
sub esp, 0xc
mov eax, dword [0x1007b00c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor esi, esi
test cl, 1
je 0x1003d310
call fcn.1003d3d0
mov dword [ebp - 0x18], esi
test eax, eax
je 0x1003d322
push 8
call fcn.1005b6ec
add esp, 4
mov dword [ebp - 0x14], eax
xorps xmm0, xmm0
mov dword [ebp - 4], esi
mov ecx, eax
movq qword [eax], xmm0
call fcn.10019a40
mov edi, eax
mov dword [ebp - 4], 0xffffffff
test edi, edi
je 0x1003d324
mov eax, dword [edi]
lea ecx, [ebp - 0x18]
push 0
push 4
push ecx
push str.NoDisturb3GNew
mov ecx, edi
call dword [eax + 0xc]
mov esi, dword [ebp - 0x18]
mov ecx, str.QMIsNeedLimitSpeedEx_bCheck3GCfg_false
test esi, esi
mov eax, str.QMIsNeedLimitSpeedEx_bCheck3GCfg_true
cmove eax, ecx
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov eax, dword [edi]
mov ecx, edi
push 1
call dword [eax + 0x60]
jmp 0x1003d322
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], esi
push eax
call sym.AECommonDll.dll_QMQueryNodisturbStatus
mov esi, dword [ebp - 0x14]
and esi, 2
mov eax, esi
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.1005b6db
mov esp, ebp
pop ebp
ret

Function at 0x1003db90
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x1007b00c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x22c
xor ebx, ebx
lea eax, [ebp - 0x230]
push ebx
push eax
mov edi, ecx
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
push ebx
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
cmp esi, 0xffffffff
je 0x1003dc2b
lea eax, [ebp - 0x230]
mov dword [ebp - 0x230], 0x22c
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x1003dc2b
mov ebx, dword [sym.imp.KERNEL32.dll_Process32NextW]
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x1003dbf6
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x20c]
push edi
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsnicmp]
add esp, 0xc
test eax, eax
je 0x1003dc49
lea eax, [ebp - 0x230]
push eax
push esi
call ebx
test eax, eax
jne 0x1003dbf1
xor ebx, ebx
test esi, esi
je 0x1003dc36
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1005b6db
mov esp, ebp
pop ebp
ret
mov ebx, 1
jmp 0x1003dc2b
Function at 0x1003e480
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x1007b00c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x208
lea eax, [ebp - 0x20c]
mov esi, ecx
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
test esi, esi
je 0x1003e525
movzx eax, word [esi]
test ax, ax
je 0x1003e525
cmp eax, 0x5c
jne 0x1003e4c3
cmp word [esi + 2], ax
jne 0x1003e525
cmp eax, 0x2f
je 0x1003e525
push esi
call dword [sym.imp.SHLWAPI.dll_PathIsRootW]
test eax, eax
jne 0x1003e525
push esi
call dword [sym.imp.SHLWAPI.dll_PathIsRelativeW]
test eax, eax
je 0x1003e4fe
push 0x103
lea eax, [ebp - 0x20c]
push esi
push eax
call dword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__wfullpath]
add esp, 0xc
test eax, eax
je 0x1003e525
lea esi, [ebp - 0x20c]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1003e511
test eax, 0x400
jne 0x1003e525
mov eax, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1005b6db
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
pop esi
call fcn.1005b6db
mov esp, ebp
pop ebp
ret
Function at 0x1003ec10
Capabilities:
Check if file exists
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x420
mov eax, dword [0x1007b00c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor edi, edi
lea eax, [ebp - 0x414]
push 0x208
mov esi, ecx
mov dword [ebp - 0x41c], edi
push edi
push eax
mov ebx, edx
mov dword [ebp - 0x420], esi
call sub.VCRUNTIME140.dll_memset
push 0x208
lea eax, [ebp - 0x20c]
push edi
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0x18
mov dword [ebp - 0x418], 0x208
test esi, esi
je 0x1003ee3b
cmp ebx, 0x104
jl 0x1003ee3b
lea eax, [ebx + ebx]
push eax
push edi
push esi
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov esi, 1
push esi
push str.SOFTWARETencentPlatForm_Type_List_d
lea eax, [ebp - 0x414]
push 0x104
push eax
call fcn.1000b7e0
add esp, 0x10
lea eax, [ebp - 0x41c]
push eax
push 1
push 0
lea eax, [ebp - 0x414]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1003ed6a
mov eax, dword [ebp - 0x41c]
test eax, eax
je 0x1003ed6a
lea ecx, [ebp - 0x418]
mov dword [ebp - 0x418], 0x208
push ecx
lea ecx, [ebp - 0x20c]
push ecx
push 0
push 0
push str.TypePath
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1003ed59
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
je 0x1003ed2c
push str.BinQQ.exe
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1003ed59
lea eax, [ebp - 0x20c]
mov edi, 1
push eax
push ebx
push dword [ebp - 0x420]
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy_s]
add esp, 0xc
mov eax, dword [ebp - 0x41c]
test eax, eax
je 0x1003ed74
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x41c], 0
inc esi
cmp esi, 5
jle 0x1003ec90
test edi, edi
jne 0x1003ee28
lea eax, [ebp - 0x41c]
push eax
push 1
push edi
push str.SOFTWARETencentQQ2009
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1003ee17
mov eax, dword [ebp - 0x41c]
test eax, eax
je 0x1003edd8
lea ecx, [ebp - 0x418]
mov dword [ebp - 0x418], 0x208
push ecx
lea ecx, [ebp - 0x20c]
push ecx
push edi
push edi
push str.Install
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1003ee17
push str.BinQQ.exe
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1003ee17
lea eax, [ebp - 0x20c]
mov edi, 1
push eax
push ebx
push dword [ebp - 0x420]
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy_s]
add esp, 0xc
mov ecx, dword [ebp - 0x41c]
test ecx, ecx
je 0x1003ee28
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1005b6db
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1005b6db
mov esp, ebp
pop ebp
ret
Function at 0x1003ee50
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 0x20a
lea eax, [ebp - 0x210]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x210]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
push 0xffffffffffffffff
push str.shell32.dll
lea eax, [ebp - 0x210]
push 0x105
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncat_s]
add esp, 0x10
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x1003eef3
call fcn.1004b770
push 0x3c
push esi
test eax, eax
je 0x1003eee2
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0
push 0
call eax
jmp 0x1003eeec
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0
call eax
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ecx, dword [ebp - 4]
mov eax, 1
xor ecx, ebp
pop esi
call fcn.1005b6db
mov esp, ebp
pop ebp
ret

Function at 0x1003ef10
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x1007b00c]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
mov edi, ecx
mov dword [ebp - 0x218], 0
cmp dword [edi + 0x14], 8
mov dword [edi + 0x10], 0
jb 0x1003ef41
mov eax, dword [edi]
jmp 0x1003ef43
mov eax, edi
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp - 0x218]
push eax
push 1
push ecx
push str.http_shellopencommand
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1003f033
push esi
push 0x208
push eax
mov dword [ebp - 0x214], eax
lea eax, [ebp - 0x20c]
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [ebp - 0x210], 0x208
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x214]
push eax
push 0
push 0x10067498
push dword [ebp - 0x218]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x218]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
mov dword [ebp - 0x218], 0
pop esi
jne 0x1003f033
lea eax, [ebp - 0x20c]
push 0x104
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcslwr_s]
add esp, 8
cmp word [ebp - 0x20c], 0
jne 0x1003eff8
xor ecx, ecx
jmp 0x1003f010
lea ecx, [ebp - 0x20c]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1003f001
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x20c]
mov ecx, edi
push eax
call fcn.10002e00
mov eax, 1
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1005b6db
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
pop edi
call fcn.1005b6db
mov esp, ebp
pop ebp
ret
Function at 0x1003f100
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x1007b00c]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x1007e3cc], 0
push esi
mov esi, ecx
je 0x1003f161
cmp word [0x1007e1c0], 0
je 0x1003f161
mov edx, 0x1007e1c0
lea ecx, [edx + 2]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x1003f131
sub edx, ecx
mov ecx, esi
sar edx, 1
push edx
push 0x1007e1c0
call fcn.10002e00
mov eax, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1005b6db
mov esp, ebp
pop ebp
ret
push edi
xor edi, edi
lea eax, [ebp - 0x408]
push 0x402
push edi
push eax
mov dword [ebp - 0x414], edi
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [ebp - 0x410], 0x400
cmp dword [esi + 0x14], 8
mov dword [esi + 0x10], edi
jb 0x1003f196
mov eax, dword [esi]
jmp 0x1003f198
mov eax, esi
push ebx
xor ecx, ecx
push str.IsWow64Process
push str.kernel32
mov word [eax], cx
mov dword [ebp - 0x40c], ecx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ebx, eax
test ebx, ebx
je 0x1003f1e5
lea eax, [ebp - 0x40c]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call ebx
mov ecx, eax
neg ecx
sbb ecx, ecx
and ecx, dword [ebp - 0x40c]
mov dword [ebp - 0x40c], ecx
jmp 0x1003f1eb
mov ecx, dword [ebp - 0x40c]
lea eax, [ebp - 0x414]
test ecx, ecx
push eax
mov edx, 0x201
mov eax, 1
cmovne eax, edx
push eax
push 0
push str.SOFTWARETencentQQPCMgr
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
pop ebx
test eax, eax
jne 0x1003f2a3
lea eax, [ebp - 0x410]
push eax
lea eax, [ebp - 0x408]
push eax
push 0
push 0
push str.InstallDir
push dword [ebp - 0x414]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1003f297
lea ecx, [ebp - 0x408]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1003f250
sub ecx, edx
sar ecx, 1
cmp ecx, 2
jb 0x1003f297
push 0xffffffffffffffff
lea eax, [ebp - 0x408]
mov edi, 1
push eax
push 0x104
push 0x1007e1c0
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncpy_s]
add esp, 0x10
mov ecx, esi
push 0x1007e1c0
call fcn.1000c1b0
mov dword [0x1007e3cc], edi
push dword [ebp - 0x414]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.1005b6db
mov esp, ebp
pop ebp
ret