joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1016caf
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 0x1016e44
cmp dword [edi + 0x548], esi
je 0x1016e44
push 0x222
push esi
call sub.SHELL32.dll_SHTestTokenMembership
test eax, eax
jne 0x1016e44
push 0x40000073
call dword [sym.imp.SHELL32.dll_SHRestricted]
test eax, eax
jne 0x1016e44
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, 0x1003a14
push ebx
mov edi, 0x1003988
push edi
mov dword [ebp - 4], 8
call dword [sym.imp.SHLWAPI.dll_SHRegGetUSValueW]
test eax, eax
je 0x1016dab
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
push esi
push 0x1003960
push 0x10038e8
push reloc.SHELL32.dll_SHChangeNotifyRegister
mov dword [ebp - 4], 4
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
jne 0x1016d88
cmp dword [ebp - 8], esi
je 0x1016d88
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x1c], eax
jmp 0x1016d9a
mov ecx, dword [ebp - 0x14]
push 0xffffffffffffffd2
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.01016c7f
push 2
push 8
lea eax, [ebp - 0x20]
push eax
push esi
push ebx
push edi
call dword [sym.imp.SHLWAPI.dll_SHRegSetUSValueW]
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 0x1016e43
push esi
push esi
push esi
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
push esi
push 0x10038dc
push dword [ebp - 0x10]
mov dword [ebp - 4], 4
call dword [sym.imp.SHLWAPI.dll_SHRegQueryUSValueW]
test eax, eax
jne 0x1016dee
cmp dword [ebp - 8], esi
jne 0x1016e37
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 0x10038b0
push edi
call dword [sym.imp.SHLWAPI.dll_SHRegGetUSValueW]
test eax, eax
jne 0x1016e14
mov ebx, dword [ebp - 8]
cmp ebx, esi
jle 0x1016e3a
mov ecx, dword [ebp - 0x14]
push ebx
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x20]
push eax
call fcn.01016c7f
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_CompareFileTime]
test eax, eax
jg 0x1016e3a
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
Function at 0x1016ebe
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x410
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
push esi
inc ebx
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
je 0x1016f14
push ebx
push esi
lea eax, [ebp - 0x208]
push 0x1003a7c
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea eax, [ebp - 0x208]
push eax
inc ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x1016eda
lea eax, [ebp - 0x208]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
jmp 0x1016f76
push esi
call dword [sym.imp.SHLWAPI.dll_PathFindExtensionW]
mov esi, eax
test esi, esi
je 0x1016f76
push edi
mov edi, dword [sym.imp.KERNEL32.dll_lstrcpyW]
push esi
lea eax, [ebp - 0x410]
push eax
call edi
and word [esi], 0
lea eax, [ebp - 0x410]
push eax
push ebx
push dword [ebp + 8]
lea eax, [ebp - 0x208]
push 0x1003a6c
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x14
lea eax, [ebp - 0x208]
push eax
inc ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x1016f36
lea eax, [ebp - 0x208]
push eax
push dword [ebp + 8]
call edi
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x1017046
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 0x101716e
push edi
push 0x20
lea eax, [ebp - 0x410]
push eax
call dword [sym.imp.SHLWAPI.dll_StrChrW]
mov edi, eax
cmp edi, esi
je 0x101716d
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 0x1003aac
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
je 0x101716d
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 0x1017123
lea eax, [ebp - 0x208]
push eax
lea eax, [ebp - 0x868]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x1017150
push 0x1003a88
push 5
lea eax, [ebp - 0x208]
push eax
push 0x1016f7c
push 0x14
push dword [0x103d768]
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.SHLWAPI.dll_Ordinal_292]
cmp eax, 5
je 0x1017166
lea eax, [ebp - 0x660]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x10170cb
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
pop edi
pop esi
leave
ret
Function at 0x10171b2
Capabilities:
Log keystrokes via polling

Disassembly:
mov eax, dword [esp + 4]
sub eax, 0x55c
push esi
mov esi, ecx
je 0x10171e6
dec eax
jne 0x10171e2
xor eax, eax
cmp dword [esp + 0xc], eax
je 0x10171e2
push eax
push eax
push dword [esi + 0x40]
call dword [sym.imp.SHLWAPI.dll_Ordinal_479]
push dword [0x103e450]
call dword [sym.imp.USER32.dll_SetForegroundWindow]
pop esi
ret 0xc
xor eax, eax
cmp dword [esp + 0xc], eax
je 0x10171cb
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
push eax
push 0x10002
push 0x128
push dword [esi + 4]
call edi
push dword [esi + 4]
push 1
push 0x459
push dword [0x103e450]
call edi
push dword [esi + 4]
call dword [sym.imp.USER32.dll_SetForegroundWindow]
push 0x10
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
pop edi
mov ecx, esi
jge 0x101723d
push dword [esi + 0x3a8]
call fcn.0101649e
jmp 0x10171e2
push dword [esi + 0x38]
jmp 0x1017236

Function at 0x1017962
Capabilities:
Check if file exists
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x608
or dword [ebp + 0x1c], 4
push ebx
xor ebx, ebx
cmp dword [ebp + 0xc], ebx
push esi
push edi
mov word [ebp - 0x208], bx
je 0x1017996
movzx eax, word [ebp + 0xc]
push eax
push dword [0x103d768]
call dword [sym.imp.USER32.dll_LoadIconW]
mov dword [ebp + 0xc], eax
jmp 0x1017999
mov dword [ebp + 0xc], ebx
cmp dword [ebp + 0x10], ebx
je 0x1017a00
lea eax, [ebp - 0x208]
push eax
push dword [ebp + 0x10]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
test eax, eax
je 0x1017a00
cmp word [ebp - 0x208], bx
je 0x10179ef
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.SHLWAPI.dll_PathGetDriveNumberW]
cmp eax, 0xffffffff
je 0x10179ef
push eax
call dword [sym.imp.SHELL32.dll_DriveType]
cmp eax, 2
je 0x10179de
cmp eax, 5
jne 0x10179ef
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1017a00
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
jne 0x1017a13
push ebx
push 0x10
lea eax, [ebp - 0x208]
push eax
push dword [ebp + 8]
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
cmp dword [ebp + 0x14], ebx
mov esi, dword [sym.imp.USER32.dll_LoadStringW]
mov edi, 0x100
je 0x1017a3c
push edi
lea eax, [ebp - 0x608]
push eax
push dword [ebp + 0x14]
push dword [0x103d768]
call esi
lea ebx, [ebp - 0x608]
xor eax, eax
cmp dword [ebp + 0x18], eax
je 0x1017a5c
push edi
lea eax, [ebp - 0x408]
push eax
push dword [ebp + 0x18]
push dword [0x103d768]
call esi
lea eax, [ebp - 0x408]
push dword [ebp + 0x1c]
push eax
push ebx
lea eax, [ebp - 0x208]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.SHELL32.dll_Ordinal_61]
pop edi
pop esi
pop ebx
leave
ret 0x18
Function at 0x1017ae4
Capabilities:
Enumerate gui resources

Disassembly:
push esi
push edi
mov edi, 0x103d76c
push edi
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [esi + 0x47c]
test eax, eax
je 0x1017b0e
mov eax, dword [eax + 4]
test eax, eax
je 0x1017b35
push eax
call dword [0x10086c4]
jmp 0x1017b35
push 8
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
test eax, eax
mov dword [esi + 0x47c], eax
je 0x1017b35
push 4
push 0x34
call dword [fcn.0100869c]
mov ecx, dword [esi + 0x47c]
mov dword [ecx + 4], eax
mov eax, dword [esi + 0x47c]
test eax, eax
je 0x1017b51
mov ecx, dword [esp + 0xc]
push esi
push 0x1017a7b
mov dword [eax], ecx
call dword [sym.imp.USER32.dll_EnumWindows]
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
ret 4

Function at 0x1017f0a
Capabilities:
Create process on windows
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c8
push ebx
xor ebx, ebx
push ebx
push 0x16
lea eax, [ebp - 0x4c8]
push eax
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x1017fca
cmp dword [ebp + 8], ebx
lea eax, [ebp - 0x2c0]
je 0x1017f41
push 0x1003bf4
jmp 0x1017f46
push 0x1003bd4
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatW]
push edi
lea eax, [ebp - 0x4c8]
push eax
lea eax, [ebp - 0x2c0]
push eax
call esi
push 0x1003bd0
lea eax, [ebp - 0x2c0]
push eax
call esi
push 0x10
pop ecx
xor eax, eax
lea edi, [ebp - 0x50]
rep stosd dword es:[edi], eax
inc eax
mov dword [ebp - 0x28], eax
mov word [ebp - 0x24], ax
xor eax, eax
mov dword [ebp - 0x10], ebx
lea edi, [ebp - 0xc]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x54]
push eax
push ebx
push ebx
push 0x20
push ebx
push ebx
push ebx
lea eax, [ebp - 0x2c0]
push eax
push ebx
mov dword [ebp - 0x54], 0x44
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x1017fc8
push dword [ebp - 0x10]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0xc]
call esi
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x101807d
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x228
push ebx
push edi
mov edi, ecx
call fcn.01017fcf
xor ebx, ebx
cmp dword [ebp + 8], ebx
mov dword [ebp - 0x10], eax
setne al
cmp dword [ebp + 8], 0xffffffff
je 0x1018205
cmp dword [ebp - 0x10], 0xffffffff
setne cl
cmp al, cl
je 0x1018205
cmp al, bl
je 0x101820e
lea eax, [ebp + 8]
push eax
push 0x1a
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jl 0x1018205
lea eax, [ebp - 0x228]
push eax
push dword [ebp + 8]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
push 0x1003c20
lea eax, [ebp - 0x228]
push eax
lea eax, [ebp - 0x228]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
push dword [ebp + 8]
call dword [sym.imp.SHELL32.dll_ILFree]
lea eax, [ebp - 0x228]
push eax
call dword [sym.imp.SHELL32.dll_ILCreateFromPathW]
cmp eax, ebx
mov dword [ebp + 8], eax
je 0x1018205
push esi
lea eax, [ebp - 8]
push eax
push 0x100536c
push 3
push ebx
mov esi, 0x100546c
push esi
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jl 0x10181fb
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
lea edx, [ebp - 4]
push edx
push 0x10054ec
push eax
call dword [ecx]
test eax, eax
jl 0x10181f2
push dword [ebp + 8]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push ebx
push eax
call dword [ecx + 0xc]
test eax, eax
jl 0x10181e9
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
push 1
push eax
call dword [ecx + 0x18]
push ebx
lea eax, [ebp - 0x20]
push eax
push ebx
push 1
push esi
push dword [ebp - 4]
mov esi, dword [sym.imp.SHLWAPI.dll_IUnknown_Exec]
mov word [ebp - 0x20], 3
mov dword [ebp - 0x18], 0x1a
call esi
push ebx
lea eax, [ebp - 0x20]
push eax
push ebx
push 0x2f
push 0x100558c
push dword [ebp - 4]
mov dword [ebp - 0x18], ebx
call esi
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
lea edx, [ebp - 0xc]
push edx
push 0x100539c
push eax
call dword [ecx]
test eax, eax
jl 0x10181e9
mov eax, dword [edi + 0x40]
push dword [ebp - 0xc]
mov ecx, dword [eax]
push eax
call dword [ecx + 0xc]
cmp eax, ebx
jl 0x10181e0
mov ecx, dword [edi + 0x40]
mov edx, dword [ecx]
push 2
movsx eax, ax
push 2
push eax
push ecx
call dword [edx + 0x18]
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
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 + 8]
call dword [sym.imp.SHELL32.dll_ILFree]
pop esi
mov eax, dword [ebp - 0x10]
pop edi
pop ebx
leave
ret 4
mov ecx, edi
call fcn.01017fcf
cmp eax, 0xffffffff
je 0x1018205
mov ecx, dword [edi + 0x40]
mov edx, dword [ecx]
push eax
push ecx
call dword [edx + 0x1c]
jmp 0x101820e
Function at 0x1018248
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44c
push 0x208
lea eax, [ebp - 0x44c]
push eax
push dword [ebp + 8]
push dword [0x103d768]
call dword [sym.imp.USER32.dll_LoadStringW]
test eax, eax
je 0x10182bd
and dword [ebp - 0x3c], 0
push edi
push 0xe
pop ecx
xor eax, eax
lea edi, [ebp - 0x38]
rep stosd dword es:[edi], eax
push 0x3e
lea eax, [ebp - 0x44c]
push eax
call dword [sym.imp.SHLWAPI.dll_StrChrW]
test eax, eax
pop edi
je 0x1018299
and word [eax], 0
inc eax
inc eax
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x3c]
lea ecx, [ebp - 0x44c]
push eax
mov dword [ebp - 0x3c], 0x3c
mov dword [ebp - 0x20], 1
mov dword [ebp - 0x2c], ecx
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
leave
ret 4
Function at 0x1018b9c
Capabilities:
Query or enumerate registry value

Disassembly:
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 0x1003714
push 0x1002d80
push SysReAllocString
mov esi, ecx
mov dword [ebp - 8], 4
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
call fcn.010141d8
test eax, eax
je 0x1018be4
cmp dword [ebp - 4], 2
sbb eax, eax
neg eax
jmp 0x1018bfd
mov eax, dword [ebp - 4]
sub eax, 0
je 0x1018bfa
dec eax
jne 0x1018bf6
mov ecx, esi
call fcn.01014209
xor eax, eax
jmp 0x1018bfd
xor eax, eax
inc eax
pop esi
leave
ret

Function at 0x1018c00
Capabilities:
Set registry value

Disassembly:
push esi
mov esi, ecx
call fcn.01018b9c
test eax, eax
je 0x1018cac
push 0x40000042
call dword [sym.imp.SHELL32.dll_SHRestricted]
test eax, eax
jne 0x1018cac
call fcn.010141d8
test eax, eax
je 0x1018c87
push dword [esi + 4]
call dword [sym.imp.USER32.dll_SetForegroundWindow]
test eax, eax
je 0x1018cbe
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.01014209
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.0101425b
pop esi
ret
push 0
push 1
push 0x590
push dword [esi + 4]
call dword [sym.imp.USER32.dll_PostMessageW]
pop esi
ret
Function at 0x1018f22
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 0x1018f4e
push ebx
push ebx
push 0x438
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
lea edi, [esi + 0x3ac]
cmp dword [edi], ebx
je 0x1018f6f
mov ecx, esi
call fcn.01014209
push ebx
push dword [edi]
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, esi
call fcn.01014233
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
jge 0x1019001
mov dword [ebp - 4], edi
lea eax, [esi + 0x4b4]
cmp dword [eax], edi
lea ebx, [esi + 0x4ac]
je 0x1019013
mov ebx, eax
mov eax, dword [ebx]
cmp eax, edi
jne 0x1019026
mov ecx, esi
call fcn.01018e6a
mov eax, dword [ebx]
cmp eax, edi
je 0x101903b
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
jge 0x1019040
call fcn.0101572e
cmp dword [ebp - 4], 0x10
jne 0x101905a
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
Function at 0x1019d79
Capabilities:
Enumerate gui resources
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
push edi
push 0xcd
mov edi, ecx
call fcn.010281b1
mov ecx, eax
xor eax, eax
cmp ecx, eax
mov dword [ebp - 4], ecx
je 0x1019f9c
cmp dword [ebp + 8], eax
push ebx
mov ebx, dword [sym.imp.USER32.dll_EnableMenuItem]
push esi
je 0x1019de1
cmp dword [edi + 0x320], eax
je 0x1019dc3
push 0x400
push 1
push ecx
call dword [sym.imp.USER32.dll_DeleteMenu]
jmp 0x1019df6
cmp dword [edi + 0x2e8], eax
jne 0x1019dd3
cmp dword [edi + 0x2ec], eax
jne 0x1019dd6
push 3
pop eax
push eax
push 0x1a5
push ecx
call ebx
jmp 0x1019df6
push 2
pop esi
push 0x400
push esi
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_DeleteMenu]
dec esi
jns 0x1019de4
mov eax, dword [edi + 0x4fc]
neg eax
sbb eax, eax
and eax, 0xfffffff8
add eax, 8
push eax
mov esi, 0x1a8
push esi
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_CheckMenuItem]
lea eax, [ebp - 0x20]
push eax
push dword [edi + 4]
call dword [sym.imp.USER32.dll_GetClientRect]
call fcn.01014f79
test eax, eax
jne 0x1019e38
mov eax, dword [ebp - 0x14]
sub eax, dword [ebp - 0x1c]
je 0x1019e38
xor eax, eax
jmp 0x1019e3b
push 3
pop eax
push eax
push esi
push dword [ebp - 4]
call ebx
cmp dword [edi + 0x428], 0
mov esi, dword [sym.imp.USER32.dll_LoadStringW]
je 0x1019ebc
cmp dword [edi + 0x47c], 0
je 0x1019ebc
push 0x1e
lea eax, [ebp - 0x98]
push eax
push 0x216
push dword [0x103d768]
call esi
push 0x1e
lea eax, [ebp - 0x5c]
push eax
mov eax, dword [edi + 0x47c]
push dword [eax]
push dword [0x103d768]
call esi
lea eax, [ebp - 0x5c]
push eax
lea eax, [ebp - 0x98]
push eax
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea eax, [ebp - 0x118]
push eax
mov eax, 0x1a0
push eax
push 0
push eax
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_ModifyMenuW]
jmp 0x1019ecc
push 0
push 0x1a0
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_DeleteMenu]
cmp dword [0x103e45c], 0
je 0x1019f04
push 0x40
lea eax, [ebp - 0x118]
push eax
push 0x352
push dword [0x103d768]
call esi
lea eax, [ebp - 0x118]
push eax
mov eax, 0x197
push eax
push 0
push eax
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_ModifyMenuW]
push edi
push 0x1017915
call dword [sym.imp.USER32.dll_EnumWindows]
test eax, eax
je 0x1019f38
push 3
push 0x193
push dword [ebp - 4]
call ebx
push 3
push 0x194
push dword [ebp - 4]
call ebx
push 3
push 0x195
push dword [ebp - 4]
call ebx
lea eax, [ebp - 8]
push eax
push 0x20019
xor esi, esi
push esi
push 0x1003e38
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1019f97
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x10]
push eax
push esi
push 0x1003e18
push dword [ebp - 8]
mov dword [ebp + 8], esi
mov dword [ebp - 0xc], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp + 8], esi
je 0x1019f97
push 3
push 0x1a4
push dword [ebp - 4]
call ebx
mov eax, dword [ebp - 4]
pop esi
pop ebx
pop edi
leave
ret 4
Function at 0x101af56
Capabilities:
Create process on windows
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x244
push esi
mov esi, dword [sym.imp.KERNEL32.dll_lstrcmpiA]
push edi
push 0x1003f7c
push dword [ebp + 8]
mov edi, ecx
call esi
test eax, eax
jne 0x101af8c
cmp dword [0x103e45c], eax
push 1
sete al
mov ecx, edi
push eax
call fcn.0101a4be
jmp 0x101b00b
push 0x1003f70
push dword [ebp + 8]
call esi
test eax, eax
jne 0x101b00b
and dword [ebp - 0x3c], eax
push 0xe
pop ecx
lea edi, [ebp - 0x38]
rep stosd dword es:[edi], eax
push 0x104
lea eax, [ebp - 0x244]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
je 0x101b00b
lea eax, [ebp - 0x244]
push eax
call dword [sym.imp.SHLWAPI.dll_PathStripToRootW]
lea eax, [ebp - 0x244]
push eax
call dword [sym.imp.SHELL32.dll_ILCreateFromPathW]
test eax, eax
mov dword [ebp - 0x18], eax
je 0x101b00b
lea eax, [ebp - 0x3c]
push eax
mov dword [ebp - 0x3c], 0x3c
mov dword [ebp - 0x38], 4
mov dword [ebp - 0x20], 1
mov dword [ebp - 0x30], 0x1003f60
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
push dword [ebp - 0x18]
call dword [sym.imp.SHELL32.dll_ILFree]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop edi
pop esi
leave
ret 4

Function at 0x101be34
Capabilities:
Log keystrokes via polling
Query or enumerate registry value

Disassembly:
push ebp
xor ebp, ebp
cmp dword [0x103ebd8], ebp
push edi
mov edi, ecx
jne 0x101bf06
push ebx
push esi
push 2
pop ebx
push ebx
push dword [esp + 0x18]
call fcn.010281f5
test eax, eax
jne 0x101bf04
push 0xffffffffffffffff
push ebp
push 3
push 0x28
push 0x10054dc
call fcn.0100b765
push ebp
push ebp
push ebp
push 0x1004040
push 0x1002d80
push SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
je 0x101be97
push 0x10
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
jge 0x101be9e
mov ecx, edi
call fcn.0101b01a
mov ecx, edi
call fcn.01019286
push dword [esp + 0x14]
lea esi, [edi + 0x400]
mov dword [esi], ebx
call dword [sym.imp.SHELL32.dll_Ordinal_60]
mov dword [esi], ebp
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
push 0x10
call esi
test ax, ax
jge 0x101bf04
push 0x11
call esi
test ax, ax
jge 0x101bf04
push 0x12
call esi
test ax, ax
jge 0x101bf04
mov esi, dword [sym.imp.USER32.dll_PostMessageW]
xor ebx, ebx
inc ebx
push ebx
push ebp
push 0x12
push dword [0x103e450]
mov dword [0x103d790], ebx
call esi
push ebp
push ebp
push 0x12
push dword [edi + 4]
call esi
mov dword [0x103ebd8], ebx
pop esi
pop ebx
pop edi
pop ebp
ret 4