joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41a594
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call sub.rtl160.bpl__System__UStrAddRef_qqrpv
xor eax, eax
push ebp
push 0x41a5f8
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0x1c
lea eax, [ebp - 0x28]
push eax
mov eax, dword [ebp - 4]
call sub.rtl160.bpl__System__UStrToPWChar_qqrx20System_UnicodeString
push eax
call sub.kernel32.dll_GetVolumeInformationW
mov edx, ebx
lea eax, [ebp - 0x28]
call sub.rtl160.bpl__System_Sysutils_StrPas_qqrpxb
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41a5ff
lea eax, [ebp - 4]
call sub.rtl160.bpl__System__UStrClr_qqrpv
ret
Function at 0x41ad89
Capabilities:
Hash data using sha1

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
mov dword [eax + 4], edx
mov eax, dword [ebp + 8]
mov dword [eax], edx
mov ecx, dword [ebp + 8]
mov dword [ecx + 8], 0x67452301
mov eax, dword [ebp + 8]
mov dword [eax + 0xc], 0xefcdab89
mov edx, dword [ebp + 8]
mov dword [edx + 0x10], 0x98badcfe
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x14], 0x10325476
mov eax, dword [ebp + 8]
mov dword [eax + 0x18], 0xc3d2e1f0
pop ebp
ret

Function at 0x41b300
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
xor eax, eax
mov dword [ebp - 4], eax
push 0x104
push dword [ebp + 8]
mov edx, dword [ebp + 8]
add edx, 0x104
push edx
call fcn.0041aa14
add esp, 0xc
cmp dword [ebp - 4], 0x104
jae 0x41b354
mov ecx, 0x104
sub ecx, dword [ebp - 4]
push ecx
mov eax, dword [ebp + 8]
add eax, dword [ebp - 4]
push eax
mov edx, dword [ebp + 8]
call dword [edx + 0x20c]
add esp, 8
add dword [ebp - 4], eax
cmp dword [ebp - 4], 0x104
jb 0x41b32c
xor ecx, ecx
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
mov edx, dword [ebp + 8]
mov cl, byte [edx + eax + 0x104]
not cl
mov eax, dword [ebp - 4]
mov edx, dword [ebp + 8]
xor byte [edx + eax], cl
inc dword [ebp - 4]
cmp dword [ebp - 4], 0x104
jb 0x41b359
push dword [ebp + 8]
call fcn.0041b24c
pop ecx
mov ecx, dword [ebp + 8]
add ecx, 0x104
push ecx
call fcn.0041b24c
pop ecx
pop ecx
pop ebp
ret

Function at 0x41c83a
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0x10]
cmp dword [eax + 0x9c], 0xffffffff
je 0x41c8e8
mov edx, dword [ebp + 0x10]
cmp dword [edx + 0x9c], 0x40
jbe 0x41c879
mov ecx, dword [ebp + 0x10]
add ecx, 0x40
push ecx
push dword [ebp + 0x10]
call fcn.0041ae69
add esp, 8
mov eax, dword [ebp + 0x10]
mov dword [eax + 0x9c], 0x14
mov edx, 0x40
mov ecx, dword [ebp + 0x10]
sub edx, dword [ecx + 0x9c]
push edx
push 0
mov eax, dword [ebp + 0x10]
mov edx, dword [ebp + 0x10]
add eax, dword [edx + 0x9c]
push eax
call fcn.0041aa00
add esp, 0xc
xor ecx, ecx
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
mov edx, dword [ebp + 0x10]
xor dword [edx + eax*4], 0x36363636
inc dword [ebp - 4]
cmp dword [ebp - 4], 0x10
jb 0x41c8a4
mov ecx, dword [ebp + 0x10]
add ecx, 0x40
push ecx
call fcn.0041ad89
pop ecx
mov eax, dword [ebp + 0x10]
add eax, 0x40
push eax
push 0x40
push dword [ebp + 0x10]
call fcn.0041adcd
add esp, 0xc
mov edx, dword [ebp + 0x10]
mov dword [edx + 0x9c], 0xffffffff
cmp dword [ebp + 0xc], 0
je 0x41c903
mov ecx, dword [ebp + 0x10]
add ecx, 0x40
push ecx
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0041adcd
add esp, 0xc
pop ecx
pop ebp
ret
Function at 0x41c906
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
mov eax, dword [ebp + 0x10]
cmp dword [eax + 0x9c], 0xffffffff
je 0x41c927
push dword [ebp + 0x10]
push 0
push 0
call fcn.0041c83a
add esp, 0xc
mov edx, dword [ebp + 0x10]
add edx, 0x40
push edx
lea ecx, [ebp - 0x18]
push ecx
call fcn.0041ae69
add esp, 8
xor eax, eax
mov dword [ebp - 4], eax
mov edx, dword [ebp - 4]
mov ecx, dword [ebp + 0x10]
xor dword [ecx + edx*4], 0x6a6a6a6a
inc dword [ebp - 4]
cmp dword [ebp - 4], 0x10
jb 0x41c93f
mov eax, dword [ebp + 0x10]
add eax, 0x40
push eax
call fcn.0041ad89
pop ecx
mov edx, dword [ebp + 0x10]
add edx, 0x40
push edx
push 0x40
push dword [ebp + 0x10]
call fcn.0041adcd
add esp, 0xc
mov ecx, dword [ebp + 0x10]
add ecx, 0x40
push ecx
push 0x14
lea eax, [ebp - 0x18]
push eax
call fcn.0041adcd
add esp, 0xc
mov edx, dword [ebp + 0x10]
add edx, 0x40
push edx
lea ecx, [ebp - 0x18]
push ecx
call fcn.0041ae69
add esp, 8
xor eax, eax
mov dword [ebp - 4], eax
mov edx, dword [ebp - 4]
cmp edx, dword [ebp + 0xc]
jae 0x41c9c6
mov ecx, dword [ebp - 4]
mov al, byte [ebp + ecx - 0x18]
mov edx, dword [ebp + 8]
mov ecx, dword [ebp - 4]
mov byte [edx + ecx], al
inc dword [ebp - 4]
mov eax, dword [ebp - 4]
cmp eax, dword [ebp + 0xc]
jb 0x41c9ab
mov esp, ebp
pop ebp
ret
Function at 0x41de6c
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffde8
lea eax, [ebp - 0xd8]
push eax
call fcn.0041c788
pop ecx
lea edx, [ebp - 0xd8]
push edx
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0041c79f
add esp, 0xc
push 0xa0
lea ecx, [ebp - 0xd8]
push ecx
lea eax, [ebp - 0x178]
push eax
call fcn.0041aa14
add esp, 0xc
lea edx, [ebp - 0x178]
push edx
push dword [ebp + 0x14]
push dword [ebp + 0x10]
call fcn.0041c83a
add esp, 0xc
mov eax, dword [ebp + 0x20]
dec eax
mov ecx, 0x14
xor edx, edx
div ecx
inc eax
mov dword [ebp - 0x10], eax
xor eax, eax
mov dword [ebp - 4], eax
mov edx, dword [ebp - 4]
cmp edx, dword [ebp - 0x10]
jae 0x41e000
push 0x14
push 0
lea ecx, [ebp - 0x38]
push ecx
call fcn.0041aa00
add esp, 0xc
push 0xa0
lea eax, [ebp - 0x178]
push eax
lea edx, [ebp - 0x218]
push edx
call fcn.0041aa14
add esp, 0xc
mov ecx, dword [ebp - 4]
inc ecx
shr ecx, 0x18
mov byte [ebp - 0x24], cl
mov eax, dword [ebp - 4]
inc eax
shr eax, 0x10
mov byte [ebp - 0x23], al
mov edx, dword [ebp - 4]
inc edx
shr edx, 8
mov byte [ebp - 0x22], dl
mov cl, byte [ebp - 4]
inc ecx
mov byte [ebp - 0x21], cl
xor eax, eax
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], 4
mov edx, dword [ebp - 8]
cmp edx, dword [ebp + 0x18]
jae 0x41dfba
lea ecx, [ebp - 0x218]
push ecx
push dword [ebp - 0xc]
lea eax, [ebp - 0x24]
push eax
call fcn.0041c83a
add esp, 0xc
lea edx, [ebp - 0x218]
push edx
push 0x14
lea ecx, [ebp - 0x24]
push ecx
call fcn.0041c906
add esp, 0xc
xor eax, eax
mov dword [ebp - 0xc], eax
mov edx, dword [ebp - 0xc]
mov cl, byte [ebp + edx - 0x24]
mov eax, dword [ebp - 0xc]
xor byte [ebp + eax - 0x38], cl
inc dword [ebp - 0xc]
cmp dword [ebp - 0xc], 0x14
jb 0x41df7d
push 0xa0
lea edx, [ebp - 0xd8]
push edx
lea ecx, [ebp - 0x218]
push ecx
call fcn.0041aa14
add esp, 0xc
inc dword [ebp - 8]
mov eax, dword [ebp - 8]
cmp eax, dword [ebp + 0x18]
jb 0x41df4d
xor edx, edx
mov dword [ebp - 8], edx
mov ecx, dword [ebp - 4]
shl ecx, 2
lea ecx, [ecx + ecx*4]
mov dword [ebp - 0xc], ecx
jmp 0x41dfe3
mov eax, dword [ebp - 8]
mov dl, byte [ebp + eax - 0x38]
mov ecx, dword [ebp + 0x1c]
mov eax, dword [ebp - 0xc]
mov byte [ecx + eax], dl
inc dword [ebp - 8]
inc dword [ebp - 0xc]
cmp dword [ebp - 8], 0x14
jae 0x41dff1
mov edx, dword [ebp - 0xc]
cmp edx, dword [ebp + 0x20]
jb 0x41dfcd
inc dword [ebp - 4]
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp - 0x10]
jb 0x41dee9
mov esp, ebp
pop ebp
ret

Function at 0x42603c
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov ebx, edx
mov edi, eax
mov ecx, dword [edi + 0x178]
mov edx, ebx
mov eax, edi
call fcn.0042630c
mov esi, eax
mov dword [edi + 0x178], esi
and esi, 0xff
add dword [edi + 0x17c], esi
imul esi, dword [edi + 0x17c], 0x8088405
inc esi
mov dword [edi + 0x17c], esi
mov edx, esi
shr edx, 0x18
mov ecx, dword [edi + 0x180]
mov eax, edi
call fcn.0042630c
mov dword [edi + 0x180], eax
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x4260b8
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov ebx, edx
mov esi, eax
mov eax, dword [esi + 0x118]
cmp byte [eax + 0x4c], 0
jne 0x4260ef
mov edi, ecx
dec edi
test edi, edi
jl 0x426100
inc edi
mov eax, esi
call fcn.00426098
xor byte [ebx], al
movzx edx, byte [ebx]
mov eax, esi
call fcn.0042603c
inc ebx
dec edi
jne 0x4260d6
jmp 0x426100
lea eax, [esi + 0x3c4]
push eax
push ecx
push ebx
call fcn.0041b1fc
add esp, 0xc
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x426194
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
mov esi, ecx
lea edi, [ebp - 0x14]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov dword [ebp - 4], edx
mov edi, eax
mov eax, dword [ebp - 4]
call sub.rtl160.bpl__System__LStrAddRef_qqrpv
xor eax, eax
push ebp
push 0x42620a
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [ebp - 4]
mov eax, edi
call fcn.00426108
mov dword [ebp - 8], 0xc
lea esi, [ebp - 0x14]
mov eax, edi
call fcn.00426098
mov ebx, eax
xor bl, byte [esi]
mov edx, ebx
mov eax, edi
call fcn.0042603c
mov byte [esi], bl
inc esi
dec dword [ebp - 8]
jne 0x4261d4
movzx ebx, byte [ebp - 9]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x426211
lea eax, [ebp - 4]
call sub.rtl160.bpl__System__LStrClr_qqrpv
ret
Function at 0x42ca18
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebx
push esi
push edi
mov ebx, eax
push ebp
push ecx
mov esi, dword [ebx + 0x2c]
mov edi, dword [ebx + 0x3c]
sub edi, dword [ebx + 0x74]
sub edi, dword [ebx + 0x6c]
jmp 0x42ca45
mov eax, dword [ebx + 0x2c]
sub eax, 0x106
add eax, esi
cmp eax, dword [ebx + 0x6c]
ja 0x42cac4
push esi
mov eax, dword [ebx + 0x38]
mov edx, eax
mov ebp, esi
add edx, ebp
push edx
push eax
call fcn.00421ad4
add esp, 0xc
sub dword [ebx + 0x70], esi
sub dword [ebx + 0x6c], esi
sub dword [ebx + 0x5c], ebp
mov eax, dword [ebx + 0x4c]
mov edx, eax
add edx, edx
add edx, dword [ebx + 0x44]
sub edx, 2
movzx ecx, word [edx]
mov dword [esp], ecx
cmp esi, dword [esp]
ja 0x42ca92
mov cx, word [esp]
sub cx, si
jmp 0x42ca94
xor ecx, ecx
mov word [edx], cx
dec eax
jne 0x42ca7b
mov eax, esi
mov edx, eax
add edx, edx
add edx, dword [ebx + 0x40]
sub edx, 2
movzx ecx, word [edx]
mov dword [esp], ecx
cmp esi, dword [esp]
ja 0x42caba
mov cx, word [esp]
sub cx, si
jmp 0x42cabc
xor ecx, ecx
mov word [edx], cx
dec eax
jne 0x42caa3
add edi, esi
mov ebp, dword [ebx]
cmp dword [ebp + 4], 0
je 0x42cb21
mov edx, dword [ebx + 0x38]
mov ecx, edi
add edx, dword [ebx + 0x6c]
mov eax, ebp
add edx, dword [ebx + 0x74]
call fcn.0042c6ec
add dword [ebx + 0x74], eax
cmp dword [ebx + 0x74], 3
jb 0x42cb0c
mov eax, dword [ebx + 0x38]
mov edx, dword [ebx + 0x6c]
movzx eax, byte [eax + edx]
mov dword [ebx + 0x48], eax
mov ecx, dword [ebx + 0x58]
shl eax, cl
mov edx, dword [ebx + 0x38]
mov ecx, dword [ebx + 0x6c]
movzx edx, byte [edx + ecx + 1]
xor eax, edx
and eax, dword [ebx + 0x54]
mov dword [ebx + 0x48], eax
cmp dword [ebx + 0x74], 0x106
jae 0x42cb21
mov eax, dword [ebx]
cmp dword [eax + 4], 0
jne 0x42ca22
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x43b258
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 + 0x5d0], 0
je 0x43b27f
mov eax, dword [esi + 0x5d0]
call fcn.00408418
test al, al
jne 0x43b2a4
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.rtl160.bpl__System__UStrFromWArray_qqrr20System_UnicodeStringpbi
jmp 0x43b2b1
mov eax, ebx
mov edx, dword [esi + 0x5d0]
call sub.rtl160.bpl__System__UStrAsg_qqrr20System_UnicodeStringx20System_UnicodeString
mov eax, dword [ebx]
call sub.rtl160.bpl__System__UStrLen_qqrx20System_UnicodeString
mov edx, dword [ebx]
cmp word [edx + eax*2 - 2], 0x5c
je 0x43b2ce
mov eax, ebx
mov edx, 0x43b2e0
call sub.rtl160.bpl__System__UStrCat_qqrr20System_UnicodeStringx20System_UnicodeString
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x43fd50
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
xor ecx, ecx
mov dword [ebp - 4], ecx
test dl, dl
je 0x43fd67
add esp, 0xfffffff0
call sub.rtl160.bpl__System__ClassCreate_qqrpvzc
mov byte [ebp - 9], dl
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x43fe3e
push dword fs:[eax]
mov dword fs:[eax], esp
xor edx, edx
mov eax, dword [ebp - 8]
call sub.rtl160.bpl__System_TObject__bctr_qqrv
lea eax, [ebp - 4]
call sub.rtl160.bpl__System__IntfClear_qqrr45System__DelphiInterface_t17System_IInterface_
push eax
call sub.shell32.dll_SHGetDesktopFolder
test eax, eax
jne 0x43fe28
xor eax, eax
push ebp
push 0x43fe21
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x10]
push eax
push 0xa
mov eax, dword [0x462004]
push eax
call sub.shell32.dll_SHGetSpecialFolderLocation
test eax, eax
jne 0x43fe0b
xor eax, eax
push ebp
push 0x43fe04
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
add eax, 4
call sub.rtl160.bpl__System__IntfClear_qqrr45System__DelphiInterface_t17System_IInterface_
push eax
mov eax, dword [0x461d50]
push eax
push 0
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [ebp - 4]
push eax
mov eax, dword [eax]
call dword [eax + 0x14]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x43fe0b
mov eax, dword [ebp - 0x10]
push eax
call sub.ole32.dll_CoTaskMemFree
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x43fe28
lea eax, [ebp - 4]
call sub.rtl160.bpl__System__IntfClear_qqrr45System__DelphiInterface_t17System_IInterface_
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x43fe45
lea eax, [ebp - 4]
call sub.rtl160.bpl__System__IntfClear_qqrr45System__DelphiInterface_t17System_IInterface_
ret

Function at 0x440690
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffdc
push ebx
xor ecx, ecx
mov dword [ebp - 0x24], ecx
mov ebx, edx
xor eax, eax
push ebp
push 0x440704
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x1e]
mov edx, 0x1e
call fcn.00401fb0
mov dword [ebp - 0x1a], 3
lea eax, [ebp - 0x24]
mov ecx, 0x440720
mov edx, ebx
call sub.rtl160.bpl__System__UStrCat3_qqrr20System_UnicodeStringx20System_UnicodeStringt2
mov eax, dword [ebp - 0x24]
call sub.rtl160.bpl__System__UStrToPWChar_qqrx20System_UnicodeString
mov dword [ebp - 0x16], eax
mov word [ebp - 0xe], 0x454
lea eax, [ebp - 0x1e]
push eax
call sub.shell32.dll_SHFileOperationW
test eax, eax
sete bl
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x44070b
lea eax, [ebp - 0x24]
call sub.rtl160.bpl__System__UStrClr_qqrpv
ret
Function at 0x4411b0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 4], ecx
mov dword [ebp - 0xc], edx
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x4412d2
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0xc]
mov edx, dword [sym.imp.rtl160.bpl__System_Sysutils_EmptyStr]
mov edx, dword [edx]
call sub.rtl160.bpl__System__UStrAsg_qqrr20System_UnicodeStringx20System_UnicodeString
lea edx, [ebp - 4]
mov eax, dword [ebp - 8]
call sub.rtl160.bpl__System_Sysutils_ExcludeTrailingPathDelimiter_qqrx20System_UnicodeString
mov eax, dword [ebp - 4]
call sub.rtl160.bpl__System__UStrLen_qqrx20System_UnicodeString
mov ebx, eax
cmp ebx, 3
jle 0x4412a7
mov eax, dword [ebp - 4]
call sub.rtl160.bpl__System__UStrToPWChar_qqrx20System_UnicodeString
push eax
call sub.kernel32.dll_GetFileAttributesW
mov edi, eax
cmp edi, 0xffffffff
jne 0x441239
call sub.kernel32.dll_GetLastError_1
mov dword [ebp - 0x10], eax
mov edx, dword [sym.imp.rtl160.bpl__System_Sysutils_EmptyStr]
mov edx, dword [edx]
mov ecx, dword [ebp - 0x10]
mov eax, dword [ebp - 8]
call fcn.0044112c
lea eax, [ebp - 0x14]
push eax
mov dword [ebp - 0x24], edi
mov byte [ebp - 0x20], 0
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
mov dword [ebp - 0x1c], eax
mov byte [ebp - 0x18], 0x11
lea edx, [ebp - 0x24]
mov ecx, 1
mov eax, 0x4412ec
call sub.rtl160.bpl__System_Sysutils_Format_qqrx20System_UnicodeStringpx14System_TVarRecxi
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0xc]
call sub.rtl160.bpl__System__UStrAsg_qqrr20System_UnicodeStringx20System_UnicodeString
lea edx, [ebp - 0x2c]
mov eax, dword [ebp - 4]
call sub.rtl160.bpl__System_Sysutils_ExtractFilePath_qqrx20System_UnicodeString
mov eax, dword [ebp - 0x2c]
lea edx, [ebp - 0x28]
call sub.rtl160.bpl__System_Sysutils_ExcludeTrailingPathDelimiter_qqrx20System_UnicodeString
mov edx, dword [ebp - 0x28]
lea eax, [ebp - 4]
call sub.rtl160.bpl__System__UStrLAsg_qqrr20System_UnicodeStringx20System_UnicodeString
mov eax, dword [ebp - 4]
call sub.rtl160.bpl__System__UStrLen_qqrx20System_UnicodeString
mov esi, eax
cmp esi, ebx
je 0x4412a7
mov ebx, esi
cmp ebx, 3
jg 0x441209
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4412d9
lea eax, [ebp - 0x2c]
mov edx, 2
call sub.rtl160.bpl__System__UStrArrayClr_qqrpvi
lea eax, [ebp - 0x14]
call sub.rtl160.bpl__System__UStrClr_qqrpv
lea eax, [ebp - 4]
call sub.rtl160.bpl__System__UStrClr_qqrpv
ret
Function at 0x441a90
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, edx
mov eax, esi
call sub.rtl160.bpl__System__UStrToPWChar_qqrx20System_UnicodeString
push eax
call sub.kernel32.dll_GetFileAttributesW
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x441ac1
call sub.kernel32.dll_GetLastError_1
mov edx, dword [sym.imp.rtl160.bpl__System_Sysutils_EmptyStr]
mov edx, dword [edx]
mov ecx, eax
mov eax, esi
call fcn.0044112c
mov eax, ebx
pop esi
pop ebx
pop ebp
ret

Function at 0x44229c
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov esi, edx
mov ebx, eax
mov dl, 1
mov eax, esi
call sub.rtl160.bpl__System_Sysutils_DirectoryExists_qqrx20System_UnicodeStringo
test al, al
jne 0x44236d
xor eax, eax
mov dword [ebp - 4], eax
xor edx, edx
push ebp
push 0x44234e
push dword fs:[edx]
mov dword fs:[edx], esp
cmp byte [ebx + 0x30], 0
je 0x44231b
cmp byte [ebx + 0x31], 0
jne 0x44231b
mov eax, ebx
call fcn.0044271c
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x44231b
mov eax, dword [ebp - 4]
cmp byte [eax + 0x10], 0
je 0x4422fa
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x44236d
mov ecx, esi
mov edx, 0x442380
mov eax, dword [ebp - 4]
call fcn.0043f564
mov ecx, 7
mov edx, 0x4423a0
mov eax, dword [ebp - 4]
call fcn.0043f50c
push 0
mov eax, esi
call sub.rtl160.bpl__System__UStrToPWChar_qqrx20System_UnicodeString
push eax
call sub.kernel32.dll_CreateDirectoryW
test eax, eax
jne 0x442344
call sub.kernel32.dll_GetLastError_1
mov edx, dword [sym.imp.rtl160.bpl__System_Sysutils_EmptyStr]
mov edx, dword [edx]
mov ecx, eax
mov eax, esi
call fcn.0044112c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x44236d
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x445458
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffdc
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
mov esi, ecx
mov ebx, edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4455a1
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0
push esi
push ebx
call sub.advapi32.dll_RegQueryValueExW
mov edi, eax
test edi, edi
je 0x4454d6
lea ecx, [ebp - 0x14]
mov edx, ebx
mov eax, dword [ebp - 4]
call fcn.00443a1c
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x10], eax
mov eax, dword [sym.imp.rtl160.bpl__System_Sysutils_EmptyStr]
mov eax, dword [eax]
push eax
mov eax, dword [sym.imp.rtl160.bpl__System_Sysutils_EmptyStr]
mov eax, dword [eax]
push eax
push edi
lea eax, [ebp - 0x18]
mov edx, esi
call sub.rtl160.bpl__System__UStrFromPWChar_qqrr20System_UnicodeStringpb
mov edx, dword [ebp - 0x18]
xor ecx, ecx
mov eax, dword [ebp - 0x10]
call fcn.00443114
mov eax, dword [ebp - 8]
push eax
call sub.rtl160.bpl__System_GetMemory_qi
pop ecx
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x44557f
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 0xc]
push eax
push 0
push 0
push esi
push ebx
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
je 0x445543
lea ecx, [ebp - 0x1c]
mov edx, ebx
mov eax, dword [ebp - 4]
call fcn.00443a1c
mov ebx, dword [ebp - 0x1c]
mov eax, dword [sym.imp.rtl160.bpl__System_Sysutils_EmptyStr]
mov eax, dword [eax]
push eax
mov eax, dword [sym.imp.rtl160.bpl__System_Sysutils_EmptyStr]
mov eax, dword [eax]
push eax
push edi
lea eax, [ebp - 0x20]
mov edx, esi
call sub.rtl160.bpl__System__UStrFromPWChar_qqrr20System_UnicodeStringpb
mov edx, dword [ebp - 0x20]
xor ecx, ecx
mov dword [ebp - 0x24], ebx
mov eax, dword [ebp - 0x24]
call fcn.00443114
mov edx, dword [ebp - 8]
add edx, edx
mov eax, dword [ebp + 8]
call sub.rtl160.bpl__System__UStrSetLength_qqrr20System_UnicodeStringi
mov eax, dword [ebp + 8]
mov eax, dword [eax]
call sub.rtl160.bpl__System__UStrToPWChar_qqrx20System_UnicodeString
mov edx, eax
mov ecx, dword [ebp - 8]
mov eax, dword [ebp - 0xc]
call sub.rtl160.bpl__System_Classes_BinToHex_qqrpcpbi
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x445586
mov eax, dword [ebp - 0xc]
push eax
call sub.rtl160.bpl__System_FreeMemory_qpv
pop ecx
ret
Function at 0x4490d8
Capabilities:
Query service status

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe0
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x20], ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x44913b
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x1c]
push eax
push esi
call sub.advapi32.dll_QueryServiceStatus
test eax, eax
jne 0x449122
lea ecx, [ebp - 0x20]
mov edx, esi
mov eax, ebx
call fcn.00449000
mov eax, dword [ebp - 0x20]
push eax
call sub.kernel32.dll_GetLastError_1
mov edx, eax
pop eax
call fcn.0044617c
mov ebx, dword [ebp - 0x18]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x449142
lea eax, [ebp - 0x20]
call sub.rtl160.bpl__System__UStrClr_qqrpv
ret
Function at 0x44ae10
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
xor edx, edx
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x44aec7
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, ebx
call fcn.0044ad74
inc dword [ebx + 8]
lea eax, [ebp - 4]
push eax
mov eax, dword [ebx + 4]
mov dword [ebp - 0x14], eax
mov byte [ebp - 0x10], 0x11
mov eax, dword [ebx + 8]
mov dword [ebp - 0xc], eax
mov byte [ebp - 8], 0
lea edx, [ebp - 0x14]
mov ecx, 1
mov eax, 0x44aee4
call sub.rtl160.bpl__System_Sysutils_Format_qqrx20System_UnicodeStringpx14System_TVarRecxi
mov ecx, dword [ebp - 4]
mov dl, 1
mov eax, dword [0x43e42c]
call fcn.0043eb50
mov esi, eax
mov eax, dword [ebx + 0x14]
test eax, eax
je 0x44ae8b
mov edx, dword [ebx + 0x60]
mov dword [eax + 0xa0], edx
mov edx, dword [ebx + 0x64]
mov dword [eax + 0xa4], edx
mov eax, dword [ebx + 0x14]
mov dword [esi + 0x18], eax
mov eax, dword [ebx + 0x60]
mov dword [esi + 0x30], eax
mov eax, dword [ebx + 0x64]
mov dword [esi + 0x34], eax
cmp byte [ebx + 0x51], 1
sete al
mov byte [esi + 0x38], al
mov edx, esi
mov eax, dword [ebx + 0xc]
call sub.rtl160.bpl__System_Classes_TList_Add_qqrpv
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x44aece
lea eax, [ebp - 4]
call sub.rtl160.bpl__System__UStrClr_qqrpv
ret