joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40fe87
Capabilities:
Get common file path

Disassembly:
push 0x22c
mov eax, 0x564bee
call fcn.0053cea9
xor esi, esi
inc esi
push esi
push 0x23
xor eax, eax
lea ecx, [ebp - 0x218]
push ecx
mov dword [ebp - 4], eax
push eax
mov dword [ebp - 0x238], edi
mov dword [ebp - 0x230], eax
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea eax, [ebp - 0x218]
push eax
mov ecx, edi
call fcn.0040235d
and dword [ebp - 4], 0
mov eax, dword [ebx + 8]
sub eax, 0x10
push eax
mov dword [ebp - 0x230], esi
call fcn.00402431
add eax, 0x10
mov dword [ebp - 0x21c], eax
mov dword [ebp - 4], esi
mov dword [esp], 0x598d00
push str.Model
lea ecx, [ebp - 0x21c]
call fcn.00410649
push str.ScanSmart.ini
lea ecx, [ebp - 0x224]
call fcn.0040eb20
push str.epsonEpson_Scan_2Models_
lea ecx, [ebp - 0x220]
mov byte [ebp - 4], 2
call fcn.0040eb20
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x22c]
push edi
push eax
mov byte [ebp - 4], 3
call fcn.004018e7
lea ecx, [ebp - 0x21c]
push ecx
push eax
lea eax, [ebp - 0x234]
push eax
mov byte [ebp - 4], 4
call fcn.004018e7
lea ecx, [ebp - 0x224]
push ecx
push eax
lea eax, [ebp - 0x228]
push eax
mov byte [ebp - 4], 5
call fcn.004018e7
add esp, 0x24
push eax
mov ecx, edi
mov byte [ebp - 4], 6
call fcn.0040248f
mov ecx, dword [ebp - 0x228]
add ecx, 0xfffffff0
call fcn.0040274b
mov ecx, dword [ebp - 0x234]
add ecx, 0xfffffff0
call fcn.0040274b
mov ecx, dword [ebp - 0x22c]
add ecx, 0xfffffff0
call fcn.0040274b
mov ecx, dword [ebp - 0x220]
add ecx, 0xfffffff0
call fcn.0040274b
mov ecx, dword [ebp - 0x224]
add ecx, 0xfffffff0
call fcn.0040274b
mov ecx, dword [ebp - 0x21c]
add ecx, 0xfffffff0
call fcn.0040274b
mov eax, edi
call fcn.0053cf2c
ret
Function at 0x40ffd9
Capabilities:
Check if file exists
Check os version
Read .ini file

Disassembly:
push 0x128
mov eax, 0x566cd7
call fcn.0053cea9
mov edi, 0x114
push edi
xor esi, esi
lea eax, [ebp - 0x124]
push esi
push eax
mov ebx, ecx
call fcn.00538530
add esp, 0xc
lea eax, [ebp - 0x124]
push eax
mov dword [ebp - 0x124], edi
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x120], 7
jb 0x410025
xor al, al
jmp 0x410121
cmp dword [ebp - 0x120], 6
jne 0x410037
cmp dword [ebp - 0x11c], 1
jae 0x41001e
lea edi, [ebp - 0x128]
call fcn.0040fe87
push dword [eax]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov ecx, dword [ebp - 0x128]
add ecx, 0xfffffff0
mov edi, eax
call fcn.0040274b
cmp edi, esi
je 0x410115
lea edi, [ebp - 0x134]
call fcn.0040fe87
mov edi, eax
lea eax, [ebp - 0x128]
push eax
push ebx
mov dword [ebp - 4], esi
call fcn.0041014c
mov edi, dword [edi]
mov eax, dword [eax]
push edi
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
push str.buttonNumbers
push eax
call esi
mov ecx, dword [ebp - 0x128]
add ecx, 0xfffffff0
mov edi, eax
call fcn.0040274b
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x134]
add ecx, 0xfffffff0
call fcn.0040274b
test edi, edi
jle 0x410115
lea edi, [ebp - 0x130]
call fcn.0040fe87
mov edi, eax
lea eax, [ebp - 0x12c]
push eax
push ebx
mov dword [ebp - 4], 1
call fcn.0041014c
mov edi, dword [edi]
mov eax, dword [eax]
push edi
push 0
push str.category
push eax
call esi
mov ecx, dword [ebp - 0x12c]
add ecx, 0xfffffff0
mov esi, eax
call fcn.0040274b
mov ecx, dword [ebp - 0x130]
add ecx, 0xfffffff0
call fcn.0040274b
cmp esi, 0x15
je 0x410111
cmp esi, 0x16
jne 0x410115
mov al, 1
jmp 0x410121
mov eax, ebx
call fcn.00410127
test al, al
setne al
call fcn.0053cf2c
ret

Function at 0x41033a
Capabilities:
Read .ini file

Disassembly:
push 0x218
mov eax, 0x567a52
call fcn.0053cea9
and dword [ebp - 0x224], 0
mov ebx, ecx
mov esi, edx
call fcn.0040ffd9
test al, al
je 0x4103ca
lea edi, [ebp - 0x21c]
call fcn.0040fe87
mov edi, eax
and dword [ebp - 4], 0
lea eax, [ebp - 0x220]
push eax
push ebx
call fcn.0041014c
mov edi, dword [edi]
mov eax, dword [eax]
push edi
push 0
push str.buttonNumbers
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov ecx, dword [ebp - 0x220]
add ecx, 0xfffffff0
mov edi, eax
call fcn.0040274b
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x21c]
add ecx, 0xfffffff0
call fcn.0040274b
mov ecx, esi
cmp edi, 1
jne 0x4103c3
push str.ModelMF0A
call fcn.0040eb20
jmp 0x410428
push str.ModelMF16
jmp 0x4103bc
cmp byte [ebx + 0x10], 0
je 0x4103da
lea eax, [ebx + 0x14]
call fcn.004018c9
jmp 0x410428
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x216]
push eax
call fcn.00538530
add esp, 0xc
push dword [ebx + 0xc]
lea eax, [ebp - 0x218]
push 0x104
push eax
push 0x598e70
push str.DeviceSettingAlias
push dword [ebx + 8]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [ebp - 0x218]
push eax
mov ecx, esi
call fcn.0040235d
mov eax, esi
call fcn.0053cf2c
ret
Function at 0x4105ad
Capabilities:
Read .ini file

Disassembly:
push 8
mov eax, 0x567a82
call fcn.0053ce40
mov ebx, ecx
call fcn.0040ffd9
test al, al
je 0x41062e
mov eax, dword [ebx + 4]
cmp eax, 0x196
je 0x410629
cmp eax, 0x20d
je 0x410629
cmp eax, 0x216
je 0x410629
lea edi, [ebp - 0x14]
call fcn.0040fe87
mov esi, eax
and dword [ebp - 4], 0
lea eax, [ebp - 0x10]
push eax
push ebx
call fcn.0041014c
mov esi, dword [esi]
mov eax, dword [eax]
push esi
push 0
push str.adfOrigin
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov esi, eax
call fcn.0040274b
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
call fcn.0040274b
xor eax, eax
cmp esi, 1
sete al
jmp 0x410643
xor eax, eax
inc eax
jmp 0x410643
mov eax, dword [ebx + 0xc]
mov ebx, dword [ebx + 8]
push eax
push 1
push str.ADFOrigin
push ebx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
call fcn.0053cf18
ret
Function at 0x411f71
Capabilities:
Get common file path
Get program files directory

Disassembly:
push 0x214
mov eax, 0x563724
call fcn.0053cea9
xor esi, esi
push esi
push 0x26
lea eax, [ebp - 0x218]
push eax
mov dword [ebp - 4], esi
push esi
mov dword [ebp - 0x220], edi
mov dword [ebp - 0x21c], esi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea eax, [ebp - 0x218]
push eax
mov ecx, edi
call fcn.0040235d
mov dword [ebp - 4], esi
push 0x59adfc
mov ecx, edi
mov dword [ebp - 0x21c], 1
call fcn.0040b0b8
mov eax, edi
call fcn.0053cf2c
ret

Function at 0x411fd1
Capabilities:
Get common file path
Get program files directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x5c9030]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
push eax
push 0x26
lea ecx, [ebp - 0x20c]
push ecx
push eax
mov dword [ebp - 0x210], eax
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea eax, [ebp - 0x20c]
push eax
mov ecx, esi
call fcn.0040235d
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov eax, esi
call fcn.0053792d
leave
ret

Function at 0x412019
Capabilities:
Get common file path

Disassembly:
push 0x210
mov eax, 0x564b1f
call fcn.0053cea9
xor esi, esi
mov dword [ebp - 0x21c], esi
call fcn.00411f4b
mov eax, dword [eax + 4]
cmp dword [eax - 0xc], esi
jne 0x4120a3
push 1
push 0x1a
lea eax, [ebp - 0x218]
push eax
push esi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x21c]
call fcn.0040235d
mov dword [ebp - 4], esi
mov esi, str.EPSONEvent_ManagerMappingTable.ini
push esi
call fcn.00537ff9
pop ecx
push eax
push esi
lea ecx, [ebp - 0x21c]
call fcn.0040b0de
call fcn.00411f4b
lea ecx, [ebp - 0x21c]
push ecx
lea ecx, [eax + 4]
call fcn.0040248f
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x21c]
add ecx, 0xfffffff0
call fcn.0040274b
call fcn.00411f4b
mov eax, dword [eax + 4]
sub eax, 0x10
push eax
call fcn.00402431
add eax, 0x10
mov dword [edi], eax
pop ecx
mov eax, edi
call fcn.0053cf2c
ret
Function at 0x412182
Capabilities:
Create directory
Get common file path

Disassembly:
push 0x214
mov eax, 0x564aec
call fcn.0053cea9
mov esi, ecx
xor ebx, ebx
mov dword [ebp - 0x220], esi
mov dword [ebp - 0x21c], ebx
call fcn.00411f4b
mov eax, dword [eax + 0xc]
cmp dword [eax - 0xc], ebx
jne 0x41224f
push 1
push 0x1a
lea eax, [ebp - 0x218]
push eax
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x21c]
call fcn.0040235d
mov esi, str.Epson
push esi
mov dword [ebp - 4], ebx
call fcn.00537ff9
pop ecx
push eax
push esi
lea ecx, [ebp - 0x21c]
call fcn.0040b0de
mov esi, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push ebx
push dword [ebp - 0x21c]
call esi
mov edi, str.Event_Manager_
push edi
call fcn.00537ff9
pop ecx
push eax
push edi
lea ecx, [ebp - 0x21c]
call fcn.0040b0de
push ebx
push dword [ebp - 0x21c]
call esi
call fcn.00411f4b
lea ecx, [ebp - 0x21c]
push ecx
lea ecx, [eax + 0xc]
call fcn.0040248f
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x21c]
add ecx, 0xfffffff0
call fcn.0040274b
mov esi, dword [ebp - 0x220]
call fcn.00411f4b
mov eax, dword [eax + 0xc]
sub eax, 0x10
push eax
call fcn.00402431
add eax, 0x10
mov dword [esi], eax
pop ecx
mov eax, esi
call fcn.0053cf2c
ret

Function at 0x41236e
Capabilities:
Get common file path

Disassembly:
push 0x218
mov eax, 0x564ab9
call fcn.0053cea9
and dword [ebp - 4], 0
and dword [ebp - 0x220], 0
mov dword [ebp - 0x224], esi
call fcn.00437a9e
push eax
mov ecx, esi
call fcn.00402723
and dword [ebp - 4], 0
xor edi, edi
inc edi
push edi
push 0x1a
lea eax, [ebp - 0x218]
push eax
push 0
mov dword [ebp - 0x220], edi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x21c]
call fcn.0040235d
lea eax, [ebp - 0x218]
push eax
mov ecx, esi
mov dword [ebp - 4], edi
call fcn.00402337
push 0x599930
mov ecx, esi
call fcn.0040b0b8
push 0x59a44c
mov ecx, esi
call fcn.0040b0b8
push str.Event_ManagerScanModule.ini
mov ecx, esi
call fcn.0040b0b8
mov ecx, dword [ebp - 0x21c]
add ecx, 0xfffffff0
call fcn.0040274b
mov eax, esi
call fcn.0053cf2c
ret
Function at 0x4147a8
Capabilities:
Read .ini file

Disassembly:
push 0x644
mov eax, 0x566987
call fcn.0053cea9
mov ebx, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov esi, ecx
push dword [esi + 8]
lea eax, [ebp - 0x628]
push 0x104
push eax
mov edi, 0x598e70
push edi
push 0x59b19c
push str.Event_Launch_Win
call ebx
call fcn.00437a9e
push eax
lea ecx, [ebp - 0x634]
call fcn.00402723
and dword [ebp - 4], 0
lea eax, [ebp - 0x628]
push eax
lea eax, [ebp - 0x634]
push 0x599470
push eax
call fcn.0040a0e9
mov eax, dword [ebp - 0x634]
pop ecx
pop ecx
add eax, 0xfffffff0
mov dword [ebp - 0x630], esp
mov dword [ebp - 0x62c], esp
push eax
mov dword [ebp - 0x630], eax
call fcn.00402431
pop ecx
mov ecx, dword [ebp - 0x62c]
add eax, 0x10
mov dword [ecx], eax
lea eax, [esi + 0x40]
push eax
call fcn.00435bb2
pop ecx
pop ecx
test eax, eax
jne 0x414975
push dword [esi + 8]
lea eax, [ebp - 0x218]
push 0x104
push eax
push edi
push str.AppPath
push str.Event_Launch_Win
call ebx
cmp word [ebp - 0x218], 0
je 0x414975
lea eax, [ebp - 0x218]
push eax
lea ecx, [esi + 0x40]
call fcn.00402337
lea eax, [ebp - 0x218]
lea ecx, [esi + 0x44]
push eax
call fcn.00402337
lea ecx, [ebp - 0x650]
call fcn.00439b5e
mov byte [ebp - 4], 1
mov eax, dword [esi + 0x44]
push 0
push eax
lea ecx, [ebp - 0x650]
call fcn.00439c05
lea ecx, [ebp - 0x650]
test eax, eax
jne 0x41495a
call fcn.004396ca
push edi
lea ecx, [esi + 0x44]
call fcn.00402337
cmp dword [esi + 0x38], 0x384
jne 0x4148e0
or dword [esi + 0x38], 0xffffffff
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x420], ax
lea eax, [ebp - 0x41e]
push eax
call fcn.00538530
add esp, 0xc
push dword [esi + 8]
lea eax, [ebp - 0x420]
push 0x104
push eax
push edi
push str.ProjectAppName
push str.Event_Launch_Win
call ebx
push ecx
lea eax, [ebp - 0x420]
mov ecx, esp
mov dword [ebp - 0x62c], esp
push eax
call fcn.0040235d
mov ecx, esi
call fcn.00413a73
lea ecx, [ebp - 0x650]
mov byte [ebp - 4], 0
call fcn.00439b90
xor esi, esi
mov ecx, dword [ebp - 0x630]
call fcn.0040274b
mov eax, esi
call fcn.0053cf2c
ret
call fcn.004396ca
lea ecx, [ebp - 0x650]
mov dword [esi + 0x54], 1
mov byte [ebp - 4], 0
call fcn.00439b90
push dword [esi + 8]
lea eax, [ebp - 0x218]
push 0x104
push eax
push edi
push str.Option
push str.Event_Launch_Win
call ebx
lea eax, [ebp - 0x218]
push eax
lea edi, [esi + 0x4c]
push 0x599470
push edi
call fcn.0040a0e9
mov eax, dword [edi]
sub eax, 0x10
push eax
call fcn.00402431
lea edi, [eax + 0x10]
add esp, 0x10
cmp dword [edi - 0xc], 0
mov dword [ebp - 0x62c], edi
je 0x4149fd
push str._File
lea ecx, [ebp - 0x62c]
call fcn.004107c5
test eax, eax
jne 0x4149e0
mov dword [esi + 0x48], 1
jmp 0x4149fd
push str._Folder
lea ecx, [ebp - 0x62c]
call fcn.004107c5
neg eax
sbb eax, eax
and eax, 2
add eax, 2
mov dword [esi + 0x48], eax
lea ecx, [edi - 0x10]
call fcn.0040274b
xor esi, esi
inc esi
jmp 0x414947
Function at 0x414a0d
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x5c9030]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
mov eax, dword [esi + 0x24]
push edi
cmp eax, 2
jne 0x414ad1
push dword [esi + 8]
push 0xffffffffffffffff
push str.ActionID
push str.Launch
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov dword [esi + 0x38], eax
cmp eax, 0x384
jne 0x414a60
mov ecx, esi
call fcn.004147a8
test eax, eax
jne 0x414a6e
jmp 0x414b74
cmp eax, 0xffffffff
je 0x414a6e
mov ecx, esi
call fcn.004142e0
jmp 0x414a57
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
call fcn.00538530
add esp, 0xc
push dword [esi + 8]
lea eax, [ebp - 0x20c]
push 0x104
push eax
push 0x598e70
push str.ProjectAppName
push str.Event_Launch_Win
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
push ecx
lea eax, [ebp - 0x20c]
mov ecx, esp
mov dword [ebp - 0x210], esp
push eax
call fcn.0040235d
mov ecx, esi
call fcn.00413a73
jmp 0x414b71
cmp eax, 3
jl 0x414b71
push dword [esi + 8]
push 0xffffffffffffffff
push str.ActionID
push str.Launch
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov dword [esi + 0x38], eax
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
call fcn.00538530
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
add esp, 0xc
push dword [esi + 8]
lea eax, [ebp - 0x20c]
push 0x104
push eax
push 0x598e70
push str.ExtActionUid
mov ebx, str.Event_Launch_Win
push ebx
call edi
lea eax, [ebp - 0x20c]
push eax
lea ecx, [esi + 0x58]
call fcn.00402337
push dword [esi + 8]
lea eax, [ebp - 0x20c]
push 0x104
push eax
push 0x598e70
push str.ExtActionTypeId
push ebx
call edi
lea eax, [ebp - 0x20c]
push eax
lea ecx, [esi + 0x5c]
call fcn.00402337
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0053792d
leave
ret
Function at 0x4162b3
Capabilities:
Create thread

Disassembly:
push 8
mov eax, 0x560251
call fcn.0053ce40
mov esi, ecx
xor ebx, ebx
mov dword [ebp - 4], ebx
mov eax, dword [ebp + 8]
cmp dword [eax - 0xc], ebx
je 0x41635e
lea eax, [ebp + 8]
lea ecx, [esi + 8]
push eax
call fcn.0040248f
push dword [ebp + 8]
call fcn.00435a0a
test eax, eax
mov eax, dword [ebp + 8]
pop ecx
je 0x41635e
cmp dword [eax - 0xc], ebx
je 0x41635e
push 1
push ecx
add eax, 0xfffffff0
mov dword [ebp - 0x14], esp
mov edi, esp
push eax
call fcn.00402431
add eax, 0x10
mov dword [edi], eax
pop ecx
mov edi, esi
call fcn.004163e4
mov dword [esi + 0x10], eax
call fcn.00416370
mov edi, dword [sym.imp.KERNEL32.dll_CreateEventW]
push ebx
push ebx
push 1
push ebx
call edi
push ebx
push ebx
push ebx
push ebx
mov dword [esi + 0x18], eax
call edi
mov dword [esi + 0x1c], eax
mov eax, dword [esi + 0xc]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push eax
push ebx
push esi
push 0x416117
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
mov dword [esi + 0x14], eax
call fcn.0040274b
xor eax, eax
inc eax
jmp 0x416368
lea ecx, [eax - 0x10]
call fcn.0040274b
xor eax, eax
call fcn.0053cf18
ret 4
Function at 0x4163e4
Capabilities:
Enumerate files on windows

Disassembly:
push 0x264
mov eax, 0x5648d9
call fcn.0053cea9
lea eax, [edi + 0xbc]
xor esi, esi
push eax
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [ebp - 0x26c], esi
cmp dword [ebp + 0xc], esi
je 0x416418
lea ecx, [edi + 0x24]
call fcn.00438a81
push 1
lea eax, [ebp - 0x268]
push eax
lea ecx, [ebp + 8]
call fcn.0040ea6c
mov eax, dword [eax]
mov ecx, dword [eax - 0xc]
cmp ecx, 1
jne 0x41644b
cmp ecx, esi
jge 0x416441
push 0x80070057
call fcn.00402709
cmp word [eax], 0x5c
jne 0x41644b
xor bl, bl
jmp 0x41644d
mov bl, 1
mov ecx, dword [ebp - 0x268]
add ecx, 0xfffffff0
call fcn.0040274b
test bl, bl
je 0x416469
push 0x5c
lea ecx, [ebp + 8]
call fcn.00416bb0
push 0x59b5d4
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x270]
push eax
call fcn.0040193e
mov eax, dword [eax]
add esp, 0xc
lea ecx, [ebp - 0x264]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ecx, dword [ebp - 0x270]
add ecx, 0xfffffff0
mov esi, eax
call fcn.0040274b
cmp esi, 0xffffffff
je 0x416596
test byte [ebp - 0x264], 0x12
jne 0x416579
lea eax, [ebp - 0x238]
push eax
lea ecx, [ebp - 0x268]
call fcn.0040235d
push str.desktop.ini
lea ecx, [ebp - 0x268]
mov byte [ebp - 4], 1
call fcn.004107c5
test eax, eax
je 0x416567
push str.Thumbs.db
lea ecx, [ebp - 0x268]
call fcn.004107c5
test eax, eax
je 0x416567
push str.__.___
lea ecx, [ebp - 0x268]
call fcn.004107c5
test eax, eax
je 0x416567
push str.________.___
lea ecx, [ebp - 0x268]
call fcn.004107c5
test eax, eax
je 0x416567
push str..
lea ecx, [ebp - 0x268]
call fcn.004107c5
test eax, eax
je 0x416567
push 0
push str.fio12_
lea ecx, [ebp - 0x268]
call fcn.0040ea0d
cmp eax, 0xffffffff
jne 0x416567
inc dword [ebp - 0x26c]
cmp dword [ebp + 0xc], 0
je 0x416567
lea eax, [ebp - 0x268]
push eax
lea ecx, [edi + 0x24]
call fcn.00438be4
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x268]
add ecx, 0xfffffff0
call fcn.0040274b
lea eax, [ebp - 0x264]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x4164aa
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
lea ecx, [edi + 0xb4]
mov eax, dword [ecx]
call dword [eax + 0x14]
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.0040274b
mov eax, dword [ebp - 0x26c]
call fcn.0053cf2c
ret 8
Function at 0x4165ba
Capabilities:
Enumerate files on windows

Disassembly:
push 0x470
mov eax, 0x56489e
call fcn.0053cea9
mov esi, ecx
push 1
lea eax, [ebp - 0x474]
xor ebx, ebx
push eax
lea ecx, [ebp + 8]
mov dword [ebp - 4], ebx
call fcn.0040ea6c
mov eax, dword [eax]
mov ecx, dword [eax - 0xc]
cmp ecx, 1
jne 0x416605
cmp ecx, ebx
jge 0x4165f9
push 0x80070057
call fcn.00402709
cmp word [eax], 0x5c
mov byte [ebp - 0x46d], bl
je 0x41660c
mov byte [ebp - 0x46d], 1
mov ecx, dword [ebp - 0x474]
add ecx, 0xfffffff0
call fcn.0040274b
cmp byte [ebp - 0x46d], bl
je 0x41662c
push 0x5c
lea ecx, [ebp + 8]
call fcn.00416bb0
push 0x59b5d4
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x47c]
push eax
call fcn.0040193e
mov eax, dword [eax]
add esp, 0xc
lea ecx, [ebp - 0x468]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ecx, dword [ebp - 0x47c]
add ecx, 0xfffffff0
mov dword [ebp - 0x478], eax
call fcn.0040274b
cmp dword [ebp - 0x478], 0xffffffff
je 0x416809
test byte [ebp - 0x468], 0x12
jne 0x4167e2
lea eax, [ebp - 0x43c]
push eax
lea ecx, [ebp - 0x46c]
call fcn.0040235d
push str.desktop.ini
lea ecx, [ebp - 0x46c]
mov byte [ebp - 4], 1
call fcn.004107c5
test eax, eax
je 0x4167d1
push str.Thumbs.db
lea ecx, [ebp - 0x46c]
call fcn.004107c5
test eax, eax
je 0x4167d1
push str.__.___
lea ecx, [ebp - 0x46c]
call fcn.004107c5
test eax, eax
je 0x4167d1
push str.________.___
lea ecx, [ebp - 0x46c]
call fcn.004107c5
test eax, eax
je 0x4167d1
push str..
lea ecx, [ebp - 0x46c]
call fcn.004107c5
test eax, eax
je 0x4167d1
push ebx
push str.fio12_
lea ecx, [ebp - 0x46c]
call fcn.0040ea0d
cmp eax, 0xffffffff
jne 0x4167d1
lea eax, [esi + 0xbc]
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push ebx
push dword [ebp - 0x46c]
lea ecx, [esi + 0x24]
call fcn.004389da
test eax, eax
jne 0x4167c6
push 0x206
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x216]
push ebx
push eax
call fcn.00538530
add esp, 0xc
lea eax, [ebp - 0x46c]
push eax
lea ecx, [esi + 0x24]
call fcn.00438be4
push dword [ebp - 0x46c]
lea eax, [ebp - 0x218]
push dword [ebp + 8]
push 0x59a28c
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x474]
call fcn.0040235d
lea edi, [ebp - 0x474]
mov byte [ebp - 4], 2
call fcn.0041681e
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x474]
add ecx, 0xfffffff0
call fcn.0040274b
lea ecx, [esi + 0xb4]
mov eax, dword [ecx]
call dword [eax + 0x14]
mov byte [ebp - 4], bl
mov ecx, dword [ebp - 0x46c]
add ecx, 0xfffffff0
call fcn.0040274b
lea eax, [ebp - 0x468]
push eax
push dword [ebp - 0x478]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x416675
push dword [ebp - 0x478]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.0040274b
xor eax, eax
call fcn.0053cf2c
ret 4
Function at 0x41681e
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, dword [edi]
cmp dword [eax - 0xc], 0
je 0x41686a
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x41686a
push ebx
lea eax, [esi + 0x9c]
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [edi]
push 0
push eax
lea ecx, [esi + 0x40]
call fcn.004389da
test eax, eax
jne 0x41685a
push edi
lea ecx, [esi + 0x40]
call fcn.00438be4
lea ecx, [esi + 0x94]
mov eax, dword [ecx]
call dword [eax + 0x14]
xor eax, eax
inc eax
pop ebx
ret
xor eax, eax
ret

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

Disassembly:
push 0x18
mov eax, 0x563b2e
call fcn.0053ce40
xor ebx, ebx
cmp dword [esi + 0x4c], ebx
jle 0x416981
lea eax, [esi + 0x9c]
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call fcn.00437a9e
push eax
lea ecx, [ebp - 0x10]
call fcn.00402723
mov dword [ebp - 4], ebx
mov edi, dword [esi + 0x44]
lea ecx, [ebp - 0x24]
call fcn.0043f641
mov byte [ebp - 4], 1
jmp 0x416914
mov eax, edi
cmp edi, ebx
je 0x41696c
mov edi, dword [edi]
add eax, 8
push eax
lea ecx, [ebp - 0x10]
call fcn.0040248f
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x416914
push ebx
push ebx
push dword [ebp - 0x10]
lea ecx, [ebp - 0x24]
call fcn.0043fab1
test eax, eax
lea eax, [ebp - 0x10]
push eax
je 0x41690c
lea ecx, [esi + 0x5c]
call fcn.00438be4
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x10]
push eax
call fcn.00438be4
lea ecx, [ebp - 0x24]
call fcn.0043f5dc
jmp 0x416914
lea ecx, [esi + 0x78]
call fcn.00438be4
cmp edi, ebx
jne 0x4168b3
lea ecx, [esi + 0x40]
call fcn.00438a81
cmp dword [esi + 0x84], ebx
jle 0x41693d
lea ebx, [esi + 0x78]
push ebx
lea ecx, [esi + 0x40]
call fcn.00438c1d
mov ecx, ebx
call fcn.00438a81
xor ebx, ebx
lea ecx, [esi + 0x94]
mov eax, dword [ecx]
call dword [eax + 0x14]
mov eax, dword [ebp + 8]
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x24]
cmp dword [eax + 0xc], ebx
jle 0x416971
call fcn.0043f771
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.0040274b
xor eax, eax
inc eax
jmp 0x416983
call fcn.004387df
call fcn.0043f771
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.0040274b
xor eax, eax
call fcn.0053cf18
ret 4