joyce8/EMBER2024-capa huggingface dataset:
Function at 0x473eb0
Capabilities:
Delete directory
Delete file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x51edb1
mov eax, dword fs:[0]
push eax
mov eax, 0x71a0
call fcn.00502fa0
mov eax, dword [0x5513d4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
push esi
call fcn.00484bc0
test al, al
je 0x47413b
push esi
call fcn.00474650
test al, al
je 0x47413b
movzx eax, word [esi]
push eax
push 0x532b9c
lea eax, [ebp - 0x2010]
push 0x800
push eax
call fcn.004027c0
movzx eax, word [ebp - 0x2010]
add esp, 0x10
push eax
push 0x86
call fcn.00451ce0
lea ecx, [ebp - 0x2070]
call fcn.0049cee0
mov dword [ebp - 4], 0
lea eax, [ebp - 0x2010]
push eax
lea ecx, [ebp - 0x2070]
call fcn.0049cf80
push 2
push 0
push 2
lea eax, [ebp - 0x2070]
push eax
lea ecx, [ebp - 0x71ac]
call fcn.00498fe0
mov byte [ebp - 4], 1
lea eax, [ebp - 0x30b8]
push eax
lea ecx, [ebp - 0x71ac]
mov dword [ebp - 0x20a8], 0
mov dword [ebp - 0x20a4], 0
mov dword [ebp - 0x20a0], 0
mov dword [ebp - 0x209c], 0
mov dword [ebp - 0x2098], 0
mov dword [ebp - 0x2094], 0
call fcn.00499cb0
test eax, eax
jne 0x4740f4
jmp 0x473fd0
mov ax, word [ebp - 0x30b8]
cmp ax, word [esi]
jne 0x4740f4
cmp word [ebp - 0x30b6], 0x3a
jne 0x4740f4
push 0
lea eax, [ebp - 0x30b8]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
setne al
test al, al
jne 0x474031
push 0x800
lea eax, [ebp - 0x1010]
push eax
lea eax, [ebp - 0x30b8]
push eax
call fcn.00484980
test al, al
je 0x474031
push 0
lea eax, [ebp - 0x1010]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
cmp byte [ebp - 0x20ac], 0
lea eax, [ebp - 0x30b8]
push eax
je 0x47407f
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
setne al
test al, al
jne 0x4740da
push 0x800
lea eax, [ebp - 0x1010]
push eax
lea eax, [ebp - 0x30b8]
push eax
call fcn.00484980
test al, al
je 0x4740da
lea eax, [ebp - 0x1010]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x4740da
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
setne al
test al, al
jne 0x4740da
push 0x800
lea eax, [ebp - 0x1010]
push eax
lea eax, [ebp - 0x30b8]
push eax
call fcn.00484980
test al, al
je 0x4740c0
lea eax, [ebp - 0x1010]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
setne al
test al, al
jne 0x4740da
lea eax, [ebp - 0x30b8]
push eax
push 0
push 0xe
call fcn.004156b0
mov ecx, 0x58c304
call fcn.0046df00
lea eax, [ebp - 0x30b8]
push eax
lea ecx, [ebp - 0x71ac]
call fcn.00499cb0
test eax, eax
je 0x473fd0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x71ac]
call fcn.004990d0
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x2070]
test ecx, ecx
je 0x47413b
cmp byte [ebp - 0x2060], 0
je 0x474132
mov eax, dword [ebp - 0x2068]
add eax, eax
push eax
push ecx
call fcn.0049a3e0
mov ecx, dword [ebp - 0x2070]
push ecx
call fcn.005097b2
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00502f8e
mov esp, ebp
pop ebp
ret 4
Function at 0x474160
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, 0x1004
call fcn.00502fa0
mov eax, dword [0x5513d4]
xor eax, esp
mov dword [esp + 0x1000], eax
push esi
push edi
mov edi, dword [esp + 0x1010]
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4741b3
push 0x800
lea eax, [esp + 0xc]
push eax
push edi
call fcn.00484980
test al, al
je 0x4741b0
lea eax, [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esi, eax
cmp esi, 0xffffffff
mov ecx, dword [esp + 0x1008]
setne al
pop edi
pop esi
xor ecx, esp
call fcn.00502f8e
add esp, 0x1004
ret 4

Function at 0x4741d0
Capabilities:
Delete file

Disassembly:
sub esp, 0x20
cmp dword [ecx + 0x14], 0
jbe 0x474225
xor eax, eax
mov dword [ecx + 0x14], 0
mov dword [esp + 0x10], eax
mov dword [esp], eax
mov dword [esp + 0xc], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov word [esp + 0x1c], ax
mov eax, 0x54
mov word [esp + 0x10], ax
mov eax, dword [ecx]
mov dword [esp + 8], eax
lea eax, [esp]
push eax
mov dword [esp + 8], 3
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
neg eax
sbb eax, eax
inc eax
add esp, 0x20
ret
mov al, 1
add esp, 0x20
ret

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

Disassembly:
mov eax, 0x1004
call fcn.00502fa0
mov eax, dword [0x5513d4]
xor eax, esp
mov dword [esp + 0x1000], eax
push esi
push edi
mov edi, dword [esp + 0x1010]
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x474282
push 0x800
lea eax, [esp + 0xc]
push eax
push edi
call fcn.00484980
test al, al
je 0x474280
lea eax, [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
jmp 0x474282
mov eax, esi
mov ecx, dword [esp + 0x1008]
pop edi
pop esi
xor ecx, esp
call fcn.00502f8e
add esp, 0x1004
ret 4

Function at 0x4742a0
Capabilities:
Get disk size

Disassembly:
mov eax, 0x101c
call fcn.00502fa0
mov eax, dword [0x5513d4]
xor eax, esp
mov dword [esp + 0x1018], eax
mov eax, dword [esp + 0x1020]
lea ecx, [esp + 0x18]
push 0x800
push ecx
push eax
call fcn.00484650
lea eax, [esp + 8]
mov dword [esp + 4], 0
push eax
lea eax, [esp + 0x14]
mov dword [esp + 4], 0
push eax
lea eax, [esp + 8]
push eax
movzx eax, word [esp + 0x24]
lea ecx, [esp + 0x24]
neg eax
sbb eax, eax
and eax, ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
je 0x474331
mov edx, dword [esp + 4]
cmp edx, dword [esp + 0xc]
ja 0x474331
xor eax, eax
add eax, dword [esp]
adc edx, 0
mov ecx, dword [esp + 0x1018]
xor ecx, esp
call fcn.00502f8e
add esp, 0x101c
ret 4
mov ecx, dword [esp + 0x1018]
xor eax, eax
xor ecx, esp
xor edx, edx
call fcn.00502f8e
add esp, 0x101c
ret 4
Function at 0x474520
Capabilities:
Get disk information

Disassembly:
mov eax, 0x1210
call fcn.00502fa0
mov eax, dword [0x5513d4]
xor eax, esp
mov dword [esp + 0x120c], eax
mov eax, dword [esp + 0x1214]
lea ecx, [esp + 0x20c]
push 0x800
push ecx
push eax
call fcn.004846e0
push 0x105
lea eax, [esp + 4]
push eax
push 0
push 0
push 0
push 0
push 0
lea eax, [esp + 0x228]
push eax
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
test eax, eax
je 0x474624
mov ecx, 0x532b88
lea eax, [esp]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4745aa
test dx, dx
je 0x4745a6
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4745aa
add eax, 4
add ecx, 4
test dx, dx
jne 0x474584
xor eax, eax
jmp 0x4745af
sbb eax, eax
or eax, 1
test eax, eax
je 0x474608
mov ecx, str.FAT32
lea eax, [esp]
jmp 0x4745c0
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4745e6
test dx, dx
je 0x4745e2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4745e6
add eax, 4
add ecx, 4
test dx, dx
jne 0x4745c0
xor eax, eax
jmp 0x4745eb
sbb eax, eax
or eax, 1
test eax, eax
je 0x474608
xor eax, eax
mov ecx, dword [esp + 0x120c]
xor ecx, esp
call fcn.00502f8e
add esp, 0x1210
ret 4
mov eax, 1
mov ecx, dword [esp + 0x120c]
xor ecx, esp
call fcn.00502f8e
add esp, 0x1210
ret 4
mov ecx, dword [esp + 0x120c]
xor al, al
xor ecx, esp
call fcn.00502f8e
add esp, 0x1210
ret 4

Function at 0x474650
Capabilities:
Get disk information

Disassembly:
mov eax, 0x1004
call fcn.00502fa0
mov eax, dword [0x5513d4]
xor eax, esp
mov dword [esp + 0x1000], eax
mov eax, dword [esp + 0x1008]
lea ecx, [esp]
push 0x800
push ecx
push eax
call fcn.004846e0
movzx eax, word [esp]
lea ecx, [esp]
neg eax
sbb eax, eax
and eax, ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 2
je 0x4746b5
cmp eax, 5
je 0x4746b5
xor al, al
mov ecx, dword [esp + 0x1000]
xor ecx, esp
call fcn.00502f8e
add esp, 0x1004
ret 4
mov ecx, dword [esp + 0x1000]
mov al, 1
xor ecx, esp
call fcn.00502f8e
add esp, 0x1004
ret 4
Function at 0x4746e0
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
mov eax, 0x1004
call fcn.00502fa0
mov eax, dword [0x5513d4]
xor eax, esp
mov dword [esp + 0x1000], eax
push esi
mov esi, dword [esp + 0x100c]
push esi
call fcn.00485250
movzx eax, word [eax]
cmp eax, 0x2e
je 0x474720
cmp eax, 0x20
je 0x474720
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x474775
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x4747a6
push 0x800
lea eax, [esp + 8]
push eax
push esi
call fcn.00484980
test al, al
je 0x474750
lea eax, [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x4747a6
push 0x800
lea eax, [esp + 8]
push eax
push esi
call fcn.00484980
test al, al
je 0x4747a6
push 0
lea eax, [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x4747a6
cmp byte [esp + 0x1010], 0
je 0x47478c
push dword [esp + 0x1014]
push esi
call fcn.00474d70
xor eax, eax
pop esi
mov ecx, dword [esp + 0x1000]
xor ecx, esp
call fcn.00502f8e
add esp, 0x1004
ret 0xc
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x4747bb
cmp eax, 3
mov eax, 1
jne 0x4747c0
mov eax, 2
mov ecx, dword [esp + 0x1004]
pop esi
xor ecx, esp
call fcn.00502f8e
add esp, 0x1004
ret 0xc
Function at 0x4747e0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, 0x107c
call fcn.00502fa0
mov eax, dword [0x5513d4]
xor eax, esp
mov dword [esp + 0x1078], eax
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x1090]
mov esi, edi
lea ecx, [esi + 2]
jmp 0x474810
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x474810
sub esi, ecx
mov dword [esp + 0x1c], 0
lea ecx, [esp + 0x1c]
sar esi, 1
mov dword [esp + 0x20], 0
call fcn.0049e510
lea ecx, [esp + 0x1c]
call fcn.0049e370
push 0
push 0x186a0
push edx
push eax
call fcn.00503450
mov ebp, eax
mov dword [esp + 0x18], ebp
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [esp + 0x10], eax
mov ecx, ebp
mov eax, 0x4f8b588f
xor ebx, ebx
mul ebp
mov eax, ebp
sub eax, edx
shr eax, 1
add eax, edx
shr eax, 0xf
mov dword [esp + 0x14], eax
imul eax, eax, 0xc350
sub ecx, eax
lea eax, [esp + 0x24]
push ecx
push dword [esp + 0x14]
push str._u._03u
push 0x32
push eax
call fcn.004027c0
lea ecx, [esp + 0x38]
add esp, 0x14
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4748a1
mov ebp, dword [esp + 0x1094]
sub ecx, edx
sar ecx, 1
lea eax, [ecx + esi]
cmp eax, ebp
jae 0x474969
cmp ebx, 0x3e8
je 0x474969
mov eax, ebp
sub eax, esi
push eax
lea eax, [esp + 0x28]
push eax
lea eax, [edi + esi*2]
push eax
call fcn.0049ce90
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x47491b
push 0x800
lea eax, [esp + 0x8c]
push eax
push edi
call fcn.00484980
test al, al
je 0x474986
lea eax, [esp + 0x88]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x474986
imul eax, dword [esp + 0x14], 0xc350
inc ebx
mov ecx, ebx
sub ecx, eax
lea eax, [esp + 0x24]
add ecx, dword [esp + 0x18]
push ecx
push dword [esp + 0x14]
push str._u._03u
push 0x32
push eax
call fcn.004027c0
lea eax, [esp + 0x38]
add esp, 0x14
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x474950
sub eax, edx
sar eax, 1
add eax, esi
cmp eax, ebp
jb 0x4748c2
xor eax, eax
mov ecx, dword [esp + 0x1088]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00502f8e
add esp, 0x107c
ret 8
mov eax, edi
jmp 0x47496b

Function at 0x474990
Capabilities:
Set file attributes

Disassembly:
mov eax, 0x1004
call fcn.00502fa0
mov eax, dword [0x5513d4]
xor eax, esp
mov dword [esp + 0x1000], eax
push esi
mov esi, dword [esp + 0x100c]
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
jne 0x4749de
push 0x800
lea eax, [esp + 8]
push eax
push esi
call fcn.00484980
test al, al
je 0x4749de
push 0
lea eax, [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov ecx, dword [esp + 0x1004]
pop esi
xor ecx, esp
call fcn.00502f8e
add esp, 0x1004
ret 4
Function at 0x474a00
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, 0x1068
call fcn.00502fa0
mov eax, dword [0x5513d4]
xor eax, esp
mov dword [esp + 0x1064], eax
push ebx
mov ebx, dword [esp + 0x1078]
push ebp
mov ebp, dword [esp + 0x1074]
push esi
push edi
mov edi, dword [esp + 0x1080]
push ebx
push ebp
push edi
call fcn.0049ce90
push 0x32
push str.temp
lea eax, [esp + 0x18]
push eax
call fcn.0049ce90
xor esi, esi
lea esp, [esp]
push 0x2e
lea eax, [esp + 0x1c]
push eax
lea eax, [esi + 0x3e8]
push 0
push eax
call fcn.0049cc80
push ebx
lea eax, [esp + 0x14]
push eax
push edi
call fcn.00485380
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x474aa1
push 0x800
lea eax, [esp + 0x78]
push eax
push edi
call fcn.00484980
test al, al
je 0x474aaa
lea eax, [esp + 0x74]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x474aaa
inc esi
cmp esi, 0x3e8
jb 0x474a50
push edi
push ebp
call fcn.00474ad0
mov ecx, dword [esp + 0x1074]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00502f8e
add esp, 0x1068
ret 0xc

Function at 0x474ad0
Capabilities:
Move file

Disassembly:
mov eax, 0x2004
call fcn.00502fa0
mov eax, dword [0x5513d4]
xor eax, esp
mov dword [esp + 0x2000], eax
push ebx
push esi
mov esi, dword [esp + 0x2014]
push edi
mov edi, dword [esp + 0x2014]
push esi
push edi
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
setne bl
test bl, bl
jne 0x474b4f
push 0x800
lea eax, [esp + 0x1010]
push eax
push edi
call fcn.00484980
test al, al
je 0x474b4f
push 0x800
lea eax, [esp + 0x10]
push eax
push esi
call fcn.00484980
test al, al
je 0x474b4f
lea eax, [esp + 0xc]
push eax
lea eax, [esp + 0x1010]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
setne al
jmp 0x474b51
mov al, bl
mov ecx, dword [esp + 0x200c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00502f8e
add esp, 0x2004
ret 8
Function at 0x474b70
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
mov eax, 0x1028
call fcn.00502fa0
mov eax, dword [0x5513d4]
xor eax, esp
mov dword [esp + 0x1024], eax
mov ecx, dword [esp + 0x1038]
push ebx
push ebp
mov ebp, dword [esp + 0x103c]
push esi
mov esi, dword [esp + 0x1038]
push edi
mov edi, dword [esp + 0x1040]
mov dword [esp + 0x18], ecx
test edi, edi
je 0x474bbc
mov eax, dword [edi]
or eax, dword [edi + 4]
mov byte [esp + 0x10], 1
jne 0x474bc1
mov byte [esp + 0x10], 0
test ebp, ebp
je 0x474bd2
mov eax, dword [ebp]
or eax, dword [ebp + 4]
mov byte [esp + 0x12], 1
jne 0x474bd7
mov byte [esp + 0x12], 0
test ecx, ecx
je 0x474be7
mov eax, dword [ecx]
or eax, dword [ecx + 4]
mov byte [esp + 0x11], 1
jne 0x474bec
mov byte [esp + 0x11], 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x474c20
push 0x800
lea eax, [esp + 0x38]
push eax
push esi
call fcn.00484980
test al, al
je 0x474c5a
lea eax, [esp + 0x34]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x474c5a
test bl, 1
je 0x474c5a
push 0
push esi
mov byte [esp + 0x1b], 1
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
jne 0x474c5f
push 0x800
lea eax, [esp + 0x38]
push eax
push esi
call fcn.00484980
test al, al
je 0x474c5f
push 0
lea eax, [esp + 0x38]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
jmp 0x474c5f
mov byte [esp + 0x13], 0
push 0
push 0x2000000
push 3
push 0
push 3
push 0x40000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esp + 0x14], eax
cmp eax, 0xffffffff
jne 0x474cc3
push 0x800
lea eax, [esp + 0x38]
push eax
push esi
call fcn.00484980
test al, al
je 0x474d4e
push 0
push 0x2000000
push 3
push 0
push 3
push 0x40000000
lea eax, [esp + 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esp + 0x14], eax
cmp eax, 0xffffffff
je 0x474d4e
cmp byte [esp + 0x10], 0
je 0x474cd6
lea eax, [esp + 0x1c]
mov ecx, edi
push eax
call fcn.0049e380
cmp byte [esp + 0x12], 0
je 0x474ce9
lea eax, [esp + 0x2c]
mov ecx, ebp
push eax
call fcn.0049e380
cmp byte [esp + 0x11], 0
je 0x474cfe
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x24]
push eax
call fcn.0049e380
movzx eax, byte [esp + 0x10]
lea ecx, [esp + 0x1c]
neg eax
mov edi, dword [esp + 0x14]
sbb eax, eax
and eax, ecx
lea ecx, [esp + 0x24]
push eax
movzx eax, byte [esp + 0x15]
neg eax
sbb eax, eax
and eax, ecx
lea ecx, [esp + 0x30]
push eax
movzx eax, byte [esp + 0x1a]
neg eax
sbb eax, eax
and eax, ecx
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SetFileTime]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [esp + 0x13], 0
je 0x474d4e
push ebx
push esi
call fcn.00474d70
mov ecx, dword [esp + 0x1034]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00502f8e
add esp, 0x1028
ret 0x10
Function at 0x474d70
Capabilities:
Set file attributes

Disassembly:
mov eax, 0x1004
call fcn.00502fa0
mov eax, dword [0x5513d4]
xor eax, esp
mov dword [esp + 0x1000], eax
push ebx
push esi
push dword [esp + 0x1014]
mov esi, dword [esp + 0x1014]
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
setne bl
test bl, bl
jne 0x474dd5
push 0x800
lea eax, [esp + 0xc]
push eax
push esi
call fcn.00484980
test al, al
je 0x474dd5
push dword [esp + 0x1014]
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
setne al
jmp 0x474dd7
mov al, bl
mov ecx, dword [esp + 0x1008]
pop esi
pop ebx
xor ecx, esp
call fcn.00502f8e
add esp, 0x1004
ret 8

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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x51ee2b
mov eax, dword fs:[0]
push eax
mov eax, 0x2054
call fcn.00502fa0
mov eax, dword [0x5513d4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
push esi
call fcn.00484d40
test al, al
je 0x474f99
lea ecx, [ebp - 0x1018]
call fcn.00475a10
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x1018]
push esi
call fcn.00475c10
push 0
lea eax, [ebp - 0x2060]
mov dword [ebp - 0x1050], 0
push eax
lea ecx, [ebp - 0x1018]
mov dword [ebp - 0x104c], 0
mov dword [ebp - 0x1048], 0
mov dword [ebp - 0x1044], 0
mov dword [ebp - 0x1040], 0
mov dword [ebp - 0x103c], 0
call fcn.00475af0
mov bl, al
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1018]
call fcn.00475a30
mov al, bl
jmp 0x474fd2
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x474fcf
push 0x800
lea eax, [ebp - 0x1010]
push eax
push esi
call fcn.00484980
test al, al
je 0x474fcc
lea eax, [ebp - 0x1010]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov edi, eax
cmp edi, 0xffffffff
setne al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00502f8e
mov esp, ebp
pop ebp
ret 4
Function at 0x474ff0
Capabilities:
Delete directory

Disassembly:
mov eax, 0x2068
call fcn.00502fa0
mov eax, dword [0x5513d4]
xor eax, esp
mov dword [esp + 0x2064], eax
push esi
mov esi, dword [esp + 0x2070]
lea eax, [esp + 0x1004]
push 0x832
push eax
push esi
call fcn.00474a00
test al, al
je 0x475071
lea eax, [esp + 0x1004]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
setne al
test al, al
jne 0x4750c3
push 0x800
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x100c]
push eax
call fcn.00484980
test al, al
je 0x475071
lea eax, [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
setne al
test al, al
jne 0x4750c3
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
setne al
test al, al
jne 0x4750c3
push 0x800
lea eax, [esp + 8]
push eax
push esi
call fcn.00484980
test al, al
je 0x4750a9
lea eax, [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
setne al
test al, al
jne 0x4750c3
xor al, al
pop esi
mov ecx, dword [esp + 0x2064]
xor ecx, esp
call fcn.00502f8e
add esp, 0x2068
ret 4
mov ecx, dword [esp + 0x2068]
mov al, 1
pop esi
xor ecx, esp
call fcn.00502f8e
add esp, 0x2068
ret 4
Function at 0x4750e0
Capabilities:
Delete file

Disassembly:
push ebp
lea ebp, [esp - 0x308c]
mov eax, 0x308c
call fcn.00502fa0
push 0xffffffffffffffff
push 0x51ee70
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x5513d4]
xor eax, ebp
mov dword [ebp + 0x3088], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 0x3094]
lea ecx, [ebp]
mov dword [ebp - 0x18], ebx
call fcn.00472610
mov dword [ebp - 4], 0
lea ecx, [ebp]
push 1
push ebx
call fcn.00472d30
test al, al
je 0x47521c
lea ecx, [ebp]
call fcn.00472be0
push 0x10000
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], edx
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
mov byte [ebp - 0x1c], 0
call fcn.00404d60
mov byte [ebp - 4], 1
mov ebx, dword [ebp - 0x2c]
push 0x10000
push 0
push ebx
call fcn.00505530
xor esi, esi
add esp, 0xc
xor edi, edi
cmp dword [ebp - 0x10], esi
jl 0x4751d3
jg 0x4751b0
cmp dword [ebp - 0x14], esi
jbe 0x4751d3
lea ebx, [ebx]
push 0x10000
push ebx
lea ecx, [ebp]
call fcn.00473490
add esi, 0x10000
adc edi, 0
cmp edi, dword [ebp - 0x10]
jl 0x4751b0
jg 0x4751d3
cmp esi, dword [ebp - 0x14]
jb 0x4751b0
lea ecx, [ebp]
call fcn.00472c70
push 0
push 0
push 0
lea ecx, [ebp]
call fcn.004731b0
lea ecx, [ebp]
call fcn.004733f0
lea ecx, [ebp]
call fcn.00472780
mov byte [ebp - 4], 0
test ebx, ebx
je 0x475219
cmp byte [ebp - 0x1c], 0
je 0x475210
push dword [ebp - 0x24]
push ebx
call fcn.0049a3e0
push ebx
call fcn.005097b2
add esp, 4
mov ebx, dword [ebp - 0x18]
push 0x832
lea eax, [ebp + 0x1024]
push eax
push ebx
call fcn.00474a00
test al, al
je 0x47527a
lea eax, [ebp + 0x1024]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
setne al
test al, al
jne 0x4752ba
push 0x800
lea eax, [ebp + 0x2088]
push eax
lea eax, [ebp + 0x1024]
push eax
call fcn.00484980
test al, al
je 0x47527a
lea eax, [ebp + 0x2088]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
setne al
test al, al
jne 0x4752ba
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
setne al
test al, al
jne 0x4752ba
push 0x800
lea eax, [ebp + 0x2088]
push eax
push ebx
call fcn.00484980
test al, al
je 0x4752b6
lea eax, [ebp + 0x2088]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
setne al
test al, al
jne 0x4752ba
xor bl, bl
jmp 0x4752bc
mov bl, 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp]
call fcn.00472650
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x3088]
xor ecx, ebp
call fcn.00502f8e
lea esp, [ebp + 0x308c]
pop ebp
ret 4