joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10011085
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Move file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x668
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
cmp esi, ebx
je 0x10011290
push esi
call fcn.10042d96
test eax, eax
pop ecx
je 0x10011290
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 4]
push ebx
push eax
push esi
mov dword [ebp - 4], ebx
call fcn.1000e9ab
add esp, 0x1c
test eax, eax
je 0x10011290
cmp dword [ebp - 4], 0xffffffff
je 0x10011290
test byte [ebp - 4], 1
je 0x100110e7
and dword [ebp - 4], 0xfffffffe
push dword [ebp - 4]
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test byte [ebp - 4], 0x10
je 0x10011274
test byte [ebp - 3], 4
je 0x1001110a
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
je 0x1001110a
push 1
pop eax
jmp 0x10011292
mov esi, 0x81
push edi
mov ecx, esi
xor eax, eax
lea edi, [ebp - 0x666]
mov word [ebp - 0x668], bx
push dword [ebp + 8]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x668]
push eax
call fcn.10042d71
lea eax, [ebp - 0x668]
push 0x1023dacc
push eax
call fcn.10042d47
mov ecx, 0x93
xor eax, eax
lea edi, [ebp - 0x254]
mov dword [ebp - 0x258], ebx
add esp, 0x10
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x258]
push eax
lea eax, [ebp - 0x668]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
mov dword [ebp - 8], eax
je 0x10011259
mov edi, dword [sym.imp.KERNEL32.dll_lstrcmpW]
lea eax, [ebp - 0x22c]
push 0x10242c2c
push eax
call edi
test eax, eax
je 0x10011238
lea eax, [ebp - 0x22c]
push 0x10242c28
push eax
call edi
test eax, eax
je 0x10011238
mov ecx, esi
xor eax, eax
lea edi, [ebp - 0x45e]
mov word [ebp - 0x460], bx
push dword [ebp + 8]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x460]
push eax
call fcn.10042d71
lea eax, [ebp - 0x460]
push 0x1023b44c
push eax
call fcn.10042d47
lea eax, [ebp - 0x22c]
push eax
lea eax, [ebp - 0x460]
push eax
call fcn.10042d47
add esp, 0x18
test byte [ebp - 0x257], 4
je 0x10011227
test byte [ebp - 0x231], 0x20
jne 0x10011218
cmp dword [ebp - 0x234], reloc.OLEAUT32.dll_DispGetParam
jne 0x10011227
lea eax, [ebp - 0x460]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x10011238
push dword [ebp + 0xc]
lea eax, [ebp - 0x460]
push eax
call fcn.10011085
pop ecx
pop ecx
lea eax, [ebp - 0x258]
push eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x1001117d
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FindClose]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
cmp eax, ebx
pop edi
jne 0x10011292
cmp dword [ebp + 0xc], ebx
je 0x10011292
push 4
push ebx
push dword [ebp + 8]
jmp 0x10011288
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp eax, ebx
jne 0x10011292
cmp dword [ebp + 0xc], ebx
je 0x10011292
push 4
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
jmp 0x10011292
xor eax, eax
pop esi
pop ebx
leave
ret
Function at 0x10011296
Capabilities:
Enumerate files on windows
Enumerate files recursively
Move file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x668
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
cmp esi, ebx
je 0x10011432
push esi
call fcn.10042d96
test eax, eax
pop ecx
je 0x10011432
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 4]
push ebx
push eax
push esi
mov dword [ebp - 4], ebx
call fcn.1000e9ab
add esp, 0x1c
test eax, eax
je 0x10011432
cmp dword [ebp - 4], 0xffffffff
je 0x10011432
test byte [ebp - 4], 1
je 0x100112f8
and dword [ebp - 4], 0xfffffffe
push dword [ebp - 4]
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test byte [ebp - 4], 0x10
je 0x10011426
mov esi, 0x81
push edi
mov ecx, esi
xor eax, eax
lea edi, [ebp - 0x666]
mov word [ebp - 0x668], bx
push dword [ebp + 8]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x668]
push eax
call fcn.10042d71
lea eax, [ebp - 0x668]
push 0x1023dacc
push eax
call fcn.10042d47
mov ecx, 0x93
xor eax, eax
lea edi, [ebp - 0x45c]
mov dword [ebp - 0x460], ebx
add esp, 0x10
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x460]
push eax
lea eax, [ebp - 0x668]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
mov dword [ebp - 8], eax
je 0x10011417
mov edi, dword [sym.imp.KERNEL32.dll_lstrcmpW]
lea eax, [ebp - 0x434]
push 0x10242c2c
push eax
call edi
test eax, eax
je 0x100113f6
lea eax, [ebp - 0x434]
push 0x10242c28
push eax
call edi
test eax, eax
je 0x100113f6
mov ecx, esi
xor eax, eax
lea edi, [ebp - 0x20e]
mov word [ebp - 0x210], bx
push dword [ebp + 8]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x210]
push eax
call fcn.10042d71
lea eax, [ebp - 0x210]
push 0x1023b44c
push eax
call fcn.10042d47
lea eax, [ebp - 0x434]
push eax
lea eax, [ebp - 0x210]
push eax
call fcn.10042d47
lea eax, [ebp - 0x210]
push eax
call fcn.10011296
add esp, 0x1c
lea eax, [ebp - 0x460]
push eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x10011375
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FindClose]
push 4
push ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
pop edi
jmp 0x10011434
push 4
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
jmp 0x10011434
xor eax, eax
pop esi
pop ebx
leave
ret
Function at 0x100118a9
Capabilities:
Check for time delay via gettickcount
Check if file exists
Copy file
Get file attributes
Move file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x404
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push edi
push dword [ebp + 8]
call esi
cmp eax, 0xffffffff
je 0x10011970
mov ebx, dword [ebp + 0xc]
push ebx
call esi
cmp eax, 0xffffffff
mov dword [ebp - 4], eax
je 0x10011987
test al, 1
je 0x100118ec
and al, 0xfe
push eax
push ebx
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test byte [ebp - 4], 0x10
je 0x10011987
and word [ebp - 0x404], 0
mov ecx, 0xff
xor eax, eax
lea edi, [ebp - 0x402]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call edi
push eax
push ebx
mov ebx, str._s.bak_08X
lea eax, [ebp - 0x404]
push ebx
push eax
call fcn.10043207
and dword [ebp - 4], 0
add esp, 0x10
lea eax, [ebp - 0x404]
push eax
call esi
cmp eax, 0xffffffff
je 0x10011974
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
call edi
push eax
lea eax, [ebp - 0x404]
push dword [ebp + 0xc]
push ebx
push eax
call fcn.10043207
add esp, 0x10
lea eax, [ebp - 0x404]
push eax
call esi
inc dword [ebp - 4]
cmp dword [ebp - 4], 0xa
jl 0x1001193b
xor eax, eax
jmp 0x1001199f
lea eax, [ebp - 0x404]
push eax
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_MoveFileW]
mov ebx, dword [ebp + 0xc]
push dword [ebp + 0x10]
push ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CopyFileW]
push ebx
mov esi, eax
call fcn.1001315a
pop ecx
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x100119a4
Capabilities:
Check for time delay via gettickcount
Check if file exists
Copy file
Get file attributes
Move file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x404
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push edi
push dword [ebp + 8]
call esi
cmp eax, 0xffffffff
je 0x10011a6b
mov ebx, dword [ebp + 0xc]
push ebx
call esi
cmp eax, 0xffffffff
mov dword [ebp - 4], eax
je 0x10011a82
test al, 1
je 0x100119e7
and al, 0xfe
push eax
push ebx
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test byte [ebp - 4], 0x10
je 0x10011a82
and word [ebp - 0x404], 0
mov ecx, 0xff
xor eax, eax
lea edi, [ebp - 0x402]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call edi
push eax
push ebx
mov ebx, str._s.bak_08X
lea eax, [ebp - 0x404]
push ebx
push eax
call fcn.10043207
and dword [ebp - 4], 0
add esp, 0x10
lea eax, [ebp - 0x404]
push eax
call esi
cmp eax, 0xffffffff
je 0x10011a6f
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
call edi
push eax
lea eax, [ebp - 0x404]
push dword [ebp + 0xc]
push ebx
push eax
call fcn.10043207
add esp, 0x10
lea eax, [ebp - 0x404]
push eax
call esi
inc dword [ebp - 4]
cmp dword [ebp - 4], 0xa
jl 0x10011a36
xor eax, eax
jmp 0x10011a9a
lea eax, [ebp - 0x404]
push eax
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_MoveFileW]
mov ebx, dword [ebp + 0xc]
push dword [ebp + 0x10]
push ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CopyFileW]
push ebx
mov esi, eax
call fcn.10013194
pop ecx
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x10012028
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
call fcn.10070f50
test eax, eax
je 0x10012045
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowTextW]
pop ebp
ret
push ebx
xor ebx, ebx
cmp dword [ebp + 0xc], ebx
push esi
push edi
je 0x100120ae
mov esi, dword [ebp + 0x10]
cmp esi, ebx
je 0x100120ae
lea eax, [esi + esi]
push eax
push ebx
push dword [ebp + 0xc]
call fcn.100432f0
push esi
call fcn.101d5034
mov edi, eax
add esp, 0x10
test edi, edi
je 0x100120ae
push esi
push ebx
push edi
call fcn.100432f0
add esp, 0xc
push esi
push edi
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ebx, eax
test ebx, ebx
je 0x100120ae
push esi
xor ebx, ebx
push dword [ebp + 0xc]
push 0xffffffffffffffff
push edi
call fcn.1003570a
add esp, 0x10
test eax, eax
je 0x100120ae
push dword [ebp + 0xc]
call fcn.10042d96
pop ecx
mov ebx, eax
pop edi
mov eax, ebx
pop esi
pop ebx
pop ebp
ret
Function at 0x100120fb
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
mov esi, dword [ebp + 0xc]
xor ebx, ebx
push edi
mov dword [ebp - 8], ebx
mov edi, 0x200
mov dword [ebp - 0xc], ebx
mov dword [ebp - 4], ebx
cmp dword [ebp - 4], 1
jne 0x10012122
mov edi, 0x400
cmp dword [ebp - 4], 2
jne 0x10012162
xor eax, eax
lea edi, [ebp - 0x20]
mov dword [ebp - 0x24], ebx
push ebx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp + 0xc]
mov dword [ebp + 0xc], ebx
push eax
lea eax, [ebp - 0x24]
push 0x18
push eax
push ebx
push ebx
push 0x70000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x100121ac
mov edi, dword [ebp - 0x10]
cmp edi, 0x200
jb 0x100121ac
push edi
call fcn.101d5034
push edi
push ebx
push eax
mov dword [esi], eax
call fcn.100432f0
add esp, 0x10
lea eax, [ebp - 0xc]
push ebx
push eax
push edi
push dword [esi]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp eax, ebx
mov dword [ebp - 8], eax
jne 0x100121a4
push dword [esi]
call fcn.101d505d
inc dword [ebp - 4]
pop ecx
cmp dword [ebp - 4], 3
mov dword [esi], ebx
jl 0x10012117
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp - 0xc]
mov dword [eax], ecx
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x100121b4
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
and word [ebp - 0x210], 0
push esi
push edi
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x20e]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov esi, 0x1023f010
lea edi, [ebp - 8]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov esi, dword [ebp + 8]
xor edi, edi
test esi, esi
je 0x100121f1
cmp esi, 1
jne 0x100121ff
call fcn.10070f00
test eax, eax
jne 0x100121ff
push 4
pop edi
jmp 0x1001226a
lea eax, [ebp - 0x210]
push 0x103
push eax
lea eax, [ebp - 8]
add esi, 0x41
push eax
mov word [ebp - 8], si
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
test eax, eax
jbe 0x10012268
cmp eax, 0x104
jae 0x10012268
lea eax, [ebp - 0x210]
push eax
call fcn.10044495
lea eax, [ebp - 0x210]
mov dword [esp], str.cdrom
push eax
call fcn.10044219
pop ecx
test eax, eax
pop ecx
je 0x1001224f
push 5
pop edi
lea eax, [ebp - 0x210]
push str.floppy
push eax
call fcn.10044219
pop ecx
test eax, eax
pop ecx
je 0x1001226a
jmp 0x100121fa
xor edi, edi
mov eax, edi
pop edi
pop esi
leave
ret
Function at 0x10012270
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 0xc]
push esi
xor esi, esi
xor eax, eax
cmp ebx, esi
je 0x100123ee
cmp dword [ebp + 0x10], 0x200
jne 0x100123ee
push edi
push 7
pop ecx
lea edi, [ebp - 0x2a]
mov word [ebp - 0x2c], si
push 0x20
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x2c]
push esi
push eax
mov dword [ebp - 4], esi
mov dword [ebp + 0x10], esi
call fcn.100432f0
mov eax, dword [0x10241f8c]
add esp, 0xc
mov dword [ebp - 0xc], eax
mov eax, dword [0x10241f90]
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
add eax, 0x41
push 0x10
mov word [ebp - 0xc], ax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp + 0x10]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0xc]
push dword [ebp + 0x14]
push esi
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
push 5
test eax, eax
pop edi
je 0x100123be
lea eax, [ebp - 0x2c]
push eax
call fcn.10042d96
lea esi, [ebx + 0x36]
push edi
push str.FAT16
push esi
mov dword [ebp + 0xc], eax
call fcn.100534e0
add esp, 0x10
test eax, eax
jne 0x10012358
cmp dword [ebp + 0xc], edi
jne 0x10012337
push edi
lea eax, [ebp - 0x2c]
push 0x10242d10
push eax
call fcn.10043cfb
add esp, 0xc
test eax, eax
je 0x10012354
cmp dword [ebp + 0xc], 3
jne 0x10012358
push 3
lea eax, [ebp - 0x2c]
push 0x10242d08
push eax
call fcn.10043cfb
add esp, 0xc
test eax, eax
jne 0x10012358
push 3
jmp 0x100123bb
push edi
push str.FAT12
push esi
call fcn.100534e0
add esp, 0xc
test eax, eax
jne 0x10012388
cmp dword [ebp + 0xc], 3
jne 0x10012388
push 3
lea eax, [ebp - 0x2c]
push 0x10242d08
push eax
call fcn.10043cfb
add esp, 0xc
test eax, eax
je 0x10012354
push edi
lea eax, [ebx + 0x52]
push str.FAT32
push eax
call fcn.100534e0
add esp, 0xc
test eax, eax
jne 0x100123be
cmp dword [ebp + 0xc], edi
jne 0x100123be
push edi
lea eax, [ebp - 0x2c]
push 0x10242cec
push eax
call fcn.10043cfb
add esp, 0xc
test eax, eax
jne 0x100123be
push 2
pop eax
jmp 0x100123ed
lea esi, [ebx + 3]
push edi
push str.EXFAT
push esi
call fcn.100534e0
add esp, 0xc
test eax, eax
jne 0x100123d8
mov eax, edi
jmp 0x100123ed
push 4
push str.NTFS
push esi
call fcn.100534e0
add esp, 0xc
neg eax
sbb eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10013cc5
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2818
call fcn.10043800
mov eax, dword [ebp + 0xc]
push ebx
xor ebx, ebx
cmp dword [ebp + 8], ebx
mov dword [eax], ebx
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x18], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 4], ebx
mov dword [eax], ebx
je 0x10013df3
push esi
lea eax, [ebp - 0x14]
push edi
mov esi, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
push eax
lea eax, [ebp - 0x2818]
push 0x2800
push eax
push 2
mov dword [ebp - 0x14], ebx
push dword [ebp + 8]
call esi
cmp eax, ebx
jne 0x10013d52
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x10013dd2
mov edi, dword [ebp - 0x14]
push edi
call fcn.101d5034
cmp eax, ebx
pop ecx
mov dword [ebp - 8], eax
je 0x10013dd2
lea eax, [ebp - 0x14]
push eax
push edi
push dword [ebp - 8]
push 2
push dword [ebp + 8]
call esi
cmp eax, ebx
je 0x10013dd2
lea eax, [ebp - 4]
mov byte [ebp - 0x10], bl
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
lea eax, [ebp - 0x10]
push 2
push eax
mov byte [ebp - 0xf], bl
mov byte [ebp - 0xe], bl
mov byte [ebp - 0xd], bl
mov byte [ebp - 0xc], bl
mov byte [ebp - 0xb], 5
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x10013dd2
xor esi, esi
cmp dword [ebp - 0x2818], ebx
jbe 0x10013dd2
lea edi, [ebp - 0x2814]
push dword [edi]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
jne 0x10013db3
inc esi
add edi, 8
cmp esi, dword [ebp - 0x2818]
jb 0x10013d96
jmp 0x10013dd2
mov eax, dword [ebp + esi*8 - 0x2810]
push 1
pop ecx
test al, 8
mov dword [ebp - 0x18], ecx
je 0x10013dc9
mov edx, dword [ebp + 0xc]
mov dword [edx], ecx
test al, 4
je 0x10013dd2
mov eax, dword [ebp + 0x10]
mov dword [eax], ecx
cmp dword [ebp - 4], ebx
pop edi
pop esi
je 0x10013de5
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov dword [ebp - 4], ebx
cmp dword [ebp - 8], ebx
je 0x10013df3
push dword [ebp - 8]
call fcn.101d505d
pop ecx
mov eax, dword [ebp - 0x18]
pop ebx
leave
ret
Function at 0x10013eb0
Capabilities:
Find taskbar

Disassembly:
mov eax, 0x101e459c
call fcn.100431e8
sub esp, 0x24
push ebx
push edi
mov edi, dword [ebp + 8]
xor ebx, ebx
cmp edi, 0xffffffff
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], ebx
jne 0x10013f4c
push ebx
push str.Shell_TrayWnd
call dword [sym.imp.USER32.dll_FindWindowW]
cmp eax, ebx
je 0x10013f4c
lea ecx, [ebp - 0x10]
push ecx
push eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
cmp dword [ebp - 0x10], ebx
je 0x10013f4c
push dword [ebp - 0x10]
lea eax, [ebp - 0x1c]
push eax
call fcn.100aa900
push str.Explorer.exe
mov dword [ebp - 4], ebx
push dword [eax]
call fcn.10043c1c
add esp, 0x10
cmp eax, ebx
sete byte [ebp + 0xb]
or dword [ebp - 4], edi
lea ecx, [ebp - 0x1c]
call fcn.101d496b
cmp byte [ebp + 0xb], bl
je 0x10013f4c
push dword [ebp - 0x10]
call fcn.100a5190
cmp eax, ebx
pop ecx
mov dword [ebp - 0x14], eax
je 0x10013f4c
push eax
call fcn.100a4b80
cmp eax, ebx
pop ecx
je 0x10013fcd
mov dword [0x1027a4f4], eax
jmp 0x10013fcd
cmp edi, 0xffffffff
mov dword [ebp - 0x10], ebx
jne 0x10013f63
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
call fcn.100aa780
pop ecx
mov edi, eax
push str.explorer.exe
lea ecx, [ebp - 0x18]
call fcn.101d49df
lea ecx, [ebp - 0x30]
mov dword [ebp - 4], 1
call fcn.101d3302
push edi
lea eax, [ebp - 0x30]
push dword [ebp - 0x18]
mov byte [ebp - 4], 2
push eax
call fcn.100aaae0
add esp, 0xc
cmp dword [ebp - 0x28], ebx
je 0x10013fa9
mov eax, dword [ebp - 0x2c]
mov eax, dword [eax]
push eax
mov dword [ebp - 0x10], eax
call fcn.100a5190
pop ecx
jmp 0x10013fb2
mov eax, dword [0x1027a4f4]
cmp eax, ebx
je 0x10013fb5
mov dword [ebp - 0x14], eax
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 1
call fcn.101d3335
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.101d496b
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x14]
pop edi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x10014b57
Capabilities:
Check if file exists
Get disk size
Get file attributes

Disassembly:
mov eax, 0x101e4630
call fcn.100431e8
sub esp, 0x410
push ebx
push esi
xor esi, esi
xor ebx, ebx
cmp dword [ebp + 8], esi
je 0x10014c3a
cmp dword [ebp + 0xc], esi
jne 0x10014b89
cmp dword [ebp + 0x10], esi
jne 0x10014b89
cmp dword [ebp + 0x14], esi
je 0x10014c3a
push edi
mov ecx, 0x103
push dword [ebp + 8]
xor eax, eax
lea edi, [ebp - 0x41a]
mov word [ebp - 0x41c], si
rep stosd dword es:[edi], eax
lea ecx, [ebp + 8]
stosw word es:[edi], ax
call fcn.1005bc60
mov dword [ebp - 4], esi
pop edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x10014bdb
test al, 0x10
je 0x10014bdb
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
mov ebx, eax
cmp ebx, esi
jne 0x10014c2e
push 0x410
lea eax, [ebp - 0x41c]
push esi
push eax
call fcn.100432f0
lea eax, [ebp - 0x41c]
push 0x207
push eax
push dword [ebp + 8]
call fcn.10074a60
add esp, 0x18
test eax, eax
je 0x10014c2e
lea eax, [ebp - 0x41c]
push eax
push dword [ebp + 8]
call fcn.10043c1c
pop ecx
cmp eax, esi
pop ecx
je 0x10014c2e
lea eax, [ebp - 0x41c]
lea ecx, [ebp + 8]
push eax
call fcn.1005c7b0
jmp 0x10014bb1
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.1005c4d0
mov ecx, dword [ebp - 0xc]
mov eax, ebx
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x1001b8eb
Capabilities:
Get user security identifier

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push esi
mov esi, dword [ebp + 0xc]
push edi
xor edi, edi
cmp dword [ebp + 8], edi
mov dword [ebp - 4], edi
mov dword [ebp - 8], edi
mov dword [esi], edi
je 0x1001b99e
lea eax, [ebp - 0x14]
push ebx
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
mov ebx, dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
push edi
push eax
push edi
push dword [ebp + 8]
mov dword [ebp - 0x10], edi
mov dword [ebp - 0xc], edi
push edi
call ebx
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [ebp - 4], edi
jne 0x1001b93d
cmp eax, 0x7a
jne 0x1001b9a7
push dword [ebp - 0x10]
call fcn.101d5034
mov dword [esi], eax
mov eax, dword [ebp - 0xc]
add eax, eax
push eax
call fcn.101d5034
mov dword [ebp + 0xc], eax
mov eax, dword [esi]
pop ecx
cmp eax, edi
pop ecx
je 0x1001b9b9
cmp dword [ebp + 0xc], edi
je 0x1001b9b9
push dword [ebp - 0x10]
push edi
push eax
call fcn.100432f0
mov eax, dword [ebp - 0xc]
add eax, eax
push eax
push edi
push dword [ebp + 0xc]
call fcn.100432f0
add esp, 0x18
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
push dword [ebp + 0xc]
push eax
push dword [esi]
push dword [ebp + 8]
push edi
call ebx
cmp eax, edi
mov dword [ebp - 4], eax
je 0x1001b9b0
jmp 0x1001b9c0
mov dword [ebp - 8], 1
jmp 0x1001b9d4
mov dword [ebp - 8], 2
jmp 0x1001b9ce
mov dword [ebp - 8], 4
jmp 0x1001b9c0
mov dword [ebp - 8], 3
cmp dword [ebp + 0xc], edi
je 0x1001b9ce
push dword [ebp + 0xc]
call fcn.101d505d
pop ecx
cmp dword [ebp - 4], edi
pop ebx
jne 0x1001b9e3
mov eax, dword [esi]
cmp eax, edi
je 0x1001b9e3
push eax
call fcn.101d505d
pop ecx
mov dword [esi], edi
cmp dword [0x1027ecb0], edi
je 0x1001ba19
mov eax, dword [ebp + 8]
cmp eax, edi
jne 0x1001b9f7
mov eax, str.NULL
push dword [esi]
push eax
push dword [ebp - 8]
push dword [ebp - 4]
push str.CKSecurity::GetSid_____ret:__d___myerror:__d___Name:__s___Sid:__08x_
push str.Security
push 0xffffffffffffffff
push 0x1027e41c
call fcn.100859a0
add esp, 0x20
mov eax, dword [ebp - 4]
pop edi
pop esi
leave
ret