joyce8/EMBER2024-capa huggingface dataset:
Function at 0x107c0
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
mov byte [0x106a4], 1
push 0x10c00
call sub.ntoskrnl.exe_DbgPrint
add esp, 4
mov eax, dword [sym.imp.ntoskrnl.exe_KeServiceDescriptorTable]
mov ecx, dword [eax]
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 0xc]
add edx, 0x1e8
mov dword [ebp - 8], edx
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 8]
mov eax, dword [edx]
mov dword [0x10694], eax
mov ecx, dword [0x10694]
mov dword [0x10690], ecx
mov edx, dword [0x10694]
push edx
push 0x10be0
call sub.ntoskrnl.exe_DbgPrint
add esp, 8
push 0x10710
push 0x10bc0
call sub.ntoskrnl.exe_DbgPrint
add esp, 8
cli
mov eax, cr0
add eax, 0xfffeffff
mov cr0, eax
mov eax, dword [ebp - 8]
mov dword [eax], 0x10710
mov eax, cr0
or eax, 0x10000
mov cr0, eax
sti
mov esp, ebp
pop ebp
ret

Function at 0x10860
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
mov eax, dword [sym.imp.ntoskrnl.exe_KeServiceDescriptorTable]
mov ecx, dword [eax]
add ecx, 0x1e8
mov dword [ebp - 4], ecx
movzx edx, byte [0x106a4]
test edx, edx
je 0x108b8
mov byte [0x106a4], 0
cli
mov eax, cr0
add eax, 0xfffeffff
mov cr0, eax
mov eax, dword [ebp - 4]
mov ecx, dword [0x10694]
mov dword [eax], ecx
mov eax, cr0
or eax, 0x10000
mov cr0, eax
sti
push 0x10c20
call sub.ntoskrnl.exe_DbgPrint
add esp, 4
mov esp, ebp
pop ebp
ret

Function at 0x10d90
Capabilities:
Create device object
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
push 0x11160
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
lea ecx, [ebp - 4]
push ecx
push 1
push 0
push 0x22
lea edx, [ebp - 0xc]
push edx
push 0
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.ntoskrnl.exe_IoCreateDevice]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jge 0x10e1e
cmp dword [ebp - 0x18], 0xc000009a
jne 0x10de0
push 0x11130
call sub.ntoskrnl.exe_DbgPrint
add esp, 4
cmp dword [ebp - 0x18], 0x40000000
jne 0x10df6
push 0x11120
call sub.ntoskrnl.exe_DbgPrint
add esp, 4
cmp dword [ebp - 0x18], 0xc0000035
jne 0x10e0c
push 0x11110
call sub.ntoskrnl.exe_DbgPrint
add esp, 4
push 0x110f0
call sub.ntoskrnl.exe_DbgPrint
add esp, 4
mov eax, dword [ebp - 0x18]
jmp 0x10e71
push 0x110d0
call sub.ntoskrnl.exe_DbgPrint
add esp, 4
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x1c]
or edx, 4
mov eax, dword [ebp - 4]
mov dword [eax + 0x1c], edx
push 0x110a0
lea ecx, [ebp - 0x14]
push ecx
call dword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
lea edx, [ebp - 0xc]
push edx
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.ntoskrnl.exe_IoCreateSymbolicLink]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jge 0x10e6f
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ntoskrnl.exe_IoDeleteDevice]
mov eax, dword [ebp - 0x18]
jmp 0x10e71
xor eax, eax
mov esp, ebp
pop ebp
ret 4
Function at 0x10e80
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push 0x111f0
call sub.ntoskrnl.exe_DbgPrint
add esp, 4
mov eax, dword [sym.imp.ntoskrnl.exe_KeServiceDescriptorTable]
mov ecx, dword [eax]
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 0xc]
push edx
push 0x111d0
call sub.ntoskrnl.exe_DbgPrint
add esp, 8
mov eax, dword [ebp - 0xc]
add eax, 0x1e8
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
push ecx
push 0x111b0
call sub.ntoskrnl.exe_DbgPrint
add esp, 8
mov edx, dword [ebp - 8]
mov eax, dword [edx]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
push ecx
push 0x11190
call sub.ntoskrnl.exe_DbgPrint
add esp, 8
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret

Function at 0x10f00
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push 0x11240
lea eax, [ebp - 8]
push eax
call dword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
lea ecx, [ebp - 8]
push ecx
call dword [sym.imp.ntoskrnl.exe_MmGetSystemRoutineAddress]
mov dword [ebp - 0xc], eax
mov edx, dword [ebp - 0xc]
push edx
push 0x11220
call sub.ntoskrnl.exe_DbgPrint
add esp, 8
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret

Function at 0x11088
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
call fcn.0001104f
pop ebp
jmp fcn.00010f50
Function at 0x40f3fa
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x420248
push 0x420240
push str.FlsAlloc
push 0x1e
call fcn.0040f267
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40f42e
push dword [ebp + 8]
mov ecx, esi
call dword [0x41d130]
call esi
jmp 0x40f434
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x40f478
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x420258
push 0x420250
push str.FlsGetValue
push 0x20
call fcn.0040f267
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40f4af
push dword [ebp + 8]
mov ecx, esi
call dword [0x41d130]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x410a24
Capabilities:
Read file on windows

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

Function at 0x410e1e
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00405a70
mov eax, dword [0x42a014]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.0040fa8a
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x410e60
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x410fbc
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.0041b9d0
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x42b908]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.00411e15
mov ecx, dword [esi*4 + 0x42b908]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [edi + ecx + 0x20]
jne 0x410fb5
cmp eax, dword [edi + ecx + 0x24]
jne 0x410fb5
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [edi + ecx + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x410fb5
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00411e15
add esp, 0x14
test edx, edx
jl 0x410fb5
jg 0x410f2b
test eax, eax
jb 0x410fb5
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x410fb5
jl 0x410f45
cmp dword [ebp - 0x1008], eax
ja 0x410fb5
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x410f63
test ebx, ebx
je 0x410f9c
cmp ecx, edi
jae 0x410f9c
mov al, byte [ecx]
cmp al, 0xd
jne 0x410f7d
lea eax, [edi - 1]
cmp ecx, eax
jae 0x410f89
cmp byte [ecx + 1], 0xa
jne 0x410f89
inc ecx
jmp 0x410f89
movzx eax, al
movsx eax, byte [eax + 0x42a298]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x410f63
cmp edx, ebx
jne 0x410f63
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x410fba
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00404ce1
leave
ret
Function at 0x4112b3
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x42b908]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x4112f3
cmp byte [ebx], 0xa
jne 0x4112f3
or byte [eax + edi + 0x28], 4
jmp 0x4112f8
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x4113f6
mov al, byte [edx]
cmp al, 0x1a
je 0x4113d8
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x411327
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x41134c
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x411356
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add edx, eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov ecx, dword [ebp - 0xc]
inc esi
cmp edx, ecx
jb 0x411309
jmp 0x4113f6
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4113d3
cmp dword [ebp - 0xc], 0
je 0x4113d3
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x42b908]
test byte [eax + edi + 0x28], 0x48
je 0x4113ad
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x411398
mov byte [esi], dl
jmp 0x4113a9
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x42b908]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x4113f6
cmp byte [ebp - 1], 0xa
jne 0x4113bc
cmp esi, ebx
jne 0x4113bc
mov byte [esi], 0xa
jmp 0x4113f5
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00411e33
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x4113f6
mov byte [esi], 0xd
jmp 0x4113f5
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x42b908]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x4113f2
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x4113f6
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x4113ff
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x42b908]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x411442
cmp word [esi], dx
jne 0x411442
or byte [edi + eax + 0x28], 4
jmp 0x411447
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x41159a
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x41157a
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x411489
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x4114bf
cmp eax, edx
jae 0x4114cb
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x411461
jmp 0x41159a
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x411576
cmp dword [ebp - 0x14], 0
je 0x411576
mov eax, dword [ebx*4 + 0x42b908]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x41154e
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x411517
mov word [esi], cx
jmp 0x41154a
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x42b908]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x42b908]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x42b908]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x41159a
pop ebx
cmp word [ebp - 4], bx
jne 0x41155f
cmp esi, dword [ebp + 0xc]
jne 0x41155f
mov word [esi], bx
jmp 0x411597
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.00411e33
add esp, 0x10
cmp word [ebp - 4], bx
je 0x41159a
push 0xd
jmp 0x411593
mov ecx, dword [ebx*4 + 0x42b908]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x411591
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x41159a
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x4165bd
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x41665a
push ebx
push esi
call fcn.00416586
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.0041520b
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x416607
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x416659
push edi
push eax
call fcn.00412012
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x416627
call fcn.0040e962
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x416658
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0041520b
add esp, 0x20
test eax, eax
jne 0x416646
push edi
call fcn.0040e962
jmp 0x41664e
push ebx
call fcn.0040e962
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret
Function at 0x40199c
Capabilities:
Link many functions at runtime

Disassembly:
push ebx
push esi
mov esi, 0x411018
mov dword [esi], sub.borlndmm.dll__Borlndmm_SysGetMem_qqri
push 0x401a20
call sub.kernel32.dll_GetModuleHandleW_1
mov ebx, eax
push 0x401a3c
push ebx
call sub.kernel32.dll_GetProcAddress_1
mov dword [esi], eax
push 0x401a58
push ebx
call sub.kernel32.dll_GetProcAddress_1
mov dword [esi + 4], eax
push 0x401a74
push ebx
call sub.kernel32.dll_GetProcAddress_1
mov dword [esi + 8], eax
push 0x401a94
push ebx
call sub.kernel32.dll_GetProcAddress_1
test eax, eax
je 0x4019f0
mov dword [esi + 0xc], eax
push 0x401ab0
push ebx
call sub.kernel32.dll_GetProcAddress_1
test eax, eax
je 0x401a02
mov dword [esi + 0x10], eax
push 0x401ae0
push ebx
call sub.kernel32.dll_GetProcAddress_1
test eax, eax
je 0x401a14
mov dword [esi + 0x14], eax
mov eax, esi
call sub.rtl170.bpl__System_SetMemoryManager_qqrrx23System_TMemoryManagerEx
pop esi
pop ebx
ret
Function at 0x407858
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffecc
push ebx
push esi
xor edx, edx
mov dword [ebp - 4], edx
mov dword [ebp - 8], edx
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x10], edx
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x18], edx
mov esi, eax
lea ebx, [ebp - 0x24]
xor eax, eax
push ebp
push 0x407a24
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x134], 2
lea eax, [ebp - 4]
call sub.rtl170.bpl__System__IntfClear_qqrr45System__DelphiInterface_t17System_IInterface_
push eax
call sub.shell32.dll_SHGetMalloc
lea eax, [ebp - 8]
call sub.rtl170.bpl__System__IntfClear_qqrr45System__DelphiInterface_t17System_IInterface_
push eax
call sub.shell32.dll_SHGetDesktopFolder
lea eax, [ebp - 0x20]
push eax
push 0xa
mov eax, dword [sym.imp.vcl170.bpl__Vcl_Forms_Application]
mov eax, dword [eax]
mov eax, dword [eax + 0x178]
push eax
call sub.shell32.dll_SHGetSpecialFolderLocation
lea eax, [ebp - 0xc]
call sub.rtl170.bpl__System__IntfClear_qqrr45System__DelphiInterface_t17System_IInterface_
push eax
mov eax, dword [0x4100ac]
push eax
push 0
mov eax, dword [ebp - 0x20]
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [eax]
call dword [eax + 0x14]
lea eax, [ebp - 0x10]
call sub.rtl170.bpl__System__IntfClear_qqrr45System__DelphiInterface_t17System_IInterface_
push eax
push 0xe0
mov eax, dword [sym.imp.vcl170.bpl__Vcl_Forms_Application]
mov eax, dword [eax]
mov eax, dword [eax + 0x178]
push eax
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [eax]
call dword [eax + 0x10]
mov dl, 1
mov eax, dword [sym.imp.rtl170.bpl__System_Classes_TStringList_]
call sub.rtl170.bpl__System_Classes_TStringList__bctr_qqrv
mov dword [ebp - 0x2c], eax
xor eax, eax
push ebp
push 0x4079dc
push dword fs:[eax]
mov dword fs:[eax], esp
jmp 0x407988
lea eax, [ebp - 0x134]
push eax
push 0x8000
mov eax, dword [ebx]
push eax
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [eax]
call dword [eax + 0x2c]
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x18]
lea eax, [ebp - 0x134]
mov edx, dword [ebx]
call fcn.00407760
mov eax, dword [ebp - 0x14]
mov edx, 0x407a44
call sub.rtl170.bpl__System__UStrEqual_qqrv
jne 0x407971
lea edx, [ebp - 0x14]
mov eax, dword [ebp - 0x18]
call fcn.0040780c
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x2c]
mov ecx, dword [eax]
call dword [ecx + 0x3c]
mov eax, dword [ebx]
push eax
mov eax, dword [ebp - 4]
push eax
mov eax, dword [eax]
call dword [eax + 0x14]
lea eax, [ebp - 0x28]
push eax
push ebx
push 1
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [eax]
call dword [eax + 0xc]
dec eax
jne 0x40792b
mov eax, dword [ebp - 0x20]
push eax
mov eax, dword [ebp - 4]
push eax
mov eax, dword [eax]
call dword [eax + 0x14]
mov eax, dword [ebp - 0x2c]
mov edx, dword [eax]
call dword [edx + 0x14]
test eax, eax
setg byte [ebp - 0x19]
cmp byte [ebp - 0x19], 0
je 0x4079c6
mov eax, dword [esi]
mov edx, dword [ebp - 0x2c]
mov ecx, dword [eax]
call dword [ecx + 8]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4079e3
mov eax, dword [ebp - 0x2c]
call sub.rtl170.bpl__System_TObject_Free_qqrv
ret
Function at 0x40cda4
Capabilities:
Get file system object information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffd40
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x2c0], ecx
mov dword [ebp - 4], edx
mov esi, eax
mov eax, dword [ebp - 4]
call sub.rtl170.bpl__System__UStrAddRef_qqrpv
xor eax, eax
push ebp
push 0x40cef1
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov edx, dword [sym.imp.rtl170.bpl__System_Sysutils_EmptyStr]
mov edx, dword [edx]
call sub.rtl170.bpl__System__UStrEqual_qqrv
je 0x40ced0
mov eax, dword [esi + 0x404]
mov eax, dword [eax + 0x2b4]
call sub.vcl170.bpl__Vcl_Comctrls_TListItems_Add_qqrv
mov ebx, eax
mov edx, dword [ebp - 4]
mov eax, ebx
call sub.vcl170.bpl__Vcl_Comctrls_TListItem_SetCaption_qqrx20System_UnicodeString
call sub.PsGlobals.bpl__Upointstone_Shared_Globals_gFile_qqrv
mov edx, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 0x18]
push edx
push eax
call sub.PsGlobals.bpl__Upointstone_Shared_Globals_gString_qqrv
lea edx, [ebp - 0x2c0]
mov ecx, dword [eax]
call dword [ecx + 4]
mov edx, dword [ebp - 0x2c0]
mov eax, dword [ebx + 8]
mov ecx, dword [eax]
call dword [ecx + 0x3c]
lea eax, [ebp - 0x2bc]
xor ecx, ecx
mov edx, 0x2b4
call sub.rtl170.bpl__System__FillChar_qqrpvic
push 0x101
push 0x2b4
lea eax, [ebp - 0x2bc]
push eax
push 0
mov eax, dword [ebp - 4]
call sub.rtl170.bpl__System__UStrToPWChar_qqrx20System_UnicodeString
push eax
call sub.shell32.dll_SHGetFileInfoW
mov dl, 1
mov eax, dword [sym.imp.vcl170.bpl__Vcl_Graphics_TIcon_]
call sub.vcl170.bpl__Vcl_Graphics_TIcon__bctr_qqrv
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x40cec9
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [ebp - 0x2bc]
mov eax, dword [ebp - 8]
call sub.vcl170.bpl__Vcl_Graphics_TIcon_SetHandle_qqrp7HICON__
mov eax, dword [esi + 0x494]
mov edx, dword [ebp - 8]
call sub.vcl170.bpl__Vcl_Imglist_TCustomImageList_AddIcon_qqrp18Vcl_Graphics_TIcon
mov ecx, eax
xor edx, edx
mov eax, ebx
call sub.vcl170.bpl__Vcl_Comctrls_TListItem_SetImage_qqrii
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40ced0
xor edx, edx
mov eax, dword [ebp - 8]
call sub.vcl170.bpl__Vcl_Graphics_TIcon_SetHandle_qqrp7HICON__
mov eax, dword [ebp - 8]
call sub.rtl170.bpl__System_TObject_Free_qqrv
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40cef8
lea eax, [ebp - 0x2c0]
call sub.rtl170.bpl__System__UStrClr_qqrpv
lea eax, [ebp - 4]
call sub.rtl170.bpl__System__UStrClr_qqrpv
ret

Function at 0x40ddc4
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call sub.rtl170.bpl__System__UStrToPWChar_qqrx20System_UnicodeString
push eax
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x40dddd
test al, 0x10
jne 0x40dde1
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret
Function at 0x401b4b
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
pushal
call 0x401b5a
pop dword [ebp - 0x1c]
mov eax, 0x50cfc3b7
add eax, 0xaf7057a3
sub dword [ebp - 0x1c], eax
mov dword [ebp - 0x2c], 0x406966b4
add dword [ebp - 0x2c], 0xde8de97
mov dword [ebp - 0x28], 0x87d688f0
sub dword [ebp - 0x28], 0x55a33cab
mov dword [ebp - 0x24], 0x1d6389c1
add dword [ebp - 0x24], 0x2ee8ba6d
mov dword [ebp - 0x20], 0xa15685d5
sub dword [ebp - 0x20], 0xa15685d5
lea eax, [ebp - 0x2c]
push eax
mov eax, 0x6f7f9cc1
add eax, 0x90c13393
add eax, dword [ebp - 0x1c]
call dword [eax]
mov dword [ebp - 0x2c], 0xb6181822
sub dword [ebp - 0x2c], 0x41a5aecc
mov dword [ebp - 0x28], 0x55c0de45
sub dword [ebp - 0x28], 0x14547cd0
mov dword [ebp - 0x24], 0xedbf08c
add dword [ebp - 0x24], 0x54937be0
mov dword [ebp - 0x20], 0xb526c9a8
sub dword [ebp - 0x20], 0xb526c9a8
lea ebx, [ebp - 0x2c]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x1c]
call dword [eax]
push 0x40
push 0x1000
push 0x3d4f1
push 0
call eax
mov ecx, 0x27e19421
sub ecx, 0x27e13db3
mov ebx, eax
mov edx, 0xe0e7a37f
add edx, 0x1f5a0c81
add edx, dword [ebp - 0x1c]
mov edi, 0x338aa324
sub edi, 0xc734c5b8
add dword [ebp - 0x14], ebx
mov esi, dword [edx]
xor dword [ebp - 4], 0xf267101b
sub esi, edi
mov dword [ebx], esi
sub dword [ebp - 8], ebx
add ebx, 0x685c118b
add ebx, 0x97a3ee79
add edx, 0x127a38f5
add edx, 0xed85c70f
loop 0x401c77
add eax, 0x14c8b
xor ebx, ebx
add ebx, eax
add eax, 0x959ea100
sub eax, 0x959ea0fb
mov ecx, 0xd00dd0ee
sub ecx, 0xcfcdd0ee
add ecx, dword [ebp - 0x1c]
call ebx
leave
ret

Function at 0x401ea2
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x410284]
jne 0x401eac
repz ret
jmp fcn.00403e53