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

Disassembly:
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 0x1003021
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 0x1003067
sub eax, 0x10000
jne 0x1003172
test byte [ebx + 0x28], 8
jne 0x100312e
test byte [esi + 4], 1
jne 0x1020cdb
test byte [esi + 4], 0x20
jne 0x1004d0d
cmp dword [esi], 0
je 0x1020d45
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
leave
ret 8
mov dword [ebp + 8], 0x20
jmp 0x100305d
call fcn.01003158
test eax, eax
jne 0x1003040
mov eax, dword [edi + 0x7c]
mov ecx, dword [ebx + 0x10]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SelectObject]
mov dword [edi + 0x68], eax
mov dword [ebp + 8], 0x12
jmp 0x1003040
dec eax
jne 0x100305d
cmp dword [esi], 0
je 0x1020c8c
test byte [ebx + 0x28], 8
je 0x100305d
push dword [edi + 0x68]
push dword [ebx + 0x10]
call dword [sym.imp.GDI32.dll_SelectObject]
jmp 0x100305d
mov dword [ebp + 8], 4
jmp 0x1003054
push dword [ebx + 0x24]
lea ecx, [edi + 0x38]
call fcn.01005926
mov ecx, dword [ebx + 0x1c]
lea esi, [ebx + 0x54]
cmp ecx, dword [esi]
jl 0x1003182
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.01003ef1
mov ecx, dword [ebp - 4]
push eax
push dword [ebx + 0x10]
call fcn.0102965e
mov edi, dword [ebp - 4]
jmp 0x1003182
mov eax, dword [edi + 0x80]
test eax, eax
je 0x1020d0d
push 0
lea ecx, [ebx + 0x14]
push ecx
mov ecx, dword [ebx]
xor edx, edx
cmp ecx, dword [edi + 0x38]
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 0x100304a
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 0x1020d39
or eax, 0x40
or byte [ebp + 0xa], 1
mov dword [ebx + 0x28], eax
or byte [ebp + 0xa], 2
mov esi, dword [ebp + 0xc]
jmp 0x100304a
push dword [ebx + 0x24]
or dword [ebp + 8], 0x10
lea ecx, [edi + 0x38]
call fcn.01005926
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
mov ecx, edi
call fcn.01003ef1
push eax
push dword [ebx + 0x10]
mov ecx, edi
call fcn.0102965e
mov eax, dword [ebp - 0xc]
sub eax, dword [ebp - 0x14]
mov dword [ebx + 0x6c], eax
jmp 0x100305d

Function at 0x1003158
Capabilities:
Identify system language via api

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

Disassembly:
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 0x101a8dc
push 0x80000001
mov esi, ecx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x100442a
mov ecx, dword [esi + 0x64]
call fcn.0100446f
push 4
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
push 4
push 0
push 0x101a8c0
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 0x1005926
Capabilities:
Capture webcam image

Disassembly:
push 0
push dword [esp + 8]
push 0x419
push dword [ecx]
call dword [sym.imp.USER32.dll_SendMessageW]
ret 4

Function at 0x100621b
Capabilities:
Get geographical location
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
push ebx
xor ebx, ebx
cmp dword [0x103f65c], ebx
mov dword [ebp - 8], ebx
je 0x101585d
cmp dword [0x103f65c], 1
je 0x10256a4
xor eax, eax
cmp dword [0x103f65c], 1
pop ebx
sete al
leave
ret 4
push esi
push 7
xor esi, esi
call fcn.01011954
test eax, eax
je 0x10255ff
call fcn.010158b9
cmp ax, bx
mov word [0x10404e8], ax
je 0x101589f
push 0x10
lea ecx, [ebp - 0x38]
push ecx
movzx eax, ax
push 0x58
push eax
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x101589f
test byte [ebp - 0x29], 8
jne 0x10255e4
xor eax, eax
cmp esi, ebx
sete al
inc eax
push eax
push 0x103f65c
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
pop esi
jmp 0x1006233
xor eax, eax
mov ax, word [0x10404e8]
push eax
call fcn.01035712
test eax, eax
je 0x101589f
jmp 0x102569c
push 5
call fcn.01011954
test eax, eax
je 0x101589f
push 0x4a
call dword [sym.imp.USER32.dll_GetSystemMetrics]
test eax, eax
je 0x101589f
lea eax, [ebp - 4]
push eax
push 0x20019
push ebx
push 0x10277d4
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x101589f
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x18]
push eax
push ebx
push ebx
push 0x10277d2
push dword [ebp - 4]
mov dword [ebp - 0xc], 0xc
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 4]
mov byte [ebp - 0xd], bl
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.0103562d
test eax, eax
je 0x101589f
mov eax, dword [ebp - 8]
and eax, 0x3ff
cmp eax, 1
je 0x1025696
cmp eax, 0xd
jne 0x101589f
mov word [0x10404e8], ax
xor esi, esi
inc esi
jmp 0x101589f
mov eax, dword [ebp + 8]
cmp eax, ebx
je 0x1006240
mov cx, word [0x10404e8]
mov word [eax], cx
jmp 0x1006240
Function at 0x1006fa3
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push esi
mov esi, ecx
push 0xfffffffffffffff0
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetWindowLongW]
test eax, 0x10000000
je 0x1023d92
push ebx
lea eax, [esi + 8]
cmp word [eax], 0
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov ebx, 0x400
je 0x1019898
lea eax, [esi + 0xac]
cmp word [eax], 0
je 0x10198ad
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetDC]
xor ebx, ebx
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x1023d99
push ebx
mov ecx, esi
call fcn.01019f05
mov eax, dword [esi + 0x1b8]
cmp eax, ebx
je 0x1007021
push eax
push dword [ebp - 4]
call dword [sym.imp.GDI32.dll_SelectObject]
mov dword [ebp - 8], eax
xor eax, eax
lea edi, [ebp - 0x14]
mov dword [ebp - 0x18], ebx
stosd dword es:[edi], eax
mov dword [ebp - 0x10], ebx
lea edi, [ebp - 0xc]
stosd dword es:[edi], eax
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 4]
mov ecx, esi
call fcn.01006cd5
mov eax, dword [ebp - 0xc]
mov ebx, dword [ebp - 0x14]
add ebx, dword [ebp - 0xc]
cdq
sub eax, edx
mov edi, eax
mov eax, dword [ebp - 0x10]
sar edi, 1
cmp eax, dword [ebp - 0x18]
jle 0x100705a
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 4]
mov ecx, esi
call fcn.0100710b
mov eax, dword [ebp - 0xc]
add eax, edi
add eax, ebx
cmp eax, dword [ebp + 0xc]
jl 0x1013fb6
xor edi, edi
cmp dword [esi + 0x1b8], edi
je 0x100708e
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.GDI32.dll_SelectObject]
push dword [ebp - 4]
push dword [esi + 4]
call dword [sym.imp.USER32.dll_ReleaseDC]
mov eax, dword [0x103f6a8]
lea eax, [ebx + eax*4]
push eax
push dword [ebp - 0x18]
lea eax, [ebp - 0x28]
push edi
push edi
push eax
call dword [sym.imp.USER32.dll_SetRect]
mov ebx, dword [sym.imp.USER32.dll_GetWindowLongW]
push 0xffffffffffffffec
push dword [esi + 4]
call ebx
push eax
push edi
push 0xfffffffffffffff0
push dword [esi + 4]
call ebx
push eax
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.USER32.dll_AdjustWindowRectEx]
mov ecx, dword [0x103f650]
mov eax, dword [0x103f0c0]
mov edx, dword [ebp - 0x24]
add eax, ecx
mov ecx, dword [ebp - 0x1c]
mov esi, ecx
sub esi, edx
cmp esi, eax
jge 0x10070f1
lea ecx, [edx + eax]
sub ecx, edx
movzx eax, cx
mov ecx, dword [ebp - 0x20]
sub ecx, dword [ebp - 0x28]
shl eax, 0x10
movzx ecx, cx
or eax, ecx
pop edi
pop ebx
pop esi
leave
ret 8
mov ecx, dword [ebp - 0x10]
cmp ecx, dword [ebp + 8]
jge 0x1007078
cmp ecx, dword [ebp - 0x18]
mov ebx, eax
jle 0x1013fcc
mov dword [ebp - 0x18], ecx
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 4]
mov ecx, esi
call fcn.01013ff0
mov eax, dword [ebp - 0xc]
add edi, eax
lea eax, [edi + ebx]
cmp eax, dword [ebp + 0xc]
jge 0x1007078
jmp 0x1023da0
push 0x28
push eax
push 0x1003
push ebx
call edi
and word [esi + 0x58], 0
jmp 0x1006fdc
push 0x28
push eax
push 0x1f
push ebx
call edi
and word [esi + 0xfc], 0
jmp 0x1006fec
xor eax, eax
jmp 0x1007106
xor eax, eax
jmp 0x1007104
mov ecx, dword [ebp - 0x10]
cmp ecx, dword [ebp + 8]
jge 0x1007078
cmp ecx, dword [ebp - 0x18]
mov ebx, eax
jle 0x1007078
mov dword [ebp - 0x18], ecx
jmp 0x1007078
Function at 0x10090f3
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x20013
push eax
lea eax, [ebp - 0x208]
push eax
call sub.WINMM.dll_PlaySoundW
jmp 0x1009156
push ebp
mov ebp, esp
sub esp, 0x408
push dword [ebp + 8]
lea eax, [ebp - 0x408]
push 0x101b630
push 0x100
push eax
call dword [sym.imp.SHLWAPI.dll_wnsprintfW]
and word [ebp - 0x208], 0
add esp, 0x10
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x208]
push eax
lea eax, [ebp - 0x408]
push eax
push 0x80000001
mov dword [ebp + 8], 0x208
call dword [sym.imp.ADVAPI32.dll_RegQueryValueW]
test eax, eax
jne 0x1009156
cmp word [ebp - 0x208], ax
jne 0x10088ea
leave
ret 4
Function at 0x100ac74
Capabilities:
Log keystrokes via polling

Disassembly:
mov eax, dword [esp + 4]
cmp word [eax + 0xc], 0x71
push edi
mov edi, ecx
je 0x10265c2
xor eax, eax
pop edi
ret 4
push esi
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
push 0x10
call esi
test ax, ax
jl 0x10265fd
push 0x11
call esi
test ax, ax
jl 0x10265fd
push 0x12
call esi
test ax, ax
jl 0x10265fd
test byte [edi + 0x48], 8
je 0x10265fd
mov ecx, edi
call fcn.0100a597
test eax, eax
jl 0x10265fd
push eax
mov ecx, edi
call fcn.01037afb
pop esi
jmp 0x100ac86

Function at 0x100ac8c
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
push esi
mov esi, ecx
mov eax, dword [esi + 0x3b8]
xor ebx, ebx
cmp eax, ebx
push edi
mov dword [ebp - 4], 0x10
je 0x100acb8
push ebx
push ebx
push 0x438
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
lea edi, [esi + 0x3ac]
cmp dword [edi], ebx
jne 0x10225c4
push dword [esi + 4]
call dword [sym.imp.USER32.dll_SetActiveWindow]
mov edi, dword [sym.imp.USER32.dll_GetClientRect]
lea eax, [ebp - 0x1c]
push eax
push dword [esi + 0x38]
mov dword [esi + 0xc], 1
call edi
push 2
lea eax, [ebp - 0x1c]
push eax
push ebx
push dword [esi + 0x38]
mov ebx, dword [sym.imp.USER32.dll_MapWindowPoints]
call ebx
lea eax, [ebp - 0x2c]
push eax
push dword [esi + 4]
call edi
push 2
lea eax, [ebp - 0x2c]
push eax
xor edi, edi
push edi
push dword [esi + 4]
call ebx
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.USER32.dll_IntersectRect]
mov eax, dword [ebp - 0x1c]
push edi
push edi
push 0x1f
push dword [esi + 4]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 8], eax
call dword [sym.imp.USER32.dll_SendMessageW]
push 0x17
call dword [sym.imp.USER32.dll_GetSystemMetrics]
xor ecx, ecx
test eax, eax
setne cl
inc ecx
push ecx
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jl 0x101f774
lea eax, [esi + 0x4b4]
cmp dword [eax], edi
lea ebx, [esi + 0x4ac]
je 0x100ad6b
mov ebx, eax
mov eax, dword [ebx]
cmp eax, edi
je 0x10225e0
push dword [ebp - 4]
mov ecx, dword [eax]
lea edx, [ebp - 0x1c]
push edx
lea edx, [ebp - 0xc]
push edx
push eax
call dword [ecx + 0x20]
test eax, eax
jl 0x10225f1
cmp dword [ebp - 4], 0x10
jne 0x100ada8
push edi
push 0x10002
push 0x128
push dword [esi + 0x38]
call dword [sym.imp.USER32.dll_SendMessageW]
pop edi
pop esi
pop ebx
leave
ret
mov dword [ebp - 4], edi
jmp 0x100ad59
mov ecx, esi
call fcn.0102b5e0
push ebx
push dword [edi]
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, esi
call fcn.0102b60a
jmp 0x100acc6
mov ecx, esi
call fcn.0100f286
mov eax, dword [ebx]
cmp eax, edi
jne 0x100ad75
call fcn.0100a896
jmp 0x100ad8e
Function at 0x100b2d7
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, ecx
xor ebx, ebx
cmp dword [esi + 0x7c], ebx
jne 0x100b2f1
cmp dword [esi + 0x74], ebx
jne 0x1025e9c
pop esi
pop ebx
leave
ret
push dword [esi + 0x24]
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x100b2f1
push edi
xor edi, edi
inc edi
push edi
push ebx
push 0x101c828
push 0x101b3a8
call dword [sym.imp.SHLWAPI.dll_SHRegGetBoolUSValueW]
test eax, eax
je 0x1025ef0
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 0x100b2f1

Function at 0x100c8a5
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
push 0
lea eax, [ebp - 4]
push eax
push 0
push 0x103e
call dword [sym.imp.USER32.dll_SystemParametersInfoW]
mov eax, dword [ebp - 4]
test eax, eax
je 0x100c8ef
push 0x1000
call dword [sym.imp.USER32.dll_GetSystemMetrics]
test eax, eax
jne 0x10253ba
push 1
push 0
push 0x101d00c
push 0x101b3a8
call dword [sym.imp.SHLWAPI.dll_SHRegGetBoolUSValueW]
leave
ret
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push dword [eax + 0x1d4]
lea eax, [ebp - 0x20c]
push 0x1027758
push 0x104
push eax
call dword [sym.imp.SHLWAPI.dll_wnsprintfW]
add esp, 0x10
push 1
push 0
push 0x101d00c
lea eax, [ebp - 0x20c]
push eax
jmp 0x100c8e9

Function at 0x100c94f
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
push edi
push 0x40000056
mov edi, ecx
call dword [sym.imp.SHELL32.dll_SHRestricted]
test eax, eax
jne 0x100c9ad
push 1
push eax
push 0x101b460
mov esi, 0x101b3a8
push esi
call dword [sym.imp.SHLWAPI.dll_SHRegGetBoolUSValueW]
test eax, eax
mov dword [edi + 0x30], eax
je 0x100c9a9
and dword [ebp - 4], 0
push 4
pop eax
push eax
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 0
lea eax, [ebp - 8]
push eax
add edi, 0x34
push edi
push 0
push 0x101b43c
push esi
call dword [sym.imp.SHLWAPI.dll_SHRegGetUSValueW]
pop edi
pop esi
leave
ret
and dword [edi + 0x30], 0
jmp 0x100c9a9

Function at 0x100cca7
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1f4
push esi
xor esi, esi
push esi
lea ecx, [ebp - 0x1f4]
mov eax, 0x1f4
push ecx
push eax
push 0x29
mov dword [ebp - 0x1f4], eax
call dword [sym.imp.USER32.dll_SystemParametersInfoW]
test eax, eax
je 0x100cd03
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
mov ecx, eax
and cx, 0x3ff
cmp cx, 4
je 0x10219a7
mov dword [ebp - 0x1cc], 0x2bc
lea eax, [ebp - 0x1dc]
push eax
call dword [sym.imp.GDI32.dll_CreateFontIndirectW]
mov esi, eax
mov eax, esi
pop esi
leave
ret 4
shr ax, 0xa
cmp ax, 1
je 0x10219bb
cmp ax, 2
jne 0x100ccea
mov dword [ebp - 0x1cc], 0x190
jmp 0x100ccf4
Function at 0x100d897
Capabilities:
Query or enumerate registry value

Disassembly:
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 0x10263af
mov eax, dword [edi + 8]
push esi
mov esi, dword [edi + 0xc]
and esi, 3
cmp eax, ebx
je 0x100d924
push ebx
push ebx
push ebx
lea ecx, [ebp - 8]
push ecx
lea ecx, [ebp - 4]
push ecx
push ebx
push eax
mov ebx, 0x101b3a8
push ebx
mov dword [ebp - 8], 4
call dword [sym.imp.SHLWAPI.dll_SHRegGetUSValueW]
test eax, eax
je 0x10263b6
mov ecx, edi
call fcn.0100d945
test eax, eax
mov dword [ebp + 8], eax
je 0x100d924
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 0x100e4a6
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LocalFree]
cmp esi, 2
je 0x100dd25
cmp esi, 1
jne 0x100d93c
test byte [edi + 0xc], 0x10
jne 0x10263cf
mov eax, esi
pop esi
pop edi
pop ebx
leave
ret 4
test byte [edi + 0xc], 8
jne 0x100d93c
jmp 0x10263c7
mov esi, dword [ebp - 4]
jmp 0x100d91b
xor eax, eax
jmp 0x100d93f
mov eax, dword [ebp + 8]
mov esi, dword [ebp - 4]
mov dword [eax], 1
jmp 0x100d924
xor esi, esi
inc esi
jmp 0x100d93c
push 2
pop esi
jmp 0x100d93c

Function at 0x100da30
Capabilities:
Get common file path

Disassembly:
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 0x100dadc
lea eax, [ebp - 8]
push eax
push 0x101c1dc
push esi
push dword [ebp - 0xc]
push esi
call fcn.01008e17
test eax, eax
jl 0x100dad3
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 0x100daca
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
jne 0x100dac1
cmp dword [ebp + 0xc], esi
je 0x100e4c6
push dword [ebp + 8]
push dword [ebp - 8]
call fcn.0100dbcb
test eax, eax
jne 0x100e4c6
push dword [ebp + 8]
call dword [sym.imp.SHELL32.dll_SHFree]
cmp edi, dword [ebp + 0x10]
jb 0x100da80
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
inc edi
jmp 0x100dab3
Function at 0x100e705
Capabilities:
Enumerate files on windows
Get common file path
Get program files directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x868
push esi
lea eax, [ebp - 0x410]
push eax
xor esi, esi
push esi
push esi
push 0x26
push esi
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jne 0x100e77e
push edi
push 0x20
lea eax, [ebp - 0x410]
push eax
call dword [sym.imp.SHLWAPI.dll_StrChrW]
mov edi, eax
cmp edi, esi
je 0x100e77d
lea eax, [ebp - 0x410]
push eax
lea eax, [ebp - 0x868]
mov word [edi], si
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyW]
push eax
call esi
push 0x101c564
push edi
call esi
lea eax, [ebp - 0x660]
push eax
lea eax, [ebp - 0x410]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x10220a7
pop edi
pop esi
leave
ret
mov esi, 0x104
push esi
lea eax, [ebp - 0x410]
push eax
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push esi
lea eax, [ebp - 0x634]
push eax
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.SHLWAPI.dll_StrCatBuffW]
test byte [ebp - 0x660], 0x10
je 0x1022104
lea eax, [ebp - 0x208]
push eax
lea eax, [ebp - 0x868]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x1022131
push 0x1027694
push 5
lea eax, [ebp - 0x208]
push eax
push 0x102c79b
push 0x14
push dword [0x103f654]
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.SHLWAPI.dll_Ordinal_292]
cmp eax, 5
je 0x1022147
lea eax, [ebp - 0x660]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x10220ac
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x100e77d
Function at 0x100e886
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
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 0x100e9bb
cmp dword [edi + 0x548], esi
je 0x100e9bb
push 0x222
push esi
call sub.SHELL32.dll_SHTestTokenMembership
test eax, eax
jne 0x100e9bb
push 0x40000073
call dword [sym.imp.SHELL32.dll_SHRestricted]
test eax, eax
jne 0x100e9bb
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, 0x101c544
push ebx
mov edi, 0x101c4b8
push edi
mov dword [ebp - 4], 8
call dword [sym.imp.SHLWAPI.dll_SHRegGetUSValueW]
test eax, eax
jne 0x1021fdb
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 0x100e9ba
push esi
push esi
push esi
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
push esi
push 0x101c4ac
push dword [ebp - 0x10]
mov dword [ebp - 4], 4
call dword [sym.imp.SHLWAPI.dll_SHRegQueryUSValueW]
test eax, eax
je 0x100e9c2
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 0x101c480
push edi
call dword [sym.imp.SHLWAPI.dll_SHRegGetUSValueW]
test eax, eax
jne 0x100e98b
mov ebx, dword [ebp - 8]
cmp ebx, esi
jle 0x100e9b1
mov ecx, dword [ebp - 0x14]
push ebx
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x20]
push eax
call fcn.0100e9c9
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_CompareFileTime]
test eax, eax
jg 0x100e9b1
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
jne 0x100e9ae
jmp 0x100e965
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
push esi
push 0x1027638
push 0x10275c0
push 0x80000002
mov dword [ebp - 4], 4
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
jne 0x1022017
cmp dword [ebp - 8], esi
je 0x1022017
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x1c], eax
jmp 0x1022029
mov ecx, dword [ebp - 0x14]
push 0xffffffffffffffd2
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.0100e9c9
push 2
push 8
lea eax, [ebp - 0x20]
push eax
push esi
push ebx
push edi
call dword [sym.imp.SHLWAPI.dll_SHRegSetUSValueW]
jmp 0x100e927