joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1003d35
Capabilities:
Log keystrokes via polling

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov eax, dword [edi + 8]
cmp eax, 0xffffffea
mov esi, ecx
jbe 0x1005187
cmp eax, 0xffffffec
je 0x1024293
cmp eax, 0xfffffff1
je 0x1024222
cmp eax, 0xfffffff4
jne 0x10051ba
push 0
push edi
mov ecx, esi
call fcn.01003d82
pop edi
pop esi
pop ebx
leave
ret 4
je 0x1014887
cmp eax, 0xfffffd33
je 0x1014893
cmp eax, 0xfffffd37
je 0x1021f77
cmp eax, 0xfffffd3a
je 0x102419d
cmp eax, 0xfffffdee
jne 0x10051ba
jmp 0x1024137
xor eax, eax
jmp 0x1003d76
mov ecx, esi
call fcn.0100fb05
jmp 0x10051ba
push edi
mov ecx, esi
call fcn.0102f7c2
jmp 0x10051ba
cmp dword [esi + 0x64], 0
jne 0x1024202
test byte [edi + 0x14], 2
je 0x10051ba
jmp 0x102420a
push dword [edi + 4]
lea ecx, [esi + 0x3c]
call fcn.0102d7a3
push 1
xor ebx, ebx
push ebx
push eax
mov ecx, esi
mov dword [ebp + 8], eax
call fcn.010021c0
test eax, eax
je 0x1024181
cmp dword [eax], ebx
jne 0x1024181
push dword [ebp + 8]
mov ecx, esi
lea ebx, [edi + 0x10]
call fcn.01004ba4
push eax
push 0x10242cc
push 0x50
push ebx
call fcn.0101f905
add esp, 0x10
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ebx, eax
push 0
push 0x50
pop eax
sub eax, ebx
push eax
lea eax, [edi + ebx*2 + 0x10]
push eax
push dword [ebp + 8]
mov ecx, esi
call fcn.0100440a
jmp 0x10051ba
push dword [edi + 0xc]
lea ecx, [esi + 0x3c]
call fcn.0102d7a3
mov ecx, esi
mov edi, eax
call fcn.01002619
cmp eax, 0xffffffff
mov ebx, dword [sym.imp.USER32.dll_GetKeyState]
mov dword [esi + 0x48], eax
je 0x10241d4
push eax
mov ecx, esi
call fcn.010027e6
cmp eax, edi
jne 0x10241d4
push 0x11
call ebx
test ax, ax
jge 0x10241de
push 0
push edi
mov ecx, esi
call fcn.01003826
push 0x11
call ebx
test ax, ax
jl 0x10051ba
push 0
push edi
mov ecx, esi
call fcn.01003826
push edi
mov ecx, esi
call fcn.0102ee5a
jmp 0x10051ba
xor eax, eax
inc eax
jmp 0x1003d76
push dword [edi + 0x10]
lea ecx, [esi + 0x3c]
call fcn.0102d7a3
push eax
mov ecx, esi
call fcn.010037e9
jmp 0x10051ba
mov edi, dword [edi + 0xc]
cmp edi, 0xd
je 0x1024233
cmp edi, 0x20
jne 0x10051ba
push 0
push 0
push 0x447
lea edi, [esi + 0x3c]
push dword [edi]
call dword [sym.imp.USER32.dll_SendMessageW]
mov ebx, eax
test ebx, ebx
jl 0x1024202
lea eax, [ebp - 0x20]
push eax
push ebx
mov ecx, edi
mov dword [ebp - 0x20], 0x20
mov dword [ebp - 0x1c], reloc.SHELL32.dll_SHChangeNotifyDeregister
call fcn.0100222f
xor byte [ebp - 0x10], 1
lea eax, [ebp - 0x20]
push eax
push ebx
mov ecx, edi
call fcn.01003b3f
push 1
push 0
push ebx
mov ecx, esi
call fcn.010021c0
push 0
push eax
push ebx
mov ecx, esi
call fcn.0102f723
jmp 0x1024202
push dword [edi + 0xc]
lea ecx, [esi + 0x3c]
call fcn.0102d7a3
push 1
push 0
push eax
mov ecx, esi
call fcn.010021c0
test eax, eax
je 0x10051ba
cmp dword [eax], 0
je 0x10051ba
mov ecx, esi
call fcn.01002619
mov dword [esi + 0x48], eax
jmp 0x10051ba
Function at 0x1003d82
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 0x1003da4
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 0x1003de2
sub eax, 0x10000
jne 0x1003deb
test byte [ebx + 0x28], 8
jne 0x1003e0b
test byte [esi + 4], 1
jne 0x1023a31
test byte [esi + 4], 0x20
jne 0x1020817
cmp dword [esi], 0
je 0x1023a9b
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
leave
ret 8
mov dword [ebp + 8], 0x20
jmp 0x1003dd8
dec eax
jne 0x1003dd8
cmp dword [esi], 0
je 0x10239e2
test byte [ebx + 0x28], 8
je 0x1003dd8
push dword [edi + 0x6c]
push dword [ebx + 0x10]
call dword [sym.imp.GDI32.dll_SelectObject]
jmp 0x1003dd8
call fcn.01003e36
test eax, eax
jne 0x1003dbb
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 0x1003dbb
mov dword [ebp + 8], 4
jmp 0x1003dcf
push dword [ebx + 0x24]
lea ecx, [edi + 0x3c]
call fcn.0102d7a3
mov ecx, dword [ebx + 0x1c]
lea esi, [ebx + 0x54]
cmp ecx, dword [esi]
jl 0x1003df7
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.01004ba4
mov ecx, dword [ebp - 4]
push eax
push dword [ebx + 0x10]
call fcn.0102eadc
mov edi, dword [ebp - 4]
jmp 0x1003df7
mov eax, dword [edi + 0x84]
test eax, eax
je 0x1023a63
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 0x1003dc5
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 0x1023a8f
or eax, 0x40
or byte [ebp + 0xa], 1
mov dword [ebx + 0x28], eax
or byte [ebp + 0xa], 2
mov esi, dword [ebp + 0xc]
jmp 0x1003dc5
push dword [ebx + 0x24]
or dword [ebp + 8], 0x10
lea ecx, [edi + 0x3c]
call fcn.0102d7a3
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
mov ecx, edi
call fcn.01004ba4
push eax
push dword [ebx + 0x10]
mov ecx, edi
call fcn.0102eadc
mov eax, dword [ebp - 0xc]
sub eax, dword [ebp - 0x14]
mov dword [ebx + 0x6c], eax
jmp 0x1003dd8

Function at 0x1003e36
Capabilities:
Identify system language via api

Disassembly:
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
mov ecx, eax
and cx, 0x3ff
cmp cx, 4
je 0x102368b
xor eax, eax
ret
shr ax, 0xa
cmp ax, 1
je 0x102369f
cmp ax, 2
jne 0x1003e4d
xor eax, eax
inc eax
ret
Function at 0x1008221
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.010080a1
lea esi, [ebx + 0x20]
push esi
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_CompareFileTime]
test eax, eax
jge 0x102858e
push ebx
push 0x10080c5
push dword [ebx + 0xe0]
call dword [fcn.01007a14]
and dword [ebp - 4], 0
lea esi, [ebx + 0x44]
mov ecx, dword [ebp - 4]
shl ecx, 3
mov eax, dword [ecx + 0x1007f98]
mov ecx, dword [ecx + 0x1007f9c]
lea edi, [esi - 4]
mov dword [ebx + 0x28], ecx
cmp dword [edi], 0
mov dword [ebp - 0xc], eax
je 0x102859e
push dword [ebp - 4]
mov ecx, ebx
call fcn.01007ff7
test eax, eax
je 0x1008324
test byte [ebx + 0x28], 8
je 0x10082c5
push 0x20000
call dword [sym.imp.SHELL32.dll_SHRestricted]
test eax, eax
jne 0x10285b3
push dword [ebp - 0xc]
call fcn.0100834a
test eax, eax
jne 0x100b6c6
lea eax, [ebp - 8]
push eax
push dword [ebp - 0xc]
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jl 0x100b6c6
mov eax, dword [edi]
test eax, eax
je 0x100b60e
push dword [ebp - 8]
push eax
call dword [sym.imp.SHELL32.dll_ILIsEqual]
test eax, eax
je 0x100b60e
cmp dword [esi], 0
jne 0x100b60e
cmp dword [esi + 4], 0
je 0x100b60e
push dword [ebp - 8]
call dword [sym.imp.SHELL32.dll_ILFree]
inc dword [ebp - 4]
add esi, 0x1c
cmp dword [ebp - 4], 6
jb 0x100827a
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 0x100b61a
cmp dword [esi], edx
je 0x100b684
mov eax, dword [esi - 0xc]
cmp eax, edx
mov dword [esi], edx
mov dword [esi - 8], eax
je 0x100b6bf
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.01007980
test eax, eax
je 0x100b67b
push dword [ebp - 8]
push dword [ebx + 0x2c]
call fcn.0100b552
test eax, eax
mov dword [ebp - 0xc], eax
je 0x100b67b
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.0100b8f2
mov ecx, dword [ebp - 0xc]
call fcn.01007f52
lea eax, [esi - 8]
push eax
call fcn.0100b6d8
cmp dword [ebx + 4], 0
je 0x100831b
cmp dword [esi + 4], 0
jne 0x100831b
mov edi, dword [edi]
test edi, edi
je 0x100831b
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.01009c0d
jmp 0x100831b
xor eax, eax
jmp 0x100b62c
lea ecx, [esi - 0xc]
call fcn.0101170a
jmp 0x1008324
mov eax, dword [ebp - 0x14]
mov dword [esi], eax
mov eax, dword [ebp - 0x10]
mov dword [esi + 4], eax
jmp 0x1008261
push edi
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
mov dword [esi], 1
jmp 0x100829e
or dword [ebx + 0x28], 1
jmp 0x10082c5
Function at 0x1008f9d
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 0x1008fc6
cmp dword [esi + 0x74], ebx
je 0x1008fc6
push dword [esi + 0x24]
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
jne 0x1012d08
pop esi
pop ebx
leave
ret
push edi
xor edi, edi
inc edi
push edi
push ebx
push 0x100bf94
push 0x100bdb8
call dword [sym.imp.SHLWAPI.dll_SHRegGetBoolUSValueW]
test eax, eax
je 0x1012d4b
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 0x1008fc6

Function at 0x100925f
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 0x1009288
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 0x1009080
push 0x1008fd0
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 0x10092d1
mov ecx, esi
mov dword [esi + 0x74], 3
call fcn.01008f9d
pop edi
xor eax, eax
pop esi
inc eax
pop ebx
leave
ret 4

Function at 0x100cda9
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 0x1028abf
mov eax, dword [edi + 8]
push esi
mov esi, dword [edi + 0xc]
and esi, 3
cmp eax, ebx
je 0x100ce38
push ebx
push ebx
push ebx
lea ecx, [ebp - 8]
push ecx
lea ecx, [ebp - 4]
push ecx
push ebx
push eax
mov ebx, 0x100bdb8
push ebx
mov dword [ebp - 8], 4
call dword [sym.imp.SHLWAPI.dll_SHRegGetUSValueW]
test eax, eax
je 0x1028ac6
mov ecx, edi
call fcn.0100ce5e
test eax, eax
mov dword [ebp + 8], eax
je 0x100ce38
lea ecx, [ebp - 8]
push ecx
lea ecx, [ebp - 4]
push ecx
push 0
push eax
push ebx
push SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
je 0x1028ad7
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LocalFree]
cmp esi, 2
je 0x100d4dc
cmp esi, 1
jne 0x100ce50
test byte [edi + 0xc], 0x10
jne 0x1028ae7
mov eax, esi
pop esi
pop edi
pop ebx
leave
ret 4
test byte [edi + 0xc], 8
jne 0x100ce50
jmp 0x1028adf
xor eax, eax
jmp 0x100ce53
mov eax, dword [ebp + 8]
mov esi, dword [ebp - 4]
mov dword [eax], 1
jmp 0x100ce38
mov esi, dword [ebp - 4]
jmp 0x100ce2f
xor esi, esi
inc esi
jmp 0x100ce50
push 2
pop esi
jmp 0x100ce50
Function at 0x100eaf0
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.0100eb82
test eax, eax
je 0x100da6c
push 0x40000042
call dword [sym.imp.SHELL32.dll_SHRestricted]
test eax, eax
jne 0x100da6c
call fcn.0100be97
test eax, eax
je 0x10254fd
push dword [esi + 4]
call dword [sym.imp.USER32.dll_SetForegroundWindow]
test eax, eax
je 0x100da7e
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.0100ecf2
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.0102ff41
pop esi
ret

Function at 0x100eb82
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 0x100ebd4
push 0x100bdb8
push SysReAllocString
mov esi, ecx
mov dword [ebp - 8], 4
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
call fcn.0100be97
test eax, eax
je 0x10254dc
cmp dword [ebp - 4], 2
sbb eax, eax
neg eax
pop esi
leave
ret
mov eax, dword [ebp - 4]
sub eax, 0
je 0x10254f5
dec eax
jne 0x10254ee
mov ecx, esi
call fcn.0100ecf2
xor eax, eax
jmp 0x100ebce
xor eax, eax
inc eax
jmp 0x100ebce
Function at 0x100ec99
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 0x100ecda
mov eax, dword [ebp + 0xc]
cmp eax, edi
je 0x100ecda
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 0x100ece2
push 0x16
call esi
test eax, eax
jne 0x100ece2
push 0x15
call esi
test eax, eax
jne 0x100ece2
pop esi
mov al, byte [ebp - 1]
pop edi
leave
ret 8
call dword [sym.imp.SHELL32.dll_IsUserAnAdmin]
jmp 0x10225f8
test eax, eax
je 0x100ecd9
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 0x10229b8
push 0x1022950
mov ebx, reloc.OLEAUT32.dll_SysReAllocString
push ebx
mov dword [ebp - 0xc], edi
call esi
test eax, eax
jne 0x1022651
cmp dword [ebp - 8], eax
je 0x1022651
mov eax, dword [ebp + 8]
mov dword [eax], 0x1022940
mov eax, dword [ebp + 0xc]
mov dword [eax], 0x102292c
jmp 0x1022723
and dword [ebp - 8], 0
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
push 0x1022904
push 0x1022890
push ebx
mov dword [ebp - 0xc], edi
call esi
test eax, eax
jne 0x1022683
cmp dword [ebp - 0x10], edi
jne 0x1022683
cmp dword [ebp - 8], eax
jne 0x1022727
push 0x15
call dword [sym.imp.SHLWAPI.dll_IsOS]
test eax, eax
jne 0x1022727
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0x1022880
push 0x1022810
mov ebx, SysReAllocString
push ebx
mov dword [ebp - 0xc], edi
call esi
test eax, eax
jne 0x10226bb
cmp dword [ebp - 8], eax
je 0x1022727
and dword [ebp - 8], 0
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0x1022800
push 0x1022788
push ebx
mov dword [ebp - 0xc], edi
call esi
test eax, eax
jne 0x10226e2
cmp dword [ebp - 8], eax
je 0x1022727
call fcn.0102b181
test al, al
jne 0x1022727
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 0x1022950
push ebx
mov dword [ebp - 0xc], edi
call esi
test eax, eax
jne 0x1022711
cmp dword [ebp - 8], eax
je 0x1022727
mov eax, dword [ebp + 8]
mov dword [eax], 0x1022770
mov eax, dword [ebp + 0xc]
mov dword [eax], 0x1022730
mov byte [ebp - 1], 1
pop ebx
jmp 0x100ecd9

Function at 0x100ecf2
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 0x100ebd4
push 0x100bdb8
push SysReAllocString
mov dword [ebp - 4], 2
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
leave
ret
Function at 0x100ee07
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 0x100eeb4
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 0x100eeb4
push edi
push 0x20
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_StrChrW]
mov edi, eax
cmp edi, esi
je 0x100eeb3
lea eax, [ebp - 0x20c]
push eax
mov word [edi], si
mov esi, 0x104
push esi
lea eax, [ebp - 0x61c]
push eax
call fcn.010065d7
lea ecx, [ebp - 0x20c]
mov eax, edi
sub eax, ecx
sar eax, 1
push 0x100eec0
mov ecx, esi
sub ecx, eax
push ecx
push edi
call fcn.010063d1
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 0x1025f6c
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.010065d7
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.0101e285
test byte [ebp - 0x86c], 0x10
je 0x1025fc2
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x61c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x1025fef
push 0x1026014
push 5
lea eax, [ebp - 0x414]
push eax
push 0x1032cdf
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 0x1026005
lea eax, [ebp - 0x86c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x1025f6c
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x100eeb3
Function at 0x100efc8
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 0x100f0f8
cmp dword [edi + 0x54c], esi
je 0x100f0f8
push 0x222
push esi
call sub.SHELL32.dll_SHTestTokenMembership
test eax, eax
jne 0x100f0f8
push 0x40000073
call dword [sym.imp.SHELL32.dll_SHRestricted]
test eax, eax
jne 0x100f0f8
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, 0x100f1d4
push ebx
mov edi, 0x100f148
push edi
mov dword [ebp - 4], 8
call dword [sym.imp.SHLWAPI.dll_SHRegGetUSValueW]
test eax, eax
jne 0x102501e
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 0x100f0f7
push esi
push esi
push esi
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
push esi
push 0x100f13c
push dword [ebp - 0x10]
mov dword [ebp - 4], 4
call dword [sym.imp.SHLWAPI.dll_SHRegQueryUSValueW]
test eax, eax
je 0x100f0ff
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 0x100f110
push edi
call dword [sym.imp.SHLWAPI.dll_SHRegGetUSValueW]
test eax, eax
je 0x100f106
mov ecx, dword [ebp - 0x14]
push ebx
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x20]
push eax
call fcn.0100f1f7
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_CompareFileTime]
test eax, eax
jg 0x100f0ee
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 0x100f0a9
jmp 0x100f0eb
mov ebx, dword [ebp - 8]
cmp ebx, esi
jle 0x100f0ee
jmp 0x100f0c8
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
push esi
push 0x1025100
push 0x1025088
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 4], 4
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
jne 0x102505a
cmp dword [ebp - 8], esi
je 0x102505a
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x1c], eax
jmp 0x102506c
mov ecx, dword [ebp - 0x14]
push 0xffffffffffffffe2
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.0100f1f7
push 2
push 8
lea eax, [ebp - 0x20]
push eax
push esi
push ebx
push edi
call dword [sym.imp.SHLWAPI.dll_SHRegSetUSValueW]
jmp 0x100f06b
Function at 0x10107c5
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 0x101082a
push edi
push edi
push edi
push edi
push 0x10107a8
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 0x101082a
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 0x101080f
push ebx
push eax
call dword [fcn.0100675c]
push eax
push dword [ebp + 8]
call dword [sym.imp.SHLWAPI.dll_StrCmpIW]
test eax, eax
je 0x10132de
mov eax, dword [esi + 0xec]
inc ebx
cmp ebx, dword [eax]
jl 0x10107ea
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 0x1010762
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret 4
xor eax, eax
inc eax
jmp 0x101082c

Function at 0x1010a66
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 0x1010b5c
cmp dword [0x10466c4], ebx
jne 0x1010b5c
lea eax, [ebp - 0x208]
push eax
push 1
push ebx
push 0x1010b88
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1010b5c
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 0x1010b78
push ebx
push dword [ebp - 0x208]
mov dword [ebp - 0x210], 0x1fe
call esi
test eax, eax
jne 0x1010b1a
cmp dword [ebp - 0x214], 1
jne 0x1010b1a
push 7
lea eax, [ebp - 0x204]
push eax
call fcn.01010bf7
test eax, eax
jne 0x10225ba
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x204]
push eax
lea eax, [ebp - 0x214]
push eax
push 0x1010b70
push ebx
push dword [ebp - 0x208]
mov dword [ebp - 0x210], 0x1fe
call esi
test eax, eax
je 0x10225c9
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 0x1010b1a
xor esi, esi
inc esi
cmp dword [ebp - 0x214], esi
jne 0x1010b4f
push esi
lea eax, [ebp - 0x204]
push eax
call fcn.01010bf7
test eax, eax
je 0x1010b4f
mov dword [ebp - 0x20c], esi
jmp 0x1010b4f