joyce8/EMBER2024-capa huggingface dataset:
Function at 0x549ae0
Capabilities:
Access peb ldr_data
Get ntdll base address
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x5b4972
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push ebp
push esi
push edi
mov eax, dword [0x6e2f0c]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x14], esi
xor edi, edi
mov dword [esi], edi
mov dword [esi + 4], edi
mov dword [esi + 8], edi
mov dword [esi + 0xc], edi
mov dword [esi + 0x10], edi
mov dword [esi + 0x14], edi
mov dword [esp + 0x20], edi
mov dword [esi + 0x24], edi
mov dword [esi + 0x28], edi
mov dword [esi + 0x2c], edi
mov dword [esi + 0x30], edi
mov dword [esi + 0x34], edi
mov dword [esi + 0x38], edi
push 0xa
lea ecx, [esi + 0x48]
mov byte [esp + 0x24], 1
call fcn.00587ef0
lea ecx, [esi + 0x68]
mov byte [esp + 0x20], 2
call fcn.0054bcb0
mov dword [esi + 0x94], edi
mov dword [esi + 0x98], edi
mov dword [esi + 0x9c], edi
mov dword [esi + 0xa0], edi
mov dword [esi + 0xa4], edi
mov dword [esi + 0xa8], edi
mov dword [esi + 0xb8], edi
mov dword [esi + 0xbc], edi
mov dword [esi + 0xc0], edi
mov dword [esi + 0xc4], edi
mov dword [esi + 0xc8], edi
mov dword [esi + 0xcc], edi
mov dword [esi + 0xdc], edi
mov dword [esi + 0xe0], edi
mov dword [esi + 0xe4], edi
mov dword [esi + 0xe8], edi
mov dword [esi + 0xec], edi
mov dword [esi + 0xf0], edi
mov dword [esi + 0x100], edi
mov dword [esi + 0x104], edi
mov dword [esi + 0x108], edi
mov dword [esi + 0x10c], edi
mov dword [esi + 0x110], edi
mov dword [esi + 0x114], edi
mov dword [esi + 0x124], edi
mov dword [esi + 0x128], edi
mov dword [esi + 0x12c], edi
mov dword [esi + 0x130], edi
mov dword [esi + 0x134], edi
mov dword [esi + 0x138], edi
mov dword [esi + 0x148], edi
mov dword [esi + 0x14c], edi
mov dword [esi + 0x150], edi
mov dword [esi + 0x154], edi
mov dword [esi + 0x158], edi
mov dword [esi + 0x15c], edi
push 0x80
push str.g_PoolSTLIST
push 0x6e0d08
mov byte [esp + 0x2c], 9
call fcn.0058e820
add esp, 0xc
mov dword [0x6e0d04], 0x32
cmp dword [0x6e0cfc], edi
jne 0x549c6f
push 0x64
push 0x6e0cfc
call fcn.0054b2d0
mov eax, dword [0x6e0cfc]
add esp, 8
mov dword [0x6e0d00], eax
push 0x1e
lea ecx, [esi + 0x94]
mov dword [esi + 0x64], edi
call fcn.005763b0
push 0x1e
lea ecx, [esi + 0xb8]
call fcn.005763b0
push 0x1e
lea ecx, [esi + 0xdc]
call fcn.005763b0
push 0x1e
lea ecx, [esi + 0x100]
call fcn.005763b0
push 3
lea ecx, [esi + 0x124]
call fcn.005763b0
mov dword [esi + 0x16c], edi
mov eax, esi
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
Function at 0x54e6d0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x5b501b
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x6e2f0c]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0xc], esi
lea ecx, [esi + 8]
xor edi, edi
mov dword [esi], vtable.CSkillObjectTargetList.0
mov dword [ecx], edi
mov dword [ecx + 4], edi
mov dword [ecx + 8], edi
mov dword [ecx + 0xc], edi
mov dword [ecx + 0x10], edi
mov dword [ecx + 0x14], edi
push 1
mov dword [esp + 0x1c], edi
call fcn.005763b0
mov eax, dword [esp + 0x20]
movzx ecx, word [eax + 0xb7]
mov word [esi + 0x30], cx
movzx edx, word [eax + 0xad]
mov word [esi + 0x32], dx
mov dword [esi + 0x2c], edi
movzx ecx, word [eax + 0x27]
mov word [esi + 0x34], cx
movzx edx, word [eax + 0x29]
mov word [esi + 0x36], dx
mov eax, esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x10
ret 4
Function at 0x557670
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x5b5636
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
mov eax, dword [0x6e2f0c]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0xc], esi
mov dword [esi], vtable.CEngineObject.0
mov edx, 0xffff
push 0xa
lea ecx, [esi + 0x40]
mov dword [esi + 0x30], 1
mov word [esi + 0x34], dx
call fcn.00587ef0
xor ebx, ebx
push 0xa
lea ecx, [esi + 0x5c]
mov dword [esp + 0x1c], ebx
call fcn.00587ef0
push 0xa
lea ecx, [esi + 0x78]
mov byte [esp + 0x1c], 1
call fcn.00587ef0
fld1
fstp dword [esi + 8]
mov dword [esi + 4], ebx
mov dword [esi + 0x14], ebx
mov dword [esi + 0x24], 0xffffffff
mov byte [esi + 0x28], bl
mov dword [esi + 0x20], 1
mov dword [esi + 0x3c], ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 0x94], ebx
mov eax, esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0x10
ret

Function at 0x558fa0
Capabilities:
Print debug messages

Disassembly:
push esi
push edi
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov edi, eax
mov eax, dword [esi + 0x4c]
add eax, 0x493e0
cmp edi, eax
jbe 0x558fcd
mov ecx, esi
call fcn.00558f60
push 0x5cc0b0
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov dword [esi + 0x4c], edi
pop edi
pop esi
ret
Function at 0x55f340
Capabilities:
Read file on windows

Disassembly:
push ecx
mov eax, dword [esp + 8]
push ebp
push esi
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
push eax
mov esi, ecx
mov dword [esp + 0x24], 0
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebp, eax
cmp ebp, 0xffffffff
jne 0x55f379
pop esi
xor eax, eax
pop ebp
pop ecx
ret 4
push ebx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
push 0
lea ecx, [esp + 0x14]
push ecx
push 4
push esi
push ebp
call edi
test al, al
jne 0x55f3a3
push 0
push 0x45
push str.TileManager.cpp
call fcn.00533d80
add esp, 0xc
push 0
lea edx, [esp + 0x14]
push edx
push 4
lea ebx, [esi + 4]
push ebx
push ebp
call edi
test al, al
jne 0x55f3c8
push 0
push 0x47
push str.TileManager.cpp
call fcn.00533d80
add esp, 0xc
mov eax, dword [ebx]
imul eax, dword [esi]
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0058cd48
mov dword [esi + 8], eax
mov eax, dword [ebx]
imul eax, dword [esi]
add esp, 4
xor edi, edi
test eax, eax
je 0x55f444
mov ecx, dword [esi + 8]
push 0
lea edx, [esp + 0x14]
push edx
push 2
lea eax, [esp + 0x24]
push eax
push ebp
lea ebx, [ecx + edi*2]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test al, al
jne 0x55f419
push 0
push 0x53
jmp 0x55f424
cmp dword [esp + 0x10], 0
jne 0x55f431
push 0
push 0x55
push str.TileManager.cpp
call fcn.00533d80
add esp, 0xc
mov cx, word [esp + 0x18]
mov word [ebx], cx
mov edx, dword [esi + 4]
imul edx, dword [esi]
inc edi
cmp edi, edx
jb 0x55f3f4
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop ebx
pop esi
mov eax, 1
pop ebp
pop ecx
ret 4
Function at 0x56e5e0
Capabilities:
Set current directory

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
mov edi, ecx
cmp esi, 0x12
jb 0x56e5fe
push 0
push 0x72
push str.DirectoryManager.cpp
call fcn.00533d80
add esp, 0xc
cmp esi, dword [edi + 0x50]
je 0x56e616
cmp esi, 0x11
je 0x56e616
mov eax, dword [edi + esi*4 + 8]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
mov dword [edi + 0x50], esi
pop edi
pop esi
ret 4
Function at 0x576000
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x5b68fe
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x6e2f0c]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x10], esi
xor eax, eax
mov dword [esi], eax
mov dword [esi + 4], eax
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], eax
mov dword [esp + 0x1c], eax
mov dword [esi + 0x24], eax
mov dword [esi + 0x28], eax
mov dword [esi + 0x2c], eax
mov dword [esi + 0x30], eax
mov dword [esi + 0x34], eax
mov dword [esi + 0x38], eax
mov dword [esi + 0x48], eax
mov dword [esi + 0x4c], eax
mov dword [esi + 0x50], eax
mov dword [esi + 0x54], eax
mov dword [esi + 0x58], eax
mov dword [esi + 0x5c], eax
push 0x40
mov byte [esp + 0x20], 2
call fcn.005763b0
push 0x40
lea ecx, [esi + 0x24]
call fcn.005763b0
push 0x40
lea ecx, [esi + 0x48]
call fcn.005763b0
mov ecx, esi
call fcn.00575b80
mov ecx, esi
call fcn.005759e0
mov eax, esi
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x10
ret
Function at 0x58d3fe
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x6e2f0c]
jne 0x58d408
repz ret
jmp fcn.005949ea

Function at 0x59f6ac
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x6e2f0c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.005957cd
and dword [ebp - 0x14], 0
cmp dword [0x725a58], 0
mov dword [ebp - 0x18], eax
jne 0x59f75f
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x59f807
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x59f807
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x5d3e7c
push ebx
mov dword [0x725a58], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x725a5c], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x725a60], eax
call edi
push eax
call esi
mov dword [0x725a68], eax
test eax, eax
je 0x59f75f
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x725a64], eax
mov eax, dword [0x725a64]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x59f7b8
cmp dword [0x725a68], ecx
je 0x59f7b8
push eax
call esi
push dword [0x725a68]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x59f7b8
test ebx, ebx
je 0x59f7b8
call edi
test eax, eax
je 0x59f7af
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x59f7af
test byte [ebp - 8], 1
jne 0x59f7b8
or dword [ebp + 0x10], 0x200000
jmp 0x59f7eb
mov eax, dword [0x725a5c]
cmp eax, dword [ebp - 0x18]
je 0x59f7eb
push eax
call esi
test eax, eax
je 0x59f7eb
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x59f7eb
mov eax, dword [0x725a60]
cmp eax, dword [ebp - 0x18]
je 0x59f7eb
push eax
call esi
test eax, eax
je 0x59f7eb
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x725a58]
call esi
test eax, eax
je 0x59f807
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x59f809
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0058d3fe
leave
ret
Function at 0x10009497
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xd4
mov eax, dword [0x1023d420]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
lea eax, [ebx + ebx]
push eax
push 0
push esi
mov dword [ebp - 0xd0], esi
call fcn.100947e0
add esp, 0xc
call fcn.100ed910
test eax, eax
je 0x10009558
push 0x41
push 0
push 1
push str.default
call dword [sym.imp.USER32.dll_OpenDesktopW]
mov esi, eax
xor eax, eax
test esi, esi
je 0x100095d6
push 0xc6
push eax
mov word [ebp - 0xcc], ax
lea eax, [ebp - 0xca]
push eax
call fcn.100947e0
add esp, 0xc
lea eax, [ebp - 0xcc]
push eax
push 0x100093d9
push esi
call dword [sym.imp.USER32.dll_EnumDesktopWindows]
push esi
call dword [sym.imp.USER32.dll_CloseDesktop]
lea eax, [ebp - 0xcc]
push eax
call fcn.10094dc6
pop ecx
cmp eax, ebx
jb 0x1000953f
xor eax, eax
jmp 0x100095d6
lea eax, [ebp - 0xcc]
push eax
push dword [ebp - 0xd0]
call fcn.10094d31
pop ecx
xor eax, eax
pop ecx
inc eax
jmp 0x100095d6
xor eax, eax
push 0xc6
push eax
mov word [ebp - 0xcc], ax
lea eax, [ebp - 0xca]
push eax
call fcn.100947e0
add esp, 0xc
lea eax, [ebp - 0xd4]
push eax
lea eax, [ebp - 0xcc]
push eax
mov dword [ebp - 0xd4], 0x64
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
mov dword [ebp - 0xd0], eax
test eax, eax
je 0x100095b9
lea eax, [ebp - 0xcc]
push eax
call fcn.10094dc6
pop ecx
cmp eax, ebx
jae 0x10009538
lea eax, [ebp - 0xcc]
push eax
push esi
jmp 0x1000954c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x4dd
jne 0x100095d0
mov dword [ebp - 0xd0], 1
mov eax, dword [ebp - 0xd0]
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.100946c1
leave
ret

Function at 0x10009895
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x1023d420]
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 esi, esi
cmp edi, esi
je 0x10009953
cmp ebx, esi
je 0x10009953
cmp dword [ebp + 0x10], esi
je 0x10009953
xor eax, eax
push 0x206
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push esi
push eax
call fcn.100947e0
push 0x104
lea eax, [ebp - 0x20c]
push eax
push 0xffffffffffffffff
push edi
call fcn.1001b044
lea eax, [ebp - 0x20c]
push eax
call fcn.10094dc6
add esp, 0x20
test eax, eax
je 0x10009953
push esi
push esi
push 2
push esi
push esi
push 0xc0000000
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x1000994f
push esi
lea eax, [ebp - 0x210]
push eax
push dword [ebp + 0x10]
mov dword [ebp - 0x210], esi
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
jmp 0x10009955
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100946c1
leave
ret
Function at 0x10009964
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push esi
call fcn.10095270
mov edi, dword [ebp + 0xc]
pop ecx
mov ebx, eax
mov eax, 0x1f3
push edi
sub eax, ebx
push esi
mov dword [ebp - 0xc], eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ebp - 8], eax
cmp eax, 0xffffffff
jne 0x1000999e
xor eax, eax
inc eax
jmp 0x10009a3c
mov dword [ebp - 4], 1
test byte [edi], 0x10
je 0x10009a00
lea ecx, [edi + 0x2c]
cmp byte [ecx], 0x2e
jne 0x100099c3
mov al, byte [edi + 0x2d]
cmp al, 0x2e
jne 0x100099bf
cmp byte [edi + 0x2e], 0
je 0x10009a18
test al, al
je 0x10009a18
push ecx
call fcn.10095270
inc eax
pop ecx
cmp dword [ebp - 0xc], eax
jb 0x10009a18
lea eax, [edi + 0x2c]
push eax
push esi
mov byte [ebx + esi - 1], 0
call fcn.10095180
push 0x101dddf0
push esi
call fcn.10095180
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push edi
push esi
call fcn.10009964
add esp, 0x20
mov byte [ebx + esi], 0
jmp 0x10009a10
push dword [ebp + 0x14]
lea eax, [edi + 0x2c]
push eax
push esi
mov byte [ebx + esi - 1], 0
call dword [ebp + 0x10]
mov byte [ebx + esi - 1], 0x2a
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x10009a30
push edi
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x100099a5
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x10009a41
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push esi
call fcn.10094dc6
mov edi, dword [ebp + 0xc]
pop ecx
mov ebx, eax
mov eax, 0x1f3
push edi
sub eax, ebx
push esi
mov dword [ebp - 0xc], eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 8], eax
cmp eax, 0xffffffff
jne 0x10009a7b
xor eax, eax
inc eax
jmp 0x10009b33
mov dword [ebp - 4], 1
test byte [edi], 0x10
je 0x10009af2
lea ecx, [edi + 0x2c]
cmp word [ecx], 0x2e
jne 0x10009aa6
movzx eax, word [edi + 0x2e]
cmp ax, 0x2e
jne 0x10009aa1
cmp word [edi + 0x30], 0
je 0x10009b0f
test ax, ax
je 0x10009b0f
push ecx
call fcn.10094dc6
inc eax
pop ecx
cmp dword [ebp - 0xc], eax
jb 0x10009b0f
xor eax, eax
mov word [esi + ebx*2 - 2], ax
lea eax, [edi + 0x2c]
push eax
push esi
call fcn.10094d03
push 0x101dddf4
push esi
call fcn.10094d03
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push edi
push esi
call fcn.10009a41
add esp, 0x20
mov dword [ebp - 4], eax
push 0x2a
pop eax
mov word [esi + ebx*2 - 2], ax
xor eax, eax
mov word [esi + ebx*2], ax
jmp 0x10009b0f
push dword [ebp + 0x14]
xor eax, eax
mov word [esi + ebx*2 - 2], ax
lea eax, [edi + 0x2c]
push eax
push esi
call dword [ebp + 0x10]
push 0x2a
mov dword [ebp - 4], eax
pop eax
mov word [esi + ebx*2 - 2], ax
cmp dword [ebp - 4], 0
je 0x10009b27
push edi
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x10009a82
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1000a229
Capabilities:
Check if file exists
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Get file attributes
Move file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x668
mov eax, dword [0x1023d420]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push edi
mov edi, dword [ebp + 8]
xor ebx, ebx
cmp edi, ebx
je 0x1000a3dc
push edi
call fcn.10094dc6
pop ecx
test eax, eax
je 0x1000a3dc
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [ebp - 0x668], eax
cmp eax, 0xffffffff
je 0x1000a3dc
test al, 1
je 0x1000a285
and eax, 0xfffffffe
push eax
push edi
mov dword [ebp - 0x668], eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test byte [ebp - 0x668], 0x10
je 0x1000a3c0
push esi
xor eax, eax
mov esi, 0x206
push esi
mov word [ebp - 0x414], ax
lea eax, [ebp - 0x412]
push ebx
push eax
call fcn.100947e0
lea eax, [ebp - 0x414]
push edi
push eax
call fcn.10094d31
lea eax, [ebp - 0x414]
push 0x101dddf4
push eax
call fcn.10094d03
push 0x24c
lea eax, [ebp - 0x660]
push ebx
push eax
mov dword [ebp - 0x664], ebx
call fcn.100947e0
add esp, 0x28
lea eax, [ebp - 0x664]
push eax
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x668], eax
cmp eax, 0xffffffff
je 0x1000a3b6
push 0x101de278
lea eax, [ebp - 0x638]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x1000a38f
push 0x101de274
lea eax, [ebp - 0x638]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x1000a38f
xor eax, eax
push esi
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push ebx
push eax
call fcn.100947e0
lea eax, [ebp - 0x20c]
push edi
push eax
call fcn.10094d31
lea eax, [ebp - 0x20c]
push 0x101ddd04
push eax
call fcn.10094d03
lea eax, [ebp - 0x638]
push eax
lea eax, [ebp - 0x20c]
push eax
call fcn.10094d03
lea eax, [ebp - 0x20c]
push ebx
push eax
call fcn.1000a229
add esp, 0x2c
lea eax, [ebp - 0x664]
push eax
push dword [ebp - 0x668]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x1000a30b
push dword [ebp - 0x668]
call dword [sym.imp.KERNEL32.dll_FindClose]
push edi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
pop esi
jmp 0x1000a3c7
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp eax, ebx
jne 0x1000a3de
cmp dword [ebp + 0xc], ebx
je 0x1000a3de
push 4
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
jmp 0x1000a3de
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.100946c1
leave
ret
Function at 0x1000a3ec
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
mov eax, dword [0x1023d420]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
xor esi, esi
cmp ebx, esi
je 0x1000a5c1
push ebx
call fcn.10094dc6
pop ecx
test eax, eax
je 0x1000a5c1
push esi
push esi
push esi
push esi
push esi
lea eax, [ebp - 0x668]
push eax
push ebx
mov dword [ebp - 0x668], esi
call fcn.10007f8e
add esp, 0x1c
test eax, eax
je 0x1000a5c1
cmp dword [ebp - 0x668], 0xffffffff
je 0x1000a5c1
test byte [ebp - 0x668], 1
je 0x1000a46a
and dword [ebp - 0x668], 0xfffffffe
push dword [ebp - 0x668]
push ebx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test byte [ebp - 0x668], 0x10
je 0x1000a5a5
push edi
xor eax, eax
mov edi, 0x206
push edi
mov word [ebp - 0x414], ax
lea eax, [ebp - 0x412]
push esi
push eax
call fcn.100947e0
lea eax, [ebp - 0x414]
push ebx
push eax
call fcn.10094d31
lea eax, [ebp - 0x414]
push 0x101dddf4
push eax
call fcn.10094d03
push 0x24c
lea eax, [ebp - 0x660]
push esi
push eax
mov dword [ebp - 0x664], esi
call fcn.100947e0
add esp, 0x28
lea eax, [ebp - 0x664]
push eax
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x668], eax
cmp eax, 0xffffffff
je 0x1000a59b
push 0x101de278
lea eax, [ebp - 0x638]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x1000a574
push 0x101de274
lea eax, [ebp - 0x638]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x1000a574
xor eax, eax
push edi
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push esi
push eax
call fcn.100947e0
lea eax, [ebp - 0x20c]
push ebx
push eax
call fcn.10094d31
lea eax, [ebp - 0x20c]
push 0x101ddd04
push eax
call fcn.10094d03
lea eax, [ebp - 0x638]
push eax
lea eax, [ebp - 0x20c]
push eax
call fcn.10094d03
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.1000a3ec
add esp, 0x2c
lea eax, [ebp - 0x664]
push eax
push dword [ebp - 0x668]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x1000a4f0
push dword [ebp - 0x668]
call dword [sym.imp.KERNEL32.dll_FindClose]
push ebx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
pop edi
jmp 0x1000a5ac
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp eax, esi
jne 0x1000a5c3
cmp dword [ebp + 0xc], esi
je 0x1000a5c3
push 4
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
jmp 0x1000a5c3
xor eax, eax
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.100946c1
leave
ret