joyce8/EMBER2024-capa huggingface dataset:
Function at 0x63b460
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.text
lea edi, [esi - 0x1db000]
push edi
or ebp, 0xffffffff
jmp 0x63b482
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x63b489
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x63b478
mov eax, 1
add ebx, ebx
jne 0x63b49b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x63b4ac
jne 0x63b4bc
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x63b4bc
dec eax
add ebx, ebx
jne 0x63b4b8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x63b490
xor ecx, ecx
sub eax, 3
jb 0x63b4d4
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x63b546
sar eax, 1
mov ebp, eax
jmp 0x63b4df
add ebx, ebx
jne 0x63b4df
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x63b4ec
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x63b510
inc ecx
add ebx, ebx
jne 0x63b4fc
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x63b4f1
jne 0x63b50d
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x63b4f1
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x63b530
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x63b521
jmp 0x63b47e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x63b530
add edi, ecx
jmp 0x63b47e
pop esi
mov edi, esi
mov ecx, 0xca2
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x63b54e
cmp byte [edi], 9
jne 0x63b54e
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 eax, ebx
loop 0x63b553
lea edi, [esi + 0x239000]
mov eax, dword [edi]
or eax, eax
je 0x63b5cb
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x23ba74]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x23bab0]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x63b580
mov ecx, edi
jns 0x63b5af
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 + 0x23bab4]
or eax, eax
je 0x63b5c5
mov dword [ebx], eax
add ebx, 4
jmp 0x63b59d
call dword [esi + 0x23bab8]
popal
jmp 0x407e40
Function at 0x10004c30
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
xor ecx, ecx
xor edx, edx
mov esi, dword [esp + 0x14]
mov ebp, dword [esp + 0x18]
mov edi, dword [esp + 0x1c]
mov cl, byte [esi + 0x100]
mov dl, byte [esi + 0x101]
test ebp, ebp
je 0x10004c7f
inc ecx
mov ebx, 0xff
and ecx, ebx
xor eax, eax
mov al, byte [esi + ecx]
add edx, eax
and edx, ebx
xor ebx, ebx
mov bl, byte [esi + edx]
mov byte [esi + ecx], bl
mov byte [esi + edx], al
add al, bl
mov bl, byte [edi]
mov al, byte [esi + eax]
xor bl, al
mov byte [edi], bl
inc edi
dec ebp
jne 0x10004c54
pop ebp
pop edi
lea eax, [esi + 0x100]
pop esi
mov byte [eax], cl
pop ebx
mov byte [eax + 1], dl
ret 0xc

Function at 0x10004c91
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebx
mov eax, 0x3020100
push esi
mov ecx, 0x40
mov esi, dword [esp + 0xc]
push edi
mov edx, esi
push ebp
mov dword [edx], eax
add edx, 4
add eax, 0x4040404
dec ecx
jne 0x10004ca5
xor ecx, ecx
xor edi, edi
mov ebp, dword [esp + 0x1c]
mov byte [esi + 0x100], cl
mov byte [esi + 0x101], cl
xor ebx, ebx
xor edx, edx
xor eax, eax
mov dl, byte [edi + esi]
mov al, byte [ebp + ecx]
add bl, al
inc ecx
add bl, dl
inc edi
mov al, byte [ebx + esi]
mov byte [edi + esi - 1], al
cmp dword [esp + 0x18], ecx
mov byte [ebx + esi], dl
jne 0x10004ceb
xor ecx, ecx
cmp edi, 0x100
jb 0x10004cc8
pop ebp
pop edi
pop esi
pop ebx
ret 0xc

Function at 0x10004f93
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
pushal
call 0x10004fa2
pop dword [ebp - 0x44]
mov eax, 0x10004fa2
sub dword [ebp - 0x44], eax
push 0x40
push 0x1000
push 0x3aa28
push 0
mov eax, 0xfb11db7f
sub eax, 0xeb0f4a73
add eax, dword [ebp - 0x44]
call dword [eax]
mov ecx, 0x4daec381
sub ecx, 0x4dae7c2f
mov esi, eax
mov edx, 0x9c4ad16e
sub edx, 0x8c46656e
add edx, dword [ebp - 0x44]
mov edi, 0x6f7cc767
xor dword [ebp - 0x24], 0x6fc60417
mov ebx, dword [edx]
mov dword [ebp - 0x20], 0xf4574690
sub ebx, edi
xor dword [ebp - 0xc], 0x7c4260f7
mov dword [esi], ebx
sub dword [ebp - 4], esi
add esi, 0x3e26332f
sub esi, 0x3e26332b
add edx, 0xd445e0b2
sub edx, 0xd445e0ae
loop 0x10004ff6
add eax, 0xf9640e02
add eax, 0x69d0219
xor ebx, ebx
add ebx, eax
add eax, 0x2c7ed424
sub eax, 0x2c7ed41f
mov ecx, 0x10000000
add ecx, dword [ebp - 0x44]
call ebx
leave
ret
Function at 0x401210
Capabilities:
Parse pe header

Disassembly:
push 0x70
push 0x419950
call fcn.00401400
xor ebx, ebx
push ebx
mov edi, dword [0x419110]
call edi
cmp word [eax], 0x5a4d
jne 0x40124d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40124d
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x401265
cmp eax, 0x20b
je 0x401252
mov dword [ebp - 0x1c], ebx
jmp 0x401279
cmp dword [ecx + 0x84], 0xe
jbe 0x40124d
xor eax, eax
cmp dword [ecx + 0xf8], ebx
jmp 0x401273
cmp dword [ecx + 0x74], 0xe
jbe 0x40124d
xor eax, eax
cmp dword [ecx + 0xe8], ebx
setne al
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], ebx
push 2
call dword [0x41938c]
pop ecx
or dword [0x41dedc], 0xffffffff
or dword [0x41dee0], 0xffffffff
call dword [0x41936c]
mov ecx, dword [0x41d1ac]
mov dword [eax], ecx
call dword [0x419350]
mov ecx, dword [0x41d1a8]
mov dword [eax], ecx
mov eax, dword [0x419354]
mov eax, dword [eax]
mov dword [0x41ded8], eax
call fcn.004013fa
cmp dword [section..data], ebx
jne 0x4012d4
push fcn.004013fa
call dword [0x419358]
pop ecx
call fcn.004013e8
push 0x41944c
push 0x419448
call fcn.004013e2
mov eax, dword [0x41d1a4]
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
push eax
push dword [0x41d1a0]
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x2c]
push eax
call dword [0x419360]
mov dword [ebp - 0x30], eax
push 0x419444
push 0x419418
call fcn.004013e2
add esp, 0x24
mov eax, dword [0x419364]
mov esi, dword [eax]
mov dword [ebp - 0x34], esi
cmp byte [esi], 0x22
jne 0x40136a
inc esi
mov dword [ebp - 0x34], esi
mov al, byte [esi]
cmp al, bl
je 0x40133e
cmp al, 0x22
jne 0x401330
cmp byte [esi], 0x22
jne 0x401347
inc esi
mov dword [ebp - 0x34], esi
mov al, byte [esi]
cmp al, bl
je 0x401351
cmp al, 0x20
jbe 0x401343
mov dword [ebp - 0x4c], ebx
lea eax, [ebp - 0x78]
push eax
call dword [0x419100]
test byte [ebp - 0x4c], 1
je 0x401375
movzx eax, word [ebp - 0x48]
jmp 0x401378
cmp byte [esi], 0x20
jbe 0x401347
inc esi
mov dword [ebp - 0x34], esi
jmp 0x40136a
push 0xa
pop eax
push eax
push esi
push ebx
push ebx
call edi
push eax
call main
mov esi, eax
mov dword [ebp - 0x7c], esi
cmp dword [ebp - 0x1c], ebx
jne 0x401395
push esi
call dword [0x419368]
call dword [0x419394]
jmp 0x4013ca
or dword [ebp - 4], 0xffffffff
mov eax, esi
call fcn.00401439
ret
Function at 0x1000f188
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
pushal
call 0x1000f197
pop dword [ebp - 0x4c]
mov eax, 0x982cc374
sub eax, 0x882bd1dd
sub dword [ebp - 0x4c], eax
push 0x40
push 0x1000
push 0x393d1
push 0
mov eax, 0xd0ebfbb0
add eax, 0x3f1544b4
add eax, dword [ebp - 0x4c]
call dword [eax]
mov ecx, 0x48a2
xor edi, edi
add edi, eax
mov ebx, 0x10018600
add ebx, dword [ebp - 0x4c]
mov edx, 0x691882a8
add edx, 0x817eb4f9
xor dword [ebp - 0x10], 0xf3e32d6b
mov esi, dword [ebx]
add esi, edx
xor dword [ebp - 0x1c], edi
mov dword [edi], esi
sub dword [ebp - 0x20], 0x9ae4bb35
add edi, 4
add ebx, 4
loop 0x1000f1ec
add eax, 0x75a7e96b
add eax, 0x8a592bf0
xor ebx, ebx
add ebx, eax
add eax, 0x1a8f6a15
add eax, 0xe57095f0
mov ecx, 0x121eff8
add ecx, 0xede1008
add ecx, dword [ebp - 0x4c]
call ebx
leave
ret
Function at 0x401fd0
Capabilities:
Check if file exists
Copy file
Delete file
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x2e4
mov eax, dword [0x52b004]
xor eax, esp
mov dword [esp + 0x2e0], eax
push ebx
push esi
push edi
push 3
mov esi, ecx
push 0x4255c0
push esi
call fcn.0040bb80
add esp, 0xc
test eax, eax
jne 0x4021db
mov edi, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteFileA]
add esi, 4
lea eax, [esp + 0x18]
push esi
push 0x20
push eax
call fcn.0040bb18
add esp, 0xc
lea eax, [esp + 0x38]
add esi, 0x20
push esi
push 0x80
push eax
call fcn.0040bb18
mov eax, dword [esi + 0x80]
lea edx, [esp + 0xe4]
mov dword [esp + 0xcc], eax
lea ecx, [esp + 0x44]
mov eax, dword [esi + 0x84]
add esp, 0xc
mov dword [esp + 0xbc], eax
mov eax, dword [esi + 0x88]
add esi, 0x8c
mov dword [esp + 0xc4], esi
add esi, eax
mov dword [esp + 0xb8], eax
call fcn.00401a90
cmp dword [0x52c4ec], 1
jne 0x40213f
lea eax, [esp + 0x18]
push eax
push str.__Name_:__s_n
call fcn.00401020
lea eax, [esp + 0xe0]
push eax
push str.__Path_:__s_n
call fcn.00401020
push dword [esp + 0xc8]
push str.__Size_:__d_n
call fcn.00401020
add esp, 0x18
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0xc0]
push eax
call dword [sym.imp.KERNEL32.dll_FileTimeToLocalFileTime]
lea eax, [esp + 0xc8]
push eax
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
movzx eax, word [esp + 0xd4]
push eax
movzx eax, word [esp + 0xd6]
push eax
movzx eax, word [esp + 0xd8]
push eax
movzx eax, word [esp + 0xda]
push eax
movzx eax, word [esp + 0xda]
push eax
movzx eax, word [esp + 0xdc]
push eax
push str.__Time_:__04d__02d__02d___02d:_02d:_02d_n
call fcn.00401020
add esp, 0x1c
push 0x425398
call fcn.00401020
add esp, 4
jmp 0x4021c3
push 0x52c3e8
lea eax, [esp + 0x1e4]
push 0x104
push eax
call fcn.0040bb18
add esp, 0xc
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x1e4]
push 0x104
push eax
call fcn.0040bd11
add esp, 0xc
lea eax, [esp + 0x1e0]
push eax
call edi
cmp eax, 0xffffffff
lea eax, [esp + 0xd8]
push eax
jne 0x40218e
call ebx
jmp 0x4021c3
call edi
test eax, eax
je 0x4021ab
test al, 1
je 0x4021ab
push 0x80
lea eax, [esp + 0xdc]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push 0
lea eax, [esp + 0xdc]
push eax
lea eax, [esp + 0x1e8]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
push 3
push 0x4255c0
push esi
call fcn.0040bb80
add esp, 0xc
test eax, eax
je 0x402013
cmp dword [0x52c4ec], 0
jne 0x4021ee
mov ecx, 0x52c3e8
call fcn.004022e0
mov ecx, dword [esp + 0x2ec]
xor eax, eax
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00407a00
mov esp, ebp
pop ebp
ret
Function at 0x402210
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x52b004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, ecx
push 0x425590
push edi
call fcn.00408640
mov esi, eax
add esp, 8
test esi, esi
je 0x4022a2
mov ebx, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push edi
lea eax, [ebp - 0x108]
push 0x104
push eax
call fcn.0040bb18
mov eax, esi
add esp, 0xc
sub eax, edi
cmp eax, 0x104
jae 0x4022cb
mov byte [ebp + eax - 0x108], 0
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x40228b
push 0
lea eax, [ebp - 0x108]
push eax
call ebx
test eax, eax
je 0x4022b5
lea eax, [esi + 1]
push 0x425590
push eax
call fcn.00408640
mov esi, eax
add esp, 8
test esi, esi
jne 0x402242
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00407a00
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, 0x10
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00407a00
mov esp, ebp
pop ebp
ret
call fcn.00407b33
int3

Function at 0x4022e0
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x35c
mov eax, dword [0x52b004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push ecx
lea eax, [ebp - 0x218]
push 0x104
push eax
call fcn.0040bb18
lea ecx, [ebp - 0x218]
add esp, 0xc
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x402314
sub ecx, edx
cmp byte [ebp + ecx - 0x219], 0x5c
jne 0x40233b
dec ecx
cmp ecx, 0x104
jae 0x402450
mov byte [ebp + ecx - 0x218], al
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x110]
push 0x104
push eax
call fcn.0040bb18
add esp, 0xc
lea eax, [ebp - 0x110]
push 0x425624
push 0x104
push eax
call fcn.0040bd11
add esp, 0xc
lea eax, [ebp - 0x358]
push eax
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x402430
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov ebx, dword [sym.imp.KERNEL32.dll_FindNextFileA]
nop word [eax + eax]
cmp byte [ebp - 0x32c], 0x2e
je 0x402417
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x110]
push 0x104
push eax
call fcn.0040bb18
add esp, 0xc
lea eax, [ebp - 0x110]
push 0x425590
push 0x104
push eax
call fcn.0040bd11
add esp, 0xc
lea eax, [ebp - 0x32c]
push eax
lea eax, [ebp - 0x110]
push 0x104
push eax
call fcn.0040bd11
add esp, 0xc
test byte [ebp - 0x358], 0x10
je 0x40240e
lea ecx, [ebp - 0x110]
call fcn.004022e0
jmp 0x402417
lea eax, [ebp - 0x110]
push eax
call edi
lea eax, [ebp - 0x358]
push eax
push esi
call ebx
test eax, eax
jne 0x4023a0
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00407a00
mov esp, ebp
pop ebp
ret
call fcn.00407b33
int3
Function at 0x41a3680
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ebx
push esi
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x41a379f
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
call sub.cxEditorsVCLD6.bpl__Cxmruedit_TcxCustomMRUEdit_GetProperties_qqrv
call sub.cxEditorsVCLD6.bpl__Cxtextedit_TcxCustomTextEditProperties_GetLookupItems_qqrv
mov edx, dword [eax]
call dword [edx + 0x44]
mov eax, dword [ebx + 0x490]
call sub.dbrtl60.bpl__Db_TDataSet_Close_qqrv
lea eax, [ebp - 4]
push eax
mov eax, esi
call sub.cxEditorsVCLD6.bpl__Cxdbedit_TcxDBMRUEdit_GetDataBinding_qqrv
lea edx, [ebp - 0x10]
call sub.cxEditorsVCLD6.bpl__Cxdbedit_TcxDBEditDataBinding_GetDataField_qqrv
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0xc], eax
mov byte [ebp - 8], 0xb
lea edx, [ebp - 0xc]
xor ecx, ecx
mov eax, 0x41a37b4
call sub.rtl60.bpl__Sysutils_Format_qqrx17System_AnsiStringpx14System_TVarRecxi
mov edx, dword [ebp - 4]
mov eax, dword [ebx + 0x490]
mov eax, dword [eax + 0x2b4]
mov ecx, dword [eax]
call dword [ecx + 0x2c]
push 0
push 0
xor ecx, ecx
mov dl, 1
mov eax, dword [ebx + 0x490]
call sub.VEDatasets.bpl__Vedataset_TVEDataset_ParseSqlString_qqroiii
mov eax, dword [ebx + 0x490]
mov edx, dword [eax]
call dword [edx + 0x14c]
test eax, eax
jne 0x41a376d
mov eax, esi
call sub.cxEditorsVCLD6.bpl__Cxmruedit_TcxCustomMRUEdit_GetProperties_qqrv
call sub.cxEditorsVCLD6.bpl__Cxtextedit_TcxCustomTextEditProperties_GetLookupItems_qqrv
xor edx, edx
mov ecx, dword [eax]
call dword [ecx + 0x38]
jmp 0x41a376d
mov edx, 0x41a3838
mov eax, dword [ebx + 0x490]
call sub.dbrtl60.bpl__Db_TDataSet_FieldByName_qqrx17System_AnsiString
lea edx, [ebp - 0x14]
mov ecx, dword [eax]
call dword [ecx + 0x60]
mov eax, dword [ebp - 0x14]
push eax
mov eax, esi
call sub.cxEditorsVCLD6.bpl__Cxmruedit_TcxCustomMRUEdit_GetProperties_qqrv
call sub.cxEditorsVCLD6.bpl__Cxtextedit_TcxCustomTextEditProperties_GetLookupItems_qqrv
pop edx
mov ecx, dword [eax]
call dword [ecx + 0x38]
mov eax, dword [ebx + 0x490]
call sub.dbrtl60.bpl__Db_TDataSet_Next_qqrv
mov eax, dword [ebx + 0x490]
cmp byte [eax + 0xa1], 0
je 0x41a3734
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41a37a6
lea eax, [ebp - 0x14]
mov edx, 2
call sub.rtl60.bpl__System__LStrArrayClr_qqrpvi
lea eax, [ebp - 4]
call sub.rtl60.bpl__System__LStrClr_qqrpv
ret
Function at 0x41a383c
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffdc
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 8], ebx
mov edi, ecx
mov dword [ebp - 4], edx
mov esi, eax
mov ebx, dword [ebp + 8]
xor eax, eax
push ebp
push 0x41a3907
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, ebx
call sub.dbrtl60.bpl__Db_TDataSet_Close_qqrv
mov eax, dword [esi + 0x12cc]
call sub.cxEditorsVCLD6.bpl__Cxcheckbox_TcxCustomCheckBox_GetChecked_qqrv
test al, al
je 0x41a38b2
lea eax, [ebp - 8]
push eax
mov dword [ebp - 0x18], edi
mov byte [ebp - 0x14], 0
mov eax, dword [ebp - 4]
mov dword [ebp - 0x10], eax
mov byte [ebp - 0xc], 0
lea edx, [ebp - 0x18]
mov ecx, 1
mov eax, 0x41a3920
call sub.rtl60.bpl__Sysutils_Format_qqrx17System_AnsiStringpx14System_TVarRecxi
mov edx, dword [ebp - 8]
mov eax, dword [ebx + 0x2b4]
mov ecx, dword [eax]
call dword [ecx + 0x2c]
jmp 0x41a38da
lea eax, [ebp - 0x1c]
push eax
mov dword [ebp - 0x24], edi
mov byte [ebp - 0x20], 0
lea edx, [ebp - 0x24]
xor ecx, ecx
mov eax, 0x41a3978
call sub.rtl60.bpl__Sysutils_Format_qqrx17System_AnsiStringpx14System_TVarRecxi
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebx + 0x2b4]
mov ecx, dword [eax]
call dword [ecx + 0x2c]
push 0
push 0
xor ecx, ecx
mov dl, 1
mov eax, ebx
call sub.VEDatasets.bpl__Vedataset_TVEDataset_ParseSqlString_qqroiii
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41a390e
lea eax, [ebp - 0x1c]
call sub.rtl60.bpl__System__LStrClr_qqrpv
lea eax, [ebp - 8]
call sub.rtl60.bpl__System__LStrClr_qqrpv
ret

Function at 0x41a6614
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0x28], ebx
mov esi, ecx
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
call sub.rtl60.bpl__System__LStrAddRef_qqrpv
xor eax, eax
push ebp
push 0x41a66c1
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
lea eax, [ebp - 0x28]
push eax
or ecx, 0xffffffff
mov dl, 0x27
mov eax, dword [ebp - 4]
call sub.vegalib60.bpl__Strtools_QS_qqr17System_AnsiStringci
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x24], eax
mov byte [ebp - 0x20], 0xb
mov dword [ebp - 0x1c], esi
mov byte [ebp - 0x18], 0
lea eax, [ebp - 0x24]
push eax
push 1
lea eax, [ebp - 0x14]
push eax
mov edx, dword [sym.imp.VEDatasets.bpl__Vedataset_defConnection]
mov edx, dword [edx]
mov ecx, 0x41a66d8
mov eax, dword [0x4198e74]
call fcn.04199148
lea eax, [ebp - 0x14]
call sub.rtl60.bpl__System__VarToInt_qqrrx14System_Variant
test eax, eax
jle 0x41a669b
mov bl, 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41a66c8
lea eax, [ebp - 0x28]
call sub.rtl60.bpl__System__LStrClr_qqrpv
lea eax, [ebp - 0x14]
call sub.rtl60.bpl__System__VarClr_qqrr14System_Variant
lea eax, [ebp - 4]
call sub.rtl60.bpl__System__LStrClr_qqrpv
ret
Function at 0x41a71b4
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 4], ebx
mov esi, ecx
mov edi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x41a729e
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
call sub.cxEditorsVCLD6.bpl__Cxdropdownedit_TcxCustomComboBox_GetProperties_qqrv
call sub.cxEditorsVCLD6.bpl__Cxdropdownedit_TcxCustomComboBoxProperties_GetItems_qqrv
mov edx, dword [eax]
call dword [edx + 0x44]
mov eax, dword [ebx + 0x740]
call sub.dbrtl60.bpl__Db_TDataSet_Close_qqrv
lea eax, [ebp - 4]
push eax
mov dword [ebp - 0xc], edi
mov byte [ebp - 8], 0
lea edx, [ebp - 0xc]
xor ecx, ecx
mov eax, 0x41a72b4
call sub.rtl60.bpl__Sysutils_Format_qqrx17System_AnsiStringpx14System_TVarRecxi
mov edx, dword [ebp - 4]
mov eax, dword [ebx + 0x740]
mov eax, dword [eax + 0x2b4]
mov ecx, dword [eax]
call dword [ecx + 0x2c]
push 0
push 0
xor ecx, ecx
mov dl, 1
mov eax, dword [ebx + 0x740]
call sub.VEDatasets.bpl__Vedataset_TVEDataset_ParseSqlString_qqroiii
jmp 0x41a7271
mov edx, 0x41a7300
mov eax, dword [ebx + 0x740]
call sub.dbrtl60.bpl__Db_TDataSet_FieldByName_qqrx17System_AnsiString
lea edx, [ebp - 0x10]
mov ecx, dword [eax]
call dword [ecx + 0x60]
mov eax, dword [ebp - 0x10]
push eax
mov eax, esi
call sub.cxEditorsVCLD6.bpl__Cxdropdownedit_TcxCustomComboBox_GetProperties_qqrv
call sub.cxEditorsVCLD6.bpl__Cxdropdownedit_TcxCustomComboBoxProperties_GetItems_qqrv
pop edx
mov ecx, dword [eax]
call dword [ecx + 0x38]
mov eax, dword [ebx + 0x740]
call sub.dbrtl60.bpl__Db_TDataSet_Next_qqrv
mov eax, dword [ebx + 0x740]
cmp byte [eax + 0xa1], 0
je 0x41a7238
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41a72a5
lea eax, [ebp - 0x10]
call sub.rtl60.bpl__System__LStrClr_qqrpv
lea eax, [ebp - 4]
call sub.rtl60.bpl__System__LStrClr_qqrpv
ret

Function at 0x41ac3d8
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
call sub.rtl60.bpl__System__LStrAddRef_qqrpv
xor eax, eax
push ebp
push 0x41ac438
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call sub.rtl60.bpl__Sysutils_FileExists_qqrx17System_AnsiString
test al, al
je 0x41ac422
push 3
push 0x41ac444
push 0x41ac444
mov eax, dword [ebp - 4]
call sub.rtl60.bpl__System__LStrToPChar_qqrx17System_AnsiString
push eax
push 0x41ac448
push 0
call sub.shell32.dll_ShellExecuteA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41ac43f
lea eax, [ebp - 4]
call sub.rtl60.bpl__System__LStrClr_qqrpv
ret
Function at 0x41b1f04
Capabilities:
Encode data using xor
Generate random numbers using the delphi lcg

Disassembly:
and edx, edx
je 0x41b1f22
and ecx, ecx
jle 0x41b1f22
push ebx
xor al, byte [edx]
imul eax, eax, 0x8088405
inc eax
mov ebx, eax
shr ebx, 0x18
mov byte [edx], bl
inc edx
dec ecx
jne 0x41b1f0d
pop ebx
ret

Function at 0x41b2190
Capabilities:
Encode data using xor

Disassembly:
and edx, edx
je 0x41b21b3
and ecx, ecx
jle 0x41b21b3
push ebx
push edi
xor ebx, ebx
lea edi, cs:[0x41b21b9]
mov bl, al
shr eax, 8
xor bl, byte [edx]
xor eax, dword [edi + ebx*4]
inc edx
dec ecx
jne 0x41b21a3
pop edi
pop ebx
ret

Function at 0x41be714
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff0
mov esi, eax
lea ebx, [esi + 0x1c]
mov eax, edx
lea edx, [ebx + 0x20]
mov ecx, 0x20
call sub.rtl60.bpl__System_Move_qqrpxvpvi
mov eax, dword [esi + 0x14]
dec eax
test eax, eax
jb 0x41be7f9
inc eax
mov dword [esp + 8], eax
mov dword [esp], 0
mov dword [esp + 4], 4
mov eax, 0x41d2694
mov dword [esp + 0xc], eax
xor eax, eax
mov edx, dword [esp]
add edx, edx
mov ecx, eax
shr ecx, 1
and ecx, 1
add edx, ecx
shl edx, 7
lea ecx, [edx*8 + 0x41cb18c]
mov edx, dword [ebx + eax*4]
and edx, 0xff
mov esi, dword [ecx + edx*4]
lea edx, [eax + 1]
and edx, 0xf
xor dword [ebx + edx*4], esi
lea edx, [eax + 0xf]
and edx, 0xf
xor dword [ebx + edx*4], esi
inc eax
mov edx, dword [ebx + eax*4]
and edx, 0xff
mov esi, dword [ecx + edx*4]
lea edx, [eax + 1]
and edx, 0xf
xor dword [ebx + edx*4], esi
lea edx, [eax + 0xf]
and edx, 0xf
xor dword [ebx + edx*4], esi
inc eax
cmp eax, 0x10
jb 0x41be75a
mov eax, dword [esp + 0xc]
mov edx, dword [eax]
mov esi, 0x20
sub esi, edx
xor eax, eax
mov ecx, edx
mov edi, dword [ebx + eax*4]
shr edi, cl
mov ecx, esi
mov ebp, dword [ebx + eax*4]
shl ebp, cl
or edi, ebp
mov dword [ebx + eax*4], edi
inc eax
cmp eax, 0x10
jne 0x41be7c4
add dword [esp + 0xc], 4
dec dword [esp + 4]
jne 0x41be758
inc dword [esp]
dec dword [esp + 8]
jne 0x41be747
xor eax, eax
mov edx, 0xf
sub edx, eax
mov edx, dword [ebx + edx*4]
xor dword [ebx + eax*4], edx
inc eax
cmp eax, 8
jne 0x41be7fb
add esp, 0x10
pop ebp
pop edi
pop esi
pop ebx
ret