joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40859d
Capabilities:
Read .ini file

Disassembly:
push 0x21c
mov eax, 0x557037
call fcn.0052faf2
mov edi, edx
xor esi, esi
mov ebx, ecx
mov dword [ebp - 0x21c], edi
mov dword [ebp - 0x228], esi
call fcn.00408146
test al, al
je 0x40863c
lea edi, [ebp - 0x220]
call fcn.00407ff4
mov edi, eax
lea eax, [ebp - 0x224]
push eax
push ebx
mov dword [ebp - 4], esi
call fcn.004082b9
mov edi, dword [edi]
mov eax, dword [eax]
push edi
push esi
push str.buttonNumbers
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov ecx, dword [ebp - 0x224]
add ecx, 0xfffffff0
mov esi, eax
call fcn.004021a7
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x220]
add ecx, 0xfffffff0
call fcn.004021a7
mov ecx, dword [ebp - 0x21c]
cmp esi, 1
jne 0x408635
push str.MFP09
call fcn.004070b3
mov eax, dword [ebp - 0x21c]
jmp 0x40868c
push str.MFP16
jmp 0x408628
xor eax, eax
push 0x206
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x216]
push esi
push eax
call fcn.0052bfd0
add esp, 0xc
push dword [ebx + 0xc]
lea eax, [ebp - 0x218]
push 0x104
push eax
push 0x587cac
push str.DevInfAlias
push dword [ebx + 8]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [ebp - 0x218]
push eax
mov ecx, edi
call fcn.00401daf
mov eax, edi
call fcn.0052fb75
ret

Function at 0x408692
Capabilities:
Read .ini file

Disassembly:
push 8
mov eax, 0x557011
call fcn.0052fa89
mov ebx, ecx
call fcn.00408146
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
test al, al
je 0x408703
mov eax, ebx
call fcn.00408294
test al, al
je 0x4086bf
push 0x10
pop eax
jmp 0x408714
lea edi, [ebp - 0x14]
call fcn.00407ff4
mov edi, eax
and dword [ebp - 4], 0
lea eax, [ebp - 0x10]
push eax
push ebx
call fcn.004082b9
mov edi, dword [edi]
mov eax, dword [eax]
push edi
push 0
push str.buttonNumbers
push eax
call esi
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov edi, eax
call fcn.004021a7
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
call fcn.004021a7
cmp edi, 4
je 0x4086ba
mov eax, dword [ebx + 0xc]
mov ebx, dword [ebx + 8]
push eax
push 0
push str.ModifiedEvent
push ebx
call esi
call fcn.0052fb61
ret

Function at 0x40871a
Capabilities:
Read .ini file

Disassembly:
push 8
mov eax, 0x557011
call fcn.0052fa89
mov ebx, ecx
call fcn.00408146
test al, al
je 0x40879b
mov eax, dword [ebx + 4]
cmp eax, 0x196
je 0x408796
cmp eax, 0x20d
je 0x408796
cmp eax, 0x216
je 0x408796
lea edi, [ebp - 0x14]
call fcn.00407ff4
mov esi, eax
and dword [ebp - 4], 0
lea eax, [ebp - 0x10]
push eax
push ebx
call fcn.004082b9
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.004021a7
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
call fcn.004021a7
xor eax, eax
cmp esi, 1
sete al
jmp 0x4087b0
xor eax, eax
inc eax
jmp 0x4087b0
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.0052fb61
ret
Function at 0x409a47
Capabilities:
Get common file path
Get program files directory

Disassembly:
push 0x214
mov eax, 0x5534a0
call fcn.0052faf2
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.00401daf
mov dword [ebp - 4], esi
push 0x5890cc
mov ecx, edi
mov dword [ebp - 0x21c], 1
call fcn.0040432d
mov eax, edi
call fcn.0052fb75
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x5b3db0]
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.00401daf
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov eax, esi
call fcn.0052b424
leave
ret

Function at 0x409aef
Capabilities:
Get common file path

Disassembly:
push 0x210
mov eax, 0x554ab0
call fcn.0052faf2
xor esi, esi
mov dword [ebp - 0x21c], esi
call fcn.00409a21
mov eax, dword [eax + 4]
cmp dword [eax - 0xc], esi
jne 0x409b79
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.00401daf
mov dword [ebp - 4], esi
mov esi, str.EPSONEvent_ManagerMappingTable.ini
push esi
call fcn.0052ba99
pop ecx
push eax
push esi
lea ecx, [ebp - 0x21c]
call fcn.00404353
call fcn.00409a21
lea ecx, [ebp - 0x21c]
push ecx
lea ecx, [eax + 4]
call fcn.00401ee1
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x21c]
add ecx, 0xfffffff0
call fcn.004021a7
call fcn.00409a21
mov eax, dword [eax + 4]
sub eax, 0x10
push eax
call fcn.00401e83
add eax, 0x10
mov dword [edi], eax
pop ecx
mov eax, edi
call fcn.0052fb75
ret
Function at 0x409c58
Capabilities:
Create directory
Get common file path

Disassembly:
push 0x214
mov eax, 0x554a7d
call fcn.0052faf2
mov esi, ecx
xor ebx, ebx
mov dword [ebp - 0x220], esi
mov dword [ebp - 0x21c], ebx
call fcn.00409a21
mov eax, dword [eax + 0xc]
cmp dword [eax - 0xc], ebx
jne 0x409d25
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.00401daf
mov esi, str.Epson
push esi
mov dword [ebp - 4], ebx
call fcn.0052ba99
pop ecx
push eax
push esi
lea ecx, [ebp - 0x21c]
call fcn.00404353
mov esi, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push ebx
push dword [ebp - 0x21c]
call esi
mov edi, 0x5889c8
push edi
call fcn.0052ba99
pop ecx
push eax
push edi
lea ecx, [ebp - 0x21c]
call fcn.00404353
push ebx
push dword [ebp - 0x21c]
call esi
call fcn.00409a21
lea ecx, [ebp - 0x21c]
push ecx
lea ecx, [eax + 0xc]
call fcn.00401ee1
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x21c]
add ecx, 0xfffffff0
call fcn.004021a7
mov esi, dword [ebp - 0x220]
call fcn.00409a21
mov eax, dword [eax + 0xc]
sub eax, 0x10
push eax
call fcn.00401e83
add eax, 0x10
mov dword [esi], eax
pop ecx
mov eax, esi
call fcn.0052fb75
ret

Function at 0x409e44
Capabilities:
Get common file path

Disassembly:
push 0x218
mov eax, 0x554a16
call fcn.0052faf2
and dword [ebp - 4], 0
and dword [ebp - 0x220], 0
mov dword [ebp - 0x224], esi
call fcn.0042b589
push eax
mov ecx, esi
call fcn.0040217f
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.00401daf
lea eax, [ebp - 0x218]
push eax
mov ecx, esi
mov dword [ebp - 4], edi
call fcn.00401d89
push 0x5881b8
mov ecx, esi
call fcn.0040432d
push 0x5889e8
mov ecx, esi
call fcn.0040432d
push str.Event_ManagerScanModule.ini
mov ecx, esi
call fcn.0040432d
mov ecx, dword [ebp - 0x21c]
add ecx, 0xfffffff0
call fcn.004021a7
mov eax, esi
call fcn.0052fb75
ret
Function at 0x40c002
Capabilities:
Read .ini file

Disassembly:
push 0x644
mov eax, 0x554836
call fcn.0052faf2
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, 0x587cac
push edi
push 0x58942c
push str.Event_Launch_Win
call ebx
call fcn.0042b589
push eax
lea ecx, [ebp - 0x634]
call fcn.0040217f
and dword [ebp - 4], 0
lea eax, [ebp - 0x628]
push eax
lea eax, [ebp - 0x634]
push 0x587d38
push eax
call fcn.004034f1
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.00401e83
pop ecx
mov ecx, dword [ebp - 0x62c]
add eax, 0x10
mov dword [ecx], eax
lea eax, [esi + 0x40]
push eax
call fcn.00429900
pop ecx
pop ecx
test eax, eax
jne 0x40c1cf
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 0x40c1cf
lea eax, [ebp - 0x218]
push eax
lea ecx, [esi + 0x40]
call fcn.00401d89
lea eax, [ebp - 0x218]
lea ecx, [esi + 0x44]
push eax
call fcn.00401d89
lea ecx, [ebp - 0x650]
call fcn.0042d64f
mov byte [ebp - 4], 1
mov eax, dword [esi + 0x44]
push 0
push eax
lea ecx, [ebp - 0x650]
call fcn.0042d6f6
lea ecx, [ebp - 0x650]
test eax, eax
jne 0x40c1b4
call fcn.0042d1bb
push edi
lea ecx, [esi + 0x44]
call fcn.00401d89
cmp dword [esi + 0x38], 0x384
jne 0x40c13a
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.0052bfd0
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.00401daf
mov ecx, esi
call fcn.0040b50b
lea ecx, [ebp - 0x650]
mov byte [ebp - 4], 0
call fcn.0042d681
xor esi, esi
mov ecx, dword [ebp - 0x630]
call fcn.004021a7
mov eax, esi
call fcn.0052fb75
ret
call fcn.0042d1bb
lea ecx, [ebp - 0x650]
mov dword [esi + 0x54], 1
mov byte [ebp - 4], 0
call fcn.0042d681
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 0x587d38
push edi
call fcn.004034f1
mov eax, dword [edi]
sub eax, 0x10
push eax
call fcn.00401e83
lea edi, [eax + 0x10]
add esp, 0x10
cmp dword [edi - 0xc], 0
mov dword [ebp - 0x62c], edi
je 0x40c257
push str._File
lea ecx, [ebp - 0x62c]
call fcn.00408932
test eax, eax
jne 0x40c23a
mov dword [esi + 0x48], 1
jmp 0x40c257
push str._Folder
lea ecx, [ebp - 0x62c]
call fcn.00408932
neg eax
sbb eax, eax
and eax, 2
add eax, 2
mov dword [esi + 0x48], eax
lea ecx, [edi - 0x10]
call fcn.004021a7
xor esi, esi
inc esi
jmp 0x40c1a1
Function at 0x40c267
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x5b3db0]
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 0x40c32b
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 0x40c2ba
mov ecx, esi
call fcn.0040c002
test eax, eax
jne 0x40c2c8
jmp 0x40c3ce
cmp eax, 0xffffffff
je 0x40c2c8
mov ecx, esi
call fcn.0040bb3a
jmp 0x40c2b1
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
call fcn.0052bfd0
add esp, 0xc
push dword [esi + 8]
lea eax, [ebp - 0x20c]
push 0x104
push eax
push 0x587cac
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.00401daf
mov ecx, esi
call fcn.0040b50b
jmp 0x40c3cb
cmp eax, 3
jl 0x40c3cb
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.0052bfd0
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
add esp, 0xc
push dword [esi + 8]
lea eax, [ebp - 0x20c]
push 0x104
push eax
push 0x587cac
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.00401d89
push dword [esi + 8]
lea eax, [ebp - 0x20c]
push 0x104
push eax
push 0x587cac
push str.ExtActionTypeId
push ebx
call edi
lea eax, [ebp - 0x20c]
push eax
lea ecx, [esi + 0x5c]
call fcn.00401d89
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0052b424
leave
ret

Function at 0x40c945
Capabilities:
Create pipe
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x5b3db0]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [esi + 4], 0xffffffff
je 0x40c963
mov dword [esi + 8], ebx
jmp 0x40c9e9
push edi
push 1
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
xor edi, edi
push edi
push edi
push 1
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
lea eax, [ebp - 0x18]
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x24]
push eax
push 0x4e20
mov eax, 0x1000
push eax
push eax
push 0xff
push 4
push 0x40000001
push 0x589528
mov dword [ebp - 0x24], 0xc
mov dword [ebp - 0x1c], edi
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
mov dword [esi + 4], eax
cmp eax, 0xffffffff
je 0x40c9e8
push edi
push edi
push 1
push edi
mov dword [esi + 8], ebx
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [esi + 0x10], eax
lea eax, [ebp - 0x28]
push eax
push edi
push esi
push 0x40c9f5
push edi
push edi
call fcn.0052d4ff
add esp, 0x18
mov dword [esi + 0xc], eax
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0052b424
leave
ret
Function at 0x40ca08
Capabilities:
Connect pipe
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2034
call fcn.005307a0
mov eax, dword [0x5b3db0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push edi
xor edi, edi
push edi
push edi
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [ebp - 0x2008], eax
mov ebx, 0x28c
mov dword [ebp - 0x2034], edi
xor eax, eax
lea edi, [ebp - 0x2030]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov eax, dword [ebp - 0x2008]
mov dword [ebp - 0x2024], eax
lea eax, [ebp - 0x2034]
push eax
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
mov eax, dword [esi + 0x10]
mov edi, dword [ebp - 0x2008]
push 0xffffffffffffffff
mov dword [ebp - 0x2010], eax
push 0
lea eax, [ebp - 0x2014]
push eax
push 2
mov dword [ebp - 0x2014], edi
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
test eax, eax
jne 0x40cb0a
push eax
lea eax, [ebp - 0x200c]
push eax
push 0x2000
lea eax, [ebp - 0x2004]
push eax
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x40cafa
cmp dword [ebp - 0x200c], ebx
jne 0x40cafa
push ebx
lea eax, [ebp - 0x2004]
push eax
lea edi, [esi + 0x14]
push ebx
push edi
call fcn.0052b9d1
add esp, 0x10
lea eax, [ebp - 0x2020]
push eax
push 0
push 0x4a
push dword [esi + 8]
mov dword [ebp - 0x201c], ebx
mov dword [ebp - 0x2018], edi
mov dword [ebp - 0x2020], 4
call dword [sym.imp.USER32.dll_SendMessageW]
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_DisconnectNamedPipe]
xor edi, edi
jmp 0x40ca38
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.0052b424
leave
ret

Function at 0x40ce70
Capabilities:
Create thread

Disassembly:
push 8
mov eax, 0x5508c0
call fcn.0052fa89
mov esi, ecx
xor ebx, ebx
mov dword [ebp - 4], ebx
mov eax, dword [ebp + 8]
cmp dword [eax - 0xc], ebx
je 0x40cf1b
lea eax, [ebp + 8]
lea ecx, [esi + 8]
push eax
call fcn.00401ee1
push dword [ebp + 8]
call fcn.00429758
test eax, eax
mov eax, dword [ebp + 8]
pop ecx
je 0x40cf1b
cmp dword [eax - 0xc], ebx
je 0x40cf1b
push 1
push ecx
add eax, 0xfffffff0
mov dword [ebp - 0x14], esp
mov edi, esp
push eax
call fcn.00401e83
add eax, 0x10
mov dword [edi], eax
pop ecx
mov edi, esi
call fcn.0040cfa1
mov dword [esi + 0x10], eax
call fcn.0040cf2d
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 0x40ccd4
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.004021a7
xor eax, eax
inc eax
jmp 0x40cf25
lea ecx, [eax - 0x10]
call fcn.004021a7
xor eax, eax
call fcn.0052fb61
ret 4
Function at 0x40cfa1
Capabilities:
Enumerate files on windows

Disassembly:
push 0x264
mov eax, 0x5547f8
call fcn.0052faf2
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 0x40cfd5
lea ecx, [edi + 0x24]
call fcn.0042c572
push 1
lea eax, [ebp - 0x268]
push eax
lea ecx, [ebp + 8]
call fcn.00406fff
mov eax, dword [eax]
mov ecx, dword [eax - 0xc]
cmp ecx, 1
jne 0x40d008
cmp ecx, esi
jge 0x40cffe
push 0x80070057
call fcn.00402165
cmp word [eax], 0x5c
jne 0x40d008
xor bl, bl
jmp 0x40d00a
mov bl, 1
mov ecx, dword [ebp - 0x268]
add ecx, 0xfffffff0
call fcn.004021a7
test bl, bl
je 0x40d026
push 0x5c
lea ecx, [ebp + 8]
call fcn.0040d76d
push 0x58957c
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x270]
push eax
call fcn.004016d7
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.004021a7
cmp esi, 0xffffffff
je 0x40d153
test byte [ebp - 0x264], 0x12
jne 0x40d136
lea eax, [ebp - 0x238]
push eax
lea ecx, [ebp - 0x268]
call fcn.00401daf
push str.desktop.ini
lea ecx, [ebp - 0x268]
mov byte [ebp - 4], 1
call fcn.00408932
test eax, eax
je 0x40d124
push str.Thumbs.db
lea ecx, [ebp - 0x268]
call fcn.00408932
test eax, eax
je 0x40d124
push str.__.___
lea ecx, [ebp - 0x268]
call fcn.00408932
test eax, eax
je 0x40d124
push str.________.___
lea ecx, [ebp - 0x268]
call fcn.00408932
test eax, eax
je 0x40d124
push str..
lea ecx, [ebp - 0x268]
call fcn.00408932
test eax, eax
je 0x40d124
push 0
push str.fio12_
lea ecx, [ebp - 0x268]
call fcn.00406fa0
cmp eax, 0xffffffff
jne 0x40d124
inc dword [ebp - 0x26c]
cmp dword [ebp + 0xc], 0
je 0x40d124
lea eax, [ebp - 0x268]
push eax
lea ecx, [edi + 0x24]
call fcn.0042c6d5
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x268]
add ecx, 0xfffffff0
call fcn.004021a7
lea eax, [ebp - 0x264]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x40d067
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.004021a7
mov eax, dword [ebp - 0x26c]
call fcn.0052fb75
ret 8
Function at 0x40d177
Capabilities:
Enumerate files on windows

Disassembly:
push 0x470
mov eax, 0x5547bd
call fcn.0052faf2
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.00406fff
mov eax, dword [eax]
mov ecx, dword [eax - 0xc]
cmp ecx, 1
jne 0x40d1c2
cmp ecx, ebx
jge 0x40d1b6
push 0x80070057
call fcn.00402165
cmp word [eax], 0x5c
mov byte [ebp - 0x46d], bl
je 0x40d1c9
mov byte [ebp - 0x46d], 1
mov ecx, dword [ebp - 0x474]
add ecx, 0xfffffff0
call fcn.004021a7
cmp byte [ebp - 0x46d], bl
je 0x40d1e9
push 0x5c
lea ecx, [ebp + 8]
call fcn.0040d76d
push 0x58957c
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x47c]
push eax
call fcn.004016d7
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.004021a7
cmp dword [ebp - 0x478], 0xffffffff
je 0x40d3c6
test byte [ebp - 0x468], 0x12
jne 0x40d39f
lea eax, [ebp - 0x43c]
push eax
lea ecx, [ebp - 0x46c]
call fcn.00401daf
push str.desktop.ini
lea ecx, [ebp - 0x46c]
mov byte [ebp - 4], 1
call fcn.00408932
test eax, eax
je 0x40d38e
push str.Thumbs.db
lea ecx, [ebp - 0x46c]
call fcn.00408932
test eax, eax
je 0x40d38e
push str.__.___
lea ecx, [ebp - 0x46c]
call fcn.00408932
test eax, eax
je 0x40d38e
push str.________.___
lea ecx, [ebp - 0x46c]
call fcn.00408932
test eax, eax
je 0x40d38e
push str..
lea ecx, [ebp - 0x46c]
call fcn.00408932
test eax, eax
je 0x40d38e
push ebx
push str.fio12_
lea ecx, [ebp - 0x46c]
call fcn.00406fa0
cmp eax, 0xffffffff
jne 0x40d38e
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.0042c4cb
test eax, eax
jne 0x40d383
push 0x206
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x216]
push ebx
push eax
call fcn.0052bfd0
add esp, 0xc
lea eax, [ebp - 0x46c]
push eax
lea ecx, [esi + 0x24]
call fcn.0042c6d5
push dword [ebp - 0x46c]
lea eax, [ebp - 0x218]
push dword [ebp + 8]
push 0x588938
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x474]
call fcn.00401daf
lea edi, [ebp - 0x474]
mov byte [ebp - 4], 2
call fcn.0040d3db
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x474]
add ecx, 0xfffffff0
call fcn.004021a7
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.004021a7
lea eax, [ebp - 0x468]
push eax
push dword [ebp - 0x478]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x40d232
push dword [ebp - 0x478]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.004021a7
xor eax, eax
call fcn.0052fb75
ret 4
Function at 0x40d3db
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, dword [edi]
cmp dword [eax - 0xc], 0
je 0x40d427
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40d427
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.0042c4cb
test eax, eax
jne 0x40d417
push edi
lea ecx, [esi + 0x40]
call fcn.0042c6d5
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 0x40d42a
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push 0x18
mov eax, 0x5539be
call fcn.0052fa89
xor ebx, ebx
cmp dword [esi + 0x4c], ebx
jle 0x40d53e
lea eax, [esi + 0x9c]
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call fcn.0042b589
push eax
lea ecx, [ebp - 0x10]
call fcn.0040217f
mov dword [ebp - 4], ebx
mov edi, dword [esi + 0x44]
lea ecx, [ebp - 0x24]
call fcn.004331d2
mov byte [ebp - 4], 1
jmp 0x40d4d1
mov eax, edi
cmp edi, ebx
je 0x40d529
mov edi, dword [edi]
add eax, 8
push eax
lea ecx, [ebp - 0x10]
call fcn.00401ee1
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40d4d1
push ebx
push ebx
push dword [ebp - 0x10]
lea ecx, [ebp - 0x24]
call fcn.00433642
test eax, eax
lea eax, [ebp - 0x10]
push eax
je 0x40d4c9
lea ecx, [esi + 0x5c]
call fcn.0042c6d5
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x10]
push eax
call fcn.0042c6d5
lea ecx, [ebp - 0x24]
call fcn.0043316d
jmp 0x40d4d1
lea ecx, [esi + 0x78]
call fcn.0042c6d5
cmp edi, ebx
jne 0x40d470
lea ecx, [esi + 0x40]
call fcn.0042c572
cmp dword [esi + 0x84], ebx
jle 0x40d4fa
lea ebx, [esi + 0x78]
push ebx
lea ecx, [esi + 0x40]
call fcn.0042c70e
mov ecx, ebx
call fcn.0042c572
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 0x40d52e
call fcn.00433302
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.004021a7
xor eax, eax
inc eax
jmp 0x40d540
call fcn.0042c2ad
call fcn.00433302
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.004021a7
xor eax, eax
call fcn.0052fb61
ret 4