joyce8/EMBER2024-capa huggingface dataset:
Function at 0x2e0149fe
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x28
mov eax, 0x2e030292
call fcn.2e02e16c
mov esi, dword [ebp + 8]
xor eax, eax
mov bl, al
mov edi, dword [ebp + 0xc]
cmp dword [ecx + 0x10], eax
jbe 0x2e014b02
push ecx
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
call fcn.2e0148ed
and dword [ebp - 4], 0
lea ecx, [ebp - 0x28]
push esi
call fcn.2e010b76
cmp dword [ebp - 0x14], 0x10
lea ecx, [ebp - 0x30]
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push ecx
push eax
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x2e014ac0
lea eax, [ebp - 0x2c]
push eax
push 0
push 0x2e032941
push dword [ebp - 0x30]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
test eax, eax
jne 0x2e014ab7
mov eax, dword [ebp - 0x2c]
inc eax
push eax
call fcn.2e001137
mov esi, eax
pop ecx
mov dword [ebp - 0x34], esi
lea eax, [ebp - 0x2c]
mov byte [ebp - 4], 1
push eax
push esi
push 0
push 0
push 0x2e032941
push dword [ebp - 0x30]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x2e014aa9
push esi
mov ecx, edi
call fcn.2e010c49
mov bl, 1
push 1
push esi
mov byte [ebp - 4], 0
call fcn.2e001137
pop ecx
pop ecx
push dword [ebp - 0x30]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x14]
cmp eax, 0x10
jb 0x2e014b02
mov ecx, dword [ebp - 0x28]
inc eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x34], ecx
mov dword [ebp - 4], 2
cmp eax, 0x1000
jb 0x2e014af9
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x34]
push eax
call fcn.2e001137
mov eax, dword [ebp - 0x2c]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x34]
push eax
push ecx
call fcn.2e001137
pop ecx
pop ecx
mov al, bl
call fcn.2e02e14a
ret 8

Function at 0x2e014b3c
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xc
mov eax, 0x2e0302bf
call fcn.2e00153c
lea eax, [ebp - 0x10]
xor ebx, ebx
push eax
push dword [ebp + 8]
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
je 0x2e014b76
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 8]
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x2e014bdc
lea eax, [ebp - 0x14]
mov edi, 0x2e032941
push eax
push ebx
push edi
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
test eax, eax
jne 0x2e014bd3
mov eax, dword [ebp - 0x14]
test eax, eax
js 0x2e014bd3
inc eax
push eax
call fcn.2e001137
mov esi, eax
pop ecx
mov dword [ebp - 0x18], esi
lea eax, [ebp - 0x14]
mov dword [ebp - 4], ebx
push eax
push esi
push ebx
push ebx
push edi
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x2e014bc5
mov ecx, dword [ebp + 0xc]
push esi
call fcn.2e010c49
mov bl, 1
or dword [ebp - 4], 0xffffffff
push 1
push esi
call fcn.2e001137
pop ecx
pop ecx
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, bl
call fcn.2e001586
ret 8
Function at 0x2e01e341
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x30
mov eax, 0x2e030586
call fcn.2e02e16c
lea eax, [ebp - 0x2c]
xor ebx, ebx
push eax
push str.softwaremicrosoftwindows_shell_associationsurlassociationshttpuserchoice
push 0x80000001
mov edi, ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x2e01e45f
lea eax, [ebp - 0x30]
push eax
push ebx
push ebx
push ebx
push str.progid
push dword [ebp - 0x2c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x2e01e456
mov eax, dword [ebp - 0x30]
inc eax
push eax
call fcn.2e001137
mov esi, eax
pop ecx
mov dword [ebp - 0x3c], esi
lea eax, [ebp - 0x30]
mov dword [ebp - 4], ebx
push eax
push esi
push ebx
push ebx
push str.progid
push dword [ebp - 0x2c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
xor ecx, ecx
inc ecx
test eax, eax
jne 0x2e01e449
push esi
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], bl
call fcn.2e010c49
push str.IE.HTTP
lea ecx, [ebp - 0x28]
call fcn.2e001137
test al, al
jne 0x2e01e3fc
push ebx
push str.AppX
lea ecx, [ebp - 0x28]
call fcn.2e001137
push 1
test eax, eax
pop edx
cmove edi, edx
jmp 0x2e01e3ff
xor edx, edx
inc edx
mov eax, dword [ebp - 0x14]
cmp eax, 0x10
jb 0x2e01e439
mov ecx, dword [ebp - 0x28]
inc eax
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x38], ecx
mov byte [ebp - 4], dl
cmp eax, 0x1000
jb 0x2e01e430
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x38]
push eax
call fcn.2e001137
mov eax, dword [ebp - 0x34]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x38]
push eax
push ecx
call fcn.2e001137
pop ecx
pop ecx
xor ecx, ecx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], 0xf
inc ecx
mov byte [ebp - 0x28], bl
or dword [ebp - 4], 0xffffffff
push ecx
push esi
call fcn.2e001137
pop ecx
pop ecx
push dword [ebp - 0x2c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ax, di
call fcn.2e02e14a
ret
Function at 0x40a570
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdfc
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov edi, edx
mov esi, eax
xor ebx, ebx
push 0x200
lea eax, [ebp - 0x204]
push eax
push edi
push esi
call sub.advapi32.dll_RegEnumKeyW
test eax, eax
jne 0x40a5b1
mov eax, dword [ebp - 4]
lea edx, [ebp - 0x204]
mov ecx, pe_nt_image_headers32
call sub.RtlVcl160.bpl__System__UStrFromWArray_qqrr20System_UnicodeStringpbi
mov bl, 1
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x40a5bc
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdf8
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov edi, edx
mov esi, eax
xor ebx, ebx
mov dword [ebp - 8], 0x200
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x208]
push eax
mov eax, edi
call sub.RtlVcl160.bpl__System__UStrToPWChar_qqrx20System_UnicodeString
push eax
push esi
call sub.advapi32.dll_RegQueryValueW
test eax, eax
jne 0x40a60a
mov eax, dword [ebp - 4]
lea edx, [ebp - 0x208]
mov ecx, pe_nt_image_headers32
call sub.RtlVcl160.bpl__System__UStrFromWArray_qqrr20System_UnicodeStringpbi
mov bl, 1
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x41d590
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call sub.RtlVcl160.bpl__System__UStrAddRef_qqrpv
xor eax, eax
push ebp
push 0x41d6ca
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 4]
call sub.RtlVcl160.bpl__System__UStrToPWChar_qqrx20System_UnicodeString
mov edi, eax
push edi
call sub.version.dll_GetFileVersionInfoSizeW
mov ebx, eax
mov eax, ebx
call sub.RtlVcl160.bpl__System__GetMem_qqri
mov esi, eax
push esi
push ebx
push 0
push edi
call sub.version.dll_GetFileVersionInfoW
test ebx, ebx
jbe 0x41d69a
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
push 0x41d6d8
push esi
call sub.version.dll_VerQueryValueW
mov eax, dword [ebp - 0x10]
mov edx, dword [eax + 8]
shr edx, 0x10
mov word [ebp - 0x16], dx
movzx edx, word [eax + 8]
and dx, 0xffff
mov word [ebp - 0x18], dx
mov edx, dword [eax + 0xc]
shr edx, 0x10
mov word [ebp - 0x1a], dx
movzx eax, word [eax + 0xc]
and ax, 0xffff
mov word [ebp - 0x1c], ax
mov edx, ebx
mov eax, esi
call sub.RtlVcl160.bpl__System__FreeMem_qqrpv
lea edx, [ebp - 0x20]
movzx eax, word [ebp - 0x16]
call sub.RtlVcl160.bpl__System_Sysutils_IntToStr_qqri
push dword [ebp - 0x20]
push 0x41d6e8
lea edx, [ebp - 0x24]
movzx eax, word [ebp - 0x18]
call sub.RtlVcl160.bpl__System_Sysutils_IntToStr_qqri
push dword [ebp - 0x24]
push 0x41d6e8
lea edx, [ebp - 0x28]
movzx eax, word [ebp - 0x1a]
call sub.RtlVcl160.bpl__System_Sysutils_IntToStr_qqri
push dword [ebp - 0x28]
push 0x41d6e8
lea edx, [ebp - 0x2c]
movzx eax, word [ebp - 0x1c]
call sub.RtlVcl160.bpl__System_Sysutils_IntToStr_qqri
push dword [ebp - 0x2c]
mov eax, dword [ebp - 8]
mov edx, 7
call sub.RtlVcl160.bpl__System__UStrCatN_qqrv
jmp 0x41d6a7
mov eax, dword [ebp - 8]
mov edx, 0x41d6f8
call sub.RtlVcl160.bpl__System__UStrAsg_qqrr20System_UnicodeStringx20System_UnicodeString
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41d6d1
lea eax, [ebp - 0x2c]
mov edx, 4
call sub.RtlVcl160.bpl__System__UStrArrayClr_qqrpvi
lea eax, [ebp - 4]
call sub.RtlVcl160.bpl__System__UStrClr_qqrpv
ret
Function at 0x484388
Capabilities:
Hash data with crc32

Disassembly:
push ebx
xor ebx, ebx
mov ecx, 0x5ad3a4
mov eax, ebx
mov edx, 0xfffffff8
test al, 1
je 0x4843a4
shr eax, 1
xor eax, 0xedb88320
jmp 0x4843a6
shr eax, 1
inc edx
jne 0x484397
mov dword [ecx], eax
inc ebx
add ecx, 4
cmp ebx, 0x100
jne 0x484390
pop ebx
ret

Function at 0x484438
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
or ecx, 0xffffffff
dec edx
test edx, edx
jl 0x484469
inc edx
xor ebx, ebx
movzx esi, byte [eax + ebx]
xor esi, ecx
and esi, 0xff
mov esi, dword [esi*4 + 0x5ad3a4]
shr ecx, 8
and ecx, 0xffffff
xor esi, ecx
mov ecx, esi
inc ebx
dec edx
jne 0x484445
mov eax, ecx
pop esi
pop ebx
ret

Function at 0x4851e8
Capabilities:
Encode data using xor

Disassembly:
cmp edx, 0
jne 0x4851f3
mov eax, 0
ret
mov ecx, edx
mov edx, eax
xor eax, eax
rol ax, 5
xor al, byte [edx]
inc edx
dec ecx
jne 0x4851f9
ret

Function at 0x48c1bc
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffb0
push ebx
push esi
mov ebx, ecx
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
call sub.RtlVcl160.bpl__System__IntfAddRef_qqrx45System__DelphiInterface_t17System_IInterface_
xor eax, eax
push ebp
push 0x48c22f
push dword fs:[eax]
mov dword fs:[eax], esp
push 1
lea eax, [ebp - 0x50]
push eax
mov eax, dword [ebp - 4]
push eax
mov eax, dword [eax]
call dword [eax + 0x30]
call sub.RtlVcl160.bpl__System_Win_Comobj_OleCheck_qqrl
mov esi, dword [ebp - 0x48]
mov eax, dword [ebp - 0x48]
call sub.RtlVcl160.bpl__System__GetMem_qqri
mov dword [ebx], eax
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 0x48]
push eax
mov eax, dword [ebx]
push eax
mov eax, dword [ebp - 4]
push eax
mov eax, dword [eax]
call dword [eax + 0xc]
call sub.RtlVcl160.bpl__System_Win_Comobj_OleCheck_qqrl
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x48c236
lea eax, [ebp - 4]
call sub.RtlVcl160.bpl__System__IntfClear_qqrr45System__DelphiInterface_t17System_IInterface_
ret

Function at 0x48ecc8
Capabilities:
Hash data with md5

Disassembly:
xor eax, eax
mov dword [edx], eax
xor eax, eax
mov dword [edx + 4], eax
mov dword [edx + 8], 0x67452301
mov dword [edx + 0xc], 0xefcdab89
mov dword [edx + 0x10], 0x98badcfe
mov dword [edx + 0x14], 0x10325476
ret
Function at 0x48eed4
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff0
mov dword [esp + 4], ecx
mov dword [esp], eax
test edx, edx
jle 0x48ef91
mov ebx, dword [esp + 4]
movzx ebx, byte [ebx + 0x100]
mov eax, dword [esp + 4]
movzx eax, byte [eax + 0x101]
mov byte [esp + 8], al
mov esi, dword [esp + 4]
mov edi, edx
dec edi
test edi, edi
jb 0x48ef78
inc edi
mov dword [esp + 0xc], 0
movzx eax, bl
inc eax
and eax, 0xff
mov ebx, eax
movzx ebp, bl
movzx eax, byte [esi + ebp]
movzx edx, byte [esp + 8]
add eax, edx
and eax, 0xff
mov byte [esp + 8], al
movzx eax, byte [esp + 8]
lea edx, [esi + eax]
lea eax, [esi + ebp]
call fcn.0048ee44
movzx eax, byte [esi + ebp]
movzx edx, byte [esp + 8]
movzx edx, byte [esi + edx]
add eax, edx
and eax, 0xff
mov edx, dword [esp]
mov ecx, dword [esp + 0xc]
lea ecx, [edx + ecx]
movzx eax, al
movzx eax, byte [esi + eax]
xor byte [ecx], al
inc dword [esp + 0xc]
dec edi
jne 0x48ef18
mov eax, dword [esp + 4]
mov byte [eax + 0x100], bl
mov eax, dword [esp + 4]
movzx edx, byte [esp + 8]
mov byte [eax + 0x101], dl
add esp, 0x10
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x4c1144
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push 0
push ebx
push esi
push edi
mov edi, eax
xor eax, eax
push ebp
push 0x4c11da
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 1], 0
mov eax, dword [edi]
call sub.RtlVcl160.bpl__System__WStrLen_qqrx17System_WideString
mov esi, eax
test esi, esi
jle 0x4c11bf
mov ebx, 1
mov eax, dword [edi]
movzx eax, byte [eax + ebx*2 - 2]
sub al, 0x22
je 0x4c1185
sub al, 5
jne 0x4c118e
movzx eax, byte [ebp - 1]
xor al, 1
mov byte [ebp - 1], al
cmp byte [ebp - 1], 0
jne 0x4c11bb
lea eax, [ebp - 0xc]
mov edx, dword [edi]
movzx edx, word [edx + ebx*2 - 2]
call sub.RtlVcl160.bpl__System__WStrFromWChar_qqrr17System_WideStringb
mov eax, dword [ebp - 0xc]
lea edx, [ebp - 8]
call fcn.004868a8
mov eax, dword [ebp - 8]
movzx eax, word [eax]
mov edx, dword [edi]
mov word [edx + ebx*2 - 2], ax
inc ebx
dec esi
jne 0x4c1176
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4c11e1
lea eax, [ebp - 0xc]
mov edx, 2
call sub.RtlVcl160.bpl__System__WStrArrayClr_qqrpvi
ret
Function at 0x523a74
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff63c
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x9c4], ebx
mov dword [ebp - 0x9b8], ebx
mov dword [ebp - 0x630], ebx
mov dword [ebp - 0x628], ebx
mov dword [ebp - 0x620], ecx
mov byte [ebp - 0x629], dl
mov dword [ebp - 0x61c], eax
xor eax, eax
push ebp
push 0x5244cc
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 0x610], eax
mov dword [ebp - 0x618], 0xffffffff
mov dword [ebp - 0x624], 0xffffffff
mov eax, dword [ebp - 0x61c]
mov eax, dword [eax + 4]
call fcn.0052287c
call sub.RtlVcl160.bpl__System__GetMem_qqri
in eax, dx
dec dword [ecx - 0x66f7b]
push dword [ebx]
push dword [ebx]
ror byte [ecx - 0x6437b], 0xff

Function at 0x5292a8
Capabilities:
Read clipboard data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
mov ebx, eax
mov byte [ebp - 1], 0
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov eax, dword [eax + 4]
mov ecx, dword [eax + 0x20]
mov dl, 1
mov eax, dword [0x5169d8]
call fcn.00516be4
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x5293ae
push dword fs:[eax]
mov dword fs:[eax], esp
push ebx
call sub.user32.dll_GetClipboardData
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jbe 0x529398
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_GlobalLock
mov ebx, eax
xor eax, eax
push ebp
push 0x529391
push dword fs:[eax]
mov dword fs:[eax], esp
mov dl, 1
mov eax, dword [sym.imp.RtlVcl160.bpl__System_Classes_TMemoryStream_]
call sub.RtlVcl160.bpl__System_TObject__bctr_qqrv
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x529373
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_GlobalSize
mov ecx, eax
mov edx, ebx
mov eax, dword [ebp - 0xc]
mov ebx, dword [eax]
call dword [ebx + 0x10]
xor ecx, ecx
xor edx, edx
mov eax, dword [ebp - 0xc]
mov ebx, dword [eax]
call dword [ebx + 0x14]
push 3
mov ecx, 5
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x10]
call fcn.0051a888
mov byte [ebp - 1], al
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x52937a
mov eax, dword [ebp - 0xc]
call sub.RtlVcl160.bpl__System_TObject_Free_qqrv
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5293b5
mov eax, dword [ebp - 0x10]
call sub.RtlVcl160.bpl__System_TObject_Free_qqrv
ret

Function at 0x5347f0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebx
push esi
push edi
push ecx
mov edi, edx
or ebx, 0xffffffff
mov dword [esp], edi
mov eax, dword [esp]
call sub.RtlVcl160.bpl__System__LStrLen_qqrx27System__AnsiStringT_us_i0__
dec eax
test eax, eax
jl 0x534827
inc eax
xor esi, esi
movzx edx, byte [edi + esi]
xor dl, bl
movzx edx, dl
mov edx, dword [edx*4 + 0x5abf38]
shr ebx, 8
xor edx, ebx
mov ebx, edx
inc esi
dec eax
jne 0x53480c
xor ebx, 0xffffffff
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x534834
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebx
push esi
push edi
push eax
mov eax, 2
add esp, 0xfffff004
push eax
dec eax
jne 0x53483d
mov eax, dword [esp + 0x2000]
add esp, 0xfffffff8
mov dword [esp], edx
or esi, 0xffffffff
jmp 0x53489c
lea edx, [esp + 0xc]
mov ecx, 0x2000
mov eax, dword [esp]
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov dword [esp + 8], eax
mov edi, dword [esp + 8]
test edi, edi
jle 0x53489c
lea ebx, [esp + 0xc]
mov eax, esi
shr eax, 8
and eax, 0xffffff
movzx edx, byte [ebx]
xor esi, edx
and esi, 0xff
xor eax, dword [esi*4 + 0x5abf38]
mov esi, eax
inc ebx
dec edi
jne 0x53487a
mov eax, dword [esp]
mov edx, dword [eax]
call dword [edx]
push edx
push eax
mov eax, dword [esp + 8]
call sub.RtlVcl160.bpl__System_Classes_TStream_GetPosition_qqrv
cmp edx, dword [esp + 4]
jne 0x5348b7
cmp eax, dword [esp]
pop edx
pop eax
jne 0x534859
mov eax, esi
not eax
add esp, 0x200c
pop edi
pop esi
pop ebx
ret

Function at 0x539c50
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff054
push ebx
xor ecx, ecx
mov dword [ebp - 0xfac], ecx
mov dword [ebp - 0xfa8], ecx
mov ebx, edx
xor eax, eax
push ebp
push 0x539d09
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0xfa8]
call sub.RtlVcl160.bpl__System_Sysutils_GetCurrentDir_qqrv
mov edx, dword [ebp - 0xfa8]
mov eax, ebx
mov ecx, 0
call sub.RtlVcl160.bpl__System__LStrFromUStr_qqrr27System__AnsiStringT_us_i0__x20System_UnicodeStringus
lea eax, [ebp - 0x7d2]
push eax
push 0x3e8
call sub.kernel32.dll_GetTempPathW
test eax, eax
je 0x539ceb
lea eax, [ebp - 0xfa4]
push eax
push 0
push 0x539d18
lea eax, [ebp - 0x7d2]
push eax
call sub.kernel32.dll_GetTempFileNameW
test eax, eax
je 0x539ceb
lea edx, [ebp - 0xfac]
lea eax, [ebp - 0xfa4]
call sub.RtlVcl160.bpl__System_Sysutils_StrPas_qqrpxb
mov edx, dword [ebp - 0xfac]
mov eax, ebx
mov ecx, 0
call sub.RtlVcl160.bpl__System__LStrFromUStr_qqrr27System__AnsiStringT_us_i0__x20System_UnicodeStringus
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x539d10
lea eax, [ebp - 0xfac]
mov edx, 2
call sub.RtlVcl160.bpl__System__UStrArrayClr_qqrpvi
ret
Function at 0x54d988
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
test dl, dl
je 0x54d99c
add esp, 0xfffffff0
call sub.RtlVcl160.bpl__System__ClassCreate_qqrpvzc
mov byte [ebp - 5], dl
mov dword [ebp - 4], eax
xor edx, edx
mov eax, dword [ebp - 4]
call sub.RtlVcl160.bpl__System_Classes_TComponent__bctr_qqrp25System_Classes_TComponent
mov edx, dword [0x5ac5fc]
mov eax, dword [0x5ac43c]
mov ecx, 0x104
call sub.RtlVcl160.bpl__System_Move_qqrpxvpvi
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [eax + 0xb0], edx
mov eax, dword [ebp - 4]
mov byte [eax + 0xcc], 9
xor eax, eax
mov dword [ebp - 0xc], eax
push 0
mov eax, dword [ebp - 0xc]
push eax
push 0x100a
call sub.kernel32.dll_GetUserDefaultLCID
push eax
call sub.kernel32.dll_GetLocaleInfoW
mov ebx, eax
mov eax, ebx
add eax, eax
call sub.RtlVcl160.bpl__System__GetMem_qqri
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x54da88
push dword fs:[eax]
mov dword fs:[eax], esp
push ebx
mov eax, dword [ebp - 0xc]
push eax
push 0x100a
push 0x800
call sub.kernel32.dll_GetLocaleInfoW
test eax, eax
je 0x54da72
mov eax, dword [ebp - 0xc]
movzx eax, byte [eax]
sub ax, 0x31
je 0x54da44
sub ax, 4
je 0x54da50
sub ax, 3
je 0x54da5c
dec ax
je 0x54da68
jmp 0x54da72
mov eax, dword [ebp - 4]
mov byte [eax + 0xcc], 5
jmp 0x54da72
mov eax, dword [ebp - 4]
mov byte [eax + 0xcc], 1
jmp 0x54da72
mov eax, dword [ebp - 4]
mov byte [eax + 0xcc], 8
jmp 0x54da72
mov eax, dword [ebp - 4]
mov byte [eax + 0xcc], 9
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x54da8f
mov eax, dword [ebp - 0xc]
call sub.RtlVcl160.bpl__System__FreeMem_qqrpv
ret
Function at 0x54df08
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffd70
push ebx
xor edx, edx
mov dword [ebp - 0x28c], edx
mov dword [ebp - 0x290], edx
mov dword [ebp - 0x280], edx
mov dword [ebp - 0x284], edx
mov dword [ebp - 0x288], edx
mov dword [ebp - 0x27c], edx
mov dword [ebp - 4], edx
lea eax, [ebp - 0x278]
mov edx, dword [sym.imp.RtlVcl160.bpl___xp_26System_Sysutils_TSearchRec]
call sub.RtlVcl160.bpl__System__InitializeRecord_qqrpvt1
xor eax, eax
push ebp
push 0x54e07a
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x27c]
call fcn.004875cc
lea eax, [ebp - 0x288]
call fcn.00486988
push dword [ebp - 0x288]
mov eax, dword [0x5ac40c]
push dword [eax]
push 0x54e08c
lea eax, [ebp - 0x284]
mov edx, 3
call sub.RtlVcl160.bpl__System__WStrCatN_qqrv
mov edx, dword [ebp - 0x284]
lea eax, [ebp - 0x280]
call sub.RtlVcl160.bpl__System__UStrFromWStr_qqrr20System_UnicodeStringx17System_WideString
mov eax, dword [ebp - 0x280]
lea ecx, [ebp - 0x278]
mov edx, 0x1ff
call sub.RtlVcl160.bpl__System_Sysutils_FindFirst_qqrx20System_UnicodeStringir26System_Sysutils_TSearchRec
mov ebx, eax
test ebx, ebx
jne 0x54e017
test byte [ebp - 0x268], 0x10
jne 0x54e006
lea eax, [ebp - 0x290]
call fcn.00486988
mov edx, dword [ebp - 0x290]
lea eax, [ebp - 0x28c]
call sub.RtlVcl160.bpl__System__UStrFromWStr_qqrr20System_UnicodeStringx17System_WideString
mov edx, dword [ebp - 0x28c]
lea eax, [ebp - 4]
mov ecx, dword [ebp - 0x264]
call sub.RtlVcl160.bpl__System__UStrCat3_qqrr20System_UnicodeStringx20System_UnicodeStringt2
mov eax, dword [ebp - 4]
call sub.RtlVcl160.bpl__System__UStrToPWChar_qqrx20System_UnicodeString
push eax
call sub.kernel32.dll_DeleteFileW
lea eax, [ebp - 0x278]
call sub.RtlVcl160.bpl__System_Sysutils_FindNext_qqrr26System_Sysutils_TSearchRec
mov ebx, eax
test ebx, ebx
je 0x54dfbf
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x54e081
lea eax, [ebp - 0x290]
call sub.RtlVcl160.bpl__System__WStrClr_qqrpv
lea eax, [ebp - 0x28c]
call sub.RtlVcl160.bpl__System__UStrClr_qqrpv
lea eax, [ebp - 0x288]
mov edx, 2
call sub.RtlVcl160.bpl__System__WStrArrayClr_qqrpvi
lea eax, [ebp - 0x280]
call sub.RtlVcl160.bpl__System__UStrClr_qqrpv
lea eax, [ebp - 0x27c]
call sub.RtlVcl160.bpl__System__WStrClr_qqrpv
lea eax, [ebp - 0x278]
mov edx, dword [sym.imp.RtlVcl160.bpl___xp_26System_Sysutils_TSearchRec]
call sub.RtlVcl160.bpl__System__FinalizeRecord_qqrpvt1
lea eax, [ebp - 4]
call sub.RtlVcl160.bpl__System__UStrClr_qqrpv
ret