joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1003dba
Capabilities:
Identify system language via api

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
test esi, esi
push edi
mov edi, ecx
mov dword [ebp - 4], edi
jne 0x1003ddc
mov eax, dword [ebx + 0x2c]
mov dword [ebp + 0xc], eax
mov esi, eax
mov eax, dword [ebx + 0xc]
and dword [ebp + 8], 0
dec eax
je 0x1003e1a
sub eax, 0x10000
jne 0x1003e23
test byte [ebx + 0x28], 8
jne 0x1003e43
test byte [esi + 4], 1
jne 0x1023ae0
test byte [esi + 4], 0x20
jne 0x1020847
cmp dword [esi], 0
je 0x1023b4a
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
leave
ret 8
mov dword [ebp + 8], 0x20
jmp 0x1003e10
dec eax
jne 0x1003e10
cmp dword [esi], 0
je 0x1023a91
test byte [ebx + 0x28], 8
je 0x1003e10
push dword [edi + 0x6c]
push dword [ebx + 0x10]
call dword [sym.imp.GDI32.dll_SelectObject]
jmp 0x1003e10
call fcn.01003e6e
test eax, eax
jne 0x1003df3
mov eax, dword [edi + 0x80]
mov ecx, dword [ebx + 0x10]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SelectObject]
mov dword [edi + 0x6c], eax
mov dword [ebp + 8], 0x12
jmp 0x1003df3
mov dword [ebp + 8], 4
jmp 0x1003e07
push dword [ebx + 0x24]
lea ecx, [edi + 0x3c]
call fcn.0102dad8
mov ecx, dword [ebx + 0x1c]
lea esi, [ebx + 0x54]
cmp ecx, dword [esi]
jl 0x1003e2f
lea edi, [ebp - 0x14]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0xc], ecx
sub ecx, dword [ebx + 0x6c]
mov dword [ebp - 0x14], ecx
lea ecx, [ebp - 0x14]
push ecx
mov ecx, dword [ebp - 4]
push 0
push eax
call fcn.01004bdc
mov ecx, dword [ebp - 4]
push eax
push dword [ebx + 0x10]
call fcn.0102ee02
mov edi, dword [ebp - 4]
jmp 0x1003e2f
mov eax, dword [edi + 0x84]
test eax, eax
je 0x1023b12
push 0
lea ecx, [ebx + 0x14]
push ecx
mov ecx, dword [ebx]
xor edx, edx
cmp ecx, dword [edi + 0x3c]
push 0
setne dl
inc edx
inc edx
push edx
push dword [ebx + 0x10]
push eax
call dword [sym.imp.UxTheme.dll_DrawThemeBackground]
or byte [ebp + 0xa], 0x40
jmp 0x1003dfd
mov esi, dword [sym.imp.USER32.dll_GetSysColor]
push 0xd
call esi
push 0xd
mov dword [ebx + 0x50], eax
call esi
push 0xe
mov dword [ebx + 0x48], eax
call esi
mov dword [ebx + 0x3c], eax
mov eax, dword [ebx + 0x28]
test al, 0x40
jne 0x1023b3e
or eax, 0x40
or byte [ebp + 0xa], 1
mov dword [ebx + 0x28], eax
or byte [ebp + 0xa], 2
mov esi, dword [ebp + 0xc]
jmp 0x1003dfd
push dword [ebx + 0x24]
or dword [ebp + 8], 0x10
lea ecx, [edi + 0x3c]
call fcn.0102dad8
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
mov ecx, edi
call fcn.01004bdc
push eax
push dword [ebx + 0x10]
mov ecx, edi
call fcn.0102ee02
mov eax, dword [ebp - 0xc]
sub eax, dword [ebp - 0x14]
mov dword [ebx + 0x6c], eax
jmp 0x1003e10

Function at 0x1003e6e
Capabilities:
Identify system language via api

Disassembly:
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
mov ecx, eax
and cx, 0x3ff
cmp cx, 4
je 0x10236fb
xor eax, eax
ret
shr ax, 0xa
cmp ax, 1
je 0x102370f
cmp ax, 2
jne 0x1003e85
xor eax, eax
inc eax
ret
Function at 0x1005824
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push esi
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
push eax
push 0
push 2
push 1
push 0
push 0
push 0x10058a0
push 0x80000001
mov esi, ecx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x1005881
mov ecx, dword [esi + 0x68]
call fcn.010058cb
push 4
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
push 4
push 0
push 0x1005884
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
leave
ret
Function at 0x1008259
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
lea eax, [ebp - 0x14]
push eax
mov ebx, ecx
call dword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
push 0x580
push 0x28e44000
lea eax, [ebp - 0x14]
push eax
call fcn.010080d9
lea esi, [ebx + 0x20]
push esi
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_CompareFileTime]
test eax, eax
jge 0x1028686
push ebx
push 0x10080fd
push dword [ebx + 0xe0]
call dword [fcn.01007a4c]
and dword [ebp - 4], 0
lea esi, [ebx + 0x44]
mov ecx, dword [ebp - 4]
shl ecx, 3
mov eax, dword [ecx + 0x1007fd0]
mov ecx, dword [ecx + 0x1007fd4]
lea edi, [esi - 4]
mov dword [ebx + 0x28], ecx
cmp dword [edi], 0
mov dword [ebp - 0xc], eax
je 0x1028696
push dword [ebp - 4]
mov ecx, ebx
call fcn.0100802f
test eax, eax
je 0x100835c
test byte [ebx + 0x28], 8
je 0x10082fd
push 0x20000
call dword [sym.imp.SHELL32.dll_SHRestricted]
test eax, eax
jne 0x10286ab
push dword [ebp - 0xc]
call fcn.01008382
test eax, eax
jne 0x100b6ee
lea eax, [ebp - 8]
push eax
push dword [ebp - 0xc]
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jl 0x100b6ee
mov eax, dword [edi]
test eax, eax
je 0x100b636
push dword [ebp - 8]
push eax
call dword [sym.imp.SHELL32.dll_ILIsEqual]
test eax, eax
je 0x100b636
cmp dword [esi], 0
jne 0x100b636
cmp dword [esi + 4], 0
je 0x100b636
push dword [ebp - 8]
call dword [sym.imp.SHELL32.dll_ILFree]
inc dword [ebp - 4]
add esi, 0x1c
cmp dword [ebp - 4], 6
jb 0x10082b2
pop edi
pop esi
mov dword [ebx + 0xf4], 1
xor eax, eax
pop ebx
leave
ret
mov ecx, dword [edi]
xor edx, edx
cmp ecx, edx
je 0x100b642
cmp dword [esi], edx
je 0x100b6ac
mov eax, dword [esi - 0xc]
cmp eax, edx
mov dword [esi], edx
mov dword [esi - 8], eax
je 0x100b6e7
mov eax, dword [eax]
push ecx
mov dword [esi + 0xc], eax
mov dword [esi + 8], edx
call dword [sym.imp.SHELL32.dll_ILFree]
and dword [edi], 0
push 4
lea ecx, [esi - 0xc]
call fcn.010079b8
test eax, eax
je 0x100b6a3
push dword [ebp - 8]
push dword [ebx + 0x2c]
call fcn.0100b57a
test eax, eax
mov dword [ebp - 0xc], eax
je 0x100b6a3
mov eax, dword [ebp - 8]
and dword [ebp - 8], 0
mov dword [edi], eax
lea eax, [esi - 0xc]
push eax
push dword [ebp - 0xc]
mov ecx, ebx
call fcn.0100b91a
mov ecx, dword [ebp - 0xc]
call fcn.01007f8a
lea eax, [esi - 8]
push eax
call fcn.0100b700
cmp dword [ebx + 4], 0
je 0x1008353
cmp dword [esi + 4], 0
jne 0x1008353
mov edi, dword [edi]
test edi, edi
je 0x1008353
xor eax, eax
inc eax
push eax
push edi
push 0x2381f
push dword [ebp - 4]
mov dword [esi + 4], eax
mov ecx, dword [ebx + 4]
call fcn.01009c45
jmp 0x1008353
xor eax, eax
jmp 0x100b654
lea ecx, [esi - 0xc]
call fcn.01011752
jmp 0x100835c
mov eax, dword [ebp - 0x14]
mov dword [esi], eax
mov eax, dword [ebp - 0x10]
mov dword [esi + 4], eax
jmp 0x1008299
push edi
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
mov dword [esi], 1
jmp 0x10082d6
or dword [ebx + 0x28], 1
jmp 0x10082fd
Function at 0x1008fd5
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, ecx
xor ebx, ebx
cmp dword [esi + 0x7c], ebx
jne 0x1008ffe
cmp dword [esi + 0x74], ebx
je 0x1008ffe
push dword [esi + 0x24]
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
jne 0x1012d50
pop esi
pop ebx
leave
ret
push edi
xor edi, edi
inc edi
push edi
push ebx
push 0x100bfbc
push 0x100bde0
call dword [sym.imp.SHLWAPI.dll_SHRegGetBoolUSValueW]
test eax, eax
je 0x1012d93
dec dword [esi + 0x74]
push 3
lea eax, [ebp - 0x10]
push eax
push ebx
mov dword [esi + 0x7c], edi
mov esi, dword [esi + 0x24]
push 0x4e
push esi
mov dword [ebp - 0x10], esi
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], 0xd1
mov dword [ebp - 4], edi
call dword [sym.imp.SHLWAPI.dll_Ordinal_178]
pop edi
jmp 0x1008ffe

Function at 0x1009297
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov eax, dword [edi]
mov esi, ecx
mov dword [esi + 0x50], eax
mov eax, dword [esi + 0x48]
xor ebx, ebx
cmp eax, ebx
je 0x10092c0
mov eax, dword [eax + 0xc]
mov ecx, dword [eax]
push 1
push ebx
push eax
call dword [ecx + 0x24]
push ebx
push ebx
push ebx
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 8]
push eax
push ebx
push 0x10090b8
push 0x1009008
mov dword [ebp - 8], ebx
mov dword [ebp - 4], ebx
mov dword [ebp + 8], 8
call dword [sym.imp.SHLWAPI.dll_SHRegGetUSValueW]
add edi, 0xc
push edi
lea eax, [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_CompareFileTime]
test eax, eax
jge 0x1009309
mov ecx, esi
mov dword [esi + 0x74], 3
call fcn.01008fd5
pop edi
xor eax, eax
pop esi
inc eax
pop ebx
leave
ret 4

Function at 0x100cdd1
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [ebp + 8]
push ebx
push edi
mov edi, ecx
xor ebx, ebx
mov dword [eax], ebx
push dword [edi + 4]
call dword [sym.imp.SHELL32.dll_SHRestricted]
test eax, eax
jne 0x1028bb7
mov eax, dword [edi + 8]
push esi
mov esi, dword [edi + 0xc]
and esi, 3
cmp eax, ebx
je 0x100ce60
push ebx
push ebx
push ebx
lea ecx, [ebp - 8]
push ecx
lea ecx, [ebp - 4]
push ecx
push ebx
push eax
mov ebx, 0x100bde0
push ebx
mov dword [ebp - 8], 4
call dword [sym.imp.SHLWAPI.dll_SHRegGetUSValueW]
test eax, eax
je 0x1028bbe
mov ecx, edi
call fcn.0100ce86
test eax, eax
mov dword [ebp + 8], eax
je 0x100ce60
lea ecx, [ebp - 8]
push ecx
lea ecx, [ebp - 4]
push ecx
push 0
push eax
push ebx
push 0x80000001
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
je 0x1028bcf
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LocalFree]
cmp esi, 2
je 0x100d504
cmp esi, 1
jne 0x100ce78
test byte [edi + 0xc], 0x10
jne 0x1028bdf
mov eax, esi
pop esi
pop edi
pop ebx
leave
ret 4
test byte [edi + 0xc], 8
jne 0x100ce78
jmp 0x1028bd7
xor eax, eax
jmp 0x100ce7b
mov eax, dword [ebp + 8]
mov esi, dword [ebp - 4]
mov dword [eax], 1
jmp 0x100ce60
mov esi, dword [ebp - 4]
jmp 0x100ce57
xor esi, esi
inc esi
jmp 0x100ce78
push 2
pop esi
jmp 0x100ce78
Function at 0x100cf05
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push esi
push edi
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 8]
xor esi, esi
push esi
xor edi, edi
mov dword [ebp - 0xc], esi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jne 0x100cf89
lea eax, [ebp - 8]
push eax
push 0x100b2ec
push esi
push dword [ebp - 0xc]
push esi
call fcn.01009bb1
test eax, eax
jl 0x100cf80
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
lea edx, [ebp - 4]
push edx
push 0x60
push esi
push eax
call dword [ecx + 0x10]
test eax, eax
jne 0x100cf77
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
lea edx, [ebp - 0x10]
push edx
lea edx, [ebp + 8]
push edx
push 1
push eax
call dword [ecx + 0xc]
test eax, eax
je 0x100d09b
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push dword [ebp - 0xc]
call dword [sym.imp.SHELL32.dll_ILFree]
cmp edi, dword [ebp + 0x10]
pop edi
sbb eax, eax
inc eax
pop esi
leave
ret 0xc
cmp dword [ebp + 0xc], esi
je 0x100d0c6
push dword [ebp + 8]
push dword [ebp - 8]
call fcn.0100d0ce
test eax, eax
jne 0x100d0c6
push dword [ebp + 8]
call dword [sym.imp.SHELL32.dll_SHFree]
cmp edi, dword [ebp + 0x10]
jb 0x100cf53
jmp 0x100cf6e
inc edi
jmp 0x100d0af
Function at 0x100eb38
Capabilities:
Set registry value

Disassembly:
push 0
push 1
push 0x590
push dword [esi + 4]
call dword [sym.imp.USER32.dll_PostMessageW]
pop esi
ret
mov edi, edi
push esi
mov esi, ecx
call fcn.0100ebca
test eax, eax
je 0x100da94
push 0x40000042
call dword [sym.imp.SHELL32.dll_SHRestricted]
test eax, eax
jne 0x100da94
call fcn.0100bebf
test eax, eax
je 0x10255ad
push dword [esi + 4]
call dword [sym.imp.USER32.dll_SetForegroundWindow]
test eax, eax
je 0x100daa6
push 1
call dword [sym.imp.USER32.dll_LockSetForegroundWindow]
push 0
push 0
push 0x590
push dword [esi + 4]
mov dword [esi + 0x43c], 1
call dword [sym.imp.USER32.dll_PostMessageW]
push 0
push 1
push 0xf3
push 0x130
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, esi
pop esi
jmp fcn.0100ed3a
push 0
push 1
push 0x590
push dword [esi + 4]
call dword [sym.imp.USER32.dll_PostMessageW]
push 0x321
push 0x320
mov ecx, esi
call fcn.01030259
pop esi
ret

Function at 0x100ebca
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
and dword [ebp - 4], 0
push esi
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0xc]
push eax
push 0x100ec1c
push 0x100bde0
push 0x80000001
mov esi, ecx
mov dword [ebp - 8], 4
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
call fcn.0100bebf
test eax, eax
je 0x102558c
cmp dword [ebp - 4], 2
sbb eax, eax
neg eax
pop esi
leave
ret
mov eax, dword [ebp - 4]
sub eax, 0
je 0x10255a5
dec eax
jne 0x102559e
mov ecx, esi
call fcn.0100ed3a
xor eax, eax
jmp 0x100ec16
xor eax, eax
inc eax
jmp 0x100ec16
Function at 0x100ece1
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
mov ecx, dword [ebp + 8]
push edi
xor edi, edi
cmp ecx, edi
mov byte [ebp - 1], 0
je 0x100ed22
mov eax, dword [ebp + 0xc]
cmp eax, edi
je 0x100ed22
push esi
mov esi, dword [sym.imp.SHLWAPI.dll_IsOS]
mov dword [ecx], edi
push 0x17
mov dword [eax], edi
call esi
test eax, eax
jne 0x100ed2a
push 0x16
call esi
test eax, eax
jne 0x100ed2a
push 0x15
call esi
test eax, eax
jne 0x100ed2a
pop esi
mov al, byte [ebp - 1]
pop edi
leave
ret 8
call dword [sym.imp.SHELL32.dll_IsUserAnAdmin]
jmp 0x102266b
test eax, eax
je 0x100ed21
mov esi, dword [sym.imp.SHLWAPI.dll_SHGetValueW]
push ebx
push 4
mov dword [ebp - 0x10], edi
mov dword [ebp - 8], edi
pop edi
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
push 0x1022a28
push 0x10229c0
mov ebx, 0x80000002
push ebx
mov dword [ebp - 0xc], edi
call esi
test eax, eax
jne 0x10226c4
cmp dword [ebp - 8], eax
je 0x10226c4
mov eax, dword [ebp + 8]
mov dword [eax], 0x10229b0
mov eax, dword [ebp + 0xc]
mov dword [eax], 0x102299c
jmp 0x1022796
and dword [ebp - 8], 0
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
push 0x1022974
push 0x1022900
push ebx
mov dword [ebp - 0xc], edi
call esi
test eax, eax
jne 0x10226f6
cmp dword [ebp - 0x10], edi
jne 0x10226f6
cmp dword [ebp - 8], eax
jne 0x102279a
push 0x15
call dword [sym.imp.SHLWAPI.dll_IsOS]
test eax, eax
jne 0x102279a
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0x10228f0
push 0x1022880
mov ebx, 0x80000001
push ebx
mov dword [ebp - 0xc], edi
call esi
test eax, eax
jne 0x102272e
cmp dword [ebp - 8], eax
je 0x102279a
and dword [ebp - 8], 0
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0x1022870
push 0x10227f8
push ebx
mov dword [ebp - 0xc], edi
call esi
test eax, eax
jne 0x1022755
cmp dword [ebp - 8], eax
je 0x102279a
call fcn.0102b3e1
test al, al
jne 0x102279a
and dword [ebp - 8], 0
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
push 0
push 0x10229c0
push ebx
mov dword [ebp - 0xc], edi
call esi
test eax, eax
jne 0x1022784
cmp dword [ebp - 8], eax
je 0x102279a
mov eax, dword [ebp + 8]
mov dword [eax], 0x10227e0
mov eax, dword [ebp + 0xc]
mov dword [eax], 0x10227a0
mov byte [ebp - 1], 1
pop ebx
jmp 0x100ed21

Function at 0x100ed3a
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push 4
lea eax, [ebp - 4]
push eax
push 4
push 0x100ec1c
push 0x100bde0
push 0x80000001
mov dword [ebp - 4], 2
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
leave
ret
Function at 0x100ee4f
Capabilities:
Enumerate files on windows
Get common file path
Get program files directory

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x86c
mov eax, dword [0x1046080]
push esi
push 0x220
xor esi, esi
push esi
mov dword [ebp - 4], eax
call sub.SHELL32.dll_SHTestTokenMembership
test eax, eax
je 0x100eefc
lea eax, [ebp - 0x20c]
push eax
push esi
push esi
push 0x26
push esi
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jne 0x100eefc
push edi
push 0x20
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_StrChrW]
mov edi, eax
cmp edi, esi
je 0x100eefb
lea eax, [ebp - 0x20c]
push eax
mov word [edi], si
mov esi, 0x104
push esi
lea eax, [ebp - 0x61c]
push eax
call fcn.0100660f
lea ecx, [ebp - 0x20c]
mov eax, edi
sub eax, ecx
sar eax, 1
push 0x100ef08
mov ecx, esi
sub ecx, eax
push ecx
push edi
call fcn.01006409
lea eax, [ebp - 0x86c]
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x102601c
pop edi
mov ecx, dword [ebp - 4]
pop esi
call fcn.01001aff
leave
ret
lea eax, [ebp - 0x20c]
push eax
push esi
lea eax, [ebp - 0x414]
push eax
call fcn.0100660f
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea eax, [ebp - 0x840]
push eax
push esi
lea eax, [ebp - 0x414]
push eax
call fcn.0101e2d9
test byte [ebp - 0x86c], 0x10
je 0x1026072
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x61c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x102609f
push 0x10260c4
push 5
lea eax, [ebp - 0x414]
push eax
push 0x1032ff7
push 0x14
push dword [0x10460dc]
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.SHLWAPI.dll_Ordinal_292]
cmp eax, 5
je 0x10260b5
lea eax, [ebp - 0x86c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x102601c
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x100eefb
Function at 0x100f010
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x38
push esi
push edi
mov edi, ecx
xor esi, esi
push 0x1d
mov dword [ebp - 0x14], edi
mov dword [ebp - 0xc], esi
call dword [sym.imp.SHLWAPI.dll_IsOS]
test eax, eax
jne 0x100f140
cmp dword [edi + 0x54c], esi
je 0x100f140
push 0x222
push esi
call sub.SHELL32.dll_SHTestTokenMembership
test eax, eax
jne 0x100f140
push 0x40000073
call dword [sym.imp.SHELL32.dll_SHRestricted]
test eax, eax
jne 0x100f140
push ebx
lea eax, [ebp - 0x38]
push eax
mov dword [ebp - 0xc], 1
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x38]
push eax
call dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
push esi
push esi
push esi
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x20]
push eax
push esi
mov ebx, 0x100f21c
push ebx
mov edi, 0x100f190
push edi
mov dword [ebp - 4], 8
call dword [sym.imp.SHLWAPI.dll_SHRegGetUSValueW]
test eax, eax
jne 0x10250ce
push esi
lea eax, [ebp - 0x10]
push eax
push esi
push 0x20019
push edi
mov dword [ebp - 0x10], esi
call dword [sym.imp.SHLWAPI.dll_SHRegOpenUSKeyW]
test eax, eax
jne 0x100f13f
push esi
push esi
push esi
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
push esi
push 0x100f184
push dword [ebp - 0x10]
mov dword [ebp - 4], 4
call dword [sym.imp.SHLWAPI.dll_SHRegQueryUSValueW]
test eax, eax
je 0x100f147
push 0x3c
pop ebx
push esi
push esi
push esi
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
push esi
push 0x100f158
push edi
call dword [sym.imp.SHLWAPI.dll_SHRegGetUSValueW]
test eax, eax
je 0x100f14e
mov ecx, dword [ebp - 0x14]
push ebx
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x20]
push eax
call fcn.0100f23f
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_CompareFileTime]
test eax, eax
jg 0x100f136
mov dword [ebp - 0xc], esi
push dword [ebp - 0x10]
call dword [sym.imp.SHLWAPI.dll_SHRegCloseUSKey]
pop ebx
mov eax, dword [ebp - 0xc]
pop edi
pop esi
leave
ret
cmp dword [ebp - 8], esi
je 0x100f0f1
jmp 0x100f133
mov ebx, dword [ebp - 8]
cmp ebx, esi
jle 0x100f136
jmp 0x100f110
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
push esi
push 0x10251b0
push 0x1025138
push 0x80000002
mov dword [ebp - 4], 4
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
jne 0x102510a
cmp dword [ebp - 8], esi
je 0x102510a
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x1c], eax
jmp 0x102511c
mov ecx, dword [ebp - 0x14]
push 0xffffffffffffffe2
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.0100f23f
push 2
push 8
lea eax, [ebp - 0x20]
push eax
push esi
push ebx
push edi
call dword [sym.imp.SHLWAPI.dll_SHRegSetUSValueW]
jmp 0x100f0b3
Function at 0x101080d
Capabilities:
Query or enumerate registry value

Disassembly:
mov esi, dword [esi + 0xe4]
mov eax, dword [esi]
lea ecx, [ebp - 4]
push ecx
push edi
push 2
push edi
push esi
call dword [eax + 0x14]
test eax, eax
jl 0x1010872
push edi
push edi
push edi
push edi
push 0x10107f0
push dword [ebp - 4]
call dword [sym.imp.SHLWAPI.dll_SHQueryValueExW]
push dword [ebp - 4]
mov edi, eax
neg edi
sbb edi, edi
inc edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x1010872
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
push dword [ebp + 8]
mov esi, ecx
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
mov dword [ebp + 8], eax
mov eax, dword [esi + 0xec]
xor edi, edi
xor ebx, ebx
cmp dword [eax], edi
jle 0x1010857
push ebx
push eax
call dword [fcn.01006794]
push eax
push dword [ebp + 8]
call dword [sym.imp.SHLWAPI.dll_StrCmpIW]
test eax, eax
je 0x1013326
mov eax, dword [esi + 0xec]
inc ebx
cmp ebx, dword [eax]
jl 0x1010832
mov eax, dword [esi + 0xe4]
mov ecx, dword [eax]
push edi
push edi
push dword [ebp + 8]
push 2
push eax
call dword [ecx + 0xc]
test eax, eax
jge 0x10107aa
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret 4
xor eax, eax
inc eax
jmp 0x1010874

Function at 0x1010aae
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x1046080]
push ebx
xor ebx, ebx
push 0x40000047
mov dword [ebp - 4], eax
mov dword [ebp - 0x20c], ebx
call dword [sym.imp.SHELL32.dll_SHRestricted]
test eax, eax
jne 0x1010ba4
cmp dword [0x10466c4], ebx
jne 0x1010ba4
lea eax, [ebp - 0x208]
push eax
push 1
push ebx
push 0x1010bd0
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1010ba4
push esi
mov esi, dword [sym.imp.SHLWAPI.dll_SHGetValueW]
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x204]
push eax
lea eax, [ebp - 0x214]
push eax
push 0x1010bc0
push ebx
push dword [ebp - 0x208]
mov dword [ebp - 0x210], 0x1fe
call esi
test eax, eax
jne 0x1010b62
cmp dword [ebp - 0x214], 1
jne 0x1010b62
push 7
lea eax, [ebp - 0x204]
push eax
call fcn.01010c3f
test eax, eax
jne 0x102262d
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x204]
push eax
lea eax, [ebp - 0x214]
push eax
push 0x1010bb8
push ebx
push dword [ebp - 0x208]
mov dword [ebp - 0x210], 0x1fe
call esi
test eax, eax
je 0x102263c
push dword [ebp - 0x208]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x20c]
pop ebx
call fcn.01001aff
leave
ret
mov dword [ebp - 0x20c], 1
jmp 0x1010b62
xor esi, esi
inc esi
cmp dword [ebp - 0x214], esi
jne 0x1010b97
push esi
lea eax, [ebp - 0x204]
push eax
call fcn.01010c3f
test eax, eax
je 0x1010b97
mov dword [ebp - 0x20c], esi
jmp 0x1010b97