joyce8/EMBER2024-capa huggingface dataset:
Function at 0x673300
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffac
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 0x54], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 4], edx
mov ebx, eax
mov eax, dword [ebp - 4]
call sub.rtl120.bpl__System__UStrAddRef_qqrpv
xor eax, eax
push ebp
push 0x67348a
push dword fs:[eax]
mov dword fs:[eax], esp
or esi, 0xffffffff
lea eax, [ebp - 0x50]
mov edx, 0x40
call fcn.004024a4
push 0x20
lea eax, [ebp - 0x50]
push eax
push 0x59
push 0x400
call sub.kernel32.dll_GetLocaleInfoW
lea eax, [ebp - 8]
lea edx, [ebp - 0x50]
mov ecx, 0x20
call sub.rtl120.bpl__System__UStrFromWArray_qqrr20System_UnicodeStringpbi
lea eax, [ebp - 0x50]
mov edx, 0x40
call fcn.004024a4
push 0x20
lea eax, [ebp - 0x50]
push eax
push 0x5a
push 0x400
call sub.kernel32.dll_GetLocaleInfoW
push dword [ebp - 8]
push 0x6734a8
lea eax, [ebp - 0x54]
lea edx, [ebp - 0x50]
mov ecx, 0x20
call sub.rtl120.bpl__System__UStrFromWArray_qqrr20System_UnicodeStringpbi
push dword [ebp - 0x54]
lea eax, [ebp - 8]
mov edx, 3
call sub.rtl120.bpl__System__UStrCatN_qqrv
cmp dword [ebx + 0xc], 0
je 0x67345f
cmp dword [ebx + 4], 0
je 0x67345f
push 0x6734b8
push dword [ebx + 8]
push 0x6734cc
push 0x6734dc
lea eax, [ebp - 0xc]
mov edx, 4
call sub.rtl120.bpl__System__LStrCatN_qqrv
mov eax, dword [ebp - 0xc]
call sub.rtl120.bpl__System__LStrLen_qqrx27System__AnsiStringT_us_i0__
push eax
lea eax, [ebp - 0xc]
call sub.rtl120.bpl__System__UniqueStringA_qqrr27System__AnsiStringT_us_i0__
mov edx, eax
mov eax, dword [ebx + 4]
pop ecx
mov esi, dword [eax]
call dword [esi + 0x10]
push 0
push 0
mov eax, dword [ebx + 4]
call sub.rtl120.bpl__Classes_TStream_SetPosition_qqrxj
mov edx, dword [ebx + 0xc]
mov eax, dword [ebx + 4]
mov dword [edx + 0x1a0], eax
xor ecx, ecx
xor edx, edx
mov esi, dword [eax]
call dword [esi + 0x14]
mov edx, dword [ebx + 0x10]
mov eax, dword [ebx + 0xc]
call fcn.005f8114
mov eax, dword [ebx + 0xc]
add eax, 0x118
mov edx, dword [ebp - 8]
call sub.rtl120.bpl__System__UStrAsg_qqrr20System_UnicodeStringx20System_UnicodeString
mov eax, dword [ebx + 0xc]
add eax, 0xec
mov edx, dword [ebp - 4]
call sub.rtl120.bpl__System__UStrAsg_qqrr20System_UnicodeStringx20System_UnicodeString
mov eax, dword [ebx + 0xc]
mov edx, dword [ebp - 0x10]
mov dword [eax + 0x188], edx
call fcn.005f77c0
mov eax, dword [ebx + 0xc]
mov esi, dword [eax + 0x12c]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x673491
lea eax, [ebp - 0x54]
call sub.rtl120.bpl__System__UStrClr_qqrpv
lea eax, [ebp - 0xc]
call sub.rtl120.bpl__System__LStrClr_qqrpv
lea eax, [ebp - 8]
mov edx, 2
call sub.rtl120.bpl__System__UStrArrayClr_qqrpvi
ret
Function at 0x6762b4
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffd94
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x268], ebx
mov dword [ebp - 0x26c], ebx
mov dword [ebp - 0x260], ebx
mov dword [ebp - 0x264], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov ebx, ecx
mov esi, edx
mov dword [ebp - 0xc], eax
mov edi, dword [ebp + 8]
xor eax, eax
push ebp
push 0x676438
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 8]
mov eax, esi
call sub.rtl120.bpl__Sysutils_IncludeTrailingPathDelimiter_qqrx20System_UnicodeString
lea eax, [ebp - 4]
mov ecx, 0x676454
mov edx, dword [ebp - 8]
call sub.rtl120.bpl__System__UStrCat3_qqrr20System_UnicodeStringx20System_UnicodeStringt2
lea eax, [ebp - 0x25c]
push eax
mov eax, dword [ebp - 4]
call sub.rtl120.bpl__System__UStrToPWChar_qqrx20System_UnicodeString
push eax
call sub.kernel32.dll_FindFirstFileW
mov esi, eax
cmp esi, 0xffffffff
je 0x676407
cmp word [ebp - 0x230], 0x2e
jne 0x67634a
cmp word [ebp - 0x22e], 0
je 0x6763f2
cmp word [ebp - 0x22e], 0x2e
jne 0x676362
cmp word [ebp - 0x22c], 0
je 0x6763f2
test dword [ebp - 0x25c], edi
je 0x6763a4
lea eax, [ebp - 0x264]
lea edx, [ebp - 0x230]
mov ecx, 0x104
call sub.rtl120.bpl__System__UStrFromWArray_qqrr20System_UnicodeStringpbi
mov ecx, dword [ebp - 0x264]
lea eax, [ebp - 0x260]
mov edx, dword [ebp - 8]
call sub.rtl120.bpl__System__UStrCat3_qqrr20System_UnicodeStringx20System_UnicodeStringt2
mov edx, dword [ebp - 0x260]
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
mov ecx, dword [eax]
call dword [ecx + 0x38]
test byte [ebp - 0x25c], 0x10
setne al
test al, bl
je 0x6763f2
mov eax, dword [ebp + 0xc]
push eax
push edi
lea eax, [ebp - 0x26c]
lea edx, [ebp - 0x230]
mov ecx, 0x104
call sub.rtl120.bpl__System__UStrFromWArray_qqrr20System_UnicodeStringpbi
mov ecx, dword [ebp - 0x26c]
lea eax, [ebp - 0x268]
mov edx, dword [ebp - 8]
call sub.rtl120.bpl__System__UStrCat3_qqrr20System_UnicodeStringx20System_UnicodeStringt2
mov edx, dword [ebp - 0x268]
mov eax, dword [ebp - 0xc]
mov ecx, ebx
call fcn.006762b4
pop ecx
lea eax, [ebp - 0x25c]
push eax
push esi
call sub.kernel32.dll_FindNextFileW
test eax, eax
jne 0x676332
push esi
call sub.kernel32.dll_FindClose
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x67643f
lea eax, [ebp - 0x26c]
mov edx, 4
call sub.rtl120.bpl__System__UStrArrayClr_qqrpvi
lea eax, [ebp - 8]
mov edx, 2
call sub.rtl120.bpl__System__UStrArrayClr_qqrpvi
ret
Function at 0x676458
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffd88
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x278], ebx
mov dword [ebp - 0x270], ebx
mov dword [ebp - 0x274], ebx
mov dword [ebp - 0x268], ebx
mov dword [ebp - 0x26c], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0x10], ecx
mov ebx, edx
mov dword [ebp - 0xc], eax
lea edi, [ebp - 0x264]
xor eax, eax
push ebp
push 0x676615
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 8]
mov eax, ebx
call sub.rtl120.bpl__Sysutils_IncludeTrailingPathDelimiter_qqrx20System_UnicodeString
lea eax, [ebp - 4]
mov ecx, 0x676630
mov edx, dword [ebp - 8]
call sub.rtl120.bpl__System__UStrCat3_qqrr20System_UnicodeStringx20System_UnicodeStringt2
mov dl, 1
mov eax, dword [sym.imp.rtl120.bpl__Classes_TStringList_]
call sub.rtl120.bpl__Classes_TStringList__bctr_qqrv
mov esi, eax
push edi
mov eax, dword [ebp - 4]
call sub.rtl120.bpl__System__UStrToPWChar_qqrx20System_UnicodeString
push eax
call sub.kernel32.dll_FindFirstFileW
mov ebx, eax
cmp ebx, 0xffffffff
je 0x67659b
cmp word [edi + 0x2c], 0x2e
jne 0x6764fa
cmp word [edi + 0x2e], 0
je 0x67658c
cmp word [edi + 0x2e], 0x2e
jne 0x67650c
cmp word [edi + 0x30], 0
je 0x67658c
mov eax, dword [ebp - 0x10]
and eax, dword [edi]
je 0x67654a
lea eax, [ebp - 0x26c]
lea edx, [edi + 0x2c]
mov ecx, 0x104
call sub.rtl120.bpl__System__UStrFromWArray_qqrr20System_UnicodeStringpbi
mov ecx, dword [ebp - 0x26c]
lea eax, [ebp - 0x268]
mov edx, dword [ebp - 8]
call sub.rtl120.bpl__System__UStrCat3_qqrr20System_UnicodeStringx20System_UnicodeStringt2
mov edx, dword [ebp - 0x268]
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
mov ecx, dword [eax]
call dword [ecx + 0x38]
test byte [edi], 0x10
je 0x67658c
mov eax, dword [ebp + 8]
cmp byte [eax + 0x10], 0
je 0x67658c
lea eax, [ebp - 0x274]
lea edx, [edi + 0x2c]
mov ecx, 0x104
call sub.rtl120.bpl__System__UStrFromWArray_qqrr20System_UnicodeStringpbi
mov ecx, dword [ebp - 0x274]
lea eax, [ebp - 0x270]
mov edx, dword [ebp - 8]
call sub.rtl120.bpl__System__UStrCat3_qqrr20System_UnicodeStringx20System_UnicodeStringt2
mov edx, dword [ebp - 0x270]
mov eax, esi
mov ecx, dword [eax]
call dword [ecx + 0x38]
push edi
push ebx
call sub.kernel32.dll_FindNextFileW
test eax, eax
jne 0x6764e8
push ebx
call sub.kernel32.dll_FindClose
mov eax, esi
mov edx, dword [eax]
call dword [edx + 0x14]
mov ebx, eax
dec ebx
test ebx, ebx
jl 0x6765e3
inc ebx
mov dword [ebp - 0x14], 0
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x278]
mov edx, dword [ebp - 0x14]
mov eax, esi
mov edi, dword [eax]
call dword [edi + 0xc]
mov edx, dword [ebp - 0x278]
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x10]
call fcn.00676458
pop ecx
inc dword [ebp - 0x14]
dec ebx
jne 0x6765b7
mov eax, esi
call sub.rtl120.bpl__System_TObject_Free_qqrv
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x67661c
lea eax, [ebp - 0x278]
mov edx, 5
call sub.rtl120.bpl__System__UStrArrayClr_qqrpvi
lea eax, [ebp - 8]
mov edx, 2
call sub.rtl120.bpl__System__UStrArrayClr_qqrpvi
ret
Function at 0x67a1e4
Capabilities:
Get file system object information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffd48
push ebx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call sub.rtl120.bpl__System__UStrAddRef_qqrpv
xor eax, eax
push ebp
push 0x67a255
push dword fs:[eax]
mov dword fs:[eax], esp
test bl, bl
je 0x67a214
mov ebx, 0x111
jmp 0x67a219
mov ebx, 0x110
push ebx
push 0x2b4
lea eax, [ebp - 0x2b8]
push eax
push 0x80
mov eax, dword [ebp - 4]
call sub.rtl120.bpl__System__UStrToPWChar_qqrx20System_UnicodeString
push eax
call sub.shell32.dll_SHGetFileInfoW
mov ebx, dword [ebp - 0x2b8]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x67a25c
lea eax, [ebp - 4]
call sub.rtl120.bpl__System__UStrClr_qqrpv
ret

Function at 0x67a264
Capabilities:
Get file system object information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffd48
push ebx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call sub.rtl120.bpl__System__UStrAddRef_qqrpv
xor eax, eax
push ebp
push 0x67a2d2
push dword fs:[eax]
mov dword fs:[eax], esp
test bl, bl
je 0x67a294
mov ebx, 0x101
jmp 0x67a299
mov ebx, pe_nt_image_headers32
push ebx
push 0x2b4
lea eax, [ebp - 0x2b8]
push eax
push 0
mov eax, dword [ebp - 4]
call sub.rtl120.bpl__System__UStrToPWChar_qqrx20System_UnicodeString
push eax
call sub.shell32.dll_SHGetFileInfoW
mov ebx, dword [ebp - 0x2b8]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x67a2d9
lea eax, [ebp - 4]
call sub.rtl120.bpl__System__UStrClr_qqrpv
ret
Function at 0x67d398
Capabilities:
Create process on windows
Create process suspended

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff98
push ebx
push esi
push edi
xor ebx, 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.rtl120.bpl__System__UStrAddRef_qqrpv
mov eax, dword [ebp - 8]
call sub.rtl120.bpl__System__UStrAddRef_qqrpv
xor eax, eax
push ebp
push 0x67d55f
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x68]
mov edx, 0x10
call fcn.004024a4
lea eax, [ebp - 0x58]
mov edx, 0x44
call fcn.004024a4
mov dword [ebp - 0x58], 0x44
mov dword [ebp - 0x2c], 1
mov word [ebp - 0x28], 0
push dword [ebp - 4]
push 0x67d580
push dword [ebp - 8]
lea eax, [ebp - 0xc]
mov edx, 3
call sub.rtl120.bpl__System__UStrCatN_qqrv
mov eax, dword [ebp - 0xc]
call sub.rtl120.bpl__System__UStrLen_qqrx20System_UnicodeString
add eax, 2
mov esi, eax
add esi, esi
mov eax, esi
call sub.rtl120.bpl__System__GetMem_qqri
mov ebx, eax
mov edx, esi
mov eax, ebx
call fcn.004024a4
mov edx, dword [ebp - 0xc]
mov eax, ebx
call sub.rtl120.bpl__Sysutils_StrPCopy_qqrpbx20System_UnicodeString
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp - 0x58]
push eax
push 0
push 0
push 0x20
push 0
push 0
push 0
push ebx
push 0
call sub.kernel32.dll_CreateProcessW
test eax, eax
jne 0x67d472
mov byte [ebp - 0xd], 0
mov eax, ebx
call sub.rtl120.bpl__System__FreeMem_qqrpv
jmp 0x67d544
mov eax, ebx
call sub.rtl120.bpl__System__FreeMem_qqrpv
mov eax, dword [ebp - 0x68]
test eax, eax
je 0x67d540
cmp byte [ebp + 8], 0
je 0x67d4f2
push 0xffffffffffffffff
push eax
call sub.kernel32.dll_WaitForSingleObject
test eax, eax
jne 0x67d4c7
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x68]
push eax
call sub.kernel32.dll_GetExitCodeProcess
test eax, eax
je 0x67d4c1
cmp dword [ebp - 0x14], 0x103
je 0x67d4bb
mov eax, dword [ebp - 0x14]
mov dword [edi], eax
mov byte [ebp - 0xd], 1
jmp 0x67d4f6
mov byte [ebp - 0xd], 0
jmp 0x67d4f6
mov byte [ebp - 0xd], 0
jmp 0x67d4f6
cmp eax, 0x102
jne 0x67d4d4
mov byte [ebp - 0xd], 0
jmp 0x67d4f6
cmp eax, 0x80
jne 0x67d4e1
mov byte [ebp - 0xd], 0
jmp 0x67d4f6
cmp eax, 0xffffffff
jne 0x67d4ec
mov byte [ebp - 0xd], 0
jmp 0x67d4f6
mov byte [ebp - 0xd], 0
jmp 0x67d4f6
mov byte [ebp - 0xd], 1
xor edx, edx
push ebp
push 0x67d528
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebp - 0x68]
test eax, eax
je 0x67d511
push eax
call sub.kernel32.dll_CloseHandle
mov eax, dword [ebp - 0x64]
test eax, eax
je 0x67d51e
push eax
call sub.kernel32.dll_CloseHandle
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x67d544
mov byte [ebp - 0xd], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x67d566
lea eax, [ebp - 0xc]
mov edx, 3
call sub.rtl120.bpl__System__UStrArrayClr_qqrpvi
ret
Function at 0x67d584
Capabilities:
Hide graphical window
Log keystrokes

Disassembly:
push ebx
push esi
push edi
mov ebx, eax
call sub.user32.dll_GetForegroundWindow
push 0
push eax
call sub.user32.dll_GetWindowThreadProcessId
mov esi, eax
call sub.kernel32.dll_GetCurrentThreadId
mov edi, eax
push 0xffffffffffffffff
push esi
push edi
call sub.user32.dll_AttachThreadInput
push 5
push ebx
call sub.user32.dll_ShowWindow
push 3
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
push ebx
call sub.user32.dll_SetWindowPos
push 3
push 0
push 0
push 0
push 0
push 0xfffffffffffffffe
push ebx
call sub.user32.dll_SetWindowPos
push ebx
call sub.user32.dll_SetForegroundWindow
push 0
push esi
push edi
call sub.user32.dll_AttachThreadInput
pop edi
pop esi
pop ebx
ret

Function at 0x67e58c
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa4
push ebx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call sub.rtl120.bpl__System__UStrAddRef_qqrpv
mov eax, dword [ebp - 8]
call sub.rtl120.bpl__System__UStrAddRef_qqrpv
xor eax, eax
push ebp
push 0x67e63a
push dword fs:[eax]
mov dword fs:[eax], esp
mov bl, 1
lea eax, [ebp - 0x4c]
xor ecx, ecx
mov edx, 0x44
call sub.rtl120.bpl__System__FillChar_qqrpvib
lea eax, [ebp - 0x5c]
xor ecx, ecx
mov edx, 0x10
call sub.rtl120.bpl__System__FillChar_qqrpvib
mov dword [ebp - 0x4c], 0x44
lea eax, [ebp - 8]
mov ecx, dword [ebp - 8]
mov edx, 0x67e654
call sub.rtl120.bpl__System__UStrCat3_qqrr20System_UnicodeStringx20System_UnicodeStringt2
lea eax, [ebp - 0x5c]
push eax
lea eax, [ebp - 0x4c]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
mov eax, dword [ebp - 8]
call sub.rtl120.bpl__System__UStrToPWChar_qqrx20System_UnicodeString
push eax
mov eax, dword [ebp - 4]
call sub.rtl120.bpl__System__UStrToPWChar_qqrx20System_UnicodeString
push eax
call sub.kernel32.dll_CreateProcessW
test eax, eax
jne 0x67e61f
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x67e641
lea eax, [ebp - 8]
mov edx, 2
call sub.rtl120.bpl__System__UStrArrayClr_qqrpvi
ret

Function at 0x681c0c
Capabilities:
Get common file path

Disassembly:
push ebx
add esp, 0xfffffdf4
mov ebx, eax
push 0x20a
lea eax, [esp + 4]
push eax
call sub.kernel32.dll_GetSystemDirectoryW
cmp eax, 0x104
jg 0x681c3f
test eax, eax
jle 0x681c3f
mov eax, ebx
mov edx, esp
mov ecx, 0x105
call sub.rtl120.bpl__System__UStrFromWArray_qqrr20System_UnicodeStringpbi
jmp 0x681c4b
mov eax, ebx
mov edx, 0x681c60
call sub.rtl120.bpl__System__UStrAsg_qqrr20System_UnicodeStringx20System_UnicodeString
add esp, 0x20c
pop ebx
ret
Function at 0x687fec
Capabilities:
Create process on windows
Create process suspended

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff98
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0xc], ebx
mov esi, ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call sub.rtl120.bpl__System__UStrAddRef_qqrpv
mov eax, dword [ebp - 8]
call sub.rtl120.bpl__System__UStrAddRef_qqrpv
xor eax, eax
push ebp
push 0x6881c7
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x68]
xor ecx, ecx
mov edx, 0x10
call sub.rtl120.bpl__System__FillChar_qqrpvib
lea eax, [ebp - 0x58]
xor ecx, ecx
mov edx, 0x44
call sub.rtl120.bpl__System__FillChar_qqrpvib
mov dword [ebp - 0x58], 0x44
mov dword [ebp - 0x2c], 1
mov word [ebp - 0x28], 0
cmp dword [ebp - 4], 0
jne 0x68806a
lea eax, [ebp - 0xc]
mov edx, dword [ebp - 8]
call sub.rtl120.bpl__System__UStrLAsg_qqrr20System_UnicodeStringx20System_UnicodeString
jmp 0x68808c
push 0x6881e8
push dword [ebp - 4]
push 0x6881e8
push 0x6881f8
push dword [ebp - 8]
lea eax, [ebp - 0xc]
mov edx, 5
call sub.rtl120.bpl__System__UStrCatN_qqrv
mov eax, dword [ebp - 0xc]
call sub.rtl120.bpl__System__UStrLen_qqrx20System_UnicodeString
add eax, 2
add eax, eax
call sub.rtl120.bpl__System__GetMem_qqri
mov ebx, eax
mov eax, dword [ebp - 0xc]
call sub.rtl120.bpl__System__UStrLen_qqrx20System_UnicodeString
add eax, 2
mov edx, eax
add edx, edx
mov eax, ebx
call fcn.004024a4
mov edx, dword [ebp - 0xc]
mov eax, ebx
call sub.rtl120.bpl__Sysutils_StrPCopy_qqrpbx20System_UnicodeString
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp - 0x58]
push eax
push 0
push 0
push 0x20
push 0
push 0
push 0
push ebx
push 0
call sub.kernel32.dll_CreateProcessW
test eax, eax
jne 0x6880f7
mov byte [ebp - 0xd], 0
call sub.kernel32.dll_GetLastError
mov dword [esi], eax
mov eax, ebx
call sub.rtl120.bpl__System__FreeMem_qqrpv
jmp 0x6881ac
mov eax, ebx
call sub.rtl120.bpl__System__FreeMem_qqrpv
mov eax, dword [ebp - 0x68]
test eax, eax
je 0x6881a8
push 0xffffffffffffffff
push eax
call sub.kernel32.dll_WaitForSingleObject
test eax, eax
jne 0x688146
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x68]
push eax
call sub.kernel32.dll_GetExitCodeProcess
test eax, eax
je 0x688140
cmp dword [ebp - 0x14], 0x103
je 0x68813a
mov eax, dword [ebp - 0x14]
mov dword [esi], eax
mov byte [ebp - 0xd], 1
jmp 0x68816f
mov byte [ebp - 0xd], 0
jmp 0x68816f
mov byte [ebp - 0xd], 0
jmp 0x68816f
cmp eax, 0x102
jne 0x688153
mov byte [ebp - 0xd], 0
jmp 0x68816f
cmp eax, 0x80
jne 0x688160
mov byte [ebp - 0xd], 0
jmp 0x68816f
cmp eax, 0xffffffff
jne 0x68816b
mov byte [ebp - 0xd], 0
jmp 0x68816f
mov byte [ebp - 0xd], 0
xor edx, edx
push ebp
push 0x688190
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebp - 0x68]
push eax
call sub.kernel32.dll_CloseHandle
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x6881ac
mov byte [ebp - 0xd], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x6881ce
lea eax, [ebp - 0xc]
mov edx, 3
call sub.rtl120.bpl__System__UStrArrayClr_qqrpvi
ret
Function at 0x6881fc
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdf4
push ebx
xor edx, edx
mov dword [ebp - 0x20c], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x688270
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0x1a
lea eax, [ebp - 0x208]
push eax
mov eax, dword [0x7a2004]
push eax
call sub.shell32.dll_SHGetSpecialFolderPathW
lea eax, [ebp - 0x20c]
lea edx, [ebp - 0x208]
mov ecx, 0x104
call sub.rtl120.bpl__System__UStrFromWArray_qqrr20System_UnicodeStringpbi
mov eax, dword [ebp - 0x20c]
mov edx, ebx
call sub.rtl120.bpl__Sysutils_IncludeTrailingPathDelimiter_qqrx20System_UnicodeString
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x688277
lea eax, [ebp - 0x20c]
call sub.rtl120.bpl__System__UStrClr_qqrpv
ret
Function at 0x694c74
Capabilities:
Check internet connectivity via wininet

Disassembly:
push ebx
push esi
mov esi, 0x791190
cmp dword [esi], 0
je 0x694c8e
xor ecx, ecx
mov edx, 0x694e50
mov eax, dword [esi]
call fcn.005714a8
push 0
push 1
push 0x694e90
call sub.wininet.dll_InternetCheckConnectionW
cmp eax, 1
sbb ebx, ebx
inc ebx
cmp dword [esi], 0
je 0x694cb5
xor ecx, ecx
mov edx, 0x694ed0
mov eax, dword [esi]
call fcn.005714a8
test bl, bl
jne 0x694ccf
push 0
push 1
push 0x694f18
call sub.wininet.dll_InternetCheckConnectionW
test eax, eax
jne 0x694ccf
xor eax, eax
jmp 0x694cd1
mov al, 1
mov ebx, eax
cmp dword [esi], 0
je 0x694ce6
xor ecx, ecx
mov edx, 0x694f5c
mov eax, dword [esi]
call fcn.005714a8
test bl, bl
jne 0x694d00
push 0
push 1
push 0x694fa8
call sub.wininet.dll_InternetCheckConnectionW
test eax, eax
jne 0x694d00
xor eax, eax
jmp 0x694d02
mov al, 1
mov ebx, eax
cmp dword [esi], 0
je 0x694d17
xor ecx, ecx
mov edx, 0x694fec
mov eax, dword [esi]
call fcn.005714a8
test bl, bl
jne 0x694d31
push 0
push 1
push 0x695038
call sub.wininet.dll_InternetCheckConnectionW
test eax, eax
jne 0x694d31
xor eax, eax
jmp 0x694d33
mov al, 1
mov ebx, eax
cmp dword [esi], 0
je 0x694d48
xor ecx, ecx
mov edx, 0x695084
mov eax, dword [esi]
call fcn.005714a8
test bl, bl
jne 0x694d62
push 0
push 1
push 0x6950d8
call sub.wininet.dll_InternetCheckConnectionW
test eax, eax
jne 0x694d62
xor eax, eax
jmp 0x694d64
mov al, 1
mov ebx, eax
cmp dword [esi], 0
je 0x694d79
xor ecx, ecx
mov edx, 0x695124
mov eax, dword [esi]
call fcn.005714a8
test bl, bl
jne 0x694d93
push 0
push 1
push 0x695178
call sub.wininet.dll_InternetCheckConnectionW
test eax, eax
jne 0x694d93
xor eax, eax
jmp 0x694d95
mov al, 1
mov ebx, eax
cmp dword [esi], 0
je 0x694daa
xor ecx, ecx
mov edx, 0x6951c8
mov eax, dword [esi]
call fcn.005714a8
test bl, bl
jne 0x694dc4
push 0
push 1
push 0x695224
call sub.wininet.dll_InternetCheckConnectionW
test eax, eax
jne 0x694dc4
xor eax, eax
jmp 0x694dc6
mov al, 1
mov ebx, eax
cmp dword [esi], 0
je 0x694ddb
xor ecx, ecx
mov edx, 0x695274
mov eax, dword [esi]
call fcn.005714a8
test bl, bl
jne 0x694df5
push 0
push 1
push 0x6952d0
call sub.wininet.dll_InternetCheckConnectionW
test eax, eax
jne 0x694df5
xor eax, eax
jmp 0x694df7
mov al, 1
mov ebx, eax
cmp dword [esi], 0
je 0x694e0c
xor ecx, ecx
mov edx, 0x695308
mov eax, dword [esi]
call fcn.005714a8
test bl, bl
jne 0x694e26
push 0
push 1
push 0x695348
call sub.wininet.dll_InternetCheckConnectionW
test eax, eax
jne 0x694e26
xor eax, eax
jmp 0x694e28
mov al, 1
mov ebx, eax
cmp dword [esi], 0
je 0x694e3d
xor ecx, ecx
mov edx, 0x695380
mov eax, dword [esi]
call fcn.005714a8
mov eax, ebx
pop esi
pop ebx
ret