joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10004686
Capabilities:
Delete registry value

Disassembly:
push 0x28
mov eax, 0x10043c7a
call fcn.1002a641
mov esi, ecx
xor ebx, ebx
mov dword [ebp - 0x14], ebx
mov eax, dword [esi + 0x14]
cmp eax, 8
jne 0x1000470b
push str.00000000
mov eax, esi
call fcn.10005cb1
pop ecx
test al, al
jne 0x1000470b
push esi
lea ecx, [ebp - 0x34]
call fcn.100011be
cmp dword [eax + 0x18], 8
pop ecx
jb 0x100046c7
mov eax, dword [eax + 4]
jmp 0x100046ca
add eax, 4
push eax
push str.Softwareprojonepodlpusbmgr_approveds
push 0x80000002
call dword [sym.imp.SHLWAPI.dll_SHDeleteValueW]
push ebx
push 1
lea esi, [ebp - 0x34]
call fcn.10001e8c
push ebx
push ebx
lea eax, [ebp - 0x34]
call fcn.1001b5c1
push eax
push 0x10048f44
mov dword [ebp - 4], 6
push ebx
push dword [ebp + 8]
call fcn.10011e16
add esp, 0x10
jmp 0x1000472f
push ebx
push ebx
lea eax, [ebp - 0x34]
call fcn.1001b5c1
push eax
push 0x10048f48
mov dword [ebp - 4], 3
push 1
push dword [ebp + 8]
call fcn.10011e16
add esp, 0x10
lea esi, [ebp - 0x34]
mov dword [ebp - 0x14], 1
mov byte [ebp - 4], bl
call fcn.1001a924
mov eax, dword [ebp + 8]
call fcn.1002a719
ret

Function at 0x10006412
Capabilities:
Check if file exists

Disassembly:
push ebp
sub esp, 0x42c
lea ebp, [esp - 4]
mov eax, dword [0x10055330]
xor eax, ebp
mov dword [ebp + 0x42c], eax
push 0x44
mov eax, 0x100421fd
call fcn.1002a641
and dword [ebp - 0x18], 0
mov esi, edx
cmp dword [esi + 0x14], 0xc8
mov edi, ecx
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x10], esi
jbe 0x10006460
push 0x100489f8
mov esi, edi
call fcn.10001b24
mov eax, edi
jmp 0x1000654f
xor eax, eax
push 0x40e
push eax
mov word [ebp + 0x1c], ax
lea eax, [ebp + 0x1e]
push eax
call fcn.1002bdc0
add esp, 0xc
push 0x208
lea eax, [ebp + 0x1c]
mov edi, str.cachekvstore
push eax
mov ebx, edi
xor ecx, ecx
call fcn.10012cec
push esi
lea ecx, [ebp - 0x34]
call fcn.100011be
cmp dword [eax + 0x18], 8
pop ecx
jb 0x100064a4
mov eax, dword [eax + 4]
jmp 0x100064a7
add eax, 4
mov ebx, dword [sym.imp.SHLWAPI.dll_PathAppendW]
push eax
lea eax, [ebp + 0x1c]
push eax
call ebx
push 0
push 1
lea esi, [ebp - 0x34]
call fcn.10001e8c
lea eax, [ebp + 0x1c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x10006541
lea eax, [ebp]
push eax
call fcn.100063e1
pop ecx
xor esi, esi
mov dword [ebp - 4], esi
cmp dword [ebp + 0x14], esi
je 0x10006531
cmp dword [ebp + 0x18], 8
mov eax, dword [ebp + 4]
jae 0x100064ee
lea eax, [ebp + 4]
push 0x208
push eax
lea eax, [ebp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
push edi
lea eax, [ebp + 0x1c]
push eax
call ebx
push dword [ebp - 0x10]
lea ecx, [ebp - 0x50]
call fcn.100011be
cmp dword [eax + 0x18], 8
pop ecx
jb 0x1000651c
mov eax, dword [eax + 4]
jmp 0x1000651f
add eax, 4
push eax
lea eax, [ebp + 0x1c]
push eax
call ebx
push esi
push 1
lea esi, [ebp - 0x50]
call fcn.10001e8c
or dword [ebp - 4], 0xffffffff
push 0
push 1
lea esi, [ebp]
call fcn.10001e8c
mov esi, dword [ebp - 0x14]
lea eax, [ebp + 0x1c]
push eax
call fcn.10001b24
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x42c]
xor ecx, ebp
call fcn.10029677
add ebp, 0x430
leave
ret
Function at 0x1000b512
Capabilities:
Delete registry value

Disassembly:
push 0xb0
mov eax, 0x10042606
call fcn.1002a641
sub esp, 0x18
mov dword [ebp - 0x10], esp
mov eax, esp
mov edi, 0x1000b6a7
je 0x1000b53f
mov dword [eax], vtable.std::tr1::_Impl_base1_bool__class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const__.0
mov dword [eax], 0x1004a324
mov dword [eax + 4], edi
mov dword [eax + 0x10], eax
and dword [ebp - 4], 0
lea eax, [ebp - 0x9c]
mov ebx, str.SYSTEMMountedDevices
push eax
mov ecx, ebx
call fcn.10003082
pop ecx
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x7c]
push ecx
mov ecx, eax
mov byte [ebp - 4], 2
call fcn.10010a0a
add esp, 0x1c
lea eax, [ebp - 0x9c]
push eax
mov byte [ebp - 4], 4
call fcn.100052ba
movsx ax, byte [ebp + 8]
movzx eax, ax
push eax
push 0x10048ebc
lea ecx, [ebp - 0x38]
call fcn.1001418c
cmp dword [eax + 0x18], 8
pop ecx
pop ecx
jb 0x1000b5a3
mov eax, dword [eax + 4]
jmp 0x1000b5a6
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_DeleteVolumeMountPointW]
push 0
push 1
lea esi, [ebp - 0x38]
mov dword [ebp + 8], eax
call fcn.10001e8c
cmp dword [ebp + 8], 0
je 0x1000b691
sub esp, 0x18
mov dword [ebp - 0x10], esp
mov eax, esp
je 0x1000b5df
mov dword [eax], vtable.std::tr1::_Impl_base1_bool__class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const__.0
mov dword [eax], 0x1004a324
mov dword [eax + 4], edi
mov dword [eax + 0x10], eax
lea eax, [ebp - 0xbc]
push eax
mov ecx, ebx
mov byte [ebp - 4], 5
call fcn.10003082
pop ecx
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x5c]
push ecx
mov ecx, eax
mov byte [ebp - 4], 7
call fcn.10010a0a
add esp, 0x1c
lea eax, [ebp - 0xbc]
push eax
mov byte [ebp - 4], 9
call fcn.100052ba
lea eax, [ebp - 0x3c]
push eax
lea ecx, [ebp - 0x7c]
lea edx, [ebp - 0x5c]
call fcn.10010ab5
mov eax, dword [ebp - 0x24]
mov edx, dword [ebp - 0x3c]
pop ecx
mov ecx, dword [eax]
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x18], eax
jmp 0x1000b66c
lea esi, [ebp - 0x14]
call fcn.1000e803
cmp dword [eax + 0x18], 8
jb 0x1000b654
mov eax, dword [eax + 4]
jmp 0x1000b657
add eax, 4
push eax
push ebx
push 0x80000002
call dword [sym.imp.SHLWAPI.dll_SHDeleteValueW]
lea esi, [ebp - 0x14]
call fcn.10002aa8
lea edi, [ebp - 0x1c]
lea esi, [ebp - 0x14]
call fcn.10015150
test al, al
je 0x1000b641
lea eax, [ebp - 0x3c]
push eax
call fcn.100052ba
lea eax, [ebp - 0x5c]
push eax
mov byte [ebp - 4], 4
call fcn.100052ba
or dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x7c]
push eax
call fcn.100052ba
mov eax, dword [ebp + 8]
call fcn.1002a719
ret
Function at 0x1000bee1
Capabilities:
Delete registry value

Disassembly:
push 0x78
mov eax, 0x10044bef
call fcn.1002a6aa
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x49]
push eax
push ebx
call fcn.10024252
test al, al
je 0x1000bf0e
push str._TryMountUvs_failed:_UvsIsMountedDrive
call fcn.10011c6b
pop ecx
jmp 0x1000c08a
lea eax, [ebp - 0x49]
push eax
push ebx
lea ecx, [ebp - 0x4a]
mov byte [ebp - 0x4a], 0
mov byte [ebp - 0x49], 0
call fcn.1002417b
test al, al
jne 0x1000bf2e
push str._TryMountUvs_failed:_UvsIsHostDrive
jmp 0x1000bf03
cmp byte [ebp - 0x4a], 0
je 0x1000bf3b
push str._TryMountUvs_failed:_already_mounted
jmp 0x1000bf03
lea eax, [ebp - 0x48]
push ebx
push eax
call fcn.1000bc44
pop ecx
pop ecx
xor esi, esi
mov dword [ebp - 4], esi
cmp dword [ebp - 0x34], esi
jne 0x1000bf62
push 0x100499a4
call fcn.10011c6b
pop ecx
push esi
jmp 0x1000c080
push esi
push esi
lea eax, [ebp - 0x68]
call fcn.1001b5c1
sub esp, 0x18
movsx eax, bl
mov esi, esp
mov dword [ebp - 0x50], esp
push eax
call fcn.1001a675
lea eax, [ebp - 0x68]
push eax
mov edx, str.letter
mov byte [ebp - 4], 4
call fcn.1001b85f
mov edi, eax
mov byte [ebp - 4], 3
call fcn.1001a9a7
sub esp, 0x18
lea edx, [ebp - 0x48]
mov esi, esp
mov dword [ebp - 0x50], esp
call fcn.1001a754
lea eax, [ebp - 0x68]
push eax
mov edx, 0x100496e4
mov byte [ebp - 4], 5
call fcn.1001b85f
mov edi, eax
mov byte [ebp - 4], 3
call fcn.1001a9a7
mov ebx, str.mounted
push ebx
mov edi, str.Softwareprojonepodlpusbmgr_
push edi
push 0x80000002
call dword [sym.imp.SHLWAPI.dll_SHDeleteValueW]
movsx ax, byte [ebp + 8]
movzx eax, ax
push eax
push str.try_mount_vus__c
call fcn.10011995
pop ecx
pop ecx
push str.mount
lea esi, [ebp - 0x84]
call fcn.10001b24
lea eax, [ebp - 0x68]
push eax
mov ecx, esi
mov byte [ebp - 4], 6
call fcn.1000b9e4
pop ecx
push 0
push 1
mov byte [ebp - 4], 3
call fcn.10001e8c
lea eax, [ebp - 0x2c]
push eax
mov edx, ebx
mov ecx, edi
call fcn.10014437
pop ecx
xor edi, edi
mov byte [ebp - 4], 7
cmp dword [ebp - 0x18], edi
jbe 0x1000c068
cmp dword [ebp - 0x14], 8
mov eax, dword [ebp - 0x28]
jae 0x1000c045
lea eax, [ebp - 0x28]
push 0x100499f0
push eax
call dword [sym.imp.KERNEL32.dll_SetVolumeLabelW]
test eax, eax
jne 0x1000c068
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.SetVolumeLabelW_failed:_d
call fcn.10011b00
pop ecx
pop ecx
push edi
push 1
lea esi, [ebp - 0x2c]
call fcn.10001e8c
lea esi, [ebp - 0x68]
mov byte [ebp - 4], 0
call fcn.1001a924
push edi
push 1
lea ecx, [ebp - 0x48]
call fcn.10001d94
xor eax, eax
call fcn.1002a72d
ret
Function at 0x1000c092
Capabilities:
Check if file exists
Get disk information
Get file attributes

Disassembly:
push 0x84
mov eax, 0x10044136
call fcn.1002a6aa
push str.GetTickCount64
push 0x1004a608
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
xor ebx, ebx
cmp eax, ebx
je 0x1000c0c2
call eax
jmp 0x1000c0ca
call dword [sym.imp.KERNEL32.dll_GetTickCount]
xor edx, edx
mov ecx, eax
sub ecx, dword [0x10059150]
mov esi, edx
sbb esi, dword [0x10059154]
mov dword [ebp - 0x38], esi
jne 0x1000c0eb
cmp ecx, 0xbb8
jb 0x1000c274
push str.swvv
mov dword [0x10059150], eax
mov dword [0x10059154], edx
call fcn.100148ec
test eax, eax
je 0x1000c274
lea ecx, [ebp - 0x58]
call fcn.1002693a
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
push ebx
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x18], 0xf
call fcn.100020c7
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x44]
mov eax, dword [eax]
mov ecx, dword [ebp - 0x58]
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x3c]
mov esi, dword [ebp - 0x44]
cmp eax, ebx
je 0x1000c14a
cmp eax, dword [ebp - 0x58]
je 0x1000c14f
call fcn.100299cf
cmp dword [ebp - 0x38], esi
je 0x1000c1e4
lea esi, [ebp - 0x3c]
call fcn.10009f71
add eax, 4
xor edi, edi
call fcn.100051fc
call fcn.10009f71
add eax, 4
cmp dword [eax + 0x18], 0x10
jb 0x1000c17d
mov eax, dword [eax + 4]
jmp 0x1000c180
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x1000c1d7
lea esi, [ebp - 0x3c]
call fcn.10009f71
mov edi, eax
call fcn.10009f71
add eax, 4
cmp dword [eax + 0x18], 0x10
jb 0x1000c1a9
mov eax, dword [eax + 4]
jmp 0x1000c1ac
add eax, 4
movsx ecx, byte [edi]
push ecx
push eax
push 0x10049a30
call fcn.10011b00
add esp, 0xc
lea esi, [ebp - 0x3c]
call fcn.10009f71
movzx eax, byte [eax]
xor ebx, ebx
push eax
inc ebx
lea edi, [ebp - 0x30]
call fcn.1000e66e
xor ebx, ebx
lea esi, [ebp - 0x3c]
call fcn.1000efb3
jmp 0x1000c13b
cmp dword [ebp - 0x1c], ebx
je 0x1000c258
push ebx
push ebx
lea eax, [ebp - 0x74]
call fcn.1001b5c1
sub esp, 0x18
mov byte [ebp - 4], 4
lea edx, [ebp - 0x30]
mov esi, esp
mov dword [ebp - 0x38], esp
call fcn.1001a754
lea eax, [ebp - 0x74]
push eax
mov edx, str.letters
mov byte [ebp - 4], 5
call fcn.1001b85f
mov edi, eax
mov byte [ebp - 4], 4
call fcn.1001a9a7
push str.unmount
lea esi, [ebp - 0x90]
call fcn.10001b24
lea eax, [ebp - 0x74]
push eax
mov ecx, esi
mov byte [ebp - 4], 6
call fcn.1000b9e4
pop ecx
push ebx
push 1
call fcn.10001e8c
lea esi, [ebp - 0x74]
mov byte [ebp - 4], 1
call fcn.1001a924
push ebx
push 1
lea ecx, [ebp - 0x30]
call fcn.10001d94
lea esi, [ebp - 0x58]
call fcn.1000ef6f
push dword [ebp - 0x58]
call fcn.10029a09
pop ecx
call fcn.1002a72d
ret
Function at 0x1000c776
Capabilities:
Get storage device properties

Disassembly:
push 0x4c
mov eax, 0x10041bb7
call fcn.1002a6aa
movsx ax, byte [ebp + 8]
movzx eax, ax
mov edi, ecx
push eax
xor esi, esi
push 0x10049ad8
lea ecx, [ebp - 0x38]
mov dword [ebp - 0x3c], edi
mov dword [ebp - 0x44], esi
call fcn.1001418c
pop ecx
pop ecx
mov dword [ebp - 4], esi
cmp dword [ebp - 0x20], 8
mov eax, dword [ebp - 0x34]
jae 0x1000c7b3
lea eax, [ebp - 0x34]
push esi
push esi
push 3
push esi
push 3
push esi
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ecx, eax
mov dword [ebp - 0x40], ecx
mov byte [ebp - 4], 1
cmp ecx, esi
je 0x1000c7d4
cmp ecx, 0xffffffff
jne 0x1000c7fa
push 0x10048cb8
mov ecx, edi
call fcn.10001ad2
lea eax, [ebp - 0x40]
call fcn.1000a76d
push esi
push 1
lea esi, [ebp - 0x38]
call fcn.10001e8c
mov eax, edi
jmp 0x1000c8c6
xor eax, eax
mov dword [ebp - 0x1c], esi
lea edi, [ebp - 0x18]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor eax, eax
push esi
mov dword [ebp - 0x4c], esi
lea edi, [ebp - 0x48]
stosd dword es:[edi], eax
mov edi, dword [sym.imp.KERNEL32.dll_DeviceIoControl]
lea eax, [ebp - 0x44]
push eax
push 8
lea eax, [ebp - 0x4c]
push eax
push 0xc
lea eax, [ebp - 0x1c]
push eax
mov ebx, 0x2d1400
push ebx
push ecx
mov dword [ebp - 0x44], esi
call edi
test eax, eax
jne 0x1000c843
mov ecx, dword [ebp - 0x3c]
push 0x10048cb8
call fcn.10001ad2
jmp 0x1000c8b0
mov dword [ebp - 0x58], vtable.MemoryHolder_unsigned_char_.0
mov dword [ebp - 0x54], esi
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x48]
push eax
mov dword [ebp - 0x50], eax
call fcn.1002966c
pop ecx
push esi
lea ecx, [ebp - 0x44]
push ecx
push dword [ebp - 0x48]
mov dword [ebp - 0x54], eax
push eax
push 0xc
lea eax, [ebp - 0x1c]
push eax
push ebx
push dword [ebp - 0x40]
call edi
test eax, eax
jne 0x1000c891
mov ecx, dword [ebp - 0x3c]
push 0x10048cb8
call fcn.10001ad2
cmp dword [ebp - 0x54], esi
je 0x1000c8b0
push dword [ebp - 0x54]
jmp 0x1000c8aa
mov edi, dword [ebp - 0x54]
mov eax, dword [edi + 0x18]
add eax, edi
jne 0x1000c8a0
mov eax, 0x10048cb8
mov ecx, dword [ebp - 0x3c]
push eax
call fcn.10001ad2
push edi
call fcn.10029f23
pop ecx
lea eax, [ebp - 0x40]
call fcn.1000a76d
push esi
push 1
lea esi, [ebp - 0x38]
call fcn.10001e8c
mov eax, dword [ebp - 0x3c]
call fcn.1002a72d
ret
Function at 0x10011dd6
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
and dword [ebp - 4], 0
push edi
lea eax, [ebp - 4]
push eax
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov edi, eax
test edi, edi
je 0x10011e0f
push dword [ebp + 0x10]
push dword [ebp - 4]
push str.thread__d_created:__s
call fcn.10011995
add esp, 0xc
mov eax, edi
pop edi
leave
ret 0xc
Function at 0x1001232c
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 [0x10055330]
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 0x10012551
test eax, eax
jne 0x1001237d
test ecx, ecx
je 0x10012551
movzx eax, word [esi + 2]
mov edi, dword [sym.imp.SHLWAPI.dll_PathAppendW]
cmp ax, 0x3a
je 0x100123d3
cmp ax, 0x5c
je 0x100123d3
xor eax, eax
push 0x40e
push eax
mov word [ebp - 0x828], ax
lea eax, [ebp - 0x826]
push eax
call fcn.1002bdc0
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 0x10012551
test al, 0x10
je 0x10012551
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcpyW]
push esi
lea eax, [ebp - 0x418]
push eax
call ebx
push 0x1004a5f8
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 0x10012551
mov dword [ebp - 0xa7c], 1
push 0x1004a5fc
lea eax, [ebp - 0xa4c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x10012516
push 0x1004a600
lea eax, [ebp - 0xa4c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x10012516
cmp dword [ebp - 0xa78], 0xffffffff
je 0x10012516
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 0x100124f6
cmp dword [ebp - 0xa80], 0
je 0x100124ba
push dword [ebp - 0xa8c]
lea eax, [ebp - 0x210]
push eax
call dword [ebp - 0xa80]
test eax, eax
je 0x10012533
cmp dword [ebp + 0xc], 0
je 0x10012516
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.1001232c
push 2
pop ecx
cmp eax, ecx
jne 0x10012516
mov dword [ebp - 0xa7c], ecx
jmp 0x1001253d
cmp dword [ebp - 0xa84], 0
je 0x10012516
push dword [ebp - 0xa88]
lea eax, [ebp - 0x210]
push eax
call dword [ebp - 0xa84]
test eax, eax
je 0x10012533
lea eax, [ebp - 0xa78]
push eax
push dword [ebp - 0xa90]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x10012436
jmp 0x1001253d
mov dword [ebp - 0xa7c], 2
push dword [ebp - 0xa90]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0xa7c]
jmp 0x10012553
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10029677
leave
ret 0x18
Function at 0x10012564
Capabilities:
Enumerate files on windows

Disassembly:
push 0x6bc
mov eax, 0x1004203d
call fcn.1002a6aa
and dword [ebp - 0x678], 0
lea eax, [ebp - 0x6a0]
mov ebx, ecx
mov edi, edx
push eax
mov dword [ebp - 0x67c], ebx
mov dword [ebp - 0x680], edi
call fcn.10001be2
xor esi, esi
inc esi
mov dword [ebp - 4], esi
test edi, edi
jne 0x100125b1
push ebx
lea ecx, [ebp - 0x6a0]
call fcn.10005da2
jmp 0x100126c6
push edi
mov edi, dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea eax, [ebp - 0x218]
push eax
call edi
push str..________.dirty
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x670]
push eax
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x674], eax
cmp eax, 0xffffffff
je 0x100126ba
push 0x1004a5fc
lea eax, [ebp - 0x644]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x10012693
push 0x1004a600
lea eax, [ebp - 0x644]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x10012693
cmp dword [ebp - 0x670], 0xffffffff
je 0x10012693
push dword [ebp - 0x680]
lea eax, [ebp - 0x420]
push eax
call edi
lea eax, [ebp - 0x644]
push eax
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x420]
push eax
lea esi, [ebp - 0x6bc]
call fcn.10001b24
mov eax, esi
push eax
lea eax, [ebp - 0x6a0]
push eax
lea ebx, [ebp - 0x6c8]
mov byte [ebp - 4], 2
call fcn.100060fb
push 0
push 1
mov byte [ebp - 4], 1
call fcn.10001e8c
mov ebx, dword [ebp - 0x67c]
xor esi, esi
inc esi
lea eax, [ebp - 0x670]
push eax
push dword [ebp - 0x674]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x100125f6
push dword [ebp - 0x674]
call dword [sym.imp.KERNEL32.dll_FindClose]
push ebx
lea ecx, [ebp - 0x6a0]
call fcn.10005da2
lea eax, [ebp - 0x6a0]
push eax
mov dword [ebp - 0x678], esi
mov byte [ebp - 4], 0
call fcn.100052ba
mov eax, ebx
call fcn.1002a72d
ret
Function at 0x100126e4
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x420
mov eax, dword [0x10055330]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
xor ebx, ebx
push esi
cmp edi, ebx
je 0x100127de
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 0x104
jge 0x100127de
xor eax, eax
push 0x206
mov word [ebp - 0x210], ax
lea eax, [ebp - 0x20e]
push ebx
push eax
call fcn.1002bdc0
add esp, 0xc
lea esi, [ebp - 0x210]
mov ecx, edi
call fcn.100131f4
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1001275b
shr eax, 4
not eax
and eax, 1
jmp 0x100127e0
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x418]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea eax, [ebp - 0x418]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea esi, [ebp - 0x418]
call fcn.100127ee
test eax, eax
je 0x100127de
push ebx
push 0x80
push 2
push ebx
push ebx
push 0x10000000
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x420], eax
cmp eax, ebx
je 0x100127c0
mov dword [ebp - 0x41c], 1
cmp eax, 0xffffffff
jne 0x100127c6
mov dword [ebp - 0x41c], ebx
lea eax, [ebp - 0x420]
call fcn.1000a76d
xor eax, eax
cmp byte [ebp - 0x41c], bl
setne al
jmp 0x100127e0
xor eax, eax
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.10029677
leave
ret
Function at 0x10012af7
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2038
call fcn.1003ce70
mov eax, dword [0x10055330]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
xor ebx, ebx
mov edi, ecx
mov dword [ebp - 0x201c], eax
mov dword [ebp - 0x2020], ebx
cmp edi, ebx
je 0x10012cd5
cmp eax, ebx
je 0x10012cd5
push eax
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x10012b4f
mov dword [ebp - 0x2020], 1
jmp 0x10012cd5
push ebx
push ebx
push 3
push ebx
push ebx
mov esi, 0x80000000
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CreateFileW]
call edi
push ebx
push ebx
push 3
push ebx
push ebx
push esi
push dword [ebp - 0x201c]
mov dword [ebp - 0x2010], eax
call edi
mov esi, dword [ebp - 0x2010]
mov dword [ebp - 0x2014], eax
cmp esi, ebx
je 0x10012cbf
cmp esi, 0xffffffff
je 0x10012cbf
cmp eax, ebx
je 0x10012cbf
cmp eax, 0xffffffff
je 0x10012cbf
xor eax, eax
mov dword [ebp - 0x2034], ebx
lea edi, [ebp - 0x2030]
stosd dword es:[edi], eax
mov dword [ebp - 0x202c], ebx
lea edi, [ebp - 0x2028]
stosd dword es:[edi], eax
mov edi, dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
lea eax, [ebp - 0x2034]
push eax
push esi
call edi
test eax, eax
je 0x10012cbf
lea eax, [ebp - 0x202c]
push eax
push dword [ebp - 0x2014]
call edi
test eax, eax
je 0x10012cbf
mov eax, dword [ebp - 0x2034]
cmp eax, dword [ebp - 0x202c]
jne 0x10012cbf
mov eax, dword [ebp - 0x2030]
cmp eax, dword [ebp - 0x2028]
jne 0x10012cbf
push ebx
lea eax, [ebp - 0x2018]
push eax
push 0x1000
lea eax, [ebp - 0x200c]
push eax
mov dword [ebp - 0x2018], ebx
push esi
jmp 0x10012ca9
cmp dword [ebp - 0x2018], ebx
je 0x10012cb5
push ebx
lea eax, [ebp - 0x201c]
push eax
push dword [ebp - 0x2018]
lea eax, [ebp - 0x100c]
push eax
push dword [ebp - 0x2014]
mov dword [ebp - 0x201c], ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x10012cbf
mov ecx, dword [ebp - 0x2018]
cmp ecx, dword [ebp - 0x201c]
jne 0x10012cbf
lea edi, [ebp - 0x100c]
lea esi, [ebp - 0x200c]
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x10012c8b
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
jne 0x10012cbf
push ebx
lea eax, [ebp - 0x2018]
push eax
push 0x1000
lea eax, [ebp - 0x200c]
push eax
push dword [ebp - 0x2010]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x10012c33
jmp 0x10012cbf
mov dword [ebp - 0x2020], 1
lea eax, [ebp - 0x2014]
call fcn.1000a76d
lea eax, [ebp - 0x2010]
call fcn.1000a76d
mov ecx, dword [ebp - 8]
mov eax, dword [ebp - 0x2020]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10029677
leave
ret 4