joyce8/EMBER2024-capa huggingface dataset:
Function at 0x412c17
Capabilities:
Get common file path
Get startup folder

Disassembly:
push ebp
lea ebp, [esp - 0x9b4]
sub esp, 0xa34
mov eax, dword [0x431420]
xor eax, ebp
mov dword [ebp + 0x9b0], eax
mov eax, dword [ebp + 0x9c4]
push ebx
push esi
push edi
xor ebx, ebx
mov esi, ecx
push ebx
push dword [esi + 4]
mov dword [ebp - 0x60], eax
call dword [sym.imp.USER32.dll_EnableWindow]
push 7
pop ecx
xor eax, eax
lea edi, [ebp - 0x7c]
push 0x103
rep stosd dword es:[edi], eax
lea eax, [ebp + 0x7a9]
push ebx
push eax
mov byte [ebp + 0x7a8], bl
call fcn.004139c0
mov edi, 0x3ff
push edi
lea eax, [ebp - 0x57]
push ebx
push eax
mov byte [ebp - 0x58], bl
call fcn.004139c0
mov eax, dword [ebp - 0x60]
add esp, 0x18
push 0x400
mov dword [ebp - 0x80], eax
lea eax, [ebp - 0x58]
push eax
push 0x7fe
push dword [0x43301c]
call dword [sym.imp.USER32.dll_LoadStringA]
lea eax, [ebp - 0x58]
mov dword [ebp - 0x74], eax
lea eax, [ebp + 0x7a8]
mov dword [ebp - 0x78], eax
lea eax, [ebp - 0x5c]
push eax
push ebx
push ebx
push 0x11
push dword [ebp - 0x60]
mov dword [ebp - 0x70], 0x49
mov dword [ebp - 0x5c], ebx
call dword [sym.imp.SHELL32.dll_SHGetFolderLocation]
test eax, eax
jne 0x412cd8
mov eax, dword [ebp - 0x5c]
mov dword [ebp - 0x7c], eax
lea eax, [ebp - 0x80]
push eax
call dword [sym.imp.SHELL32.dll_SHBrowseForFolderA]
mov dword [ebp - 0x5c], eax
cmp eax, ebx
je 0x412d8b
push 0x103
lea eax, [ebp + 0x8ad]
push ebx
push eax
mov byte [ebp + 0x8ac], bl
call fcn.004139c0
add esp, 0xc
lea eax, [ebp + 0x8ac]
push eax
push dword [ebp - 0x5c]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
test eax, eax
je 0x412d82
lea ecx, [ebp + 0x8ac]
lea eax, [esi + 0x28]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push edi
lea eax, [ebp + 0x3a9]
push ebx
push eax
mov byte [ebp + 0x3a8], bl
call fcn.004139c0
lea eax, [ebp + 0x8ac]
push eax
lea eax, [ebp + 0x3a8]
push str.Selected_Folder:__s_n
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
lea eax, [ebp + 0x3a8]
push eax
call fcn.0040cb43
add esp, 0x1c
push 0x408
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetDlgItem]
lea ecx, [esi + 0x28]
push ecx
push eax
call dword [sym.imp.USER32.dll_SetWindowTextA]
push dword [ebp - 0x5c]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
push 1
push dword [esi + 4]
call dword [sym.imp.USER32.dll_EnableWindow]
mov ecx, dword [ebp + 0x9b0]
pop edi
pop esi
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.00413f3b
add ebp, 0x9b4
leave
ret 0x10
Function at 0x41356e
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
cmp dword [0x43304c], 0
push esi
push edi
jne 0x4134e4
call fcn.00413450
test eax, eax
je 0x413529
mov eax, dword [0x43304c]
cmp eax, 1
jne 0x413505
push 0xd
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x413529
jmp 0x41356b
mov edi, dword [sym.imp.KERNEL32.dll_InterlockedPopEntrySList]
push eax
call edi
test eax, eax
jne 0x41356b
push 0x40
mov eax, 0x1000
push eax
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
jne 0x41352d
xor eax, eax
jmp 0x41356b
mov eax, dword [esi]
push dword [0x43304c]
call edi
mov edi, eax
test edi, edi
je 0x41354f
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, edi
jmp 0x41356b
lea edi, [esi + 0xff0]
push esi
push dword [0x43304c]
call dword [sym.imp.KERNEL32.dll_InterlockedPushEntrySList]
add esi, 0x10
cmp esi, edi
jb 0x413555
mov eax, esi
pop edi
pop esi
ret
jmp 0x4134d0

Function at 0x413f3b
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x431420]
jne 0x413f45
repz ret
jmp fcn.00417f81
Function at 0x41e799
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x431420]
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.0041910b
and dword [ebp - 0x14], 0
cmp dword [0x433e3c], 0
mov dword [ebp - 0x18], eax
jne 0x41e84c
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x41e8f4
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x41e8f4
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x42ae94
push ebx
mov dword [0x433e3c], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x433e40], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x433e44], eax
call edi
push eax
call esi
mov dword [0x433e4c], eax
test eax, eax
je 0x41e84c
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x433e48], eax
mov eax, dword [0x433e48]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x41e8a5
cmp dword [0x433e4c], ecx
je 0x41e8a5
push eax
call esi
push dword [0x433e4c]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x41e8a5
test ebx, ebx
je 0x41e8a5
call edi
test eax, eax
je 0x41e89c
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x41e89c
test byte [ebp - 8], 1
jne 0x41e8a5
or dword [ebp + 0x10], 0x200000
jmp 0x41e8d8
mov eax, dword [0x433e40]
cmp eax, dword [ebp - 0x18]
je 0x41e8d8
push eax
call esi
test eax, eax
je 0x41e8d8
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x41e8d8
mov eax, dword [0x433e44]
cmp eax, dword [ebp - 0x18]
je 0x41e8d8
push eax
call esi
test eax, eax
je 0x41e8d8
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x433e3c]
call esi
test eax, eax
je 0x41e8f4
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x41e8f6
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00413f3b
leave
ret
Function at 0x100c50e
Capabilities:
Get process heap flags
Get storage device properties

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x74
mov eax, dword [0x1014420]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
xor esi, esi
mov dword [ebp - 0x3c], esi
mov dword [ebp - 0x44], esi
call fcn.0100d46a
test al, al
jne 0x100c539
xor eax, eax
jmp 0x100c684
push ebx
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x3c]
push eax
push 1
push 0x100d6f4
push 0x100d6ce
push esi
call fcn.0100cc5e
mov ebx, dword [sym.imp.ntdll.dll_RtlFreeHeap]
test eax, eax
jl 0x100c669
cmp dword [ebp - 0x40], 4
jb 0x100c669
push dword [ebp - 0x3c]
shr dword [ebp - 0x40], 1
call sub.msvcrt.dll__wcslwr
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp - 0x54]
push eax
push 0x100d698
push dword [ebp - 0x40]
push dword [ebp - 0x3c]
call fcn.01006b20
add esp, 0x1c
cmp eax, 3
jne 0x100c669
cmp dword [ebp - 0x54], esi
jne 0x100c669
cmp dword [ebp - 0x4c], esi
jne 0x100c669
cmp dword [ebp - 0x48], esi
jne 0x100c669
lea eax, [ebp - 0x50]
push eax
push 0x100d656
call fcn.0100cdaa
test eax, eax
jl 0x100c669
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push edi
push dword [ebp - 0x3c]
push esi
push dword [eax + 0x18]
call ebx
mov edx, dword [ebp - 0x50]
xor eax, eax
lea edi, [ebp - 0x10]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push 0xa
stosd dword es:[edi], eax
pop ecx
xor eax, eax
push 0x28
lea edi, [ebp - 0x38]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x38]
push eax
push 0xc
lea eax, [ebp - 0x10]
push eax
push 0x2d1400
push edx
mov dword [ebp - 0x3c], edx
mov dword [ebp - 0x10], esi
mov dword [ebp - 0xc], esi
call fcn.0100d376
cmp eax, esi
pop edi
jge 0x100c624
cmp eax, 0xc000003a
jmp 0x100c628
cmp dword [ebp - 0x1c], 7
jne 0x100c669
push 0x100d614
lea eax, [ebp - 0x74]
push eax
call dword [sym.imp.ntdll.dll_RtlInitUnicodeString]
lea eax, [ebp - 0x74]
mov dword [ebp - 0x64], eax
lea eax, [ebp - 0x6c]
push eax
push 0x20001
lea eax, [ebp - 0x44]
push eax
mov dword [ebp - 0x6c], 0x18
mov dword [ebp - 0x68], esi
mov dword [ebp - 0x60], 0x40
mov dword [ebp - 0x5c], esi
mov dword [ebp - 0x58], esi
call dword [sym.imp.ntdll.dll_NtOpenSymbolicLinkObject]
cmp dword [ebp - 0x3c], esi
je 0x100c680
push dword [ebp - 0x3c]
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push esi
push dword [eax + 0x18]
call ebx
mov eax, dword [ebp - 0x44]
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.01006913
leave
ret
Function at 0x100c6c2
Capabilities:
Check for peb beingdebugged flag

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
push esi
mov esi, dword [sym.imp.ntdll.dll_RtlInitUnicodeString]
push edi
push 0x100d656
lea eax, [ebp - 0x14]
xor edi, edi
push eax
mov dword [ebp - 4], edi
mov dword [ebp - 8], edi
call esi
lea eax, [ebp - 0x14]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x2c]
push eax
push 0x20001
lea eax, [ebp - 4]
push eax
mov dword [ebp - 0x2c], 0x18
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x20], 0x40
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x18], edi
call dword [sym.imp.ntdll.dll_NtOpenSymbolicLinkObject]
mov ebx, eax
cmp ebx, edi
jge 0x100c73e
cmp ebx, 0xc0000017
je 0x100c7d2
cmp ebx, 0xc000009a
je 0x100c7d2
mov ebx, 0xc0000452
jmp 0x100c7d2
push dword [ebp - 4]
call fcn.0100c696
mov dword [ebp - 4], eax
push edi
lea eax, [ebp - 0x14]
push eax
mov dword [ebp - 0xc], edi
call esi
mov esi, dword [sym.imp.ntdll.dll_NtQuerySymbolicLinkObject]
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 4]
call esi
mov ebx, eax
cmp ebx, 0xc0000023
je 0x100c77b
cmp ebx, edi
jl 0x100c7d2
mov ebx, 0xc0000001
jmp 0x100c7d2
mov eax, dword fs:[0x18]
mov ecx, dword [ebp - 0xc]
mov eax, dword [eax + 0x30]
add ecx, 2
push ecx
push edi
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov dword [ebp - 8], eax
cmp eax, edi
jne 0x100c7a3
mov ebx, 0xc000009a
jmp 0x100c7d2
mov dword [ebp - 0x10], eax
mov ax, word [ebp - 0xc]
mov word [ebp - 0x12], ax
push edi
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 4]
call esi
mov ebx, eax
cmp ebx, edi
jl 0x100c7d2
movzx ecx, word [ebp - 0x14]
mov eax, dword [ebp - 8]
shr ecx, 1
xor edx, edx
mov word [eax + ecx*2], dx
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
cmp dword [ebp - 4], edi
je 0x100c7e0
push dword [ebp - 4]
call dword [sym.imp.ntdll.dll_NtClose]
cmp ebx, edi
jge 0x100c7ff
cmp dword [ebp - 8], edi
je 0x100c7ff
push dword [ebp - 8]
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push edi
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret 4
Function at 0x100c9d4
Capabilities:
Get system information on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword fs:[0x18]
push ebx
push esi
xor ebx, ebx
push 0x6a
mov dword [ebp - 0x18], ebx
mov dword [ebp - 8], ebx
mov eax, dword [eax + 0x30]
push ebx
push dword [eax + 0x18]
mov byte [ebp - 1], bl
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0xc], ebx
cmp eax, ebx
jne 0x100ca15
mov esi, 0xc0000017
jmp 0x100cb3e
test byte [ebp + 0xc], 1
push edi
je 0x100ca33
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.0100c946
mov esi, eax
cmp esi, ebx
jge 0x100cb85
push ebx
push 0x18
lea eax, [ebp - 0x34]
push eax
push 7
call dword [sym.imp.ntdll.dll_NtQuerySystemInformation]
mov esi, eax
cmp esi, ebx
jl 0x100cb27
mov dword [ebp + 0xc], ebx
cmp dword [ebp - 0x34], ebx
jbe 0x100cb22
push ebx
push dword [ebp + 0xc]
push 0x100d828
push 0x35
push dword [ebp - 0x14]
call fcn.01006bd5
add esp, 0x14
cmp dword [ebp - 8], ebx
je 0x100ca8c
push dword [ebp - 8]
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push ebx
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
mov dword [ebp - 8], ebx
lea eax, [ebp - 8]
push eax
push dword [ebp - 0x14]
call fcn.0100d02a
test eax, eax
jl 0x100cb0e
mov eax, dword [ebp - 8]
cmp dword [eax], 1
jne 0x100cb0e
mov dword [ebp - 0x1c], ebx
cmp dword [eax + 4], ebx
jbe 0x100cb0e
add eax, 0x48
push 4
pop ecx
mov edi, 0x1004508
lea esi, [eax + 8]
xor edx, edx
repe cmpsd dword [esi], dword es:[edi]
jne 0x100cad4
cmp byte [ebp - 1], bl
jne 0x100cae9
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax]
mov byte [ebp - 1], 1
mov dword [ebp - 0xc], ecx
inc dword [ebp - 0x1c]
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 0x1c]
add eax, 0x90
cmp edx, dword [ecx + 4]
jb 0x100caaf
jmp 0x100cb0e
lea eax, [ebp - 0x18]
push eax
call fcn.0100d4ca
test eax, eax
jl 0x100cb7c
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x18]
call fcn.0100cf12
test eax, eax
jl 0x100cb7c
inc dword [ebp + 0xc]
mov eax, dword [ebp + 0xc]
cmp eax, dword [ebp - 0x34]
jb 0x100ca58
cmp byte [ebp - 1], bl
jne 0x100cb83
mov esi, 0xc0000452
push dword [ebp - 0x14]
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push ebx
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
pop edi
cmp dword [ebp - 8], ebx
je 0x100cb59
push dword [ebp - 8]
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push ebx
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
cmp dword [ebp - 0x18], ebx
je 0x100cb74
push dword [ebp - 0x18]
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push ebx
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
mov eax, esi
pop esi
pop ebx
leave
ret 0xc
mov esi, 0xc0000451
jmp 0x100cb27
xor esi, esi
cmp dword [ebp + 8], ebx
jne 0x100cb8d
mov dword [ebp - 0xc], ebx
push dword [ebp - 0xc]
mov edi, dword [ebp - 0x14]
push dword [ebp - 0x10]
push 0x100d828
push 0x35
push edi
call fcn.01006bd5
mov eax, dword [ebp + 0x10]
add esp, 0x14
mov dword [eax], edi
jmp 0x100cb3d
Function at 0x405550
Capabilities:
Delete file
Get common file path
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x314
mov eax, dword [0x53451c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
cmp dword [ebx], 0
jne 0x405611
push 0x104
lea eax, [ebp - 0x108]
push 0
push eax
call fcn.00478a90
add esp, 0xc
lea eax, [ebp - 0x108]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
je 0x4055fb
push edi
push 0x104
lea edi, [ebx + 4]
push 0
push edi
call fcn.00478a90
add esp, 0xc
lea eax, [ebp - 0x108]
push edi
push 0
push 0x4fb900
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push str..bat
push edi
call dword [sym.imp.SHLWAPI.dll_PathRenameExtensionA]
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0
push 0x80
push 4
push 0
push 7
push 0xc01200a0
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebx], eax
pop edi
cmp dword [ebx], 0
jne 0x405611
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046ba88
mov esp, ebp
pop ebp
ret
push 0x208
lea eax, [ebp - 0x310]
push 0
push eax
call fcn.00478a90
add esp, 0xc
mov dword [ebp - 0x314], 0
lea eax, [ebp + 0x10]
push eax
push 0
push dword [ebp + 0xc]
lea eax, [ebp - 0x310]
push 0x207
push eax
call fcn.004056e0
mov ecx, dword [eax]
push dword [eax + 4]
or ecx, 1
push ecx
call fcn.00493a71
or ecx, 0xffffffff
add esp, 0x1c
test eax, eax
cmovs eax, ecx
test eax, eax
js 0x405671
cmp eax, 0x207
ja 0x405671
jne 0x405678
mov byte [ebp - 0x109], 0
lea ecx, [ebp - 0x310]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x405681
push 0
lea eax, [ebp - 0x314]
sub ecx, edx
push eax
push ecx
lea eax, [ebp - 0x310]
push eax
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0046ba88
mov esp, ebp
pop ebp
ret
Function at 0x407d30
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x407d89
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x407d89
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x407d7a
cmp esi, edx
jae 0x407d89
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub ecx, 1
jne 0x407d68
cmp esi, edx
jae 0x407d89
cmp word [esi], 0
je 0x407d89
mov eax, esi
pop esi
pop ebp
ret
xor eax, eax
pop esi
pop ebp
ret
Function at 0x4086d0
Capabilities:
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2024
call fcn.0046bef0
mov eax, dword [0x53451c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
test esi, esi
jne 0x408700
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046ba88
mov esp, ebp
pop ebp
ret
push 0x2000
xorps xmm0, xmm0
mov dword [ebp - 0x200c], 0
lea eax, [ebp - 0x2004]
movq qword [ebp - 0x2014], xmm0
push 0
movups xmmword [ebp - 0x2024], xmm0
push eax
mov word [ebp - 0x2008], 0
mov dword [ebp - 0x2020], 3
call fcn.00478a90
push 0x1000
lea eax, [ebp - 0x2004]
push esi
push eax
call fcn.00494d52
lea eax, [ebp - 0x2004]
add esp, 0x18
mov dword [ebp - 0x201c], eax
mov eax, 0x614
mov word [ebp - 0x2014], ax
lea eax, [ebp - 0x2024]
push eax
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
mov ecx, dword [ebp - 4]
mov eax, 1
xor ecx, ebp
pop esi
call fcn.0046ba88
mov esp, ebp
pop ebp
ret
Function at 0x408790
Capabilities:
Check if file exists
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x668
mov eax, dword [0x53451c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
test esi, esi
je 0x4089a3
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4089a3
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4087c3
sub ecx, edx
sar ecx, 1
cmp ecx, 3
jbe 0x4089a3
push ebx
push edi
push 0x208
lea eax, [ebp - 0x20c]
mov edi, 1
push 0
push eax
call fcn.00478a90
push 0x208
lea eax, [ebp - 0x414]
push 0
push eax
call fcn.00478a90
mov ebx, dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x414]
add esp, 0x18
push esi
push eax
call ebx
push 0x4fbc7c
lea eax, [ebp - 0x414]
push eax
call ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x408844
test al, 1
je 0x408844
and eax, 0xfffffffe
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
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 0x408989
lea ecx, [ebp - 0x664]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x40897d
nop dword [eax]
test byte [ebp - 0x664], 0x10
je 0x4088f8
cmp word [ebp - 0x638], 0x2e
jne 0x4088b7
mov ax, word [ebp - 0x636]
test ax, ax
je 0x408962
cmp ax, 0x2e
jne 0x4088b7
cmp word [ebp - 0x634], 0
je 0x408962
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.00478a90
add esp, 0xc
lea eax, [ebp - 0x20c]
push esi
push eax
call ebx
lea eax, [ebp - 0x638]
push eax
lea eax, [ebp - 0x20c]
push eax
call ebx
lea eax, [ebp - 0x20c]
push eax
call fcn.00408790
add esp, 4
jmp 0x408960
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.00478a90
add esp, 0xc
lea eax, [ebp - 0x20c]
push esi
push eax
call ebx
lea eax, [ebp - 0x638]
push eax
lea eax, [ebp - 0x20c]
push eax
call ebx
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40894f
test al, 1
je 0x40894f
and eax, 0xfffffffe
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
neg eax
sbb eax, eax
and edi, eax
lea eax, [ebp - 0x664]
push eax
push dword [ebp - 0x668]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x408880
push dword [ebp - 0x668]
call dword [sym.imp.KERNEL32.dll_FindClose]
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
and eax, edi
pop edi
pop ebx
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046ba88
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
pop esi
call fcn.0046ba88
mov esp, ebp
pop ebp
ret
Function at 0x4089c0
Capabilities:
Check if file exists
Delete directory
Delete file
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x408a18
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x408a18
push 0x80
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x4089f8
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x408a18
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x408a13
test al, 0x10
je 0x408a13
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x408a18
xor eax, eax
pop esi
pop ebp
ret
mov eax, 1
pop esi
pop ebp
ret
Function at 0x4091b0
Capabilities:
Check if file exists
Delete file
Move file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x4091df
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
push str.delete__s_failed__error_d
call fcn.0042a3c0
add esp, 0xc
mov eax, 1
pop esi
pop ebp
ret
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4091d7
push 0x80
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x409205
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x4091c2
push 4
push 0
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
xor eax, eax
pop esi
pop ebp
ret