joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1006501
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x90
mov eax, dword [0x100bffc]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
lea ecx, [ebp - 0x90]
push ecx
push 1
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
xor esi, esi
push esi
push eax
push 0x80000002
mov dword [ebp - 0x88], eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov edi, eax
cmp edi, esi
jne 0x10065ce
lea eax, [ebp - 0x8c]
push eax
lea eax, [ebp - 0x84]
push eax
push esi
push esi
push ebx
push dword [ebp - 0x90]
mov dword [ebp - 0x8c], 0x80
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x90]
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp edi, esi
jne 0x10065ce
push esi
lea eax, [ebp - 0x88]
push eax
push esi
push 2
push esi
push esi
push esi
push dword [ebp - 0x88]
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov edi, eax
cmp edi, esi
jne 0x10065c2
push dword [ebp - 0x8c]
lea eax, [ebp - 0x84]
push eax
push 1
push esi
push ebx
push dword [ebp - 0x88]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edi, eax
push dword [ebp - 0x88]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
pop ebx
call fcn.01009336
leave
ret 8

Function at 0x1006622
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x100bffc]
mov ecx, dword [ebp + 0x14]
push esi
mov esi, dword [ebp + 0xc]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push edi
push eax
push ecx
lea eax, [ebp - 0x20c]
push 0x104
push eax
call dword [sym.imp.SHLWAPI.dll_wnsprintfW]
add esp, 0x10
lea eax, [ebp - 0x210]
push eax
push 1
push 0
lea eax, [ebp - 0x20c]
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov edi, eax
test edi, edi
jne 0x10066a8
mov eax, dword [ebp + 0x10]
add eax, eax
mov dword [ebp - 0x214], eax
lea eax, [ebp - 0x214]
push eax
push esi
push edi
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueW]
push dword [ebp - 0x210]
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
call fcn.01009336
leave
ret 0x10

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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp dword [ebp + 0xc], 0
je 0x10066d6
and eax, 0xfffffff9
jmp 0x10066d9
or eax, 6
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
pop ebp
ret 8
Function at 0x1006738
Capabilities:
Create shortcut via ishelllink

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x100bffc]
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 4], eax
lea eax, [ebp - 0x210]
push eax
push 0x1003a7c
push 1
push 0
push 0x1003a8c
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jl 0x1006823
cmp dword [ebp + 0x14], 0
je 0x10067ac
push dword [ebp + 0x14]
lea eax, [ebp - 0x20c]
push 0x1003144
push 0x104
push eax
call dword [sym.imp.SHLWAPI.dll_wnsprintfW]
mov eax, dword [ebp - 0x210]
mov ecx, dword [eax]
add esp, 0x10
lea edx, [ebp - 0x20c]
push edx
push eax
call dword [ecx + 0x1c]
mov eax, dword [ebp - 0x210]
mov ecx, dword [eax]
push 0x1003118
push eax
call dword [ecx + 0x24]
mov eax, dword [ebp - 0x210]
mov ecx, dword [eax]
push esi
push eax
call dword [ecx + 0x50]
test eax, eax
jl 0x1006817
mov eax, dword [ebp - 0x210]
mov ecx, dword [eax]
lea edx, [ebp - 0x214]
push edx
push 0x1003a9c
push eax
call dword [ecx]
test eax, eax
jl 0x1006817
mov eax, dword [ebp - 0x214]
mov ecx, dword [eax]
push 1
push edi
push eax
call dword [ecx + 0x18]
test eax, eax
jl 0x100680b
push dword [ebp + 0x10]
push 0x100165c
push edi
call dword [sym.imp.SHELL32.dll_SHSetLocalizedName]
mov eax, dword [ebp - 0x214]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x210]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov ecx, dword [ebp - 4]
pop edi
pop esi
call fcn.01009336
leave
ret 0x10
Function at 0x1006a71
Capabilities:
Identify system language via api

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x61c
mov eax, dword [0x100bffc]
and word [ebp - 0x20c], 0
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultUILanguage]
cmp ax, 0x409
mov esi, dword [ebp + 0xc]
mov edi, 0x104
je 0x1006ac4
push edi
lea eax, [ebp - 0x20c]
push eax
lea eax, [esi + esi*4]
push dword [eax*4 + 0x1002720]
call fcn.0100617f
push eax
call dword [sym.imp.USER32.dll_LoadStringW]
cmp word [ebp - 0x20c], 0
jne 0x1006ae6
push edi
lea eax, [esi + esi*4]
push dword [eax*4 + 0x100271c]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
push 0x1001678
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAddExtensionW]
lea eax, [ebp - 0x20c]
push eax
push ebx
lea eax, [ebp - 0x61c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
push edi
lea eax, [ebp - 0x414]
lea esi, [esi + esi*4]
push eax
shl esi, 2
push dword [esi + 0x1002718]
call fcn.01008408
test eax, eax
jne 0x1006b6a
cmp dword [ebp + 0x10], eax
je 0x1006b58
cmp dword [esi + 0x1002728], eax
jne 0x1006b6a
push dword [esi + 0x1002724]
lea eax, [ebp - 0x61c]
push dword [esi + 0x1002720]
push eax
lea eax, [ebp - 0x414]
push eax
call fcn.01006738
jmp 0x1006b6a
push 0x10013ac
lea eax, [ebp - 0x414]
push eax
push ebx
call fcn.01006836
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.01009336
leave
ret 0xc

Function at 0x1006b7e
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x100bffc]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
push eax
push 0x1002e78
lea eax, [ebp - 0x20c]
push 0x104
push eax
call dword [sym.imp.SHLWAPI.dll_wnsprintfW]
add esp, 0x10
lea eax, [ebp - 0x210]
push eax
push esi
push 0
push 0x1002f58
lea eax, [ebp - 0x20c]
push eax
push 0x80000001
mov dword [ebp - 0x210], 4
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
mov ecx, dword [ebp - 4]
pop esi
call fcn.01009336
leave
ret 8

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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x100bffc]
and dword [ebp - 0x210], 0
push esi
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push edi
push eax
push 0x1002e78
lea eax, [ebp - 0x20c]
push 0x104
push eax
call dword [sym.imp.SHLWAPI.dll_wnsprintfW]
add esp, 0x10
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x210]
push eax
push 0
mov edi, 0x1002f58
push edi
lea eax, [ebp - 0x20c]
push eax
mov esi, 0x80000001
push esi
mov dword [ebp - 0x214], 4
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
mov eax, dword [ebp - 0x210]
and eax, dword [ebp + 0xc]
push 4
or eax, dword [ebp + 0x10]
mov dword [ebp - 0x210], eax
lea eax, [ebp - 0x210]
push eax
push 4
push edi
lea eax, [ebp - 0x20c]
push eax
push esi
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
mov ecx, dword [ebp - 4]
pop edi
pop esi
call fcn.01009336
leave
ret 0xc
Function at 0x1006c9c
Capabilities:
Delete file
Enumerate files on windows
Get common file path
Set current directory
Set file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x45c
mov eax, dword [0x100bffc]
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 4], eax
lea eax, [ebp - 0x20c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
je 0x1006d32
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
push esi
call ebx
test eax, eax
je 0x1006d28
lea eax, [ebp - 0x45c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x1006d28
push 0x80
lea eax, [ebp - 0x430]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea eax, [ebp - 0x430]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [ebp - 0x45c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x1006cf0
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
lea eax, [ebp - 0x20c]
push eax
call ebx
pop ebx
mov ecx, dword [ebp - 4]
pop edi
pop esi
call fcn.01009336
leave
ret 8

Function at 0x1006d45
Capabilities:
Get common file path
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x420
mov eax, dword [0x100bffc]
push ebx
push esi
push edi
push 2
xor edi, edi
push edi
push 0x100327c
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push edi
mov dword [ebp - 0x418], eax
push 0x10
lea eax, [ebp - 0x20c]
push eax
push edi
call esi
test eax, eax
mov ebx, dword [sym.imp.USER32.dll_LoadStringW]
je 0x1006de6
push 0x1003228
lea eax, [ebp - 0x20c]
push eax
call fcn.01006c9c
cmp dword [ebp - 0x418], edi
je 0x1006de6
push 0x104
lea eax, [ebp - 0x414]
push eax
push 8
push dword [ebp - 0x418]
call ebx
test eax, eax
je 0x1006de6
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
push 0x1003228
lea eax, [ebp - 0x20c]
push eax
call fcn.01006c9c
lea eax, [ebp - 0x41c]
push eax
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x420]
push eax
push 0x10031f0
push 0x1003178
push 0x80000002
mov dword [ebp - 0x41c], 0x208
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
je 0x1006e40
cmp dword [ebp - 0x418], edi
je 0x1006e8a
push 0x104
lea eax, [ebp - 0x414]
push eax
push 0xf
push dword [ebp - 0x418]
call ebx
test eax, eax
je 0x1006e76
push edi
push 2
lea eax, [ebp - 0x20c]
push eax
push edi
call esi
test eax, eax
je 0x1006e76
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
push 0x1003228
lea eax, [ebp - 0x20c]
push eax
call fcn.01006c9c
cmp dword [ebp - 0x418], edi
je 0x1006e8a
push dword [ebp - 0x418]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.01009336
leave
ret
Function at 0x1006e9c
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x100bffc]
push esi
mov esi, dword [ebp + 0xc]
push edi
xor edi, edi
cmp dword [ebp + 0x10], edi
mov dword [ebp - 4], eax
jbe 0x1006eea
push 0
push dword [esi + edi*4]
lea eax, [ebp - 0x20c]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x1006ee4
push 0
push dword [ebp + 8]
lea eax, [ebp - 0x20c]
push eax
call fcn.01006a71
inc edi
cmp edi, dword [ebp + 0x10]
jb 0x1006ebb
mov ecx, dword [ebp - 4]
pop edi
pop esi
call fcn.01009336
leave
ret 0xc

Function at 0x10070d6
Capabilities:
Create directory
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x100bffc]
push ebx
push esi
mov esi, dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
xor ebx, ebx
cmp dword [ebp + 8], ebx
push edi
mov edi, dword [ebp + 0x10]
mov dword [ebp - 4], eax
jl 0x100711d
push edi
push 2
lea eax, [ebp - 0x20c]
push eax
push ebx
call esi
test eax, eax
je 0x100711d
push edi
push dword [ebp + 8]
lea eax, [ebp - 0x20c]
push eax
call fcn.01006a71
cmp dword [ebp + 0xc], ebx
jl 0x1007182
push edi
push 0x1a
lea eax, [ebp - 0x20c]
push eax
push ebx
call esi
test eax, eax
je 0x1007182
push 0x104
lea eax, [ebp - 0x414]
push eax
push 0x2af8
call fcn.0100617f
push eax
call dword [sym.imp.USER32.dll_LoadStringW]
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
push ebx
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push edi
push dword [ebp + 0xc]
lea eax, [ebp - 0x20c]
push eax
call fcn.01006a71
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.01009336
leave
ret 0xc
Function at 0x10073c0
Capabilities:
Delete registry key
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x100bffc]
push esi
mov esi, dword [ebp + 0xc]
mov dword [ebp - 4], eax
call fcn.010062ba
test eax, eax
jne 0x10074b3
push ebx
xor ebx, ebx
cmp dword [ebp + 8], ebx
push edi
mov edi, 0x80000000
jne 0x100745e
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x214]
push eax
push ebx
push 0x1003458
push edi
mov dword [ebp - 0x210], 0x208
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
cmp dword [ebp - 0x214], 1
jne 0x100745e
cmp eax, 0xea
je 0x100743b
cmp eax, ebx
jne 0x100745e
cmp dword [ebp - 0x210], 4
jb 0x100745e
cmp esi, ebx
je 0x10074b1
jmp 0x1007456
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_StrStrIW]
test eax, eax
jne 0x100745e
add esi, 4
mov eax, dword [esi]
cmp eax, ebx
jne 0x1007441
jmp 0x10074b1
mov esi, 0x1003448
push esi
push edi
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x210]
push eax
push ebx
push 0x20006
push ebx
push ebx
push ebx
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x10074b1
push ebx
push dword [ebp - 0x210]
push 0x10033d8
push 0x80000002
call dword [sym.imp.SHLWAPI.dll_SHCopyKeyW]
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop ebx
mov ecx, dword [ebp - 4]
pop esi
call fcn.01009336
leave
ret 8

Function at 0x1007627
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebx
push esi
push edi
mov edi, dword [sym.imp.SHLWAPI.dll_SHSetValueW]
push 0x70
push 0x10029c0
push 2
push 0x1002950
mov esi, 0x10028d0
push esi
mov ebx, 0x80000002
push ebx
call edi
push 0x66
push 0x1002a30
push 2
push 0x1002974
push esi
push ebx
call edi
push 0x66
push 0x1002a98
push 2
push 0x1002998
push esi
push ebx
call edi
push 0x1002cc0
call fcn.0100645d
push eax
push 0x1002934
push esi
call fcn.010064a7
pop edi
pop esi
pop ebx
ret
push 0x1002c00
call fcn.0100645d
push eax
push 0x1002678
call fcn.010066ec
push 0x1002cc0
call fcn.0100645d
push eax
push 0x1002694
call fcn.010066ec
jmp 0x10075bd
Function at 0x10078c0
Capabilities:
Get common file path
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x630
mov eax, dword [0x100bffc]
and dword [ebp - 0x620], 0
push ebx
push esi
mov esi, dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push edi
mov dword [ebp - 4], eax
mov ebx, 0x7fffbffb
mov edi, 0x80004005
push 0x104
lea eax, [ebp - 0x414]
push eax
mov eax, dword [ebp - 0x620]
push dword [eax + 0x100bf90]
call fcn.01008408
test eax, eax
jne 0x1007a6b
xor edx, edx
inc eax
mov dword [ebp - 0x624], edx
mov dword [ebp - 0x628], eax
jmp 0x1007925
xor edx, edx
mov ecx, dword [ebp - 0x620]
test dword [ecx + 0x100bf98], eax
je 0x1007a24
cmp eax, 8
je 0x10079fe
dec eax
je 0x100796a
dec eax
je 0x1007965
dec eax
dec eax
jne 0x1007a24
push edx
push 0x10
lea eax, [ebp - 0x20c]
push eax
push edx
call esi
neg eax
sbb eax, eax
and eax, ebx
add eax, edi
jmp 0x10079b2
push edx
push 2
jmp 0x1007951
push edx
push 0x1a
lea eax, [ebp - 0x20c]
push eax
push edx
call esi
test eax, eax
je 0x1007a24
push 0x104
lea eax, [ebp - 0x61c]
push eax
push 0x2af8
call fcn.0100617f
push eax
call dword [sym.imp.USER32.dll_LoadStringW]
lea eax, [ebp - 0x61c]
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
xor eax, eax
test eax, eax
jl 0x1007a24
lea eax, [ebp - 0x62c]
push eax
mov eax, dword [ebp - 0x620]
mov eax, dword [eax + 0x100bf9c]
and eax, dword [ebp - 0x628]
push eax
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x20c]
push eax
call fcn.0100765b
test eax, eax
jl 0x1007a24
cmp dword [ebp - 0x62c], 0
jne 0x1007a24
mov eax, dword [ebp - 0x628]
or dword [ebp - 0x624], eax
jmp 0x1007a24
lea eax, [ebp - 0x630]
push eax
push dword [ecx + 0x100bf94]
call fcn.01006b7e
test eax, eax
jne 0x1007a24
test byte [ebp - 0x62e], 0x10
je 0x1007a24
or dword [ebp - 0x624], 8
mov eax, dword [ebp - 0x628]
shl eax, 1
cmp eax, 8
mov dword [ebp - 0x628], eax
jbe 0x1007923
cmp dword [ebp - 0x624], 0
je 0x1007a6b
push 4
lea eax, [ebp - 0x624]
push eax
mov eax, dword [ebp - 0x620]
push 4
push dword [eax + 0x100bf90]
push 0x1002b78
push 0x80000001
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
add dword [ebp - 0x620], 0x10
cmp dword [ebp - 0x620], 0x40
jb 0x10078ed
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.01009336
leave
ret
Function at 0x1007b67
Capabilities:
Delete registry key
Get common file path
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x840
mov eax, dword [0x100bffc]
push edi
mov dword [ebp - 4], eax
lea eax, [ebp - 0x828]
push eax
push 1
xor edi, edi
push edi
push 0x1002b78
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1007d9d
push esi
push 4
pop esi
lea eax, [ebp - 0x834]
push eax
lea eax, [ebp - 0x838]
push eax
lea eax, [ebp - 0x840]
push eax
push edi
lea eax, [ebp - 0x82c]
push eax
lea eax, [ebp - 0x414]
push eax
push edi
push dword [ebp - 0x828]
mov dword [ebp - 0x830], edi
mov dword [ebp - 0x82c], 0x104
mov dword [ebp - 0x834], esi
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
cmp eax, 0x103
je 0x1007d90
push ebx
cmp eax, edi
jne 0x1007d38
cmp dword [ebp - 0x840], esi
jne 0x1007d38
push 0x104
lea eax, [ebp - 0x61c]
push eax
lea eax, [ebp - 0x414]
push eax
call fcn.01008408
test eax, eax
jne 0x1007d38
inc eax
mov dword [ebp - 0x83c], eax
test dword [ebp - 0x838], eax
je 0x1007d1e
cmp eax, 8
je 0x1007ce4
dec eax
je 0x1007c7a
dec eax
je 0x1007c75
dec eax
dec eax
jne 0x1007d1e
push edi
push 0x10
lea eax, [ebp - 0x20c]
push eax
push edi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
neg eax
sbb eax, eax
and eax, 0x7fffbffb
add eax, 0x80004005
jmp 0x1007cc6
push edi
push 2
jmp 0x1007c57
push edi
push 0x1a
lea eax, [ebp - 0x20c]
push eax
push edi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x1007d1e
push 0x104
lea eax, [ebp - 0x824]
push eax
push 0x2af8
call fcn.0100617f
push eax
call dword [sym.imp.USER32.dll_LoadStringW]
lea eax, [ebp - 0x824]
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
xor eax, eax
cmp eax, edi
jl 0x1007d1e
push 0x10013ac
lea eax, [ebp - 0x61c]
push eax
lea eax, [ebp - 0x20c]
push eax
call fcn.01006836
jmp 0x1007d1e
xor esi, esi
mov ebx, 0x100bf90
push dword [ebx]
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.SHLWAPI.dll_StrCmpIW]
test eax, eax
je 0x1007d09
inc esi
add ebx, 0x10
cmp esi, 4
jb 0x1007ceb
jmp 0x1007d1e
push 0x100000
push 0xffffffffffffffff
shl esi, 4
push dword [esi + 0x100bf94]
call fcn.01006bf0
mov eax, dword [ebp - 0x83c]
shl eax, 1
cmp eax, 8
mov dword [ebp - 0x83c], eax
jbe 0x1007c31
push 4
pop esi
inc dword [ebp - 0x830]
lea eax, [ebp - 0x834]
push eax
lea eax, [ebp - 0x838]
push eax
lea eax, [ebp - 0x840]
push eax
push edi
lea eax, [ebp - 0x82c]
push eax
lea eax, [ebp - 0x414]
push eax
push dword [ebp - 0x830]
mov dword [ebp - 0x82c], 0x104
push dword [ebp - 0x828]
mov dword [ebp - 0x834], esi
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
cmp eax, 0x103
jne 0x1007bf6
pop ebx
push dword [ebp - 0x828]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
push 0x1002b78
push 0x80000001
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
mov ecx, dword [ebp - 4]
pop edi
call fcn.01009336
leave
ret
Function at 0x1008024
Capabilities:
Query or enumerate registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
mov esi, ecx
mov eax, dword [esi + 0x14]
test eax, eax
jne 0x1008058
mov edx, dword [ebp + 8]
cmp dword [esi + 8], edx
ja 0x1008042
mov eax, 0x103
jmp 0x1008058
mov eax, dword [esi + 0x10]
mov ecx, dword [esi]
mov ecx, dword [ecx]
push eax
push dword [esi + 0xc]
push edx
push ecx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
mov dword [esi + 0x14], eax
pop esi
pop ebp
ret 4

Function at 0x10080b8
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, ecx
mov eax, dword [esi + 0x10]
xor ebx, ebx
cmp dword [esi + 8], ebx
mov dword [ebp - 4], 1
mov dword [ebp - 8], eax
je 0x100813d
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp - 8]
push eax
push dword [esi + 0xc]
lea eax, [ebp - 4]
push eax
push ebx
push dword [ebp + 8]
push dword [esi]
call edi
cmp eax, ebx
mov dword [esi + 4], eax
jne 0x10080fd
cmp dword [esi + 0xc], ebx
je 0x1008104
cmp eax, 0xea
jne 0x1008124
push dword [ebp - 8]
mov ecx, esi
call fcn.01007f4e
lea eax, [ebp - 8]
push eax
push dword [esi + 0xc]
lea eax, [ebp - 4]
push eax
push ebx
push dword [ebp + 8]
push dword [esi]
call edi
mov dword [esi + 4], eax
cmp dword [esi + 4], ebx
pop edi
jne 0x100814c
cmp dword [ebp - 4], 1
je 0x100813d
cmp dword [ebp - 4], 2
je 0x100813d
mov dword [esi + 4], 0x57
cmp dword [esi + 4], ebx
jne 0x100814c
cmp dword [ebp - 8], ebx
je 0x100814c
mov eax, dword [esi + 0xc]
jmp 0x100814f
lea eax, [esi + 0x1a]
pop esi
pop ebx
leave
ret 4
Function at 0x10081fc
Capabilities:
Delete file
Enumerate files on windows
Get common file path
Set current directory
Set file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x1880
call fcn.010095d0
mov eax, dword [0x100bffc]
and dword [ebp - 0x1874], 0
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x1880], eax
mov esi, 0x104
push esi
lea eax, [ebp - 0x414]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
test eax, eax
je 0x1008248
cmp eax, esi
jb 0x1008250
and word [ebp - 0x414], 0
lea eax, [ebp - 0x61c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
je 0x10083ee
push edi
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
test eax, eax
je 0x10083e1
lea eax, [ebp - 0x186c]
push eax
push 0x1003168
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
mov dword [ebp - 0x1878], eax
je 0x10083e1
lea eax, [ebp - 0x1870]
push eax
push 0x1003a7c
push 1
push 0
push 0x1003a8c
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jl 0x10083d5
mov eax, dword [ebp - 0x1870]
mov ecx, dword [eax]
lea edx, [ebp - 0x187c]
push edx
push 0x1003a9c
push eax
call dword [ecx]
test eax, eax
jl 0x10083c9
mov edi, dword [sym.imp.SHLWAPI.dll_StrCmpIW]
mov eax, dword [ebp - 0x187c]
mov ecx, dword [eax]
push 0
lea edx, [ebp - 0x1840]
push edx
push eax
call dword [ecx + 0x14]
test eax, eax
jl 0x10083a2
mov eax, dword [ebp - 0x1870]
mov ecx, dword [eax]
push 0
push 0
push esi
lea edx, [ebp - 0x20c]
push edx
push eax
call dword [ecx + 0xc]
test eax, eax
jl 0x10083a2
lea eax, [ebp - 0x20c]
push eax
push ebx
call edi
test eax, eax
je 0x100833d
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x414]
push eax
call edi
test eax, eax
jne 0x10083a2
mov eax, dword [ebp - 0x1870]
mov ecx, dword [eax]
push 0x800
lea edx, [ebp - 0x161c]
push edx
push eax
call dword [ecx + 0x28]
test eax, eax
jl 0x10083a2
lea eax, [ebp - 0x161c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveBlanksW]
push dword [ebp - 0x1880]
lea eax, [ebp - 0x161c]
push eax
call edi
test eax, eax
jne 0x10083a2
push 0x80
lea eax, [ebp - 0x1840]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea eax, [ebp - 0x1840]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x10083a2
inc dword [ebp - 0x1874]
lea eax, [ebp - 0x186c]
push eax
push dword [ebp - 0x1878]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x10082de
mov eax, dword [ebp - 0x187c]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x1870]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push dword [ebp - 0x1878]
call dword [sym.imp.KERNEL32.dll_FindClose]
lea eax, [ebp - 0x61c]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x1874]
pop edi
pop esi
pop ebx
call fcn.01009336
leave
ret 0xc