joyce8/EMBER2024-capa huggingface dataset:
Function at 0x446818
Capabilities:
Access peb ldr_data
Get kernel32 base address
Get process heap flags

Disassembly:
mov eax, 0x4df114
call fcn.004b0604
push ebx
push esi
push edi
mov esi, ecx
mov edi, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 4], ebx
lea eax, [edi + 0x2c]
push eax
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp + 8]
push eax
call fcn.004c77ff
push eax
lea ecx, [esi + 4]
mov byte [ebp - 4], 1
call fcn.004c76a3
lea ecx, [ebp + 8]
mov byte [ebp - 4], bl
call fcn.004c756a
mov eax, dword [edi]
push 1
push ebx
push ebx
mov dword [esi + 8], eax
push dword [edi + 0x1c]
call fcn.004b0d60
mov ecx, dword [edi + 0x20]
add eax, ecx
mov dword [esi + 0x10], eax
lea eax, [esi + 0x18]
push eax
lea eax, [edi + 4]
adc edx, ebx
and dword [esi + 0x30], ebx
and dword [esi + 0x2c], ebx
push eax
mov dword [esi + 0x14], edx
call fcn.00408cdd
lea eax, [esi + 0x1c]
push eax
lea eax, [edi + 0xc]
push eax
call fcn.00408cdd
lea eax, [esi + 0x20]
add edi, 0x14
push eax
push edi
call fcn.00408cdd
mov eax, dword [ebp + 0x10]
or dword [ebp - 4], 0xffffffff
add esp, 0x18
lea ecx, [ebp + 0xc]
mov dword [esi], eax
call fcn.004c756a
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 0xc
Function at 0x457940
Capabilities:
Hide graphical window

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0x44], 0
je 0x4579aa
mov eax, dword [esp + 8]
mov dword [esi + 0xc], eax
mov eax, dword [esi + 0x84]
test eax, eax
je 0x4579b5
push dword [eax + 0x1c]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4579b5
cmp dword [esi + 0xc], 0
je 0x457992
mov eax, dword [esi + 0x84]
test eax, eax
je 0x45797a
mov eax, dword [eax + 0x1c]
push 5
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, dword [esi + 0x84]
push 5
call fcn.004cac4e
jmp 0x4579b5
mov esi, dword [esi + 0x84]
test esi, esi
je 0x45799f
mov esi, dword [esi + 0x1c]
push 0
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x4579b5
push dword [esp + 8]
mov ecx, esi
call fcn.0044f2e1
pop esi
ret 4
Function at 0x45c4df
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x4e0f7b
call fcn.004b0604
push ecx
push ecx
push ebx
push esi
xor esi, esi
push edi
mov dword [ebp - 0x14], esi
mov eax, dword [str.pRdR]
push 1
pop ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], ebx
mov eax, dword [ebp + 0xc]
mov byte [ebp - 4], 2
mov edi, dword [eax - 8]
cmp edi, esi
jle 0x45c526
mov eax, dword [ebp + 0xc]
lea ecx, [ebp - 0x10]
mov al, byte [esi + eax]
xor al, byte [ebp + 0x10]
push eax
call fcn.004c796d
inc esi
cmp esi, edi
jl 0x45c50f
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x10]
push eax
call fcn.004c72df
mov dword [ebp - 0x14], ebx
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], bl
call fcn.004c756a
and byte [ebp - 4], 0
lea ecx, [ebp + 0xc]
call fcn.004c756a
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 0xc

Function at 0x45e254
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, 0x4e148c
call fcn.004b0604
push ecx
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esi
mov eax, dword [str.pRdR]
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [esi + 8], eax
mov eax, dword [str.pRdR]
mov dword [esi + 0xc], eax
push 0xa
lea ecx, [esi + 0x14]
mov byte [ebp - 4], 2
call fcn.004c5554
push 0xa
lea ecx, [esi + 0x30]
mov byte [ebp - 4], 3
call fcn.004c5554
push 0xa
lea ecx, [esi + 0x4c]
mov byte [ebp - 4], 4
call fcn.004c5554
lea ecx, [esi + 0x6c]
mov byte [ebp - 4], 5
call fcn.0045cb19
lea ecx, [esi + 0x1b0]
mov byte [ebp - 4], 6
call fcn.0047bf96
lea eax, [esi + 0x21c]
mov edi, vtable.CFont.0
mov dword [eax + 4], ebx
mov dword [eax], edi
lea eax, [esi + 0x224]
mov dword [eax + 4], ebx
mov dword [eax], edi
lea ecx, [esi + 0x22c]
mov byte [ebp - 4], 9
call fcn.00417766
lea ecx, [esi + 0x270]
mov byte [ebp - 4], 0xa
call fcn.00417766
lea ecx, [esi + 0x2b4]
mov byte [ebp - 4], 0xb
call fcn.00417766
lea eax, [esi + 0x300]
mov dword [eax + 4], ebx
mov dword [eax], edi
mov ecx, esi
mov byte [ebp - 4], 0xd
mov dword [esi], vtable.CSUFScreenBase.0
call fcn.0045e48c
mov ecx, dword [ebp - 0xc]
mov dword [esi + 0x1bc], ebx
mov dword [esi + 0x2f8], ebx
mov dword [esi + 0x1c0], ebx
mov dword [esi + 0x2fc], 1
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x45e36e
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, 0x4e155c
call fcn.004b0604
push ecx
push ecx
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esi
mov dword [esi], vtable.CSUFScreenBase.0
mov dword [ebp - 4], 0xd
call fcn.0045e4f6
lea ebx, [esi + 0x224]
mov ecx, ebx
call fcn.004ce794
lea ecx, [esi + 0x21c]
call fcn.004ce794
lea edi, [esi + 0x300]
mov ecx, edi
call fcn.004ce794
mov ecx, esi
call fcn.004604a2
mov ecx, edi
mov edi, vtable.CGdiObject.0
mov dword [ebp - 0x14], ecx
mov dword [ecx], edi
mov byte [ebp - 4], 0xe
call fcn.004ce794
lea ecx, [esi + 0x2b4]
mov byte [ebp - 4], 0xb
call fcn.00417798
lea ecx, [esi + 0x270]
mov byte [ebp - 4], 0xa
call fcn.00417798
lea ecx, [esi + 0x22c]
mov byte [ebp - 4], 9
call fcn.00417798
mov dword [ebp - 0x14], ebx
mov dword [ebx], edi
mov ecx, ebx
mov byte [ebp - 4], 0xf
call fcn.004ce794
lea ecx, [esi + 0x21c]
mov dword [ebp - 0x14], ecx
mov dword [ecx], edi
mov byte [ebp - 4], 0x10
call fcn.004ce794
lea ecx, [esi + 0x1b0]
mov byte [ebp - 4], 6
call fcn.0047bfc3
lea ecx, [esi + 0x6c]
mov byte [ebp - 4], 5
call fcn.0045cbed
lea ecx, [esi + 0x4c]
mov byte [ebp - 4], 4
call fcn.004c5593
lea ecx, [esi + 0x30]
mov byte [ebp - 4], 3
call fcn.004c5593
lea ecx, [esi + 0x14]
mov byte [ebp - 4], 2
call fcn.004c5593
lea ecx, [esi + 0xc]
mov byte [ebp - 4], 1
call fcn.004c756a
and byte [ebp - 4], 0
lea ecx, [esi + 8]
call fcn.004c756a
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x46e576
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x4e2edf
call fcn.004b0604
push ecx
push ecx
push ebx
push esi
xor esi, esi
push edi
mov dword [ebp - 0x14], esi
mov eax, dword [str.pRdR]
push 1
pop ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], ebx
mov eax, dword [ebp + 0xc]
mov byte [ebp - 4], 2
mov edi, dword [eax - 8]
cmp edi, esi
jle 0x46e5bd
mov eax, dword [ebp + 0xc]
lea ecx, [ebp - 0x10]
mov al, byte [esi + eax]
xor al, byte [ebp + 0x10]
push eax
call fcn.004c796d
inc esi
cmp esi, edi
jl 0x46e5a6
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x10]
push eax
call fcn.004c72df
mov dword [ebp - 0x14], ebx
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], bl
call fcn.004c756a
and byte [ebp - 4], 0
lea ecx, [ebp + 0xc]
call fcn.004c756a
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 0xc
Function at 0x46fc8f
Capabilities:
Delete directory

Disassembly:
mov eax, 0x4e3493
call fcn.004b0604
sub esp, 0x518
push ebx
push esi
mov esi, ecx
push edi
lea ecx, [ebp - 0x3ec]
call fcn.00416bf4
and dword [ebp - 4], 0
push 0xa
lea ecx, [ebp - 0x38]
call fcn.004c58e6
push 0x524a50
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 1
call fcn.004c75d8
lea edi, [esi + 0x10]
lea ecx, [ebp - 0x18]
push edi
mov byte [ebp - 4], 2
call fcn.004c72df
push 0x5c
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 3
call fcn.004c4360
lea ecx, [ebp - 0x7c]
call fcn.0040ce87
push ecx
add esi, 0x254
mov ecx, esp
mov dword [ebp - 0x14], esp
push esi
mov byte [ebp - 4], 4
call fcn.004c72df
lea ecx, [ebp - 0x3ec]
call fcn.00416cbe
push ecx
mov ecx, esp
mov dword [ebp - 0x14], esp
push edi
call fcn.004c72df
lea ecx, [ebp - 0x3ec]
call fcn.00416d11
lea eax, [ebp - 0x3c8]
mov dword [ebp - 0x3c4], 1
push eax
call fcn.0049ee60
mov esi, eax
test esi, esi
jne 0x46fdb3
mov ebx, dword [ebp - 0x37c]
lea eax, [ebp - 0x524]
xor edi, edi
mov dword [ebp - 0x3bc], eax
test ebx, ebx
jle 0x46fdb3
test esi, esi
jne 0x46fdb3
lea eax, [ebp - 0x3c8]
mov dword [ebp - 0x3c4], 2
push eax
call fcn.0049ee60
mov esi, eax
test esi, esi
jne 0x46fdae
lea eax, [ebp - 0x4fe]
lea ecx, [ebp - 0x10]
push eax
call fcn.004c76f3
push str._TUProj.dat
push dword [ebp - 0x10]
call fcn.004b10d5
pop ecx
test eax, eax
pop ecx
je 0x46fdae
lea eax, [ebp - 0x10]
lea ecx, [ebp - 0x38]
push eax
call fcn.004c5a8f
inc edi
cmp edi, ebx
jl 0x46fd60
mov eax, dword [0x524bc4]
lea ecx, [eax + 0x38]
call fcn.0041d237
mov esi, dword [ebp - 0x34]
test esi, esi
je 0x46fe2a
mov eax, esi
mov esi, dword [esi]
add eax, 8
lea ecx, [ebp - 0x10]
push eax
call fcn.004c76a3
lea eax, [ebp - 0x18]
push 0x511870
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.004c77ff
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 5
push ecx
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.004c7799
push eax
lea ecx, [ebp - 0x78]
mov byte [ebp - 4], 6
call fcn.004c76a3
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 5
call fcn.004c756a
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 4
call fcn.004c756a
lea ecx, [ebp - 0x7c]
call fcn.0040cf95
jmp 0x46fdc3
mov eax, dword [0x524bc4]
push dword [eax + 0x10]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
lea ecx, [ebp - 0x7c]
mov byte [ebp - 4], 3
call fcn.0040cf26
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 2
call fcn.004c756a
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 1
call fcn.004c756a
and byte [ebp - 4], 0
lea ecx, [ebp - 0x38]
call fcn.004c595a
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x3ec]
call fcn.00416c6d
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret
Function at 0x46fca0
Capabilities:
Delete directory

Disassembly:
mov eax, 0x4e3493
call fcn.004b0604
sub esp, 0x518
push ebx
push esi
mov esi, ecx
push edi
lea ecx, [ebp - 0x3ec]
call fcn.00416bf4
and dword [ebp - 4], 0
push 0xa
lea ecx, [ebp - 0x38]
call fcn.004c58e6
push 0x524a50
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 1
call fcn.004c75d8
lea edi, [esi + 0x10]
lea ecx, [ebp - 0x18]
push edi
mov byte [ebp - 4], 2
call fcn.004c72df
push 0x5c
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 3
call fcn.004c4360
lea ecx, [ebp - 0x7c]
call fcn.0040ce87
push ecx
add esi, 0x254
mov ecx, esp
mov dword [ebp - 0x14], esp
push esi
mov byte [ebp - 4], 4
call fcn.004c72df
lea ecx, [ebp - 0x3ec]
call fcn.00416cbe
push ecx
mov ecx, esp
mov dword [ebp - 0x14], esp
push edi
call fcn.004c72df
lea ecx, [ebp - 0x3ec]
call fcn.00416d11
lea eax, [ebp - 0x3c8]
mov dword [ebp - 0x3c4], 1
push eax
call fcn.0049ee60
mov esi, eax
test esi, esi
jne 0x46fdb3
mov ebx, dword [ebp - 0x37c]
lea eax, [ebp - 0x524]
xor edi, edi
mov dword [ebp - 0x3bc], eax
test ebx, ebx
jle 0x46fdb3
test esi, esi
jne 0x46fdb3
lea eax, [ebp - 0x3c8]
mov dword [ebp - 0x3c4], 2
push eax
call fcn.0049ee60
mov esi, eax
test esi, esi
jne 0x46fdae
lea eax, [ebp - 0x4fe]
lea ecx, [ebp - 0x10]
push eax
call fcn.004c76f3
push str._TUProj.dat
push dword [ebp - 0x10]
call fcn.004b10d5
pop ecx
test eax, eax
pop ecx
je 0x46fdae
lea eax, [ebp - 0x10]
lea ecx, [ebp - 0x38]
push eax
call fcn.004c5a8f
inc edi
cmp edi, ebx
jl 0x46fd60
mov eax, dword [0x524bc4]
lea ecx, [eax + 0x38]
call fcn.0041d237
mov esi, dword [ebp - 0x34]
test esi, esi
je 0x46fe2a
mov eax, esi
mov esi, dword [esi]
add eax, 8
lea ecx, [ebp - 0x10]
push eax
call fcn.004c76a3
lea eax, [ebp - 0x18]
push 0x511870
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.004c77ff
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 5
push ecx
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.004c7799
push eax
lea ecx, [ebp - 0x78]
mov byte [ebp - 4], 6
call fcn.004c76a3
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 5
call fcn.004c756a
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 4
call fcn.004c756a
lea ecx, [ebp - 0x7c]
call fcn.0040cf95
jmp 0x46fdc3
mov eax, dword [0x524bc4]
push dword [eax + 0x10]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
lea ecx, [ebp - 0x7c]
mov byte [ebp - 4], 3
call fcn.0040cf26
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 2
call fcn.004c756a
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 1
call fcn.004c756a
and byte [ebp - 4], 0
lea ecx, [ebp - 0x38]
call fcn.004c595a
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x3ec]
call fcn.00416c6d
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret
Function at 0x4701c4
Capabilities:
Check if file exists
Get common file path
Get file attributes

Disassembly:
mov eax, 0x4e354b
call fcn.004b0604
sub esp, 0x120
and dword [ebp - 0x28], 0
push ebx
push esi
push edi
push 0x524a50
lea ecx, [ebp - 0x10]
call fcn.004c75d8
push 1
lea ecx, [ebp - 0x1c]
pop ebx
mov dword [ebp - 4], ebx
call fcn.00413333
mov eax, dword [str.pRdR]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x18]
push ebx
push eax
push ecx
mov esi, str.NONE
mov ecx, esp
mov dword [ebp - 0x20], esp
push esi
mov byte [ebp - 4], 3
call fcn.004c75d8
push ecx
mov byte [ebp - 4], 4
mov ecx, esp
mov dword [ebp - 0x24], esp
push str.InstallerLocation
call fcn.004c75d8
push ecx
mov byte [ebp - 4], 5
mov ecx, esp
mov dword [ebp - 0x14], esp
push str.SoftwareMicrosoftWindowsCurrentVersionInstaller
call fcn.004c75d8
push 3
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 3
call fcn.00413a07
test eax, eax
mov edi, 0x511870
je 0x4702bb
push esi
push dword [ebp - 0x18]
call fcn.004b0c2e
pop ecx
test eax, eax
pop ecx
je 0x4702bb
mov eax, dword [ebp - 0x18]
cmp dword [eax - 8], 0
je 0x4702bb
push edi
lea ecx, [ebp - 0x18]
call fcn.004c430d
lea eax, [ebp - 0x18]
lea ecx, [ebp - 0x14]
push eax
call fcn.004c72df
push 0x514208
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 6
call fcn.004c7946
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x4702af
lea eax, [ebp - 0x18]
lea ecx, [ebp - 0x10]
push eax
call fcn.004c76a3
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 3
call fcn.004c756a
mov eax, dword [ebp - 0x10]
mov esi, 0x104
cmp dword [eax - 8], 0
jne 0x470358
push str.msi.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
test eax, eax
mov dword [ebp - 0x20], eax
je 0x470358
lea ecx, [ebp - 0x12c]
push esi
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jbe 0x47034f
lea eax, [ebp - 0x12c]
lea ecx, [ebp - 0x14]
push eax
call fcn.004c75d8
push 0x5c
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 7
call fcn.004c3f52
cmp eax, 0xffffffff
je 0x470343
push eax
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp - 0x14]
call fcn.004c3eda
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 8
call fcn.004c76a3
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 7
call fcn.004c756a
push edi
lea ecx, [ebp - 0x10]
call fcn.004c430d
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 3
call fcn.004c756a
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [ebp - 0x10]
cmp dword [eax - 8], 0
jne 0x470387
lea eax, [ebp - 0x12c]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea eax, [ebp - 0x12c]
lea ecx, [ebp - 0x10]
push eax
call fcn.004c76f3
push edi
lea ecx, [ebp - 0x10]
call fcn.004c430d
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x10]
push eax
call fcn.004c72df
mov dword [ebp - 0x28], ebx
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 2
call fcn.004c756a
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], bl
call fcn.00413358
and byte [ebp - 4], 0
lea ecx, [ebp - 0x10]
call fcn.004c756a
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret
Function at 0x47313c
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, 0x4e3cc7
call fcn.004b0604
sub esp, 0x10
push ebx
xor ebx, ebx
push esi
push edi
mov dword [ebp - 0x18], ebx
lea eax, [ebp + 0xc]
lea ecx, [ebp - 0x14]
push eax
mov dword [ebp - 4], 2
call fcn.004c72df
push 0x511870
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 3
call fcn.004c430d
mov eax, dword [str.pRdR]
mov dword [ebp - 0x10], eax
push ebx
mov edi, str._s_s__d
push dword [ebp + 0x10]
lea eax, [ebp - 0x10]
mov byte [ebp - 4], 4
push dword [ebp + 0xc]
push edi
push eax
call fcn.004c42fa
mov esi, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
add esp, 0x14
push dword [ebp - 0x10]
call esi
cmp eax, 0xffffffff
je 0x4731c4
inc ebx
lea eax, [ebp - 0x10]
push ebx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push edi
push eax
call fcn.004c42fa
add esp, 0x14
push dword [ebp - 0x10]
jmp 0x4731a3
lea eax, [ebp - 0x10]
lea ecx, [ebp - 0x14]
push eax
call fcn.004c76a3
push ecx
lea eax, [ebp - 0x14]
mov ecx, esp
mov dword [ebp - 0x1c], esp
push eax
call fcn.004c72df
call fcn.0040c99a
pop ecx
lea eax, [ebp - 0x14]
mov ecx, dword [ebp + 8]
push eax
call fcn.004c72df
mov dword [ebp - 0x18], 1
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 3
call fcn.004c756a
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 2
call fcn.004c756a
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 1
call fcn.004c756a
and byte [ebp - 4], 0
lea ecx, [ebp + 0x10]
call fcn.004c756a
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 0xc
Function at 0x475b0a
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, 0x4e42c0
call fcn.004b0604
push ecx
push ecx
mov eax, dword [str.pRdR]
push ebx
push esi
mov esi, ecx
mov dword [ebp - 0x10], eax
mov eax, dword [0x524bc4]
xor ebx, ebx
mov dword [ebp - 4], ebx
cmp dword [eax + 0x114], ebx
je 0x475bdd
add eax, 0x118
lea ecx, [ebp - 0x10]
push eax
call fcn.004c76a3
push ecx
lea eax, [ebp - 0x10]
mov ecx, esp
mov dword [ebp - 0x14], esp
push eax
call fcn.004c72df
lea eax, [ebp - 0x14]
push eax
call fcn.004813af
pop ecx
pop ecx
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 1
call fcn.004c76a3
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], bl
call fcn.004c756a
mov eax, dword [0x524bc4]
push ebx
mov eax, dword [eax + 0x118]
push eax
call fcn.004b2235
pop ecx
cmp eax, 0xffffffff
pop ecx
jne 0x475bdd
mov eax, dword [0x524bc4]
lea ecx, [ebp - 0x10]
add eax, 0x10
push eax
call fcn.004c76a3
push 0x5c
lea ecx, [ebp - 0x10]
call fcn.004c4360
mov eax, dword [0x524bc4]
add eax, 0x118
push eax
lea eax, [ebp - 0x14]
push 0x511870
push eax
call fcn.004c7873
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 2
call fcn.004c7982
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], bl
call fcn.004c756a
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x475c0d
call fcn.004d4df1
mov eax, dword [eax + 8]
push ebx
push dword [ebp - 0x10]
push eax
call dword [sym.imp.SHELL32.dll_ExtractIconA]
cmp eax, ebx
mov dword [esi + 0xbc], eax
je 0x475c0d
cmp eax, 1
jne 0x475c24
call fcn.004d4df1
mov eax, dword [eax + 8]
push 0x73
push eax
call dword [sym.imp.USER32.dll_LoadIconA]
mov dword [esi + 0xbc], eax
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.004c756a
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret
Function at 0x47b5bb
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, 0x4e4bd7
call fcn.004b0604
sub esp, 0x1c
push ebx
push esi
push edi
mov esi, ecx
xor edi, edi
push 0x524a50
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x28], edi
call fcn.004c75d8
push 1
lea ecx, [ebp - 0x1c]
pop ebx
mov dword [ebp - 0x24], edi
push str._DATFILE
mov dword [ebp - 4], ebx
call fcn.004c75d8
push 0x515880
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 2
call fcn.004c7946
push edi
push ecx
lea eax, [ebp - 0x1c]
mov ecx, esp
mov dword [ebp - 0x14], esp
push eax
call fcn.004c72df
lea eax, [ebp - 0x20]
mov ecx, esi
push eax
call fcn.0047b839
mov eax, dword [ebp - 0x20]
mov esi, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp dword [eax - 8], edi
je 0x47b708
mov ecx, dword [str.pRdR]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp - 0x1c]
mov edx, dword [eax - 8]
mov byte [ebp - 4], 4
cmp edx, dword [ecx - 8]
jle 0x47b6fc
mov eax, edx
sub eax, dword [ecx - 8]
lea ecx, [ebp - 0x20]
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.004c3e5e
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 5
call fcn.004c76a3
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 4
call fcn.004c756a
push dword [ebp - 0x14]
call esi
cmp eax, 0xffffffff
je 0x47b695
lea eax, [ebp - 0x14]
lea ecx, [ebp - 0x18]
push eax
call fcn.004c76a3
mov dword [ebp - 0x24], ebx
jmp 0x47b6fc
mov eax, dword [str.pRdR]
mov dword [ebp - 0x10], eax
mov eax, dword [0x524bc4]
lea ecx, [ebp - 0x10]
add eax, 0xc
mov byte [ebp - 4], 6
push eax
call fcn.004c76a3
mov edi, 0x511870
lea ecx, [ebp - 0x10]
push edi
call fcn.004c430d
push edi
lea ecx, [ebp - 0x10]
call fcn.004c7946
lea eax, [ebp - 0x14]
lea ecx, [ebp - 0x10]
push eax
call fcn.004c7982
push dword [ebp - 0x10]
call esi
cmp eax, 0xffffffff
je 0x47b6ee
lea eax, [ebp - 0x10]
lea ecx, [ebp - 0x18]
push eax
call fcn.004c76a3
mov dword [ebp - 0x24], ebx
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 4
call fcn.004c756a
xor edi, edi
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 3
call fcn.004c756a
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 2
call fcn.004c756a
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], bl
call fcn.004c756a
cmp dword [ebp - 0x24], edi
jne 0x47b7a8
mov eax, dword [str.pRdR]
mov dword [ebp - 0x10], eax
mov eax, dword [0x524bc4]
lea ecx, [ebp - 0x10]
add eax, 8
mov byte [ebp - 4], 7
push eax
call fcn.004c76a3
push 0x2e
lea ecx, [ebp - 0x10]
call fcn.004c3f52
cmp eax, 0xffffffff
je 0x47b79d
push eax
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp - 0x10]
call fcn.004c3eda
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 8
call fcn.004c76a3
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 7
call fcn.004c756a
push str..dat
lea ecx, [ebp - 0x10]
call fcn.004c7946
push dword [ebp - 0x10]
call esi
cmp eax, 0xffffffff
je 0x47b79d
lea eax, [ebp - 0x10]
lea ecx, [ebp - 0x18]
push eax
call fcn.004c76a3
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], bl
call fcn.004c756a
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x18]
push eax
call fcn.004c72df
mov dword [ebp - 0x28], ebx
and byte [ebp - 4], 0
lea ecx, [ebp - 0x18]
call fcn.004c756a
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 4
Function at 0x47ba0b
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, 0x4e4c73
call fcn.004b0604
sub esp, 0x10
push ebx
xor ebx, ebx
push esi
push edi
mov dword [ebp - 0x18], ebx
lea eax, [ebp + 0xc]
lea ecx, [ebp - 0x14]
push eax
mov dword [ebp - 4], 2
call fcn.004c72df
push 0x511870
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 3
call fcn.004c430d
mov eax, dword [str.pRdR]
mov dword [ebp - 0x10], eax
push ebx
mov edi, str._s_s__d
push dword [ebp + 0x10]
lea eax, [ebp - 0x10]
mov byte [ebp - 4], 4
push dword [ebp + 0xc]
push edi
push eax
call fcn.004c42fa
mov esi, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
add esp, 0x14
push dword [ebp - 0x10]
call esi
cmp eax, 0xffffffff
je 0x47ba93
inc ebx
lea eax, [ebp - 0x10]
push ebx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push edi
push eax
call fcn.004c42fa
add esp, 0x14
push dword [ebp - 0x10]
jmp 0x47ba72
lea eax, [ebp - 0x10]
lea ecx, [ebp - 0x14]
push eax
call fcn.004c76a3
push ecx
lea eax, [ebp - 0x14]
mov ecx, esp
mov dword [ebp - 0x1c], esp
push eax
call fcn.004c72df
call fcn.0040c99a
pop ecx
lea eax, [ebp - 0x14]
mov ecx, dword [ebp + 8]
push eax
call fcn.004c72df
mov dword [ebp - 0x18], 1
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 3
call fcn.004c756a
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 2
call fcn.004c756a
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 1
call fcn.004c756a
and byte [ebp - 4], 0
lea ecx, [ebp + 0x10]
call fcn.004c756a
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 0xc