joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1022118e
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [section..data]
jne 0x10221198
repz ret
jmp fcn.10221582

Function at 0x1023d750
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov byte [ebp - 0x3d], bl
mov byte [ebp - 0x3c], 0x45
mov byte [ebp - 0x3b], 0x7a
mov byte [ebp - 0x3a], 0x61
mov byte [ebp - 0x39], 0x67
mov byte [ebp - 0x38], 0x66
mov byte [ebp - 0x37], 0x72
mov byte [ebp - 0x36], 0x7f
mov byte [ebp - 0x35], 0x52
mov byte [ebp - 0x34], 0x7f
mov byte [ebp - 0x33], 0x7f
mov byte [ebp - 0x32], 0x7c
mov byte [ebp - 0x31], 0x70
mov byte [ebp - 0x30], 0x13
call fcn.1023d44e
inc eax
rol al, 0x62
lea eax, [ebp - 0x40]
push eax
call fcn.1023d45e
push eax
push esi
push dword [ebp + 8]
call fcn.1023d413
add esp, 0x10
mov dword [ebp - 0x88], eax
invalid
popfd
cld
invalid
Function at 0x10242810
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push str.uxtheme.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 4]
mov dword [eax], ecx
cmp dword [ebp - 4], 0
je 0x1024297c
push 0x28
mov edx, dword [0x10351288]
mov eax, dword [edx + 0x14]
call eax
add esp, 4
mov dword [ebp - 8], eax
push str.OpenThemeData
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edx, dword [ebp - 8]
mov dword [edx], eax
mov eax, dword [ebp - 8]
cmp dword [eax], 0
je 0x1024296a
push str.CloseThemeData
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edx, dword [ebp - 8]
mov dword [edx + 4], eax
mov eax, dword [ebp - 8]
cmp dword [eax + 4], 0
je 0x1024296a
push str.GetThemePartSize
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edx, dword [ebp - 8]
mov dword [edx + 8], eax
mov eax, dword [ebp - 8]
cmp dword [eax + 8], 0
je 0x1024296a
push str.GetThemeSysSize
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edx, dword [ebp - 8]
mov dword [edx + 0xc], eax
mov eax, dword [ebp - 8]
cmp dword [eax + 0xc], 0
je 0x1024296a
push str.DrawThemeBackground
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edx, dword [ebp - 8]
mov dword [edx + 0x10], eax
mov eax, dword [ebp - 8]
cmp dword [eax + 0x10], 0
je 0x1024296a
push str.GetThemeTextExtent
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edx, dword [ebp - 8]
mov dword [edx + 0x18], eax
mov eax, dword [ebp - 8]
cmp dword [eax + 0x18], 0
je 0x1024296a
push str.DrawThemeText
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edx, dword [ebp - 8]
mov dword [edx + 0x14], eax
mov eax, dword [ebp - 8]
cmp dword [eax + 0x14], 0
je 0x1024296a
push str.IsThemeActive
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edx, dword [ebp - 8]
mov dword [edx + 0x1c], eax
mov eax, dword [ebp - 8]
cmp dword [eax + 0x1c], 0
je 0x1024296a
push str.IsAppThemed
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edx, dword [ebp - 8]
mov dword [edx + 0x20], eax
mov eax, dword [ebp - 8]
cmp dword [eax + 0x20], 0
je 0x1024296a
mov eax, dword [ebp - 8]
jmp 0x1024297e
mov ecx, dword [ebp - 8]
push ecx
mov edx, dword [0x10351288]
mov eax, dword [edx + 0x18]
call eax
add esp, 4
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x10243160
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xbc
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 0x18], eax
mov dword [ebp - 0xb0], 0x94
lea eax, [ebp - 0xb0]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
lea ecx, [ebp - 0xb4]
push ecx
call fcn.10242810
add esp, 4
mov dword [ebp - 0xb8], eax
cmp dword [ebp - 0xb8], 0
jne 0x102431b2
mov eax, 1
jmp 0x10243363
mov edx, dword [ebp - 0xb8]
mov eax, dword [ebp + 0xc]
mov dword [edx + 0x24], eax
push 0x10330370
mov ecx, dword [ebp + 8]
push ecx
call fcn.1022a240
add esp, 8
mov dword [ebp - 0xc], eax
mov edx, dword [ebp - 0xc]
push edx
push 0x1033037c
mov eax, dword [ebp + 8]
push eax
call fcn.1022a990
add esp, 0xc
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x102431fa
mov eax, 1
jmp 0x10243363
push 8
mov ecx, dword [0x10351288]
mov edx, dword [ecx + 0x14]
call edx
add esp, 4
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xb8]
mov dword [eax + 4], ecx
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0xb4]
mov dword [edx], eax
mov ecx, dword [ebp - 0x10]
push ecx
push 0x10242790
mov edx, dword [ebp - 4]
push edx
call fcn.102298b0
add esp, 0xc
push 0x102427e0
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.1022a2b0
add esp, 0xc
mov edx, dword [ebp - 0x10]
push edx
push 0x102429d0
push str.vsapi
mov eax, dword [ebp + 8]
push eax
call fcn.1022a050
add esp, 0x10
cmp dword [ebp - 0xa0], 2
jne 0x102432ad
cmp dword [ebp - 0xac], 5
jbe 0x102432ad
mov ecx, dword [ebp - 4]
push ecx
push str.vista
mov edx, dword [ebp + 8]
push edx
call fcn.1022a990
add esp, 0xc
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x102432ad
mov eax, dword [ebp - 0x10]
push eax
push 0x10242790
mov ecx, dword [ebp - 0x14]
push ecx
call fcn.102298b0
add esp, 0xc
mov dword [ebp - 8], 0x1032fcb0
jmp 0x102432bf
mov edx, dword [ebp - 8]
add edx, 0x20
mov dword [ebp - 8], edx
mov eax, dword [ebp - 8]
cmp dword [eax], 0
je 0x1024331a
mov ecx, dword [ebp - 8]
push ecx
mov edx, dword [ebp - 0xb8]
push edx
call fcn.102426f0
add esp, 8
mov dword [ebp - 0xbc], eax
mov eax, dword [ebp - 0xbc]
push eax
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 4]
push edx
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
push ecx
mov edx, dword [ebp - 4]
push edx
call fcn.1022a760
add esp, 0x10
push 0x10242660
mov eax, dword [ebp - 0xbc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.1022a2b0
add esp, 0xc
jmp 0x102432b6
push 0
push 0x1032b220
push str.Scale.trough
mov edx, dword [ebp - 4]
push edx
call fcn.1022a760
add esp, 0x10
push 0x1032f560
mov eax, dword [ebp - 4]
push eax
call fcn.10235130
add esp, 8
push 0
push 0x103303a8
push str.ttk::theme::xpnative
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [0x10351288]
mov eax, dword [edx + 8]
call eax
add esp, 0x10
xor eax, eax
mov ecx, dword [ebp - 0x18]
xor ecx, ebp
call fcn.1022118e
mov esp, ebp
pop ebp
ret
Function at 0x102e9bf0
Capabilities:
Check os version
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18c
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x10351138], 0
jne 0x102e9dac
mov dword [ebp - 0xa0], 0x94
lea eax, [ebp - 0xa0]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov ecx, dword [ebp - 0x90]
mov dword [0x10351138], ecx
cmp dword [ebp - 0x90], 2
jne 0x102e9da2
cmp dword [ebp - 0x9c], 5
jne 0x102e9da2
cmp dword [ebp - 0x98], 1
jne 0x102e9da2
mov dword [ebp - 0x174], str.Control_PanelAppearance
mov dword [ebp - 0x178], str.Current
mov dword [ebp - 0x16c], 0xc8
mov edx, dword [ebp - 0x16c]
push edx
push 0
lea eax, [ebp - 0x168]
push eax
call sub.MSVCR90.dll_memset
add esp, 0xc
lea ecx, [ebp - 0x170]
push ecx
push 0x20019
push 0
mov edx, dword [ebp - 0x174]
push edx
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x102e9cc3
mov dword [0x1035113c], 2
jmp 0x102e9da0
lea eax, [ebp - 0x16c]
push eax
lea ecx, [ebp - 0x168]
push ecx
push 0
push 0
mov edx, dword [ebp - 0x178]
push edx
mov eax, dword [ebp - 0x170]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ecx, dword [ebp - 0x170]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x17c], str.Windows_Standard
lea edx, [ebp - 0x168]
mov dword [ebp - 0x180], edx
mov eax, dword [ebp - 0x180]
mov cl, byte [eax]
mov byte [ebp - 0x181], cl
mov edx, dword [ebp - 0x17c]
cmp cl, byte [edx]
jne 0x102e9d6a
cmp byte [ebp - 0x181], 0
je 0x102e9d5e
mov eax, dword [ebp - 0x180]
mov cl, byte [eax + 1]
mov byte [ebp - 0x182], cl
mov edx, dword [ebp - 0x17c]
cmp cl, byte [edx + 1]
jne 0x102e9d6a
add dword [ebp - 0x180], 2
add dword [ebp - 0x17c], 2
cmp byte [ebp - 0x182], 0
jne 0x102e9d0c
mov dword [ebp - 0x188], 0
jmp 0x102e9d75
sbb eax, eax
sbb eax, 0xffffffff
mov dword [ebp - 0x188], eax
mov ecx, dword [ebp - 0x188]
mov dword [ebp - 0x18c], ecx
cmp dword [ebp - 0x18c], 0
jne 0x102e9d96
mov dword [0x1035113c], 1
jmp 0x102e9da0
mov dword [0x1035113c], 2
jmp 0x102e9dac
mov dword [0x1035113c], 1
mov eax, dword [0x10351138]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1022118e
mov esp, ebp
pop ebp
ret
Function at 0x102eb880
Capabilities:
Get geographical location
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
cmp dword [0x10350d70], 0
je 0x102eb894
jmp 0x102eb9c6
mov dword [0x10350d70], 1
mov dword [ebp - 8], 8
mov dword [ebp - 4], 0xff
lea eax, [ebp - 8]
push eax
call dword [sym.imp.COMCTL32.dll_InitCommonControlsEx]
test eax, eax
jne 0x102eb8cd
push str.Unable_to_load_common_controls__
mov ecx, dword [0x10351288]
mov edx, dword [ecx + 0x10]
call edx
add esp, 4
call sym.tk85.dll_TkWinGetPlatformId
cmp eax, 2
jne 0x102eb8e3
mov dword [sym.tk85.dll_tkWinProcs], 0x1034d4d8
jmp 0x102eb8ed
mov dword [sym.tk85.dll_tkWinProcs], 0x1034d4b8
mov dword [0x10350d48], 3
mov dword [0x10350d50], 0
mov dword [0x10350d54], 0
mov eax, dword [ebp + 8]
mov dword [0x10350d58], eax
mov dword [0x10350d64], 0
mov dword [0x10350d68], 0
mov dword [0x10350d6c], 0x1034d540
mov dword [0x10350d4c], 0x102eb680
mov dword [0x10350d5c], 0
mov dword [0x10350d60], 0
push 0x10350d48
call dword [sym.imp.USER32.dll_RegisterClassA]
movzx ecx, ax
test ecx, ecx
jne 0x102eb974
push str.Unable_to_register_TkChild_class
mov edx, dword [0x10351288]
mov eax, dword [edx + 0x10]
call eax
add esp, 4
push 4
lea ecx, [ebp - 0x2c]
push ecx
push 0x20001004
push 0
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
movzx edx, ax
push edx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
je 0x102eb9b5
push 2
lea eax, [ebp - 0x28]
push eax
mov ecx, dword [ebp - 0x2c]
push ecx
call dword [sym.imp.GDI32.dll_TranslateCharsetInfo]
test eax, eax
je 0x102eb9b5
mov edx, dword [ebp - 0x28]
push edx
call fcn.102e9a30
add esp, 4
mov eax, dword [ebp + 8]
push eax
push sym.tk85.dll_TkWinXCleanup
call fcn.102b0630
add esp, 8
mov esp, ebp
pop ebp
ret
Function at 0x102eb9d0
Capabilities:
Open clipboard

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
cmp dword [eax + 0x510], 0
je 0x102ebab1
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x510]
mov eax, dword [edx + 0x14]
push eax
call sym.tk85.dll_Tk_GetHWND
add esp, 4
mov dword [ebp - 4], eax
call dword [sym.imp.USER32.dll_GetClipboardOwner]
cmp eax, dword [ebp - 4]
jne 0x102eba2b
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.USER32.dll_OpenClipboard]
call dword [sym.imp.USER32.dll_EmptyClipboard]
push 1
mov edx, dword [ebp + 8]
push edx
call sym.tk85.dll_TkWinClipboardRender
add esp, 8
call dword [sym.imp.USER32.dll_CloseClipboard]
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x500]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x508]
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x510]
push edx
call sym.tk85.dll_Tk_DeleteSelHandler
add esp, 0xc
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x504]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x508]
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x510]
push edx
call sym.tk85.dll_Tk_DeleteSelHandler
add esp, 0xc
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x510]
push ecx
call sym.tk85.dll_Tk_DestroyWindow
add esp, 4
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x510]
push eax
mov ecx, dword [0x10351288]
mov edx, dword [ecx + 0x368]
call edx
add esp, 4
mov eax, dword [ebp + 8]
mov dword [eax + 0x510], 0
mov esp, ebp
pop ebp
ret
Function at 0x102eea10
Capabilities:
Enumerate gui resources

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
push 1
lea eax, [ebp - 0x4c]
push eax
mov ecx, dword [0x10351288]
mov edx, dword [ecx + 0x2dc]
call edx
add esp, 8
lea eax, [ebp - 0x4c]
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.102ebfa0
add esp, 0xc
mov ecx, dword [ebp - 0x34]
lea edx, [ecx*4 + 4]
push edx
mov eax, dword [0x10351288]
mov ecx, dword [eax + 0x14]
call ecx
add esp, 4
mov dword [ebp - 0x50], eax
mov edx, dword [ebp - 0x34]
mov dword [ebp - 0x58], edx
cmp dword [ebp - 0x58], 0
je 0x102eea72
cmp dword [ebp - 0x58], 1
je 0x102eea80
jmp 0x102eeab2
mov eax, dword [ebp - 0x50]
mov dword [eax], 0
jmp 0x102eeb22
lea ecx, [ebp - 0x14]
push ecx
lea edx, [ebp - 0x4c]
push edx
mov eax, dword [0x10351288]
mov ecx, dword [eax + 0x24c]
call ecx
add esp, 8
mov dword [ebp - 0x54], eax
mov edx, dword [ebp - 0x50]
mov eax, dword [ebp - 0x54]
mov ecx, dword [eax + 0xc]
mov dword [edx], ecx
mov edx, dword [ebp - 0x50]
mov dword [edx + 4], 0
jmp 0x102eeb22
lea eax, [ebp - 0x4c]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 0x34]
mov edx, dword [ebp - 0x50]
lea eax, [edx + ecx*4]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
mov dword [ecx], 0
mov edx, dword [ebp - 4]
sub edx, 4
mov dword [ebp - 4], edx
lea eax, [ebp - 8]
push eax
push 0x102ec050
call dword [sym.imp.USER32.dll_EnumWindows]
test eax, eax
jne 0x102eeb04
mov ecx, dword [ebp - 0x50]
push ecx
mov edx, dword [0x10351288]
mov eax, dword [edx + 0x18]
call eax
add esp, 4
mov dword [ebp - 0x50], 0
jmp 0x102eeb22
mov ecx, dword [ebp - 0x50]
sub ecx, 4
cmp dword [ebp - 4], ecx
je 0x102eeb22
push str.num_matched_toplevel_windows_does_not_equal_num_children
mov edx, dword [0x10351288]
mov eax, dword [edx + 0x10]
call eax
add esp, 4
lea ecx, [ebp - 0x4c]
push ecx
mov edx, dword [0x10351288]
mov eax, dword [edx + 0x1bc]
call eax
add esp, 4
mov eax, dword [ebp - 0x50]
mov esp, ebp
pop ebp
ret
Function at 0x102f6ff0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x68
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 8]
mov dword [ebp - 4], ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x5c]
add eax, 1
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x5c], eax
push 0
mov edx, dword [ebp + 0xc]
push edx
call sym.tk85.dll_Tk_GetHWND
add esp, 4
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x98]
and ecx, 0xfffffffe
mov edx, dword [ebp - 4]
mov dword [edx + 0x98], ecx
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x98]
and ecx, 0x10000
je 0x102f7095
mov dword [ebp - 0x68], 0x12
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x5c]
mov dword [ebp - 0x64], eax
mov dword [ebp - 0x60], 0
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x5c], ecx
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x14]
mov dword [ebp - 0x58], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x14]
mov dword [ebp - 0x54], edx
mov dword [ebp - 0x50], 0
lea eax, [ebp - 0x68]
push eax
call sym.tk85.dll_Tk_HandleEvent
add esp, 4
xor eax, eax
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.1022118e
mov esp, ebp
pop ebp
ret

Function at 0x102f8ab0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], 0
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
cwde
and eax, 0x8000
je 0x102f8ad4
mov ecx, dword [ebp - 4]
or ecx, 1
mov dword [ebp - 4], ecx
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
movsx edx, ax
and edx, 0x8000
je 0x102f8af0
mov eax, dword [ebp - 4]
or eax, 4
mov dword [ebp - 4], eax
push 0x12
call dword [sym.imp.USER32.dll_GetKeyState]
movsx ecx, ax
and ecx, 0x8000
je 0x102f8b0f
mov edx, dword [ebp - 4]
or edx, 0x20000
mov dword [ebp - 4], edx
push 0x14
call dword [sym.imp.USER32.dll_GetKeyState]
cwde
and eax, 1
je 0x102f8b26
mov ecx, dword [ebp - 4]
or ecx, 2
mov dword [ebp - 4], ecx
push 0x90
call dword [sym.imp.USER32.dll_GetKeyState]
movsx edx, ax
and edx, 1
je 0x102f8b42
mov eax, dword [ebp - 4]
or eax, 8
mov dword [ebp - 4], eax
push 0x91
call dword [sym.imp.USER32.dll_GetKeyState]
movsx ecx, ax
and ecx, 1
je 0x102f8b5e
mov edx, dword [ebp - 4]
or edx, 0x20
mov dword [ebp - 4], edx
push 1
call dword [sym.imp.USER32.dll_GetKeyState]
cwde
and eax, 0x8000
je 0x102f8b7a
mov ecx, dword [ebp - 4]
or ecx, 0x100
mov dword [ebp - 4], ecx
push 4
call dword [sym.imp.USER32.dll_GetKeyState]
movsx edx, ax
and edx, 0x8000
je 0x102f8b98
mov eax, dword [ebp - 4]
or eax, 0x200
mov dword [ebp - 4], eax
push 2
call dword [sym.imp.USER32.dll_GetKeyState]
movsx ecx, ax
and ecx, 0x8000
je 0x102f8bb7
mov edx, dword [ebp - 4]
or edx, 0x400
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x102fdb90
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
cmp dword [ebp + 0xc], 0
jne 0x102fdba0
xor eax, eax
jmp 0x102fdbfc
mov dword [ebp - 4], 0
jmp 0x102fdbb2
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0x91
jg 0x102fdbd1
mov ecx, dword [ebp - 4]
mov edx, dword [ecx*4 + 0x1034efa8]
cmp edx, dword [ebp + 0xc]
jne 0x102fdbcf
mov eax, dword [ebp - 4]
jmp 0x102fdbfc
jmp 0x102fdba9
cmp dword [ebp + 0xc], 0x20
jb 0x102fdbfa
movzx eax, byte [ebp + 0xc]
push eax
call dword [sym.imp.USER32.dll_VkKeyScanA]
mov word [ebp - 8], ax
movsx ecx, word [ebp - 8]
cmp ecx, 0xffffffff
je 0x102fdbfa
movsx eax, word [ebp - 8]
and eax, 0xff
jmp 0x102fdbfc
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x102fdc00
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 0x10]
mov dword [eax + 0x34], 0
cmp dword [ebp + 0xc], 0
jne 0x102fdc1b
jmp 0x102fdcce
mov dword [ebp - 4], 0
jmp 0x102fdc2d
mov ecx, dword [ebp - 4]
add ecx, 1
mov dword [ebp - 4], ecx
cmp dword [ebp - 4], 0x91
jg 0x102fdc52
mov edx, dword [ebp - 4]
mov eax, dword [edx*4 + 0x1034efa8]
cmp eax, dword [ebp + 0xc]
jne 0x102fdc50
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp - 4]
mov dword [ecx + 0x34], edx
jmp 0x102fdcce
jmp 0x102fdc24
cmp dword [ebp + 0xc], 0x20
jb 0x102fdcce
movzx eax, byte [ebp + 0xc]
push eax
call dword [sym.imp.USER32.dll_VkKeyScanA]
mov word [ebp - 8], ax
movsx ecx, word [ebp - 8]
cmp ecx, 0xffffffff
je 0x102fdcce
movsx edx, word [ebp - 8]
sar edx, 8
mov dword [ebp - 0xc], edx
mov eax, dword [ebp - 0xc]
and eax, 1
je 0x102fdc91
mov ecx, dword [ebp + 0x10]
mov edx, dword [ecx + 0x30]
or edx, 1
mov eax, dword [ebp + 0x10]
mov dword [eax + 0x30], edx
mov ecx, dword [ebp - 0xc]
and ecx, 2
je 0x102fdca8
mov edx, dword [ebp + 0x10]
mov eax, dword [edx + 0x30]
or eax, 4
mov ecx, dword [ebp + 0x10]
mov dword [ecx + 0x30], eax
mov edx, dword [ebp - 0xc]
and edx, 4
je 0x102fdcbf
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax + 0x30]
or ecx, 0x10
mov edx, dword [ebp + 0x10]
mov dword [edx + 0x30], ecx
movsx eax, word [ebp - 8]
and eax, 0xff
mov ecx, dword [ebp + 0x10]
mov dword [ecx + 0x34], eax
mov esp, ebp
pop ebp
ret
Function at 0x10308950
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
push 1
call sym.tk85.dll_TkWinUpdatingClipboard
add esp, 4
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.USER32.dll_OpenClipboard]
call dword [sym.imp.USER32.dll_EmptyClipboard]
call sym.tk85.dll_TkWinGetPlatformId
cmp eax, 2
jne 0x10308983
push 0
push 0xd
call dword [sym.imp.USER32.dll_SetClipboardData]
jmp 0x1030898d
push 0
push 1
call dword [sym.imp.USER32.dll_SetClipboardData]
call dword [sym.imp.USER32.dll_CloseClipboard]
push 0
call sym.tk85.dll_TkWinUpdatingClipboard
add esp, 4
pop ebp
ret
Function at 0x10309210
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
call sym.tk85.dll_Tk_GetHINSTANCE
mov dword [ebp - 0x10], eax
push 0x14
push 0x103507dc
mov eax, dword [0x10351288]
mov ecx, dword [eax + 0x4cc]
call ecx
add esp, 8
mov dword [ebp - 0x18], eax
push 2
push str.buttons
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x10309266
push str.FindResource___failed_for_buttons_bitmap_resource__resources_in_tk_base.rc_must_be_linked_into_Tk_dll_or_static_executable
mov eax, dword [0x10351288]
mov ecx, dword [eax + 0x10]
call ecx
add esp, 4
jmp 0x10309286
mov edx, dword [ebp - 8]
push edx
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edx, dword [ebp - 0x18]
mov dword [edx], eax
mov eax, dword [ebp - 0x18]
cmp dword [eax], 0
je 0x1030937e
mov ecx, dword [ebp - 0x18]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
and eax, 0x80000003
jns 0x103092a6
dec eax
or eax, 0xfffffffc
inc eax
test eax, eax
jne 0x1030937e
mov ecx, dword [ebp - 0x18]
mov edx, dword [ecx]
mov eax, dword [edx + 8]
and eax, 0x80000001
jns 0x103092c2
dec eax
or eax, 0xfffffffe
inc eax
test eax, eax
jne 0x1030937e
mov ecx, dword [ebp - 0x18]
mov edx, dword [ecx]
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax]
movzx ecx, word [ecx + 0xe]
mov eax, 1
shl eax, cl
mov ecx, dword [edx]
lea edx, [ecx + eax*4]
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax]
add edx, dword [ecx + 0x14]
mov dword [ebp - 0xc], edx
mov edx, dword [ebp - 0xc]
push edx
mov eax, dword [0x10351288]
mov ecx, dword [eax + 0x14]
call ecx
add esp, 4
mov dword [ebp - 0x14], eax
mov edx, dword [ebp - 0xc]
push edx
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax]
push ecx
mov edx, dword [ebp - 0x14]
push edx
call sub.MSVCR90.dll_memcpy
add esp, 0xc
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x14]
mov dword [eax], ecx
mov edx, dword [ebp - 0x18]
mov eax, dword [edx]
mov eax, dword [eax + 4]
cdq
and edx, 3
add eax, edx
sar eax, 2
mov ecx, dword [ebp - 0x18]
mov dword [ecx + 0x10], eax
mov edx, dword [ebp - 0x18]
mov eax, dword [edx]
mov eax, dword [eax + 8]
cdq
sub eax, edx
sar eax, 1
mov ecx, dword [ebp - 0x18]
mov dword [ecx + 0xc], eax
mov edx, dword [ebp - 0x18]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x18]
mov edx, dword [ecx]
add edx, dword [eax]
mov eax, dword [ebp - 0x18]
mov dword [eax + 4], edx
mov ecx, dword [ebp - 0x18]
mov edx, dword [ecx]
movzx ecx, word [edx + 0xe]
mov eax, 1
shl eax, cl
mov ecx, dword [ebp - 0x18]
mov edx, dword [ecx + 4]
lea eax, [edx + eax*4]
mov ecx, dword [ebp - 0x18]
mov dword [ecx + 8], eax
jmp 0x10309387
mov edx, dword [ebp - 0x18]
mov dword [edx], 0
mov esp, ebp
pop ebp
ret