joyce8/EMBER2024-capa huggingface dataset:
Function at 0x406beb
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
push 0x4098b8
mov ebx, 0x45b2d8
push ebx
call dword [0x4080fc]
mov edi, dword [esp + 0x1c]
xor ebp, ebp
cmp edi, ebp
mov esi, 0x400
je 0x406c39
push 1
push ebp
push edi
call fcn.00405fb1
push eax
call dword [0x4080bc]
push esi
push ebx
push edi
call dword [0x40806c]
cmp eax, ebp
je 0x406db0
cmp eax, esi
jg 0x406db0
push esi
mov edi, 0x460930
push edi
push dword [esp + 0x20]
call dword [0x40806c]
cmp eax, ebp
je 0x406db0
cmp eax, esi
jg 0x406db0
push ebp
push ebp
push esi
push 0x45bad8
push 0xffffffffffffffff
push ebx
mov ebx, dword [0x408148]
push ebp
push ebp
call ebx
test eax, eax
je 0x406db0
push ebp
push ebp
push esi
mov esi, 0x45c128
push esi
push 0xffffffffffffffff
push edi
push ebp
push ebp
call ebx
test eax, eax
je 0x406db0
push esi
push 0x45bad8
push str._s_s_r_n
push 0x45c528
call dword [0x408228]
add esp, 0x10
mov ebx, eax
mov eax, dword [0x472ddc]
push dword [eax + 0x128]
push edi
call fcn.0040695a
push 4
push 0xc0000000
push edi
call fcn.00405fb1
cmp eax, 0xffffffff
mov dword [esp + 0x1c], eax
je 0x406db0
push ebp
push eax
call dword [0x408098]
mov edi, eax
lea eax, [edi + ebx + 0xa]
push eax
push 0x40
call dword [0x408124]
mov esi, eax
cmp esi, ebp
je 0x406da6
push ebp
lea eax, [esp + 0x14]
push eax
push edi
push esi
push dword [esp + 0x2c]
call dword [0x408158]
test eax, eax
je 0x406da6
cmp edi, dword [esp + 0x10]
jne 0x406da6
push str._Rename__r_n
push esi
call fcn.00405f17
cmp eax, ebp
jne 0x406d3d
push str._Rename__r_n
lea eax, [esi + edi]
push eax
call dword [0x40810c]
add edi, 0xa
jmp 0x406d6e
push 0x4098ac
add eax, 0xa
push eax
call fcn.00405f17
mov ebp, eax
test ebp, ebp
je 0x406d6c
lea ecx, [esi + edi]
lea eax, [ecx + ebx]
jmp 0x406d5f
mov dl, byte [ecx]
mov byte [eax], dl
dec eax
dec ecx
cmp ecx, ebp
ja 0x406d59
sub ebp, esi
inc ebp
mov eax, ebp
xor ebp, ebp
jmp 0x406d70
xor ebp, ebp
mov eax, edi
push ebx
push 0x45c528
add eax, esi
push eax
call fcn.00405f6d
push ebp
push ebp
push ebp
push dword [esp + 0x28]
call dword [0x408160]
push ebp
lea eax, [esp + 0x14]
push eax
add edi, ebx
push edi
push esi
push dword [esp + 0x2c]
call dword [0x408154]
push esi
call dword [0x408130]
push dword [esp + 0x1c]
call dword [0x4080bc]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x406de9
Capabilities:
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x25c
push edi
mov edi, dword [ebp + 8]
push edi
call fcn.004068d2
test byte [ebp + 0xc], 8
mov dword [ebp - 0xc], eax
je 0x406e1c
push edi
call dword [0x408170]
neg eax
sbb eax, eax
inc eax
add dword [0x472e88], eax
jmp 0x40701b
push ebx
mov ebx, dword [ebp + 0xc]
and ebx, 1
push esi
mov dword [ebp - 4], ebx
je 0x406e3b
test eax, eax
je 0x406f99
test byte [ebp + 0xc], 2
je 0x406f99
push edi
mov esi, 0x45c928
push esi
call fcn.00406167
test ebx, ebx
mov ebx, dword [0x4080e8]
je 0x406e5b
push str..
push esi
call ebx
jmp 0x406e61
push edi
call fcn.004068a6
cmp word [edi], 0
jne 0x406e71
cmp word [0x45c928], 0x5c
jne 0x406e79
push 0x408838
push edi
call ebx
push edi
call dword [0x4080c0]
lea eax, [edi + eax*2]
mov dword [ebp - 8], eax
lea eax, [ebp - 0x25c]
push eax
push esi
call dword [0x40816c]
cmp eax, 0xffffffff
mov dword [ebp + 8], eax
je 0x406f8a
lea esi, [ebp - 0x230]
push 0x3f
mov eax, esi
push eax
call fcn.00405e66
xor ebx, ebx
cmp word [eax], bx
je 0x406ec0
cmp word [ebp - 0x28], bx
je 0x406ec0
lea esi, [ebp - 0x28]
cmp word [esi], 0x2e
jne 0x406ee3
movzx eax, word [esi + 2]
cmp ax, bx
je 0x406f67
cmp ax, 0x2e
jne 0x406ee3
cmp word [esi + 4], bx
je 0x406f67
push esi
push dword [ebp - 8]
call fcn.00406167
test byte [ebp - 0x25c], 0x10
je 0x406f0a
mov eax, dword [ebp + 0xc]
and eax, 3
cmp al, 3
jne 0x406f67
push dword [ebp + 0xc]
push edi
call fcn.00406de9
jmp 0x406f67
push edi
push str.Delete:_DeleteFile___s__
call fcn.00406401
pop ecx
pop ecx
push edi
call fcn.00405f91
push edi
call dword [0x408170]
test eax, eax
push edi
jne 0x406f60
test byte [ebp + 0xc], 4
je 0x406f4c
push str.Delete:_DeleteFile_on_Reboot___s__
call fcn.00406401
pop ecx
pop ecx
push edi
push 0xfffffffffffffff1
call fcn.004050df
push ebx
push edi
call fcn.00406db6
jmp 0x406f67
push str.Delete:_DeleteFile_failed___s__
call fcn.00406401
inc dword [0x472e88]
pop ecx
pop ecx
jmp 0x406f67
push 0xfffffffffffffff2
call fcn.004050df
lea eax, [ebp - 0x25c]
push eax
push dword [ebp + 8]
call dword [0x408168]
test eax, eax
jne 0x406ea0
push dword [ebp + 8]
call dword [0x408164]
jmp 0x406f8c
xor ebx, ebx
cmp dword [ebp - 4], ebx
je 0x406f99
mov eax, dword [ebp - 8]
and word [eax - 2], 0
xor esi, esi
cmp dword [ebp - 4], esi
je 0x407019
cmp dword [ebp - 0xc], esi
push edi
jne 0x406fad
push str.RMDir:_RemoveDirectory_invalid_input___s__
jmp 0x407003
call fcn.00406433
test eax, eax
je 0x407019
push edi
call fcn.00406877
push edi
push str.RMDir:_RemoveDirectory___s__
call fcn.00406401
pop ecx
pop ecx
push edi
call fcn.00405f91
push edi
call dword [0x408110]
test eax, eax
push edi
jne 0x407012
test byte [ebp + 0xc], 4
je 0x406ffe
push str.RMDir:_RemoveDirectory_on_Reboot___s__
call fcn.00406401
pop ecx
pop ecx
push edi
push 0xfffffffffffffff1
call fcn.004050df
push esi
push edi
call fcn.00406db6
jmp 0x407019
push str.RMDir:_RemoveDirectory_failed___s__
call fcn.00406401
inc dword [0x472e88]
pop ecx
pop ecx
jmp 0x407019
push 0xffffffffffffffe5
call fcn.004050df
pop esi
pop ebx
pop edi
leave
ret 8
Function at 0x407316
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
cmp dword [0x461134], 0
jne 0x407351
xor ecx, ecx
push esi
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x40732a
mov dword [ecx*4 + 0x461130], eax
inc ecx
cmp ecx, 0x100
jl 0x407325
pop esi
cmp dword [ebp + 0x10], 0
mov eax, dword [ebp + 8]
not eax
jbe 0x40737e
mov ecx, dword [ebp + 0xc]
movzx edx, byte [ecx]
dec dword [ebp + 0x10]
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x461130]
inc ecx
cmp dword [ebp + 0x10], 0
ja 0x40735f
not eax
pop ebp
ret 0xc

Function at 0x431005
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
call 0x43100c
nop
nop
nop
nop
pop eax
nop
nop
add eax, 0x403e6a
nop
sub eax, 0x403e10
nop
nop
nop
nop
mov ebx, dword [eax]
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
nop
cmp ebx, ecx
jl 0x431030
nop
nop
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
jne 0x43101e
nop
nop
nop
nop
nop
nop
popal
nop
jmp loc.00401219
Function at 0x410c70
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push 0x4025e6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
mov eax, 0x70
call sub.MSVBVM60.DLL___vbaChkstk
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov dword [ebp - 0x14], 0x401f20
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 4], 1
mov dword [ebp - 4], 2
push 0xffffffffffffffff
call dword [sym.imp.MSVBVM60.DLL___vbaOnError]
mov dword [ebp - 4], 3
call fcn.00404fd8
mov dword [ebp - 0x6c], eax
call dword [sym.imp.MSVBVM60.DLL___vbaSetSystemError]
lea eax, [ebp - 0x64]
push eax
push 0x28
mov ecx, dword [ebp - 0x6c]
push ecx
call fcn.00405038
mov dword [ebp - 0x70], eax
call dword [sym.imp.MSVBVM60.DLL___vbaSetSystemError]
xor edx, edx
cmp dword [ebp - 0x70], 0
setne dl
neg edx
movsx eax, dx
test eax, eax
je 0x410e25
mov dword [ebp - 4], 4
xor ecx, ecx
test ecx, ecx
je 0x410d46
mov dword [ebp - 4], 6
mov dword [ebp - 0x6c], 0x1c
lea edx, [ebp - 0x6c]
push edx
lea eax, [ebp - 0x3c]
push eax
push 0x1c
lea ecx, [ebp - 0x60]
push ecx
push 0
mov edx, dword [ebp - 0x64]
push edx
call fcn.00405088
call dword [sym.imp.MSVBVM60.DLL___vbaSetSystemError]
jmp 0x410e25
mov dword [ebp - 4], 9
lea eax, [ebp - 0x44]
push eax
push 0x404ae4
lea ecx, [ebp - 0x68]
push ecx
call dword [sym.imp.MSVBVM60.DLL___vbaStrToAnsi]
push eax
push 0
call fcn.004050e8
mov dword [ebp - 0x6c], eax
call dword [sym.imp.MSVBVM60.DLL___vbaSetSystemError]
xor edx, edx
cmp dword [ebp - 0x6c], 0
setne dl
neg edx
mov word [ebp - 0x74], dx
lea ecx, [ebp - 0x68]
call dword [sym.imp.MSVBVM60.DLL___vbaFreeStr]
movsx eax, word [ebp - 0x74]
test eax, eax
je 0x410e25
mov dword [ebp - 4], 0xa
mov dword [ebp - 0x60], 1
mov dword [ebp - 4], 0xb
mov dword [ebp - 0x74], 0
cmp dword [ebp - 0x74], 2
jae 0x410dc3
mov dword [ebp - 0x8c], 0
jmp 0x410dcf
call dword [sym.imp.MSVBVM60.DLL___vbaGenerateBoundsError]
mov dword [ebp - 0x8c], eax
lea ecx, [ebp - 0x44]
push ecx
mov edx, dword [ebp - 0x74]
imul edx, edx, 0xc
lea eax, [ebp + edx - 0x5c]
push eax
push 8
call dword [sym.imp.MSVBVM60.DLL___vbaCopyBytes]
mov dword [ebp - 4], 0xc
mov dword [ebp - 0x74], 0
cmp dword [ebp - 0x74], 2
jae 0x410e06
mov dword [ebp - 0x90], 0
jmp 0x410e12
call dword [sym.imp.MSVBVM60.DLL___vbaGenerateBoundsError]
mov dword [ebp - 0x90], eax
mov ecx, dword [ebp - 0x74]
imul ecx, ecx, 0xc
mov dword [ebp + ecx - 0x54], 2
jmp 0x410d14
mov dword [ebp - 4], 0x11
mov edx, dword [ebp - 0x64]
push edx
call fcn.00404e50
call dword [sym.imp.MSVBVM60.DLL___vbaSetSystemError]
push 0x410e4d
jmp 0x410e4c
ret

Function at 0x433002
Capabilities:
Encode data using xor

Disassembly:
pushal
nop
nop
nop
call 0x43300c
pop eax
nop
nop
nop
nop
nop
nop
add eax, 0x40a063
sub eax, 0x40a009
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
xor dword [ebx], edx
add ebx, 4
nop
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
jl 0x433030
nop
add eax, 0xc
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
jne 0x43301e
nop
nop
nop
nop
nop
nop
nop
nop
popal
jmp 0x431219
Function at 0x4353bf
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.0042716b
mov esi, dword [ebp + 8]
push 2
mov edi, eax
lea eax, [ebp - 4]
push eax
mov ecx, esi
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
jne 0x4353f7
xor eax, eax
jmp 0x435423
cmp esi, dword [ebp - 4]
je 0x435420
cmp dword [ebp + 0xc], 0
je 0x435420
push dword [edi + 0x9c]
call fcn.00434fcd
push dword [edi + 0x9c]
mov esi, eax
call fcn.004250ad
pop ecx
pop ecx
cmp esi, eax
je 0x4353f3
xor eax, eax
inc eax
pop edi
pop esi
leave
ret

Function at 0x4018cf
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffb0
mov eax, ebp
add eax, 0xffffffb4
mov edi, eax
push edi
xor ecx, ecx
mov cl, 0x30
mov dword [edi], ecx
sub cl, 0x25
xor eax, eax
inc edi
inc edi
inc edi
inc edi
mov dword [edi], eax
dec ecx
jne 0x4018e8
mov eax, 0x400000
mov dword [0x404850], eax
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x44], 0x401778
mov dword [ebp - 0x24], str.grita
call dword [sym.imp.USER32.dll_RegisterClassExW]
xor eax, eax
push eax
push dword [0x404850]
push eax
push eax
push 0x1a4
push 0x2a8
push 0xfffff9c0
push 0xfffff63c
push 0
push str.kovice
push str.grita
push eax
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov dword [0x404858], eax
push eax
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
call dword [sym.imp.USER32.dll_UpdateWindow]
xor eax, eax
push eax
push eax
push eax
lea edx, [ebp - 0x1c]
push edx
call dword [sym.imp.USER32.dll_GetMessageW]
test eax, eax
je 0x401997
mov esi, dword [sym.imp.USER32.dll_TranslateMessage]
mov edi, dword [sym.imp.USER32.dll_DispatchMessageW]
lea eax, [ebp - 0x1c]
push eax
call esi
lea ecx, [ebp - 0x1c]
push ecx
call edi
xor eax, eax
push eax
push eax
push eax
lea edx, [ebp - 0x1c]
push edx
call dword [sym.imp.USER32.dll_GetMessageW]
test eax, eax
jne 0x401978
mov esp, ebp
pop ebp
ret 0x10
Function at 0x5f51b0
Capabilities:
Acquire debug privileges

Disassembly:
push ecx
lea eax, [esp]
mov dword [esp], 0
push eax
push 0x20
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp]
push 1
push str.SeBackupPrivilege
push ecx
call fcn.005f5140
mov edx, dword [esp + 0xc]
push 1
push str.SeDebugPrivilege
push edx
call fcn.005f5140
mov eax, dword [esp + 0x18]
push 1
push str.SeRestorePrivilege
push eax
call fcn.005f5140
mov ecx, dword [esp + 0x24]
push 1
push str.SeSecurityPrivilege
push ecx
call fcn.005f5140
mov edx, dword [esp + 0x30]
add esp, 0x30
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
pop ecx
ret

Function at 0x5f5bfa
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [ebp - 4]
push eax
push 0x20019
xor esi, esi
push esi
push str.CLSIDADB880A6_D8FF_11CF_9377_00AA003B7A11InprocServer32
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x5f5c50
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
mov dword [ebp - 8], 0x104
push esi
push esi
push 0x60787c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x5f5c43
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x5f5c52
xor eax, eax
pop esi
leave
ret 4
Function at 0x41a3558
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 0x41a3677
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, 0x41a368c
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 0x41a3645
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 0x41a3645
mov edx, 0x41a3710
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 0x41a360c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41a367e
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 0x41a3714
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 0x41a37df
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 0x41a378a
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, 0x41a37f8
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 0x41a37b2
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, 0x41a3850
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 0x41a37e6
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 0x41a64ec
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 0x41a6599
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, 0x41a65b0
mov eax, dword [0x4198d5c]
call fcn.04199030
lea eax, [ebp - 0x14]
call sub.rtl60.bpl__System__VarToInt_qqrrx14System_Variant
test eax, eax
jle 0x41a6573
mov bl, 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41a65a0
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 0x41a708c
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 0x41a7176
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, 0x41a718c
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 0x41a7149
mov edx, 0x41a71d8
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 0x41a7110
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41a717d
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 0x41ac2b0
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 0x41ac310
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 0x41ac2fa
push 3
push 0x41ac31c
push 0x41ac31c
mov eax, dword [ebp - 4]
call sub.rtl60.bpl__System__LStrToPChar_qqrx17System_AnsiString
push eax
push 0x41ac320
push 0
call sub.shell32.dll_ShellExecuteA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41ac317
lea eax, [ebp - 4]
call sub.rtl60.bpl__System__LStrClr_qqrpv
ret
Function at 0x41b1ddc
Capabilities:
Encode data using xor
Generate random numbers using the delphi lcg

Disassembly:
and edx, edx
je 0x41b1dfa
and ecx, ecx
jle 0x41b1dfa
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 0x41b1de5
pop ebx
ret

Function at 0x41b2068
Capabilities:
Encode data using xor

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

Function at 0x41be5ec
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 0x41be6d1
inc eax
mov dword [esp + 8], eax
mov dword [esp], 0
mov dword [esp + 4], 4
mov eax, 0x41d2678
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 + 0x41cb170]
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 0x41be632
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 0x41be69c
add dword [esp + 0xc], 4
dec dword [esp + 4]
jne 0x41be630
inc dword [esp]
dec dword [esp + 8]
jne 0x41be61f
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 0x41be6d3
add esp, 0x10
pop ebp
pop edi
pop esi
pop ebx
ret