joyce8/EMBER2024-capa huggingface dataset:
Function at 0x489a10
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4da730
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push esi
push edi
mov eax, dword [0x511070]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, edx
mov ecx, dword [ecx]
sub ecx, 0x10
call fcn.0041c670
add eax, 0x10
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], 0
mov ecx, dword [esi]
sub ecx, 0x10
call fcn.0041c670
add eax, 0x10
mov dword [ebp - 0x14], eax
push 0xb
push str.BitDefender
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 1
call fcn.0041c490
push 0xb
push str.BitDefender
lea ecx, [ebp - 0x14]
call fcn.0041c490
mov esi, dword [ebp - 0x10]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov edi, dword [ebp - 0x14]
test eax, eax
je 0x489ab2
push edi
push esi
push str.MoveOrCopyBD_from__ws__to__ws
push 0x515488
call fcn.0048cf90
push 0
mov edx, edi
mov ecx, esi
call fcn.00488c80
add esp, 0x14
lea edx, [edi - 0x10]
mov byte [ebp - 4], 0
or edi, 0xffffffff
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x489ad0
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
lock xadd dword [esi + 0xc], edi
dec edi
test edi, edi
jg 0x489aec
mov ecx, dword [esi]
push esi
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
mov esp, ebp
pop ebp
ret

Function at 0x489b10
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x220
mov eax, dword [0x511070]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0x20a
xor esi, esi
mov dword [ebp - 0x21c], ecx
lea eax, [ebp - 0x218]
push esi
push eax
call fcn.004a83c0
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp al, 5
lea eax, [ebp - 0x218]
push str.TSKSP
jb 0x489b5e
push str..Global_s
jmp 0x489b63
push str.._s
push 0x104
push eax
call fcn.004385e0
add esp, 0x10
lea eax, [ebp - 0x218]
push 0
push 0x80
push 3
push 0
push 1
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x489bc8
push 0
lea eax, [ebp - 0x220]
mov dword [ebp - 0x220], esi
push eax
push 0
push 0
push 4
lea eax, [ebp - 0x21c]
push eax
push 0x22e05c
push edi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
push dword [ebp - 0x21c]
push str.UpdateSelfProtect__Leave__bEnable_d__bResult_d
push 0x515488
call fcn.0048d1f0
mov ecx, dword [ebp - 4]
add esp, 0x10
mov eax, esi
xor ecx, ebp
pop edi
pop esi
call fcn.004a578d
mov esp, ebp
pop ebp
ret
Function at 0x489d80
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4da75b
mov eax, dword fs:[0]
push eax
sub esp, 0x110
mov eax, dword [0x511070]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea eax, [ebp - 0x114]
mov dword [ebp - 0x114], 0
push eax
push 0x20019
push 0
push str.SOFTWAREMicrosoftInternet_Explorer
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x489ea3
push 0x80
push eax
lea eax, [ebp - 0x90]
push eax
call fcn.004a83c0
push 0x80
lea eax, [ebp - 0x110]
push 0
push eax
call fcn.004a83c0
mov eax, dword [ebp - 0x114]
add esp, 0x18
mov dword [ebp - 0x118], 0x40
test eax, eax
je 0x489ea9
lea ecx, [ebp - 0x118]
push ecx
lea ecx, [ebp - 0x90]
push ecx
lea ecx, [ebp - 0x11c]
push ecx
push 0
push str.Version
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x489ea3
lea eax, [ebp - 0x90]
push eax
call fcn.004b0c83
mov esi, eax
add esp, 4
cmp esi, 9
jne 0x489e9b
mov eax, dword [ebp - 0x114]
test eax, eax
je 0x489eb6
lea ecx, [ebp - 0x118]
push ecx
lea ecx, [ebp - 0x110]
push ecx
lea ecx, [ebp - 0x11c]
push ecx
push 0
push str.svcVersion
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x489e9b
lea eax, [ebp - 0x110]
push eax
call fcn.004b0c83
add esp, 4
mov esi, eax
mov eax, dword [ebp - 0x114]
jmp 0x489eab
mov eax, dword [ebp - 0x114]
xor esi, esi
test eax, eax
je 0x489eb6
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
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004a578d
mov esp, ebp
pop ebp
ret
Function at 0x489ee0
Capabilities:
Check if file exists
Create directory
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d5b38
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x511070]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
xor eax, eax
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
cmp word [esi], ax
jne 0x489f28
xor ecx, ecx
jmp 0x489f3f
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x489f30
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x28]
call fcn.00439160
push esi
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x489fd0
test al, 0x10
je 0x489fbc
test al, 2
je 0x489f86
push 0x90
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
jne 0x489f86
push str.CreateDeepDirectory__failed_to_SetFileAttributes.
push 0x515488
call fcn.0048cf90
add esp, 8
mov esi, 1
mov ecx, dword [ebp - 0x14]
cmp ecx, 8
jb 0x489fa0
inc ecx
push ecx
push dword [ebp - 0x28]
lea ecx, [ebp - 0x28]
call fcn.00433600
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004a578d
mov esp, ebp
pop ebp
ret
mov edx, 1
mov ecx, esi
call fcn.0048a090
test eax, eax
jne 0x489fd0
xor esi, esi
jmp 0x489f8b
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x489f86
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x489f86
lea ecx, [ebp - 0x28]
call fcn.00489c80
cmp dword [ebp - 0x18], 0
jne 0x489ffc
xor esi, esi
jmp 0x489f8b
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x28]
cmovae ecx, dword [ebp - 0x28]
call fcn.00489ee0
test eax, eax
jne 0x48a017
xor esi, esi
jmp 0x489f8b
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x489f86
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x489f86
xor esi, esi
jmp 0x489f8b
Function at 0x48ae00
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4da95b
mov eax, dword fs:[0]
push eax
sub esp, 0x214
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, ecx
mov dword [ebp - 0x21c], edi
push 0x208
lea eax, [ebp - 0x218]
mov dword [ebp - 0x220], 0
push 0
push eax
call fcn.004a83c0
add esp, 0xc
call fcn.0041bed0
mov ecx, eax
test ecx, ecx
jne 0x48ae6a
push 0x80004005
call fcn.0041cdf0
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x21c], esi
push 0
push 0x1a
lea eax, [ebp - 0x218]
mov dword [ebp - 4], 0
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x48af06
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x48aeb0
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x21c]
call fcn.0041ccd0
push 0x10
push str.TencentQQPCMgr_
lea ecx, [ebp - 0x21c]
call fcn.0041c490
mov esi, dword [ebp - 0x21c]
mov ecx, esi
call fcn.00489ee0
test eax, eax
jne 0x48af06
lea ecx, [ebp - 0x21c]
call fcn.0041ca30
mov esi, dword [ebp - 0x21c]
mov dword [edi + 0x14], 7
mov dword [edi + 0x10], 0
cmp dword [edi + 0x14], 8
jb 0x48af1e
mov eax, dword [edi]
jmp 0x48af20
mov eax, edi
xor ecx, ecx
mov word [eax], cx
cmp word [esi], cx
je 0x48af3f
mov ecx, esi
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x48af30
sub ecx, edx
sar ecx, 1
push ecx
push esi
mov ecx, edi
call fcn.00439160
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x48af67
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
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004a578d
mov esp, ebp
pop ebp
ret
Function at 0x48af90
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4da9b2
mov eax, dword fs:[0]
push eax
sub esp, 0x21c
mov eax, dword [0x511070]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x220], esi
push 0x208
lea eax, [ebp - 0x218]
mov dword [ebp - 4], 0
push 0
push eax
mov dword [ebp - 0x224], esi
mov dword [ebp - 0x21c], 0
call fcn.004a83c0
add esp, 0xc
call fcn.0041bed0
mov ecx, eax
test ecx, ecx
jne 0x48b006
push 0x80004005
call fcn.0041cdf0
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [esi], eax
push 0
push 0x23
lea eax, [ebp - 0x218]
mov dword [ebp - 4], 0
push eax
push 0
mov dword [ebp - 0x21c], 1
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x48b080
push str.TencentQQPCMgr_
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea ecx, [ebp - 0x218]
call fcn.00489ee0
test eax, eax
je 0x48b080
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x48b062
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
mov ecx, esi
call fcn.0041ccd0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004a578d
mov esp, ebp
pop ebp
ret
Function at 0x48bab0
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x428
mov eax, dword [0x511070]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
push edi
push 0x400
lea eax, [ebp - 0x40c]
mov dword [ebp - 0x410], 0
mov esi, edx
mov dword [ebp - 0x414], 0
mov ebx, ecx
mov dword [ebp - 0x418], esi
push 0
push eax
mov dword [ebp - 0x41c], ebx
call fcn.004a83c0
mov edi, dword [ebp + 8]
add esp, 0xc
mov dword [ebp - 0x424], 0
mov dword [ebp - 0x420], 0
test edi, edi
je 0x48bb20
call fcn.0048a040
lea eax, [ebp - 0x410]
push eax
push 0xf003f
push 0
push esi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x48bbe9
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
lea eax, [ebp - 0x424]
push eax
push 0
push 0
push 0
lea eax, [ebp - 0x414]
mov dword [ebp - 0x414], 0x200
push eax
lea eax, [ebp - 0x40c]
push eax
push 0
push dword [ebp - 0x410]
call ebx
test eax, eax
jne 0x48bbd0
nop word [eax + eax]
mov ecx, dword [ebp - 0x410]
lea edx, [ebp - 0x40c]
push edi
call fcn.0048bab0
mov esi, eax
add esp, 4
test esi, esi
jne 0x48bbfa
lea eax, [ebp - 0x424]
mov dword [ebp - 0x414], 0x200
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x40c]
push eax
push esi
push dword [ebp - 0x410]
call ebx
test eax, eax
je 0x48bb80
mov esi, dword [ebp - 0x418]
push dword [ebp - 0x410]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push esi
push dword [ebp - 0x41c]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.004a578d
mov esp, ebp
pop ebp
ret
push dword [ebp - 0x410]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 8]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004a578d
mov esp, ebp
pop ebp
ret
Function at 0x48bec0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x511070]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x20a
lea eax, [ebp - 0x210]
mov dword [ebp - 0x218], 0
mov esi, ecx
push 0
push eax
mov dword [ebp - 0x214], esi
call fcn.004a83c0
add esp, 0xc
lea eax, [ebp - 0x210]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
xor eax, eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
mov word [esi], ax
cmp word [ebp - 0x210], ax
jne 0x48bf2e
xor ecx, ecx
jmp 0x48bf46
lea ecx, [ebp - 0x210]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x48bf37
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x210]
mov ecx, esi
push eax
call fcn.00439160
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.004a578d
mov esp, ebp
pop ebp
ret
Function at 0x48c210
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4dabd8
mov eax, dword fs:[0]
push eax
sub esp, 0x54
mov eax, dword [0x511070]
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 esi, ecx
push esi
xor ebx, ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x48c40e
call fcn.0041bed0
mov ecx, eax
test ecx, ecx
jne 0x48c263
push 0x80004005
call fcn.0041cdf0
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x5c], eax
mov dword [ebp - 4], 0
call fcn.0041bed0
mov ecx, eax
test ecx, ecx
jne 0x48c28a
push 0x80004005
call fcn.0041cdf0
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x60], eax
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x28]
push 0xd
xor eax, eax
mov dword [ebp - 0x14], 7
push str._regsvr32.exe
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
call fcn.00439160
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 2
call fcn.0048dbe0
mov byte [ebp - 4], 3
cmp dword [eax + 0x14], 8
jb 0x48c2d4
mov eax, dword [eax]
lea ecx, [ebp - 0x28]
mov edx, eax
push ecx
lea ecx, [ebp - 0x40]
call fcn.00438720
add esp, 4
mov edx, eax
mov byte [ebp - 4], 4
cmp dword [edx + 0x14], 8
jb 0x48c2f3
mov edx, dword [edx]
test edx, edx
jne 0x48c2fb
xor ecx, ecx
jmp 0x48c30f
mov ecx, edx
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x48c300
sub ecx, edi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x60]
call fcn.0041ccd0
mov eax, dword [ebp - 0x2c]
cmp eax, 8
jb 0x48c32e
inc eax
lea ecx, [ebp - 0x40]
push eax
push dword [ebp - 0x40]
call fcn.00433600
xor eax, eax
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x30], 0
cmp eax, 8
jb 0x48c357
inc eax
lea ecx, [ebp - 0x58]
push eax
push dword [ebp - 0x58]
call fcn.00433600
xor eax, eax
mov byte [ebp - 4], 1
mov word [ebp - 0x58], ax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x44], 7
mov dword [ebp - 0x48], 0
cmp eax, 8
jb 0x48c384
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.00433600
xor eax, eax
mov dword [ebp - 0x14], 7
push esi
mov word [ebp - 0x28], ax
lea eax, [ebp - 0x5c]
push str._u__s___s_
push eax
mov dword [ebp - 0x18], 0
call fcn.00421db0
mov edi, dword [ebp - 0x60]
add esp, 0xc
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov esi, dword [ebp - 0x5c]
mov edx, esi
mov ecx, edi
push 0
push 1
push 0xffffffffffffffff
test eax, eax
jne 0x48c3ca
mov ecx, str.regsvr32
call fcn.0048fc00
lea edx, [edi - 0x10]
mov byte [ebp - 4], 0
or edi, 0xffffffff
mov ebx, eax
add esp, 0xc
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x48c3f2
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
lock xadd dword [esi + 0xc], edi
dec edi
test edi, edi
jg 0x48c40e
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
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.004a578d
mov esp, ebp
pop ebp
ret
Function at 0x48c860
Capabilities:
Check if file exists
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x41c
mov eax, dword [0x511070]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push edi
xor ebx, ebx
lea eax, [ebp - 0x414]
push 0x208
push ebx
push eax
mov edi, ecx
mov dword [ebp - 0x418], ebx
call fcn.004a83c0
push 0x208
lea eax, [ebp - 0x20c]
push ebx
push eax
call fcn.004a83c0
add esp, 0x18
mov dword [ebp - 0x41c], 0x208
test edi, edi
je 0x48ca88
push esi
push 0x208
push ebx
push edi
call fcn.004a83c0
add esp, 0xc
mov esi, 1
nop dword [eax]
push esi
lea eax, [ebp - 0x414]
push str.SOFTWARETencentPlatForm_Type_List_d
push eax
call fcn.00476510
add esp, 0xc
lea eax, [ebp - 0x418]
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 0x48c9b1
mov eax, dword [ebp - 0x418]
test eax, eax
je 0x48c9b1
lea ecx, [ebp - 0x41c]
mov dword [ebp - 0x41c], 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 0x48c9a0
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
je 0x48c967
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 0x48c9a0
lea ecx, [ebp - 0x20c]
mov edx, edi
mov eax, ecx
mov ebx, 1
sub edx, eax
nop dword [eax]
movzx eax, word [ecx]
lea ecx, [ecx + 2]
mov word [edx + ecx - 2], ax
test ax, ax
jne 0x48c990
mov eax, dword [ebp - 0x418]
test eax, eax
je 0x48c9bb
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x418], 0
inc esi
cmp esi, 5
jle 0x48c8d0
pop esi
test ebx, ebx
jne 0x48ca76
lea eax, [ebp - 0x418]
push eax
push 1
push 0
push str.SOFTWARETencentQQ2009
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x48ca65
mov eax, dword [ebp - 0x418]
test eax, eax
je 0x48ca23
lea ecx, [ebp - 0x41c]
mov dword [ebp - 0x41c], 0x208
push ecx
lea ecx, [ebp - 0x20c]
push ecx
push 0
push 0
push str.Install
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x48ca65
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 0x48ca65
lea ecx, [ebp - 0x20c]
mov ebx, 1
mov eax, ecx
sub edi, eax
movzx eax, word [ecx]
lea ecx, [ecx + 2]
mov word [edi + ecx - 2], ax
test ax, ax
jne 0x48ca55
mov ecx, dword [ebp - 0x418]
test ecx, ecx
je 0x48ca76
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a578d
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
xor ecx, ebp
pop ebx
call fcn.004a578d
mov esp, ebp
pop ebp
ret
Function at 0x48cdc0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xf8
mov eax, dword [0x511070]
xor eax, ebp
mov dword [ebp - 8], eax
cmp dword [0x5154bc], 0
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
je 0x48cdfa
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.004a578d
mov esp, ebp
pop ebp
ret 4
call fcn.0048d6b0
cmp word [esi], 0
jne 0x48ce09
xor eax, eax
jmp 0x48ce1f
mov eax, esi
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x48ce10
sub eax, edx
sar eax, 1
push eax
push esi
mov ecx, 0x515498
call fcn.00439160
push 0xc8
xorps xmm0, xmm0
mov dword [0x5154bc], 1
lea eax, [ebp - 0xd4]
mov byte [ebp - 0xf4], 0
push 0
push eax
movups xmmword [ebp - 0xf3], xmm0
mov word [ebp - 0xe3], 0
mov byte [ebp - 0xe1], 0
mov dword [ebp - 0xe0], 0
movq qword [ebp - 0xdc], xmm0
call fcn.004a83c0
add esp, 0xc
lea eax, [ebp - 0xf4]
push 1
push eax
call dword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
push 0
push 0
push 1
lea eax, [ebp - 0xf4]
push eax
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
lea eax, [ebp - 0xf4]
mov dword [ebp - 0xe0], 0xc
mov dword [ebp - 0xdc], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push str.GlobalBFD88F2D_0990_4de4_AD0F_764F5894389A__d
lea eax, [ebp - 0xd4]
push 0x63
push eax
call fcn.0046b4c0
mov edi, dword [sym.imp.KERNEL32.dll_CreateEventW]
lea eax, [ebp - 0xd4]
add esp, 0x10
push eax
push 1
push 1
lea eax, [ebp - 0xe0]
push eax
call edi
mov ecx, dword [0x51548c]
mov ebx, eax
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test ecx, ecx
je 0x48cf02
push ecx
call esi
push 0
push 0
push 0
push 0
mov dword [0x51548c], ebx
call edi
mov edi, eax
mov eax, dword [0x515490]
test eax, eax
je 0x48cf20
push eax
call esi
cmp dword [0x51548c], 0
mov dword [0x515490], edi
je 0x48cf7b
test edi, edi
je 0x48cf7b
push 0
push 0
push 0x515488
push 0x48d410
push 0
push 0
call fcn.004af800
mov edi, eax
add esp, 0x18
mov eax, dword [0x515494]
test eax, eax
je 0x48cf5b
push eax
call esi
xor eax, eax
mov dword [0x515494], edi
test edi, edi
setne al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.004a578d
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 8]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004a578d
mov esp, ebp
pop ebp
ret 4
Function at 0x48d6b0
Capabilities:
Get file size
Move file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d38e8
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x511070]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp dword [0x5154ac], 8
mov ebx, 0x515498
push 0
push 0x80
push 3
push 0
push 3
mov eax, ebx
cmovae eax, dword [0x515498]
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x48d7b5
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
xor eax, eax
cmp esi, 0xffffffff
push edi
cmove esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp esi, 0x80000
jb 0x48d7b5
cmp dword [0x5154ac], 8
lea ecx, [ebp - 0x10]
mov eax, ebx
cmovae eax, dword [0x515498]
push eax
call fcn.0041c970
push ecx
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], 0
call fcn.0048d870
cmp dword [0x5154ac], 8
mov edi, dword [ebp - 0x10]
cmovae ebx, dword [0x515498]
mov esi, dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push 0
push edi
call esi
mov edx, 1
mov ecx, edi
call fcn.0048a090
push 0
push ebx
call esi
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_MoveFileW]
mov dword [ebp - 4], 0xffffffff
or ecx, 0xffffffff
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], ecx
dec ecx
test ecx, ecx
jg 0x48d7b5
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
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret