joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4b3628
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov ebx, eax
cmp dword [ebp - 8], 0
je 0x4b3646
mov eax, dword [ebp - 8]
xor edx, edx
mov dword [eax], edx
push 0x20
lea ecx, [ebp - 0x10]
mov eax, 0x533aab
mov edx, 0x128
call fcn.004b3444
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x4b37b1
xor eax, eax
push ebp
push 0x4b37aa
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x10]
add eax, 0x128
mov dword [ebp - 0x14], eax
xor ecx, ecx
mov edx, 0x20
mov eax, dword [ebp - 0x14]
call fcn.004029b0
mov eax, ebx
xor edx, edx
mov ecx, dword [ebp - 0x14]
mov dword [ecx], eax
mov dword [ecx + 4], edx
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp + 0x10]
mov dword [eax + 8], edx
mov edx, dword [ebp + 0x14]
mov dword [eax + 0xc], edx
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp + 8]
mov dword [eax + 0x10], edx
mov edx, dword [ebp + 0xc]
mov dword [eax + 0x14], edx
mov eax, dword [ebp - 0x14]
mov dword [eax + 0x18], 0
mov dword [eax + 0x1c], 0
xor eax, eax
push ebp
push 0x4b370a
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x10]
call fcn.004b2554
test al, al
jne 0x4b3700
mov dword [ebp - 0xc], 0xc00000e5
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
call sub.rtl250.bpl__System__TryFinallyExit_qqrv
jmp 0x4b37b1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4b3714
mov eax, dword [ebp - 0x14]
cmp dword [eax + 0x1c], 0
jne 0x4b3721
cmp dword [eax + 0x18], 0
je 0x4b3732
mov eax, dword [ebp - 0x14]
cmp dword [eax + 0x1c], 0
jne 0x4b3740
cmp dword [eax + 0x18], 0xffffffff
jne 0x4b3740
mov dword [ebp - 0xc], 0xc0000008
call sub.rtl250.bpl__System__TryFinallyExit_qqrv
jmp 0x4b37b1
cmp dword [ebp - 8], 0
je 0x4b3751
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x18]
mov edx, dword [ebp - 8]
mov dword [edx], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x18]
push eax
call sub.kernel32.dll_ResumeThread
cmp dword [ebp - 4], 0
jbe 0x4b378a
mov eax, dword [ebp - 4]
push eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x18]
push eax
call sub.kernel32.dll_WaitForSingleObject
cmp dword [ebp - 4], 0xffffffff
jne 0x4b378a
cmp dword [ebp - 8], 0
jne 0x4b378a
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x18]
call sub.AxComponentsRTL.bpl__Axrtl_Winapi_Ntdll_Ntdll_NtClose_qqrui
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4b37b1
push 0x8000
xor ecx, ecx
mov edx, dword [ebp - 0x10]
or eax, 0xffffffff
call fcn.0041cfd8
ret
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x4b85f0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
mov ebx, edx
xor ecx, ecx
mov edx, 1
call fcn.004b87d8
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x4b8617
mov dword [ebp - 4], 6
jmp 0x4b8660
xor eax, eax
push ebp
push 0x4b8659
push dword fs:[eax]
mov dword fs:[eax], esp
push ebx
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_TerminateProcess
test eax, eax
jne 0x4b863d
call sub.kernel32.dll_GetLastError
mov dword [ebp - 4], eax
jmp 0x4b8642
xor eax, eax
mov dword [ebp - 4], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4b8660
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_CloseHandle
ret
mov eax, dword [ebp - 4]
pop ebx
pop ecx
pop ecx
pop ebp
ret
Function at 0x4b8db4
Capabilities:
Enumerate gui resources

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdbc
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x244], ebx
mov esi, edx
lea edi, [ebp - 0x230]
push ecx
mov ecx, 0x8b
rep movsd dword es:[edi], dword [esi]
pop ecx
mov esi, ecx
mov ebx, eax
xor eax, eax
push ebp
push 0x4b8f34
push dword fs:[eax]
mov dword fs:[eax], esp
push esi
lea edi, [ebx + 0x10]
lea esi, [ebp - 0x230]
mov ecx, 0x8b
rep movsd dword es:[edi], dword [esi]
pop esi
mov byte [ebx + 0x249], 0
mov byte [ebx + 0x248], 0
mov byte [ebx + 0x23c], 0
lea eax, [ebx + 0x240]
mov edx, dword [sym.imp.rtl250.bpl__System_Sysutils_EmptyStr]
mov edx, dword [edx]
call sub.rtl250.bpl__System__UStrAsg_qqrr20System_UnicodeStringx20System_UnicodeString
lea eax, [ebx + 0x244]
call sub.rtl250.bpl__System__IntfClear_qqrr44System__DelphiInterface_17System_IInterface_
lea eax, [ebx + 0x24c]
mov edx, 0x4b8f50
call sub.rtl250.bpl__System__UStrAsg_qqrr20System_UnicodeStringx20System_UnicodeString
mov eax, ebx
call fcn.004b8808
mov dword [ebp - 0x240], eax
mov byte [ebp - 0x23c], 1
xor eax, eax
mov dword [ebp - 0x238], eax
lea eax, [ebp - 0x240]
push eax
push 0x4b92c8
call sub.user32.dll_EnumWindows
mov edi, dword [ebp - 0x238]
test edi, edi
je 0x4b8e99
mov ecx, edi
mov dl, 1
mov eax, dword [0x4b3c44]
call fcn.004ba9b8
mov edx, eax
test edx, edx
je 0x4b8e8e
sub edx, 0xffffffec
lea eax, [ebx + 0x244]
call sub.rtl250.bpl__System__IntfCopy_qqrr44System__DelphiInterface_17System_IInterface_x44System__DelphiInterface_17System_IInterf
mov eax, esi
call sub.rtl250.bpl__System__UStrLen_qqrx20System_UnicodeString
test eax, eax
jle 0x4b8eb3
lea eax, [ebx + 0x240]
mov edx, esi
call sub.rtl250.bpl__System__UStrAsg_qqrr20System_UnicodeStringx20System_UnicodeString
jmp 0x4b8f1b
xor ecx, ecx
mov edx, 0x410
mov eax, ebx
call fcn.004b87d8
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x4b8f1b
xor eax, eax
push ebp
push 0x4b8f14
push dword fs:[eax]
mov dword fs:[eax], esp
lea ecx, [ebp - 0x244]
lea eax, [ebp - 0x230]
mov edx, dword [ebp - 4]
call fcn.004badc8
mov edx, dword [ebp - 0x244]
lea eax, [ebx + 0x240]
call sub.rtl250.bpl__System__UStrAsg_qqrr20System_UnicodeStringx20System_UnicodeString
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4b8f1b
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_CloseHandle
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4b8f3b
lea eax, [ebp - 0x244]
call sub.rtl250.bpl__System__UStrClr_qqrpv
ret
Function at 0x4b9184
Capabilities:
Enumerate gui resources

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], edx
mov ebx, eax
mov eax, dword [ebp - 4]
call sub.rtl250.bpl__System__IntfAddRef_qqrx44System__DelphiInterface_17System_IInterface_
lea eax, [ebp - 0xc]
mov edx, dword [0x4b4754]
call sub.rtl250.bpl__System__InitializeRecord_qqrpvt1
xor eax, eax
push ebp
push 0x4b9232
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0xc]
mov edx, dword [ebp - 4]
call sub.rtl250.bpl__System__IntfCopy_qqrr44System__DelphiInterface_17System_IInterface_x44System__DelphiInterface_17System_IInterf
mov dl, 1
mov eax, dword [0x4b3f54]
call fcn.004ba8c8
mov esi, eax
mov dword [ebp - 8], esi
lea eax, [esi + 0x14]
mov edx, ebx
test edx, edx
je 0x4b91e0
sub edx, 0xfffffff8
mov ecx, 0x4b9240
call sub.rtl250.bpl__System__IntfCast_qqrr44System__DelphiInterface_17System_IInterface_x44System__DelphiInterface_17System_IInterf
lea eax, [ebp - 0xc]
push eax
push 0x4b933c
call sub.user32.dll_EnumWindows
mov eax, edi
mov edx, dword [ebp - 8]
test edx, edx
je 0x4b9204
sub edx, 0xfffffff8
mov ecx, 0x4b9250
call sub.rtl250.bpl__System__IntfCast_qqrr44System__DelphiInterface_17System_IInterface_x44System__DelphiInterface_17System_IInterf
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4b9239
lea eax, [ebp - 0xc]
mov edx, dword [0x4b4754]
call sub.rtl250.bpl__System__FinalizeRecord_qqrpvt1
lea eax, [ebp - 4]
call sub.rtl250.bpl__System__IntfClear_qqrr44System__DelphiInterface_17System_IInterface_
ret

Function at 0x4b9cf0
Capabilities:
Enumerate gui resources

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
mov ebx, ecx
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
call sub.rtl250.bpl__System__IntfAddRef_qqrx44System__DelphiInterface_17System_IInterface_
lea eax, [ebp - 0xc]
mov edx, dword [0x4b4754]
call sub.rtl250.bpl__System__InitializeRecord_qqrpvt1
xor eax, eax
push ebp
push 0x4b9d82
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0xc]
mov edx, dword [ebp - 4]
call sub.rtl250.bpl__System__IntfCopy_qqrr44System__DelphiInterface_17System_IInterface_x44System__DelphiInterface_17System_IInterf
mov dl, 1
mov eax, dword [0x4b3db4]
call fcn.004ba8c8
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push 0x4b933c
call sub.user32.dll_EnumWindows
mov eax, ebx
mov edx, dword [ebp - 8]
test edx, edx
je 0x4b9d54
sub edx, 0xfffffff8
mov ecx, 0x4b9d90
call sub.rtl250.bpl__System__IntfCast_qqrr44System__DelphiInterface_17System_IInterface_x44System__DelphiInterface_17System_IInterf
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4b9d89
lea eax, [ebp - 0xc]
mov edx, dword [0x4b4754]
call sub.rtl250.bpl__System__FinalizeRecord_qqrpvt1
lea eax, [ebp - 4]
call sub.rtl250.bpl__System__IntfClear_qqrr44System__DelphiInterface_17System_IInterface_
ret
Function at 0x4ba120
Capabilities:
Enumerate processes via ntquerysysteminformation
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
call sub.rtl250.bpl__System__IntfAddRef_qqrx44System__DelphiInterface_17System_IInterface_
xor eax, eax
push ebp
push 0x4ba1ec
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
je 0x4ba1d6
xor eax, eax
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0xc]
push eax
push 0
push 0
push 5
call sub.ntdll.dll_NtQuerySystemInformation
cmp dword [ebp - 0xc], 0
jbe 0x4ba1d1
mov eax, dword [ebp - 0xc]
call sub.rtl250.bpl__System__GetMem_qqri
mov dword [ebp - 8], eax
xor edx, edx
push ebp
push 0x4ba1ca
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebp - 0xc]
lea edx, [ebp - 0xc]
push edx
push eax
mov eax, dword [ebp - 8]
push eax
push 5
call sub.ntdll.dll_NtQuerySystemInformation
mov ebx, dword [ebp - 8]
jmp 0x4ba1a2
mov esi, dword [ebx]
test esi, esi
je 0x4ba1a0
add ebx, esi
jmp 0x4ba1a2
xor ebx, ebx
test ebx, ebx
je 0x4ba1b4
mov edx, ebx
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 0xc]
cmp al, 1
je 0x4ba196
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4ba1d6
mov eax, dword [ebp - 8]
call sub.rtl250.bpl__System__FreeMem_qqrpv
ret
call sub.rtl250.bpl__System_Sysutils_RaiseLastOSError_qqrv
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4ba1f3
lea eax, [ebp - 4]
call sub.rtl250.bpl__System__IntfClear_qqrr44System__DelphiInterface_17System_IInterface_
ret

Function at 0x4cb458
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
call sub.rtl250.bpl__System_Syncobjs_TCriticalSection_Enter_qqrv
xor eax, eax
push ebp
push 0x4cb4d9
push dword fs:[eax]
mov dword fs:[eax], esp
mov dl, 1
mov eax, dword [ebp - 4]
call fcn.004cc600
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
xor edx, edx
call fcn.004d3058
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x14]
mov edx, dword [eax]
call dword [edx + 0x30]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x18]
mov edx, dword [eax]
call dword [edx + 0x3c]
mov eax, dword [ebp - 4]
mov dword [eax + 0x58], 0
mov dword [eax + 0x5c], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4cb4e0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
call sub.rtl250.bpl__System_Syncobjs_TCriticalSection_Leave_qqrv
xor edx, edx
mov eax, dword [ebp - 4]
call fcn.004cc4dc
ret
Function at 0x4cb4e4
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push ebx
push esi
test dl, dl
je 0x4cb4f9
add esp, 0xfffffff0
call sub.rtl250.bpl__System__ClassCreate_qqrpvzc
mov ebx, edx
mov esi, eax
xor eax, eax
push ebp
push 0x4cb5df
push dword fs:[eax]
mov dword fs:[eax], esp
xor edx, edx
mov eax, esi
call sub.rtl250.bpl__System_TObject__bctr_qqrv
mov dl, 1
mov eax, dword [0x4c344c]
call fcn.004d2594
mov dword [esi + 4], eax
mov dl, 1
mov eax, dword [sym.imp.rtl250.bpl__System_Syncobjs_TCriticalSection_]
call sub.rtl250.bpl__System_Syncobjs_TCriticalSection__bctr_qqrv
mov dword [esi + 0xc], eax
mov dl, 1
mov eax, dword [sym.imp.rtl250.bpl__System_Syncobjs_TCriticalSection_]
call sub.rtl250.bpl__System_Syncobjs_TCriticalSection__bctr_qqrv
mov dword [esi + 0x10], eax
xor eax, eax
mov dword [esi + 0x20], eax
mov dword [esi + 0x24], eax
lea edx, [ebp - 4]
mov eax, dword [0x4b47b0]
call fcn.004b9c60
mov edx, dword [ebp - 4]
lea eax, [esi + 0x18]
call sub.rtl250.bpl__System__IntfCopy_qqrr44System__DelphiInterface_17System_IInterface_x44System__DelphiInterface_17System_IInterf
lea ecx, [ebp - 8]
xor edx, edx
xor eax, eax
call fcn.004c1024
mov edx, dword [ebp - 8]
lea eax, [esi + 0x14]
call sub.rtl250.bpl__System__IntfCopy_qqrr44System__DelphiInterface_17System_IInterface_x44System__DelphiInterface_17System_IInterf
push esi
push 0x4cb9c0
mov eax, dword [esi + 0x14]
mov edx, dword [eax]
call dword [edx + 0x1c]
xor eax, eax
mov dword [esi + 0x28], eax
xor eax, eax
mov dword [esi + 8], eax
xor eax, eax
mov dword [esi + 0x30], eax
xor eax, eax
mov dword [esi + 0x40], eax
mov dword [esi + 0x44], eax
xor eax, eax
mov dword [esi + 0x50], eax
mov dword [esi + 0x54], eax
xor eax, eax
mov dword [esi + 0x48], eax
mov dword [esi + 0x58], 0
mov dword [esi + 0x5c], 0
xor edx, edx
mov eax, esi
call fcn.004cc438
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4cb5e6
lea eax, [ebp - 8]
call sub.rtl250.bpl__System__IntfClear_qqrr44System__DelphiInterface_17System_IInterface_
lea eax, [ebp - 4]
call sub.rtl250.bpl__System__IntfClear_qqrr44System__DelphiInterface_17System_IInterface_
ret
Function at 0x4cc148
Capabilities:
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov esi, edx
mov edi, eax
mov dl, 1
mov eax, esi
call sub.rtl250.bpl__System_Sysutils_FileExists_qqrx20System_UnicodeStringo
test al, al
jne 0x4cc164
mov bl, 1
jmp 0x4cc1c3
mov eax, esi
call sub.rtl250.bpl__System_Sysutils_DeleteFile_qqrx20System_UnicodeString
mov ebx, eax
test bl, bl
jne 0x4cc1a9
mov eax, esi
call sub.rtl250.bpl__System__UStrToPWChar_qqrx20System_UnicodeString
push eax
call sub.kernel32.dll_GetFileAttributesW
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
and eax, 1
cmp eax, 1
jne 0x4cc1a9
mov eax, dword [ebp - 4]
and eax, 0xfffffffe
push eax
mov eax, esi
call sub.rtl250.bpl__System__UStrToPWChar_qqrx20System_UnicodeString
push eax
call sub.kernel32.dll_SetFileAttributesW
mov eax, esi
call sub.rtl250.bpl__System_Sysutils_DeleteFile_qqrx20System_UnicodeString
mov ebx, eax
test bl, bl
jne 0x4cc1c3
mov edx, esi
mov eax, edi
call fcn.004cc7f8
test al, al
je 0x4cc1c3
mov eax, esi
call sub.rtl250.bpl__System_Sysutils_DeleteFile_qqrx20System_UnicodeString
mov ebx, eax
mov eax, ebx
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x4ec958
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, eax
mov dl, 1
mov eax, ebx
call sub.rtl250.bpl__System_Sysutils_DirectoryExists_qqrx20System_UnicodeStringo
test al, al
jne 0x4ec98e
mov eax, ebx
call sub.rtl250.bpl__System_Sysutils_ForceDirectories_qqr20System_UnicodeString
mov dl, 1
mov eax, ebx
call sub.rtl250.bpl__System_Sysutils_DirectoryExists_qqrx20System_UnicodeStringo
test al, al
je 0x4ec98e
push 6
mov eax, ebx
call sub.rtl250.bpl__System__UStrToPWChar_qqrx20System_UnicodeString
push eax
call sub.kernel32.dll_SetFileAttributesW
mov dl, 1
mov eax, ebx
call sub.rtl250.bpl__System_Sysutils_DirectoryExists_qqrx20System_UnicodeStringo
pop ebx
pop ebp
ret

Function at 0x4eca00
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push 0
push ebx
push esi
mov esi, eax
xor eax, eax
push ebp
push 0x4ecad3
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
mov edx, dword [eax]
call dword [edx + 0x48]
push 0
push 0
call sub.kernel32.dll_GetLogicalDriveStringsW
mov ebx, eax
lea eax, [ebx + 1]
add eax, eax
push eax
call sub.rtl250.bpl__System_GetMemory_qi
pop ecx
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x4ecaae
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
push eax
push ebx
call sub.kernel32.dll_GetLogicalDriveStringsW
mov ebx, dword [ebp - 8]
jmp 0x4eca90
lea eax, [ebp - 0xc]
mov edx, ebx
call sub.rtl250.bpl__System__UStrFromPWChar_qqrr20System_UnicodeStringpb
mov eax, dword [ebp - 0xc]
lea edx, [ebp - 4]
call sub.rtl250.bpl__System_Sysutils_IncludeTrailingPathDelimiter_qqrx20System_UnicodeString
mov edx, dword [ebp - 4]
mov eax, esi
mov ecx, dword [eax]
call dword [ecx + 0x3c]
xor edx, edx
mov eax, ebx
call sub.rtl250.bpl__System_Sysutils_StrRScan_qqrpxbb
mov ebx, eax
test ebx, ebx
je 0x4eca96
cmp word [ebx], 0
jne 0x4eca90
add ebx, 2
cmp word [ebx], 0
jne 0x4eca59
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4ecab5
mov eax, dword [ebp - 8]
push eax
call sub.rtl250.bpl__System_FreeMemory_qpv
pop ecx
ret
Function at 0x4f6ab4
Capabilities:
Query service status
Stop service

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd0
push ebx
push esi
push edi
mov ebx, ecx
mov edi, edx
mov esi, eax
xor eax, eax
mov dword [ebp - 4], eax
lea eax, [ebp - 0x30]
push eax
mov eax, dword [esi + 8]
push eax
call sub.advapi32.dll_QueryServiceStatus
test eax, eax
jne 0x4f6ae6
call sub.kernel32.dll_GetLastError
mov dword [ebp - 4], eax
jmp 0x4f6c0b
cmp dword [ebp - 0x2c], 1
jne 0x4f6af8
mov dword [ebp - 4], 0x426
jmp 0x4f6c0b
test edi, edi
je 0x4f6b05
xor edx, edx
mov eax, edi
call sub.AxComponentsRTL.bpl__Axrtl_System_Thread_TThread_SleepByAndCheck_qqrui
xor eax, eax
push ebp
push 0x4f6c04
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x30]
push eax
push 1
mov eax, dword [esi + 8]
push eax
call sub.advapi32.dll_ControlService
test eax, eax
jne 0x4f6b38
call sub.kernel32.dll_GetLastError
mov dword [ebp - 4], eax
call sub.rtl250.bpl__System__TryFinallyExit_qqrv
jmp 0x4f6c0b
test ebx, ebx
jbe 0x4f6bf6
lea eax, [ebp - 0x30]
push eax
mov eax, dword [esi + 8]
push eax
call sub.advapi32.dll_QueryServiceStatus
test eax, eax
je 0x4f6bf6
cmp ebx, 0xffffffff
je 0x4f6b6f
mov eax, dword [0x424294]
call fcn.00424404
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], edx
jmp 0x4f6bf0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
jmp 0x4f6bf0
test edi, edi
je 0x4f6b8c
xor edx, edx
mov eax, edi
call sub.AxComponentsRTL.bpl__Axrtl_System_Thread_TThread_SleepByAndCheck_qqrui
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x18]
push eax
call sub.kernel32.dll_Sleep
lea eax, [ebp - 0x30]
push eax
mov eax, dword [esi + 8]
push eax
call sub.advapi32.dll_QueryServiceStatus
test eax, eax
je 0x4f6bf6
mov eax, dword [ebp - 0x1c]
cmp eax, dword [ebp - 0x14]
jb 0x4f6be2
cmp ebx, 0xffffffff
je 0x4f6bf0
mov eax, dword [0x424294]
call fcn.00424404
sub eax, dword [ebp - 0x10]
sbb edx, dword [ebp - 0xc]
push edx
push eax
mov eax, ebx
xor edx, edx
cmp edx, dword [esp + 4]
jne 0x4f6bde
cmp eax, dword [esp]
pop edx
pop eax
jae 0x4f6bf0
jmp 0x4f6be2
pop edx
pop eax
jge 0x4f6bf0
mov dword [ebp - 4], 0x5b4
call sub.rtl250.bpl__System__TryFinallyExit_qqrv
jmp 0x4f6c0b
cmp dword [ebp - 0x2c], 1
jne 0x4f6b7f
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4f6c0b
ret
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4f72f4
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff88
xor edx, edx
mov dword [ebp - 0x78], edx
mov dword [ebp - 0x5c], edx
mov dword [ebp - 4], edx
xor eax, eax
push ebp
push 0x4f7425
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 4]
call fcn.004f7118
mov eax, dword [ebp - 4]
call sub.rtl250.bpl__System__UStrLen_qqrx20System_UnicodeString
test eax, eax
je 0x4f73ff
lea edx, [ebp - 0x5c]
mov eax, dword [ebp - 4]
call sub.rtl250.bpl__System_Sysutils_ExtractFileName_qqrx20System_UnicodeString
mov edx, dword [ebp - 0x5c]
xor ecx, ecx
mov eax, dword [0x4b47b0]
call fcn.004ba050
test al, al
jne 0x4f73ff
lea eax, [ebp - 0x48]
xor ecx, ecx
mov edx, 0x44
call fcn.004029b0
mov dword [ebp - 0x48], 0x44
mov dword [ebp - 0x1c], 0x81
mov word [ebp - 0x18], 5
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x48]
push eax
push 0
push 0
push 0x4000020
push 0
push 0
push 0
push 0
mov eax, dword [ebp - 4]
call sub.rtl250.bpl__System__UStrToPWChar_qqrx20System_UnicodeString
push eax
call sub.kernel32.dll_CreateProcessW
test eax, eax
je 0x4f73af
mov eax, dword [ebp - 0x58]
push eax
call sub.kernel32.dll_CloseHandle
mov eax, dword [ebp - 0x54]
push eax
call sub.kernel32.dll_CloseHandle
jmp 0x4f73ff
call sub.kernel32.dll_GetLastError
mov dword [ebp - 0x74], eax
mov byte [ebp - 0x70], 0
call sub.kernel32.dll_GetLastError
lea ecx, [ebp - 0x78]
xor edx, edx
call sub.rtl250.bpl__System_Sysutils_SysErrorMessage_qqruiui
mov eax, dword [ebp - 0x78]
mov dword [ebp - 0x6c], eax
mov byte [ebp - 0x68], 0x11
mov eax, dword [ebp - 4]
mov dword [ebp - 0x64], eax
mov byte [ebp - 0x60], 0x11
lea eax, [ebp - 0x74]
push eax
push 2
call sub.kernel32.dll_GetLastError
push eax
push 0
mov eax, dword [0x533e84]
mov eax, dword [eax]
mov ecx, 0x4f743c
mov dl, 1
call fcn.004087a8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4f742c
lea eax, [ebp - 0x78]
call sub.rtl250.bpl__System__UStrClr_qqrpv
lea eax, [ebp - 0x5c]
call sub.rtl250.bpl__System__UStrClr_qqrpv
lea eax, [ebp - 4]
call sub.rtl250.bpl__System__UStrClr_qqrpv
ret
Function at 0x4bf390
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x87000]
push edi
jmp 0x4bf3aa
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4bf3b1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4bf3a0
mov eax, 1
add ebx, ebx
jne 0x4bf3c3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4bf3d4
jne 0x4bf3f3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4bf3f3
dec eax
add ebx, ebx
jne 0x4bf3e0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x4bf3b8
add ebx, ebx
jne 0x4bf3ef
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x4bf445
xor ecx, ecx
sub eax, 3
jb 0x4bf40b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x4bf47a
sar eax, 1
mov ebp, eax
jmp 0x4bf416
add ebx, ebx
jne 0x4bf416
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4bf3e4
inc ecx
add ebx, ebx
jne 0x4bf424
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4bf3e4
add ebx, ebx
jne 0x4bf431
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x4bf426
jne 0x4bf442
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4bf426
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x4bf464
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x4bf456
jmp 0x4bf3a6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x4bf464
add edi, ecx
jmp 0x4bf3a6
pop esi
mov edi, esi
mov ecx, 0x45de
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x4bf482
cmp byte [edi], 0xd
jne 0x4bf482
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x4bf487
lea edi, [esi + 0xbc000]
mov eax, dword [edi]
or eax, eax
je 0x4bf4ff
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xc2758]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xc2888]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x4bf4b4
mov ecx, edi
jns 0x4bf4e3
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0xc2890]
or eax, eax
je 0x4bf4f9
mov dword [ebx], eax
add ebx, 4
jmp 0x4bf4d1
call dword [esi + 0xc288c]
mov ebp, dword [esi + 0xc2894]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x22f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x4bf533
sub esp, 0xffffff80
jmp 0x465386