joyce8/EMBER2024-capa huggingface dataset:
Function at 0x501f7254
Capabilities:
Get keyboard layout
Query or enumerate registry value

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 0x501f7401
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x501f73e2
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 0x501f73d1
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 0x501f73c4
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, 0x501f7410
lea eax, [ebp - 0x394]
call fcn.5012330c
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x501f73c4
xor eax, eax
push ebp
push 0x501f73bd
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 0x501f7480
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x501f73a6
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 0x501f73a6
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 0x501f73c4
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x501f72c7
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 0x501f7408
lea eax, [ebp - 0x3a0]
call sub.rtl120.bpl__System__UStrClr_qqrpv
ret
Function at 0x501fb19c
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x80]
test esi, esi
je 0x501fb20a
mov eax, esi
call sym.vcl120.bpl__Controls_TWinControl_HandleAllocated_qqrv
test al, al
je 0x501fb20a
mov eax, dword [ebx + 0x80]
call sym.vcl120.bpl__Controls_TWinControl_GetHandle_qqrv
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x501fb20a
mov eax, dword [ebx + 0x80]
mov edx, dword [eax]
call dword [edx + 0xec]
test al, al
je 0x501fb1fe
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 0x501fb20a
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 0x501fc34c
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 0x501fc3f2
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebx + 4], 0
jne 0x501fc3d9
mov eax, dword [0x50243f9c]
mov eax, dword [eax]
mov eax, dword [eax + 0x170]
mov dword [ebx + 8], eax
test eax, eax
jne 0x501fc394
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 0x501fc3d5
call sub.kernel32.dll_GetLastError
lea edx, [ebp - 0xc]
call fcn.5012335c
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 fcn.5012338c
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 0x501fc3f9
lea eax, [ebp - 0xc]
call sub.rtl120.bpl__System__UStrClr_qqrpv
ret
Function at 0x501fc5c4
Capabilities:
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov dword [ebp - 4], eax
mov ebx, dword [ebp + 8]
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x18]
xor edx, edx
push ebp
push 0x501fc696
push dword fs:[edx]
mov dword fs:[edx], esp
push ebx
push 0x2002
call sub.kernel32.dll_GlobalAlloc
mov dword [ebp - 8], eax
xor edx, edx
push ebp
push 0x501fc668
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_GlobalLock
xor edx, edx
push ebp
push 0x501fc657
push dword fs:[edx]
mov dword fs:[edx], esp
mov edx, eax
mov eax, edi
mov ecx, ebx
call sub.rtl120.bpl__System_Move_qqrpxvpvi
mov eax, dword [ebp - 4]
call sym.vcl120.bpl__Clipbrd_TClipboard_Adding_qqrv
mov eax, dword [ebp - 8]
push eax
movzx eax, si
push eax
call sub.user32.dll_SetClipboardData
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x501fc65e
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_GlobalUnlock
ret

Function at 0x501fc718
Capabilities:
Read clipboard data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x18]
xor eax, eax
push ebp
push 0x501fc788
push dword fs:[eax]
mov dword fs:[eax], esp
push 0xd
call sub.user32.dll_GetClipboardData
mov ebx, eax
test ebx, ebx
jne 0x501fc752
xor eax, eax
mov dword [ebp - 8], eax
jmp 0x501fc772
push ebx
call sub.kernel32.dll_GlobalLock
mov edx, eax
mov ecx, edi
dec ecx
mov eax, esi
call fcn.501232ac
call fcn.5012328c
mov dword [ebp - 8], eax
push ebx
call sub.kernel32.dll_GlobalUnlock
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x501fc78f
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x14]
ret

Function at 0x501fc7c0
Capabilities:
Read clipboard data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x18]
push 0xd
call sub.user32.dll_GetClipboardData
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x501fc834
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 8], 0
je 0x501fc806
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_GlobalLock
mov edx, eax
mov eax, ebx
call sub.rtl120.bpl__System__UStrFromPWChar_qqrr20System_UnicodeStringpb
jmp 0x501fc80f
mov eax, ebx
xor edx, edx
call sub.rtl120.bpl__System__UStrAsg_qqrr20System_UnicodeStringx20System_UnicodeString
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x501fc83b
cmp dword [ebp - 8], 0
je 0x501fc82b
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_GlobalUnlock
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x14]
ret
Function at 0x501fc8e4
Capabilities:
Read clipboard data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x18]
xor eax, eax
push ebp
push 0x501fc98c
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
call sub.user32.dll_EnumClipboardFormats
mov ebx, eax
test bx, bx
je 0x501fc95f
mov edx, ebx
mov eax, dword [sym.vcl120.bpl__Graphics_TPicture_]
call sym.vcl120.bpl__Graphics_TPicture_SupportsClipboardFormat_qqrus
test al, al
je 0x501fc94f
movzx eax, bx
push eax
call sub.user32.dll_GetClipboardData
mov esi, eax
push 9
call sub.user32.dll_GetClipboardData
mov edi, eax
push edi
mov ecx, esi
mov edx, ebx
mov eax, dword [ebp - 8]
call sym.vcl120.bpl__Graphics_TPicture_LoadFromClipboardFormat_qqrusuip10HPALETTE__
call sub.rtl120.bpl__System__TryFinallyExit_qqrv
jmp 0x501fc993
movzx eax, bx
push eax
call sub.user32.dll_EnumClipboardFormats
mov ebx, eax
test bx, bx
jne 0x501fc917
mov ecx, dword [sym.vcl120.bpl__Consts__SInvalidClipFmt]
mov dl, 1
mov eax, dword [sym.vcl120.bpl__Clipbrd_EClipboardException_]
call fcn.50123384
call sub.rtl120.bpl__System__RaiseExcept_qqrv
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x501fc993
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x14]
ret
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret

Function at 0x501fc99c
Capabilities:
Read clipboard data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x18]
xor eax, eax
push ebp
push 0x501fc9f8
push dword fs:[eax]
mov dword fs:[eax], esp
push 2
call sub.user32.dll_GetClipboardData
mov esi, eax
push 9
call sub.user32.dll_GetClipboardData
mov edi, eax
push edi
mov ecx, esi
mov dx, 2
mov eax, dword [ebp - 8]
mov ebx, dword [eax]
call dword [ebx + 0x64]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x501fc9ff
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x14]
ret

Function at 0x501fca08
Capabilities:
Read clipboard data

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x18]
xor edx, edx
push ebp
push 0x501fca5d
push dword fs:[edx]
mov dword fs:[edx], esp
push 3
call sub.user32.dll_GetClipboardData
mov ebx, eax
push 9
call sub.user32.dll_GetClipboardData
push eax
mov ecx, ebx
mov dx, 3
mov eax, esi
mov ebx, dword [eax]
call dword [ebx + 0x64]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x501fca64
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x14]
ret
Function at 0x501fe50c
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffde0
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x220], ecx
mov dword [ebp - 0x21c], ecx
mov dword [ebp - 0x218], ecx
mov dword [ebp - 0x210], ecx
mov dword [ebp - 0x20c], ecx
mov ebx, edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x501fe7b3
push dword fs:[eax]
mov dword fs:[eax], esp
cmp ebx, 1
jl 0x501fe56f
lea edx, [ebp - 0x20c]
mov eax, dword [ebp - 4]
call sym.vcl120.bpl__Mask_TCustomMaskEdit_GetEditText_qqrv
mov eax, dword [ebp - 0x20c]
mov edx, ebx
call fcn.501233cc
cmp al, 1
jne 0x501fe56f
dec ebx
mov dword [ebp - 8], ebx
mov eax, dword [ebp - 4]
call sym.vcl120.bpl__Mask_TCustomMaskEdit_GetMasked_qqrv
test al, al
je 0x501fe712
cmp dword [ebp - 8], 0
jge 0x501fe58d
xor eax, eax
mov dword [ebp - 8], eax
mov ebx, dword [ebp - 8]
inc ebx
lea edx, [ebp - 0x210]
mov eax, dword [ebp - 4]
call sym.vcl120.bpl__Mask_TCustomMaskEdit_GetEditText_qqrv
mov eax, dword [ebp - 0x210]
mov dword [ebp - 0x214], eax
mov eax, dword [ebp - 0x214]
test eax, eax
je 0x501fe5ba
sub eax, 4
mov eax, dword [eax]
cmp ebx, eax
jge 0x501fe5ee
lea edx, [ebp - 0x218]
mov eax, dword [ebp - 4]
call sym.vcl120.bpl__Mask_TCustomMaskEdit_GetEditText_qqrv
mov eax, dword [ebp - 0x218]
movzx eax, word [eax + ebx*2 - 2]
cmp ax, 0xd800
jb 0x501fe5e3
cmp ax, 0xdfff
jbe 0x501fe5e7
xor eax, eax
jmp 0x501fe5e9
mov al, 1
test al, al
je 0x501fe5ee
inc ebx
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x298]
cmp eax, dword [ebp - 8]
jg 0x501fe602
mov dword [ebp - 8], eax
mov ebx, dword [ebp - 8]
mov ecx, ebx
mov edx, ebx
mov eax, dword [ebp - 4]
call sym.vcl120.bpl__Mask_TCustomMaskEdit_SetSel_qqrii
cmp ebx, dword [ebp - 8]
je 0x501fe704
lea eax, [ebp - 0x108]
push eax
call sub.user32.dll_GetKeyboardState
mov edx, pe_nt_image_headers32
lea eax, [ebp - 0x208]
mov byte [eax], 0
inc eax
dec edx
jne 0x501fe62e
mov byte [ebp - 0x1f8], 0x81
mov eax, dword [ebp - 4]
mov si, 0xffc7
call sub.rtl120.bpl__System__CallDynaInst_qqrv
and eax, 0x7f
movzx eax, word [eax*2 + 0x502439b0]
mov byte [ebp + eax - 0x208], 0x81
lea eax, [ebp - 0x208]
push eax
call sub.user32.dll_SetKeyboardState
mov eax, dword [ebp - 4]
mov byte [eax + 0x2ac], 1
xor eax, eax
push ebp
push 0x501fe6f1
push dword fs:[eax]
mov dword fs:[eax], esp
push 1
mov eax, dword [ebp - 4]
mov si, 0xffc7
call sub.rtl120.bpl__System__CallDynaInst_qqrv
and eax, 0x7f
movzx eax, word [eax*2 + 0x502439b0]
push eax
push pe_nt_image_headers32
mov eax, dword [ebp - 4]
call sym.vcl120.bpl__Controls_TWinControl_GetHandle_qqrv
push eax
call sub.user32.dll_SendMessageW
push 1
mov eax, dword [ebp - 4]
mov si, 0xffc7
call sub.rtl120.bpl__System__CallDynaInst_qqrv
and eax, 0x7f
invalid
mov bh, 4
inc ebp
mov al, 0x39
invalid
Function at 0x50212d14
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff40
push ebx
push esi
mov ebx, eax
lea eax, [ebp - 0x74]
mov edx, dword [0x5020e6f8]
call sub.rtl120.bpl__System__InitializeRecord_qqrpvt1
lea eax, [ebp - 0x20]
mov edx, dword [sym.vcl120.bpl___xp_20Olectnrs_TCreateInfo]
call sub.rtl120.bpl__System__InitializeRecord_qqrpvt1
lea esi, [ebp - 0xc0]
xor eax, eax
push ebp
push 0x50212ebe
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 0x75], 0
mov eax, ebx
call sym.vcl120.bpl__Olectnrs_TOleContainer_GetCanPaste_qqrv
test al, al
je 0x50212e94
lea eax, [ebp - 0x74]
xor ecx, ecx
mov edx, 0x54
call sub.rtl120.bpl__System__FillChar_qqrpvib
mov eax, esi
xor ecx, ecx
mov edx, 0x48
call sub.rtl120.bpl__System__FillChar_qqrpvib
mov dword [ebp - 0x74], 0x54
mov eax, dword [0x50243f9c]
mov eax, dword [eax]
mov eax, dword [eax + 0x170]
mov dword [ebp - 0x6c], eax
mov dword [ebp - 0x64], 0x5020f954
mov dword [ebp - 0x4c], esi
mov dword [ebp - 0x48], 2
mov dword [ebp - 0x44], 0x50245298
mov dword [ebp - 0x40], 1
movzx eax, word [0x50245294]
mov word [esi], ax
mov dword [esi + 8], 1
mov dword [esi + 0xc], 0xffffffff
mov dword [esi + 0x10], 8
mov eax, 0x50212ed0
mov dword [esi + 0x14], eax
mov eax, 0x50212ed0
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], 0xa00
movzx eax, word [0x50245298]
mov word [esi + 0x24], ax
mov dword [esi + 0x2c], 1
mov dword [esi + 0x30], 0xffffffff
mov dword [esi + 0x34], 4
mov eax, 0x50212ed0
mov dword [esi + 0x38], eax
mov eax, 0x50212ed0
mov dword [esi + 0x3c], eax
mov dword [esi + 0x40], 0x801
xor eax, eax
push ebp
push 0x50212e8d
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x74]
push eax
call sub.oledlg.dll_OleUIPasteSpecialW
dec eax
jne 0x50212e77
cmp dword [ebp - 0x30], 0
je 0x50212e4a
mov byte [ebp - 0x20], 4
jmp 0x50212e4e
mov byte [ebp - 0x20], 3
test byte [ebp - 0x70], 8
setne al
mov byte [ebp - 0x1f], al
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 4]
mov edx, dword [ebp - 0x50]
call sub.rtl120.bpl__System__IntfCopy_qqrr45System__DelphiInterface_t17System_IInterface_x45System__DelphiInterface_t17System_IInte
lea edx, [ebp - 0x20]
mov eax, ebx
call sym.vcl120.bpl__Olectnrs_TOleContainer_CreateObjectFromInfo_qqrrx20Olectnrs_TCreateInfo
mov byte [ebp - 0x75], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x50212e94
mov eax, dword [ebp - 0x2c]
call sym.vcl120.bpl__Olectnrs_DestroyMetaPict_qqrui
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x50212ec5
lea eax, [ebp - 0x74]
mov edx, dword [0x5020e6f8]
call sub.rtl120.bpl__System__FinalizeRecord_qqrpvt1
lea eax, [ebp - 0x20]
mov edx, dword [sym.vcl120.bpl___xp_20Olectnrs_TCreateInfo]
call sub.rtl120.bpl__System__FinalizeRecord_qqrpvt1
ret

Function at 0x502178a8
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
xor ebx, ebx
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x502178bc
mov ebx, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x502178cb
or ebx, 2
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x502178da
or ebx, 4
mov eax, ebx
pop ebx
ret
Function at 0x502203ac
Capabilities:
Hide graphical window

Disassembly:
push ebx
add esp, 0xfffffff0
mov ebx, eax
mov eax, ebx
call sym.vcl120.bpl__Olectrls_TOleControl_CreateControl_qqrv
test byte [ebx + 0x295], 4
jne 0x50220441
mov edx, esp
mov eax, ebx
call sym.vcl120.bpl__Controls_TControl_GetBoundsRect_qqrv
push esp
mov eax, ebx
call sym.vcl120.bpl__Controls_TWinControl_GetParentHandle_qqrv
push eax
push 0
mov eax, ebx
test eax, eax
je 0x502203e1
sub eax, 0xfffffd24
push eax
push 0
push 0xfffffffffffffffb
mov eax, dword [ebx + 0x270]
push eax
mov eax, dword [eax]
call dword [eax + 0x2c]
cmp dword [ebx + 0x284], 0
jne 0x50220412
mov ecx, dword [sym.vcl120.bpl__Oleconst__SCannotActivate]
mov dl, 1
mov eax, dword [sym.imp.rtl120.bpl__Comobj_EOleError_]
call fcn.50123384
call sub.rtl120.bpl__System__RaiseExcept_qqrv
mov eax, ebx
call sym.vcl120.bpl__Olectrls_TOleControl_HookControlWndProc_qqrv
cmp byte [ebx + 0x57], 0
jne 0x50220448
mov eax, ebx
call sym.vcl120.bpl__Controls_TWinControl_GetHandle_qqrv
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x50220448
push 0
mov eax, ebx
call sym.vcl120.bpl__Controls_TWinControl_GetHandle_qqrv
push eax
call sub.user32.dll_ShowWindow
jmp 0x50220448
mov eax, ebx
call sym.vcl120.bpl__Controls_TWinControl_CreateWnd_qqrv
add esp, 0x10
pop ebx
ret

Function at 0x502241fc
Capabilities:
Packed with generic packer

Disassembly:
xor al, 0x19
adc dl, byte [eax + 0x3c]
sbb dword [edx], edx
push eax
inc esp
sbb dword [edx], edx
push eax
adc al, 0x19
adc dl, byte [eax + 0x1c]
sbb dword [edx], edx
push eax
int3
pop es
or eax, 0x70654454
outsb dx, byte gs:[esi]
outsb dx, byte gs:[esi]
arpl word [ecx + 0x65], bp
jae 0x502241c4
inc ecx
and dl, byte [eax + 0x14]
and dword [eax + edx*2], 0x53060000
jbe 0x5022427c
dec ebp
jb 0x5022421d
add byte [ebx + 0x224278c0], cl
push eax
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
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [edx + 0x22], 0x50
dec esp
add byte [eax], al
add al, bl
and byte [eax + edx*2], 0xe0
adc byte [edx], dl
push eax
call 0x80725465
adc dword [edx], edx
push eax
sub byte [ecx], dl
adc dl, byte [eax - 0x6c]
sbb al, 0x12
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, 0x8c501210
sbb al, 0x12
push eax

Function at 0x50224278
Capabilities:
Packed with generic packer

Disassembly:
pushfd
sbb al, 0x12
push eax
mov ah, 0x4c
and dl, byte [eax + 0xe]
push esp
push ebx
jb 0x502242fc
imul esp, dword [ebx + 0x65], 0x65726854
popal
nop
xchg esp, eax
inc edx
and dl, byte [eax + 7]
pop es
add byte [ebx + 0x22], al
push eax
Function at 0x50225d10
Capabilities:
Create service

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 4], ecx
mov dword [ebp - 8], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x50225eb5
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 4]
xor eax, eax
call sub.rtl120.bpl__System_ParamStr_qqri
cmp word [ebx + 0xa2], 0
je 0x50225d59
mov edx, ebx
mov eax, dword [ebx + 0xa4]
call dword [ebx + 0xa0]
mov eax, dword [ebx + 0x90]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jle 0x50225d6d
lea esi, [ebp - 0xc]
jmp 0x50225d6f
xor esi, esi
cmp dword [ebx + 0x80], 0
jne 0x50225d7c
xor edi, edi
jmp 0x50225d89
mov eax, dword [ebx + 0x80]
call sub.rtl120.bpl__System__UStrToPWChar_qqrx20System_UnicodeString
mov edi, eax
mov eax, dword [ebx + 0x7c]
call sub.rtl120.bpl__System__UStrToPWChar_qqrx20System_UnicodeString
push eax
push edi
lea edx, [ebp - 0x14]
mov eax, ebx
call sym.vcl120.bpl__Svcmgr_TService_GetNTDependencies_qqrv
mov eax, dword [ebp - 0x14]
call sub.rtl120.bpl__System__UStrToPWChar_qqrx20System_UnicodeString
push eax
push esi
mov eax, dword [ebx + 0x74]
call sub.rtl120.bpl__System__UStrToPWChar_qqrx20System_UnicodeString
push eax
mov eax, dword [ebp - 4]
call sub.rtl120.bpl__System__UStrToPWChar_qqrx20System_UnicodeString
push eax
mov eax, ebx
call sym.vcl120.bpl__Svcmgr_TService_GetNTErrorSeverity_qqrv
push eax
mov eax, ebx
call sym.vcl120.bpl__Svcmgr_TService_GetNTStartType_qqrv
push eax
mov eax, ebx
call sym.vcl120.bpl__Svcmgr_TService_GetNTServiceType_qqrv
push eax
push 0xf01ff
lea edx, [ebp - 0x18]
mov eax, ebx
call sym.vcl120.bpl__Svcmgr_TService_GetDisplayName_qqrv
mov eax, dword [ebp - 0x18]
call sub.rtl120.bpl__System__UStrToPWChar_qqrx20System_UnicodeString
push eax
mov eax, dword [ebx + 8]
call sub.rtl120.bpl__System__UStrToPWChar_qqrx20System_UnicodeString
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_CreateServiceW
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0xc]
mov dword [ebx + 0x90], eax
cmp dword [ebp - 0x10], 0
jne 0x50225e12
call fcn.5012341c
xor edx, edx
push ebp
push 0x50225e8b
push dword fs:[edx]
mov dword fs:[edx], esp
xor edx, edx
push ebp
push 0x50225e50
push dword fs:[edx]
mov dword fs:[edx], esp
cmp word [ebx + 0xaa], 0
je 0x50225e46
mov edx, ebx
mov eax, dword [ebx + 0xac]
call dword [ebx + 0xa8]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x50225e74
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x50225e92
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_CloseServiceHandle
ret
Function at 0x50225ec4
Capabilities:
Delete service

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
cmp word [eax + 0xb2], 0
je 0x50225ef0
mov esi, dword [ebp - 4]
mov edx, dword [ebp - 4]
mov eax, dword [esi + 0xb4]
call dword [esi + 0xb0]
push 0xf01ff
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
call sub.rtl120.bpl__System__UStrToPWChar_qqrx20System_UnicodeString
push eax
push ebx
call sub.advapi32.dll_OpenServiceW
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x50225f15
call fcn.5012341c
xor eax, eax
push ebp
push 0x50225f4c
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_DeleteService
test eax, eax
jne 0x50225f35
call fcn.5012341c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x50225f53
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_CloseServiceHandle
ret

Function at 0x502285e4
Capabilities:
Enumerate gui resources

Disassembly:
mov byte [eax + 0xc], 0
mov byte [eax + 0xd], 0
xor edx, edx
mov dword [eax + 4], edx
push eax
push 0x5022851c
call sub.user32.dll_EnumWindows
ret

Function at 0x50228708
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
mov esi, eax
xor eax, eax
push ebp
push 0x50228787
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
call fcn.5022813c
call sub.kernel32.dll_GetTickCount
mov ebx, eax
push 0
call fcn.50123414
call sub.kernel32.dll_GetTickCount
sub eax, ebx
cmp eax, 0x3e8
jbe 0x5022872d
lea ecx, [ebp - 4]
xor edx, edx
mov eax, esi
call fcn.50227cec
cmp dword [ebp - 4], 0
je 0x50228771
mov eax, dword [esi + 0x1c]
mov edx, dword [eax]
call dword [edx + 0xc]
mov ebx, eax
push 0
push 9
mov eax, dword [ebp - 4]
call sub.rtl120.bpl__System__UStrToPWChar_qqrx20System_UnicodeString
push eax
push ebx
call sub.user32.dll_WinHelpW
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5022878e
lea eax, [ebp - 4]
call sub.rtl120.bpl__System__UStrClr_qqrpv
ret