joyce8/EMBER2024-capa huggingface dataset:
Function at 0x461318
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffda4
push ebx
push esi
mov ebx, edx
mov esi, eax
cmp dword [esi + 0x5d8], 0
je 0x46133f
mov eax, dword [esi + 0x5d8]
call fcn.004301ec
test al, al
jne 0x461364
lea eax, [ebp - 0x25a]
push eax
push 0x12d
call sub.kernel32.dll_GetTempPathW
mov eax, ebx
lea edx, [ebp - 0x25a]
mov ecx, 0x12d
call sub.rtl250.bpl__System__UStrFromWArray_qqrr20System_UnicodeStringpbi
jmp 0x461371
mov eax, ebx
mov edx, dword [esi + 0x5d8]
call sub.rtl250.bpl__System__UStrAsg_qqrr20System_UnicodeStringx20System_UnicodeString
mov eax, dword [ebx]
call sub.rtl250.bpl__System__UStrLen_qqrx20System_UnicodeString
mov edx, dword [ebx]
cmp word [edx + eax*2 - 2], 0x5c
je 0x46138e
mov eax, ebx
mov edx, 0x4613a0
call sub.rtl250.bpl__System__UStrCat_qqrr20System_UnicodeStringx20System_UnicodeString
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4b2028
Capabilities:
Acquire debug privileges
Terminate thread

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff20
push ebx
push esi
mov esi, eax
xor eax, eax
mov dword [ebp - 4], eax
xor eax, eax
mov dword [ebp - 8], eax
xor ebx, ebx
mov eax, 0x4b217c
call sub.AxComponentsRTL.bpl__Axrtl_Project_Processinfo_ProcessInfo_EnablePrivilegie_qqrx20System_UnicodeString
mov edx, esi
mov eax, dword [0x41bb88]
call fcn.0041d27c
dec eax
je 0x4b2062
dec eax
je 0x4b209b
jmp 0x4b2126
push 0x4b21a0
push 0x4b21b8
call sub.kernel32.dll_GetModuleHandleW
push eax
call fcn.004026ac
mov ecx, eax
mov eax, dword [ebp + 8]
push 0
lea edx, [ebp - 8]
push edx
mov edx, ecx
mov ecx, esi
xchg ecx, eax
call fcn.004b3518
mov ebx, eax
test ebx, ebx
jne 0x4b2165
jmp 0x4b2126
lea eax, [ebp - 0xe0]
xor ecx, ecx
mov edx, 0xc8
call fcn.004029b0
lea eax, [ebp - 0xe0]
push eax
mov ecx, 0x4b21d8
mov edx, esi
mov eax, dword [0x4b1a54]
call fcn.004b286c
cmp edx, 0
jne 0x4b20d3
cmp eax, 0
je 0x4b2165
push 0x4b222c
lea ecx, [ebp - 0xe0]
mov edx, esi
mov eax, dword [0x4b1a54]
call fcn.004b2a48
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], edx
cmp dword [ebp - 0x14], 0
jne 0x4b20fc
cmp dword [ebp - 0x18], 0
je 0x4b2165
mov eax, dword [ebp + 8]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0xc], eax
push dword [ebp - 0x14]
push dword [ebp - 0x18]
push dword [ebp - 0xc]
push dword [ebp - 0x10]
lea ecx, [ebp - 8]
xor edx, edx
mov eax, esi
call fcn.004b35e0
mov ebx, eax
test ebx, ebx
jne 0x4b2165
push 0x4e20
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_WaitForSingleObject
test eax, eax
je 0x4b2145
push 0
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_TerminateThread
jmp 0x4b2152
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_GetExitCodeThread
mov eax, dword [ebp - 8]
call sub.AxComponentsRTL.bpl__Axrtl_Winapi_Ntdll_Ntdll_NtClose_qqrui
cmp dword [ebp - 4], 1
je 0x4b2165
mov ebx, 0xc0000176
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x4b33fc
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov ebx, ecx
mov esi, edx
mov dword [ebp - 4], eax
xor eax, eax
mov dword [ebx], eax
mov edi, esi
add edi, dword [ebp + 8]
xor eax, eax
mov dword [ebp - 8], eax
push 0x40
push 0x3000
push edi
push 0
call sub.kernel32.dll_VirtualAlloc
mov dword [ebx], eax
mov edx, dword [ebx]
mov eax, dword [ebp - 4]
mov ecx, esi
call sub.rtl250.bpl__System_Move_qqrpxvpvi
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 4

Function at 0x4b3518
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov ebx, eax
mov edi, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
mov dl, 0x1a
mov al, 0xc
call sub.AxComponentsRTL.bpl__Axrtl_System_Win_Osinfo_OSInfo_IsWindows_qqr39Axrtl_System_Win_Osinfo_TWindowsVersiont1
test al, al
jne 0x4b356e
lea eax, [ebp - 0x10]
push eax
push 0
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
push 0
push 0
push ebx
call sub.kernel32.dll_CreateRemoteThread
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x4b3563
cmp dword [ebp - 0xc], 0xffffffff
jne 0x4b356a
mov ebx, 0xc0000008
jmp 0x4b35a7
xor ebx, ebx
jmp 0x4b35a7
push ebx
mov eax, dword [ebp - 4]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
push 0
push 0
push 0
push 0
lea eax, [ebp - 0xc]
xor ecx, ecx
mov edx, 0x2000000
call fcn.0041cda8
mov ebx, eax
test ebx, ebx
jne 0x4b35a7
cmp dword [ebp - 0xc], 0
je 0x4b35a2
cmp dword [ebp - 0xc], 0xffffffff
jne 0x4b35a7
mov ebx, 0xc0000008
test edi, edi
je 0x4b35b0
mov eax, dword [ebp - 0xc]
mov dword [edi], eax
test ebx, ebx
jne 0x4b35d3
test esi, esi
jbe 0x4b35d3
push esi
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_WaitForSingleObject
cmp esi, 0xffffffff
jne 0x4b35d3
test edi, edi
jne 0x4b35d3
mov eax, dword [ebp - 0xc]
call sub.AxComponentsRTL.bpl__Axrtl_Winapi_Ntdll_Ntdll_NtClose_qqrui
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x4b35e0
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 0x4b35fe
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.004b33fc
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x4b3769
xor eax, eax
push ebp
push 0x4b3762
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 0x4b36c2
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x10]
call fcn.004b250c
test al, al
jne 0x4b36b8
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 0x4b3769
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4b36cc
mov eax, dword [ebp - 0x14]
cmp dword [eax + 0x1c], 0
jne 0x4b36d9
cmp dword [eax + 0x18], 0
je 0x4b36ea
mov eax, dword [ebp - 0x14]
cmp dword [eax + 0x1c], 0
jne 0x4b36f8
cmp dword [eax + 0x18], 0xffffffff
jne 0x4b36f8
mov dword [ebp - 0xc], 0xc0000008
call sub.rtl250.bpl__System__TryFinallyExit_qqrv
jmp 0x4b3769
cmp dword [ebp - 8], 0
je 0x4b3709
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 0x4b3742
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 0x4b3742
cmp dword [ebp - 8], 0
jne 0x4b3742
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 0x4b3769
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 0x4b85a8
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.004b8790
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x4b85cf
mov dword [ebp - 4], 6
jmp 0x4b8618
xor eax, eax
push ebp
push 0x4b8611
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 0x4b85f5
call sub.kernel32.dll_GetLastError
mov dword [ebp - 4], eax
jmp 0x4b85fa
xor eax, eax
mov dword [ebp - 4], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4b8618
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 0x4b8d6c
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 0x4b8eec
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, 0x4b8f08
call sub.rtl250.bpl__System__UStrAsg_qqrr20System_UnicodeStringx20System_UnicodeString
mov eax, ebx
call fcn.004b87c0
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 0x4b9280
call sub.user32.dll_EnumWindows
mov edi, dword [ebp - 0x238]
test edi, edi
je 0x4b8e51
mov ecx, edi
mov dl, 1
mov eax, dword [0x4b3bfc]
call fcn.004ba970
mov edx, eax
test edx, edx
je 0x4b8e46
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 0x4b8e6b
lea eax, [ebx + 0x240]
mov edx, esi
call sub.rtl250.bpl__System__UStrAsg_qqrr20System_UnicodeStringx20System_UnicodeString
jmp 0x4b8ed3
xor ecx, ecx
mov edx, 0x410
mov eax, ebx
call fcn.004b8790
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x4b8ed3
xor eax, eax
push ebp
push 0x4b8ecc
push dword fs:[eax]
mov dword fs:[eax], esp
lea ecx, [ebp - 0x244]
lea eax, [ebp - 0x230]
mov edx, dword [ebp - 4]
call fcn.004bad80
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 0x4b8ed3
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 0x4b8ef3
lea eax, [ebp - 0x244]
call sub.rtl250.bpl__System__UStrClr_qqrpv
ret
Function at 0x4b913c
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 [0x4b470c]
call sub.rtl250.bpl__System__InitializeRecord_qqrpvt1
xor eax, eax
push ebp
push 0x4b91ea
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 [0x4b3f0c]
call fcn.004ba880
mov esi, eax
mov dword [ebp - 8], esi
lea eax, [esi + 0x14]
mov edx, ebx
test edx, edx
je 0x4b9198
sub edx, 0xfffffff8
mov ecx, 0x4b91f8
call sub.rtl250.bpl__System__IntfCast_qqrr44System__DelphiInterface_17System_IInterface_x44System__DelphiInterface_17System_IInterf
lea eax, [ebp - 0xc]
push eax
push 0x4b92f4
call sub.user32.dll_EnumWindows
mov eax, edi
mov edx, dword [ebp - 8]
test edx, edx
je 0x4b91bc
sub edx, 0xfffffff8
mov ecx, 0x4b9208
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 0x4b91f1
lea eax, [ebp - 0xc]
mov edx, dword [0x4b470c]
call sub.rtl250.bpl__System__FinalizeRecord_qqrpvt1
lea eax, [ebp - 4]
call sub.rtl250.bpl__System__IntfClear_qqrr44System__DelphiInterface_17System_IInterface_
ret

Function at 0x4b9ca8
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 [0x4b470c]
call sub.rtl250.bpl__System__InitializeRecord_qqrpvt1
xor eax, eax
push ebp
push 0x4b9d3a
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 [0x4b3d6c]
call fcn.004ba880
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push 0x4b92f4
call sub.user32.dll_EnumWindows
mov eax, ebx
mov edx, dword [ebp - 8]
test edx, edx
je 0x4b9d0c
sub edx, 0xfffffff8
mov ecx, 0x4b9d48
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 0x4b9d41
lea eax, [ebp - 0xc]
mov edx, dword [0x4b470c]
call sub.rtl250.bpl__System__FinalizeRecord_qqrpvt1
lea eax, [ebp - 4]
call sub.rtl250.bpl__System__IntfClear_qqrr44System__DelphiInterface_17System_IInterface_
ret
Function at 0x4ba0d8
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 0x4ba1a4
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
je 0x4ba18e
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 0x4ba189
mov eax, dword [ebp - 0xc]
call sub.rtl250.bpl__System__GetMem_qqri
mov dword [ebp - 8], eax
xor edx, edx
push ebp
push 0x4ba182
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 0x4ba15a
mov esi, dword [ebx]
test esi, esi
je 0x4ba158
add ebx, esi
jmp 0x4ba15a
xor ebx, ebx
test ebx, ebx
je 0x4ba16c
mov edx, ebx
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 0xc]
cmp al, 1
je 0x4ba14e
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4ba18e
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 0x4ba1ab
lea eax, [ebp - 4]
call sub.rtl250.bpl__System__IntfClear_qqrr44System__DelphiInterface_17System_IInterface_
ret

Function at 0x4cb410
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 0x4cb491
push dword fs:[eax]
mov dword fs:[eax], esp
mov dl, 1
mov eax, dword [ebp - 4]
call fcn.004cc5b8
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
xor edx, edx
call fcn.004d3010
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 0x4cb498
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.004cc494
ret
Function at 0x4cb49c
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push ebx
push esi
test dl, dl
je 0x4cb4b1
add esp, 0xfffffff0
call sub.rtl250.bpl__System__ClassCreate_qqrpvzc
mov ebx, edx
mov esi, eax
xor eax, eax
push ebp
push 0x4cb597
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 [0x4c3404]
call fcn.004d254c
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 [0x4b4768]
call fcn.004b9c18
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.004c0fdc
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 0x4cb978
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.004cc3f0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4cb59e
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 0x4cc100
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 0x4cc11c
mov bl, 1
jmp 0x4cc17b
mov eax, esi
call sub.rtl250.bpl__System_Sysutils_DeleteFile_qqrx20System_UnicodeString
mov ebx, eax
test bl, bl
jne 0x4cc161
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 0x4cc161
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 0x4cc17b
mov edx, esi
mov eax, edi
call fcn.004cc7b0
test al, al
je 0x4cc17b
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 0x4ec910
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 0x4ec946
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 0x4ec946
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 0x4ec9b8
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 0x4eca8b
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 0x4eca66
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 0x4eca48
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 0x4eca4e
cmp word [ebx], 0
jne 0x4eca48
add ebx, 2
cmp word [ebx], 0
jne 0x4eca11
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4eca6d
mov eax, dword [ebp - 8]
push eax
call sub.rtl250.bpl__System_FreeMemory_qpv
pop ecx
ret
Function at 0x4f6a6c
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 0x4f6a9e
call sub.kernel32.dll_GetLastError
mov dword [ebp - 4], eax
jmp 0x4f6bc3
cmp dword [ebp - 0x2c], 1
jne 0x4f6ab0
mov dword [ebp - 4], 0x426
jmp 0x4f6bc3
test edi, edi
je 0x4f6abd
xor edx, edx
mov eax, edi
call sub.AxComponentsRTL.bpl__Axrtl_System_Thread_TThread_SleepByAndCheck_qqrui
xor eax, eax
push ebp
push 0x4f6bbc
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 0x4f6af0
call sub.kernel32.dll_GetLastError
mov dword [ebp - 4], eax
call sub.rtl250.bpl__System__TryFinallyExit_qqrv
jmp 0x4f6bc3
test ebx, ebx
jbe 0x4f6bae
lea eax, [ebp - 0x30]
push eax
mov eax, dword [esi + 8]
push eax
call sub.advapi32.dll_QueryServiceStatus
test eax, eax
je 0x4f6bae
cmp ebx, 0xffffffff
je 0x4f6b27
mov eax, dword [0x424294]
call fcn.00424404
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], edx
jmp 0x4f6ba8
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
jmp 0x4f6ba8
test edi, edi
je 0x4f6b44
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 0x4f6bae
mov eax, dword [ebp - 0x1c]
cmp eax, dword [ebp - 0x14]
jb 0x4f6b9a
cmp ebx, 0xffffffff
je 0x4f6ba8
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 0x4f6b96
cmp eax, dword [esp]
pop edx
pop eax
jae 0x4f6ba8
jmp 0x4f6b9a
pop edx
pop eax
jge 0x4f6ba8
mov dword [ebp - 4], 0x5b4
call sub.rtl250.bpl__System__TryFinallyExit_qqrv
jmp 0x4f6bc3
cmp dword [ebp - 0x2c], 1
jne 0x4f6b37
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4f6bc3
ret
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret