joyce8/EMBER2024-capa huggingface dataset:
Function at 0x49fa20
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
mov eax, dword [edi]
cmp eax, 0x17
jne 0x49fa4d
movzx eax, word [esi + 0x55c]
push eax
push 0
call dword [sym.imp.USER32.dll_LoadCursorW]
pop edi
pop esi
mov dword [ebp + 8], eax
pop ebp
jmp dword [sym.imp.USER32.dll_SetCursor]
cmp eax, 0xd
jne 0x49fa9c
mov eax, dword [esi]
call dword [eax + 0x34]
push dword [edi + 0x10]
push dword [edi + 0xc]
push eax
call dword [sym.imp.USER32.dll_PtInRect]
test eax, eax
je 0x49fafd
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x34]
movups xmm0, xmmword [eax]
movups xmmword [esi + 0x568], xmm0
mov eax, dword [edi + 0xc]
mov dword [esi + 0x560], eax
mov eax, dword [edi + 0x10]
pop edi
mov dword [esi + 0x564], eax
mov byte [esi + 0x578], 1
pop esi
pop ebp
ret 4
cmp eax, 0xe
jne 0x49fabd
mov ecx, dword [esi + 0x558]
mov byte [esi + 0x578], 0
test ecx, ecx
je 0x49fafd
mov eax, dword [ecx]
call dword [eax + 8]
pop edi
pop esi
pop ebp
ret 4
cmp eax, 9
jne 0x49faf7
cmp dword [esi + 0x558], 0
je 0x49fafd
cmp byte [esi + 0x578], 0
je 0x49fafd
push 1
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jns 0x49fafd
mov ecx, dword [esi + 0x558]
lea eax, [edi + 0xc]
push eax
push esi
mov edx, dword [ecx]
call dword [edx + 4]
pop edi
pop esi
pop ebp
ret 4
push edi
call fcn.0043e810
pop edi
pop esi
pop ebp
ret 4

Function at 0x49fb10
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
mov eax, dword [edi]
cmp eax, 0xd
jne 0x49fb5f
mov eax, dword [esi]
push ebx
call dword [eax + 0x34]
push dword [edi + 0x10]
mov ebx, eax
push dword [edi + 0xc]
push ebx
call dword [sym.imp.USER32.dll_PtInRect]
test eax, eax
je 0x49fb58
mov eax, dword [edi + 0xc]
sub eax, dword [ebx]
mov dword [esi + 0x55c], eax
mov eax, dword [edi + 0x10]
sub eax, dword [ebx + 4]
mov dword [esi + 0x560], eax
mov byte [esi + 0x564], 1
pop ebx
pop edi
pop esi
pop ebp
ret 4
cmp eax, 0xe
jne 0x49fb80
mov ecx, dword [esi + 0x558]
mov byte [esi + 0x564], 0
test ecx, ecx
je 0x49fb59
mov eax, dword [ecx]
call dword [eax + 8]
pop edi
pop esi
pop ebp
ret 4
cmp eax, 9
jne 0x49fbb2
push 1
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jns 0x49fbb2
mov ecx, dword [esi + 0x558]
test ecx, ecx
je 0x49fb59
cmp byte [esi + 0x564], 0
je 0x49fb59
mov edx, dword [ecx]
lea eax, [edi + 0xc]
pop edi
pop esi
mov dword [ebp + 8], eax
pop ebp
jmp dword [edx]
push edi
mov ecx, esi
call fcn.0043e810
pop edi
pop esi
pop ebp
ret 4
Function at 0x4a6f30
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x511368
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x54c548]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x14], esi
cmp byte [esi + 0x20], 0
jne 0x4a6f77
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [esi + 0x18], 1
jbe 0x4a6fb3
lea eax, [ebp - 0x14]
push eax
push 0
push esi
push 0x4a7680
push 0
push 0
call fcn.004f49cc
xor ecx, ecx
mov dword [esi + 0x10], eax
add esp, 0x18
test eax, eax
setne cl
mov eax, ecx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea ebx, [esi + 0x60]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 0
push eax
push dword [esi + 0x44]
call sub.gdiplus.dll_GdipCreateFromHDC
mov edi, dword [ebp - 0x10]
mov esi, eax
mov dword [ebp - 0x1c], edi
push 0xffffffffffffffff
push edi
mov dword [ebp - 4], 0
call sub.gdiplus.dll_GdipGraphicsClear
test eax, eax
cmovne esi, eax
mov eax, dword [ebp - 0x14]
push dword [eax + 0x2c]
push dword [eax + 0x28]
push 0
push 0
push dword [eax + 4]
push edi
call sub.gdiplus.dll_GdipDrawImageRectI
test eax, eax
push ebx
cmovne esi, eax
mov dword [ebp - 0x18], esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov esi, dword [ebp - 0x14]
mov ecx, dword [esi + 0x4c]
call fcn.0043f360
mov ecx, esi
call fcn.004a7340
push edi
call sub.gdiplus.dll_GdipDeleteGraphics
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4adac5
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop ebp
ret

Function at 0x4c30e0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp fcn.004c2c50
Function at 0x4c4310
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x512343
mov eax, dword fs:[0]
push eax
sub esp, 0x84
mov eax, dword [0x54c548]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x80], 0
mov dword [edi], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x7c], 0
lea eax, [ebp - 0x7c]
mov byte [ebp - 4], 1
push eax
lea eax, [ebp - 0x80]
push eax
call fcn.00431d70
mov eax, dword [ebp - 0x80]
add esp, 8
test eax, eax
je 0x4c4523
mov esi, dword [sym.imp.OLEAUT32.dll_VariantInit]
push eax
call esi
test eax, eax
je 0x4c4523
mov eax, dword [ebp - 0x7c]
test eax, eax
je 0x4c4523
push eax
call esi
test eax, eax
je 0x4c4523
mov dword [ebp - 0x90], 0
mov dword [ebp - 0x8c], 0
mov dword [ebp - 0x88], 0
push 0x201
push dword [ebp - 0x80]
lea ecx, [ebp - 0x90]
mov byte [ebp - 4], 2
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.004c4260
mov esi, dword [ebp - 0x90]
test eax, eax
jne 0x4c4514
push 0x64
lea eax, [ebp - 0x74]
push 0
push eax
call fcn.004eb5d0
add esp, 0xc
mov dword [ebp - 0x78], 0x64
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x84]
push eax
push 0
push dword [ebp - 0x7c]
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4c4514
mov eax, dword [ebp - 0x84]
cmp eax, 1
je 0x4c443b
cmp eax, 2
jne 0x4c4514
mov ecx, dword [ebp - 0x78]
test ecx, ecx
je 0x4c445c
test cl, 1
jne 0x4c4514
mov eax, ecx
shr eax, 1
cmp word [ebp + eax*2 - 0x76], 0
je 0x4c4462
jmp 0x4c4514
xor eax, eax
mov word [ebp - 0x74], ax
shr ecx, 1
cmp ecx, 0x2d
jne 0x4c4514
lea ecx, [ebp - 0x78]
call fcn.004c26d0
lea eax, [ebp - 0x74]
mov byte [ebp - 4], 3
push eax
lea ecx, [ebp - 0x78]
call fcn.004c2790
lea eax, [ebp - 0x84]
mov dword [ebp - 0x84], 0
push eax
lea eax, [ebp - 0x20]
push 0x5296c0
push eax
call fcn.004c4920
push 0x2a
push dword [ebp - 0x78]
call fcn.004c2c50
movzx eax, al
add esp, 0x14
cmp dword [ebp - 0x84], eax
jne 0x4c450c
lea edx, [ebp - 0x74]
lea ecx, [edx + 2]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x4c44c2
sub edx, ecx
lea eax, [ebp - 0x74]
sar edx, 1
mov ecx, ebx
push edx
push eax
call fcn.004c2520
push dword [0x54c620]
lea eax, [ebp - 0x74]
push dword [0x54c61c]
push eax
call dword [sym.imp.SHLWAPI.dll_StrCmpNIW]
test eax, eax
jne 0x4c44fd
mov dword [edi], 1
lea ecx, [ebp - 0x78]
call fcn.004c1a40
mov edi, 1
jmp 0x4c4516
lea ecx, [ebp - 0x78]
call fcn.004c1a40
xor edi, edi
test esi, esi
je 0x4c4525
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x4c4525
xor edi, edi
push dword [ebp - 0x7c]
mov esi, dword [sym.imp.OLEAUT32.dll_SysStringLen]
call esi
push dword [ebp - 0x80]
call esi
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004aabf0
mov esp, ebp
pop ebp
ret
Function at 0x4c4560
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
push esi
mov esi, ecx
test edx, edx
jne 0x4c4575
lea eax, [edx + 0xd]
pop esi
pop ebp
ret 0xc
mov eax, edx
push edi
lea edi, [eax + 2]
nop dword [eax + eax]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4c4580
sub eax, edi
sar eax, 1
lea eax, [eax*2 + 2]
push eax
push edx
push dword [ebp + 0x10]
push 0
push dword [ebp + 8]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebp
ret 0xc
Function at 0x4c7710
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x10]
mov eax, dword [edi]
add eax, eax
mov dword [edi], 0
mov dword [ebp + 0x10], eax
lea eax, [ebp + 0x10]
push eax
push esi
lea eax, [ebp + 0xc]
push eax
push 0
push dword [ebp + 8]
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4c7781
mov eax, dword [ebp + 0xc]
cmp eax, 1
je 0x4c774f
cmp eax, 2
jne 0x4c776b
mov ecx, dword [ebp + 0x10]
test esi, esi
je 0x4c777b
test ecx, ecx
je 0x4c7776
test cl, 1
jne 0x4c776b
mov eax, ecx
shr eax, 1
cmp word [esi + eax*2 - 2], 0
je 0x4c777b
pop edi
mov eax, 0xd
pop esi
pop ebp
ret 0xc
xor eax, eax
mov word [esi], ax
shr ecx, 1
xor eax, eax
mov dword [edi], ecx
pop edi
pop esi
pop ebp
ret 0xc
Function at 0x4fdbd5
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x4fdc14
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4fdc14
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4fdc14
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x4fdc14
cmp dword [ecx + 0x74], 0xe
jbe 0x4fdc14
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x501b10
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x52e0f0
push 0x52e0e8
push str.FlsAlloc
push 0x1f
call fcn.00501a0b
mov esi, eax
add esp, 0x10
test esi, esi
je 0x501b44
push dword [ebp + 8]
mov ecx, esi
call dword [0x51572c]
call esi
jmp 0x501b4a
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x501b8e
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x52e100
push 0x52e0f8
push str.FlsGetValue
push 0x21
call fcn.00501a0b
mov esi, eax
add esp, 0x10
test esi, esi
je 0x501bc5
push dword [ebp + 8]
mov ecx, esi
call dword [0x51572c]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x501bcd
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x52e108
push 0x52e100
push str.FlsSetValue
push 0x22
call fcn.00501a0b
mov esi, eax
add esp, 0x10
test esi, esi
je 0x501c07
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x51572c]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x50457b
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x54c548]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x5045c6
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.00504716
test al, al
jne 0x5045c0
sub edx, 2
cmp edx, edi
jne 0x5045a6
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x5045e8
lea eax, [edi + 2]
cmp edx, eax
je 0x5045e8
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.005044c7
add esp, 0x10
jmp 0x5046e2
push esi
lea ecx, [ebp - 0x255]
call fcn.00504716
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x50462b
push dword [ebp - 0x25c]
jmp 0x5045d8
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x504668
cmp word [ebp - 0x226], 0
je 0x504689
cmp word [ebp - 0x226], ax
jne 0x504668
cmp word [ebp - 0x224], 0
je 0x504689
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.005044c7
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x5046d5
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x504642
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x5046bd
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x5046e2
push 0x5042f7
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.0050a1c0
add esp, 0x10
jmp 0x5046b2
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004aabf0
leave
ret
Function at 0x41a0168
Capabilities:
Reference sql statements

Disassembly:
add esp, 0xffffffd4
mov eax, 0x41a01f4
mov dword [esp], eax
mov eax, 0x41a0214
mov dword [esp + 4], eax
mov eax, 0x41a0234
mov dword [esp + 8], eax
mov eax, 0x41a0254
mov dword [esp + 0xc], eax
mov eax, 0x41a0278
mov dword [esp + 0x10], eax
mov eax, 0x41a0298
mov dword [esp + 0x14], eax
mov eax, 0x41a02bc
mov dword [esp + 0x18], eax
mov eax, 0x41a02dc
mov dword [esp + 0x1c], eax
mov eax, 0x41a02fc
mov dword [esp + 0x20], eax
mov eax, 0x41a031c
mov dword [esp + 0x24], eax
mov eax, 0x41a033c
mov dword [esp + 0x28], eax
mov eax, esp
mov edx, 0xa
call fcn.0419fb48
mov edx, 0x41a035c
mov eax, 0x41a16b4
call fcn.0419ff08
add esp, 0x2c
ret

Function at 0x41a16c8
Capabilities:
Reference sql statements

Disassembly:
add esp, 0xffffffdc
mov eax, 0x41a1744
mov dword [esp], eax
mov eax, 0x41a1760
mov dword [esp + 4], eax
mov eax, 0x41a1780
mov dword [esp + 8], eax
mov eax, 0x41a17a0
mov dword [esp + 0xc], eax
mov eax, 0x41a17c0
mov dword [esp + 0x10], eax
mov eax, 0x41a17dc
mov dword [esp + 0x14], eax
mov eax, 0x41a17fc
mov dword [esp + 0x18], eax
mov eax, 0x41a181c
mov dword [esp + 0x1c], eax
mov eax, 0x41a1840
mov dword [esp + 0x20], eax
mov eax, esp
mov edx, 8
call fcn.0419fb48
mov edx, 0x41a1860
mov eax, 0x41a2ce4
call fcn.0419ff08
add esp, 0x24
ret

Function at 0x41a84a8
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 0x41a853f
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, 0x41a8558
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 0x41a8546
lea eax, [ebp - 4]
call sub.rtl60.bpl__System__LStrClr_qqrpv
ret
Function at 0x41b40f0
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 0x41b4150
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 0x41b413a
push 3
push 0x41b415c
push 0x41b415c
mov eax, dword [ebp - 4]
call sub.rtl60.bpl__System__LStrToPChar_qqrx17System_AnsiString
push eax
push 0x41b4160
push 0
call sub.shell32.dll_ShellExecuteA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41b4157
lea eax, [ebp - 4]
call sub.rtl60.bpl__System__LStrClr_qqrpv
ret

Function at 0x41bd234
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov edi, dword [ebp + 8]
mov eax, dword [ebp - 4]
call sub.rtl60.bpl__System__LStrAddRef_qqrpv
mov eax, dword [ebp - 8]
call sub.rtl60.bpl__System__LStrAddRef_qqrpv
xor eax, eax
push ebp
push 0x41bd330
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0xc]
mov edx, 0x41bd348
call sub.rtl60.bpl__System__LStrLAsg_qqrpvpxv
lea eax, [ebp - 0x14]
mov ecx, 0x41bd368
mov edx, dword [ebp - 4]
call sub.rtl60.bpl__System__LStrCat3_qqrv
mov eax, dword [ebp - 0x14]
lea edx, [ebp - 4]
call sub.rtl60.bpl__System_Utf8ToAnsi_qqrx17System_AnsiString
mov eax, dword [ebp - 4]
call sub.rtl60.bpl__System__LStrLen_qqrx17System_AnsiString
push eax
mov eax, dword [ebp - 8]
call sub.rtl60.bpl__System__LStrLen_qqrx17System_AnsiString
pop edx
xchg edx, eax
mov ecx, edx
cdq
idiv ecx
mov esi, eax
test esi, esi
jl 0x41bd2c4
inc esi
lea eax, [ebp - 0xc]
mov edx, dword [ebp - 8]
call sub.rtl60.bpl__System__LStrCat_qqrv
dec esi
jne 0x41bd2b6
mov eax, dword [ebp - 4]
call sub.rtl60.bpl__System__LStrLen_qqrx17System_AnsiString
mov esi, eax
test esi, esi
jle 0x41bd308
mov ebx, 1
mov eax, dword [ebp - 4]
mov al, byte [eax + ebx - 1]
mov edx, dword [ebp - 0xc]
mov dl, byte [edx + ebx]
xor al, dl
mov byte [ebp - 0xd], al
cmp ebx, 0x1c8
lea eax, [ebp - 0x18]
mov dl, byte [ebp - 0xd]
call sub.rtl60.bpl__System__LStrFromChar_qqrr17System_AnsiStringc
mov edx, dword [ebp - 0x18]
mov eax, edi
call sub.rtl60.bpl__System__LStrCat_qqrv
inc ebx
dec esi
jne 0x41bd2d7
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41bd337
lea eax, [ebp - 0x18]
mov edx, 2
call sub.rtl60.bpl__System__LStrArrayClr_qqrpvi
lea eax, [ebp - 0xc]
mov edx, 3
call sub.rtl60.bpl__System__LStrArrayClr_qqrpvi
ret
Function at 0x41bef44
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov edi, dword [ebp + 8]
mov eax, dword [ebp - 4]
call sub.rtl60.bpl__System__LStrAddRef_qqrpv
mov eax, dword [ebp - 8]
call sub.rtl60.bpl__System__LStrAddRef_qqrpv
xor eax, eax
push ebp
push 0x41bf040
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0xc]
mov edx, 0x41bf058
call sub.rtl60.bpl__System__LStrLAsg_qqrpvpxv
lea eax, [ebp - 0x14]
mov ecx, 0x41bf078
mov edx, dword [ebp - 4]
call sub.rtl60.bpl__System__LStrCat3_qqrv
mov eax, dword [ebp - 0x14]
lea edx, [ebp - 4]
call sub.rtl60.bpl__System_Utf8ToAnsi_qqrx17System_AnsiString
mov eax, dword [ebp - 4]
call sub.rtl60.bpl__System__LStrLen_qqrx17System_AnsiString
push eax
mov eax, dword [ebp - 8]
call sub.rtl60.bpl__System__LStrLen_qqrx17System_AnsiString
pop edx
xchg edx, eax
mov ecx, edx
cdq
idiv ecx
mov esi, eax
test esi, esi
jl 0x41befd4
inc esi
lea eax, [ebp - 0xc]
mov edx, dword [ebp - 8]
call sub.rtl60.bpl__System__LStrCat_qqrv
dec esi
jne 0x41befc6
mov eax, dword [ebp - 4]
call sub.rtl60.bpl__System__LStrLen_qqrx17System_AnsiString
mov esi, eax
test esi, esi
jle 0x41bf018
mov ebx, 1
mov eax, dword [ebp - 4]
mov al, byte [eax + ebx - 1]
mov edx, dword [ebp - 0xc]
mov dl, byte [edx + ebx]
xor al, dl
mov byte [ebp - 0xd], al
cmp ebx, 0x1c8
lea eax, [ebp - 0x18]
mov dl, byte [ebp - 0xd]
call sub.rtl60.bpl__System__LStrFromChar_qqrr17System_AnsiStringc
mov edx, dword [ebp - 0x18]
mov eax, edi
call sub.rtl60.bpl__System__LStrCat_qqrv
inc ebx
dec esi
jne 0x41befe7
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41bf047
lea eax, [ebp - 0x18]
mov edx, 2
call sub.rtl60.bpl__System__LStrArrayClr_qqrpvi
lea eax, [ebp - 0xc]
mov edx, 3
call sub.rtl60.bpl__System__LStrArrayClr_qqrpvi
ret
Function at 0x41c033c
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0xc], ebx
mov edi, ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call sub.rtl60.bpl__System__LStrAddRef_qqrpv
mov eax, dword [ebp - 8]
call sub.rtl60.bpl__System__LStrAddRef_qqrpv
xor eax, eax
push ebp
push 0x41c0426
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x14]
mov eax, dword [ebp - 4]
call fcn.041c0434
mov edx, dword [ebp - 0x14]
lea eax, [ebp - 4]
call sub.rtl60.bpl__System__LStrLAsg_qqrpvpxv
mov eax, dword [ebp - 4]
call sub.rtl60.bpl__System__LStrLen_qqrx17System_AnsiString
push eax
mov eax, dword [ebp - 8]
call sub.rtl60.bpl__System__LStrLen_qqrx17System_AnsiString
pop edx
xchg edx, eax
mov ecx, edx
cdq
idiv ecx
mov esi, eax
test esi, esi
jl 0x41c03b9
inc esi
lea eax, [ebp - 0xc]
mov edx, dword [ebp - 8]
call sub.rtl60.bpl__System__LStrCat_qqrv
dec esi
jne 0x41c03ab
mov eax, dword [ebp - 4]
call sub.rtl60.bpl__System__LStrLen_qqrx17System_AnsiString
mov esi, eax
test esi, esi
jle 0x41c03fe
mov ebx, 1
mov eax, dword [ebp - 4]
mov al, byte [eax + ebx - 1]
mov edx, dword [ebp - 0xc]
mov dl, byte [edx + ebx - 1]
xor al, dl
mov byte [ebp - 0xd], al
cmp ebx, 0x1c8
lea eax, [ebp - 0x18]
mov dl, byte [ebp - 0xd]
call sub.rtl60.bpl__System__LStrFromChar_qqrr17System_AnsiStringc
mov edx, dword [ebp - 0x18]
mov eax, edi
call sub.rtl60.bpl__System__LStrCat_qqrv
inc ebx
dec esi
jne 0x41c03cc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41c042d
lea eax, [ebp - 0x18]
mov edx, 2
call sub.rtl60.bpl__System__LStrArrayClr_qqrpvi
lea eax, [ebp - 0xc]
mov edx, 3
call sub.rtl60.bpl__System__LStrArrayClr_qqrpvi
ret

Function at 0x41c2f14
Capabilities:
Get hostname

Disassembly:
push ebx
add esp, 0xfffffef8
mov ebx, eax
mov dword [esp], pe_nt_image_headers32
push esp
lea eax, [esp + 8]
push eax
call sub.kernel32.dll_GetComputerNameA
mov eax, ebx
lea edx, [esp + 4]
mov ecx, 0x101
call sub.rtl60.bpl__System__LStrFromArray_qqrr17System_AnsiStringpci
add esp, 0x108
pop ebx
ret
Function at 0x41caeb4
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0xc], ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x41caf2c
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
mov edx, 0x41caf44
call sub.rtl60.bpl__System__LStrAsg_qqrpvpxv
cmp dword [ebx + 0xb3c], 0
je 0x41caf16
push esi
lea eax, [ebp - 0xc]
push eax
or ecx, 0xffffffff
mov dl, 0x27
mov eax, dword [ebx + 0xb3c]
call sub.vegalib60.bpl__Strtools_QS_qqr17System_AnsiStringci
mov eax, dword [ebp - 0xc]
mov dword [ebp - 8], eax
mov byte [ebp - 4], 0xb
lea edx, [ebp - 8]
xor ecx, ecx
mov eax, 0x41caf50
call sub.rtl60.bpl__Sysutils_Format_qqrx17System_AnsiStringpx14System_TVarRecxi
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41caf33
lea eax, [ebp - 0xc]
call sub.rtl60.bpl__System__LStrClr_qqrpv
ret