joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40158a
Capabilities:
Hash data with md5

Disassembly:
xor ecx, ecx
mov byte [eax + 0x68], cl
mov dword [eax + 0x10], ecx
mov dword [eax + 0x14], ecx
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
ret

Function at 0x401c7d
Capabilities:
Create process on windows
Write and execute a file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [esi]
sub esp, 0x54
push ebx
xor ebx, ebx
push edi
cmp dword [eax - 0xc], ebx
je 0x401df9
mov eax, dword [0x455ee0]
mov ecx, 0x455ee0
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 4], eax
push 0x447b80
lea eax, [ebp - 8]
call fcn.004045c9
lea edi, [ebp - 4]
lea ecx, [ebp - 8]
call fcn.0040a018
mov eax, dword [ebp - 8]
add eax, 0xfffffff0
call fcn.004046a2
push 0x447b88
mov eax, edi
push eax
call fcn.0040217a
mov edi, dword [ebp - 4]
push ebx
push 0x80
push 2
push ebx
push ebx
push 0x40000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x18], eax
cmp eax, 0xffffffff
jne 0x401d05
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [edi - 0x10]
jmp 0x401df4
mov eax, dword [0x455ee0]
mov ecx, 0x455ee0
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0xc], eax
push edi
lea eax, [ebp - 8]
call fcn.00402006
mov eax, str._echo_off__r_nATTRIB__r___s___r_n:try__r_nrd___s___r_nif_exist___s__goto_try_r_nATTRIB__r___s___r_ndel___s___cls
cmp byte [esi + 9], bl
jne 0x401d30
mov eax, str._echo_off__r_nATTRIB__r___s___r_n:try__r_ndel___s___r_nif_exist___s__goto_try_r_nATTRIB__r___s___r_ndel___s___cls
push dword [ebp - 8]
push dword [ebp - 8]
push dword [esi]
push dword [esi]
push dword [esi]
push eax
lea eax, [ebp - 0xc]
call fcn.00402315
mov edi, dword [ebp - 0xc]
add esp, 0x18
push ebx
lea eax, [ebp - 0x10]
push eax
push dword [edi - 0xc]
push edi
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [ebp - 8]
add eax, 0xfffffff0
call fcn.004046a2
lea eax, [edi - 0x10]
call fcn.004046a2
cmp dword [ebp - 0x18], ebx
je 0x401d7e
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [esi + 4]
lea edi, [ebp - 0xc]
call fcn.00409ce9
cmp byte [esi + 8], bl
jne 0x401da5
mov edi, dword [ebp - 0xc]
push ebx
push edi
push ebx
push dword [ebp - 4]
push str.open
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
jmp 0x401de6
push 0x3c
pop edi
push edi
lea eax, [ebp - 0x54]
push ebx
push eax
call fcn.0042e8b0
mov eax, dword [ebp - 4]
mov dword [ebp - 0x44], eax
add esp, 0xc
mov dword [ebp - 0x54], edi
mov edi, dword [ebp - 0xc]
lea eax, [ebp - 0x54]
push eax
mov dword [ebp - 0x4c], ebx
mov dword [ebp - 0x50], 0x500
mov dword [ebp - 0x48], str.runas
mov dword [ebp - 0x3c], edi
mov dword [ebp - 0x40], ebx
mov dword [ebp - 0x38], ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
lea eax, [edi - 0x10]
call fcn.004046a2
mov eax, dword [ebp - 4]
add eax, 0xfffffff0
call fcn.004046a2
mov eax, dword [esi + 4]
sub eax, 0x10
call fcn.004046a2
mov eax, dword [esi]
sub eax, 0x10
call fcn.004046a2
pop edi
pop ebx
leave
ret
Function at 0x403075
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0x10], 0
jne 0x403083
push 0xd
pop eax
jmp 0x4030b6
push esi
mov esi, dword [ebp + 0x10]
push edi
xor edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
lea ecx, [eax + eax]
add esi, ecx
add edi, ecx
cmp eax, 1
jne 0x40308a
mov eax, dword [ebp + 8]
push edi
push dword [ebp + 0x10]
push 7
push 0
push dword [ebp + 0xc]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebp
ret 0xc
Function at 0x4034bf
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x228
mov eax, dword [0x454090]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, ecx
mov ecx, dword [edi + 4]
or ecx, 0x2001f
push ecx
push eax
push dword [edi]
mov dword [ebp - 0x21c], eax
xor esi, esi
lea eax, [ebp - 0x214]
mov dword [ebp - 0x214], esi
mov dword [ebp - 0x210], esi
call fcn.0040348c
mov ebx, eax
cmp ebx, esi
je 0x403527
cmp dword [ebp - 0x214], esi
je 0x403520
push dword [ebp - 0x214]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
jmp 0x4035c2
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
jmp 0x40354f
lea eax, [ebp - 0x20c]
push eax
lea ecx, [ebp - 0x214]
call fcn.004034bf
mov dword [ebp - 0x220], eax
cmp eax, esi
jne 0x4035d3
lea eax, [ebp - 0x228]
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x20c]
push eax
push esi
push dword [ebp - 0x214]
mov dword [ebp - 0x218], 0x100
call ebx
test eax, eax
je 0x40352f
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x214], esi
je 0x40359a
push dword [ebp - 0x214]
call ebx
mov dword [ebp - 0x214], esi
push dword [ebp - 0x21c]
mov dword [ebp - 0x210], esi
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov edi, eax
cmp dword [ebp - 0x214], esi
je 0x4035c0
push dword [ebp - 0x214]
call ebx
mov eax, edi
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042e88b
leave
ret 4
cmp dword [ebp - 0x214], esi
je 0x4035e7
push dword [ebp - 0x214]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x220]
jmp 0x4035c2
Function at 0x403f47
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
lea ebp, [esp - 0x394]
sub esp, 0x414
mov eax, dword [0x454090]
xor eax, ebp
mov dword [ebp + 0x390], eax
mov eax, dword [ebp + 0x39c]
push ebx
mov ebx, dword [ebp + 0x3a0]
push esi
push edi
xor esi, esi
push 2
push esi
push eax
mov edi, edx
mov dword [ebp - 0x7c], ecx
mov dword [ebp - 0x80], esi
mov dword [ebp - 0x74], esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov dword [ebp - 0x78], eax
cmp eax, esi
jne 0x403f9b
call fcn.00402ba5
mov esi, eax
jmp 0x404059
push ebx
push edi
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
cmp edi, esi
jne 0x403fb4
call fcn.00402ba5
jmp 0x40404e
push edi
push dword [ebp - 0x78]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
cmp ebx, esi
je 0x403faa
push edi
push dword [ebp - 0x78]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
lea eax, [edi + 1]
cmp eax, edi
jae 0x403fee
lea eax, [ebp - 0x70]
cmp dword [ebp - 0x74], eax
je 0x403fe7
lea eax, [ebp - 0x74]
call fcn.004030ba
mov eax, 0x8007000e
jmp 0x40406b
push 2
push eax
call fcn.004030e3
pop ecx
pop ecx
cmp eax, 0x400
jbe 0x40400b
push eax
lea eax, [ebp - 0x74]
push eax
call fcn.00402b84
jmp 0x404011
lea eax, [ebp - 0x70]
mov dword [ebp - 0x74], eax
cmp dword [ebp - 0x74], esi
jne 0x40401d
mov esi, 0x8007000e
jmp 0x404050
push edi
push dword [ebp - 0x74]
push edi
push ebx
push esi
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp eax, esi
je 0x403faa
mov edx, dword [ebp - 0x74]
push dword [ebp + 0x3a4]
xor ecx, ecx
mov word [edx + eax*2], cx
mov ecx, dword [ebp - 0x74]
lea edx, [ebp - 0x80]
call fcn.00403dff
mov esi, eax
push dword [ebp - 0x78]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x70]
cmp dword [ebp - 0x74], eax
je 0x404069
lea eax, [ebp - 0x74]
call fcn.004030ba
mov eax, esi
mov ecx, dword [ebp + 0x390]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042e88b
add ebp, 0x394
leave
ret 0xc

Function at 0x4042ad
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push esi
push dword [esp + 0xc]
mov esi, eax
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x4042c4
pop esi
ret
push edi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
je 0x4042f9
push dword [esp + 0x10]
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
add eax, edi
and esi, 0xf
jbe 0x4042f5
cmp edi, eax
jae 0x4042f9
dec esi
movzx ecx, word [edi]
lea edi, [edi + ecx*2 + 2]
jne 0x4042e7
cmp edi, eax
jb 0x4042fd
xor eax, eax
jmp 0x404306
movzx eax, word [edi]
neg eax
sbb eax, eax
and eax, edi
pop edi
pop esi
ret

Function at 0x40476f
Capabilities:
Check mutex on windows

Disassembly:
push esi
push edi
push dword [esp + 0xc]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov edi, eax
mov esi, 0x456bfc
call fcn.00408c8e
cmp dword [0x456bfc], 0
pop edi
pop esi
je 0x4047aa
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x4047aa
mov byte [0x456c04], 1
ret 4
Function at 0x407030
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x454090]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
test byte [eax + 0x6c], 1
jne 0x40704d
xor al, al
jmp 0x4070c3
push edi
push eax
call fcn.00407fcf
mov edi, eax
mov eax, dword [edi]
mov ecx, dword [eax - 0xc]
cmp ecx, 3
jl 0x40708c
test ecx, ecx
jge 0x40706e
push 0x80070057
call fcn.0040467e
cmp word [eax], 0x5c
jne 0x407090
cmp ecx, 1
jl 0x407064
cmp word [eax + 2], 0x5c
jne 0x407090
cmp ecx, 2
jl 0x407064
cmp word [eax + 4], 0x5c
je 0x407090
xor al, al
jmp 0x4070c2
push esi
xor esi, esi
test esi, esi
jl 0x407064
mov ecx, esi
mov eax, edi
call fcn.00408c57
mov word [ebp + esi*2 - 0xc], ax
inc esi
cmp esi, 3
jl 0x407093
xor eax, eax
mov word [ebp - 6], ax
pop esi
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
setne al
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042e88b
leave
ret 4

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
call fcn.00407fcf
lea ecx, [ebp - 4]
mov esi, eax
call fcn.00409b06
push 0x5c
call fcn.00408aa2
mov ecx, dword [esi]
mov ecx, dword [ecx - 0xc]
inc eax
lea edx, [ebp - 8]
push edx
sub ecx, eax
mov edx, eax
mov eax, esi
call fcn.00408b38
mov ebx, dword [ebp - 8]
push dword [ebx - 0xc]
lea eax, [ebp - 4]
push ebx
call fcn.00402360
lea eax, [ebx - 0x10]
call fcn.004046a2
mov ebx, dword [ebp - 4]
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x407137
push 0x80
push ebx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov eax, dword [esi]
push 0
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x407152
xor esi, esi
inc esi
mov dword [edi + 0x10], esi
jmp 0x4071d3
push esi
lea ebx, [edi + 0x18]
push ebx
push 3
pop eax
call fcn.00412f6b
mov eax, dword [0x455ee0]
mov ecx, 0x455ee0
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 8], eax
xor esi, esi
push esi
lea eax, [ebp - 0xc]
push eax
push ebx
call fcn.00413061
push dword [eax]
mov ebx, dword [ebp - 4]
push ebx
lea eax, [ebp - 8]
push 0x44869c
push eax
call fcn.00409558
mov eax, dword [ebp - 0xc]
add esp, 0x10
add eax, 0xfffffff0
call fcn.004046a2
lea eax, [edi + 0x160]
call fcn.00412cca
push esi
push 0x20
push esi
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
call fcn.0041f5a7
add esp, 0x14
test al, al
jne 0x4071c8
inc esi
mov dword [edi + 0x10], esi
mov eax, dword [ebp - 8]
add eax, 0xfffffff0
call fcn.004046a2
lea eax, [ebx - 0x10]
call fcn.004046a2
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x409e8b
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x26c
mov eax, dword [0x454090]
xor eax, esp
mov dword [esp + 0x268], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov eax, dword [edi]
sub eax, 0x10
mov dword [esp + 0x1c], edi
call fcn.00409a5a
add eax, 0x10
lea esi, [esp + 0xc]
mov dword [esp + 0xc], eax
call fcn.00409ad4
push 0x448930
mov eax, esi
push eax
call fcn.0040217a
xor esi, esi
push 0x24c
lea eax, [esp + 0x28]
push esi
push eax
mov dword [esp + 0x2c], esi
call fcn.0042e8b0
add esp, 0xc
lea eax, [esp + 0x20]
push eax
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [esp + 0x14], eax
cmp eax, 0xffffffff
je 0x409fed
mov ebx, dword [sym.imp.KERNEL32.dll_FindNextFileW]
cmp word [esp + 0x4c], 0x2e
jne 0x409f43
cmp word [esp + 0x4e], si
je 0x409f2f
cmp word [esp + 0x4e], 0x2e
jne 0x409f43
cmp word [esp + 0x50], si
jne 0x409f43
lea eax, [esp + 0x20]
push eax
push dword [esp + 0x18]
call ebx
mov dword [esp + 0x18], eax
jmp 0x409fe1
test byte [esp + 0x20], 0x10
je 0x409fa3
mov eax, dword [edi]
sub eax, 0x10
call fcn.00409a5a
add eax, 0x10
lea esi, [esp + 0x10]
mov dword [esp + 0x10], eax
call fcn.00409ad4
lea eax, [esp + 0x4c]
push eax
mov eax, esi
push eax
call fcn.0040217a
lea eax, [esp + 0x20]
push eax
push dword [esp + 0x18]
call ebx
mov dword [esp + 0x18], eax
mov eax, esi
push eax
call fcn.00409e8b
pop ecx
call fcn.004020cd
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
call fcn.004046a2
jmp 0x409fe1
mov eax, edi
lea edi, [esp + 0xc]
call fcn.0040872e
mov esi, edi
call fcn.00409ad4
lea eax, [esp + 0x4c]
push eax
mov eax, edi
push eax
call fcn.0040217a
lea eax, [esp + 0x20]
push eax
push dword [esp + 0x18]
call ebx
mov dword [esp + 0x18], eax
call fcn.004020cd
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov edi, dword [esp + 0x1c]
xor esi, esi
cmp dword [esp + 0x18], esi
jne 0x409f11
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
call fcn.004046a2
mov ecx, dword [esp + 0x274]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0042e88b
mov esp, ebp
pop ebp
ret
Function at 0x40a08e
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x455ee0]
push esi
mov ecx, 0x455ee0
call dword [eax + 0xc]
mov esi, dword [ebp + 0xc]
add eax, 0x10
mov dword [ebp - 4], eax
mov eax, dword [esi]
mov ecx, dword [eax - 0xc]
dec ecx
js 0x40a155
push edi
mov eax, esi
call fcn.00408c57
cmp ax, 0x5c
jne 0x40a0ec
mov eax, dword [esi]
mov eax, dword [eax - 0xc]
lea ecx, [eax - 1]
lea edx, [ebp - 0xc]
mov eax, esi
call fcn.00408baf
lea edi, [ebp - 4]
call fcn.0040872e
mov eax, dword [ebp - 0xc]
add eax, 0xfffffff0
call fcn.004046a2
jmp 0x40a0f6
mov eax, esi
lea edi, [ebp - 4]
call fcn.0040872e
mov esi, dword [ebp + 8]
mov eax, dword [ebp - 4]
mov ecx, dword [esi]
mov edx, dword [eax - 0xc]
cmp edx, dword [ecx - 0xc]
pop edi
jl 0x40a112
add eax, 0xfffffff0
call fcn.004046a2
pop esi
leave
ret
push 0x5c
call fcn.00408aa2
mov ecx, eax
lea edx, [ebp - 8]
mov eax, esi
call fcn.00408baf
mov eax, dword [ebp - 8]
cmp dword [eax - 0xc], 0
je 0x40a145
push dword [esi]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
call fcn.0040a08e
pop ecx
pop ecx
mov eax, dword [ebp - 8]
add eax, 0xfffffff0
call fcn.004046a2
mov eax, dword [ebp - 4]
jmp 0x40a107
push 0x80070057
call fcn.0040467e
int3

Function at 0x40a160
Capabilities:
Get disk information

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0xd4
mov eax, dword [0x454090]
xor eax, ebp
mov dword [ebp + 0x74], eax
push ebx
push esi
push edi
lea eax, [ebp - 0x54]
mov esi, ecx
xor edi, edi
push eax
push 0x64
mov dword [esi], edi
mov dword [esi + 4], edi
mov dword [esi + 8], edi
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
mov dword [ebp - 0x58], eax
lea ebx, [ebp + edi*2 - 0x54]
push ebx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
jne 0x40a1ca
push ebx
lea eax, [ebp - 0x5c]
call fcn.004045c9
lea ebx, [ebp - 0x5c]
call fcn.00409497
mov eax, dword [ebp - 0x5c]
add eax, 0xfffffff0
call fcn.004046a2
jmp 0x40a1ca
cmp word [ebp + edi*2 - 0x54], 0
je 0x40a1cf
inc edi
cmp edi, dword [ebp - 0x58]
jb 0x40a1c1
inc edi
cmp edi, dword [ebp - 0x58]
jb 0x40a193
mov ecx, dword [ebp + 0x74]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042e88b
add ebp, 0x78
leave
ret
Function at 0x40a533
Capabilities:
Create directory
Delete directory

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
sub esp, 0x28
push ebx
push esi
push edi
call fcn.0040a1e9
test al, al
je 0x40a54f
xor eax, eax
jmp 0x40a64a
mov eax, dword [ebp + 8]
call fcn.0040a31f
mov byte [ebp - 1], al
lea eax, [ebp - 0x24]
xor ebx, ebx
push eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], ebx
call fcn.0040a3aa
mov edi, dword [ebp - 0x20]
cmp edi, ebx
pop ecx
jg 0x40a588
push ebx
push ebx
push 1
push 0xc000008c
call dword [sym.imp.KERNEL32.dll_RaiseException]
mov eax, dword [ebp - 0x24]
mov eax, dword [eax]
sub eax, 0x10
call fcn.00409a5a
mov esi, eax
add esi, 0x10
dec edi
mov dword [ebp - 0xc], esi
mov dword [ebp - 0x18], edi
cmp byte [ebp + 0xc], bl
je 0x40a5aa
inc edi
mov dword [ebp - 0x18], edi
xor eax, eax
inc eax
cmp edi, eax
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], eax
jle 0x40a62b
mov edi, 0x4488a4
jmp 0x40a5c0
xor ebx, ebx
lea eax, [esi - 0x10]
call fcn.00409a5a
add eax, 0x10
mov dword [ebp - 8], eax
push edi
lea eax, [ebp - 8]
push eax
call fcn.0040217a
mov eax, dword [ebp - 0x10]
lea ecx, [ebp - 0x24]
call fcn.0040dae3
mov eax, dword [eax]
push dword [eax - 0xc]
push eax
lea eax, [ebp - 8]
call fcn.00402360
push ebx
mov ebx, dword [ebp - 8]
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x40a64f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x14], eax
cmp eax, 0xb7
je 0x40a661
cmp byte [ebp - 1], 0
jne 0x40a661
cmp dword [ebp - 0x10], 1
jle 0x40a623
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
lea eax, [ebx - 0x10]
call fcn.004046a2
lea eax, [esi - 0x10]
call fcn.004046a2
lea esi, [ebp - 0x24]
call fcn.00408ca5
mov eax, dword [ebp - 0x14]
sub eax, 0xb7
neg eax
sbb eax, eax
and eax, dword [ebp - 0x14]
pop edi
pop esi
pop ebx
leave
ret
mov esi, dword [ebp + 0x10]
test esi, esi
je 0x40a661
lea ebx, [ebp - 8]
call fcn.00409497
mov ebx, dword [ebp - 8]
push edi
lea eax, [ebp - 0xc]
push eax
call fcn.0040217a
mov esi, dword [ebp - 0x10]
mov eax, esi
lea ecx, [ebp - 0x24]
call fcn.0040dae3
mov eax, dword [eax]
push dword [eax - 0xc]
push eax
lea eax, [ebp - 0xc]
call fcn.00402360
lea eax, [ebx - 0x10]
call fcn.004046a2
inc esi
cmp esi, dword [ebp - 0x18]
mov dword [ebp - 0x10], esi
mov esi, dword [ebp - 0xc]
jl 0x40a5be
jmp 0x40a62b
Function at 0x40ae9e
Capabilities:
Delete directory
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
mov ebx, dword [ebp + 8]
cmp byte [ebx + 0xb8], 0
push esi
push edi
je 0x40b01c
cmp byte [ebx + 0xd0], 0
jne 0x40b01c
lea esi, [ebx + 0x84]
cmp dword [esi], 3
je 0x40aefb
call fcn.0040c2c9
mov esi, dword [esi]
cmp esi, 2
je 0x40aefb
cmp esi, 1
je 0x40aefb
mov eax, dword [ebx + 0x44]
mov ecx, eax
shr ecx, 3
test cl, 1
jne 0x40aef4
shr eax, 6
test al, 1
je 0x40aefb
mov eax, ebx
call fcn.0040b5d8
mov ecx, dword [ebx + 0xa0]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
xor eax, eax
cmp ecx, eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], ecx
mov dword [ebp - 4], eax
jle 0x40af6c
lea eax, [ebx + 0x9c]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 8]
call fcn.0040dae3
push dword [eax]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov esi, eax
call edi
test esi, esi
jne 0x40af61
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 8]
call fcn.0040dae3
mov ebx, eax
lea esi, [ebp - 0x24]
call fcn.00409497
mov ebx, dword [ebp + 8]
inc dword [ebp - 4]
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 0xc]
jl 0x40af2e
mov esi, dword [ebx + 0xac]
dec esi
mov dword [ebp - 4], esi
js 0x40afbe
lea eax, [ebx + 0xa8]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
mov eax, esi
call fcn.0040dae3
push dword [eax]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov dword [ebp - 0xc], eax
call edi
cmp dword [ebp - 0xc], 0
jne 0x40afb8
mov ecx, dword [ebp - 8]
mov eax, esi
call fcn.0040dae3
mov ebx, eax
lea esi, [ebp - 0x18]
call fcn.00409497
mov ebx, dword [ebp + 8]
mov esi, dword [ebp - 4]
dec esi
mov dword [ebp - 4], esi
jns 0x40af81
lea eax, [ebx + 0x9c]
lea edi, [ebp - 0x24]
call fcn.0040d90f
lea esi, [ebx + 0xa8]
call fcn.00408ca5
mov edi, dword [ebp - 0x14]
jmp 0x40afed
mov eax, edi
lea ecx, [ebp - 0x18]
call fcn.0040dae3
mov ebx, eax
call fcn.00409497
dec edi
jns 0x40afdc
mov eax, dword [ebp + 8]
xor ecx, ecx
cmp dword [eax + 0xa0], ecx
jne 0x40b006
cmp dword [eax + 0xac], ecx
jne 0x40b006
inc ecx
lea esi, [ebp - 0x18]
mov byte [eax + 0xd0], cl
call fcn.00408ca5
lea esi, [ebp - 0x24]
call fcn.00408ca5
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x40b5d8
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
push edi
mov edi, eax
mov eax, dword [edi + 0x5c]
sub eax, 0x10
call fcn.00409a5a
add eax, 0x10
xor edx, edx
mov dword [ebp - 4], eax
mov eax, dword [edi + 0x44]
inc edx
test dl, al
jne 0x40b62a
shr eax, 3
movzx ecx, al
and al, dl
and ecx, edx
movzx eax, al
add ecx, ecx
or ecx, edx
neg eax
sbb eax, eax
and eax, 7
push ecx
push eax
mov eax, edi
call fcn.0040bd10
lea ecx, [edi + 0x6c]
call fcn.0040da63
add eax, 0x18
jmp 0x40b670
shr eax, 6
test dl, al
je 0x40b691
lea esi, [ebp - 8]
mov ecx, edi
call fcn.0040d23d
mov eax, dword [eax]
push dword [eax - 0xc]
push eax
lea eax, [ebp - 4]
call fcn.00402360
mov eax, dword [ebp - 8]
add eax, 0xfffffff0
call fcn.004046a2
lea esi, [ebp - 4]
call fcn.00409ad4
push 6
mov eax, edi
call fcn.0040bd54
lea ecx, [edi + 0x90]
call fcn.004133e6
lea edi, [ebp - 8]
call fcn.00409ce9
mov eax, dword [eax]
push dword [eax - 0xc]
push eax
lea eax, [ebp - 4]
call fcn.00402360
mov eax, dword [ebp - 8]
add eax, 0xfffffff0
call fcn.004046a2
lea eax, [ebp - 4]
push eax
call fcn.00409e8b
mov esi, dword [ebp - 4]
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
lea eax, [esi - 0x10]
call fcn.004046a2
pop edi
xor eax, eax
pop esi
leave
ret
Function at 0x40c2c9
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebx + 0x44]
sub esp, 0x10
test al, 1
je 0x40c2e1
shr eax, 6
test al, 1
je 0x40c3cc
mov eax, dword [ebx + 0x70]
and dword [ebp - 8], 0
mov dword [ebp - 0x10], eax
test eax, eax
jle 0x40c3cc
push esi
push edi
mov eax, dword [ebp - 8]
lea ecx, [ebx + 0x6c]
call fcn.0040da63
mov esi, eax
cmp byte [esi + 0x1c], 0
je 0x40c3bb
mov eax, dword [esi]
cmp eax, 1
je 0x40c33d
cmp eax, 3
je 0x40c33d
cmp eax, 7
je 0x40c33d
cmp eax, 8
je 0x40c33d
cmp eax, 0x64
jb 0x40c358
mov eax, dword [ebx + 0x84]
cmp eax, 2
je 0x40c3bb
cmp eax, 5
jne 0x40c358
jmp 0x40c3bb
mov eax, dword [ebx + 0x84]
cmp eax, 4
je 0x40c358
cmp eax, 2
je 0x40c3bb
cmp eax, 1
je 0x40c3bb
test byte [esi + 8], 1
jne 0x40c3bb
mov eax, dword [esi + 4]
mov ecx, ebx
call fcn.0040d2c2
mov edi, eax
mov eax, dword [edi]
sub eax, 0x10
call fcn.00409a5a
mov esi, dword [esi + 0x18]
push dword [esi - 0xc]
add eax, 0x10
mov dword [ebp - 4], eax
push esi
lea eax, [ebp - 4]
call fcn.00402360
lea esi, [ebp - 4]
call fcn.004020cd
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push edi
mov eax, esi
lea edi, [ebp - 0xc]
call fcn.00409ce9
push eax
call fcn.0040a08e
mov eax, dword [ebp - 0xc]
pop ecx
pop ecx
add eax, 0xfffffff0
call fcn.004046a2
mov eax, dword [ebp - 4]
add eax, 0xfffffff0
call fcn.004046a2
inc dword [ebp - 8]
mov eax, dword [ebp - 8]
cmp eax, dword [ebp - 0x10]
jl 0x40c2f5
pop edi
pop esi
leave
ret