joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5012c63c
Capabilities:
Read clipboard data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff9c
push ebx
push esi
push edi
mov ebx, eax
push 0xe
call sub.user32.dll_GetClipboardData
mov edi, eax
test edi, edi
jne 0x5012c65e
mov eax, dword [sym.vcl120.bpl__Consts__SUnknownClipboardFormat]
call fcn.50128bbc
mov eax, ebx
call sym.vcl120.bpl__Graphics_TMetafile_NewImage_qqrv
mov esi, dword [ebx + 0x28]
push 0
push edi
call fcn.50122354
mov dword [esi + 8], eax
lea eax, [ebp - 0x64]
push eax
push 0x64
mov eax, dword [esi + 8]
push eax
call fcn.501224dc
mov eax, dword [ebp - 0x44]
sub eax, dword [ebp - 0x4c]
mov dword [esi + 0xc], eax
mov eax, dword [ebp - 0x40]
sub eax, dword [ebp - 0x48]
mov dword [esi + 0x10], eax
mov word [esi + 0x18], 0
mov byte [ebx + 0x2c], 1
mov eax, ebx
mov edx, dword [eax]
call dword [edx + 0x28]
test eax, eax
setne al
mov byte [ebx + 0x22], al
mov edx, ebx
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x10]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x50137c08
Capabilities:
Encrypt data using rc4 prga

Disassembly:
pop es
push ss
push esp
inc ebx
jne 0x50137c81
je 0x50137c7f
insd dword es:[edi], dx
inc ebx
outsd dx, dword [esi]
insd dword es:[edi], dx
bound ebp, qword [edi + 0x42]
outsd dx, dword [esi]
js 0x50137c6d
je 0x50137c8e
imul ebp, dword [esi + 0x67], 0x137b5873
push eax
add al, 0x81
and al, 0x50
add byte [eax], al
or byte [ebx + 0x74], dl
inc ebx
je 0x50137ca3
insb byte es:[edi], dx
jae 0x50137c34
add byte [ebp + 0x7c900040], cl
adc edx, dword [eax]
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [esi + edi*2], bl
adc edx, dword [eax]
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax + 0x850137d], bh
jle 0x50137c6e
push eax
int3
adc dword [edx], edx
push eax
mov word [0x11405012], ds
adc dl, byte [eax - 0x74]
sbb eax, 0x11405012
adc dl, byte [eax - 0x24]
sbb al, 0x12
push eax
push eax
adc dword [edx], edx
push eax
rcl byte [edx + 0x1d], 0x50
mov al, 0x10
adc dl, byte [eax - 0x48]
adc byte [edx], dl
push eax
enter 0x13fe, 0x50
push edx
sbb eax, 0x1210b050
push eax
mov eax, 0xc8501210
invalid
adc edx, dword [eax - 0x54]
push eax
sbb byte [ecx], ch
sbb eax, 0x1cf11050
push eax

Function at 0x50137c90
Capabilities:
Encrypt data using rc4 prga

Disassembly:
lodsb al, byte [esi]
mov ds, word [0x1d426850]
push eax
adc al, 0x18
adc dl, byte [eax + 0x3c]
or edx, dword [eax + edx*2]
jl 0x50137cde
sbb eax, 0x1d291850
push eax
adc cl, dh
sbb al, 0x50
xchg esp, eax
sbb eax, 0x1d445012
adc dl, byte [eax + 0x3c]
sbb eax, 0x1d9c5012
adc dl, byte [eax - 0x38]
std
adc edx, dword [eax - 0x30]
mov byte [0x1d8edc50], bl
push eax
sub byte [esi - 0x1cf3afe3], cl
sbb al, 0x50
test al, 0x82
sbb eax, 0x1d82c850
push eax
cld
jle 0x50137cf8
push eax
push esp
loop 0x50137cfb
sbb al, 0x50
push eax
mov byte [edi], bl
sbb eax, 0x1d1fb450
push eax
dec esp
sbb eax, 0x1cf0f850
push eax
mov ah, ah
sbb al, 0x50
push eax
xor dl, 0x1c
push eax
test byte [eax - 0xa8fafe3], bl
push eax
jo 0x50137cf3
sbb al, 0x50
invalid
Function at 0x5013c92c
Capabilities:
Resolve function by parsing pe exports

Disassembly:
pop es
adc dword [ebx + eax*2 + 0x75], edx
jae 0x5013c9a7
outsd dx, dword [esi]
insd dword es:[edi], dx
push ebx
je 0x5013c999
je 0x5013c9a3
arpl word [ebp + 0x78], dx
je 0x5013c960
enter 0x5013, 0x24
mov eax, dword [0xf501c]
or byte [ebx + 0x74], dl
inc ebx
je 0x5013c9c2
insb byte es:[edi], dx
jae 0x5013c953
add byte [ecx + ecx*8 + 0x5013], ch
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
cwde
retf 0x5013
adc dword [edx], edx
push eax
rcl byte [edx + 0x1d], 0x50
mov al, 0x10
adc dl, byte [eax - 0x48]
adc byte [edx], dl
push eax
mov eax, 0x64501210
daa
push eax
daa
sbb eax, 0x1d8eac50
push eax
push 0x14501d42
sbb byte [edx], dl
push eax
rcr byte [esi + 0x14], 1
push eax

Function at 0x5013c9ac
Capabilities:
Resolve function by parsing pe exports

Disassembly:
lodsb al, byte [esi]
mov ds, word [0x1d426850]
push eax
adc al, 0x18
adc dl, byte [eax - 0x30]
pop esi
adc al, 0x50
sbb al, 0x60
adc al, 0x50
sbb byte [ecx], ch
sbb eax, 0x1cf11050
push eax
xchg esp, eax
sbb eax, 0x1d445012
adc dl, byte [eax + 0x3c]
sbb eax, 0x1d9c5012
adc dl, byte [eax]
pop ebp
adc al, 0x50
ror byte [eax - 0x7123afe3], 1
sbb eax, 0x1d8e2850
push eax
or al, 0xe3
sbb al, 0x50
test al, 0x82
sbb eax, 0x1d82c850
push eax
cld
jle 0x5013ca14
push eax
push esp
loop 0x5013ca17
push eax
mov byte [edi], bl
sbb eax, 0x1d1fb450
push eax
dec esp
sbb eax, 0x14606050
push eax
mov ah, ah
sbb al, 0x50
push eax
xor dl, 0x1c
push eax
test byte [eax - 0xa8fafe3], bl
push eax
jo 0x5013ca0f
sbb al, 0x50
invalid

Function at 0x50146fc8
Capabilities:
Packed with generic packer

Disassembly:
std
dec dword [ebx + 0x5b5e5fc6]
pop ecx
pop ebp
ret 4
sar bh, 0x25
jl 0x50146f59
and al, 0x50
mov eax, eax
sub byte [eax + 0x14], dh
push eax
add byte [eax], al
add byte [eax], al
add byte [eax], al
movsb byte es:[edi], byte [esi]
xor edx, dword [edx]
push eax
pushfd
xor edx, dword [edx]
push eax
or byte [ebp + 0x50], al
jb 0x5014709e
outsb dx, byte [esi]
je 0x5014709d
jb 0x50146fc7
inc eax
add byte [eax + 0x70], al
adc al, 0x50
insb byte es:[edi], dx

Function at 0x50147028
Capabilities:
Packed with generic packer

Disassembly:
std
dec dword [ebx + 0x5b5e5fc6]
pop ecx
pop ebp
ret 4
sar bh, 0x25
jl 0x50146f59
and al, 0x50
mov eax, eax
sub byte [eax + 0x14], dh
push eax
add byte [eax], al
add byte [eax], al
add byte [eax], al
movsb byte es:[edi], byte [esi]
xor edx, dword [edx]
push eax
pushfd
xor edx, dword [edx]
push eax
or byte [ebp + 0x50], al
jb 0x5014709e
outsb dx, byte [esi]
je 0x5014709d
jb 0x50146fc7
inc eax
add byte [eax + 0x70], al
adc al, 0x50
insb byte es:[edi], dx
Function at 0x50147040
Capabilities:
Packed with generic packer

Disassembly:
and al, 0x50
mov eax, eax
jmp dword [sym.imp.comdlg32.dll_ReplaceTextW]
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
xor byte [eax + 0x14], dh
push eax
sbb al, 0
add byte [eax], al
jl 0x50146f84
and al, 0x50
loopne 0x5014700e
adc dl, byte [eax - 0x18]
adc byte [edx], dl
push eax
lodsb al, byte [esi]
xor edx, dword [edx]
push eax
sub byte [ecx], dl
adc dl, byte [eax + 0x40]
adc dword [edx], edx
push eax
dec eax
adc dl, byte [eax + 0x48]
adc dword [edx], edx
push eax
push eax
adc dword [edx], edx
push eax
cmp byte [ecx], dl
adc dl, byte [eax - 0x50]
adc byte [edx], dl
push eax
mov eax, 0x94501210
xor edx, dword [edx]
push eax
pop es
or byte [ebp + 0x50], al
jb 0x501470af
outsb dx, byte [esi]
je 0x501470ae
jb 0x50147073
jo 0x50147061
push eax
js 0x50146fda
and al, 0x50
add byte [eax], al
or byte [eax + 0x72], dl
imul ebp, dword [esi + 0x74], 0x737265
add byte [eax + sym.vcl120.bpl___xp_22Printers_TPrinterState], dl
jo 0x50147077
push eax
adc al, 0x50
push eax
Function at 0x501b3cf8
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebx
push esi
push edi
add esp, 0xffffff94
mov esi, eax
mov edi, esp
xor ebx, ebx
call sym.vcl120.bpl__Printers_Printer_qqrv
call sym.vcl120.bpl__Printers_TPrinter_GetPrinters_qqrv
mov edx, dword [eax]
call dword [edx + 0x14]
test eax, eax
je 0x501b3e94
mov eax, edi
xor ecx, ecx
mov edx, 0x54
call sub.rtl120.bpl__System__FillChar_qqrpvib
mov dword [edi], 0x54
mov eax, dword [0x50245004]
mov dword [edi + 0x3c], eax
call fcn.501b0ff8
mov dword [edi + 4], eax
movzx eax, byte [esi + 0xf0]
dec al
je 0x501b3d54
dec al
jne 0x501b3d58
add dword [edi + 0x10], 4
jmp 0x501b3d58
add dword [edi + 0x10], 8
test byte [esi + 0x68], 1
je 0x501b3d62
add dword [edi + 0x10], 0
test byte [esi + 0x68], 2
je 0x501b3d6c
add dword [edi + 0x10], 0x10
test byte [esi + 0x68], 4
je 0x501b3d79
add dword [edi + 0x10], 0x100
test byte [esi + 0x68], 8
je 0x501b3d86
add dword [edi + 0x10], 0x80000
test byte [esi + 0x68], 0x10
je 0x501b3d93
add dword [edi + 0x10], 0x200
test byte [esi + 0x68], 0x20
je 0x501b3d9d
add dword [edi + 0x10], 0x20
lea ecx, [esp + 0x54]
mov edx, dword [esi + 0x90]
mov eax, dword [esi + 0x8c]
call sub.rtl120.bpl__Classes_Point_qqrii
mov eax, dword [esp + 0x54]
mov dword [edi + 0x14], eax
mov eax, dword [esp + 0x58]
mov dword [edi + 0x18], eax
mov eax, dword [esi + 0x78]
push eax
lea eax, [esp + 0x60]
push eax
mov ecx, dword [esi + 0x74]
mov edx, dword [esi + 0x70]
mov eax, dword [esi + 0x6c]
call sub.rtl120.bpl__Classes_Rect_qqriiii
push esi
push edi
lea esi, [esp + 0x64]
add edi, 0x1c
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
pop edi
pop esi
mov eax, dword [esi + 0x88]
push eax
lea eax, [esp + 0x60]
push eax
mov ecx, dword [esi + 0x84]
mov edx, dword [esi + 0x80]
mov eax, dword [esi + 0x7c]
call sub.rtl120.bpl__Classes_Rect_qqriiii
push esi
push edi
lea esi, [esp + 0x64]
add edi, 0x2c
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
pop edi
pop esi
mov dword [edi + 0x44], fcn.501b10e4
or dword [edi + 0x10], 0x400
xor eax, eax
mov dword [edi + 0xc], eax
xor eax, eax
mov dword [edi + 8], eax
push edi
call sub.comdlg32.dll_PageSetupDlgW
cmp eax, 1
sbb ebx, ebx
inc ebx
test bl, bl
je 0x501b3e94
mov eax, dword [edi + 0x14]
mov dword [esi + 0x8c], eax
mov eax, dword [edi + 0x18]
mov dword [esi + 0x90], eax
mov eax, dword [edi + 0x2c]
mov dword [esi + 0x7c], eax
mov eax, dword [edi + 0x30]
mov dword [esi + 0x80], eax
mov eax, dword [edi + 0x34]
mov dword [esi + 0x84], eax
mov eax, dword [edi + 0x38]
mov dword [esi + 0x88], eax
mov eax, dword [edi + 8]
test eax, eax
je 0x501b3e82
push eax
call fcn.5012228c
xor eax, eax
mov dword [edi + 8], eax
mov eax, dword [edi + 0xc]
test eax, eax
je 0x501b3e94
push eax
call fcn.5012228c
xor eax, eax
mov dword [edi + 0xc], eax
mov eax, ebx
add esp, 0x6c
pop edi
pop esi
pop ebx
ret
Function at 0x501b73e0
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 8], ecx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
call sub.rtl120.bpl__System__UStrAddRef_qqrpv
xor eax, eax
push ebp
push 0x501b7575
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
call sub.user32.dll_OpenClipboard
test eax, eax
je 0x501b7543
xor edx, edx
push ebp
push 0x501b753c
push dword fs:[edx]
mov dword fs:[edx], esp
lea eax, [ebp - 8]
mov edx, dword [ebp - 4]
call sub.rtl120.bpl__System__UStrLAsg_qqrr20System_UnicodeStringx20System_UnicodeString
mov eax, dword [ebp - 8]
test eax, eax
je 0x501b744f
mov edx, eax
sub edx, 0xa
cmp word [edx], 2
je 0x501b744f
lea eax, [ebp - 8]
mov edx, dword [ebp - 8]
call sub.rtl120.bpl__System__InternalUStrFromLStr_qqrr20System_UnicodeStringx27System__AnsiStringT_us_i0__
test eax, eax
je 0x501b7458
sub eax, 4
mov eax, dword [eax]
add eax, eax
add eax, 2
push eax
push 0x2002
call fcn.50122274
mov dword [ebp - 0x10], eax
xor edx, edx
push ebp
push 0x501b7511
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebp - 0x10]
push eax
call fcn.50122294
mov ebx, eax
xor edx, edx
push ebp
push 0x501b7500
push dword fs:[edx]
mov dword fs:[edx], esp
lea eax, [ebp - 0xc]
mov edx, dword [ebp - 4]
call sub.rtl120.bpl__System__UStrLAsg_qqrr20System_UnicodeStringx20System_UnicodeString
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x501b74ba
mov edx, eax
sub edx, 0xa
cmp word [edx], 2
je 0x501b74ba
lea eax, [ebp - 0xc]
mov edx, dword [ebp - 0xc]
call sub.rtl120.bpl__System__InternalUStrFromLStr_qqrr20System_UnicodeStringx27System__AnsiStringT_us_i0__
test eax, eax
je 0x501b74c3
sub eax, 4
mov eax, dword [eax]
mov esi, eax
add esi, esi
mov eax, dword [ebp - 4]
call sub.rtl120.bpl__System__UStrToPWChar_qqrx20System_UnicodeString
lea ecx, [esi + 2]
mov edx, ebx
call sub.rtl120.bpl__System_Move_qqrpxvpvi
call sub.user32.dll_EmptyClipboard
mov eax, dword [ebp - 0x10]
push eax
push 0xd
call sub.user32.dll_SetClipboardData
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x501b7507
mov eax, dword [ebp - 0x10]
push eax
call fcn.501222a4
ret
mov ecx, dword [sym.vcl120.bpl__Consts__SCannotOpenClipboard]
mov dl, 1
mov eax, dword [sym.imp.rtl120.bpl__Sysutils_Exception_]
call sub.rtl120.bpl__Sysutils_Exception__bctr_qqrp20System_TResStringRec
call sub.rtl120.bpl__System__RaiseExcept_qqrv
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x501b757c
lea eax, [ebp - 0xc]
mov edx, 3
call sub.rtl120.bpl__System__UStrArrayClr_qqrpvi
ret
Function at 0x501c5428
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
xor eax, eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x501c5561
push dword fs:[eax]
mov dword fs:[eax], esp
mov word [ebp - 0x20], 0
lea eax, [ebp - 0x20]
push eax
call sub.user32.dll_GetKeyboardLayoutNameW
mov dl, 1
mov eax, dword [sym.imp.rtl120.bpl__Registry_TRegistry_]
call sub.rtl120.bpl__Registry_TRegistry__bctr_qqrv
mov dword [ebp - 0xc], eax
xor edx, edx
push ebp
push 0x501c5537
push dword fs:[edx]
mov dword fs:[edx], esp
mov edx, 0x80000002
mov eax, dword [ebp - 0xc]
call sub.rtl120.bpl__Registry_TRegistry_SetRootKey_qqrp6HKEY__
lea eax, [ebp - 0x28]
lea edx, [ebp - 0x20]
mov ecx, 0xa
call sub.rtl120.bpl__System__UStrFromWArray_qqrr20System_UnicodeStringpbi
mov ecx, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
mov edx, 0x501c557c
call sub.rtl120.bpl__System__UStrCat3_qqrr20System_UnicodeStringx20System_UnicodeStringt2
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0xc]
call sub.rtl120.bpl__Registry_TRegistry_OpenKeyReadOnly_qqrx20System_UnicodeString
test al, al
je 0x501c5521
lea ecx, [ebp - 4]
mov edx, 0x501c55f0
mov eax, dword [ebp - 0xc]
call sub.rtl120.bpl__Registry_TRegistry_ReadString_qqrx20System_UnicodeString
mov edx, 0x8000
mov eax, dword [ebp - 4]
call sub.rtl120.bpl__Sysutils_SafeLoadLibrary_qqrx20System_UnicodeStringui
mov dword [ebp - 8], eax
xor edx, edx
push ebp
push 0x501c551a
push dword fs:[edx]
mov dword fs:[edx], esp
push 0x501c5608
mov eax, dword [ebp - 8]
push eax
call fcn.501221c8
mov ebx, eax
call ebx
movzx eax, word [eax + 0x28]
and ax, 1
cmp ax, 1
sete byte [0x50243648]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x501c5521
mov eax, dword [ebp - 8]
push eax
call fcn.50122178
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x501c553e
mov eax, dword [ebp - 0xc]
call sub.rtl120.bpl__System_TObject_Free_qqrv
ret

Function at 0x501c566c
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffff0
mov esi, eax
lea edi, [esp]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movzx ebx, byte [esp + 4]
test bx, bx
je 0x501c56b3
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x501c5696
add bx, 0x2000
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x501c56a7
add bx, 0x4000
test byte [esp + 0xb], 0x20
je 0x501c56b3
add bx, 0x8000
mov eax, ebx
add esp, 0x10
pop edi
pop esi
pop ebx
ret
Function at 0x501e8160
Capabilities:
Encode data using xor

Disassembly:
inc eax
adc dword [edx], edx
push eax
dec eax
adc dword [edx], edx
push eax
push eax
adc dword [edx], edx
push eax
cmp byte [ecx], dl
adc dl, byte [eax - 0x50]
adc byte [edx], dl
push eax
mov eax, 0xc4501210
sbb eax, 0x1dbc5012
mov esp, 0xcc50121d
mov esp, 0xcc50121d
sbb eax, 0x1de45012
adc dl, byte [eax - 0x24]
sbb eax, 0x1dec5012
adc dl, byte [eax - 0x4c]
sbb eax, 0x1dd45012
adc dl, byte [eax - 0xc]
sbb eax, 0x8a085012
push ds
push eax
sbb al, 0x8a
push ds
push eax
xor byte [edx - 0x75bbafe2], cl
push ds
push eax
pop eax
mov bl, byte [esi]
push eax
insb byte es:[edi], dx
mov bl, byte [esi]
push eax
or byte [edx - 0x756bafe2], 0x1e
push eax
test al, 0x8a
push ds
push eax
mov esp, 0xd0501e8a
mov bl, byte [esi]
push eax
aam 0x8a
push ds
push eax
fmul dword [edx - 0x7523afe2]
push ds
push eax
loopne 0x501e8144
push ds
push eax
in al, 0x8a
push ds
push eax
call 0x3c6ea04f
mov bl, byte [esi]
push eax
invalid

Function at 0x501ed8a4
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
push edi
push ecx
mov byte [esp], cl
mov ebx, edx
mov esi, eax
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongW
mov edi, eax
test bl, bl
je 0x501ed8c5
test edi, 0x40000
je 0x501ed8df
test bl, bl
jne 0x501ed960
mov eax, edi
and eax, 0x40000
cmp eax, 0x40000
jne 0x501ed960
push esi
call sub.user32.dll_IsIconic
cmp eax, 1
sbb eax, eax
inc eax
mov byte [esp + 2], al
push esi
call sub.user32.dll_IsWindowVisible
cmp eax, 1
sbb eax, eax
inc eax
mov byte [esp + 1], al
movzx eax, byte [esp + 1]
or al, byte [esp + 2]
je 0x501ed912
push 0
push esi
call sub.user32.dll_ShowWindow
test bl, bl
je 0x501ed927
or edi, 0x40000
push edi
push 0xffffffffffffffec
push esi
call sub.user32.dll_SetWindowLongW
jmp 0x501ed936
and edi, 0xfffbffff
push edi
push 0xffffffffffffffec
push esi
call sub.user32.dll_SetWindowLongW
movzx eax, byte [esp]
and al, byte [esp + 1]
jne 0x501ed947
cmp byte [esp + 2], 0
je 0x501ed960
cmp byte [esp + 2], 0
je 0x501ed958
push 6
push esi
call sub.user32.dll_ShowWindow
jmp 0x501ed960
push 5
push esi
call sub.user32.dll_ShowWindow
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x501edc08
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
add esp, 0xfffffff8
mov ebx, eax
call sub.user32.dll_GetActiveWindow
mov dword [esp], eax
mov byte [esp + 4], 0
test bl, bl
je 0x501edc2e
mov eax, esp
push eax
push 0x501edbd0
call sub.user32.dll_EnumWindows
jmp 0x501edc41
mov eax, esp
push eax
push 0x501edbb0
call fcn.50122198
push eax
call sub.user32.dll_EnumThreadWindows
movzx eax, byte [esp + 4]
pop ecx
pop edx
pop ebx
ret

Function at 0x501edd20
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
movzx ebx, byte [0x501edd74]
test si, 4
je 0x501edd35
or bl, 1
test si, 8
je 0x501edd3f
or bl, 4
test si, 1
je 0x501edd49
or bl, 8
test si, 2
je 0x501edd53
or bl, 0x10
test si, 0x10
je 0x501edd5d
or bl, 0x20
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x501edd6c
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret
Function at 0x501f7270
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffc60
push ebx
xor edx, edx
mov dword [ebp - 0x3a0], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x501f741d
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x501f73fe
mov dl, 1
mov eax, dword [sym.imp.rtl120.bpl__Classes_TStringList_]
call sub.rtl120.bpl__Classes_TStringList__bctr_qqrv
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
xor edx, edx
call sub.rtl120.bpl__System__UStrAsg_qqrr20System_UnicodeStringx20System_UnicodeString
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x501f73ed
inc eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x114]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
call sym.vcl120.bpl__Controls_Imm32IsIME_qqrp5HKL__
test al, al
je 0x501f73e0
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
push 0
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov dword [ebp - 0x39c], eax
mov byte [ebp - 0x398], 0
lea ecx, [ebp - 0x39c]
mov edx, 0x501f742c
lea eax, [ebp - 0x394]
call sub.rtl120.bpl__Sysutils_StrFmt_qqrpbt1px14System_TVarRecxi
push eax
push 0x80000002
call fcn.50122110
test eax, eax
jne 0x501f73e0
xor eax, eax
push ebp
push 0x501f73d9
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0x200
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x314]
push eax
push 0
push 0
push 0x501f749c
mov eax, dword [ebp - 0xc]
push eax
call fcn.50122118
test eax, eax
jne 0x501f73c2
lea eax, [ebp - 0x3a0]
lea edx, [ebp - 0x314]
mov ecx, pe_nt_image_headers32
call sub.rtl120.bpl__System__UStrFromWArray_qqrr20System_UnicodeStringpbi
mov edx, dword [ebp - 0x3a0]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov ebx, dword [eax]
call dword [ebx + 0x3c]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x3c]
jne 0x501f73c2
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x314]
mov ecx, pe_nt_image_headers32
call sub.rtl120.bpl__System__UStrFromWArray_qqrr20System_UnicodeStringpbi
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x501f73e0
mov eax, dword [ebp - 0xc]
push eax
call fcn.50122108
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x501f72e3
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x29], 0
mov dl, 1
call sub.rtl120.bpl__Classes_TStringList_SetSorted_qqro
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x34]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x501f7424
lea eax, [ebp - 0x3a0]
call sub.rtl120.bpl__System__UStrClr_qqrpv
ret
Function at 0x501fb1b8
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x80]
test esi, esi
je 0x501fb226
mov eax, esi
call sym.vcl120.bpl__Controls_TWinControl_HandleAllocated_qqrv
test al, al
je 0x501fb226
mov eax, dword [ebx + 0x80]
call sym.vcl120.bpl__Controls_TWinControl_GetHandle_qqrv
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x501fb226
mov eax, dword [ebx + 0x80]
mov edx, dword [eax]
call dword [edx + 0xec]
test al, al
je 0x501fb21a
push 0
mov eax, dword [ebx + 0x80]
call sym.vcl120.bpl__Controls_TWinControl_GetHandle_qqrv
push eax
call sub.user32.dll_ShowWindow
xor edx, edx
mov eax, dword [ebx + 0x80]
call sym.vcl120.bpl__Controls_TControl_SetVisible_qqro
jmp 0x501fb226
mov cl, 1
mov edx, dword [ebx + 0x70]
mov eax, ebx
call sym.vcl120.bpl__Forms_TApplication_StartHintTimer_qqri16Forms_TTimerMode
pop esi
pop ebx
ret

Function at 0x501fc368
Capabilities:
Open clipboard

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
xor edx, edx
mov dword [ebp - 0xc], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x501fc40e
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebx + 4], 0
jne 0x501fc3f5
mov eax, dword [sym.vcl120.bpl__Forms_Application]
mov eax, dword [eax]
mov eax, dword [eax + 0x170]
mov dword [ebx + 8], eax
test eax, eax
jne 0x501fc3b0
push ebx
push sym.vcl120.bpl__Clipbrd_TClipboard_MainWndProc_qqrr17Messages_TMessage
call sub.rtl120.bpl__Classes_AllocateHWnd_qqrynpqqrr17Messages_TMessage_v
mov dword [ebx + 8], eax
mov byte [ebx + 0xc], 1
mov eax, dword [ebx + 8]
push eax
call sub.user32.dll_OpenClipboard
test eax, eax
jne 0x501fc3f1
call fcn.501221a0
lea edx, [ebp - 0xc]
call sub.rtl120.bpl__Sysutils_SysErrorMessage_qqrui
mov eax, dword [ebp - 0xc]
mov dword [ebp - 8], eax
mov byte [ebp - 4], 0x11
lea eax, [ebp - 8]
push eax
push 0
mov ecx, dword [sym.vcl120.bpl__Consts__SCannotOpenClipboard]
mov dl, 1
mov eax, dword [sym.vcl120.bpl__Clipbrd_EClipboardException_]
call sub.rtl120.bpl__Sysutils_Exception__bctr_qqrp20System_TResStringRecpx14System_TVarRecxi
call sub.rtl120.bpl__System__RaiseExcept_qqrv
mov byte [ebx + 0xd], 0
inc dword [ebx + 4]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x501fc415
lea eax, [ebp - 0xc]
call sub.rtl120.bpl__System__UStrClr_qqrpv
ret