joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4684f4
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 8], ebx
mov ebx, ecx
mov esi, edx
xor eax, eax
push ebp
push 0x4685e8
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, ebx
mov edx, dword [sym.imp.rtl250.bpl__System_Sysutils_EmptyStr]
mov edx, dword [edx]
call sub.rtl250.bpl__System__UStrAsg_qqrr20System_UnicodeStringx20System_UnicodeString
test esi, esi
je 0x4685d2
mov ecx, 0x468604
mov edx, esi
mov eax, dword [0x41ca14]
call fcn.0041d4a8
test al, al
je 0x4685d2
mov edx, 0x468624
mov eax, esi
call fcn.0041a720
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x4685d2
xor eax, eax
push ebp
push 0x4685cb
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.0041bfc4
jmp 0x4685a9
mov eax, dword [ebx]
call sub.rtl250.bpl__System__UStrLen_qqrx20System_UnicodeString
test eax, eax
jle 0x468587
mov eax, ebx
mov edx, 0x4686b4
call sub.rtl250.bpl__System__UStrCat_qqrr20System_UnicodeStringx20System_UnicodeString
lea ecx, [ebp - 8]
mov edx, 0x4686c4
mov eax, dword [ebp - 4]
call fcn.0041b6e4
mov edx, dword [ebp - 8]
mov eax, ebx
call sub.rtl250.bpl__System__UStrCat_qqrr20System_UnicodeStringx20System_UnicodeString
mov eax, dword [ebp - 4]
call fcn.0041bf84
mov eax, dword [ebp - 4]
call fcn.0041b6d0
test al, al
je 0x468570
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4685d2
lea eax, [ebp - 4]
call sub.rtl250.bpl__System_Sysutils_FreeAndNil_qqrpv
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4685ef
lea eax, [ebp - 8]
call sub.rtl250.bpl__System__UStrClr_qqrpv
ret
Function at 0x46969c
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 4], ecx
mov ebx, edx
mov esi, eax
xor eax, eax
push ebp
push 0x4697d5
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 5], 0
mov eax, dword [ebp - 4]
cmp byte [eax], 0
jne 0x4697ba
mov edx, 0x4697f4
mov eax, ebx
call fcn.0041a720
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x4697ba
xor eax, eax
push ebp
push 0x4697b3
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0xc]
call fcn.0041bfc4
jmp 0x469789
push 7
mov ecx, dword [esi + 0x38]
mov dl, 1
mov eax, dword [0x468ef8]
call fcn.004123d8
mov ebx, eax
mov byte [ebx + 0x30], 2
lea ecx, [ebp - 0x10]
mov edx, 0x469860
mov eax, dword [ebp - 0xc]
call fcn.0041b6e4
mov eax, dword [ebp - 0x10]
or edx, 0xffffffff
call sub.rtl250.bpl__System_Sysutils_StrToIntDef_qqrx20System_UnicodeStringi
mov dword [ebx + 0x28], eax
lea ecx, [ebp - 0x14]
mov edx, 0x469874
mov eax, dword [ebp - 0xc]
call fcn.0041b6e4
mov edx, dword [ebp - 0x14]
lea eax, [ebx + 0x24]
call sub.rtl250.bpl__System__UStrAsg_qqrr20System_UnicodeStringx20System_UnicodeString
lea eax, [ebx + 0x20]
mov edx, dword [sym.imp.rtl250.bpl__System_Sysutils_EmptyStr]
mov edx, dword [edx]
call sub.rtl250.bpl__System__UStrAsg_qqrr20System_UnicodeStringx20System_UnicodeString
xor eax, eax
mov dword [ebx + 0x18], eax
mov dword [ebx + 0x1c], eax
mov ecx, dword [ebp - 4]
mov edx, ebx
mov eax, esi
mov ebx, dword [eax]
call dword [ebx + 0x3c]
mov eax, dword [ebp - 4]
cmp byte [eax], 0
jne 0x469799
mov eax, dword [ebp - 0xc]
call fcn.0041bf84
mov eax, dword [ebp - 0xc]
call fcn.0041b6d0
test al, al
je 0x469705
mov byte [ebp - 5], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4697ba
lea eax, [ebp - 0xc]
call sub.rtl250.bpl__System_Sysutils_FreeAndNil_qqrpv
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4697dc
lea eax, [ebp - 0x14]
mov edx, 2
call sub.rtl250.bpl__System__UStrArrayClr_qqrpvi
ret
Function at 0x46a830
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 4], ecx
mov ebx, edx
mov esi, eax
xor eax, eax
push ebp
push 0x46a97c
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 5], 0
mov eax, dword [ebp - 4]
cmp byte [eax], 0
jne 0x46a961
mov ecx, dword [0x54a91c]
mov edx, ebx
mov eax, dword [0x41ca14]
call fcn.0041d4a8
test al, al
je 0x46a961
mov edx, 0x46a99c
mov eax, ebx
call fcn.0041a720
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x46a961
xor eax, eax
push ebp
push 0x46a95a
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0xc]
call fcn.0041bfc4
jmp 0x46a930
push 7
lea edx, [ebp - 0x10]
mov eax, esi
call fcn.00424998
mov ecx, dword [ebp - 0x10]
mov dl, 1
mov eax, dword [0x46a5c4]
call fcn.004123d8
mov ebx, eax
mov byte [ebx + 0x20], 1
lea ecx, [ebp - 0x14]
mov edx, 0x46aa08
mov eax, dword [ebp - 0xc]
call fcn.0041b6e4
mov eax, dword [ebp - 0x14]
or edx, 0xffffffff
call sub.rtl250.bpl__System_Sysutils_StrToIntDef_qqrx20System_UnicodeStringi
mov dword [ebx + 0x1c], eax
lea ecx, [ebp - 0x18]
mov edx, 0x46aa1c
mov eax, dword [ebp - 0xc]
call fcn.0041b6e4
mov edx, dword [ebp - 0x18]
lea eax, [ebx + 0x18]
call sub.rtl250.bpl__System__UStrAsg_qqrr20System_UnicodeStringx20System_UnicodeString
mov ecx, dword [ebp - 4]
mov edx, ebx
mov eax, esi
mov ebx, dword [eax]
call dword [ebx + 0x3c]
mov eax, dword [ebp - 4]
cmp byte [eax], 0
je 0x46a928
call sub.rtl250.bpl__System__TryFinallyExit_qqrv
jmp 0x46a961
mov eax, dword [ebp - 0xc]
call fcn.0041bf84
mov eax, dword [ebp - 0xc]
call fcn.0041b6d0
test al, al
je 0x46a8b3
mov byte [ebp - 5], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46a961
lea eax, [ebp - 0xc]
call sub.rtl250.bpl__System_Sysutils_FreeAndNil_qqrpv
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46a983
lea eax, [ebp - 0x18]
mov edx, 3
call sub.rtl250.bpl__System__UStrArrayClr_qqrpvi
ret
Function at 0x46aa28
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 4], ecx
mov ebx, edx
mov esi, eax
xor eax, eax
push ebp
push 0x46ab5a
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 5], 0
mov eax, dword [ebp - 4]
cmp byte [eax], 0
jne 0x46ab3f
mov edx, 0x46ab78
mov eax, ebx
call fcn.0041a720
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x46ab3f
xor eax, eax
push ebp
push 0x46ab38
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0xc]
call fcn.0041bfc4
jmp 0x46ab0e
push 7
lea edx, [ebp - 0x10]
mov eax, esi
call fcn.00424998
mov ecx, dword [ebp - 0x10]
mov dl, 1
mov eax, dword [0x46a5c4]
call fcn.004123d8
mov ebx, eax
mov byte [ebx + 0x20], 0
lea ecx, [ebp - 0x14]
mov edx, 0x46abe4
mov eax, dword [ebp - 0xc]
call fcn.0041b6e4
mov eax, dword [ebp - 0x14]
or edx, 0xffffffff
call sub.rtl250.bpl__System_Sysutils_StrToIntDef_qqrx20System_UnicodeStringi
mov dword [ebx + 0x1c], eax
lea ecx, [ebp - 0x18]
mov edx, 0x46abf8
mov eax, dword [ebp - 0xc]
call fcn.0041b6e4
mov edx, dword [ebp - 0x18]
lea eax, [ebx + 0x18]
call sub.rtl250.bpl__System__UStrAsg_qqrr20System_UnicodeStringx20System_UnicodeString
mov ecx, dword [ebp - 4]
mov edx, ebx
mov eax, esi
mov ebx, dword [eax]
call dword [ebx + 0x3c]
mov eax, dword [ebp - 4]
cmp byte [eax], 0
je 0x46ab06
call sub.rtl250.bpl__System__TryFinallyExit_qqrv
jmp 0x46ab3f
mov eax, dword [ebp - 0xc]
call fcn.0041bf84
mov eax, dword [ebp - 0xc]
call fcn.0041b6d0
test al, al
je 0x46aa91
mov byte [ebp - 5], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46ab3f
lea eax, [ebp - 0xc]
call sub.rtl250.bpl__System_Sysutils_FreeAndNil_qqrpv
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46ab61
lea eax, [ebp - 0x18]
mov edx, 3
call sub.rtl250.bpl__System__UStrArrayClr_qqrpvi
ret
Function at 0x46b8c4
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x14], ebx
mov esi, ecx
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x46ba27
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 5], 1
cmp word [ebp + 0x12], 0
je 0x46b8fe
mov edx, dword [ebp - 4]
mov eax, dword [ebp + 0x14]
call dword [ebp + 0x10]
mov byte [ebp - 5], al
cmp byte [ebp - 5], 0
je 0x46ba11
test esi, esi
jne 0x46b913
call sub.rtl250.bpl__System_Sysutils_TEncoding_GetUTF8_qqrv
mov esi, eax
xor edx, edx
push ebp
push 0x46b9f7
push dword fs:[edx]
mov dword fs:[edx], esp
mov dl, 1
mov eax, dword [sym.imp.rtl250.bpl__System_Classes_TStringList_]
call sub.rtl250.bpl__System_Classes_TStringList__bctr_qqrv
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x46b9e6
push dword fs:[eax]
mov dword fs:[eax], esp
movzx edx, byte [ebp + 8]
mov eax, dword [ebp - 0xc]
call sub.rtl250.bpl__System_Classes_TStrings_SetWriteBOM_qqrxo
lea ecx, [ebp - 0x14]
mov edx, dword [ebp + 0xc]
mov eax, ebx
call fcn.0046c560
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax]
call dword [ecx + 0x30]
mov eax, dword [ebp - 0xc]
add eax, 0xc
mov edx, 0x46ba48
call sub.rtl250.bpl__System__UStrAsg_qqrr20System_UnicodeStringx20System_UnicodeString
push 0xff20
mov ecx, dword [ebp - 4]
mov dl, 1
mov eax, dword [sym.imp.rtl250.bpl__System_Classes_TFileStream_]
call sub.rtl250.bpl__System_Classes_TFileStream__bctr_qqrx20System_UnicodeStringus
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x46b9c9
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0
mov eax, dword [ebp - 0x10]
call sub.rtl250.bpl__System_Classes_TStream_SetPosition_qqrxj
mov ecx, esi
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0xc]
mov ebx, dword [eax]
call dword [ebx + 0x8c]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46b9d0
lea eax, [ebp - 0x10]
call sub.rtl250.bpl__System_Sysutils_FreeAndNil_qqrpv
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46ba2e
lea eax, [ebp - 0x14]
call sub.rtl250.bpl__System__UStrClr_qqrpv
ret
Function at 0x481150
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
mov esi, edx
mov ebx, eax
push 0
push 0x80
push 3
push 0
push 1
push 0x40000000
mov eax, dword [ebx + 4]
call sub.rtl250.bpl__System__UStrToPWChar_qqrx20System_UnicodeString
push eax
call sub.kernel32.dll_CreateFileW
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
je 0x4811e9
xor eax, eax
push ebp
push 0x4811e2
push dword fs:[eax]
mov dword fs:[eax], esp
mov ebx, esi
add ebx, ebx
add ebx, ebx
add ebx, 0x170
push 0
push 0
push ebx
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_SetFilePointer
cmp ebx, eax
jne 0x4811cb
xor eax, eax
mov dword [ebp - 4], eax
push 0
lea eax, [ebp - 0xc]
push eax
push 4
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_WriteFile
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4811e9
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_CloseHandle
ret
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4c2668
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ecx
push edx
push 0xffffffffffffffff
push 1
call sub.kernel32.dll_OpenProcess
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x4c26c4
xor eax, eax
push ebp
push 0x4c26bd
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_TerminateProcess
push 0x2710
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_WaitForSingleObject
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4c26c4
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_CloseHandle
ret
pop ecx
pop ebp
ret
Function at 0x4c9e7c
Capabilities:
Enumerate internet cache

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x28], edx
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x20], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4ca14a
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 8], eax
mov dl, 1
mov eax, dword [sym.imp.rtl250.bpl__System_Classes_TStringList_]
call sub.rtl250.bpl__System_Classes_TStringList__bctr_qqrv
mov dword [ebp - 0x18], eax
xor eax, eax
push ebp
push 0x4ca128
push dword fs:[eax]
mov dword fs:[eax], esp
mov esi, 0x244
push esi
call sub.rtl250.bpl__System_GetMemory_qi
pop ecx
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x4ca00a
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, esi
mov eax, dword [ebp - 0xc]
call fcn.0040270c
mov dword [ebp - 0x14], esi
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0xc]
push eax
push 0
call sub.wininet.dll_FindFirstUrlCacheEntryW
mov dword [ebp - 0x10], eax
call sub.kernel32.dll_GetLastError
mov edi, eax
cmp dword [ebp - 0x10], 0
jne 0x4c9f39
cmp edi, 0x7a
jne 0x4c9f39
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.rtl250.bpl__System_ReallocMemory_qpvi
add esp, 8
mov dword [ebp - 0xc], eax
mov esi, dword [ebp - 0x14]
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0xc]
push eax
push 0
call sub.wininet.dll_FindFirstUrlCacheEntryW
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x4c9ff2
xor eax, eax
push ebp
push 0x4c9feb
push dword fs:[eax]
mov dword fs:[eax], esp
or ebx, 0xffffffff
jmp 0x4c9fd0
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0xc]
and eax, 0x200000
cmp eax, 0x200000
jne 0x4c9f81
lea eax, [ebp - 0x20]
mov edx, dword [ebp - 0xc]
mov edx, dword [edx + 4]
call sub.rtl250.bpl__System__UStrFromPWChar_qqrr20System_UnicodeStringpb
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax]
call dword [ecx + 0x3c]
mov dword [ebp - 0x14], esi
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.wininet.dll_FindNextUrlCacheEntryW
mov ebx, eax
call sub.kernel32.dll_GetLastError
mov edi, eax
test ebx, ebx
jne 0x4c9fd0
cmp edi, 0x7a
jne 0x4c9fd0
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.rtl250.bpl__System_ReallocMemory_qpvi
add esp, 8
mov dword [ebp - 0xc], eax
mov esi, dword [ebp - 0x14]
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.wininet.dll_FindNextUrlCacheEntryW
mov ebx, eax
test ebx, ebx
jne 0x4c9f56
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4c9ff2
mov eax, dword [ebp - 0x10]
push eax
call sub.wininet.dll_FindCloseUrlCache
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4ca011
mov eax, dword [ebp - 0xc]
push eax
call sub.rtl250.bpl__System_FreeMemory_qpv
pop ecx
ret
Function at 0x4cfe68
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov edi, edx
mov ebx, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
mov byte [ebp - 5], 0
mov dword [ebx], 0x6e
test edi, edi
je 0x4cfec7
mov eax, dword [esi + 8]
push eax
mov eax, dword [esi + 4]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax]
push eax
push edi
call sub.advapi32.dll_RegEnumKeyW
mov dword [ebx], eax
cmp dword [ebx], 0
jne 0x4cfebb
mov eax, dword [esi + 4]
call sub.rtl250.bpl__System_Sysutils_StrLen_qqrpxb
mov dword [esi + 8], eax
mov eax, dword [ebp - 4]
inc dword [eax]
mov byte [ebp - 5], 1
jmp 0x4cfec7
cmp dword [ebx], 0x103
jne 0x4cfec7
xor eax, eax
mov dword [ebx], eax
movzx eax, byte [ebp - 5]
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 8

Function at 0x4cfed4
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov edi, edx
mov esi, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
mov byte [ebp - 5], 0
mov dword [esi], 0x6e
test edi, edi
je 0x4cff36
lea eax, [ebx + 0x14]
push eax
mov eax, dword [ebx + 0x10]
push eax
lea eax, [ebx + 0xc]
push eax
push 0
lea eax, [ebx + 8]
push eax
mov eax, dword [ebx + 4]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax]
push eax
push edi
call sub.advapi32.dll_RegEnumValueW
mov dword [esi], eax
cmp dword [esi], 0
jne 0x4cff2a
mov eax, dword [ebp - 4]
inc dword [eax]
mov byte [ebp - 5], 1
jmp 0x4cff36
cmp dword [esi], 0x103
jne 0x4cff36
xor eax, eax
mov dword [esi], eax
movzx eax, byte [ebp - 5]
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 8
Function at 0x4eb0e4
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
mov ebx, eax
mov dword [ebx + 0x10], 0xc
push 0
mov eax, dword [ebx + 4]
push eax
call sub.kernel32.dll_GetFileSize
mov esi, eax
jmp 0x4eb13c
mov eax, dword [ebx + 0x18]
cmp eax, dword [ebx + 0x1c]
jl 0x4eb113
mov eax, ebx
call fcn.004eb180
mov eax, dword [ebx + 0x10]
mov edx, dword [ebx + 0xc]
lea eax, [edx + eax]
mov edx, dword [ebx + 0x18]
mov ecx, dword [ebx + 0x14]
mov dword [ecx + edx*4], eax
inc dword [ebx + 0x18]
lea ecx, [ebp - 0x18]
mov edx, dword [ebx + 0x18]
dec edx
mov eax, ebx
call fcn.004eb148
mov eax, dword [ebp - 4]
add dword [ebx + 0x10], eax
cmp esi, dword [ebx + 0x10]
ja 0x4eb104
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4eb1b8
Capabilities:
Get file size
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], edx
mov ebx, eax
push 0
push 0
push 3
push 0
push 1
push 0x80000000
mov eax, dword [ebp - 4]
call sub.rtl250.bpl__System__UStrToPWChar_qqrx20System_UnicodeString
push eax
call sub.kernel32.dll_CreateFileW
mov esi, eax
mov dword [ebx + 4], esi
test esi, esi
je 0x4eb285
push 0
push 0
push 0
push 2
push 0
push esi
call sub.kernel32.dll_CreateFileMappingW
mov edi, eax
mov dword [ebx + 8], edi
test edi, edi
je 0x4eb285
push 0
mov eax, dword [ebx + 4]
push eax
call sub.kernel32.dll_GetFileSize
push eax
push 0
push 0
push 4
push edi
call sub.kernel32.dll_MapViewOfFile
mov esi, eax
mov dword [ebx + 0xc], esi
test esi, esi
jne 0x4eb24e
mov eax, dword [ebx + 8]
push eax
call sub.kernel32.dll_CloseHandle
mov eax, dword [ebx + 4]
push eax
call sub.kernel32.dll_CloseHandle
mov ecx, dword [ebp - 4]
mov dl, 1
mov eax, dword [0x4e367c]
call sub.rtl250.bpl__System_Sysutils_Exception__bctr_qqrx20System_UnicodeString
call sub.rtl250.bpl__System__RaiseExcept_qqrv
mov edx, dword [ebx + 0xc]
lea eax, [ebx + 0x20]
mov ecx, 0xc
call fcn.00402704
lea eax, [ebx + 0x20]
call fcn.004ead54
lea eax, [ebx + 0x24]
call fcn.004ead54
lea eax, [ebx + 0x28]
call fcn.004ead48
lea eax, [ebx + 0x2a]
call fcn.004ead48
mov eax, ebx
call fcn.004eb0e4
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x5273cc
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, eax
push 0
lea eax, [ebp - 4]
push eax
push ecx
push edx
mov eax, dword [ebx + 0x34]
push eax
call sub.kernel32.dll_WriteFile
mov eax, dword [ebp - 4]
add dword [ebx + 0x38], eax
pop ebx
pop ecx
pop ebp
ret

Function at 0x52a8ec
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x14], ecx
mov ebx, edx
xor eax, eax
push ebp
push 0x52aa62
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 4], 1
mov dl, 1
mov eax, ebx
call sub.rtl250.bpl__System_Sysutils_FileExists_qqrx20System_UnicodeStringo
test al, al
je 0x52aa4c
xor eax, eax
push ebp
push 0x52aa3b
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
mov eax, ebx
call sub.rtl250.bpl__System__UStrToPWChar_qqrx20System_UnicodeString
push eax
call sub.kernel32.dll_CreateFileW
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x52aa2a
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 8], 0
je 0x52aa0c
cmp dword [ebp - 8], 0xffffffff
je 0x52aa0c
push 7
call sub.rtl250.bpl__System_GetMemory_qi
pop ecx
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x52aa05
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, 7
mov eax, dword [ebp - 0xc]
call fcn.0040270c
push 0
lea eax, [ebp - 0x10]
push eax
push 6
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_ReadFile
cmp dword [ebp - 0x10], 6
jne 0x52a9e6
lea eax, [ebp - 0x14]
mov edx, dword [ebp - 0xc]
call sub.rtl250.bpl__System__UStrFromPChar_qqrr20System_UnicodeStringpc
mov edx, dword [ebp - 0x14]
mov ecx, 0x52aa80
mov eax, dword [sym.imp.AxComponentsRTL.bpl__Axrtl_System_Strutils_StrUtils_]
call sub.AxComponentsRTL.bpl__Axrtl_System_Strutils_StrUtils_SameText_qqrx20System_UnicodeStringt1
test al, al
je 0x52a9df
mov dword [ebp - 4], 1
jmp 0x52a9ed
xor eax, eax
mov dword [ebp - 4], eax
jmp 0x52a9ed
mov dword [ebp - 4], 2
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword [ebp - 4], 2
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x52aa31
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_CloseHandle
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x52aa69
lea eax, [ebp - 0x14]
call sub.rtl250.bpl__System__UStrClr_qqrpv
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x411930
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0xc000]
push edi
or ebp, 0xffffffff
jmp 0x411952
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x411959
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x411948
mov eax, 1
add ebx, ebx
jne 0x41196b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x411960
jne 0x41197c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x411960
xor ecx, ecx
sub eax, 3
jb 0x411990
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x411a02
mov ebp, eax
add ebx, ebx
jne 0x41199b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x4119a8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x4119cc
inc ecx
add ebx, ebx
jne 0x4119b8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x4119ad
jne 0x4119c9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4119ad
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x4119ec
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x4119dd
jmp 0x41194e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x4119ec
add edi, ecx
jmp 0x41194e
pop esi
mov edi, esi
mov ecx, 0x251
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x411a0a
cmp byte [edi], 0
jne 0x411a0a
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 al, bl
loop 0x411a0f
lea edi, [esi + 0xf000]
mov eax, dword [edi]
or eax, eax
je 0x411a7e
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x11e1c]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x11ebc]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x411a3c
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x11ec0]
or eax, eax
je 0x411a78
mov dword [ebx], eax
add ebx, 4
jmp 0x411a59
call dword [esi + 0x11ec8]
mov ebp, dword [esi + 0x11ec4]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x1e7]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x411ab2
sub esp, 0xffffff80
jmp 0x404319