joyce8/EMBER2024-capa huggingface dataset:
Function at 0x404618
Capabilities:
Authenticate hmac
Contain obfuscated stackstrings

Disassembly:
jne 0x404632
push dword [ebp + 0x14]
call fcn.00403a5f
add esp, 0xc
mov dword [ebp - 0x67c], eax
and byte [ebp - 0x524], 0
and byte [ebp - 0x523], 0
mov byte [ebp - 0x522], 0x15
and byte [ebp - 0x521], 0
mov byte [ebp - 0x520], 0xa2
mov byte [ebp - 0x51f], 0x8f
mov byte [ebp - 0x51e], 0x8b

Function at 0x4049d0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
add dh, al
test dword [esi - 0x55000004], edx
and byte [ebp - 0x369], 0
mov byte [ebp - 0x368], 0x12
mov byte [ebp - 0x367], 0x30
mov byte [ebp - 0x366], 0x21
mov byte [ebp - 0x365], 6
mov byte [ebp - 0x364], 0x2c
mov byte [ebp - 0x363], 0x26
mov byte [ebp - 0x362], 0x21
mov byte [ebp - 0x361], 0x30
mov byte [ebp - 0x360], 0x38
mov byte [ebp - 0x35f], 0x11
mov byte [ebp - 0x35e], 0x3c
mov byte [ebp - 0x35d], 0x27
mov byte [ebp - 0x35c], 0x30
mov byte [ebp - 0x35b], 0x36
mov byte [ebp - 0x35a], 0x21
mov byte [ebp - 0x359], 0x3a
mov byte [ebp - 0x358], 0x27
mov byte [ebp - 0x357], 0x2c
mov byte [ebp - 0x356], 0x14
mov byte [ebp - 0x355], 0x55
lea eax, [ebp - 0x36c]
push eax
call fcn.00403aaa
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.00403a5f
add esp, 0xc
mov dword [ebp - 0x3d4], eax
call fcn.00403a9a
arpl sp, dx
xlatb
push ecx
push 0x104
lea eax, [ebp - 0x12c]
push eax
call dword [ebp - 0x3d4]
mov dword [ebp - 0x28], eax
call fcn.00403a9a
test byte [ebx + edi*4 - 0x1f9a7fc3], bh
add byte [eax - 0x39ff1e9b], al
inc ebp
loop 0x404add
and byte [ebp - 0x1d], 0
mov byte [ebp - 0x1c], 0xa5
mov byte [ebp - 0x1b], 0x87
mov byte [ebp - 0x1a], 0x96
mov byte [ebp - 0x19], 0xb6
mov byte [ebp - 0x18], 0x87
mov byte [ebp - 0x17], 0x8f
mov byte [ebp - 0x16], 0x92
mov byte [ebp - 0x15], 0xb2
mov byte [ebp - 0x14], 0x83
inc ebp
ljmp 0xc6b2

Function at 0x405968
Capabilities:
Contain obfuscated stackstrings

Disassembly:
les ecx, [ecx + ebp*8]
mov dword [0x83000000], eax
mov ebp, 0xfffff904
inc dword [esi]

Function at 0x407080
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
mov esi, eax
mov eax, dword [0x409214]
mov dword [eax], ecx
mov ebx, edx
test ebx, ebx
jle 0x4070a1
mov eax, 0xff
call fcn.00402680
xor byte [esi], al
inc esi
dec ebx
jne 0x407091
pop esi
pop ebx
ret
Function at 0x417a54
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, 0x4306a9
call fcn.00430290
sub esp, 0xc
push ebx
push esi
xor eax, eax
push edi
mov edi, ecx
mov dword [ebp - 0x18], eax
mov dword [ebp - 4], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
push str.FILEPATH
mov byte [ebp - 4], 2
mov ebx, dword [sym.imp.KERNEL32.dll_FindResourceW]
push 0x6d
push dword [edi + 4]
call ebx
push eax
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ecx, eax
call fcn.004069bd
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
push str.FILEPATH
push 0x6e
push dword [edi + 4]
call ebx
push eax
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_LockResource]
push eax
lea ecx, [ebp - 0x18]
call fcn.0040f1c4
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
push str.FILEPATH
push 0x6f
push dword [edi + 4]
call ebx
push eax
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_LockResource]
push eax
lea ecx, [ebp - 0x14]
call fcn.0040f1c4
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
lea ecx, [ebp - 0x14]
call fcn.0040ef32
lea ecx, [ebp - 0x18]
mov edx, eax
call fcn.0040ef32
mov ecx, eax
call fcn.004069cb
push str.FILEPATH
push 0x70
push dword [edi + 4]
call ebx
push eax
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_LockResource]
push eax
lea ecx, [ebp - 0x10]
call fcn.0040f1c4
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x417b6e
xor ecx, ecx
cmp word [eax], cx
je 0x417b6e
lea ecx, [ebp - 0x10]
call fcn.0040ef32
mov ecx, eax
call fcn.00406a7a
push str.INFOEXE
push 0x7f
push dword [edi + 4]
call ebx
push eax
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_LockResource]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
test edi, edi
je 0x417ba1
mov ecx, dword [edi]
call fcn.00406aa2
lea ecx, [ebp - 0x10]
call fcn.0040eea9
lea ecx, [ebp - 0x14]
call fcn.0040eea9
lea ecx, [ebp - 0x18]
call fcn.0040eea9
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x42c0b4
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0042bd74

Function at 0x41102d
Capabilities:
Terminate process

Disassembly:
jmp 0x4146f0
jmp fcn.00415180
cmp ecx, dword [0x41e054]
jne 0x4146fa
repz ret
jmp 0x411113
Function at 0x10006089
Capabilities:
Resume thread

Disassembly:
push 0x10
mov eax, 0x10011324
call fcn.10010dbc
mov ebx, ecx
mov dword [ebp - 0x18], ebx
cmp byte [ebx + 4], 0
jne 0x100061ed
call dword [sym.imp.kernel32.dll_GetCurrentThreadId]
cmp eax, dword [ebx]
jne 0x100061ed
push 0x1000334a
push 0xd008
call fcn.10007073
mov edi, eax
mov dword [ebp - 0x1c], edi
pop ecx
pop ecx
test edi, edi
je 0x100061e6
push 0xc000
xor ebx, ebx
push ebx
push edi
call fcn.1000ec20
add esp, 0xc
mov dword [edi + 0xc000], ebx
lea eax, [edi + 0xc004]
push 0x1000
push ebx
push eax
call fcn.1000ec20
add esp, 0xc
mov dword [edi + 0xd004], ebx
test edi, edi
je 0x100061e6
call dword [sym.imp.kernel32.dll_GetProcessHeap]
push eax
lea ecx, [ebp - 0x1c]
call fcn.10007073
mov ecx, edi
mov dword [ebp - 4], ebx
call fcn.10007073
mov esi, eax
push esi
push 0x10003028
mov dword [ebp - 0x10], esi
call fcn.10007073
pop ecx
pop ecx
test esi, esi
jne 0x1000619a
mov ecx, edi
call fcn.10007073
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x24]
mov dword [ebp - 0x14], eax
test eax, eax
je 0x100061fa
mov eax, dword [eax]
mov esi, dword [eax + 8]
mov ecx, esi
call dword [0x10014250]
mov ecx, dword [ebp - 0x14]
call esi
call fcn.10007073
test eax, eax
je 0x10006190
jg 0x10006175
mov esi, eax
mov dword [ebp - 0x10], eax
jmp 0x10006181
movzx esi, ax
or esi, 0x80070000
mov dword [ebp - 0x10], esi
push esi
push 0x10003050
call fcn.10007073
pop ecx
pop ecx
jmp 0x1000619a
mov eax, dword [ebp - 0x18]
mov esi, dword [ebp - 0x10]
mov byte [eax + 4], 1
lea ecx, [ebp - 0x1c]
call fcn.1000704c
lea eax, [edi + 0xc000]
mov dword [ebp - 0x1c], eax
cmp dword [eax], ebx
jbe 0x100061ce
lea esi, [edi + 8]
test byte [esi - 4], 1
je 0x100061c3
push dword [esi]
call dword [sym.imp.kernel32.dll_ResumeThread]
mov eax, dword [ebp - 0x1c]
inc ebx
add esi, 0xc
cmp ebx, dword [eax]
jb 0x100061b2
mov esi, dword [ebp - 0x10]
mov ecx, edi
call fcn.10007073
push 0xd008
push edi
call fcn.10007073
pop ecx
pop ecx
mov eax, esi
jmp 0x100061f2
mov eax, 0x8007000e
jmp 0x100061f2
mov eax, 0x800710dd
call fcn.10010d85
ret 4
call fcn.10007073
int3

Function at 0x10007073
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
pushal
call 0x10007082
pop dword [ebp - 0x20]
mov eax, 0x2bd69806
sub eax, 0x1bd62784
sub dword [ebp - 0x20], eax
push 0x40
push 0x1000
push 0x363c1
push 0
mov eax, 0x65b83133
add eax, 0xaa490f31
add eax, dword [ebp - 0x20]
call dword [eax]
mov ecx, 0x5c43a8fa
add ecx, 0xa3bc93d8
xor edx, edx
add edx, eax
mov edi, 0x97af4e04
add edi, 0x785237fc
add edi, dword [ebp - 0x20]
mov esi, 0xd8db19dd
sub dword [ebp - 4], edi
mov ebx, dword [edi]
xor dword [ebp - 0x14], esi
xor ebx, esi
sub dword [ebp - 0x10], 0xb2a6c98a
mov dword [edx], ebx
xor dword [ebp - 0x18], 0x38dc2f9b
add edx, 4
add edi, 0xf3bcba6b
add edi, 0xc434599
loop 0x100070dd
add eax, 0xf6103a25
add eax, 0x9f0abf6
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0x617c2ac3
sub ecx, 0x517c2ac3
add ecx, dword [ebp - 0x20]
call ebx
leave
ret
Function at 0x419f198
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
xor ecx, ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], ecx
mov dword [ebp - 0x28], ecx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call sub.rtl60.bpl__System__LStrAddRef_qqrpv
xor eax, eax
push ebp
push 0x419f263
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [sym.imp.VEDatasets.bpl__Vedataset_defConnection]
mov edx, dword [edx]
mov ecx, 0x419f27c
mov eax, dword [0x4199678]
call fcn.0419995c
test al, al
jne 0x419f1ea
mov bl, 1
jmp 0x419f23d
cmp ebx, 0x64
jne 0x419f1f3
xor ebx, ebx
jmp 0x419f23d
lea edx, [ebp - 0x28]
mov eax, dword [ebp - 4]
call sub.rtl60.bpl__Sysutils_QuotedStr_qqrx17System_AnsiString
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x24], eax
mov byte [ebp - 0x20], 0xb
mov dword [ebp - 0x1c], ebx
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, 0x419f298
mov eax, dword [0x4199678]
call fcn.04199ee8
lea eax, [ebp - 0x14]
call sub.rtl60.bpl__System__VarToInt_qqrrx14System_Variant
test eax, eax
setne bl
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x419f26a
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 0x41a36e0
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push ebx
push esi
push edi
mov ebx, ecx
mov edi, edx
mov esi, eax
xor eax, eax
push ebp
push 0x41a3799
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, ebx
mov edx, 0x41a37b0
call sub.rtl60.bpl__System__LStrAsg_qqrpvpxv
test edi, edi
je 0x41a3733
push dword [ebx]
push 0x41a3b98
lea edx, [ebp - 4]
mov eax, edi
call sub.rtl60.bpl__Sysutils_IntToStr_qqri
push dword [ebp - 4]
push 0x41a3bb8
mov eax, ebx
mov edx, 4
call sub.rtl60.bpl__System__LStrCatN_qqrv
test esi, esi
je 0x41a375c
push dword [ebx]
push 0x41a3bc4
lea edx, [ebp - 8]
mov eax, esi
call sub.rtl60.bpl__Sysutils_IntToStr_qqri
push dword [ebp - 8]
push 0x41a3bb8
mov eax, ebx
mov edx, 4
call sub.rtl60.bpl__System__LStrCatN_qqrv
push dword [ebx]
push 0x41a3bdc
push 0x41a3c54
push 0x41a3cdc
push 0x41a3d84
mov eax, ebx
mov edx, 5
call sub.rtl60.bpl__System__LStrCatN_qqrv
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41a37a0
lea eax, [ebp - 8]
mov edx, 2
call sub.rtl60.bpl__System__LStrArrayClr_qqrpvi
ret
Function at 0x41a4e28
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
mov ecx, 4
push 0
push 0
dec ecx
jne 0x41a4e30
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call sub.rtl60.bpl__System__LStrAddRef_qqrpv
xor eax, eax
push ebp
push 0x41a4f03
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
push ebp
push 0x41a4ecc
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [sym.imp.VEDatasets.bpl__Vedataset_defDonemNo]
mov eax, dword [eax]
push eax
lea edx, [ebp - 0x14]
mov eax, dword [ebp - 4]
call sub.rtl60.bpl__Sysutils_QuotedStr_qqrx17System_AnsiString
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x10], eax
mov byte [ebp - 0xc], 0xb
lea eax, [ebp - 0x10]
push eax
push 0
lea eax, [ebp - 8]
push eax
mov ecx, dword [sym.imp.VEDatasets.bpl__Vedataset_defFirmaNo]
mov ecx, dword [ecx]
mov edx, 0x41a4f1c
mov eax, dword [0x4199678]
call fcn.0419a108
lea eax, [ebp - 0x24]
push eax
call sub.VEDatasets.bpl__Vedataset_Connection_qqrv
mov edx, eax
mov ecx, dword [ebp - 8]
mov eax, dword [0x4199678]
call fcn.04199f80
lea eax, [ebp - 0x24]
call sub.rtl60.bpl__System__VarToInt_qqrrx14System_Variant
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x41a4ed8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41a4f0a
lea eax, [ebp - 0x24]
call sub.rtl60.bpl__System__VarClr_qqrr14System_Variant
lea eax, [ebp - 0x14]
call sub.rtl60.bpl__System__LStrClr_qqrpv
lea eax, [ebp - 8]
mov edx, 2
call sub.rtl60.bpl__System__LStrArrayClr_qqrpvi
ret

Function at 0x41a5a90
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
mov ecx, 4
push 0
push 0
dec ecx
jne 0x41a5a98
push ecx
push ebx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call sub.rtl60.bpl__System__LStrAddRef_qqrpv
xor eax, eax
push ebp
push 0x41a5b74
push dword fs:[eax]
mov dword fs:[eax], esp
mov ebx, 1
cmp dword [ebp - 4], 0
je 0x41a5b40
mov eax, dword [ebp - 4]
mov edx, 0x41a5b8c
call sub.rtl60.bpl__System__LStrCmp_qqrv
je 0x41a5b40
lea ecx, [ebp - 8]
xor edx, edx
mov eax, dword [ebp - 4]
call fcn.041a4478
mov edx, dword [ebp - 8]
lea eax, [ebp - 4]
call sub.rtl60.bpl__System__LStrLAsg_qqrpvpxv
lea eax, [ebp - 0x18]
push eax
mov eax, dword [sym.imp.VEDatasets.bpl__Vedataset_defDonemNo]
mov eax, dword [eax]
push eax
mov eax, dword [ebp - 4]
mov dword [ebp - 0x24], eax
mov byte [ebp - 0x20], 0xb
lea eax, [ebp - 0x24]
push eax
push 0
lea eax, [ebp - 0x1c]
push eax
mov ecx, dword [sym.imp.VEDatasets.bpl__Vedataset_defFirmaNo]
mov ecx, dword [ecx]
mov edx, 0x41a5b9c
mov eax, dword [0x4199678]
call fcn.0419a108
mov ecx, dword [ebp - 0x1c]
mov edx, dword [0x41fb154]
mov eax, dword [0x4199678]
call fcn.04199f80
lea eax, [ebp - 0x18]
call sub.rtl60.bpl__System__VarToInt_qqrrx14System_Variant
mov ebx, eax
test ebx, ebx
jne 0x41a5b49
mov ebx, 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41a5b7b
lea eax, [ebp - 0x1c]
call sub.rtl60.bpl__System__LStrClr_qqrpv
lea eax, [ebp - 0x18]
call sub.rtl60.bpl__System__VarClr_qqrr14System_Variant
lea eax, [ebp - 8]
mov edx, 2
call sub.rtl60.bpl__System__LStrArrayClr_qqrpvi
ret
Function at 0x41a6bd4
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
mov ecx, 4
push 0
push 0
dec ecx
jne 0x41a6bdc
push ecx
push ebx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call sub.rtl60.bpl__System__LStrAddRef_qqrpv
xor eax, eax
push ebp
push 0x41a6cb5
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 8]
mov eax, dword [ebp - 4]
call sub.rtl60.bpl__Sysutils_Trim_qqrx17System_AnsiString
mov edx, dword [ebp - 8]
lea eax, [ebp - 4]
call sub.rtl60.bpl__System__LStrLAsg_qqrpvpxv
cmp dword [ebp - 4], 0
jne 0x41a6c1e
xor ebx, ebx
jmp 0x41a6c85
lea eax, [ebp - 0x18]
push eax
mov eax, dword [sym.imp.VEDatasets.bpl__Vedataset_defDonemNo]
mov eax, dword [eax]
push eax
lea eax, [ebp - 0x1c]
push eax
push 0x41a6ccc
lea edx, [ebp - 0x24]
mov eax, dword [ebp - 4]
call sub.rtl60.bpl__Sysutils_QuotedStr_qqrx17System_AnsiString
push dword [ebp - 0x24]
push 0x41a6d00
lea eax, [ebp - 0x20]
mov edx, 3
call sub.rtl60.bpl__System__LStrCatN_qqrv
mov edx, dword [ebp - 0x20]
mov ecx, dword [sym.imp.VEDatasets.bpl__Vedataset_defFirmaNo]
mov ecx, dword [ecx]
mov eax, dword [0x4199678]
call fcn.0419a428
mov ecx, dword [ebp - 0x1c]
mov edx, dword [0x41fb154]
mov eax, dword [0x4199678]
call fcn.04199f80
lea eax, [ebp - 0x18]
call sub.rtl60.bpl__System__VarToInt_qqrrx14System_Variant
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41a6cbc
lea eax, [ebp - 0x24]
mov edx, 3
call sub.rtl60.bpl__System__LStrArrayClr_qqrpvi
lea eax, [ebp - 0x18]
call sub.rtl60.bpl__System__VarClr_qqrr14System_Variant
lea eax, [ebp - 8]
mov edx, 2
call sub.rtl60.bpl__System__LStrArrayClr_qqrpvi
ret
Function at 0x41abe00
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 - 0x18], ebx
mov esi, ecx
mov dword [ebp - 4], edx
mov ebx, eax
mov eax, dword [ebp - 4]
call sub.rtl60.bpl__System__LStrAddRef_qqrpv
xor eax, eax
push ebp
push 0x41abeb7
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x14]
push eax
call sub.VEDatasets.bpl__Vedataset_DonemNo_qqrv
push eax
mov eax, dword [ebp - 4]
mov dword [ebp - 0x28], eax
mov byte [ebp - 0x24], 0xb
mov dword [ebp - 0x20], ebx
mov byte [ebp - 0x1c], 0
lea eax, [ebp - 0x28]
push eax
push 1
lea eax, [ebp - 0x18]
push eax
call sub.VEDatasets.bpl__Vedataset_FirmaNo_qqrv
mov ecx, eax
mov edx, 0x41abecc
mov eax, dword [0x4199678]
call fcn.0419a108
mov eax, dword [ebp - 0x18]
push eax
call sub.VEDatasets.bpl__Vedataset_Connection_qqrv
mov edx, eax
mov eax, dword [0x4199678]
pop ecx
call fcn.04199f80
lea edx, [ebp - 0x14]
mov eax, esi
call sub.rtl60.bpl__System__VarToWStr_qqrr17System_WideStringrx14System_Variant
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41abebe
lea eax, [ebp - 0x18]
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 0x41aeac8
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 8], ebx
mov esi, ecx
mov dword [ebp - 4], edx
mov ebx, eax
mov eax, dword [ebp - 4]
call sub.rtl60.bpl__System__LStrAddRef_qqrpv
xor eax, eax
push ebp
push 0x41aeb7d
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [sym.imp.VEDatasets.bpl__Vedataset_defDonemNo]
mov eax, dword [eax]
push eax
mov eax, dword [ebp - 4]
mov dword [ebp - 0x18], eax
mov byte [ebp - 0x14], 0xb
mov dword [ebp - 0x10], ebx
mov byte [ebp - 0xc], 0
lea eax, [ebp - 0x18]
push eax
push 1
lea eax, [ebp - 8]
push eax
mov ecx, dword [sym.imp.VEDatasets.bpl__Vedataset_defFirmaNo]
mov ecx, dword [ecx]
mov edx, 0x41aeb94
mov eax, dword [0x4199678]
call fcn.0419a108
lea eax, [ebp - 0x28]
push eax
call sub.VEDatasets.bpl__Vedataset_Connection_qqrv
mov edx, eax
mov ecx, dword [ebp - 8]
mov eax, dword [0x4199678]
call fcn.04199f80
lea edx, [ebp - 0x28]
mov eax, esi
call sub.rtl60.bpl__System__VarToLStr_qqrr17System_AnsiStringrx14System_Variant
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41aeb84
lea eax, [ebp - 0x28]
call sub.rtl60.bpl__System__VarClr_qqrr14System_Variant
lea eax, [ebp - 8]
mov edx, 2
call sub.rtl60.bpl__System__LStrArrayClr_qqrpvi
ret
Function at 0x41b7c5c
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffcc
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 - 0x18], ebx
mov dword [ebp - 0x34], ebx
mov dword [ebp - 4], ecx
mov esi, edx
mov ebx, eax
mov eax, dword [ebp - 4]
call sub.rtl60.bpl__System__LStrAddRef_qqrpv
xor eax, eax
push ebp
push 0x41b7d37
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x14]
push eax
mov eax, dword [sym.imp.VEDatasets.bpl__Vedataset_defDonemNo]
mov eax, dword [eax]
push eax
mov dword [ebp - 0x30], ebx
mov byte [ebp - 0x2c], 0
lea eax, [ebp - 0x34]
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 - 0x34]
mov dword [ebp - 0x28], eax
mov byte [ebp - 0x24], 0xb
mov dword [ebp - 0x20], esi
mov byte [ebp - 0x1c], 0
lea eax, [ebp - 0x30]
push eax
push 2
lea eax, [ebp - 0x18]
push eax
mov ecx, dword [sym.imp.VEDatasets.bpl__Vedataset_defFirmaNo]
mov ecx, dword [ecx]
mov edx, 0x41b7d50
mov eax, dword [0x4199678]
call fcn.0419a108
mov ecx, dword [ebp - 0x18]
mov edx, dword [0x41fb154]
mov eax, dword [0x4199678]
call fcn.04199f80
lea edx, [ebp - 0x14]
mov eax, dword [ebp + 8]
call sub.rtl60.bpl__System__VarToLStr_qqrr17System_AnsiStringrx14System_Variant
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41b7d3e
lea eax, [ebp - 0x34]
call sub.rtl60.bpl__System__LStrClr_qqrpv
lea eax, [ebp - 0x18]
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 0x41bc084
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
xor edx, edx
mov dword [ebp - 4], edx
xor edx, edx
push ebp
push 0x41bc11b
push dword fs:[edx]
mov dword fs:[edx], esp
mov ecx, eax
mov dl, 1
mov eax, dword [sym.imp.adortl60.bpl__Adodb_TADOQuery_]
call sub.adortl60.bpl__Adodb_TADOQuery__bctr_qqrp18Classes_TComponent
mov ebx, eax
call sub.VEDatasets.bpl__Vedataset_Connection_qqrv
mov edx, eax
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x268]
lea eax, [ebp - 4]
push eax
call sub.VEDatasets.bpl__Vedataset_FirmaNo_qqrv
mov dword [ebp - 0x14], eax
mov byte [ebp - 0x10], 0
call sub.VEDatasets.bpl__Vedataset_DonemNo_qqrv
mov dword [ebp - 0xc], eax
mov byte [ebp - 8], 0
lea edx, [ebp - 0x14]
mov ecx, 1
mov eax, 0x41bc134
call sub.rtl60.bpl__Sysutils_Format_qqrx17System_AnsiStringpx14System_TVarRecxi
mov eax, dword [ebp - 4]
push eax
mov eax, ebx
call sub.adortl60.bpl__Adodb_TADOQuery_GetSQL_qqrv
pop edx
mov ecx, dword [eax]
call dword [ecx + 0x2c]
mov eax, ebx
call sub.dbrtl60.bpl__Db_TDataSet_Open_qqrv
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41bc122
lea eax, [ebp - 4]
call sub.rtl60.bpl__System__LStrClr_qqrpv
ret
Function at 0x41c84dc
Capabilities:
Encode data using xor
Generate random numbers using the delphi lcg

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

Function at 0x41c8768
Capabilities:
Encode data using xor

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

Function at 0x41d4cec
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 0x41d4dd1
inc eax
mov dword [esp + 8], eax
mov dword [esp], 0
mov dword [esp + 4], 4
mov eax, 0x41eb908
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 + 0x41e4400]
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 0x41d4d32
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 0x41d4d9c
add dword [esp + 0xc], 4
dec dword [esp + 4]
jne 0x41d4d30
inc dword [esp]
dec dword [esp + 8]
jne 0x41d4d1f
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 0x41d4dd3
add esp, 0x10
pop ebp
pop edi
pop esi
pop ebx
ret