joyce8/EMBER2024-capa huggingface dataset:
Function at 0x426cf0
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov esi, dword [ebp + 0x10]
push 0xf00021
mov edx, dword [esi + 4]
mov ecx, dword [esi]
mov eax, dword [esi + 0xc]
sub eax, edx
push eax
mov eax, dword [esi + 8]
sub eax, ecx
push eax
push edx
push ecx
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.GDI32.dll_PatBlt]
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
mov ebx, eax
lea eax, [eax + 5]
add eax, 3
and eax, 0xfffffffc
call fcn.004162a0
mov dword [ebp - 4], esp
cmp dword [ebp - 4], 0
je 0x426dbb
add ebx, 2
mov eax, dword [ebp - 4]
push ebx
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
test eax, eax
je 0x426dbb
mov bx, 0x140
mov edi, dword [ebp + 0x14]
mov eax, edi
and al, 0xf
cmp al, 0xc
je 0x426d6e
mov ebx, edi
and bx, 0xf
or bx, 0x150
test edi, 0x80
je 0x426d79
or bh, 8
and edi, 0x8000000
je 0x426d94
mov eax, dword [0x46701c]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 0xc]
movzx eax, bx
push eax
push esi
push 0xffffffffffffffff
push ecx
push edx
call dword [sym.imp.USER32.dll_DrawTextA]
test edi, edi
je 0x426dbb
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
lea esp, [ebp - 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x427190
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 8]
sub esp, 4
push ebx
push esi
mov esi, dword [esp + 0x10]
push edi
push ebp
push 2
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x4271bb
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
jne 0x4271df
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push ebx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebp, eax
test ebp, ebp
jne 0x4271fa
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
mov edi, ebp
mov ecx, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x20]
xor ecx, ecx
mov cl, ah
mov edx, eax
mov dword [esp + 0x10], 0
shl ecx, 8
shr edx, 0x10
mov byte [esp + 0x10], dl
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x28]
or ecx, edx
mov edx, eax
shr edx, 0x10
mov dword [ebp + 0x28], ecx
mov dword [esp + 0x10], 0
xor ecx, ecx
mov byte [esp + 0x10], dl
mov cl, ah
xor edx, edx
shl ecx, 8
mov dl, al
shl edx, 0x10
or ecx, dword [esp + 0x10]
or ecx, edx
mov eax, dword [esp + 0x24]
mov edx, eax
mov dword [ebp + 0x44], ecx
shr edx, 0x10
xor ecx, ecx
mov dword [esp + 0x10], 0
mov cl, ah
mov byte [esp + 0x10], dl
shl ecx, 8
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x2c]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x48], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x30]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x64], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x34]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x54], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
push 0
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
or ecx, edx
mov dword [ebp + 0x50], ecx
call dword [sym.imp.USER32.dll_GetDC]
mov edi, eax
push 0
push ebp
lea ecx, [ebp + 0x68]
push ecx
push 4
push ebp
push edi
call dword [sym.imp.GDI32.dll_CreateDIBitmap]
mov esi, eax
push edi
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, esi
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
Function at 0x42ac5e
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push esi
mov eax, ebx
push edi
mov edi, ecx
shr eax, 0x10
test ax, ax
mov dword [edi + 0x40], ebx
jne 0x42ac80
cmp dword [edi + 0x3c], 0
jne 0x42ac80
movzx eax, bx
mov dword [edi + 0x3c], eax
call fcn.004412cd
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
mov ecx, edi
push dword [esp + 0x18]
push eax
call fcn.0042acad
pop edi
pop esi
pop ebx
ret 8

Function at 0x42acfb
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
mov ebx, ecx
xor edi, edi
call fcn.004412cd
mov esi, dword [eax + 0xc]
push 5
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x42ad2c
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push esi
mov ecx, ebx
push dword [esp + 0x18]
push edi
call fcn.0042ad3f
pop edi
pop esi
pop ebx
ret 8

Function at 0x42c3aa
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x42c3e2
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.0042f7ec
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0042f7c4
jmp 0x42c3ee
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x42e009
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x42e04b
call fcn.004412cd
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x42e04b
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x42e042
xor eax, eax
jmp 0x42e053
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0042e059
pop edi
pop esi
pop ebx
ret 4
Function at 0x441d66
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov dword [ebp - 8], ecx
call fcn.004412cd
mov esi, dword [eax + 0xc]
push 0xf1
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x441da3
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x441da3
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
jne 0x441da7
xor eax, eax
jmp 0x441e25
movzx eax, word [esi + 6]
push ebx
push edi
shl eax, 2
push eax
call fcn.0042f8b1
and dword [ebp - 4], 0
cmp word [esi + 6], 0
pop ecx
mov ebx, eax
jbe 0x441ddf
mov ecx, ebx
lea eax, [esi + 8]
movzx edx, word [eax]
inc dword [ebp - 4]
mov dword [ecx], edx
movzx edx, word [esi + 6]
inc eax
add ecx, 4
inc eax
cmp dword [ebp - 4], edx
jl 0x441dc9
movzx eax, word [esi + 6]
mov ecx, dword [ebp - 8]
push eax
push ebx
call fcn.00441f16
push ebx
mov edi, eax
call fcn.0042f8da
test edi, edi
pop ecx
je 0x441e21
movzx ecx, word [esi + 4]
movzx eax, word [esi + 2]
lea esi, [ecx + 7]
push ecx
mov ecx, dword [ebp - 8]
lea edx, [eax + 7]
push eax
push esi
push edx
call fcn.00441cdf
push dword [ebp + 8]
mov ecx, dword [ebp - 8]
call fcn.00441e2a
mov edi, eax
mov eax, edi
pop edi
pop ebx
pop esi
leave
ret 4

Function at 0x442d86
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x442db4
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x442dd2
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00442cec
jmp 0x442dd2
mov eax, dword [esi + 0x14]
test eax, eax
je 0x442dd2
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.00442cec
test edi, edi
mov eax, edi
jne 0x442dbc
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x405a03
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
pushal
call 0x405a12
pop dword [ebp - 0x2c]
mov eax, 0x405a12
sub dword [ebp - 0x2c], eax
mov dword [ebp - 0x3c], 0xebc3c18f
add dword [ebp - 0x3c], 0x628e83bc
mov dword [ebp - 0x38], 0xaa05f24a
add dword [ebp - 0x38], 0x882d59fb
mov dword [ebp - 0x34], 0x899c9249
add dword [ebp - 0x34], 0xc2afb1e5
mov dword [ebp - 0x30], 0x373c4e6d
add dword [ebp - 0x30], 0xc8c3b193
lea eax, [ebp - 0x3c]
push eax
mov eax, 0x7d7c3dcd
add eax, 0x82c44337
add eax, dword [ebp - 0x2c]
call dword [eax]
mov dword [ebp - 0x3c], 0xb74c81a2
add dword [ebp - 0x3c], 0xbd25e7b4
mov dword [ebp - 0x38], 0xc4a413ee
add dword [ebp - 0x38], 0x7cc84d87
mov dword [ebp - 0x34], 0x2a1dd51c
sub dword [ebp - 0x34], 0xc6ae68b0
mov dword [ebp - 0x30], 0x85273d14
sub dword [ebp - 0x30], 0x85273d14
lea ebx, [ebp - 0x3c]
push ebx
push eax
mov eax, 0x50b49adb
add eax, 0xaf8be625
add eax, dword [ebp - 0x2c]
call dword [eax]
push 0x40
push 0x1000
push 0x3a678
push 0
call eax
mov ecx, 0x55b2
mov esi, eax
mov edx, 0xd0e78465
sub edx, 0xd0a0a065
add edx, dword [ebp - 0x2c]
mov ebx, 0x31f84605
xor dword [ebp - 0x24], 0xeaab58dc
mov edi, dword [edx]
xor dword [ebp - 0x14], 0x2cc21608
xor edi, ebx
add dword [ebp - 0x14], 0x95877457
mov dword [esi], edi
add esi, 0xc278ee9d
sub esi, 0xc278ee99
add edx, 0x6000f3d5
sub edx, 0x6000f3d1
loop 0x405b23
add eax, 0x75e14ac5
sub eax, 0x75e0012a
mov ebx, eax
add eax, 5
mov ecx, 0x400000
add ecx, dword [ebp - 0x2c]
call ebx
leave
ret

Function at 0x405cce
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push edi
push dword [esp + 0xc]
mov esi, 0x425f30
push esi
call fcn.00406212
push esi
call fcn.00405c71
mov edi, eax
test edi, edi
jne 0x405cef
xor eax, eax
jmp 0x405d47
push edi
call fcn.004064a6
test byte [0x42a258], 0x80
je 0x405d0c
mov ax, word [edi]
test ax, ax
je 0x405ceb
cmp ax, 0x5c
je 0x405ceb
sub edi, esi
sar edi, 1
jmp 0x405d26
call fcn.00406555
test eax, eax
je 0x405d20
test byte [eax], 0x10
je 0x405ceb
push esi
call fcn.00405c12
push esi
call sub.kernel32.dll_lstrlenW
cmp eax, edi
push esi
jg 0x405d12
call fcn.00405bc6
push esi
call dword [sym.imp.kernel32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
pop edi
pop esi
ret 4

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

Disassembly:
push esi
push dword [esp + 8]
call dword [sym.imp.kernel32.dll_GetFileAttributesW]
mov esi, eax
cmp esi, 0xffffffff
je 0x405de1
and al, 0xfe
push eax
push dword [esp + 0xc]
call dword [sym.imp.kernel32.dll_SetFileAttributesW]
mov eax, esi
pop esi
ret 4

Function at 0x405de7
Capabilities:
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.kernel32.dll_GetFileAttributesW]
mov ecx, eax
push 0
inc ecx
neg ecx
sbb ecx, ecx
and ecx, eax
push ecx
push dword [esp + 0x14]
push 0
push 1
push dword [esp + 0x1c]
push dword [esp + 0x1c]
call dword [sym.imp.kernel32.dll_CreateFileW]
ret 0xc
Function at 0x10009497
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xd4
mov eax, dword [0x1023f420]
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.10094bd0
add esp, 0xc
call fcn.100ef480
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.10094bd0
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.100951b6
pop ecx
cmp eax, ebx
jb 0x1000953f
xor eax, eax
jmp 0x100095d6
lea eax, [ebp - 0xcc]
push eax
push dword [ebp - 0xd0]
call fcn.10095121
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.10094bd0
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.100951b6
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.10094ab7
leave
ret

Function at 0x10009895
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x1023f420]
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.10094bd0
push 0x104
lea eax, [ebp - 0x20c]
push eax
push 0xffffffffffffffff
push edi
call fcn.1001b052
lea eax, [ebp - 0x20c]
push eax
call fcn.100951b6
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.10094ab7
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.10095660
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.10095660
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.10095570
push 0x101dfdf0
push esi
call fcn.10095570
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.100951b6
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.100951b6
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.100950f3
push 0x101dfdf4
push esi
call fcn.100950f3
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 [0x1023f420]
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.100951b6
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.10094bd0
lea eax, [ebp - 0x414]
push edi
push eax
call fcn.10095121
lea eax, [ebp - 0x414]
push 0x101dfdf4
push eax
call fcn.100950f3
push 0x24c
lea eax, [ebp - 0x660]
push ebx
push eax
mov dword [ebp - 0x664], ebx
call fcn.10094bd0
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 0x101e0278
lea eax, [ebp - 0x638]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x1000a38f
push 0x101e0274
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.10094bd0
lea eax, [ebp - 0x20c]
push edi
push eax
call fcn.10095121
lea eax, [ebp - 0x20c]
push 0x101dfd04
push eax
call fcn.100950f3
lea eax, [ebp - 0x638]
push eax
lea eax, [ebp - 0x20c]
push eax
call fcn.100950f3
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.10094ab7
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 [0x1023f420]
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.100951b6
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.10094bd0
lea eax, [ebp - 0x414]
push ebx
push eax
call fcn.10095121
lea eax, [ebp - 0x414]
push 0x101dfdf4
push eax
call fcn.100950f3
push 0x24c
lea eax, [ebp - 0x660]
push esi
push eax
mov dword [ebp - 0x664], esi
call fcn.10094bd0
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 0x101e0278
lea eax, [ebp - 0x638]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x1000a574
push 0x101e0274
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.10094bd0
lea eax, [ebp - 0x20c]
push ebx
push eax
call fcn.10095121
lea eax, [ebp - 0x20c]
push 0x101dfd04
push eax
call fcn.100950f3
lea eax, [ebp - 0x638]
push eax
lea eax, [ebp - 0x20c]
push eax
call fcn.100950f3
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.10094ab7
leave
ret