joyce8/EMBER2024-capa huggingface dataset:
Function at 0x6511ec00
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6514e3b7
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
mov eax, dword [0x6516c6d0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
xor eax, eax
xor ebx, ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], eax
mov dword [esi + 0x20], eax
mov dword [esi + 0x24], eax
mov byte [esi + 0x28], bl
mov dword [ebp - 4], ebx
mov dword [esi + 0x2c], ebx
mov dword [esi + 0x30], ebx
push esi
lea ecx, [esi + 0x38]
mov byte [ebp - 4], 2
call fcn.6511e4b0
mov dword [esi + 0x34], 0x6515d174
push esi
lea ecx, [esi + 0x40]
mov byte [ebp - 4], 3
call fcn.6511e550
mov dword [esi + 0x3c], 0x6515d174
mov dword [esi + 0x50], ebx
mov dword [esi + 0x54], ebx
mov dword [esi + 0x58], ebx
mov dword [esi + 0x5c], ebx
mov dword [esi + 0x48], 0x65158554
mov eax, dword [esi + 0x40]
mov ecx, 0x6511de00
mov dword [eax + 0x28], ecx
xor edx, edx
mov dword [eax + 0x2c], edx
mov eax, dword [esi + 0x38]
mov ecx, 0x6511ddf0
mov dword [eax + 0x28], ecx
mov dword [eax + 0x2c], ebx
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x65126f90
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6514f49b
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x6516c6d0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
xor eax, eax
mov dword [esi + 4], eax
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], eax
mov byte [esi + 0x20], al
mov dword [esi], 0x65159c08
mov dword [esi + 0x28], eax
mov dword [esi + 0x2c], eax
mov dword [esi + 0x30], eax
push 0x18
mov dword [ebp - 4], eax
mov dword [esi + 0x34], eax
call sub.MSVCR80.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
push eax
mov dword [esi + 0x24], eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x65129f70
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6514fa4b
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x6516c6d0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov ecx, dword [ebp + 8]
xor eax, eax
mov dword [esi + 4], eax
mov dword [esi], 0x6515a25c
mov dword [esi + 0x1c], eax
mov dword [esi + 0x20], eax
mov dword [esi + 0x24], eax
mov dword [esi + 0x28], eax
mov dword [esi + 0x2c], eax
mov dword [esi + 0x30], eax
mov byte [esi + 0x34], al
mov dword [esi + 0xc], 0x6515a224
mov dword [esi + 0x10], 0x6515b1c8
mov dword [esi + 0x14], 0x6515a214
mov dword [esi + 0x18], ecx
mov ecx, dword [0x6516cfac]
mov edx, dword [ecx]
mov dword [ebp - 4], eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x6512c390
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6514fa4b
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x6516c6d0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov ecx, dword [ebp + 8]
xor eax, eax
mov dword [esi + 4], eax
mov dword [esi], 0x6515b210
mov dword [esi + 0x1c], eax
mov dword [esi + 0x20], eax
mov dword [esi + 0x24], eax
mov dword [esi + 0x28], eax
mov dword [esi + 0x2c], eax
mov dword [esi + 0x30], eax
mov byte [esi + 0x34], al
mov dword [esi + 0xc], 0x6515b1ec
mov dword [esi + 0x10], 0x6515b1c8
mov dword [esi + 0x14], 0x6515b1b8
mov dword [esi + 0x18], ecx
mov ecx, dword [0x6516cfac]
mov edx, dword [ecx]
mov dword [ebp - 4], eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x6512e240
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
mov ebx, dword [ebp + 8]
push edi
lea eax, [ebp - 4]
push eax
push ebx
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov edi, eax
test edi, edi
jne 0x6512e263
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
push esi
push edi
call fcn.6514af0c
mov ecx, dword [ebp - 4]
add esp, 4
mov esi, eax
push esi
push edi
push ecx
push ebx
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x6512e2c7
lea edx, [ebp - 8]
push edx
lea eax, [ebp + 8]
push eax
push 0x65159a30
push esi
mov dword [ebp + 8], 0
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x6512e2c7
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
mov edx, dword [ebp + 0xc]
mov dword [edx], ecx
mov eax, dword [eax + 0xc]
mov ecx, dword [ebp + 0x10]
push esi
mov dword [ecx], eax
call sub.MSVCR80.dll_void___cdecl_operator_delete___void__
add esp, 4
pop esi
pop edi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret 0xc
push esi
call sub.MSVCR80.dll_void___cdecl_operator_delete___void__
add esp, 4
pop esi
pop edi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0xc

Function at 0x6512e2e0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x6516c6d0]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
push esi
push edi
mov edi, dword [ebp + 0x10]
lea edx, [ebp - 0x210]
push edx
push 1
push 0
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
test esi, esi
jne 0x6512e35f
mov edx, dword [ebp - 0x210]
lea eax, [ebp - 0x214]
push eax
lea ecx, [ebp - 0x20c]
push ecx
push esi
push edx
mov dword [ebp - 0x214], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueW]
push 0x104
lea eax, [ebp - 0x20c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
mov ecx, dword [ebp - 0x210]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.6514af96
mov esp, ebp
pop ebp
ret 0xc
Function at 0x6512f920
Capabilities:
Access peb ldr_data
Get ntdll base address
Get process heap flags
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x651501a8
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x6516c6d0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov edi, dword [sym.imp.Common.dll_public:_void___thiscall_CTXStringW::constructor_void_]
lea ecx, [esi + 4]
call edi
xor ebx, ebx
lea ecx, [esi + 8]
mov dword [ebp - 4], ebx
call edi
lea ecx, [esi + 0xc]
mov byte [ebp - 4], 1
call edi
lea ecx, [esi + 0x10]
mov byte [ebp - 4], 2
call edi
lea ecx, [esi + 0x14]
mov byte [ebp - 4], 3
call edi
lea ecx, [esi + 0x18]
mov byte [ebp - 4], 4
call edi
lea ecx, [esi + 0x1c]
mov byte [ebp - 4], 5
call edi
lea ecx, [esi + 0x20]
mov byte [ebp - 4], 6
call edi
lea ecx, [esi + 0x24]
mov byte [ebp - 4], 7
call edi
lea ecx, [esi + 0x28]
mov byte [ebp - 4], 8
call edi
lea ecx, [esi + 0x30]
mov byte [ebp - 4], 9
call edi
lea ecx, [esi + 0x34]
mov byte [ebp - 4], 0xa
call edi
lea ecx, [esi + 0x38]
mov byte [ebp - 4], 0xb
call edi
lea ecx, [esi + 0x3c]
mov byte [ebp - 4], 0xc
call edi
lea ecx, [esi + 0x40]
mov byte [ebp - 4], 0xd
call edi
lea ecx, [esi + 0x44]
mov byte [ebp - 4], 0xe
call edi
lea ecx, [esi + 0x48]
mov byte [ebp - 4], 0xf
call edi
lea ecx, [esi + 0x4c]
mov byte [ebp - 4], 0x10
call edi
lea ecx, [esi + 0x5c]
mov byte [ebp - 4], 0x11
call edi
mov dword [esi], ebx
mov dword [esi + 0x2c], ebx
mov dword [esi + 0x54], ebx
mov dword [esi + 0x58], ebx
mov eax, esi
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 0x6512fa20
Capabilities:
Access peb ldr_data
Get process heap flags
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x651502a8
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x6516c6d0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov edi, dword [sym.imp.Common.dll_public:_void___thiscall_CTXStringW::destructor_void_]
lea ecx, [esi + 0x5c]
mov dword [ebp - 4], 0x11
call edi
lea ecx, [esi + 0x4c]
mov byte [ebp - 4], 0x10
call edi
lea ecx, [esi + 0x48]
mov byte [ebp - 4], 0xf
call edi
lea ecx, [esi + 0x44]
mov byte [ebp - 4], 0xe
call edi
lea ecx, [esi + 0x40]
mov byte [ebp - 4], 0xd
call edi
lea ecx, [esi + 0x3c]
mov byte [ebp - 4], 0xc
call edi
lea ecx, [esi + 0x38]
mov byte [ebp - 4], 0xb
call edi
lea ecx, [esi + 0x34]
mov byte [ebp - 4], 0xa
call edi
lea ecx, [esi + 0x30]
mov byte [ebp - 4], 9
call edi
lea ecx, [esi + 0x28]
mov byte [ebp - 4], 8
call edi
lea ecx, [esi + 0x24]
mov byte [ebp - 4], 7
call edi
lea ecx, [esi + 0x20]
mov byte [ebp - 4], 6
call edi
lea ecx, [esi + 0x1c]
mov byte [ebp - 4], 5
call edi
lea ecx, [esi + 0x18]
mov byte [ebp - 4], 4
call edi
lea ecx, [esi + 0x14]
mov byte [ebp - 4], 3
call edi
lea ecx, [esi + 0x10]
mov byte [ebp - 4], 2
call edi
lea ecx, [esi + 0xc]
mov byte [ebp - 4], 1
call edi
lea ecx, [esi + 8]
mov byte [ebp - 4], 0
call edi
lea ecx, [esi + 4]
mov dword [ebp - 4], 0xffffffff
call 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 0x65132f70
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
mov esi, ecx
mov eax, dword [esi + 0x70]
push eax
add edi, 0xffffff9e
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
mov ebx, dword [sym.imp.USER32.dll_SetWindowPos]
je 0x65132fa3
mov ecx, dword [esi + 0x70]
push 5
push 0
push 0
push 4
push edi
push 0
push ecx
call ebx
mov edx, dword [esi + 0xd0]
push edx
add edi, 0x1c
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x65132fcb
mov eax, dword [esi + 0xd0]
push 5
push 0
push 0
push 4
push edi
push 0
push eax
call ebx
mov ecx, dword [esi + 0x130]
push ecx
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x65132ff0
mov edx, dword [esi + 0x130]
push 5
push 0
push 0
push 4
push edi
push 0
push edx
call ebx
mov eax, dword [esi + 0x190]
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x65133018
mov ecx, dword [esi + 0x190]
push 5
push 0
push 0
push 4
add edi, 0x1c
push edi
push 0
push ecx
call ebx
mov edx, dword [esi + 0x1f0]
mov edi, dword [sym.imp.USER32.dll_IsWindow]
push edx
call edi
test eax, eax
je 0x6513304d
mov eax, dword [ebp + 0xc]
push 5
add eax, 0xffffffa1
push 0
cdq
push 0
sub eax, edx
push 0x153
sar eax, 1
push eax
mov eax, dword [esi + 0x1f0]
push 0
push eax
call ebx
mov ecx, dword [esi + 0x314]
push ecx
call edi
test eax, eax
je 0x65133077
mov edx, dword [ebp + 0xc]
mov eax, dword [esi + 0x314]
push 4
push 0xd
add edx, 0xffffffe2
push edx
push 0xd7
push 0xf
push 0
push eax
call ebx
mov ecx, esi
call fcn.65132450
mov eax, dword [ebp + 8]
cmp eax, 2
jne 0x651330a2
mov ecx, dword [esi + 0xd0]
mov edi, dword [sym.imp.USER32.dll_ShowWindow]
push 0
push ecx
call edi
mov edx, dword [esi + 0x130]
push 5
push edx
jmp 0x651330c0
test eax, eax
jne 0x651330c2
mov eax, dword [esi + 0xd0]
mov edi, dword [sym.imp.USER32.dll_ShowWindow]
push 5
push eax
call edi
mov ecx, dword [esi + 0x130]
push 0
push ecx
call edi
mov edi, dword [sym.imp.Common.dll_public:_bool___thiscall_CTXStringW::IsEmpty_void_const]
lea ecx, [esi + 0x2b0]
call edi
test al, al
je 0x651330e0
lea ecx, [esi + 0x2b4]
call edi
test al, al
jne 0x651330f3
mov edx, dword [esi + 4]
push 0
push 0x12c
push 2
push edx
call dword [sym.imp.USER32.dll_SetTimer]
mov eax, dword [esi + 4]
push eax
call dword [sym.imp.USER32.dll_UpdateWindow]
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x6513545a
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
add eax, 0xfffffc18
cmp eax, 4
push esi
mov esi, ecx
ja case.default.0x65135453
jmp dword [eax*4 + 0x651354c8]
call fcn.65134bf0
mov eax, dword [esi + 4]
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
pop esi
pop ebp
ret 0xc
mov ecx, dword [esi + 4]
push 0
push 0xf030
push 0x112
push ecx
call dword [sym.imp.USER32.dll_PostMessageW]
pop esi
pop ebp
ret 0xc
mov edx, dword [esi + 4]
push 0
push 0xf120
push 0x112
push edx
call dword [sym.imp.USER32.dll_PostMessageW]
pop esi
pop ebp
ret 0xc
mov eax, dword [esi + 4]
push 0
push 0
push 0x10
push eax
call dword [sym.imp.USER32.dll_PostMessageW]
pop esi
pop ebp
ret 0xc
call fcn.65132800
pop esi
pop ebp
ret 0xc
Function at 0x651367f0
Capabilities:
Hide graphical window

Disassembly:
mov eax, dword [0x6516ca88]
test eax, eax
push ebx
mov ebx, dword [sym.imp.USER32.dll_PostMessageW]
push esi
push edi
mov edi, ecx
je 0x65136817
push 0
push 0
push 0x10
push eax
call ebx
mov dword [0x6516ca88], 0
mov ecx, dword [edi]
call fcn.6512fb20
mov esi, eax
test esi, esi
je 0x6513683f
push 0
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
push 0
push 0
push 0x10
push esi
call ebx
mov ecx, dword [edi]
push 0
call fcn.6512fb30
pop edi
pop esi
pop ebx
ret
Function at 0x6513dde0
Capabilities:
Persist via run registry key
Query or enumerate registry value

Disassembly:
sub esp, 0x218
mov eax, dword [0x6516c6d0]
xor eax, esp
mov dword [esp + 0x214], eax
push ebp
mov ebp, dword [esp + 0x220]
push 0x103
lea eax, [esp + 0x119]
push 0
push eax
mov dword [esp + 0x14], 0x100
mov byte [esp + 0x120], 0
call sub.MSVCR80.dll_memset
add esp, 0xc
lea ecx, [esp + 4]
push ecx
push 1
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionRun
push SysStringLen
mov dword [ebp], 1
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x6513df56
lea edx, [esp + 8]
push edx
mov edx, dword [esp + 8]
lea eax, [esp + 0x118]
push eax
lea ecx, [esp + 0x14]
push ecx
push 0
push str._QQPCTray
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x6513df56
push esi
push edi
push 0x104
call fcn.6514af0c
push 0x104
mov esi, eax
push 0
push esi
call sub.MSVCR80.dll_memset
push 0x103
lea eax, [esp + 0x2d]
push 0
push eax
mov byte [esp + 0x34], 0
call sub.MSVCR80.dll_memset
push esi
push 0x6515dfb0
call fcn.65140210
mov edi, dword [sym.imp.MSVCR80.dll_strncat_s]
push 0x104
push str.QQPCTray.exe
push 0x104
push esi
call edi
push 0x104
push 0x6515dfcc
lea ecx, [esp + 0x54]
push 0x104
push ecx
call edi
add esp, 0x44
push 0x104
push esi
lea edx, [esp + 0x20]
push 0x104
push edx
call edi
push 0x104
push str.___regrun
lea eax, [esp + 0x30]
push 0x104
push eax
call edi
lea ecx, [esp + 0x13c]
push esi
push ecx
call dword [sym.imp.MSVCR80.dll_strstr]
neg eax
sbb eax, eax
and eax, 0xfffffffe
add eax, 2
push esi
mov dword [ebp], eax
call sub.MSVCR80.dll_void___cdecl_operator_delete___void__
mov edx, dword [esp + 0x38]
add esp, 0x2c
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
mov al, 1
pop ebp
mov ecx, dword [esp + 0x214]
xor ecx, esp
call fcn.6514af96
add esp, 0x218
ret
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x218]
pop ebp
xor ecx, esp
xor al, al
call fcn.6514af96
add esp, 0x218
ret
Function at 0x6513df80
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x21c
mov eax, dword [0x6516c6d0]
xor eax, esp
mov dword [esp + 0x218], eax
push ebx
push esi
push edi
mov edi, dword [esp + 0x22c]
xor esi, esi
cmp edi, esi
je 0x6513e064
mov ebx, dword [esp + 0x230]
cmp ebx, esi
je 0x6513e064
push 0x208
lea eax, [esp + 0x1e]
push esi
push eax
mov word [esp + 0x24], si
call sub.MSVCR80.dll_memset
add esp, 0xc
lea ecx, [esp + 0xc]
push ecx
push 1
push esi
push 0x6515dfdc
push SysStringLen
mov dword [esp + 0x28], 0x104
mov dword [esp + 0x20], esi
mov dword [esp + 0x24], 1
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x6513e04a
lea edx, [esp + 0x14]
push edx
mov edx, dword [esp + 0x10]
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x18]
push ecx
push esi
push str.Version
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x6513e03f
cmp dword [esp + 0x10], 1
jne 0x6513e03f
push ebx
lea eax, [esp + 0x1c]
push eax
push edi
call dword [sym.imp.MSVCR80.dll_wcsncpy]
add esp, 0xc
mov esi, 1
mov ecx, dword [esp + 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, esi
pop esi
pop ebx
mov ecx, dword [esp + 0x218]
xor ecx, esp
call fcn.6514af96
add esp, 0x21c
ret
mov ecx, dword [esp + 0x224]
pop edi
pop esi
pop ebx
xor ecx, esp
xor eax, eax
call fcn.6514af96
add esp, 0x21c
ret
Function at 0x6513e7f0
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x65151bda
mov eax, dword fs:[0]
push eax
sub esp, 0x12c
mov eax, dword [0x6516c6d0]
xor eax, esp
mov dword [esp + 0x128], eax
push ebx
push esi
mov eax, dword [0x6516c6d0]
xor eax, esp
push eax
lea eax, [esp + 0x138]
mov dword fs:[0], eax
mov esi, dword [esp + 0x148]
mov ecx, esi
mov dword [esp + 0x140], 0
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], 0
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_void_]
push 0x104
lea eax, [esp + 0x34]
push 0
push eax
mov dword [esp + 0x14c], 0
mov dword [esp + 0x18], 1
call sub.MSVCR80.dll_memset
mov bl, byte [esp + 0x158]
add esp, 0xc
mov cl, bl
neg cl
push 1
lea edx, [esp + 0x34]
sbb ecx, ecx
and ecx, 0xfffffff7
add ecx, 0x23
push ecx
push edx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
test eax, eax
je 0x6513e90d
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x18]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
push eax
mov ecx, esi
mov dword [esp + 0x144], 1
call dword [0x65153548]
lea ecx, [esp + 0x14]
mov byte [esp + 0x140], 0
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
test bl, bl
mov ecx, esi
je 0x6513e8df
push str.TencentDeskUpdate
jmp 0x6513e8e4
push str.TencentDesktop
call dword [0x65153520]
push esi
call fcn.6513e1e0
add esp, 4
test al, al
jne 0x6513e900
push esi
call fcn.6513e350
add esp, 4
push str.Global.db
mov ecx, esi
call dword [0x65153520]
mov eax, esi
mov ecx, dword [esp + 0x138]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [esp + 0x128]
xor ecx, esp
call fcn.6514af96
add esp, 0x138
ret
Function at 0x6513e940
Capabilities:
Copy file
Delete file
Get file size
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x65151c11
mov eax, dword fs:[0]
push eax
sub esp, 0x44
mov eax, dword [0x6516c6d0]
xor eax, esp
mov dword [esp + 0x40], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x6516c6d0]
xor eax, esp
push eax
lea eax, [esp + 0x58]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x68]
lea eax, [esp + 0x38]
push 0
push eax
mov byte [esp + 0x1f], 0
call fcn.6513e7f0
add esp, 8
mov eax, dword [esp + 0x3c]
mov ebx, 0x10
cmp dword [esp + 0x50], ebx
mov dword [esp + 0x60], 0
jae 0x6513e9a5
lea eax, [esp + 0x3c]
mov edi, dword [sym.imp.KERNEL32.dll_CreateFileA]
push 0
push 0
push 3
push 0
push 1
push 0x80000000
push eax
call edi
mov esi, eax
cmp esi, 0xffffffff
jne 0x6513ea66
lea ecx, [esp + 0x1c]
push 1
push ecx
call fcn.6513e7f0
lea edx, [esp + 0x40]
push edx
call fcn.6513e770
add esp, 0xc
test al, al
jne 0x6513ea35
lea eax, [esp + 0x1c]
push eax
call fcn.6513e770
add esp, 4
test al, al
je 0x6513ea35
cmp dword [esp + 0x50], ebx
mov ecx, dword [esp + 0x3c]
jae 0x6513ea04
lea ecx, [esp + 0x3c]
cmp dword [esp + 0x34], ebx
mov eax, dword [esp + 0x20]
jae 0x6513ea12
lea eax, [esp + 0x20]
push 0
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
je 0x6513ea35
cmp dword [esp + 0x34], ebx
mov eax, dword [esp + 0x20]
jae 0x6513ea2e
lea eax, [esp + 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
cmp dword [esp + 0x34], ebx
mov eax, dword [esp + 0x20]
jae 0x6513ea43
lea eax, [esp + 0x20]
push 0
push 0
push 3
push 0
push 1
push 0x80000000
push eax
call edi
lea ecx, [esp + 0x1c]
mov esi, eax
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
cmp esi, 0xffffffff
je 0x6513ea9b
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, ebx
jb 0x6513ea94
push 0
lea ecx, [esp + 0x1c]
push ecx
push edi
push ebp
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x6513ea94
cmp dword [esp + 0x18], edi
jne 0x6513ea94
mov byte [esp + 0x17], 1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0x38]
mov dword [esp + 0x60], 0xffffffff
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov al, byte [esp + 0x17]
mov ecx, dword [esp + 0x58]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x40]
xor ecx, esp
call fcn.6514af96
add esp, 0x50
ret 4
Function at 0x6513eae0
Capabilities:
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x65151c42
mov eax, dword fs:[0]
push eax
sub esp, 0x40
mov eax, dword [0x6516c6d0]
xor eax, esp
mov dword [esp + 0x3c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x6516c6d0]
xor eax, esp
push eax
lea eax, [esp + 0x54]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x64]
xor ebx, ebx
lea eax, [esp + 0x34]
push ebx
push eax
call fcn.6513e7f0
add esp, 8
cmp dword [esp + 0x4c], 0x10
mov eax, dword [esp + 0x38]
mov dword [esp + 0x5c], ebx
jae 0x6513eb39
lea eax, [esp + 0x38]
mov edi, dword [sym.imp.KERNEL32.dll_CreateFileA]
push ebx
push ebx
push 2
push ebx
push 1
push 0x40000000
push eax
call edi
mov esi, eax
cmp esi, 0xffffffff
jne 0x6513eb93
lea ecx, [esp + 0x18]
push 1
push ecx
call fcn.6513e7f0
mov eax, dword [esp + 0x24]
add esp, 8
cmp dword [esp + 0x30], 0x10
jae 0x6513eb73
lea eax, [esp + 0x1c]
push ebx
push ebx
push 2
push ebx
push 1
push 0x40000000
push eax
call edi
lea ecx, [esp + 0x18]
mov esi, eax
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
cmp esi, 0xffffffff
je 0x6513ebb7
push ebx
lea edx, [esp + 0x18]
push edx
push 0x10
push ebp
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x6513ebb0
cmp dword [esp + 0x14], 0x10
jne 0x6513ebb0
mov bl, 1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0x34]
mov dword [esp + 0x5c], 0xffffffff
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov al, bl
mov ecx, dword [esp + 0x54]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x3c]
xor ecx, esp
call fcn.6514af96
add esp, 0x4c
ret 4

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

Disassembly:
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
setne al
ret

Function at 0x65140210
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0xc
lea eax, [esp]
push eax
push 1
push 0
push 0x6515e0e4
push SysStringLen
mov dword [esp + 0x18], 0x100
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x6514026c
mov edx, dword [esp + 0x14]
lea ecx, [esp + 4]
push ecx
mov ecx, dword [esp + 0x14]
push edx
mov edx, dword [esp + 8]
lea eax, [esp + 0x10]
push eax
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x6514026c
mov eax, dword [esp]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, 1
add esp, 0xc
ret
mov ecx, dword [esp]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor al, al
add esp, 0xc
ret