joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401d13
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push edi
push 8
mov esi, eax
pop edi
cmp dword [esi + 0x6a8], edi
jb 0x401d2a
mov eax, dword [esi + 0x694]
jmp 0x401d30
lea eax, [esi + 0x694]
test eax, eax
je 0x401d64
cmp dword [esi + 0x6a8], edi
jb 0x401d44
mov eax, dword [esi + 0x694]
jmp 0x401d4a
lea eax, [esi + 0x694]
push str.parent
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
jne 0x401d64
mov eax, 0x47d098
jmp 0x401f4f
cmp dword [esi + 0x6a8], edi
jb 0x401d74
mov eax, dword [esi + 0x694]
jmp 0x401d7a
lea eax, [esi + 0x694]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x401d8a
test al, 0x10
jne 0x401d5a
cmp dword [esi + 0x6a8], edi
jb 0x401d9a
mov esi, dword [esi + 0x694]
jmp 0x401da0
add esi, 0x694
push ebx
push esi
call dword [sym.imp.SHLWAPI.dll_PathFindExtensionW]
mov edi, eax
test edi, edi
je 0x401f49
cmp word [edi], 0
je 0x401f49
inc edi
inc edi
je 0x401f49
mov esi, dword [sym.imp.KERNEL32.dll_lstrcmpiW]
push 0x47d0b0
push edi
call esi
test eax, eax
je 0x401e06
push 0x47d0b8
push edi
call esi
test eax, eax
je 0x401e06
push 0x47d0c0
push edi
call esi
test eax, eax
je 0x401e06
push 0x47d0c8
push edi
call esi
test eax, eax
je 0x401e06
push str.jpeg
push edi
call esi
test eax, eax
jne 0x401e10
mov eax, str.image.png
jmp 0x401f4e
push 0x47d0f0
push edi
call esi
test eax, eax
jne 0x401e26
mov eax, str.pdf.png
jmp 0x401f4e
push 0x47d108
push edi
call esi
test eax, eax
je 0x401e4a
push str.pptx
push edi
call esi
test eax, eax
je 0x401e4a
push 0x47d11c
push edi
call esi
test eax, eax
jne 0x401e54
mov eax, str.ppt.png
jmp 0x401f4e
push 0x47d134
push edi
call esi
test eax, eax
je 0x401e78
push str.xlsx
push edi
call esi
test eax, eax
je 0x401e78
push 0x47d148
push edi
call esi
test eax, eax
jne 0x401e82
mov eax, str.xls.png
jmp 0x401f4e
push 0x47d160
push edi
call esi
test eax, eax
je 0x401ea6
push str.docx
push edi
call esi
test eax, eax
je 0x401ea6
push 0x47d174
push edi
call esi
test eax, eax
jne 0x401eb0
mov eax, 0x47d17c
jmp 0x401f4e
push 0x47d18c
push edi
call esi
test eax, eax
jne 0x401ec6
mov eax, str.txt.png
jmp 0x401f4e
push 0x47d1a4
push edi
call esi
test eax, eax
je 0x401f0e
push 0x47d1ac
push edi
call esi
test eax, eax
je 0x401f0e
push 0x47d1b0
push edi
call esi
test eax, eax
je 0x401f0e
push 0x47d1bc
push edi
call esi
test eax, eax
je 0x401f0e
push 0x47d1c0
push edi
call esi
test eax, eax
je 0x401f0e
push 0x47d1c8
push edi
call esi
test eax, eax
jne 0x401f15
mov eax, str.code.png
jmp 0x401f4e
push 0x47d1e4
push edi
call esi
test eax, eax
je 0x401f42
mov ebx, 0x47d1ec
push ebx
push edi
call esi
test eax, eax
je 0x401f42
push 0x47d1f4
push edi
call esi
test eax, eax
je 0x401f42
push ebx
push edi
call esi
test eax, eax
jne 0x401f49
mov eax, str.archive.png
jmp 0x401f4e
mov eax, str.unknown.png
pop ebx
pop edi
pop esi
ret
Function at 0x4023f1
Capabilities:
Check if file exists
Create process on windows
Get file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x479906
mov eax, dword fs:[0]
push eax
sub esp, 0x6c8
mov eax, dword [0x493040]
xor eax, esp
mov dword [esp + 0x6c0], eax
push ebx
push esi
push edi
mov eax, dword [0x493040]
xor eax, esp
push eax
lea eax, [esp + 0x6d8]
mov dword fs:[0], eax
mov eax, dword [ecx]
mov ebx, dword [ebp + 8]
lea edx, [esp + 0x2c]
push edx
call dword [eax + 8]
and dword [esp + 0x6e0], 0
mov ecx, str.btnParent
lea eax, [esp + 0x2c]
call fcn.0042449d
test eax, eax
jne 0x402474
push 0x47d3d0
lea esi, [ebx + 0x14]
push esi
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
push esi
mov esi, ebx
call fcn.004021a4
jmp 0x40262c
push dword [esp + 0x2c]
mov esi, str.filebtn_
call fcn.0040cdc3
test eax, eax
je 0x40262c
xor eax, eax
push 0x206
push eax
mov word [esp + 0xbc], ax
lea eax, [esp + 0xbe]
push eax
call fcn.0045f510
mov eax, dword [esp + 0x38]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpynW]
add esp, 0xc
mov edi, 0x104
push edi
add eax, 0x10
push eax
lea eax, [esp + 0xbc]
push eax
call esi
lea eax, [esp + 0xb4]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40262c
test al, 0x10
lea eax, [esp + 0xb4]
je 0x4024fe
push edi
push eax
lea eax, [ebx + 0x14]
push eax
call esi
mov ecx, ebx
call fcn.0040265b
jmp 0x40262c
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindExtensionW]
mov edi, eax
test edi, edi
je 0x4025db
mov esi, dword [sym.imp.KERNEL32.dll_lstrcmpiW]
push 0x47d3d8
push edi
call esi
test eax, eax
je 0x402555
push 0x47d3e4
push edi
call esi
test eax, eax
je 0x402555
push 0x47d3f0
push edi
call esi
test eax, eax
je 0x402555
push 0x47d3fc
push edi
call esi
test eax, eax
je 0x402555
push str..jpeg
push edi
call esi
test eax, eax
jne 0x4025db
xor eax, eax
push 0x40e
push eax
mov word [esp + 0x2c4], ax
lea eax, [esp + 0x2c6]
push eax
call fcn.0045f510
add esp, 0xc
lea eax, [esp + 0x10]
push str.ImgViewer.exe
push eax
call fcn.004049d0
cmp dword [eax + 0x18], 8
pop ecx
pop ecx
jb 0x402591
mov eax, dword [eax + 4]
jmp 0x402594
add eax, 4
lea ecx, [esp + 0xb4]
push ecx
push eax
push str.__s____s_
lea eax, [esp + 0x2c8]
push 0x208
push eax
call dword [sym.imp.SHLWAPI.dll_wnsprintfW]
add esp, 0x14
push 0
push 1
lea esi, [esp + 0x18]
call fcn.0040144b
lea eax, [esp + 0x2bc]
push eax
call fcn.0040c2d3
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x40262c
push 1
lea eax, [esp + 0xb8]
push eax
push 0
push eax
push str.open
push dword [ebx + 4]
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp eax, 0x20
jg 0x40262c
push 0x30
push ecx
push str.warning
push str.common
call fcn.004170c5
add esp, 0xc
push eax
push str.shellExecuteFailed
push 0x47d064
call fcn.004170c5
pop ecx
pop ecx
push eax
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_MessageBoxW]
lea ecx, [esp + 0x2c]
call fcn.00424260
mov ecx, dword [esp + 0x6d8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x6c0]
xor ecx, esp
call fcn.0045d55f
mov esp, ebp
pop ebp
ret 4
Function at 0x40423c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x479656
mov eax, dword fs:[0]
push eax
mov eax, 0x206c
call fcn.004690d0
mov eax, dword [0x493040]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor edi, edi
push 0xffc
lea eax, [ebp - 0x2064]
push edi
push eax
mov dword [ebp - 0x2068], edi
call fcn.0045f510
add esp, 0xc
lea eax, [ebp - 0x206c]
push eax
lea eax, [ebp - 0x2068]
push eax
lea eax, [ebp - 0x2074]
push eax
push str.curssp
push str.Softwareprojone_secshare_
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x206c], 0x1000
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
jne 0x40441d
cmp word [ebp - 0x1ecc], di
je 0x4043d0
cmp dword [0x498980], edi
jne 0x404308
push 0x94
call fcn.0045d68c
pop ecx
mov dword [ebp - 0x2070], eax
mov dword [ebp - 4], edi
cmp eax, edi
je 0x4042fd
mov esi, eax
call fcn.00419ded
jmp 0x4042ff
xor eax, eax
or dword [ebp - 4], 0xffffffff
mov dword [0x498980], eax
lea eax, [ebp - 0x1068]
push eax
call fcn.004040d9
push str.Arial
push 5
mov dword [ebp - 4], 1
pop eax
lea esi, [ebp - 0x1030]
mov byte [ebp - 0x1040], 0x3c
call fcn.004035b8
lea eax, [ebp - 0x1ecc]
lea ecx, [eax + 2]
mov dx, word [eax]
inc eax
inc eax
cmp dx, di
jne 0x40433e
sub eax, ecx
lea ecx, [ebp - 0x1ecc]
sar eax, 1
push ecx
lea esi, [ebp - 0x105c]
call fcn.004035b8
mov eax, 0xff
push 0xffffffffffffffe2
mov dword [ebp - 0x103c], eax
mov dword [ebp - 0x1038], eax
pop eax
mov word [ebp - 0x103e], ax
mov eax, dword [0x498980]
lea esi, [eax + 0x14]
push esi
mov byte [ebp - 0x1013], 1
mov byte [ebp - 0x1014], 0x1c
mov edi, eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov bl, byte [edi + 4]
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea eax, [ebp - 0x1068]
push eax
test bl, bl
je 0x4043b4
call fcn.0041a3b2
jmp 0x4043bf
push dword [0x498980]
call fcn.0041a2a2
or dword [ebp - 4], 0xffffffff
lea edi, [ebp - 0x1068]
call fcn.00404156
xor edi, edi
call fcn.00404171
call fcn.0040bbad
test eax, eax
je 0x40441d
push str._X64AgentThread
push 0x57
push str..limits.cpp
push str._s._d:_s
lea eax, [ebp - 0x1010]
push 0x800
push eax
call dword [sym.imp.SHLWAPI.dll_wnsprintfW]
add esp, 0x18
lea eax, [ebp - 0x1010]
push eax
push edi
push 0x404236
call fcn.004183f5
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0045d55f
leave
ret
Function at 0x404654
Capabilities:
Create thread
Terminate thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push edi
xor edi, edi
push edi
call esi
mov ebx, eax
push 0x65
push ebx
call dword [sym.imp.USER32.dll_LoadIconW]
mov dword [ebp - 4], eax
mov eax, ebx
cmp dword [ebp - 4], edi
je 0x4046ca
cmp ebx, edi
jne 0x404684
push edi
call esi
push edi
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 4]
push edi
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push 0x404598
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov esi, eax
mov dword [ebp - 4], esi
cmp esi, edi
je 0x4046c2
cmp esi, 0xffffffff
je 0x4046c2
push 0x1f4
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push edi
push esi
call dword [sym.imp.KERNEL32.dll_TerminateThread]
lea eax, [ebp - 4]
call fcn.00404437
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4049d0
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x194]
sub esp, 0x214
mov eax, dword [0x493040]
xor eax, ebp
mov dword [ebp + 0x190], eax
mov eax, dword [ebp + 0x19c]
and dword [ebp - 0x80], 0
push ebx
mov ebx, dword [ebp + 0x1a0]
push esi
push edi
mov dword [ebp - 0x7c], eax
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x78], ax
lea eax, [ebp - 0x76]
push eax
call fcn.0045f510
add esp, 0xc
lea eax, [ebp - 0x78]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov edi, dword [sym.imp.SHLWAPI.dll_PathAppendW]
push 0x47d22c
lea eax, [ebp - 0x78]
push eax
call edi
lea eax, [ebp - 0x78]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
lea esi, [ebp - 0x78]
call fcn.0040b23f
test ebx, ebx
je 0x404a55
push ebx
mov eax, esi
push eax
call edi
mov esi, dword [ebp - 0x7c]
lea eax, [ebp - 0x78]
push eax
call fcn.00402cbc
mov ecx, dword [ebp + 0x190]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.0045d55f
add ebp, 0x194
leave
ret

Function at 0x404af3
Capabilities:
Query environment variable
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x824
mov eax, dword [0x493040]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x400
lea eax, [ebp - 0x808]
push eax
mov esi, str.no_more_create_job
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
jne 0x404b66
call fcn.0040c345
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push 0x47db60
lea ecx, [ebp - 0x824]
call fcn.0040ce40
cmp dword [eax + 0x18], 8
pop ecx
pop ecx
jb 0x404b4c
mov eax, dword [eax + 4]
jmp 0x404b4f
add eax, 4
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
push 0
push 1
lea esi, [ebp - 0x824]
call fcn.0040144b
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0045d55f
leave
ret
Function at 0x406965
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0xf94]
mov eax, 0x1014
call fcn.004690d0
mov eax, dword [0x493040]
xor eax, ebp
mov dword [ebp + 0xf90], eax
mov eax, dword [ebp + 0xfac]
push ebx
mov ebx, dword [ebp + 0xfa4]
mov dword [ebp - 0x7c], eax
mov eax, dword [ebp + 0xfb0]
mov dword [ebp - 0x80], eax
test ebx, ebx
jbe 0x4069f9
push esi
mov esi, 0x1000
cmp ebx, esi
ja 0x4069ad
mov esi, ebx
and dword [ebp - 0x74], 0
push 0
lea eax, [ebp - 0x74]
push eax
push esi
lea eax, [ebp - 0x70]
push eax
push dword [ebp - 0x7c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4069f8
cmp dword [ebp - 0x74], esi
jne 0x4069f8
and dword [ebp - 0x78], 0
push 0
lea eax, [ebp - 0x78]
push eax
push dword [ebp - 0x74]
lea eax, [ebp - 0x70]
push eax
push dword [ebp - 0x80]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4069f8
mov eax, dword [ebp - 0x74]
cmp dword [ebp - 0x78], eax
jne 0x4069f8
sub ebx, eax
jne 0x4069a2
pop esi
mov ecx, dword [ebp + 0xf90]
xor eax, eax
test ebx, ebx
sete al
xor ecx, ebp
pop ebx
call fcn.0045d55f
add ebp, 0xf94
leave
ret
Function at 0x406d89
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x493040]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
push esi
xor esi, esi
push esi
push esi
push 3
push esi
push esi
push connect
push eax
mov dword [ebp - 0x21c], ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x218], eax
cmp eax, 0xffffffff
jne 0x406dce
push 2
pop esi
jmp 0x406ebb
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
lea ecx, [ebp - 0x210]
push ecx
push 0x1000
push edi
push eax
mov dword [ebp - 0x210], esi
call ebx
test eax, eax
je 0x406eac
cmp dword [ebp - 0x210], 0x1000
jne 0x406eac
cmp dword [edi], 0x73737066
jne 0x406eac
push 0xffc
push edi
mov eax, 0x5b11680a
call fcn.0040bb32
cmp dword [edi + 0xffc], eax
jne 0x406eac
cmp dword [edi + 0x108], esi
mov dword [ebp - 0x214], esi
jle 0x406eaf
push 0x1fc
lea eax, [ebp - 0x208]
push esi
push eax
mov dword [ebp - 0x20c], esi
call fcn.0045f510
add esp, 0xc
push esi
lea eax, [ebp - 0x210]
push eax
push 0x200
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x218]
call ebx
test eax, eax
je 0x406ea8
cmp dword [ebp - 0x210], 0x200
jne 0x406ea8
lea eax, [ebp - 0x20c]
push eax
mov eax, dword [ebp - 0x21c]
call fcn.00407b52
inc dword [ebp - 0x214]
mov eax, dword [ebp - 0x214]
cmp eax, dword [edi + 0x108]
jl 0x406e39
jmp 0x406eaf
push 3
jmp 0x406eae
push 0xa
pop esi
push dword [ebp - 0x218]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 8]
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.0045d55f
leave
ret
Function at 0x4071bb
Capabilities:
Query or enumerate registry value
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x493040]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
mov esi, ecx
mov ecx, dword [esi + 0x110]
push edi
xor edi, edi
mov dword [ebp - 0x30], eax
cmp ecx, edi
jne 0x4071e8
xor eax, eax
jmp 0x4072f9
mov eax, dword [esi + 0x114]
cmp eax, ecx
jge 0x4072f9
lea eax, [esi + 0x88]
push eax
push str.Softwareprojone_secshare_ssps_
push str._s_hs
lea ecx, [ebp - 0x20]
call fcn.0040ce40
mov eax, dword [ebp - 0x1c]
add esp, 0xc
cmp dword [ebp - 8], 8
jae 0x40721e
lea eax, [ebp - 0x1c]
push ebx
push 4
pop ebx
lea ecx, [ebp - 0x24]
push ecx
lea ecx, [ebp - 0x2c]
push ecx
lea ecx, [ebp - 0x28]
push ecx
push 0x47e174
push eax
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x24], ebx
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
jne 0x407250
cmp dword [ebp - 0x28], ebx
jne 0x407250
mov ebx, dword [ebp - 0x2c]
jmp 0x407252
xor ebx, ebx
mov eax, dword [esi + 0x114]
cmp ebx, eax
jg 0x40725e
mov ebx, eax
push edi
push edi
push 3
push edi
push edi
push 0x40000000
push dword [ebp - 0x30]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x24], eax
cmp eax, 0xffffffff
je 0x4072e6
cmp dword [ebp - 8], 8
mov eax, dword [ebp - 0x1c]
jae 0x407286
lea eax, [ebp - 0x1c]
lea edi, [ebx + 1]
push edi
push 0x47e174
push eax
call fcn.0040cef8
push 0xffc
push esi
mov eax, 0x5b11680a
mov dword [esi + 0x114], edi
call fcn.0040bb32
and dword [ebp - 0x28], 0
push 0
mov dword [esi + 0xffc], eax
lea eax, [ebp - 0x28]
push eax
mov edi, 0x1000
push edi
push esi
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4072d4
cmp dword [ebp - 0x28], edi
je 0x4072d9
mov ebx, 0x12345678
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor edi, edi
jmp 0x4072eb
mov ebx, 0x12345678
push edi
push 1
lea esi, [ebp - 0x20]
call fcn.0040144b
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0045d55f
leave
ret
Function at 0x40787b
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x479506
mov eax, dword fs:[0]
push eax
mov eax, 0x1290
call fcn.004690d0
mov eax, dword [0x493040]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x1248], eax
xor eax, eax
push 0x206
mov word [ebp - 0x23c], ax
xor ebx, ebx
lea eax, [ebp - 0x23a]
push ebx
push eax
mov edi, ecx
call fcn.0045f510
add esp, 0xc
lea esi, [ebp - 0x23c]
call fcn.0040b605
test eax, eax
jne 0x4078f6
mov dword [ebp - 0x1240], 2
jmp 0x407ab1
push 0xffc
lea eax, [ebp - 0x1238]
push ebx
push eax
mov dword [ebp - 0x123c], ebx
call fcn.0045f510
lea eax, [ebp - 0x23c]
add esp, 0xc
push eax
lea edx, [ebp - 0x123c]
mov ecx, edi
call fcn.00406ecb
pop ecx
mov dword [ebp - 0x1240], eax
cmp eax, ebx
jne 0x407ab1
push 7
xor eax, eax
mov byte [ebp - 0x34], bl
pop ecx
lea edi, [ebp - 0x33]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0xc9c]
push eax
lea ecx, [ebp - 0x1264]
call fcn.00402c6a
lea eax, [ebp - 0x1264]
push eax
lea eax, [ebp - 0x1280]
push eax
mov dword [ebp - 4], ebx
call fcn.00420e85
pop ecx
pop ecx
mov byte [ebp - 4], 1
cmp dword [eax + 0x18], 0x10
jb 0x40797d
mov eax, dword [eax + 4]
jmp 0x407980
add eax, 4
lea ecx, [ebp - 0x34]
push ecx
lea ecx, [ebp - 0x10e4]
push ecx
mov ecx, eax
call fcn.00406ca3
pop ecx
pop ecx
xor edi, edi
push ebx
inc edi
push edi
lea ecx, [ebp - 0x1280]
call fcn.00403022
or dword [ebp - 4], 0xffffffff
push ebx
push edi
lea ecx, [ebp - 0x1264]
call fcn.00403022
lea eax, [ebp - 0x23c]
push eax
lea esi, [ebp - 0x1264]
call fcn.00402cbc
mov eax, esi
push eax
lea eax, [ebp - 0x1280]
push eax
mov dword [ebp - 4], 2
call fcn.004068f5
pop ecx
pop ecx
mov byte [ebp - 4], 3
cmp dword [eax + 0x18], 0x10
jb 0x4079ee
mov eax, dword [eax + 4]
jmp 0x4079f1
add eax, 4
lea ecx, [ebp - 0x34]
push ecx
push eax
call fcn.00406938
pop ecx
pop ecx
push ebx
push edi
lea ecx, [ebp - 0x1280]
mov byte [ebp - 0x1244], al
call fcn.00403022
or dword [ebp - 4], 0xffffffff
push ebx
push edi
lea esi, [ebp - 0x1264]
call fcn.0040144b
cmp byte [ebp - 0x1244], 0
jne 0x407a36
mov dword [ebp - 0x1240], 7
jmp 0x407a9d
movsx ax, byte [ebp - 0x1244]
movzx eax, ax
push eax
push str._c:_
lea ecx, [ebp - 0x129c]
call fcn.0040ce40
pop ecx
pop ecx
mov dword [ebp - 4], 4
cmp dword [eax + 0x18], 8
jb 0x407a66
mov eax, dword [eax + 4]
jmp 0x407a69
add eax, 4
push dword [ebp - 0x1248]
push eax
call fcn.0040b679
mov ebx, eax
neg ebx
sbb bl, bl
or dword [ebp - 4], 0xffffffff
push 0
push edi
lea esi, [ebp - 0x129c]
inc bl
call fcn.0040144b
test bl, bl
je 0x407a9d
mov dword [ebp - 0x1240], 0x1c
cmp byte [ebp - 0x1244], 0
je 0x407ab1
push dword [ebp - 0x1244]
call fcn.0041eb98
lea eax, [ebp - 0x23c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [ebp - 0x1240]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0045d55f
leave
ret
Function at 0x408a2b
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x190]
sub esp, 0x210
mov eax, dword [0x493040]
xor eax, ebp
mov dword [ebp + 0x18c], eax
and dword [ebp - 0x80], 0
push ebx
mov ebx, dword [ebp + 0x198]
push esi
push edi
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x7c], ax
lea eax, [ebp - 0x7a]
push eax
call fcn.0045f510
add esp, 0xc
lea eax, [ebp - 0x7c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov edi, dword [sym.imp.SHLWAPI.dll_PathAppendW]
push 0x47d22c
lea eax, [ebp - 0x7c]
push eax
call edi
lea eax, [ebp - 0x7c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
lea esi, [ebp - 0x7c]
call fcn.0040b23f
push str.taskbtn.png
mov eax, esi
push eax
call edi
mov eax, esi
push eax
mov esi, ebx
call fcn.00402cbc
mov ecx, dword [ebp + 0x18c]
pop edi
pop esi
mov eax, ebx
xor ecx, ebp
pop ebx
call fcn.0045d55f
add ebp, 0x190
leave
ret
Function at 0x40ad5a
Capabilities:
Check if file exists
Enumerate files on windows
Enumerate files recursively
Get common file path
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa94
mov eax, dword [0x493040]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0x14]
mov eax, dword [ebp + 0x10]
mov edx, dword [ebp + 0x1c]
push ebx
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 0xa88], ecx
mov ecx, dword [ebp + 0x18]
push edi
mov dword [ebp - 0xa84], eax
mov dword [ebp - 0xa80], ecx
mov dword [ebp - 0xa8c], edx
test esi, esi
je 0x40af7f
test eax, eax
jne 0x40adab
test ecx, ecx
je 0x40af7f
movzx eax, word [esi + 2]
mov edi, dword [sym.imp.SHLWAPI.dll_PathAppendW]
cmp ax, 0x3a
je 0x40ae01
cmp ax, 0x5c
je 0x40ae01
xor eax, eax
push 0x40e
push eax
mov word [ebp - 0x828], ax
lea eax, [ebp - 0x826]
push eax
call fcn.0045f510
add esp, 0xc
lea eax, [ebp - 0x828]
push eax
push 0x208
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
push esi
lea eax, [ebp - 0x828]
push eax
call edi
lea esi, [ebp - 0x828]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40af7f
test al, 0x10
je 0x40af7f
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcpyW]
push esi
lea eax, [ebp - 0x418]
push eax
call ebx
push 0x47d4c4
lea eax, [ebp - 0x418]
push eax
call edi
lea eax, [ebp - 0xa78]
push eax
lea eax, [ebp - 0x418]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0xa90], eax
cmp eax, 0xffffffff
je 0x40af7f
mov dword [ebp - 0xa7c], 1
push 0x47e2bc
lea eax, [ebp - 0xa4c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x40af44
push 0x47d3d0
lea eax, [ebp - 0xa4c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x40af44
cmp dword [ebp - 0xa78], 0xffffffff
je 0x40af44
push esi
lea eax, [ebp - 0x210]
push eax
call ebx
lea eax, [ebp - 0xa4c]
push eax
lea eax, [ebp - 0x210]
push eax
call edi
test byte [ebp - 0xa78], 0x10
je 0x40af24
cmp dword [ebp - 0xa80], 0
je 0x40aee8
push dword [ebp - 0xa8c]
lea eax, [ebp - 0x210]
push eax
call dword [ebp - 0xa80]
test eax, eax
je 0x40af61
cmp dword [ebp + 0xc], 0
je 0x40af44
push dword [ebp - 0xa8c]
lea eax, [ebp - 0x210]
push dword [ebp - 0xa80]
push dword [ebp - 0xa88]
push dword [ebp - 0xa84]
push dword [ebp + 0xc]
push eax
call fcn.0040ad5a
push 2
pop ecx
cmp eax, ecx
jne 0x40af44
mov dword [ebp - 0xa7c], ecx
jmp 0x40af6b
cmp dword [ebp - 0xa84], 0
je 0x40af44
push dword [ebp - 0xa88]
lea eax, [ebp - 0x210]
push eax
call dword [ebp - 0xa84]
test eax, eax
je 0x40af61
lea eax, [ebp - 0xa78]
push eax
push dword [ebp - 0xa90]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x40ae64
jmp 0x40af6b
mov dword [ebp - 0xa7c], 2
push dword [ebp - 0xa90]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0xa7c]
jmp 0x40af81
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0045d55f
leave
ret 0x18