joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100aae80
Capabilities:
Get file size

Disassembly:
push ecx
push esi
mov esi, ecx
push edi
xor edi, edi
mov eax, dword [esi + 8]
mov dword [esp + 8], edi
cmp eax, 0xffffffff
jne 0x100aaec7
mov eax, dword [esi + 4]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x100aaec7
mov ecx, dword [esi + 0x14]
mov edx, dword [esi + 0x10]
push edi
push 0x80
push ecx
mov ecx, dword [esi + 0xc]
push edi
push edx
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [esi + 8], eax
jne 0x100aaec7
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi], eax
mov esi, dword [esi + 8]
cmp esi, 0xffffffff
je 0x100aaedd
lea edx, [esp + 8]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
mov eax, dword [esp + 0x10]
test eax, eax
je 0x100aaeeb
mov ecx, dword [esp + 8]
mov dword [eax], ecx
mov eax, edi
pop edi
pop esi
pop ecx
ret 4

Function at 0x100ab410
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x14
push ebx
push ebp
push esi
mov esi, ecx
push edi
cmp dword [esi + 8], 0xffffffff
jne 0x100ab455
mov eax, dword [esi + 4]
xor edi, edi
cmp dword [eax - 8], edi
je 0x100ab457
mov ecx, dword [esi + 0x14]
mov edx, dword [esi + 0x10]
push edi
push 0x80
push ecx
mov ecx, dword [esi + 0xc]
push edi
push edx
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [esi + 8], eax
jne 0x100ab457
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi], eax
jmp 0x100ab457
xor edi, edi
mov eax, dword [esi + 8]
cmp eax, 0xffffffff
je 0x100ab532
push 1
push edi
push edi
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov edx, dword [esp + 0x28]
mov ebx, eax
mov dword [esp + 0x18], edi
mov ebp, dword [edx]
lea eax, [ebx + ebp]
cmp eax, ebx
jb 0x100ab489
cmp eax, ebp
mov dword [esp + 0x18], edi
jae 0x100ab491
mov dword [esp + 0x18], 1
mov ecx, dword [esi + 0x20]
cmp ecx, edi
mov dword [esp + 0x10], ecx
je 0x100ab4dc
mov edx, dword [esi + 0x28]
mov ecx, dword [esi + 0x2c]
mov dword [esp + 0x20], edi
lea edi, [ecx + edx]
cmp edi, ecx
jb 0x100ab4b5
cmp edi, edx
jb 0x100ab4b5
xor edx, edx
jmp 0x100ab4ba
mov edx, 1
cmp ecx, ebx
ja 0x100ab4dc
cmp dword [esp + 0x18], edx
ja 0x100ab4dc
jb 0x100ab4ca
cmp eax, edi
ja 0x100ab4dc
mov eax, dword [esp + 0x10]
pop edi
sub eax, ecx
pop esi
add eax, ebx
pop ebp
pop ebx
add esp, 0x14
ret 4
push ebp
mov ecx, esi
call fcn.100ab7d0
test eax, eax
je 0x100ab532
mov ebp, dword [esp + 0x28]
mov ecx, dword [esi + 0x20]
mov edx, dword [esi + 8]
lea edi, [esi + 0x28]
mov eax, dword [ebp]
push 0
push edi
push eax
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x100ab51d
mov eax, dword [edi]
pop edi
mov dword [ebp], eax
mov eax, dword [esi + 0x20]
mov dword [esi + 0x2c], ebx
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 4
mov dword [edi], 0
mov dword [esi + 0x2c], 0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi], eax
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x14
ret 4
Function at 0x100ab415
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x14
push ebx
push ebp
push esi
mov esi, ecx
push edi
cmp dword [esi + 8], 0xffffffff
jne 0x100ab455
mov eax, dword [esi + 4]
xor edi, edi
cmp dword [eax - 8], edi
je 0x100ab457
mov ecx, dword [esi + 0x14]
mov edx, dword [esi + 0x10]
push edi
push 0x80
push ecx
mov ecx, dword [esi + 0xc]
push edi
push edx
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [esi + 8], eax
jne 0x100ab457
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi], eax
jmp 0x100ab457
xor edi, edi
mov eax, dword [esi + 8]
cmp eax, 0xffffffff
je 0x100ab532
push 1
push edi
push edi
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov edx, dword [esp + 0x28]
mov ebx, eax
mov dword [esp + 0x18], edi
mov ebp, dword [edx]
lea eax, [ebx + ebp]
cmp eax, ebx
jb 0x100ab489
cmp eax, ebp
mov dword [esp + 0x18], edi
jae 0x100ab491
mov dword [esp + 0x18], 1
mov ecx, dword [esi + 0x20]
cmp ecx, edi
mov dword [esp + 0x10], ecx
je 0x100ab4dc
mov edx, dword [esi + 0x28]
mov ecx, dword [esi + 0x2c]
mov dword [esp + 0x20], edi
lea edi, [ecx + edx]
cmp edi, ecx
jb 0x100ab4b5
cmp edi, edx
jb 0x100ab4b5
xor edx, edx
jmp 0x100ab4ba
mov edx, 1
cmp ecx, ebx
ja 0x100ab4dc
cmp dword [esp + 0x18], edx
ja 0x100ab4dc
jb 0x100ab4ca
cmp eax, edi
ja 0x100ab4dc
mov eax, dword [esp + 0x10]
pop edi
sub eax, ecx
pop esi
add eax, ebx
pop ebp
pop ebx
add esp, 0x14
ret 4
push ebp
mov ecx, esi
call fcn.100ab7d0
test eax, eax
je 0x100ab532
mov ebp, dword [esp + 0x28]
mov ecx, dword [esi + 0x20]
mov edx, dword [esi + 8]
lea edi, [esi + 0x28]
mov eax, dword [ebp]
push 0
push edi
push eax
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x100ab51d
mov eax, dword [edi]
pop edi
mov dword [ebp], eax
mov eax, dword [esi + 0x20]
mov dword [esi + 0x2c], ebx
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 4
mov dword [edi], 0
mov dword [esi + 0x2c], 0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi], eax
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x14
ret 4

Function at 0x100ab5d0
Capabilities:
Read file on windows

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push esi
push edi
test ebx, ebx
mov esi, ecx
je 0x100ab64f
mov edi, dword [esp + 0x14]
test edi, edi
je 0x100ab64f
cmp dword [esi + 8], 0xffffffff
jne 0x100ab621
mov eax, dword [esi + 4]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x100ab621
mov ecx, dword [esi + 0x14]
mov edx, dword [esi + 0x10]
push 0
push 0x80
push ecx
mov ecx, dword [esi + 0xc]
push 0
push edx
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [esi + 8], eax
jne 0x100ab621
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi], eax
mov esi, dword [esi + 8]
cmp esi, 0xffffffff
je 0x100ab64f
lea edx, [esp + 0x10]
push 0
push edx
push edi
push ebx
push esi
mov dword [esp + 0x24], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x100ab64f
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebx
ret 8
pop edi
pop esi
xor eax, eax
pop ebx
ret 8
Function at 0x100ad9d0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x208
push ebx
push esi
push edi
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0xe]
mov word [esp + 0xc], 0
push 0x104
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
jbe 0x100ada90
lea ecx, [esp + 0xc]
push 0x5c
push ecx
call fcn.1007816a
add esp, 8
test eax, eax
je 0x100ada1f
mov word [eax], 0
mov edi, dword [esp + 0x218]
test edi, edi
je 0x100ada89
mov ebx, dword [esp + 0x21c]
test ebx, ebx
je 0x100ada89
lea edx, [esp + 0xc]
test edx, edx
je 0x100ada89
mov eax, dword [esp + 0x220]
mov esi, 0x7a
test eax, eax
je 0x100ada66
push eax
lea eax, [esp + 0x10]
push eax
push 0x102b8718
push ebx
push edi
call fcn.10078001
add esp, 0x14
xor esi, esi
jmp 0x100ada98
lea ecx, [esp + 0xc]
push ecx
call fcn.10076fb2
add esp, 4
cmp ebx, eax
jbe 0x100ada98
lea edx, [esp + 0xc]
push edx
push edi
call fcn.100775f4
add esp, 8
xor esi, esi
jmp 0x100ada98
mov esi, 0x57
jmp 0x100ada98
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
mov dword [0x1030b1f0], esi
je 0x100adaa9
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
pop edi
test esi, esi
pop esi
pop ebx
sete al
add esp, 0x208
ret

Function at 0x100adbc0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x208
push ebx
push esi
push edi
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0xe]
mov word [esp + 0xc], 0
push 0x104
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
jbe 0x100adc80
lea ecx, [esp + 0xc]
push 0x5c
push ecx
call fcn.1007816a
add esp, 8
test eax, eax
je 0x100adc0f
mov word [eax], 0
mov edi, dword [esp + 0x218]
test edi, edi
je 0x100adc79
mov ebx, dword [esp + 0x21c]
test ebx, ebx
je 0x100adc79
lea edx, [esp + 0xc]
test edx, edx
je 0x100adc79
mov eax, dword [esp + 0x220]
mov esi, 0x7a
test eax, eax
je 0x100adc56
push eax
lea eax, [esp + 0x10]
push eax
push 0x102b8718
push ebx
push edi
call fcn.10078001
add esp, 0x14
xor esi, esi
jmp 0x100adc88
lea ecx, [esp + 0xc]
push ecx
call fcn.10076fb2
add esp, 4
cmp ebx, eax
jbe 0x100adc88
lea edx, [esp + 0xc]
push edx
push edi
call fcn.100775f4
add esp, 8
xor esi, esi
jmp 0x100adc88
mov esi, 0x57
jmp 0x100adc88
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
mov dword [0x1030b1f0], esi
je 0x100adc99
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
pop edi
test esi, esi
pop esi
pop ebx
sete al
add esp, 0x208
ret
Function at 0x100b3bb0
Capabilities:
Check if file exists
Delete file
Get file attributes
Set file attributes

Disassembly:
push esi
mov esi, dword [esp + 8]
test esi, esi
push edi
jne 0x100b3bd1
push 0x57
mov dword [0x1030b1f0], 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
xor eax, eax
pop esi
ret
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
push esi
call edi
test eax, eax
jne 0x100b3c02
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x100b3c02
test al, 0x10
jne 0x100b3c02
test al, 1
je 0x100b3bcc
and al, 0xfe
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push esi
call edi
pop edi
pop esi
ret
pop edi
mov eax, 1
pop esi
ret

Function at 0x100b3c70
Capabilities:
Check if file exists
Delete file
Get file attributes
Set file attributes

Disassembly:
push esi
mov esi, dword [esp + 8]
test esi, esi
push edi
jne 0x100b3c91
push 0x57
mov dword [0x1030b1f0], 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
xor eax, eax
pop esi
ret
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
push esi
call edi
test eax, eax
jne 0x100b3cc2
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x100b3cc2
test al, 0x10
jne 0x100b3cc2
test al, 1
je 0x100b3c8c
and al, 0xfe
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push esi
call edi
pop edi
pop esi
ret
pop edi
mov eax, 1
pop esi
ret

Function at 0x100b3dd0
Capabilities:
Check if file exists
Delete file
Get file attributes
Set file attributes

Disassembly:
push ebx
push ebp
push esi
mov esi, dword [esp + 0x10]
test esi, esi
push edi
je 0x100b3e8d
mov ebx, dword [esp + 0x18]
test ebx, ebx
je 0x100b3e8d
mov edi, dword [esp + 0x1c]
test edi, edi
je 0x100b3e8d
push edi
call fcn.10076fb2
add esp, 4
test eax, eax
jbe 0x100b3e8d
push edi
push ebx
call fcn.100952c0
add esp, 8
test eax, eax
je 0x100b3e8d
push esi
call fcn.10076fb2
push ebx
mov ebp, eax
call fcn.10076fb2
mov edi, eax
add esp, 8
test edi, edi
jle 0x100b3e8d
push edi
push ebx
push esi
call fcn.100787c8
add esp, 0xc
test eax, eax
jne 0x100b3e8d
cmp ebp, edi
je 0x100b3e50
cmp word [esi + edi*2 - 2], 0x5c
je 0x100b3e50
cmp word [esi + edi*2], 0x5c
jne 0x100b3e8d
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
push esi
call edi
test eax, eax
jne 0x100b3e83
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x100b3e83
test al, 0x10
jne 0x100b3e83
test al, 1
je 0x100b3e9f
and al, 0xfe
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push esi
call edi
pop edi
pop esi
pop ebp
pop ebx
ret
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
ret
push 0x57
mov dword [0x1030b1f0], 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
Function at 0x100b5d80
Capabilities:
Check if file exists
Create directory
Delete file
Get file attributes
Set file attributes

Disassembly:
sub esp, 0x208
push ebx
mov ebx, dword [esp + 0x210]
test ebx, ebx
jne 0x100b5d9c
xor eax, eax
pop ebx
add esp, 0x208
ret
push ebp
push esi
push edi
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x11]
mov byte [esp + 0x10], 0
push 0x207
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x14]
push ebx
push eax
mov ebp, 1
call fcn.10077ce0
lea ecx, [esp + 0x1c]
push 0x5c
push ecx
call fcn.100784f0
mov esi, eax
lea edi, [esp + 0x24]
or ecx, 0xffffffff
xor eax, eax
add esp, 0x14
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, 2
jbe 0x100b5e20
cmp byte [esp + 0x10], 0x5c
jne 0x100b5e20
cmp byte [esp + 0x11], 0x5c
jne 0x100b5e20
lea edx, [esp + 0x12]
push 0x5c
push edx
call fcn.100784f0
add esp, 8
test eax, eax
je 0x100b5e9e
inc eax
push 0x5c
push eax
call fcn.100784f0
add esp, 8
mov esi, eax
test esi, esi
je 0x100b5e9e
lea eax, [esp + 0x10]
mov byte [esi], 0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ebx, eax
mov edi, ebx
and edi, 0x10
jne 0x100b5e62
test bl, 1
je 0x100b5e51
mov ecx, ebx
lea edx, [esp + 0x10]
and ecx, 0xfffffffe
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov ebp, eax
test ebp, ebp
je 0x100b5ed4
cmp ebx, 0xffffffff
je 0x100b5e6b
test edi, edi
jne 0x100b5e7a
lea ecx, [esp + 0x10]
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov ebp, eax
test ebp, ebp
je 0x100b5ed4
mov byte [esi], 0x5c
inc esi
push 0x5c
push esi
call fcn.100784f0
mov esi, eax
add esp, 8
test esi, esi
jne 0x100b5e24
test ebp, ebp
je 0x100b5ed4
mov ebx, dword [esp + 0x21c]
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x100b5ec9
test al, 0x10
jne 0x100b5ed4
test al, 1
je 0x100b5ebc
and al, 0xfe
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov ebp, eax
test ebp, ebp
je 0x100b5ed4
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov ebp, eax
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
add esp, 0x208
ret
Function at 0x100b5ef0
Capabilities:
Check if file exists
Create directory
Delete file
Get file attributes
Set file attributes

Disassembly:
sub esp, 0x410
push ebx
mov ebx, dword [esp + 0x418]
test ebx, ebx
jne 0x100b5f0c
xor eax, eax
pop ebx
add esp, 0x410
ret
push ebp
push esi
push edi
mov ecx, 0x103
xor eax, eax
lea edi, [esp + 0x12]
mov word [esp + 0x10], 0
push 0x207
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 0x14]
push ebx
push eax
mov ebp, 1
call fcn.10077828
mov edi, 0x5c
lea ecx, [esp + 0x1c]
push edi
push ecx
call fcn.10077259
lea edx, [esp + 0x24]
mov esi, eax
push edx
call fcn.10076fb2
add esp, 0x18
cmp eax, 2
jbe 0x100b5f91
cmp word [esp + 0x10], di
jne 0x100b5f91
cmp word [esp + 0x12], di
jne 0x100b5f91
lea eax, [esp + 0x14]
push edi
push eax
call fcn.10077259
add esp, 8
test eax, eax
je 0x100b6019
add eax, 2
push edi
push eax
call fcn.10077259
add esp, 8
mov esi, eax
test esi, esi
je 0x100b6019
lea ecx, [esp + 0x10]
mov word [esi], 0
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
mov edi, ebx
and edi, 0x10
jne 0x100b5fd9
test bl, 1
je 0x100b5fc8
mov edx, ebx
lea eax, [esp + 0x10]
and edx, 0xfffffffe
push edx
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea ecx, [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ebp, eax
test ebp, ebp
je 0x100b604f
cmp ebx, 0xffffffff
je 0x100b5fe2
test edi, edi
jne 0x100b5ff1
lea edx, [esp + 0x10]
push 0
push edx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ebp, eax
test ebp, ebp
je 0x100b604f
mov word [esi], 0x5c
add esi, 2
push 0x5c
push esi
call fcn.10077259
mov esi, eax
add esp, 8
test esi, esi
jne 0x100b5f99
test ebp, ebp
je 0x100b604f
mov ebx, dword [esp + 0x424]
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x100b6044
test al, 0x10
jne 0x100b604f
test al, 1
je 0x100b6037
and al, 0xfe
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ebp, eax
test ebp, ebp
je 0x100b604f
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ebp, eax
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
add esp, 0x410
ret
Function at 0x100b6440
Capabilities:
Check if file exists
Create directory
Delete file
Get file attributes
Set file attributes

Disassembly:
sub esp, 0x410
push ebx
mov ebx, dword [esp + 0x418]
push ebp
push esi
test ebx, ebx
push edi
jne 0x100b6474
push 0x57
mov dword [0x1030b1f0], 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x410
ret
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x100b649b
test al, 0x10
jne 0x100b660d
push 0x80
push ebx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x100b660d
mov ecx, 0x103
lea edi, [esp + 0x12]
mov word [esp + 0x10], ax
push 0x207
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 0x14]
push ebx
push eax
mov ebp, 1
call fcn.10077828
mov edi, 0x5c
lea ecx, [esp + 0x1c]
push edi
push ecx
call fcn.10077259
lea edx, [esp + 0x24]
mov esi, eax
push edx
call fcn.10076fb2
add esp, 0x18
cmp eax, 2
jbe 0x100b652a
cmp word [esp + 0x10], di
jne 0x100b652a
cmp word [esp + 0x12], di
jne 0x100b652a
lea eax, [esp + 0x14]
push edi
push eax
call fcn.10077259
add esp, 8
test eax, eax
je 0x100b65b2
add eax, 2
push edi
push eax
call fcn.10077259
add esp, 8
mov esi, eax
test esi, esi
je 0x100b65b2
lea ecx, [esp + 0x10]
mov word [esi], 0
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
mov edi, ebx
and edi, 0x10
jne 0x100b6572
test bl, 1
je 0x100b6561
mov edx, ebx
lea eax, [esp + 0x10]
and edx, 0xfffffffe
push edx
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea ecx, [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ebp, eax
test ebp, ebp
je 0x100b65ea
cmp ebx, 0xffffffff
je 0x100b657b
test edi, edi
jne 0x100b658a
lea edx, [esp + 0x10]
push 0
push edx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ebp, eax
test ebp, ebp
je 0x100b65ea
mov word [esi], 0x5c
add esi, 2
push 0x5c
push esi
call fcn.10077259
mov esi, eax
add esp, 8
test esi, esi
jne 0x100b6532
test ebp, ebp
je 0x100b65ea
mov ebx, dword [esp + 0x424]
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x100b65db
test al, 0x10
jne 0x100b65e6
test al, 1
je 0x100b65d0
and al, 0xfe
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x100b65ea
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ebp, eax
test ebp, ebp
jne 0x100b660d
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
mov dword [0x1030b1f0], eax
je 0x100b6600
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x410
ret
mov eax, dword [esp + 0x428]
test eax, eax
je 0x100b6620
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x410
ret
Function at 0x100b6a50
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
sub esp, 0x25c
push ebx
mov ebx, dword [esp + 0x26c]
push ebp
mov ebp, dword [esp + 0x26c]
push esi
mov esi, dword [esp + 0x26c]
mov eax, 0x1f3
push ebx
sub eax, ebp
push esi
mov dword [esp + 0x1c], eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
mov dword [esp + 0xc], eax
jne 0x100b6a99
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x25c
ret
push edi
mov edi, 1
mov eax, dword [ebx]
test al, 0x10
mov dword [esp + 0x14], eax
je 0x100b6c09
cmp word [ebx + 0x2c], 0x2e
lea ecx, [ebx + 0x2c]
jne 0x100b6ad5
mov ax, word [ebx + 0x2e]
test ax, ax
je 0x100b6bd9
cmp ax, 0x2e
jne 0x100b6ad5
cmp word [ebx + 0x30], 0
je 0x100b6bd9
push ecx
call fcn.10076fb2
mov ecx, dword [esp + 0x1c]
mov ebx, eax
add esp, 4
lea eax, [ebx + 1]
cmp ecx, eax
jb 0x100b6bd2
mov ecx, dword [esp + 0x278]
mov word [esi + ebp*2 - 2], 0
lea eax, [ecx + 0x2c]
push eax
push esi
call fcn.100775ca
mov al, byte [esp + 0x284]
add esp, 8
test al, 0x10
je 0x100b6b2e
mov edx, dword [esp + 0x284]
mov eax, dword [esp + 0x14]
push edx
push eax
push 0
push esi
call dword [esp + 0x290]
mov edi, eax
test edi, edi
je 0x100b6b95
test byte [esp + 0x27c], 0x40
jne 0x100b6b95
lea ecx, [ebx + ebp]
lea edi, [esp + 0x20]
mov dword [esp + 0x1c], 0
lea edx, [ebx + ebp + 1]
lea eax, [esi + ecx*2]
mov ecx, 0x93
mov word [eax - 2], 0x5c
mov word [eax], 0x2a
xor eax, eax
mov word [esi + edx*2], 0
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x284]
mov ecx, dword [esp + 0x280]
push eax
mov eax, dword [esp + 0x280]
push ecx
lea ecx, [esp + 0x24]
push eax
push ecx
push edx
push esi
call fcn.100b6a50
add esp, 0x18
mov edi, eax
test byte [esp + 0x27c], 0x20
je 0x100b6bc5
test edi, edi
je 0x100b6bc5
mov edx, dword [esp + 0x284]
mov eax, dword [esp + 0x14]
push edx
add ebx, ebp
push eax
push 0
push esi
mov word [esi + ebx*2 - 2], 0
call dword [esp + 0x290]
mov edi, eax
mov word [esi + ebp*2 - 2], 0x2a
mov word [esi + ebp*2], 0
mov ebx, dword [esp + 0x278]
test edi, edi
je 0x100b6bf1
mov eax, dword [esp + 0x10]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x100b6a9f
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x25c
ret
mov ecx, dword [esp + 0x284]
lea edx, [ebx + 0x2c]
push ecx
push eax
push edx
push esi
mov word [esi + ebp*2 - 4], 0
call dword [esp + 0x290]
mov word [esi + ebp*2 - 4], 0x5c
mov edi, eax
mov word [esi + ebp*2 - 2], 0x2a
jmp 0x100b6bd9
Function at 0x100b7d10
Capabilities:
Delete directory
Get file attributes
Set file attributes

Disassembly:
push esi
mov esi, dword [esp + 8]
test esi, esi
jne 0x100b7d2f
push 0x57
mov dword [0x1030b1f0], 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
pop esi
ret
push 0
push 0x100b7c60
push 0x20
push esi
call fcn.100b6950
add esp, 0x10
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
and al, 0xfe
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov esi, eax
test esi, esi
jne 0x100b7d75
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
mov dword [0x1030b1f0], eax
je 0x100b7d75
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, esi
pop esi
ret

Function at 0x100b7df0
Capabilities:
Delete directory
Get file attributes
Set file attributes

Disassembly:
push esi
mov esi, dword [esp + 8]
test esi, esi
jne 0x100b7e0f
push 0x57
mov dword [0x1030b1f0], 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
pop esi
ret
push 0
push 0x100b7c60
push 0x20
push esi
call fcn.100b6950
add esp, 0x10
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
and al, 0xfe
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov esi, eax
test esi, esi
jne 0x100b7e55
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
mov dword [0x1030b1f0], eax
je 0x100b7e55
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, esi
pop esi
ret