joyce8/EMBER2024-capa huggingface dataset:
Function at 0x300436b7
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x410
mov eax, dword [0x30002788]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x408], esi
mov dword [ebp - 0x410], eax
call fcn.3005c0cf
test eax, eax
pop ecx
je 0x30043719
push 0x134
push esi
push 0xc0001
call fcn.30006a9e
add esp, 0xc
cmp eax, 7
jne 0x30043709
xor esi, esi
jmp 0x3004371c
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov esi, eax
neg esi
sbb esi, esi
inc esi
jmp 0x3004371b
xor esi, esi
inc esi
push 0x400
lea eax, [ebp - 0x404]
push eax
push edi
call fcn.300818fd
mov edi, dword [sym.imp.MSVCR80.dll__mbschr]
add esp, 0xc
lea ebx, [ebp - 0x404]
cmp byte [ebx], 0
je 0x300437f9
cmp esi, 1
jne 0x30043830
push 0x3d
push ebx
call edi
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x300437e8
mov byte [esi], 0
inc esi
cmp byte [esi], 0x7b
jne 0x30043774
push 0x7d
push esi
call edi
test eax, eax
pop ecx
pop ecx
jne 0x30043776
mov eax, esi
push 0x3b
push eax
call edi
test eax, eax
pop ecx
pop ecx
mov dword [ebp - 0x40c], eax
je 0x30043791
mov byte [eax], 0
inc eax
mov dword [ebp - 0x40c], eax
push dword [0x3009a064]
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x300437dd
push dword [0x3009a068]
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x300437dd
xor eax, eax
inc eax
test eax, eax
mov eax, dword [0x3009a05c]
jne 0x300437c4
mov eax, dword [0x3009a060]
push esi
push ebx
push eax
push dword [ebp - 0x408]
call dword [0x3009dde4]
mov esi, eax
neg esi
sbb esi, esi
inc esi
inc esi
jmp 0x300437eb
xor eax, eax
cmp dword [ebp + 0x14], eax
jne 0x300437b6
xor esi, esi
jmp 0x300437bf
push 2
pop esi
mov ebx, dword [ebp - 0x40c]
test ebx, ebx
jne 0x3004373d
cmp esi, 1
jne 0x30043830
mov eax, dword [ebp - 0x410]
test eax, eax
je 0x3004380d
cmp byte [eax], 0
jne 0x3004380f
xor eax, eax
push eax
push dword [0x3009a06c]
push dword [0x3009a060]
push dword [ebp - 0x408]
call dword [0x3009dde4]
mov esi, eax
neg esi
sbb esi, esi
inc esi
inc esi
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.3008a55a
leave
ret

Function at 0x300511e4
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x300511fe
test al, 0x10
je 0x300511fe
xor eax, eax
inc eax
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x3005407c
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x13c
mov eax, dword [0x30002788]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [sym.imp.USER32.dll_SendMessageA]
push edi
mov edi, dword [ebp + 0x10]
push 0
push 0
push 0x150
push eax
mov dword [ebp - 0x128], eax
mov dword [ebp - 0x13c], ebx
call esi
cmp eax, ebx
je 0x30054265
push dword [ebp - 0x128]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
test eax, eax
jle 0x30054102
inc eax
push eax
push 0
mov dword [ebp - 0x12c], eax
call fcn.3007f84e
test eax, eax
pop ecx
pop ecx
mov dword [ebp - 0x138], eax
je 0x30054102
push dword [ebp - 0x12c]
push dword [eax]
push dword [ebp - 0x128]
call dword [sym.imp.USER32.dll_GetWindowTextA]
jmp 0x30054109
and dword [ebp - 0x138], 0
push 0
push 0
push 0x14b
push dword [ebp - 0x128]
call esi
lea eax, [ebp - 0x124]
push eax
mov dword [ebp - 0x124], ebx
mov dword [ebp - 0x94], ebx
mov dword [ebp - 0x134], ebx
push 3
mov ebx, 0x46c
push ebx
push dword [edi + 4]
call esi
test eax, eax
je 0x30054243
lea eax, [ebp - 0x94]
push eax
push 4
push ebx
push dword [edi + 4]
call esi
test eax, eax
je 0x30054243
lea eax, [ebp - 0x134]
push eax
push 1
push ebx
push dword [edi + 4]
call esi
test eax, eax
je 0x30054243
push 0x7fff
push dword [edi + 0x10]
lea eax, [ebp - 0x90]
push dword [ebp - 0xb]
push dword [ebp - 0xf]
push eax
push dword [ebp - 0x9f]
lea eax, [ebp - 0x120]
push eax
mov eax, dword [ebp - 0x134]
push dword [eax]
call fcn.300532cc
mov eax, dword [ebp - 0x134]
mov eax, dword [eax]
mov ebx, dword [eax + 0x16]
mov eax, dword [eax + 0x1a]
add esp, 0x20
cmp dword [0x3009e098], 0x400
sbb edi, edi
and dword [ebp - 0x12c], 0
and edi, 0x7fff801f
add edi, 0x7fe0
test eax, eax
je 0x300541e3
mov eax, dword [eax]
mov dword [ebp - 0x130], eax
jmp 0x3005422a
and dword [ebp - 0x130], 0
jmp 0x3005422a
cmp dword [ebp - 0x12c], edi
jge 0x3005422e
push dword [ebp - 0x130]
push 0
push 0x143
push dword [ebp - 0x128]
call esi
mov eax, dword [ebp - 0x130]
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x30054212
sub eax, ecx
inc eax
sub ebx, eax
inc dword [ebp - 0x12c]
add dword [ebp - 0x130], eax
test ebx, ebx
jg 0x300541ec
push dword [ebp - 0x13c]
push 0
push 0x151
push dword [ebp - 0x128]
call esi
mov esi, dword [ebp - 0x138]
test esi, esi
je 0x30054265
push dword [esi]
push dword [ebp - 0x128]
call dword [sym.imp.USER32.dll_SetWindowTextA]
push esi
push 0
call fcn.3007f7f3
pop ecx
pop ecx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.3008a55a
leave
ret
Function at 0x30054274
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetDlgItem]
mov esi, dword [ebp + 0x10]
xor ebx, ebx
cmp esi, ebx
mov dword [ebp - 4], eax
je 0x3005430d
cmp dword [ebp + 0x14], ebx
jne 0x300542a9
push ebx
push ebx
push 0x140
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
test eax, eax
je 0x3005430d
push edi
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
push dword [ebp + 0xc]
mov edi, eax
push dword [ebp + 8]
call fcn.30053cde
imul eax, eax, 0xc
mov ecx, dword [esi]
lea esi, [eax + ecx + 0x2e]
push dword [esi + 4]
push ebx
call fcn.3007f7f3
add esp, 0x10
cmp edi, ebx
jg 0x300542de
mov dword [esi + 4], ebx
jmp 0x3005430c
inc edi
push edi
push ebx
call fcn.3007f84e
cmp eax, ebx
pop ecx
pop ecx
mov dword [esi + 4], eax
je 0x300542fd
push edi
push dword [eax]
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowTextA]
jmp 0x3005430c
push dword [0x3009a0d4]
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_SetWindowTextA]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x30055916
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [sym.imp.USER32.dll_GetDlgItem]
push edi
push dword [ebp + 0xc]
push 0x3e9
push dword [ebp + 8]
call esi
mov edi, dword [sym.imp.USER32.dll_ShowWindow]
push eax
call edi
push dword [ebp + 0xc]
push 0x3ea
push dword [ebp + 8]
call esi
push eax
call edi
push dword [ebp + 0x10]
push 0
push 0x470
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_PostMessageA]
pop edi
pop esi
pop ebp
ret

Function at 0x300585d9
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x30002788]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor ebx, ebx
push ebx
mov esi, 0x30001a48
push esi
mov dword [ebp - 0x11c], edi
call fcn.3005ba9d
pop ecx
pop ecx
push ebx
push ebx
push 0x18b
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
call edi
cmp eax, ebx
mov dword [ebp - 0x118], eax
je 0x300586d5
push esi
call fcn.3005bafa
cmp eax, ebx
pop ecx
mov dword [ebp - 0x120], eax
je 0x300586d5
xor esi, esi
cmp dword [ebp - 0x118], ebx
mov dword [ebp - 0x114], ebx
jle 0x300586c9
lea eax, [ebp - 0x110]
push eax
push esi
push 0x189
push dword [ebp - 0x11c]
call edi
test eax, eax
jl 0x300586c0
push ebx
push esi
push 0x199
push dword [ebp - 0x11c]
call edi
test eax, eax
je 0x300586c0
push 0xa
push 0xc
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x114]
call fcn.3005bfb7
lea eax, [ebp - 0x110]
add esp, 0x10
inc dword [ebp - 0x114]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x3005869c
sub eax, edx
push eax
lea eax, [ebp - 0x110]
push eax
push 1
push ebx
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x120]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
inc esi
cmp esi, dword [ebp - 0x118]
jl 0x3005864b
push dword [ebp - 0x120]
call fcn.3005bb32
pop ecx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.3008a55a
leave
ret
Function at 0x30058a62
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x248
mov eax, dword [0x30002788]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
push 0
push dword [esi + 4]
lea eax, [ebp - 0x108]
push edi
push 0
push 0x104
push eax
call dword [sym.imp.MSVCR80.dll__makepath_s]
add esp, 0x18
lea eax, [ebp - 0x248]
push eax
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x30058ae4
push dword [esi + 8]
lea eax, [ebp - 0x21c]
push edi
push eax
push dword [esi]
call fcn.300587cf
add esp, 0x10
lea eax, [ebp - 0x248]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x30058ab6
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.3008a55a
leave
ret
Function at 0x30059ef9
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov eax, 0x100
cmp dword [ebp + 0xc], eax
push edi
mov edi, dword [ebp + 0x14]
jne 0x3005a017
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
push 0x11
call esi
test ax, ax
jge 0x30059fac
cmp ebx, 0x21
je 0x30059f3c
push 0x10
call esi
test ax, ax
jge 0x30059fac
cmp ebx, 9
jne 0x30059fac
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetParent]
mov esi, 0xbc2
push esi
push eax
mov dword [ebp - 8], eax
call dword [sym.imp.USER32.dll_GetDlgItem]
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
xor ebx, ebx
push ebx
push ebx
push 0x130b
push eax
mov dword [ebp + 0xc], eax
call edi
cmp eax, ebx
jg 0x30059f7a
push ebx
push ebx
push 0x1304
push dword [ebp + 0xc]
call edi
dec eax
push ebx
mov ebx, dword [ebp + 0xc]
push eax
push 0x130c
push ebx
call edi
test eax, eax
jl 0x30059fa5
lea eax, [ebp - 0x14]
push eax
push esi
push 0x4e
push dword [ebp - 8]
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], esi
mov dword [ebp - 0xc], 0xfffffdd9
call edi
xor eax, eax
jmp 0x3005a062
push 0x11
call esi
test ax, ax
jge 0x3005a051
cmp ebx, 0x22
je 0x30059fc7
cmp ebx, 9
jne 0x3005a051
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetParent]
mov esi, 0xbc2
push esi
push eax
mov dword [ebp - 8], eax
call dword [sym.imp.USER32.dll_GetDlgItem]
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
xor ebx, ebx
push ebx
push ebx
push 0x130b
push eax
mov dword [ebp + 0xc], eax
call edi
push ebx
push ebx
push 0x1304
push dword [ebp + 0xc]
mov dword [ebp - 4], eax
call edi
dec eax
cmp dword [ebp - 4], eax
jl 0x3005a00e
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 4]
inc eax
jmp 0x30059f7b
mov esi, 0x87
cmp dword [ebp + 0xc], esi
jne 0x3005a051
test edi, edi
je 0x3005a051
cmp dword [edi + 4], eax
jne 0x3005a051
cmp dword [edi + 8], 9
jne 0x3005a051
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jge 0x3005a051
push edi
push ebx
push esi
push dword [ebp + 8]
push dword [ebp + 0x18]
call dword [sym.imp.USER32.dll_CallWindowProcA]
or eax, 4
jmp 0x3005a062
push edi
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp + 0x18]
call dword [sym.imp.USER32.dll_CallWindowProcA]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x3005bfe6
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
mov esi, 0x8000
jmp 0x3005c021
push 0
lea eax, [ebp + 0xc]
push eax
push esi
push ebx
push dword [ebp + 8]
call edi
test eax, eax
je 0x3005c046
mov eax, dword [ebp + 0xc]
cmp eax, esi
jne 0x3005c03c
sub dword [ebp + 0x10], esi
add ebx, esi
add dword [ebp - 4], esi
cmp dword [ebp + 0x10], esi
ja 0x3005c001
push 0
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 0x10]
push ebx
push dword [ebp + 8]
call edi
test eax, eax
je 0x3005c046
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 4]
add eax, ecx
pop edi
pop esi
pop ebx
leave
ret
or eax, 0xffffffff
jmp 0x3005c041

Function at 0x3005c04b
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, 0x8000
cmp eax, esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [ebp - 4], eax
jbe 0x3005c08a
push 0
lea eax, [ebp + 0xc]
push eax
push esi
push ebx
push dword [ebp + 8]
call edi
test eax, eax
je 0x3005c0aa
cmp dword [ebp + 0xc], esi
jne 0x3005c0aa
sub dword [ebp + 0x10], esi
add ebx, esi
cmp dword [ebp + 0x10], esi
ja 0x3005c06a
push 0
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 0x10]
push ebx
push dword [ebp + 8]
call edi
test eax, eax
je 0x3005c0aa
mov eax, dword [ebp + 0x10]
cmp dword [ebp + 0xc], eax
jne 0x3005c0aa
mov eax, dword [ebp - 4]
jmp 0x3005c0ad
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret

Function at 0x3005c0cf
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x3005c0e9
test al, 0x10
jne 0x3005c0e9
xor eax, eax
inc eax
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x3006c295
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
push ebx
push esi
mov ebx, eax
mov eax, dword [ebx + 0xc]
push edi
lea esi, [ebx + 0x28]
lea edi, [ebp - 0x1c]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov dword [ebp - 8], eax
mov eax, dword [ebx + 0x10]
movsd dword es:[edi], dword [esi]
mov dword [eax], 1
push ebx
mov dword [ebp - 4], eax
mov dword [ebx + 0x44], 0x1a
call fcn.3006990a
pop ecx
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_UpdateWindow]
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_SetCapture]
mov eax, dword [ebp - 8]
cmp byte [eax + 1], 0
je 0x3006c2fd
movzx eax, word [ebp + 0xc]
movzx ecx, word [ebp + 8]
shl eax, 0x10
or eax, ecx
mov dword [ebp - 0x34], 0x202
xor esi, esi
jmp 0x3006c32e
push 3
push 0x20e
push 0x100
xor esi, esi
push esi
lea eax, [ebp - 0x38]
push eax
call dword [sym.imp.USER32.dll_PeekMessageA]
test eax, eax
jne 0x3006c331
movzx eax, word [ebp + 0xc]
movzx ecx, word [ebp + 8]
shl eax, 0x10
mov dword [ebp - 0x34], 0x200
or eax, ecx
mov dword [ebp - 0x2c], eax
push 1
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
mov eax, dword [ebp - 0x34]
js 0x3006c348
cmp eax, 0x202
jne 0x3006c353
sub eax, 0x200
je 0x3006c377
dec eax
dec eax
jne 0x3006c2dc
call dword [sym.imp.USER32.dll_ReleaseCapture]
mov eax, dword [ebp - 4]
cmp dword [eax], esi
je 0x3006c3d2
mov ecx, dword [ebx + 8]
cmp byte [ecx + 4], 1
je 0x3006c3c3
cmp dword [ebp + 0x14], esi
jne 0x3006c3c3
cmp dword [ebp + 0x10], esi
je 0x3006c3c3
xor ecx, ecx
jmp 0x3006c3c6
mov eax, dword [ebp - 4]
mov eax, dword [eax]
sub esp, 0x10
mov edi, esp
push dword [ebp - 0x2c]
lea esi, [ebp - 0x1c]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov dword [ebp - 0xc], eax
movsd dword es:[edi], dword [esi]
call fcn.30085102
pop ecx
push edx
push eax
call fcn.3006b20a
mov ecx, dword [ebp - 4]
add esp, 0x18
cmp dword [ebp - 0xc], eax
mov dword [ecx], eax
je 0x3006c3af
push ebx
call fcn.3006990a
pop ecx
push dword [ebp - 0x2c]
call fcn.30085102
pop ecx
mov dword [ebp + 8], eax
mov dword [ebp + 0xc], edx
jmp 0x3006c2dc
or ecx, 0xffffffff
mov dword [eax], esi
push ecx
mov esi, ebx
call fcn.3006b595
jmp 0x3006c3d8
push ebx
call fcn.3006990a
pop ecx
pop edi
xor eax, eax
pop esi
inc eax
pop ebx
leave
ret
Function at 0x3006c473
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
or dword [ebp - 8], 0xffffffff
push esi
mov esi, eax
mov ecx, dword [esi + 0xc]
mov eax, dword [esi + 0x10]
push edi
mov edi, dword [esi + 0x44]
and edi, 0x4000
or edi, 0x1a
mov dword [esi + 0x44], edi
mov edi, dword [esi + 8]
xor edx, edx
cmp byte [edi + 4], 2
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], edx
mov dword [ebp - 0xc], edx
jne 0x3006c4ba
cmp dword [ebp + 0xc], edx
jne 0x3006c4ba
cmp dword [ebp + 8], edx
je 0x3006c4ba
mov dword [ebp - 8], edx
cmp dword [esi + 0x50], 0xd
je 0x3006c5a8
cmp byte [ecx + 1], dl
je 0x3006c4d1
cmp byte [ecx], dl
je 0x3006c5a8
xor edi, edi
push ebx
inc edi
push esi
mov dword [eax], edi
call fcn.3006990a
pop ecx
push dword [esi + 4]
call dword [sym.imp.USER32.dll_UpdateWindow]
push dword [esi + 4]
call dword [sym.imp.USER32.dll_SetCapture]
mov ebx, dword [sym.imp.USER32.dll_GetFocus]
push 3
push 0x20e
push 0x100
push 0
lea eax, [ebp - 0x30]
push eax
call dword [sym.imp.USER32.dll_PeekMessageA]
test eax, eax
je 0x3006c4f6
mov eax, dword [ebp - 0x2c]
sub eax, 0x100
je 0x3006c52a
dec eax
jne 0x3006c583
cmp dword [ebp - 0x28], 0x20
jne 0x3006c583
mov dword [ebp - 4], edi
jmp 0x3006c583
cmp dword [ebp - 0x28], 0x20
jne 0x3006c571
cmp word [ebp - 0x24], 0
je 0x3006c571
mov eax, dword [ebp - 0x10]
cmp byte [eax], 0
je 0x3006c583
push esi
call fcn.3006980a
test eax, eax
pop ecx
je 0x3006c583
call ebx
push dword [ebp - 8]
mov edi, eax
push esi
call fcn.3006a25a
pop ecx
pop ecx
call ebx
cmp eax, edi
jne 0x3006c58d
push 0x20
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
jns 0x3006c58d
xor edi, edi
inc edi
jmp 0x3006c583
cmp dword [ebp - 0x28], 0xd
mov dword [ebp - 4], edi
je 0x3006c58d
cmp dword [ebp - 0x28], 0x20
je 0x3006c58d
mov dword [ebp - 0xc], edi
cmp dword [ebp - 4], 0
je 0x3006c4f6
call dword [sym.imp.USER32.dll_ReleaseCapture]
mov eax, dword [ebp - 0x14]
and dword [eax], 0
cmp dword [ebp - 0xc], 0
pop ebx
je 0x3006c5a8
push esi
call fcn.3006990a
jmp 0x3006c5b0
push dword [ebp - 8]
call fcn.3006b595
and dword [esi + 0x44], 0x4000
pop ecx
pop edi
pop esi
leave
ret
Function at 0x3006c77f
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov eax, dword [eax + 0x10]
push esi
mov esi, dword [eax + 0xc]
push edi
mov edi, dword [eax + 0x10]
test edi, edi
mov dword [ebp - 4], esi
je 0x3006c87f
push ebx
lea eax, [ebp - 0x1c]
push eax
push esi
call dword [sym.imp.USER32.dll_GetClientRect]
push esi
call dword [sym.imp.USER32.dll_SetCapture]
mov ebx, dword [sym.imp.USER32.dll_ReleaseCapture]
mov esi, dword [sym.imp.USER32.dll_SendMessageA]
push 3
push 0x20e
push 0x100
push 0
lea eax, [ebp - 0x38]
push eax
call dword [sym.imp.USER32.dll_PeekMessageA]
test eax, eax
je 0x3006c7ba
cmp dword [ebp - 0x34], 0x202
je 0x3006c87c
push 1
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jns 0x3006c87c
cmp dword [ebp - 0x34], 0x200
jne 0x3006c7ba
push dword [ebp - 0x2c]
call fcn.30085102
pop ecx
push edx
push eax
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x1c]
push eax
mov dword [ebp - 8], edx
call dword [sym.imp.USER32.dll_PtInRect]
test eax, eax
je 0x3006c7ba
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_ClientToScreen]
push dword [ebp - 0xc]
push 0
push 0x84
push edi
call esi
cmp eax, 1
jne 0x3006c7ba
lea eax, [ebp - 0xc]
push eax
push edi
call dword [sym.imp.USER32.dll_ScreenToClient]
call ebx
movzx eax, word [ebp - 8]
movzx ecx, word [ebp - 0xc]
shl eax, 0x10
or eax, ecx
push eax
push 1
push 0x201
push edi
call esi
call dword [sym.imp.USER32.dll_GetCapture]
cmp eax, edi
je 0x3006c87e
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_SetCapture]
jmp 0x3006c7ba
call ebx
pop ebx
pop edi
pop esi
leave
ret
Function at 0x3007550d
Capabilities:
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
lea eax, [ebp - 4]
push eax
push dword [ebp + 0x10]
xor ebx, ebx
push edi
push esi
mov dword [ebp - 4], ebx
call fcn.300751cf
add esp, 0x10
cmp dword [ebp - 4], ebx
mov dword [ebp - 8], eax
jne 0x30075608
cmp edi, dword [esi + 0x8c]
jne 0x300755e1
push eax
call dword [sym.imp.KERNEL32.dll_GlobalSize]
push eax
push 2
mov dword [ebp - 0xc], eax
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
cmp edi, ebx
je 0x300755cf
push dword [ebp - 8]
mov esi, dword [sym.imp.KERNEL32.dll_GlobalLock]
call esi
push edi
mov ebx, eax
call esi
test ebx, ebx
mov dword [ebp - 0x10], eax
je 0x30075596
test eax, eax
je 0x30075596
push dword [ebp - 0xc]
push eax
push ebx
call fcn.300841a3
mov eax, dword [ebp + 8]
add esp, 0xc
mov dword [eax + 0x88], edi
jmp 0x300755a8
push 0x50000
mov dword [ebp - 4], 0x401
call fcn.30006ab6
pop ecx
test ebx, ebx
mov esi, dword [sym.imp.KERNEL32.dll_GlobalUnlock]
je 0x300755b7
push dword [ebp - 8]
call esi
cmp dword [ebp - 0x10], 0
je 0x300755e1
push edi
call esi
cmp dword [ebp - 4], 0
je 0x300755e1
push edi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
jmp 0x300755e1
push 0x50000
mov dword [ebp - 4], 0x401
call fcn.30006ab6
pop ecx
push dword [ebp - 8]
call fcn.30080a5b
mov esi, eax
push esi
call fcn.3007f6c0
push esi
call fcn.30080a39
add esp, 0xc
push dword [ebp - 8]
push dword [ebp + 0xc]
call dword [sym.imp.USER32.dll_SetClipboardData]
jmp 0x30075614
cmp dword [ebp - 4], 0x508
jne 0x30075614
mov dword [ebp - 4], ebx
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x300756aa
Capabilities:
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 0xc], esi
je 0x300756f8
push esi
call fcn.300753bb
test eax, eax
pop ecx
je 0x300756f8
push esi
call fcn.30075405
push dword [ebp + 0xc]
call fcn.30080a5b
mov esi, eax
push esi
call fcn.3007f6c0
push esi
call fcn.30080a39
add esp, 0x10
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SetClipboardData]
mov esi, eax
neg esi
sbb esi, esi
neg esi
call fcn.300753f6
mov eax, esi
pop esi
pop ebp
ret

Function at 0x300756fd
Capabilities:
Read clipboard data

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [ebp + 8]
xor esi, esi
call dword [sym.imp.USER32.dll_IsClipboardFormatAvailable]
test eax, eax
je 0x3007572b
push esi
call fcn.300753bb
test eax, eax
pop ecx
je 0x3007572b
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetClipboardData]
mov esi, eax
call fcn.300753f6
mov eax, esi
pop esi
pop ebp
ret
Function at 0x3007590b
Capabilities:
Read clipboard data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x30002788]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [ebp - 0x30], 0
test word [ebp + 0xc], 0x1008
push ebx
mov ebx, dword [sym.imp.USER32.dll_GetClipboardData]
push esi
push edi
mov edi, dword [ebp + 8]
push 2
pop esi
je 0x30075979
push 0x28
lea eax, [ebp - 0x2c]
push eax
push 0x120009
call fcn.3005bbc9
push 1
call fcn.300753bb
test eax, eax
pop ecx
je 0x30075a13
push dword [0x3009d3e0]
call ebx
test eax, eax
jne 0x30075974
push dword [0x3009d3e8]
call ebx
and dword [0x3009d430], 0xffffdfff
call fcn.300753f6
push 1
call fcn.300753bb
test eax, eax
pop ecx
je 0x30075a13
push dword [ebp + 0xc]
push edi
push 0x3009d55c
call fcn.300751e7
add esp, 0xc
test eax, eax
je 0x30075a0e
test byte [ebp + 0xc], 4
je 0x300759ac
mov edi, dword [0x3009d5e8]
jmp 0x300759ce
test byte [ebp + 0xc], 8
je 0x300759c8
mov eax, dword [0x3009d5f8]
cmp eax, dword [0x3009d3e4]
je 0x300759c4
mov eax, dword [0x3009d3e8]
mov edi, eax
jmp 0x300759ce
mov edi, dword [0x3009d674]
push edi
call ebx
test eax, eax
jne 0x300759e2
push 0x80006
call fcn.30006ab6
pop ecx
jmp 0x30075a0e
lea ecx, [ebp - 0x30]
push ecx
push eax
push edi
push 0x3009d55c
call fcn.30075730
add esp, 0x10
test eax, eax
je 0x300759fe
xor esi, esi
inc esi
jmp 0x30075a0e
mov esi, dword [ebp - 0x30]
sub esi, 0x404
neg esi
sbb esi, esi
and esi, 2
call fcn.300753f6
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.3008a55a
leave
ret