joyce8/EMBER2024-capa huggingface dataset:
Function at 0x7cf88515
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
push ebx
or dword [ebp - 8], 0xffffffff
and dword [ebp - 4], 0
push esi
mov esi, dword [ebp + 0x10]
push edi
movzx eax, word [esi]
cmp eax, 0xffffffff
jne 0x7cf8853b
xor eax, eax
jmp 0x7cf88689
push 0
push 1
pop ebx
lea eax, [ebp - 8]
push ebx
push eax
lea eax, [ebp + 0x10]
push eax
push 0xc
call fcn.7cf5b11e
push eax
push 0xb
call fcn.7cf5b11e
mov edi, dword [ebp + 0xc]
push eax
movzx eax, word [esi]
push eax
push edi
call fcn.7cf5ea7d
cmp dword [ebp + 0x10], 0
jne 0x7cf8867c
and word [ebp - 0x210], 0
lea eax, [ebp - 0x210]
push eax
push 0
push edi
call sym.SHELL32.dll_FindExecutableW
cmp word [ebp - 0x210], 0
je 0x7cf88618
cmp dword [ebp - 4], 0
jne 0x7cf885ee
lea eax, [ebp - 0x210]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x7cf885ee
lea eax, [ebp - 0x210]
push eax
call sym.SHELL32.dll_SheRemoveQuotesW
lea eax, [ebp - 0x210]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push 0
lea eax, [ebp - 8]
push ebx
push eax
lea eax, [ebp + 0x10]
mov dword [ebp - 4], ebx
push eax
push 0xc
call fcn.7cf5b11e
push eax
push 0xb
call fcn.7cf5b11e
push eax
movzx eax, word [esi]
push eax
jmp 0x7cf88560
cmp word [ebp - 0x210], 0
je 0x7cf88618
lea eax, [ebp - 0x210]
push eax
call fcn.7cf6b0f5
test eax, eax
jne 0x7cf88618
mov dword [ebp + 0xc], 7
mov dword [ebp - 4], 6
jmp 0x7cf88622
mov dword [ebp + 0xc], 2
mov dword [ebp - 4], ebx
push 0x80
push edi
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0xe
push dword [ebp + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x7cf88669
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
push 1
push eax
call dword [sym.imp.USER32.dll_LookupIconIdFromDirectory]
mov ecx, dword [ebp + 0x14]
push ebx
mov word [ecx], ax
call dword [sym.imp.KERNEL32.dll_FreeResource]
push dword [ebp + 0xc]
mov ax, word [ebp - 4]
mov word [esi], ax
push edi
call dword [sym.imp.USER32.dll_LoadIconW]
jmp 0x7cf88689
mov eax, dword [ebp + 0x14]
mov cx, word [ebp - 8]
mov word [eax], cx
mov eax, dword [ebp + 0x10]
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x7cf88abc
Capabilities:
Delete registry value
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3a4
push ebx
push esi
push edi
xor edi, edi
push edi
push 0x7cf34c28
push reloc.SHLWAPI.dll_ParseURLW
call fcn.7cf50bf3
mov esi, eax
cmp esi, edi
je 0x7cf88b46
xor ebx, ebx
push ebx
lea eax, [ebp - 0x1c]
push 0x7cf34c40
push eax
mov dword [ebp - 4], 0x208
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x3a4]
push eax
push edi
lea eax, [ebp - 0x1c]
push edi
push eax
push esi
call dword [sym.imp.SHLWAPI.dll_SHQueryValueExW]
test eax, eax
jne 0x7cf88b39
lea eax, [ebp - 0x3a4]
push 0x7cf35084
push eax
call dword [sym.imp.SHLWAPI.dll_StrStrIW]
test eax, eax
je 0x7cf88b39
lea eax, [ebp - 0x1c]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
inc ebx
cmp ebx, 0x31
jb 0x7cf88ae2
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 4], 0x7cf34d14
mov ebx, ParseURLA
lea eax, [ebp - 0x19c]
push 0x40
push eax
mov eax, dword [ebp - 4]
mov dword [ebp - 8], 0x208
push dword [eax - 4]
call dword [sym.imp.SHLWAPI.dll_Ordinal_24]
lea eax, [ebp - 0x19c]
push eax
lea eax, [ebp - 0x11c]
push 0x7cf35058
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x3a4]
push eax
lea eax, [ebp - 0x11c]
push eax
push ebx
call fcn.7cf5aef1
test eax, eax
jne 0x7cf88c4b
lea eax, [ebp - 0x3a4]
push 0x7cf35084
push eax
call dword [sym.imp.SHLWAPI.dll_StrStrIW]
test eax, eax
je 0x7cf88c4b
mov eax, dword [ebp - 4]
push 0x10
pop ecx
mov edi, 0x7cf399a0
mov esi, dword [eax - 4]
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
jne 0x7cf88c24
mov esi, 0x7cf35038
lea eax, [ebp - 0x11c]
push esi
push 0x7cf321c0
push eax
push ebx
call fcn.7cfaf3aa
mov edi, 0x7cf35018
lea eax, [ebp - 0x11c]
push edi
push 0x7cf321cc
push eax
push ebx
call fcn.7cfaf3aa
lea eax, [ebp - 0x3a4]
push 0x7cf35010
push eax
call dword [sym.imp.SHLWAPI.dll_StrStrW]
test eax, eax
je 0x7cf88c21
push esi
jmp 0x7cf88c2e
push edi
jmp 0x7cf88c2e
mov eax, dword [ebp - 4]
mov eax, dword [eax]
test eax, eax
je 0x7cf88c3d
push eax
lea eax, [ebp - 0x11c]
push eax
push ebx
call fcn.7cfaf384
jmp 0x7cf88c4b
lea eax, [ebp - 0x11c]
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
add dword [ebp - 4], 8
cmp dword [ebp - 4], 0x7cf34d54
jb 0x7cf88b52
mov esi, 0x7cf34d54
push dword [esi - 4]
lea eax, [ebp - 0x11c]
mov dword [ebp - 8], 0x208
push 0x7cf34ff0
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x3a4]
push eax
lea eax, [ebp - 0x11c]
push eax
push ebx
call fcn.7cf5aef1
test eax, eax
jne 0x7cf88cc1
lea eax, [ebp - 0x3a4]
push 0x7cf35084
push eax
call dword [sym.imp.SHLWAPI.dll_StrStrIW]
test eax, eax
je 0x7cf88cc1
push dword [esi]
lea eax, [ebp - 0x11c]
push eax
push ebx
call fcn.7cfaf384
add esi, 8
cmp esi, 0x7cf34da4
jb 0x7cf88c61
call fcn.7cf88e02
pop edi
pop esi
pop ebx
leave
ret
Function at 0x7cf88e7a
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
xor ebp, ebp
push 0x7d04ce10
mov dword [esp + 0x14], ebp
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [0x7d04cbb8], ebp
je 0x7cf88f40
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [0x7d04cbb8]
mov esi, eax
shr esi, 0xa
mov ebx, dword [ecx]
sub esi, dword [0x7d04cbac]
mov eax, ebx
sub eax, dword [0x7d04cbb0]
add esi, dword [0x7d04cba8]
sub eax, dword [0x7d04cbb4]
cmp dword [esp + 0x18], ebp
jne 0x7cf88edf
cmp esi, 0x384
jbe 0x7cf88f40
cmp eax, dword [0x7d04b048]
jl 0x7cf88f40
push ebp
push ecx
call dword [sym.imp.COMCTL32.dll_DSA_GetItemPtr]
test ebx, ebx
mov edi, eax
jbe 0x7cf88f1b
cmp ebp, dword [0x7d04cbc0]
jbe 0x7cf88f13
cmp dword [edi], 0
je 0x7cf88f13
mov eax, esi
shr eax, 1
add eax, dword [0x7d04cbac]
cmp dword [edi + 0x10], eax
jae 0x7cf88f13
inc dword [esp + 0x10]
push edi
call fcn.7cf88d56
inc ebp
add edi, 0x14
cmp ebp, ebx
jb 0x7cf88eed
cmp dword [esp + 0x10], 0
jle 0x7cf88f40
call dword [sym.imp.KERNEL32.dll_GetTickCount]
shr eax, 0xa
add eax, dword [0x7d04cba8]
mov dword [0x7d04cbbc], 1
mov dword [0x7d04cbac], eax
push 0x7d04ce10
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp dword [esp + 0x10], 0
jle 0x7cf88f67
call fcn.7cf6abf1
push 0
push 0xffffffffffffffff
push 3
push 0x8000
call sym.SHELL32.dll_SHChangeNotify
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 4
Function at 0x7cf89523
Capabilities:
Get file attributes
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
lea eax, [ebp - 4]
push eax
push 0x7cf35110
push ParseURLA
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x7cf895f0
and dword [ebp - 8], eax
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
push esi
mov esi, 0x104
lea eax, [ebp - 0x210]
push esi
push eax
push 0
push dword [ebp - 4]
call edi
test eax, eax
jne 0x7cf895e5
lea eax, [ebp - 0x210]
push eax
call fcn.7cf59024
test eax, eax
jne 0x7cf895d2
lea eax, [ebp - 0x210]
push esi
push eax
lea eax, [ebp - 0x210]
push 0
push eax
push 2
push 0x42
call dword [sym.imp.SHLWAPI.dll_AssocQueryStringW]
test eax, eax
jl 0x7cf895d2
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
and eax, 6
cmp al, 6
je 0x7cf895d2
lea eax, [ebp - 0x210]
push 4
push eax
lea eax, [ebp - 0x210]
push 0
push eax
call fcn.7cf893f0
test eax, eax
je 0x7cf895d2
push dword [ebp + 8]
push eax
call fcn.7cf894ce
inc dword [ebp - 8]
lea eax, [ebp - 0x210]
push esi
push eax
push dword [ebp - 8]
push dword [ebp - 4]
jmp 0x7cf89565
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop edi
leave
ret 4

Function at 0x7cf895f4
Capabilities:
Get file attributes
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x41c
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
push esi
mov esi, 0x104
push edi
lea eax, [ebp - 0x214]
xor edi, edi
push esi
push eax
push edi
push ParseURLA
mov dword [ebp - 4], edi
mov dword [ebp - 8], edi
call ebx
test eax, eax
jne 0x7cf89704
jmp 0x7cf8962f
xor edi, edi
cmp dword [ebp - 4], edi
je 0x7cf89647
cmp word [ebp - 0x214], 0x2e
jne 0x7cf89704
cmp dword [ebp - 4], edi
jne 0x7cf89658
cmp word [ebp - 0x214], 0x2e
jne 0x7cf89658
mov dword [ebp - 4], 1
lea eax, [ebp - 0x41c]
push esi
push eax
lea eax, [ebp - 0x214]
push edi
push eax
push 2
push 0x50
call dword [sym.imp.SHLWAPI.dll_AssocQueryStringW]
test eax, eax
jl 0x7cf896e7
lea eax, [ebp - 0x41c]
push eax
call fcn.7cf59024
test eax, eax
jne 0x7cf896e7
lea eax, [ebp - 0x41c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
and eax, 6
cmp al, 6
je 0x7cf896e7
cmp word [ebp - 0x214], 0x2e
jne 0x7cf896c4
lea eax, [ebp - 0xc]
push eax
push 0
lea eax, [ebp - 0x214]
push 0
push eax
push 6
push 0x10
call dword [sym.imp.SHLWAPI.dll_AssocQueryStringW]
test eax, eax
jl 0x7cf896c4
push 2
pop edi
lea eax, [ebp - 0x214]
push edi
push eax
lea eax, [ebp - 0x41c]
push 0
push eax
call fcn.7cf893f0
test eax, eax
je 0x7cf896e7
push dword [ebp + 8]
push eax
call fcn.7cf894ce
inc dword [ebp - 8]
lea eax, [ebp - 0x214]
push esi
push eax
push dword [ebp - 8]
push ParseURLA
call ebx
test eax, eax
je 0x7cf8962d
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x7cf899de
Capabilities:
Get file attributes
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
and dword [ebp - 8], 0
push ebx
push esi
push edi
push 0
mov ebx, 0x7cf35164
push 0x7cf3514c
mov edi, reloc.SHLWAPI.dll_ParseURLA
push ebx
push edi
call dword [sym.imp.SHLWAPI.dll_SHOpenRegStream2W]
mov esi, eax
test esi, esi
mov dword [ebp - 0xc], esi
je 0x7cf89ac6
push esi
call fcn.7cf8980b
test eax, eax
je 0x7cf89abd
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push 4
push eax
push esi
call dword [sym.imp.SHLWAPI.dll_IStream_Read]
test eax, eax
jl 0x7cf89abd
cmp dword [ebp - 4], 0
jle 0x7cf89abd
push dword [ebp - 0xc]
call fcn.7cf89901
mov esi, eax
test esi, esi
je 0x7cf89ab0
mov eax, dword [esi + 0x410]
test al, 1
jne 0x7cf89aa4
push 0x50
test al, 4
pop ecx
je 0x7cf89a63
push 0x52
pop ecx
lea eax, [ebp - 0x214]
push 0x104
push eax
lea eax, [esi + 0x308]
push 0
push eax
push 2
push ecx
call dword [sym.imp.SHLWAPI.dll_AssocQueryStringW]
test eax, eax
jl 0x7cf89aab
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
and eax, 6
cmp al, 6
je 0x7cf89aa4
push dword [ebp + 8]
push esi
call fcn.7cf894ce
jmp 0x7cf89aab
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
dec dword [ebp - 4]
jne 0x7cf89a41
cmp dword [ebp - 4], 0
jne 0x7cf89abd
mov dword [ebp - 8], 1
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
cmp dword [ebp - 8], 0
jne 0x7cf89ae2
push 0
push 0x7cf35148
push 1
push 0x7cf3514c
push ebx
push edi
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x7cf8a3d5
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebx
xor ebx, ebx
cmp dword [esp + 0xc], ebx
push ebp
push esi
push edi
mov ebp, reloc.SHLWAPI.dll_ParseURLA
jne 0x7cf8a477
push 2
push 0x7cf3514c
push 0x7cf35164
push ebp
call dword [sym.imp.SHLWAPI.dll_SHOpenRegStream2W]
mov esi, eax
cmp esi, ebx
je 0x7cf8a471
push esi
call fcn.7cf8980b
test eax, eax
jne 0x7cf8a469
push ebx
push ebx
push 0x1004
push dword [esp + 0x20]
call dword [sym.imp.USER32.dll_SendMessageW]
push esi
mov edi, eax
call dword [sym.imp.SHLWAPI.dll_IStream_Reset]
mov edx, dword [esi]
mov eax, edi
xor ecx, ecx
shl eax, 7
push ecx
push eax
push esi
call dword [edx + 0x18]
push edi
push esi
call fcn.7cf8a315
test eax, eax
je 0x7cf8a461
test edi, edi
jle 0x7cf8a469
push ebx
push dword [esp + 0x18]
call fcn.7cf5db3c
push eax
push esi
call fcn.7cf89981
test eax, eax
je 0x7cf8a461
inc ebx
cmp ebx, edi
jl 0x7cf8a445
jmp 0x7cf8a469
mov dword [esp + 0x18], 1
mov eax, dword [esi]
push esi
call dword [eax + 8]
xor ebx, ebx
cmp dword [esp + 0x18], ebx
je 0x7cf8a490
push ebx
push 0x7cf35148
push 1
push 0x7cf3514c
push 0x7cf35164
push ebp
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
pop edi
pop esi
pop ebp
pop ebx
ret 8
Function at 0x7cf8ad12
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x224
push ebx
push esi
push edi
push 0x7d04ce10
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [0x7d04cbe4], 0
jne 0x7cf8ad49
push 4
push 0x1c
call dword [sym.imp.COMCTL32.dll_DSA_Create]
test eax, eax
mov dword [0x7d04cbe4], eax
je 0x7cf8adff
mov ebx, dword [ebp + 8]
test ebx, ebx
je 0x7cf8ad91
lea eax, [ebp - 0x224]
push eax
push ebx
call sym.SHELL32.dll_SHGetPathFromIDListW
test eax, eax
je 0x7cf8ad91
push 0x40000091
call sym.SHELL32.dll_SHRestricted
test eax, eax
je 0x7cf8ad91
lea eax, [ebp - 0x224]
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsUNCW]
test eax, eax
jne 0x7cf8adff
lea eax, [ebp - 0x224]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
test al, 4
jne 0x7cf8adff
push 0
push ebx
call fcn.7cf517e8
mov esi, eax
test esi, esi
jne 0x7cf8ade3
push 7
lea edi, [ebp - 0x1c]
pop ecx
rep stosd dword es:[edi], eax
push ebx
call sym.SHELL32.dll_Ordinal_20
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 4], eax
lea eax, [ebp - 0x1c]
push eax
push ParseURLA
push dword [0x7d04cbe4]
call dword [sym.imp.COMCTL32.dll_DSA_InsertItem]
cmp eax, 0xffffffff
je 0x7cf8addf
push eax
push dword [0x7d04cbe4]
call dword [sym.imp.COMCTL32.dll_DSA_GetItemPtr]
mov esi, eax
test esi, esi
je 0x7cf8adff
inc dword [esi + 8]
mov eax, dword [0x7d04cbd4]
test eax, eax
je 0x7cf8adff
push 0
push 0
push 0x400
push eax
call dword [sym.imp.USER32.dll_PostThreadMessageW]
push 0x7d04ce10
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x7cf8bd9a
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x100
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call edi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x7d04cbd4], eax
je 0x7cf8bdf7
lea eax, [ebp - 0x100]
push 0
push eax
call fcn.7cf8aaa9
mov esi, eax
push 0
lea eax, [ebp - 0x100]
push 0
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
cmp eax, esi
jae 0x7cf8bdf7
push 0x14
call dword [sym.imp.KERNEL32.dll_Sleep]
call edi
sub eax, ebx
cmp eax, 0x7d0
jbe 0x7cf8bdce
pop edi
pop esi
pop ebx
leave
ret

Function at 0x7cf8c134
Capabilities:
Create thread
Resume thread

Disassembly:
push esi
xor esi, esi
cmp dword [0x7d04cbd8], esi
jne 0x7cf8c17d
cmp dword [0x7d04b058], esi
jne 0x7cf8c156
push 4
push 8
call dword [sym.imp.COMCTL32.dll_DSA_Create]
mov dword [0x7d04b058], eax
push 0x7d04cbcc
push 4
push esi
push 0x7cf6a812
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp dword [esp + 8], esi
mov dword [0x7d04cbc8], eax
jne 0x7cf8c17d
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
inc dword [0x7d04cbd8]
pop esi
ret 4
Function at 0x7cf8c187
Capabilities:
Terminate thread

Disassembly:
push ebx
push ebp
push esi
push edi
mov edi, 0x7d04ce10
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [esp + 0x14]
sub dword [0x7d04cbd8], eax
jne 0x7cf8c25c
mov ebp, dword [0x7d04cbd0]
mov esi, dword [0x7d04cbd4]
test ebp, ebp
je 0x7cf8c234
mov eax, dword [0x7d04b058]
mov ebx, dword [eax]
dec ebx
js 0x7cf8c1d9
push ebx
push dword [0x7d04b058]
call dword [sym.imp.COMCTL32.dll_DSA_GetItemPtr]
cmp dword [eax + 4], esi
jne 0x7cf8c1be
push ebx
call fcn.7cf8accf
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ebx, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0
push ebp
call ebx
cmp eax, 0x102
jne 0x7cf8c20e
test esi, esi
je 0x7cf8c206
push 0
push 0
push 0x401
push esi
call dword [sym.imp.USER32.dll_PostThreadMessageW]
push 0x7d0
push ebp
call ebx
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [0x7d04cbd4], esi
jne 0x7cf8c25c
and dword [0x7d04cbd0], 0
and dword [0x7d04cbd4], 0
jmp 0x7cf8c25c
push 0
push dword [0x7d04cbc8]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push dword [0x7d04cbc8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
and dword [0x7d04cbc8], 0
and dword [0x7d04cbcc], 0
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
pop ebp
pop ebx
ret 4
Function at 0x7cf8d5e6
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x46c
push ebx
push esi
push edi
xor edi, edi
cmp dword [ebp + 8], edi
mov dword [ebp - 4], 1
je 0x7cf8d751
lea eax, [ebp - 0x5c]
push 0x28
push eax
push dword [ebp + 8]
call dword [sym.imp.SHLWAPI.dll_Ordinal_24]
test eax, eax
je 0x7cf8d751
mov esi, 0x104
push 0x7cf352f8
lea eax, [ebp - 0x264]
push esi
push eax
call fcn.7cf8d56d
cmp eax, edi
jl 0x7cf8d754
lea eax, [ebp - 0x5c]
push eax
lea eax, [ebp - 0x264]
push esi
push eax
call fcn.7cf8d75e
cmp eax, edi
jl 0x7cf8d754
push 0x7cf353d8
lea eax, [ebp - 0x264]
push esi
push eax
call fcn.7cf8d75e
cmp eax, edi
jl 0x7cf8d754
mov ebx, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea eax, [ebp - 8]
push eax
push 0x20019
lea eax, [ebp - 0x264]
push edi
push eax
push ParseURLA
call ebx
test eax, eax
jne 0x7cf8d751
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], 0x208
push eax
lea eax, [ebp - 0x46c]
push eax
push edi
push edi
push edi
push dword [ebp - 8]
call dword [sym.imp.SHLWAPI.dll_SHQueryValueExW]
test eax, eax
jne 0x7cf8d6be
cmp word [ebp - 0x46c], di
jne 0x7cf8d6d0
push 0x7cf351f8
lea eax, [ebp - 0x46c]
push esi
push eax
call fcn.7cf8d56d
push 0x7cf35574
lea eax, [ebp - 0x264]
push esi
push eax
call fcn.7cf8d75e
cmp eax, edi
jl 0x7cf8d717
lea eax, [ebp - 0x46c]
push eax
lea eax, [ebp - 0x264]
push esi
push eax
call fcn.7cf8d75e
cmp eax, edi
jl 0x7cf8d717
push 0x7cf353e8
lea eax, [ebp - 0x264]
push esi
push eax
call fcn.7cf8d75e
cmp eax, edi
jl 0x7cf8d717
mov dword [ebp - 4], edi
cmp dword [ebp - 4], edi
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jne 0x7cf8d74a
lea eax, [ebp + 8]
mov dword [ebp + 8], edi
push eax
push 1
lea eax, [ebp - 0x264]
push edi
push eax
push ParseURLA
call ebx
test eax, eax
jne 0x7cf8d74a
push dword [ebp + 8]
mov dword [ebp - 4], 1
call esi
push dword [ebp - 8]
call esi
jmp 0x7cf8d754
mov dword [ebp - 4], edi
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x7cf8e029
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x418
mov eax, dword [ebp + 0x14]
push ebx
and eax, 1
push esi
shl eax, 1
or al, 1
push edi
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x210]
push eax
mov esi, 0x80004005
push dword [ebp + 0xc]
push dword [ebp + 8]
call sym.SHELL32.dll_SHGetNewLinkInfoW
xor edi, edi
test eax, eax
je 0x7cf8e1e6
lea eax, [ebp - 4]
mov ebx, 0x60000000
push eax
lea eax, [ebp - 0x418]
push 0x104
push eax
push 0xc000
mov dword [ebp + 0xc], edi
push dword [ebp + 8]
mov dword [ebp - 4], ebx
call fcn.7d041275
cmp dword [ebp - 8], edi
je 0x7cf8e103
mov eax, dword [ebp - 4]
and eax, ebx
cmp eax, 0x40000000
jne 0x7cf8e0ed
lea eax, [ebp - 0x210]
push 1
push eax
lea eax, [ebp - 0x418]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x7cf8e0ed
lea eax, [ebp - 0x210]
push eax
call fcn.7cfae617
lea eax, [ebp - 0x210]
push edi
push eax
push 5
push 2
call sym.SHELL32.dll_SHChangeNotify
lea eax, [ebp - 0x210]
push edi
push eax
push 5
push 0x40000
call sym.SHELL32.dll_SHChangeNotify
xor esi, esi
jmp 0x7cf8e16a
lea eax, [ebp + 0xc]
push eax
push 0x7cf39820
push edi
push dword [ebp + 8]
call fcn.7d04116b
mov esi, eax
jmp 0x7cf8e16a
test byte [ebp + 0x14], 8
mov eax, 0x7cf39780
jne 0x7cf8e113
mov eax, 0x7cf39a20
lea ecx, [ebp + 0xc]
push ecx
push 0x7cf39820
push edi
push eax
push edi
call sym.SHELL32.dll_SHCoCreateInstance
mov esi, eax
cmp esi, edi
jl 0x7cf8e16a
mov eax, dword [ebp + 0xc]
push dword [ebp + 8]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x14]
cmp word [ebp - 0x418], di
mov esi, eax
je 0x7cf8e16a
mov eax, dword [ebp - 4]
and eax, ebx
cmp eax, 0x40000000
jne 0x7cf8e16a
lea eax, [ebp - 0x418]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
mov eax, dword [ebp + 0xc]
lea edx, [ebp - 0x418]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x24]
mov eax, dword [ebp + 0xc]
cmp eax, edi
je 0x7cf8e1e6
cmp esi, edi
jl 0x7cf8e1dd
mov ecx, dword [eax]
lea edx, [ebp + 0x14]
push edx
push 0x7cf4c360
push eax
call dword [ecx]
mov esi, eax
cmp esi, edi
jl 0x7cf8e1dd
mov eax, dword [ebp + 0x14]
lea edx, [ebp - 0x210]
push 1
push edx
mov ecx, dword [eax]
push eax
call dword [ecx + 0x18]
mov esi, eax
cmp esi, edi
jl 0x7cf8e1d4
mov eax, dword [ebp + 0x14]
lea edx, [ebp + 8]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x20]
test eax, eax
jl 0x7cf8e1d4
cmp dword [ebp + 8], edi
je 0x7cf8e1d4
lea eax, [ebp - 0x210]
push 0x104
push eax
push dword [ebp + 8]
call dword [sym.imp.SHLWAPI.dll_SHUnicodeToUnicode]
push dword [ebp + 8]
call sym.SHELL32.dll_SHFree
mov eax, dword [ebp + 0x14]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov ebx, dword [ebp + 0x10]
cmp ebx, edi
je 0x7cf8e203
cmp esi, edi
jl 0x7cf8e1ff
lea eax, [ebp - 0x210]
push eax
call sym.SHELL32.dll_SHSimpleIDListFromPath
jmp 0x7cf8e201
xor eax, eax
mov dword [ebx], eax
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x7cf8e999
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
push esi
mov esi, dword [ebp + 8]
cmp dword [esi + 0x3c], 0xffffffff
jne 0x7cf8e9da
lea eax, [ebp - 0x208]
push eax
push esi
call fcn.7cf8d122
test eax, eax
jl 0x7cf8e9cd
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [esi + 0x3c], eax
cmp dword [esi + 0x3c], 0xffffffff
jne 0x7cf8e9da
mov dword [esi + 0x3c], 0x10
mov eax, dword [esi + 0x3c]
pop esi
leave
ret 4