joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10019b60
Capabilities:
Delete internet cache
Enumerate internet cache

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [0x100405a0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [sym.imp.WININET.dll_FindFirstUrlCacheEntryW]
push edi
lea eax, [ebp - 8]
xor ebx, ebx
push eax
push ebx
push ebx
mov dword [ebp - 8], ebx
call esi
push dword [ebp - 8]
call fcn.1001fb29
pop ecx
mov edi, eax
lea eax, [ebp - 8]
push eax
push edi
push ebx
call esi
mov esi, eax
test esi, esi
je 0x10019be4
test dword [edi + 0xc], 0x100000
je 0x10019bb0
push dword [edi + 4]
call dword [sym.imp.WININET.dll_DeleteUrlCacheEntryW]
lea eax, [ebp - 8]
push eax
push ebx
push esi
mov dword [ebp - 8], ebx
call dword [sym.imp.WININET.dll_FindNextUrlCacheEntryW]
push edi
call fcn.1001faa2
push dword [ebp - 8]
call fcn.1001fb29
pop ecx
pop ecx
mov edi, eax
lea eax, [ebp - 8]
push eax
push edi
push esi
call dword [sym.imp.WININET.dll_FindNextUrlCacheEntryW]
test eax, eax
jne 0x10019b9e
xor ebx, ebx
inc ebx
test edi, edi
je 0x10019bef
push edi
call fcn.1001faa2
pop ecx
mov ecx, dword [ebp - 4]
pop edi
pop esi
mov eax, ebx
xor ecx, ebp
pop ebx
call fcn.1001f816
leave
ret

Function at 0x10019c00
Capabilities:
Get file size
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x100405a0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
xor eax, eax
push 0x206
mov word [ebp - 0x20c], ax
xor esi, esi
lea eax, [ebp - 0x20a]
push esi
push eax
call fcn.10022310
push 0x2710
call fcn.1001f85d
add esp, 0x10
mov dword [ebp - 0x214], eax
test eax, eax
je 0x10019d24
push 0x2710
push esi
push eax
call fcn.10022310
push edi
mov edi, 0x104
lea eax, [ebp - 0x20c]
push edi
push eax
call fcn.1001faa7
push 0x1003c454
lea eax, [ebp - 0x20c]
push edi
push eax
call fcn.10021692
push ebx
lea eax, [ebp - 0x20c]
push edi
push eax
call fcn.10021692
add esp, 0x30
lea eax, [ebp - 0x20c]
push esi
push 0x80
push 3
push esi
push 3
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x10019d16
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push esi
push esi
push 0x40
push ebx
mov edi, eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
sub edi, 0x40
je 0x10019d0c
mov ecx, 0x2710
push esi
lea eax, [ebp - 0x210]
push eax
cmp edi, ecx
jbe 0x10019cfe
push ecx
push dword [ebp - 0x214]
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, 0x2710
sub edi, ecx
jne 0x10019cd9
jmp 0x10019d0c
push edi
push dword [ebp - 0x214]
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
xor esi, esi
push ebx
inc esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x214]
call fcn.1001f825
pop ecx
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1001f816
leave
ret 8
Function at 0x10019d35
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x66c
mov eax, dword [0x100405a0]
xor eax, esp
mov dword [esp + 0x668], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor eax, eax
mov esi, 0x206
push esi
push eax
mov word [esp + 0x268], ax
lea eax, [esp + 0x26a]
push eax
mov ebx, ecx
call fcn.10022310
xor eax, eax
push esi
push eax
mov word [esp + 0x47c], ax
lea eax, [esp + 0x47e]
push eax
call fcn.10022310
push edi
mov esi, 0x104
lea eax, [esp + 0x484]
push esi
push eax
call fcn.1001faa7
push 0x1003c458
lea eax, [esp + 0x490]
push esi
push eax
call fcn.10021692
add esp, 0x30
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x46c]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x10019dd9
xor eax, eax
jmp 0x10019f56
mov ecx, 0x1003c464
lea eax, [esp + 0x3c]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x10019e08
test dx, dx
je 0x10019e04
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x10019e08
add eax, 4
add ecx, 4
test dx, dx
jne 0x10019de2
xor eax, eax
jmp 0x10019e0d
sbb eax, eax
or eax, 1
test eax, eax
je 0x10019f38
mov ecx, 0x1003c468
lea eax, [esp + 0x3c]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x10019e44
test dx, dx
je 0x10019e40
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x10019e44
add eax, 4
add ecx, 4
test dx, dx
jne 0x10019e1e
xor eax, eax
jmp 0x10019e49
sbb eax, eax
or eax, 1
test eax, eax
je 0x10019f38
cmp dword [ebp + 0xc], 0
jne 0x10019e70
lea eax, [esp + 0x3c]
push str.desktop.ini
push eax
call fcn.100216fe
pop ecx
pop ecx
test eax, eax
je 0x10019f38
push edi
lea eax, [esp + 0x264]
push 0x104
push eax
call fcn.1001faa7
push 0x1003c454
lea eax, [esp + 0x270]
push 0x104
push eax
call fcn.10021692
lea eax, [esp + 0x54]
push eax
lea eax, [esp + 0x27c]
push 0x104
push eax
call fcn.10021692
add esp, 0x24
lea eax, [esp + 0x260]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 1
je 0x10019ed8
and eax, 0xfffffffe
push eax
lea eax, [esp + 0x264]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test byte [esp + 0x10], 0x10
je 0x10019f04
push dword [ebp + 0x10]
lea eax, [esp + 0x264]
push dword [ebp + 0xc]
mov ecx, ebx
push eax
call fcn.10019d35
lea eax, [esp + 0x260]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x10019f38
cmp dword [ebp + 0x10], 0
je 0x10019f2a
lea eax, [esp + 0x3c]
push 0x1003c488
push eax
call fcn.100216fe
pop ecx
pop ecx
test eax, eax
jne 0x10019f2a
lea eax, [esp + 0x3c]
push eax
push edi
call fcn.10019c00
lea eax, [esp + 0x260]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [esp + 0x10]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x10019dd9
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
inc eax
mov ecx, dword [esp + 0x674]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.1001f816
mov esp, ebp
pop ebp
ret 0xc
Function at 0x10019f6d
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push edi
mov edi, ecx
xor esi, esi
cmp byte [edi], 0
mov dword [ebp - 4], esi
mov eax, edi
je 0x10019f8c
xor byte [eax], 0x22
inc eax
cmp byte [eax], 0
jne 0x10019f83
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10019f8f
sub ecx, edx
push ebx
lea eax, [ecx + 1]
push eax
call fcn.1001f85d
mov ebx, eax
pop ecx
test ebx, ebx
je 0x1001a03d
mov ecx, edi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10019fb2
sub ecx, edx
lea eax, [ecx + 1]
push eax
push esi
push ebx
call fcn.10022310
mov ecx, edi
add esp, 0xc
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10019fce
sub ecx, edx
push ecx
mov edx, edi
mov ecx, ebx
call fcn.100010a7
pop ecx
push esi
push esi
push 0xffffffffffffffff
push ebx
push esi
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
add eax, eax
mov dword [ebp - 0xc], eax
add eax, 2
push eax
mov dword [ebp - 8], eax
call fcn.1001f85d
pop ecx
mov dword [ebp - 4], eax
test eax, eax
je 0x1001a032
push dword [ebp - 8]
push esi
push eax
call fcn.10022310
mov eax, dword [ebp - 4]
add esp, 0xc
push dword [ebp - 0xc]
push eax
push 0xffffffffffffffff
push ebx
push esi
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
xor esi, esi
inc esi
test ebx, ebx
je 0x1001a03d
push ebx
call fcn.1001f825
pop ecx
push edi
call fcn.1001f825
mov eax, dword [ebp - 4]
pop ecx
pop ebx
test eax, eax
je 0x1001a051
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
pop edi
mov eax, esi
pop esi
leave
ret 4

Function at 0x1001a059
Capabilities:
Create http request
Read data from internet
Receive data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x74
mov eax, dword [0x100405a0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
xor esi, esi
push esi
push esi
push esi
push esi
push str.IEHost
call dword [sym.imp.WININET.dll_InternetOpenW]
mov edi, eax
test edi, edi
je 0x1001a11c
push esi
push SysReAllocString
push esi
push esi
push ebx
push edi
call dword [sym.imp.WININET.dll_InternetOpenUrlW]
mov ebx, eax
test ebx, ebx
je 0x1001a113
push 0x500000
call fcn.1001f85d
mov dword [esp], 0x500000
push esi
push eax
mov dword [ebp - 0x70], eax
call fcn.10022310
add esp, 0xc
lea eax, [ebp - 0x6c]
push eax
push 0x64
lea eax, [ebp - 0x68]
push eax
push ebx
mov dword [ebp - 0x6c], esi
call dword [sym.imp.WININET.dll_InternetReadFile]
mov eax, dword [ebp - 0x6c]
mov esi, dword [ebp - 0x70]
test eax, eax
je 0x1001a10c
push eax
lea eax, [ebp - 0x68]
push eax
push esi
call fcn.1002d940
add esi, dword [ebp - 0x6c]
add esp, 0xc
lea eax, [ebp - 0x6c]
push eax
push 0x64
lea eax, [ebp - 0x68]
push eax
push ebx
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x1001a109
mov eax, dword [ebp - 0x6c]
test eax, eax
jne 0x1001a0dc
mov esi, dword [ebp - 0x70]
push ebx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
push edi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1001f816
leave
ret 4
Function at 0x1001a12d
Capabilities:
Get common file path
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x100405a0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, dword [ebp + 0xc]
xor eax, eax
push 0x206
xor esi, esi
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push esi
push eax
mov dword [ebp - 0x214], ebx
mov dword [ebp - 0x210], edi
call fcn.10022310
add esp, 0xc
lea eax, [ebp - 0x20c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push edi
push esi
push str._
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
push esi
push esi
push esi
push esi
push 0xffffffffffffffff
push ebx
push esi
push esi
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
lea ebx, [eax + 1]
push ebx
mov dword [ebp - 0x218], eax
call fcn.1001f85d
mov edi, eax
pop ecx
test edi, edi
jne 0x1001a1cf
push ebx
push esi
push esi
call fcn.10022310
add esp, 0xc
xor eax, eax
jmp 0x1001a23e
push esi
push esi
push dword [ebp - 0x218]
push edi
push 0xffffffffffffffff
push dword [ebp - 0x214]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push esi
push esi
push 2
push esi
push 7
push 0x40000000
push dword [ebp - 0x210]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x1001a22e
mov ecx, edi
mov dword [ebp - 0x210], esi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1001a212
push esi
lea eax, [ebp - 0x210]
push eax
sub ecx, edx
push ecx
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov esi, eax
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call fcn.1001f825
pop ecx
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1001f816
leave
ret 8
Function at 0x1001a861
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x100405a0]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
xor ebx, ebx
push ebx
push 0x80
push 3
mov dword [ebp - 0x14], ecx
push ebx
xor ecx, ecx
inc ecx
push ecx
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x1001a8a6
xor eax, eax
jmp 0x1001a943
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
mov dword [ebp - 0xc], ebx
cmp ebx, 0xffffffff
jne 0x1001a8c1
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1001a89f
call fcn.10024070
mov esi, esp
push 0
lea eax, [ebp - 0xc]
push eax
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0xa
pop eax
mov word [ebp - 8], ax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 8]
push eax
xor edi, edi
xor ebx, ebx
push esi
jmp 0x1001a935
lea ecx, [ebx - 1]
dec ecx
jne 0x1001a925
test eax, eax
je 0x1001a92a
mov ecx, eax
call fcn.1001a807
mov esi, eax
test esi, esi
je 0x1001a92a
push dword [ebp - 0x14]
push esi
call fcn.100213fb
test eax, eax
push 1
pop eax
push esi
cmovne edi, eax
call fcn.1001f825
add esp, 0xc
cmp ebx, 3
je 0x1001a941
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 8]
push eax
inc ebx
push 0
call fcn.10021e83
add esp, 0xc
test eax, eax
jne 0x1001a8f4
mov eax, edi
lea esp, [ebp - 0x20]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1001f816
leave
ret 8
Function at 0x1001a957
Capabilities:
Delete file
Enumerate files on windows
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x874
mov eax, dword [0x100405a0]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
xor eax, eax
push 0x206
mov word [ebp - 0x41c], ax
xor esi, esi
lea eax, [ebp - 0x41a]
push esi
push eax
call fcn.10022310
add esp, 0xc
lea eax, [ebp - 0x41c]
push esi
push 0x21
push eax
push esi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
jne 0x1001a9ab
xor eax, eax
jmp 0x1001aa56
lea eax, [ebp - 0x41c]
push eax
lea eax, [ebp - 0x624]
push str._s.txt
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea eax, [ebp - 0x874]
push eax
lea eax, [ebp - 0x624]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x1001a9a4
lea eax, [ebp - 0x41c]
push eax
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push 0x1003c454
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
lea eax, [ebp - 0x848]
push eax
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
push ebx
lea eax, [ebp - 0x214]
push eax
call fcn.1001a861
test eax, eax
je 0x1001aa3a
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [ebp - 0x874]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x1001a9e2
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
inc eax
mov ecx, dword [ebp - 8]
pop esi
xor ecx, ebp
pop ebx
call fcn.1001f816
leave
ret 4
Function at 0x1001aa66
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
mov eax, dword [0x100405a0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
lea eax, [ebp - 0x30]
push eax
mov dword [ebp - 0x44], ecx
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push 1
lea eax, [ebp - 0x2c]
push eax
mov ebx, ecx
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x34], ecx
mov esi, ecx
mov dword [ebp - 0x2c], ecx
mov word [ebp - 0x28], 0x100
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x1001ab41
push 8
pop ecx
xor eax, eax
lea edi, [ebp - 0x24]
rep stosd dword es:[edi], eax
mov eax, dword [ebp - 0x30]
mov dword [ebp - 8], eax
lea eax, [ebp - 0x34]
push eax
xor edi, edi
push edi
lea eax, [ebp - 0x24]
push eax
push 1
mov dword [ebp - 0x24], 0x1f01ff
mov dword [ebp - 0x20], 2
mov dword [ebp - 0x1c], 3
mov dword [ebp - 0x10], edi
mov dword [ebp - 0xc], 5
call dword [sym.imp.ADVAPI32.dll_SetEntriesInAclW]
test eax, eax
jne 0x1001ab41
push 0x14
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, eax
test esi, esi
je 0x1001ab41
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
test eax, eax
je 0x1001ab41
push edi
push dword [ebp - 0x34]
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
test eax, eax
je 0x1001ab41
lea eax, [ebp - 0x40]
push eax
push dword [ebp - 0x44]
mov dword [ebp - 0x40], 0xc
mov dword [ebp - 0x3c], esi
mov dword [ebp - 0x38], edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ebx, eax
cmp dword [ebp - 0x30], 0
je 0x1001ab50
push dword [ebp - 0x30]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
cmp dword [ebp - 0x34], 0
mov edi, dword [sym.imp.KERNEL32.dll_LocalFree]
je 0x1001ab61
push dword [ebp - 0x34]
call edi
test esi, esi
je 0x1001ab68
push esi
call edi
test ebx, ebx
jne 0x1001ab78
push ebx
push dword [ebp - 0x44]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ebx, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
mov eax, ebx
xor ecx, ebp
pop ebx
call fcn.1001f816
leave
ret
Function at 0x1001aef5
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x670
mov eax, dword [0x100405a0]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
xor eax, eax
mov ebx, 0x206
push ebx
push eax
mov word [ebp - 0x41c], ax
lea eax, [ebp - 0x41a]
push eax
mov dword [ebp - 0x670], ecx
call fcn.10022310
add esp, 0xc
lea eax, [ebp - 0x41c]
push esi
push str._s
push eax
call fcn.1001c904
add esp, 0xc
lea eax, [ebp - 0x66c]
push eax
lea eax, [ebp - 0x41c]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x1001b0bb
xor eax, eax
push ebx
push eax
mov word [ebp - 0x214], ax
lea eax, [ebp - 0x212]
push eax
call fcn.10022310
mov ebx, dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
add esp, 0xc
mov ecx, 0x1003c464
lea eax, [ebp - 0x640]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x1001afb8
test dx, dx
je 0x1001afb4
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x1001afb8
add eax, 4
add ecx, 4
test dx, dx
jne 0x1001af92
xor eax, eax
jmp 0x1001afbd
sbb eax, eax
or eax, 1
test eax, eax
je 0x1001b089
mov ecx, 0x1003c468
lea eax, [ebp - 0x640]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x1001aff6
test dx, dx
je 0x1001aff2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x1001aff6
add eax, 4
add ecx, 4
test dx, dx
jne 0x1001afd0
xor eax, eax
jmp 0x1001affb
sbb eax, eax
or eax, 1
test eax, eax
je 0x1001b089
push esi
lea eax, [ebp - 0x214]
push 0x104
push eax
call fcn.1001faa7
add esp, 0xc
lea eax, [ebp - 0x214]
push 0x1003c454
push 0x104
push eax
call fcn.10021692
add esp, 0xc
lea eax, [ebp - 0x640]
push eax
lea eax, [ebp - 0x214]
push 0x104
push eax
call fcn.10021692
add esp, 0xc
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
and eax, 0xfffffffe
push eax
lea eax, [ebp - 0x214]
push eax
call ebx
test byte [ebp - 0x66c], 0x10
lea eax, [ebp - 0x214]
push eax
je 0x1001b083
mov ecx, dword [ebp - 0x670]
call fcn.1001aef5
jmp 0x1001b089
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [ebp - 0x66c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x1001af87
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
and eax, 0xfffffffe
push eax
push esi
call ebx
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1001f816
leave
ret 4
Function at 0x1001b0cc
Capabilities:
Enumerate files on windows
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x874
mov eax, dword [0x100405a0]
xor eax, esp
mov dword [esp + 0x870], eax
push ebx
push esi
push edi
mov edi, dword [0x10067e8c]
xor eax, eax
mov esi, 0x206
push esi
mov word [esp + 0x46c], ax
xor ebx, ebx
lea eax, [esp + 0x46e]
push ebx
push eax
call fcn.10022310
add esp, 0xc
lea eax, [esp + 0x468]
push ebx
push 0x1a
push eax
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x1001b2b3
push str.MacromediaFlash_PlayerSharedObjects
lea eax, [esp + 0x46c]
push 0x104
push eax
call fcn.10021692
add esp, 0xc
xor eax, eax
push esi
mov word [esp + 0x674], ax
lea eax, [esp + 0x676]
push ebx
push eax
call fcn.10022310
add esp, 0xc
lea eax, [esp + 0x468]
push eax
lea eax, [esp + 0x674]
push str._s
push eax
call fcn.1001c904
add esp, 0xc
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x674]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x1001b2b3
xor eax, eax
push 0x206
mov word [esp + 0x264], ax
lea eax, [esp + 0x266]
push ebx
push eax
call fcn.10022310
add esp, 0xc
mov ecx, 0x1003c464
lea eax, [esp + 0x3c]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x1001b1ec
test dx, dx
je 0x1001b1e8
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x1001b1ec
add eax, 4
add ecx, 4
test dx, dx
jne 0x1001b1c6
mov eax, ebx
jmp 0x1001b1f1
sbb eax, eax
or eax, 1
test eax, eax
je 0x1001b298
mov ecx, 0x1003c468
lea eax, [esp + 0x3c]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x1001b228
test dx, dx
je 0x1001b224
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x1001b228
add eax, 4
add ecx, 4
test dx, dx
jne 0x1001b202
mov eax, ebx
jmp 0x1001b22d
sbb eax, eax
or eax, 1
test eax, eax
je 0x1001b298
test byte [esp + 0x10], 0x10
je 0x1001b298
lea eax, [esp + 0x468]
push eax
lea eax, [esp + 0x264]
push 0x104
push eax
call fcn.1001faa7
add esp, 0xc
lea eax, [esp + 0x260]
push 0x1003c454
push 0x104
push eax
call fcn.10021692
add esp, 0xc
lea eax, [esp + 0x3c]
push eax
lea eax, [esp + 0x264]
push 0x104
push eax
call fcn.10021692
add esp, 0xc
lea eax, [esp + 0x260]
push eax
mov ecx, edi
call fcn.1001aef5
lea eax, [esp + 0x10]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x1001b1bd
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [esp + 0x87c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.1001f816
mov esp, ebp
pop ebp
ret
Function at 0x1001b2c8
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x66c
mov eax, dword [0x100405a0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x418], ax
lea eax, [ebp - 0x416]
push eax
mov dword [ebp - 0x66c], ecx
call fcn.10022310
add esp, 0xc
lea eax, [ebp - 0x418]
push edi
push str._s
push eax
call fcn.1001c904
add esp, 0xc
lea eax, [ebp - 0x668]
push eax
lea eax, [ebp - 0x418]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x1001b466
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x210], ax
lea eax, [ebp - 0x20e]
push eax
call fcn.10022310
add esp, 0xc
mov ecx, 0x1003c464
lea eax, [ebp - 0x63c]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x1001b38b
test dx, dx
je 0x1001b387
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x1001b38b
add eax, 4
add ecx, 4
test dx, dx
jne 0x1001b365
xor eax, eax
jmp 0x1001b390
sbb eax, eax
or eax, 1
test eax, eax
je 0x1001b449
mov ecx, 0x1003c468
lea eax, [ebp - 0x63c]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x1001b3c9
test dx, dx
je 0x1001b3c5
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x1001b3c9
add eax, 4
add ecx, 4
test dx, dx
jne 0x1001b3a3
xor eax, eax
jmp 0x1001b3ce
sbb eax, eax
or eax, 1
test eax, eax
je 0x1001b449
test byte [ebp - 0x668], 0x10
je 0x1001b449
lea eax, [ebp - 0x63c]
push ebx
push eax
call fcn.100213fb
pop ecx
pop ecx
test eax, eax
je 0x1001b449
push edi
lea eax, [ebp - 0x210]
push 0x104
push eax
call fcn.1001faa7
add esp, 0xc
lea eax, [ebp - 0x210]
push 0x1003c454
push 0x104
push eax
call fcn.10021692
add esp, 0xc
lea eax, [ebp - 0x63c]
push eax
lea eax, [ebp - 0x210]
push 0x104
push eax
call fcn.10021692
mov ecx, dword [ebp - 0x66c]
add esp, 0xc
lea eax, [ebp - 0x210]
push eax
call fcn.1001aef5
lea eax, [ebp - 0x668]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x1001b35a
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1001f816
leave
ret 8