joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1000ee20
Capabilities:
Read file on windows

Disassembly:
push ecx
push ebx
push ebp
push esi
mov esi, ecx
mov ecx, dword [esi + 0x1c]
push edi
lea eax, [esi + 0x1c]
cmp ecx, 0xffffffff
jne 0x1000ee3c
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret 8
mov ebx, dword [esp + 0x18]
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
lea ecx, [esp + 0x10]
push 0
push ecx
push 4
push eax
push ebx
call edi
test eax, eax
jne 0x1000ee66
call fcn.100120a0
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret 8
mov eax, dword [esi + 0x14]
test eax, eax
je 0x1000eeb2
mov ecx, dword [esi + 0x18]
test ecx, ecx
jle 0x1000eeb2
lea edx, [esp + 0x10]
push 0
shl ecx, 2
push edx
push ecx
push eax
push ebx
call edi
test eax, eax
jne 0x1000ee96
call fcn.100120a0
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret 8
mov ecx, dword [esi + 0x18]
xor eax, eax
test ecx, ecx
jle 0x1000eeb2
mov edx, dword [esi + 0x10]
inc eax
mov dword [edx + eax*4 - 4], 1
mov ecx, dword [esi + 0x18]
cmp eax, ecx
jl 0x1000ee9f
mov eax, dword [esi + 0xc]
xor edi, edi
test eax, eax
jle 0x1000eee8
mov ebp, dword [esp + 0x1c]
xor ebx, ebx
cmp dword [ebp], 0
je 0x1000eeda
mov eax, dword [esp + 0x18]
mov ecx, dword [esi + 4]
push eax
add ecx, ebx
call fcn.1000a240
test eax, eax
je 0x1000ee8c
mov eax, dword [esi + 0xc]
inc edi
add ebp, 4
add ebx, 0x10
cmp edi, eax
jl 0x1000eec1
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
pop ecx
ret 8
Function at 0x1000ef00
Capabilities:
Write file on windows

Disassembly:
sub esp, 8
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x1c]
lea ebp, [esi + 0x1c]
cmp eax, 0xffffffff
jne 0x1000ef20
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret 8
mov ebx, dword [esp + 0x1c]
push 1
push 0
push 0
push ebx
mov dword [esp + 0x20], 0
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov edi, eax
cmp edi, 0xffffffff
jne 0x1000ef51
call fcn.100120a0
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret 8
mov eax, dword [esi + 0x18]
push 0
lea ecx, [edi + eax*4 + 4]
push ecx
push 0
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LockFile]
lea edx, [esp + 0x14]
push 0
push edx
push 4
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_WriteFile]
push ebx
call ebp
test eax, eax
je 0x1000ef9d
mov ecx, dword [esi + 0x14]
test ecx, ecx
je 0x1000efa5
mov eax, dword [esi + 0x18]
test eax, eax
jle 0x1000efa5
lea edx, [esp + 0x14]
push 0
shl eax, 2
push edx
push eax
push ecx
push ebx
call ebp
test eax, eax
jne 0x1000efa5
mov dword [esp + 0x10], 1
mov ecx, dword [esi + 0x18]
push 0
lea edx, [edi + ecx*4 + 4]
push edx
push 0
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_UnlockFile]
mov eax, dword [esp + 0x10]
xor ebp, ebp
cmp eax, ebp
je 0x1000efd4
call fcn.100120a0
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret 8
mov eax, dword [esi + 0xc]
mov dword [esp + 0x1c], ebp
cmp eax, ebp
jle 0x1000f00b
mov edi, dword [esp + 0x20]
mov eax, dword [edi]
mov ecx, dword [esi + 4]
push eax
push ebx
add ecx, ebp
call fcn.1000a2f0
test eax, eax
je 0x1000efc8
mov eax, dword [esp + 0x1c]
mov ecx, dword [esi + 0xc]
inc eax
add edi, 4
add ebp, 0x10
cmp eax, ecx
mov dword [esp + 0x1c], eax
jl 0x1000efe3
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 8
ret 8
Function at 0x1000fee0
Capabilities:
Get common file path
Query or enumerate registry value

Disassembly:
sub esp, 0xc
push ebx
push ebp
push esi
push edi
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_GetVersion]
lea edi, [esi + 0x410]
push 1
push edi
mov ebx, eax
call fcn.100339e3
add esp, 8
lea eax, [esi + 0x618]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
cmp ebx, 0x80000000
lea ebx, [esi + 0x514]
push 1
jae 0x1000ff38
push 0x17
push ebx
call fcn.10033620
push 1
lea ebp, [esi + 0x71c]
push 0x19
jmp 0x1000ff4a
push 2
push ebx
call fcn.10033620
push 1
lea ebp, [esi + 0x71c]
push 0x10
push ebp
call fcn.10033620
add esp, 0x18
push edi
mov edi, dword [sym.imp.USER32.dll_CharLowerA]
call edi
push ebx
call edi
lea eax, [esi + 0x618]
push eax
call edi
push ebp
call edi
lea eax, [esp + 0x14]
push eax
push 0xf003f
push 0
push str.SoftwareArcSoftUpdate_Folders
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1001006e
lea ecx, [esp + 0x10]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push ecx
lea edx, [esp + 0x1c]
push esi
push edx
push eax
mov eax, dword [esp + 0x24]
mov ebx, 0x104
push str.Document_Folder
push eax
mov dword [esp + 0x28], ebx
call ebp
test eax, eax
jne 0x1000ffc5
push esi
mov ecx, esi
call fcn.100106d0
push esi
call edi
mov eax, dword [esp + 0x14]
mov dword [esp + 0x10], ebx
lea ecx, [esp + 0x10]
lea ebx, [esi + 0x104]
push ecx
lea edx, [esp + 0x1c]
push ebx
push edx
push 0
push str.Program_Folder
push eax
call ebp
test eax, eax
jne 0x1000fff7
push ebx
mov ecx, esi
call fcn.100106d0
push ebx
call edi
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x10]
lea ebx, [esi + 0x208]
push ecx
lea edx, [esp + 0x1c]
push ebx
push edx
push 0
push str.Windows_Folder
push eax
mov dword [esp + 0x28], 0x104
call ebp
test eax, eax
jne 0x1001002d
push ebx
mov ecx, esi
call fcn.100106d0
push ebx
call edi
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x10]
lea ebx, [esi + 0x30c]
push ecx
lea edx, [esp + 0x1c]
push ebx
push edx
push 0
push str.Desktop_Folder
push eax
mov dword [esp + 0x28], 0x104
call ebp
test eax, eax
jne 0x10010063
push ebx
mov ecx, esi
call fcn.100106d0
push ebx
call edi
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0xc
ret

Function at 0x100121d0
Capabilities:
Delete file

Disassembly:
mov eax, dword [esp + 4]
cmp dword [eax], 0
jne 0x100121e4
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
ret
mov eax, 1
ret
Function at 0x100121f0
Capabilities:
Get file size
Read file on windows

Disassembly:
mov ecx, dword [esp + 4]
sub esp, 0x108
lea eax, [esp + 4]
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x124]
xor esi, esi
push eax
push ecx
xor ebp, ebp
mov dword [edi], esi
call fcn.10012100
add esp, 8
test eax, eax
je 0x100122a4
mov edx, dword [esp + 0x120]
lea eax, [esp + 0x14]
push edx
push eax
call fcn.100120b0
add esp, 8
test eax, eax
je 0x100122a4
push esi
push 0x80
push 3
push esi
push esi
lea ecx, [esp + 0x28]
push 0x80000000
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x100122a4
push ebp
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, dword [esp + 0x128]
mov dword [ebx], eax
add eax, 0x64
push eax
call fcn.100357ef
add esp, 4
mov dword [edi], eax
test eax, eax
je 0x100122a4
mov ecx, dword [ebx]
lea edx, [esp + 0x10]
push ebp
push edx
push ecx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x100122a4
mov edx, dword [edi]
mov eax, dword [esp + 0x10]
mov ebp, 1
mov byte [edx + eax], 0
jmp 0x100122b3
mov edi, dword [edi]
test edi, edi
je 0x100122b3
push edi
call fcn.100357a7
add esp, 4
test esi, esi
je 0x100122be
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
add esp, 0x108
ret

Function at 0x100125c0
Capabilities:
Get geographical location

Disassembly:
sub esp, 0x208
lea eax, [esp + 0x104]
push esi
push 0x104
push eax
push 0x1001
push 0x800
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcmpA]
lea ecx, [esp + 0x108]
push str.Japanese
push ecx
call esi
test eax, eax
jne 0x10012609
mov esi, 0x80
push 0x10046d10
jmp 0x10012634
lea eax, [esp + 0x108]
push str.Russian
push eax
call esi
test eax, eax
jne 0x1001262d
lea ecx, [esp + 4]
push str.Arial
mov esi, 0xcc
push ecx
jmp 0x10012639
xor esi, esi
push str.Arial
lea edx, [esp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [esp + 4]
mov ecx, dword [esp + 0x210]
push eax
push 0
push 0
push 0
push 0
push esi
push 0
push 0
push 0
push 0x190
push 0
push 0
neg ecx
push 0
push ecx
call dword [sym.imp.GDI32.dll_CreateFontA]
pop esi
add esp, 0x208
ret
Function at 0x10014250
Capabilities:
Hide graphical window

Disassembly:
sub esp, 8
push ebx
push ebp
push esi
mov esi, dword [esp + 0x20]
test esi, esi
je 0x100143fb
mov ebp, dword [esp + 0x1c]
test ebp, ebp
je 0x100143fb
mov ebx, dword [esp + 0x18]
test ebx, ebx
je 0x100143fb
call fcn.100141e0
cmp byte [esi], 0x20
jne 0x10014285
inc esi
push esi
push 0x1004c4e4
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
je 0x100142a8
push esi
push 0x1004c4e4
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov eax, dword [0x1004c5f0]
jmp 0x100142b5
mov eax, dword [0x1004c5f0]
test eax, eax
jne 0x10014411
mov cl, byte [0x1004c4e4]
test cl, cl
jne 0x100142cc
test eax, eax
je 0x10014411
jmp 0x10014404
test eax, eax
je 0x100142dd
push 0
push 0
push 0x10
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
push edi
push ebx
call dword [sym.imp.USER32.dll_GetDC]
push 0xe
mov esi, eax
call fcn.100125c0
add esp, 4
push eax
push esi
call dword [sym.imp.GDI32.dll_SelectObject]
mov dword [esp + 0x24], eax
lea eax, [esp + 0x10]
push eax
mov edi, 0x1004c4e4
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push 0x1004c4e4
push esi
call dword [sym.imp.GDI32.dll_GetTextExtentPointA]
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x10]
add edx, 4
push eax
push esi
lea edi, [ecx + 8]
mov dword [esp + 0x28], edx
call dword [sym.imp.GDI32.dll_SelectObject]
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
push esi
push ebx
call dword [sym.imp.USER32.dll_ReleaseDC]
mov ecx, dword [ebp]
mov esi, dword [sym.imp.USER32.dll_ClientToScreen]
mov dword [0x1004c5f8], ecx
mov edx, dword [ebp + 4]
mov dword [0x1004c5fc], edx
mov eax, dword [ebp + 8]
mov dword [0x1004c600], eax
mov ecx, dword [ebp + 0xc]
push 0x1004c5f8
push ebx
mov dword [0x1004c604], ecx
call esi
push 0x1004c600
push ebx
call esi
mov eax, dword [0x1004c600]
mov ecx, dword [0x1004c5f8]
sub eax, ecx
mov ebp, dword [0x1004c604]
sub eax, edi
push 0
cdq
sub eax, edx
mov esi, eax
sar esi, 1
add esi, ecx
call fcn.10010f00
push eax
xor eax, eax
test ebp, ebp
mov edx, dword [esp + 0x28]
push 0
setl al
dec eax
xor ecx, ecx
and eax, ebp
push ebx
test esi, esi
setl cl
push edx
dec ecx
push edi
push eax
and ecx, esi
push ecx
push 0xc8000000
push 0x1004c4e4
push str.PDPopup_Mirong
push 0
call dword [sym.imp.USER32.dll_CreateWindowExA]
push 0
push eax
mov dword [0x1004c5f0], eax
call dword [sym.imp.USER32.dll_ShowWindow]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 8
ret
mov eax, dword [0x1004c5f0]
test eax, eax
je 0x10014411
push 0
push 0
push 0x10
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret
Function at 0x10015660
Capabilities:
Enumerate files on windows

Disassembly:
sub esp, 0x34c
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x360]
test edi, edi
jne 0x10015682
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x34c
ret
lea eax, [esp + 0x154]
mov ebx, 1
push eax
mov dword [esp + 0x14], 0
mov ebp, edi
call sym.AlbumBase.dll_ABM_GetShareFolder
add esp, 4
test eax, eax
jne 0x100156b0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x34c
ret
mov ecx, dword [esp + 0x364]
xor eax, eax
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
lea edx, [esp + 0x154]
and ecx, 3
rep stosb byte es:[edi], al
mov edi, str..abm
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [esp + 0x14]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x158]
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x1001571f
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x34c
ret
test esi, esi
je 0x10015768
mov edi, dword [sym.imp.KERNEL32.dll_FindNextFileA]
test ebx, ebx
je 0x10015768
test byte [esp + 0x14], 0x10
jne 0x1001575c
lea edx, [esp + 0x258]
push 0
push edx
push 0
lea eax, [esp + 0x4c]
push 0
push eax
call fcn.100110b0
lea ecx, [esp + 0x26c]
push ecx
call fcn.10016640
add esp, 0x18
lea edx, [esp + 0x14]
push edx
push esi
call edi
mov ebx, eax
jmp 0x10015729
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov edx, dword [0x1004c60c]
test edx, edx
je 0x100157d7
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov eax, dword [esp + 0x364]
not ecx
dec ecx
mov ebx, ecx
inc ebx
cmp eax, ebx
jl 0x100157d7
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, ebp
add ebp, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [esp + 0x364]
mov ecx, dword [esp + 0x10]
mov edx, dword [edx + 0x104]
sub esi, ebx
inc ecx
mov dword [esp + 0x364], esi
test edx, edx
mov dword [esp + 0x10], ecx
jne 0x10015779
mov ecx, dword [0x1004c60c]
push ecx
call fcn.10016740
mov eax, dword [esp + 0x14]
add esp, 4
mov dword [0x1004c60c], 0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x34c
ret
Function at 0x10015dc0
Capabilities:
Enumerate files on windows

Disassembly:
sub esp, 0x350
push ebx
push ebp
mov ebp, dword [esp + 0x35c]
push esi
cmp ebp, 7
push edi
jae 0x10015f95
mov ebx, dword [esp + 0x368]
test ebx, ebx
je 0x10015f95
mov eax, dword [esp + 0x36c]
test eax, eax
je 0x10015f95
cmp byte [eax], 0
je 0x10015f95
push eax
call fcn.10017b90
add esp, 4
test eax, eax
je 0x10015f95
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x11c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov dword [esp + 0x10], 0
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x11c]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
cmp ebp, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str..phb
je 0x10015e56
mov edi, str..abm
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [esp + 0x220]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x120]
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0x14], eax
je 0x10015f95
test byte [esp + 0x220], 0x10
jne 0x10015f64
or ecx, 0xffffffff
mov edi, ebx
xor eax, eax
lea edx, [esp + 0x18]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x18]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x100467f8
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea edx, [esp + 0x18]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x24c]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
cmp ebp, 3
rep movsb byte es:[edi], byte [esi]
jne 0x10015f45
mov eax, dword [esp + 0x36c]
lea ecx, [esp + 0x18]
push eax
push ecx
push ebp
call fcn.10016bb0
jmp 0x10015f58
mov edx, dword [esp + 0x36c]
lea eax, [esp + 0x18]
push edx
push eax
push ebp
call fcn.10016770
add esp, 0xc
cmp eax, 1
jne 0x10015f64
inc dword [esp + 0x10]
mov esi, dword [esp + 0x14]
lea ecx, [esp + 0x220]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x10015e9e
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x350
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x350
ret
Function at 0x10015fb0
Capabilities:
Delete file
Set file attributes

Disassembly:
sub esp, 0x244
push ebx
push ebp
mov ebp, dword [esp + 0x250]
push esi
cmp ebp, 7
push edi
jae 0x10016093
mov edi, dword [esp + 0x25c]
test edi, edi
je 0x10016093
cmp byte [edi], 0
je 0x10016093
mov ebx, dword [esp + 0x260]
test ebx, ebx
je 0x10016093
cmp byte [ebx], 0
je 0x10016093
push ebx
call fcn.10017b90
add esp, 4
test eax, eax
je 0x10016093
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x10]
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x10]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x114]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
je 0x10016093
test byte [esp + 0x114], 0x10
jne 0x10016093
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
lea eax, [esp + 0x10]
push ebx
push eax
push ebp
call fcn.10016770
mov esi, eax
add esp, 0xc
cmp esi, 1
jne 0x10016086
lea ecx, [esp + 0x10]
push 0x80
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea edx, [esp + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x244
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x244
ret
Function at 0x10016160
Capabilities:
Delete file
Read file on windows
Set file attributes

Disassembly:
sub esp, 0x90
mov eax, dword [esp + 0x94]
push ebx
cmp eax, 7
push edi
mov dword [esp + 0xc], 0
jae 0x100162ba
mov ecx, dword [esp + 0xa4]
test ecx, ecx
je 0x100162ba
mov ebx, dword [esp + 0xa0]
test ebx, ebx
je 0x100162ba
cmp byte [ebx], 0
je 0x100162ba
lea ecx, [esp + 0x10]
lea edx, [esp + 0x18]
push ecx
push edx
push eax
call fcn.10017da0
add esp, 0xc
test eax, eax
je 0x100162ba
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x18]
push eax
push ecx
call fcn.10017e40
mov edi, eax
add esp, 8
test edi, edi
je 0x100162ba
push ebp
push esi
push ebx
call fcn.10012080
add esp, 4
test eax, eax
je 0x10016272
push 0
push 0x10000080
mov ebp, 1
push 3
push 0
push ebp
push 0x80000000
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x100162a3
lea edx, [esp + 0x1c]
push 0
push edx
lea eax, [esp + 0x1b]
push ebp
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x10016239
mov eax, dword [esp + 0x1c]
test eax, eax
jne 0x1001623b
xor ebp, ebp
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp ebp, 1
jne 0x1001625f
push ebp
push ebx
mov ecx, edi
call fcn.10007e00
test eax, eax
je 0x100162a3
cmp word [edi + 0x6a8], bp
je 0x100162a3
jmp 0x10016272
push 0x80
push ebx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov ecx, dword [esp + 0xac]
mov edx, dword [esp + 0xa4]
push ecx
push edi
push edx
call fcn.100177b0
add esp, 0xc
test eax, eax
je 0x100162a3
push ebx
mov ecx, edi
call fcn.10008ea0
test eax, eax
je 0x100162a3
mov dword [esp + 0x14], 1
mov eax, dword [edi]
push 1
mov ecx, edi
call dword [eax]
mov eax, dword [esp + 0x14]
pop esi
pop ebp
pop edi
pop ebx
add esp, 0x90
ret
pop edi
xor eax, eax
pop ebx
add esp, 0x90
ret
Function at 0x100175a0
Capabilities:
Enumerate files on windows

Disassembly:
sub esp, 0x354
push ebx
push ebp
push esi
mov esi, dword [esp + 0x368]
xor ebp, ebp
push edi
cmp esi, ebp
jne 0x100175c5
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x354
ret
lea eax, [esp + 0x260]
mov dword [esp + 0x18], 1
push eax
mov dword [esp + 0x18], ebp
mov dword [esp + 0x14], ebp
call sym.AlbumBase.dll_ABM_GetShareFolder
add esp, 4
test eax, eax
jne 0x100175f7
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x354
ret
mov ebx, dword [esp + 0x368]
cmp ebx, ebp
je 0x1001761c
mov ebp, dword [esi]
xor eax, eax
mov ecx, ebp
mov edi, ebx
mov edx, ecx
mov dword [esp + 0x10], ebx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov edi, str..abm
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x260]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [esp + 0x1c]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x264]
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x10017674
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x354
ret
test esi, esi
je 0x100176df
mov eax, dword [esp + 0x18]
test eax, eax
je 0x100176df
test byte [esp + 0x1c], 0x10
jne 0x100176cd
lea edx, [esp + 0x15c]
push 0
push edx
push 0
lea eax, [esp + 0x54]
push 0
push eax
call fcn.100110b0
add esp, 0x14
test ebx, ebx
je 0x100176b8
lea ecx, [esp + 0x15c]
push ecx
call fcn.10016640
add esp, 4
jmp 0x100176cd
lea edi, [esp + 0x15c]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea ebp, [ecx + ebp + 1]
lea edx, [esp + 0x1c]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
mov dword [esp + 0x18], eax
jmp 0x10017678
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
test ebx, ebx
je 0x10017771
mov edx, dword [0x1004c60c]
test edx, edx
je 0x10017749
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebx, ecx
inc ebx
cmp ebp, ebx
jl 0x10017749
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
sub ebp, ebx
mov eax, ecx
mov esi, edi
mov edi, dword [esp + 0x10]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
mov edx, dword [edx + 0x104]
add edi, ebx
inc ecx
mov dword [esp + 0x10], edi
test edx, edx
mov dword [esp + 0x14], ecx
jne 0x100176f8
mov ecx, dword [0x1004c60c]
push ecx
call fcn.10016740
mov eax, dword [esp + 0x18]
add esp, 4
mov dword [0x1004c60c], 0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x354
ret
mov edx, dword [esp + 0x36c]
mov eax, dword [esp + 0x14]
inc ebp
pop edi
mov dword [edx], ebp
pop esi
pop ebp
pop ebx
add esp, 0x354
ret