joyce8/EMBER2024-capa huggingface dataset:
Function at 0x538df0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push ebp
mov ebp, edx
push esi
push edi
mov esi, ebp
xor edi, edi
and esi, 3
mov eax, ecx
jle 0x538e11
mov dl, byte [eax]
inc eax
cmp dl, bl
je 0x538e6b
inc edi
cmp edi, esi
jl 0x538e05
mov edi, ebx
and edi, 0xff
mov esi, edi
shl esi, 8
or esi, edi
shl esi, 8
or esi, edi
shl esi, 8
or esi, edi
lea edi, [ecx + ebp]
cmp eax, edi
jae 0x538ea0
mov edx, dword [eax]
xor edx, esi
lea ebp, [edx - 0x1010101]
not edx
and ebp, edx
test ebp, 0x80808080
je 0x538e5a
cmp byte [eax], bl
je 0x538e75
cmp byte [eax + 1], bl
je 0x538e7e
cmp byte [eax + 2], bl
je 0x538e88
cmp byte [eax + 3], bl
je 0x538e94
add eax, 4
cmp eax, edi
jb 0x538e31
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
ret 4
pop edi
sub eax, ecx
pop esi
pop ebp
dec eax
pop ebx
ret 4
pop edi
pop esi
pop ebp
sub eax, ecx
pop ebx
ret 4
pop edi
sub eax, ecx
pop esi
pop ebp
inc eax
pop ebx
ret 4
pop edi
sub eax, ecx
pop esi
pop ebp
add eax, 2
pop ebx
ret 4
pop edi
sub eax, ecx
pop esi
pop ebp
add eax, 3
pop ebx
ret 4
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
ret 4
Function at 0x1022118e
Capabilities:
Terminate process

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

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 [0x103513c8]
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 [0x103513c8]
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, 0x13c
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x130], 0x114
lea eax, [ebp - 0x130]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
lea ecx, [ebp - 0x134]
push ecx
call fcn.10242810
add esp, 4
mov dword [ebp - 0x138], eax
cmp dword [ebp - 0x138], 0
jne 0x102431b2
mov eax, 1
jmp 0x10243363
mov edx, dword [ebp - 0x138]
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 [0x103513c8]
mov edx, dword [ecx + 0x14]
call edx
add esp, 4
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x138]
mov dword [eax + 4], ecx
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x134]
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 - 0x120], 2
jne 0x102432ad
cmp dword [ebp - 0x12c], 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 - 0x138]
push edx
call fcn.102426f0
add esp, 8
mov dword [ebp - 0x13c], eax
mov eax, dword [ebp - 0x13c]
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 - 0x13c]
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 [0x103513c8]
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 0x10244a10
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x78
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x78], 0
mov eax, dword [str.TtkMonitorWindow]
mov dword [ebp - 0x24], eax
mov ecx, dword [0x10330d64]
mov dword [ebp - 0x20], ecx
mov edx, dword [0x10330d68]
mov dword [ebp - 0x1c], edx
mov eax, dword [0x10330d6c]
mov dword [ebp - 0x18], eax
mov cl, byte [0x10330d70]
mov byte [ebp - 0x14], cl
xor edx, edx
mov dword [ebp - 0x13], edx
mov dword [ebp - 0xf], edx
mov dword [ebp - 0xb], edx
mov word [ebp - 7], dx
mov byte [ebp - 5], dl
mov eax, dword [str.TtkMonitorClass]
mov dword [ebp - 0x44], eax
mov ecx, dword [0x10330d78]
mov dword [ebp - 0x40], ecx
mov edx, dword [0x10330d7c]
mov dword [ebp - 0x3c], edx
mov eax, dword [0x10330d80]
mov dword [ebp - 0x38], eax
xor ecx, ecx
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x74], 0x30
mov dword [ebp - 0x70], 3
mov dword [ebp - 0x6c], 0x10244980
mov dword [ebp - 0x68], 0
mov dword [ebp - 0x64], 0
mov edx, dword [ebp + 8]
mov dword [ebp - 0x60], edx
push 0x7f00
push 0
call dword [sym.imp.USER32.dll_LoadIconA]
mov dword [ebp - 0x5c], eax
push 0x7f00
push 0
call dword [sym.imp.USER32.dll_LoadIconA]
mov dword [ebp - 0x48], eax
push 0x7f00
push 0
call dword [sym.imp.USER32.dll_LoadCursorA]
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x54], 5
lea eax, [ebp - 0x44]
mov dword [ebp - 0x50], eax
lea ecx, [ebp - 0x44]
mov dword [ebp - 0x4c], ecx
lea edx, [ebp - 0x74]
push edx
call dword [sym.imp.USER32.dll_RegisterClassExA]
movzx eax, ax
test eax, eax
je 0x10244b6d
push 0
mov ecx, dword [ebp + 8]
push ecx
push 0
push 0
push SysReAllocString
push SysReAllocString
push SysReAllocString
push SysReAllocString
push 0xcf0000
lea edx, [ebp - 0x24]
push edx
lea eax, [ebp - 0x44]
push eax
push 0
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov dword [ebp - 0x78], eax
mov ecx, dword [ebp + 0xc]
push ecx
push 0xffffffffffffffeb
mov edx, dword [ebp - 0x78]
push edx
call dword [sym.imp.USER32.dll_SetWindowLongA]
push 0
mov eax, dword [ebp - 0x78]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, dword [ebp - 0x78]
push ecx
call dword [sym.imp.USER32.dll_UpdateWindow]
mov eax, dword [ebp - 0x78]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1022118e
mov esp, ebp
pop ebp
ret
Function at 0x102ea830
Capabilities:
Check os version
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x10351278], 0
jne 0x102ea9ec
mov dword [ebp - 0x120], 0x114
lea eax, [ebp - 0x120]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
mov ecx, dword [ebp - 0x110]
mov dword [0x10351278], ecx
cmp dword [ebp - 0x110], 2
jne 0x102ea9e2
cmp dword [ebp - 0x11c], 5
jne 0x102ea9e2
cmp dword [ebp - 0x118], 1
jne 0x102ea9e2
mov dword [ebp - 0x1f4], str.Control_PanelAppearance
mov dword [ebp - 0x1f8], str.Current
mov dword [ebp - 0x1ec], 0xc8
mov edx, dword [ebp - 0x1ec]
push edx
push 0
lea eax, [ebp - 0x1e8]
push eax
call sub.MSVCR90.dll_memset
add esp, 0xc
lea ecx, [ebp - 0x1f0]
push ecx
push 0x20019
push 0
mov edx, dword [ebp - 0x1f4]
push edx
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x102ea903
mov dword [0x1035127c], 2
jmp 0x102ea9e0
lea eax, [ebp - 0x1ec]
push eax
lea ecx, [ebp - 0x1e8]
push ecx
push 0
push 0
mov edx, dword [ebp - 0x1f8]
push edx
mov eax, dword [ebp - 0x1f0]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ecx, dword [ebp - 0x1f0]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x1fc], str.Windows_Standard
lea edx, [ebp - 0x1e8]
mov dword [ebp - 0x200], edx
mov eax, dword [ebp - 0x200]
mov cl, byte [eax]
mov byte [ebp - 0x201], cl
mov edx, dword [ebp - 0x1fc]
cmp cl, byte [edx]
jne 0x102ea9aa
cmp byte [ebp - 0x201], 0
je 0x102ea99e
mov eax, dword [ebp - 0x200]
mov cl, byte [eax + 1]
mov byte [ebp - 0x202], cl
mov edx, dword [ebp - 0x1fc]
cmp cl, byte [edx + 1]
jne 0x102ea9aa
add dword [ebp - 0x200], 2
add dword [ebp - 0x1fc], 2
cmp byte [ebp - 0x202], 0
jne 0x102ea94c
mov dword [ebp - 0x208], 0
jmp 0x102ea9b5
sbb eax, eax
sbb eax, 0xffffffff
mov dword [ebp - 0x208], eax
mov ecx, dword [ebp - 0x208]
mov dword [ebp - 0x20c], ecx
cmp dword [ebp - 0x20c], 0
jne 0x102ea9d6
mov dword [0x1035127c], 1
jmp 0x102ea9e0
mov dword [0x1035127c], 2
jmp 0x102ea9ec
mov dword [0x1035127c], 1
mov eax, dword [0x10351278]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1022118e
mov esp, ebp
pop ebp
ret
Function at 0x102ec520
Capabilities:
Get geographical location
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
cmp dword [0x10350eb0], 0
je 0x102ec534
jmp 0x102ec666
mov dword [0x10350eb0], 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 0x102ec56d
push str.Unable_to_load_common_controls__
mov ecx, dword [0x103513c8]
mov edx, dword [ecx + 0x10]
call edx
add esp, 4
call sym.tk85.dll_TkWinGetPlatformId
cmp eax, 2
jne 0x102ec583
mov dword [sym.tk85.dll_tkWinProcs], 0x1034d5e0
jmp 0x102ec58d
mov dword [sym.tk85.dll_tkWinProcs], 0x1034d5c0
mov dword [0x10350e68], 3
mov dword [0x10350e70], 0
mov dword [0x10350e74], 0
mov eax, dword [ebp + 8]
mov dword [0x10350e78], eax
mov dword [0x10350e84], 0
mov dword [0x10350e88], 0
mov dword [0x10350e8c], 0x1034d664
mov dword [0x10350e6c], 0x102ec320
mov dword [0x10350e7c], 0
mov dword [0x10350e80], 0
push 0x10350e68
call dword [sym.imp.USER32.dll_RegisterClassA]
movzx ecx, ax
test ecx, ecx
jne 0x102ec614
push str.Unable_to_register_TkChild_class
mov edx, dword [0x103513c8]
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 0x102ec655
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 0x102ec655
mov edx, dword [ebp - 0x28]
push edx
call fcn.102ea670
add esp, 4
mov eax, dword [ebp + 8]
push eax
push sym.tk85.dll_TkWinXCleanup
call fcn.102b1140
add esp, 8
mov esp, ebp
pop ebp
ret
Function at 0x102ec670
Capabilities:
Open clipboard

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
cmp dword [eax + 0x510], 0
je 0x102ec751
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 0x102ec6cb
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 [0x103513c8]
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 0x102ef6b0
Capabilities:
Enumerate gui resources

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
push 1
lea eax, [ebp - 0x4c]
push eax
mov ecx, dword [0x103513c8]
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.102ecc40
add esp, 0xc
mov ecx, dword [ebp - 0x34]
lea edx, [ecx*4 + 4]
push edx
mov eax, dword [0x103513c8]
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 0x102ef712
cmp dword [ebp - 0x58], 1
je 0x102ef720
jmp 0x102ef752
mov eax, dword [ebp - 0x50]
mov dword [eax], 0
jmp 0x102ef7c2
lea ecx, [ebp - 0x14]
push ecx
lea edx, [ebp - 0x4c]
push edx
mov eax, dword [0x103513c8]
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 0x102ef7c2
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 0x102eccf0
call dword [sym.imp.USER32.dll_EnumWindows]
test eax, eax
jne 0x102ef7a4
mov ecx, dword [ebp - 0x50]
push ecx
mov edx, dword [0x103513c8]
mov eax, dword [edx + 0x18]
call eax
add esp, 4
mov dword [ebp - 0x50], 0
jmp 0x102ef7c2
mov ecx, dword [ebp - 0x50]
sub ecx, 4
cmp dword [ebp - 4], ecx
je 0x102ef7c2
push str.num_matched_toplevel_windows_does_not_equal_num_children
mov edx, dword [0x103513c8]
mov eax, dword [edx + 0x10]
call eax
add esp, 4
lea ecx, [ebp - 0x4c]
push ecx
mov edx, dword [0x103513c8]
mov eax, dword [edx + 0x1bc]
call eax
add esp, 4
mov eax, dword [ebp - 0x50]
mov esp, ebp
pop ebp
ret
Function at 0x102f7c90
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 0x102f7d35
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 0x102f9750
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 0x102f9774
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 0x102f9790
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 0x102f97af
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 0x102f97c6
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 0x102f97e2
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 0x102f97fe
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 0x102f981a
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 0x102f9838
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 0x102f9857
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 0x102fe830
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
cmp dword [ebp + 0xc], 0
jne 0x102fe840
xor eax, eax
jmp 0x102fe89c
mov dword [ebp - 4], 0
jmp 0x102fe852
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0x91
jg 0x102fe871
mov ecx, dword [ebp - 4]
mov edx, dword [ecx*4 + 0x1034f0c8]
cmp edx, dword [ebp + 0xc]
jne 0x102fe86f
mov eax, dword [ebp - 4]
jmp 0x102fe89c
jmp 0x102fe849
cmp dword [ebp + 0xc], 0x20
jb 0x102fe89a
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 0x102fe89a
movsx eax, word [ebp - 8]
and eax, 0xff
jmp 0x102fe89c
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x102fe8a0
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 0x102fe8bb
jmp 0x102fe96e
mov dword [ebp - 4], 0
jmp 0x102fe8cd
mov ecx, dword [ebp - 4]
add ecx, 1
mov dword [ebp - 4], ecx
cmp dword [ebp - 4], 0x91
jg 0x102fe8f2
mov edx, dword [ebp - 4]
mov eax, dword [edx*4 + 0x1034f0c8]
cmp eax, dword [ebp + 0xc]
jne 0x102fe8f0
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp - 4]
mov dword [ecx + 0x34], edx
jmp 0x102fe96e
jmp 0x102fe8c4
cmp dword [ebp + 0xc], 0x20
jb 0x102fe96e
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 0x102fe96e
movsx edx, word [ebp - 8]
sar edx, 8
mov dword [ebp - 0xc], edx
mov eax, dword [ebp - 0xc]
and eax, 1
je 0x102fe931
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 0x102fe948
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 0x102fe95f
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 0x103095f0
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 0x10309623
push 0
push 0xd
call dword [sym.imp.USER32.dll_SetClipboardData]
jmp 0x1030962d
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