joyce8/EMBER2024-capa huggingface dataset:
Function at 0x491350
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, 0x1004
call fcn.00530230
mov eax, dword [0x58cb30]
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 0x4913a3
push 0x800
lea eax, [esp + 0xc]
push eax
push edi
call fcn.004a2bb0
test al, al
je 0x4913a0
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.00530218
add esp, 0x1004
ret 4

Function at 0x4913c0
Capabilities:
Delete file

Disassembly:
sub esp, 0x20
cmp dword [ecx + 0x10], 0
jbe 0x491423
mov eax, 0x54
mov dword [ecx + 0x10], 0
mov word [esp + 0x10], ax
mov eax, dword [ecx]
mov dword [esp + 8], eax
lea eax, [esp]
push eax
mov dword [esp + 4], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0x16], 0
mov dword [esp + 0x1a], 0
mov dword [esp + 0x1e], 0
mov dword [esp + 8], 3
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
test eax, eax
sete al
add esp, 0x20
ret
mov al, 1
add esp, 0x20
ret

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

Disassembly:
mov eax, 0x1004
call fcn.00530230
mov eax, dword [0x58cb30]
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 0x491482
push 0x800
lea eax, [esp + 0xc]
push eax
push edi
call fcn.004a2bb0
test al, al
je 0x491480
lea eax, [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
jmp 0x491482
mov eax, esi
mov ecx, dword [esp + 0x1008]
pop edi
pop esi
xor ecx, esp
call fcn.00530218
add esp, 0x1004
ret 4

Function at 0x4914a0
Capabilities:
Get disk size

Disassembly:
mov eax, 0x101c
call fcn.00530230
mov eax, dword [0x58cb30]
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.004a27b0
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 0x491531
mov edx, dword [esp + 4]
cmp edx, dword [esp + 0xc]
ja 0x491531
xor eax, eax
add eax, dword [esp]
adc edx, 0
mov ecx, dword [esp + 0x1018]
xor ecx, esp
call fcn.00530218
add esp, 0x101c
ret 4
mov ecx, dword [esp + 0x1018]
xor eax, eax
xor ecx, esp
xor edx, edx
call fcn.00530218
add esp, 0x101c
ret 4
Function at 0x491720
Capabilities:
Get disk information

Disassembly:
mov eax, 0x1210
call fcn.00530230
mov eax, dword [0x58cb30]
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.004a2840
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 0x491808
mov ecx, 0x568598
lea eax, [esp]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4917aa
test dx, dx
je 0x4917a6
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4917aa
add eax, 4
add ecx, 4
test dx, dx
jne 0x491784
xor eax, eax
jmp 0x4917af
sbb eax, eax
or eax, 1
test eax, eax
je 0x4917ef
mov ecx, str.FAT32
lea eax, [esp]
jmp 0x4917c0
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4917e6
test dx, dx
je 0x4917e2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4917e6
add eax, 4
add ecx, 4
test dx, dx
jne 0x4917c0
xor eax, eax
jmp 0x4917eb
sbb eax, eax
or eax, 1
test eax, eax
jne 0x491808
mov al, 1
mov ecx, dword [esp + 0x120c]
xor ecx, esp
call fcn.00530218
add esp, 0x1210
ret 4
mov ecx, dword [esp + 0x120c]
xor al, al
xor ecx, esp
call fcn.00530218
add esp, 0x1210
ret 4

Function at 0x491840
Capabilities:
Get disk information

Disassembly:
mov eax, 0x1004
call fcn.00530230
mov eax, dword [0x58cb30]
xor eax, esp
mov dword [esp + 0x1000], eax
mov eax, dword [esp + 0x1008]
lea ecx, [esp]
push 0x800
push ecx
push eax
call fcn.004a2840
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 0x4918a5
cmp eax, 5
je 0x4918a5
xor al, al
mov ecx, dword [esp + 0x1000]
xor ecx, esp
call fcn.00530218
add esp, 0x1004
ret 4
mov ecx, dword [esp + 0x1000]
mov al, 1
xor ecx, esp
call fcn.00530218
add esp, 0x1004
ret 4
Function at 0x491b40
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
mov eax, 0x1004
call fcn.00530230
mov eax, dword [0x58cb30]
xor eax, esp
mov dword [esp + 0x1000], eax
push esi
mov esi, dword [esp + 0x100c]
push esi
call fcn.004a3740
movzx eax, word [eax]
cmp eax, 0x2e
je 0x491b80
cmp eax, 0x20
je 0x491b80
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x491bd5
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x491c06
push 0x800
lea eax, [esp + 8]
push eax
push esi
call fcn.004a2bb0
test al, al
je 0x491bb0
lea eax, [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x491c06
push 0x800
lea eax, [esp + 8]
push eax
push esi
call fcn.004a2bb0
test al, al
je 0x491c06
push 0
lea eax, [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x491c06
cmp byte [esp + 0x1010], 0
je 0x491bec
push dword [esp + 0x1014]
push esi
call fcn.00492250
xor eax, eax
pop esi
mov ecx, dword [esp + 0x1000]
xor ecx, esp
call fcn.00530218
add esp, 0x1004
ret 0xc
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
cmp ecx, 2
je 0x491c34
xor eax, eax
cmp ecx, 3
pop esi
sete al
inc eax
mov ecx, dword [esp + 0x1000]
xor ecx, esp
call fcn.00530218
add esp, 0x1004
ret 0xc
mov ecx, dword [esp + 0x1004]
mov eax, 2
pop esi
xor ecx, esp
call fcn.00530218
add esp, 0x1004
ret 0xc
Function at 0x491c60
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, 0x1090
call fcn.00530230
mov eax, dword [0x58cb30]
xor eax, esp
mov dword [esp + 0x108c], eax
mov ecx, dword [esp + 0x1094]
mov dword [esp + 0xc], ecx
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x491c86
push ebx
sub ecx, edx
mov dword [esp + 0x14], 0
push ebp
sar ecx, 1
push esi
mov dword [esp + 0x14], ecx
lea ecx, [esp + 0x1c]
push edi
mov dword [esp + 0x24], 0
call fcn.004bf260
lea ecx, [esp + 0x20]
call fcn.004befa0
mov edi, eax
mov ecx, edx
mov ebx, 0x368f0847
mov dword [esp + 0x10], edi
mul ebx
mov ebp, 0x4f8b588e
mov dword [esp + 0x14], ecx
mov dword [esp + 0x28], eax
mov esi, edx
mov eax, edi
mul ebp
mov edi, eax
mov ebp, edx
mov eax, ecx
mul ebx
mov ecx, eax
mov ebx, edx
mov eax, dword [esp + 0x14]
mov edx, 0x4f8b588e
mul edx
add ecx, esi
mov dword [esp + 0x28], eax
adc ebx, 0
add edi, ecx
mov ecx, dword [esp + 0x28]
adc ebp, 0
mov dword [esp + 0x30], edi
xor eax, eax
add ebx, ebp
mov ebp, dword [esp + 0x10]
adc eax, eax
add ecx, ebx
adc edx, eax
mov eax, dword [esp + 0x14]
sub ebp, ecx
sbb eax, edx
shrd ebp, eax, 1
shr eax, 1
add ebp, ecx
adc eax, edx
shrd ebp, eax, 0x10
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ecx, eax
xor edi, edi
mov eax, 0x4f8b588f
mov dword [esp + 0x10], ecx
mul ebp
mov eax, ebp
sub eax, edx
shr eax, 1
add eax, edx
shr eax, 0xf
imul eax, eax, 0xc350
sub ebp, eax
lea eax, [esp + 0x38]
push ebp
push ecx
push str._u._03u
push 0x32
push eax
call fcn.00404ce0
lea ecx, [esp + 0x4c]
add esp, 0x14
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x491d77
mov esi, dword [esp + 0x18]
sub ecx, edx
sar ecx, 1
lea eax, [ecx + esi]
mov ecx, dword [esp + 0x10a8]
cmp eax, ecx
jae 0x491e35
mov ebx, dword [esp + 0x1c]
cmp edi, 0x3e8
je 0x491e35
sub ecx, esi
lea eax, [esp + 0x38]
push ecx
push eax
lea eax, [ebx + esi*2]
push eax
call fcn.004bdae0
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x491df3
push 0x800
lea eax, [esp + 0xa0]
push eax
push ebx
call fcn.004a2bb0
test al, al
je 0x491e52
lea eax, [esp + 0x9c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x491e52
inc ebp
lea eax, [esp + 0x38]
push ebp
push dword [esp + 0x14]
inc edi
push str._u._03u
push 0x32
push eax
call fcn.00404ce0
lea eax, [esp + 0x4c]
add esp, 0x14
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x491e15
mov ecx, dword [esp + 0x10a8]
sub eax, edx
sar eax, 1
add eax, esi
cmp eax, ecx
jb 0x491da0
xor eax, eax
mov ecx, dword [esp + 0x109c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00530218
add esp, 0x1090
ret 8
mov eax, ebx
jmp 0x491e37
Function at 0x491e60
Capabilities:
Set file attributes

Disassembly:
mov eax, 0x1004
call fcn.00530230
mov eax, dword [0x58cb30]
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 0x491eae
push 0x800
lea eax, [esp + 8]
push eax
push esi
call fcn.004a2bb0
test al, al
je 0x491eae
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.00530218
add esp, 0x1004
ret 4

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

Disassembly:
mov eax, 0x1068
call fcn.00530230
mov eax, dword [0x58cb30]
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.004bdae0
push 0x32
push str.temp
lea eax, [esp + 0x18]
push eax
call fcn.004bdae0
xor esi, esi
lea esp, [esp]
push 0x2e
lea eax, [esp + 0x1c]
push eax
lea eax, [esi + 0x3e8]
push 0
push eax
call fcn.004bd8b0
push ebx
lea eax, [esp + 0x14]
push eax
push edi
call fcn.004a3880
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x491f71
push 0x800
lea eax, [esp + 0x78]
push eax
push edi
call fcn.004a2bb0
test al, al
je 0x491f7a
lea eax, [esp + 0x74]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x491f7a
inc esi
cmp esi, 0x3e8
jb 0x491f20
push edi
push ebp
call fcn.00491fa0
mov ecx, dword [esp + 0x1074]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00530218
add esp, 0x1068
ret 0xc

Function at 0x491fa0
Capabilities:
Move file

Disassembly:
mov eax, 0x2004
call fcn.00530230
mov eax, dword [0x58cb30]
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 eax, eax
jne 0x49201f
push 0x800
lea eax, [esp + 0x1010]
push eax
push edi
call fcn.004a2bb0
test al, al
je 0x49201f
push 0x800
lea eax, [esp + 0x10]
push eax
push esi
call fcn.004a2bb0
test al, al
je 0x49201f
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 0x492021
mov al, bl
mov ecx, dword [esp + 0x200c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00530218
add esp, 0x2004
ret 8
Function at 0x492070
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, 0x1028
call fcn.00530230
mov eax, dword [0x58cb30]
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 0x4920bc
mov eax, dword [edi]
or eax, dword [edi + 4]
mov byte [esp + 0x10], 1
jne 0x4920c1
mov byte [esp + 0x10], 0
test ebp, ebp
je 0x4920d2
mov eax, dword [ebp]
or eax, dword [ebp + 4]
mov byte [esp + 0x12], 1
jne 0x4920d7
mov byte [esp + 0x12], 0
test ecx, ecx
je 0x4920e7
mov eax, dword [ecx]
or eax, dword [ecx + 4]
mov byte [esp + 0x11], 1
jne 0x4920ec
mov byte [esp + 0x11], 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x492120
push 0x800
lea eax, [esp + 0x38]
push eax
push esi
call fcn.004a2bb0
test al, al
je 0x492134
lea eax, [esp + 0x34]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x492134
test bl, 1
je 0x492134
push 0
push esi
mov byte [esp + 0x1b], 1
call fcn.00492250
jmp 0x492139
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 0x49219d
push 0x800
lea eax, [esp + 0x38]
push eax
push esi
call fcn.004a2bb0
test al, al
je 0x492228
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 0x492228
cmp byte [esp + 0x10], 0
je 0x4921b0
lea eax, [esp + 0x1c]
mov ecx, edi
push eax
call fcn.004bf030
cmp byte [esp + 0x12], 0
je 0x4921c3
lea eax, [esp + 0x2c]
mov ecx, ebp
push eax
call fcn.004bf030
cmp byte [esp + 0x11], 0
je 0x4921d8
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x24]
push eax
call fcn.004bf030
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 0x492228
push ebx
push esi
call fcn.00492250
mov ecx, dword [esp + 0x1034]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00530218
add esp, 0x1028
ret 0x10
Function at 0x492250
Capabilities:
Set file attributes

Disassembly:
mov eax, 0x1004
call fcn.00530230
mov eax, dword [0x58cb30]
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 eax, eax
jne 0x4922b5
push 0x800
lea eax, [esp + 0xc]
push eax
push esi
call fcn.004a2bb0
test al, al
je 0x4922b5
push dword [esp + 0x1014]
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
setne al
jmp 0x4922b7
mov al, bl
mov ecx, dword [esp + 0x1008]
pop esi
pop ebx
xor ecx, esp
call fcn.00530218
add esp, 0x1004
ret 8

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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x551370
mov eax, dword fs:[0]
push eax
mov eax, 0x2054
call fcn.00530230
mov eax, dword [0x58cb30]
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.004a2f60
test al, al
je 0x492469
lea ecx, [ebp - 0x1018]
call fcn.00493050
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x1018]
push esi
call fcn.00493250
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.00493130
mov bl, al
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1018]
call fcn.00493070
mov al, bl
jmp 0x4924a2
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x49249f
push 0x800
lea eax, [ebp - 0x1010]
push eax
push esi
call fcn.004a2bb0
test al, al
je 0x49249c
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.00530218
mov esp, ebp
pop ebp
ret 4
Function at 0x4924c0
Capabilities:
Delete directory

Disassembly:
mov eax, 0x2068
call fcn.00530230
mov eax, dword [0x58cb30]
xor eax, esp
mov dword [esp + 0x2064], eax
push ebx
push esi
mov esi, dword [esp + 0x2074]
lea eax, [esp + 0x1008]
push 0x832
push eax
push esi
call fcn.00491ed0
test al, al
je 0x49253e
lea eax, [esp + 0x1008]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
setne bl
test eax, eax
jne 0x49253a
push 0x800
lea eax, [esp + 0xc]
push eax
lea eax, [esp + 0x1010]
push eax
call fcn.004a2bb0
test al, al
je 0x49253a
lea eax, [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
setne bl
test bl, bl
jne 0x49257a
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
setne bl
test eax, eax
jne 0x492572
push 0x800
lea eax, [esp + 0xc]
push eax
push esi
call fcn.004a2bb0
test al, al
je 0x492572
lea eax, [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
setne bl
test bl, bl
jne 0x49257a
xor al, al
jmp 0x49257c
mov al, 1
mov ecx, dword [esp + 0x206c]
pop esi
pop ebx
xor ecx, esp
call fcn.00530218
add esp, 0x2068
ret 4
Function at 0x4925a0
Capabilities:
Delete file

Disassembly:
push ebp
lea ebp, [esp - 0x30a8]
mov eax, 0x30a8
call fcn.00530230
push 0xffffffffffffffff
push 0x5513b5
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x58cb30]
xor eax, ebp
mov dword [ebp + 0x30a4], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 0x30b0]
lea ecx, [ebp]
mov dword [ebp - 0x18], esi
call fcn.0048f110
mov dword [ebp - 4], 0
lea ecx, [ebp]
push 1
push esi
call fcn.0048f900
test al, al
je 0x4926e3
lea ecx, [ebp]
call fcn.0048f7c0
push 0x10000
mov dword [ebp - 0x24], 0
push 0
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], edx
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x24], 0x10000
call fcn.0053869a
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x492658
mov ecx, 0x5d381c
call fcn.00487da0
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x20], 0x10000
mov byte [ebp - 4], 1
push 0x10000
push 0
push ebx
call fcn.00532770
xor esi, esi
add esp, 0xc
xor edi, edi
cmp dword [ebp - 0x10], esi
jl 0x4926a9
jg 0x492686
cmp dword [ebp - 0x14], esi
jbe 0x4926a9
push 0x10000
push ebx
lea ecx, [ebp]
call fcn.00490400
add esi, 0x10000
adc edi, 0
cmp edi, dword [ebp - 0x10]
jl 0x492686
jg 0x4926a9
cmp esi, dword [ebp - 0x14]
jb 0x492686
lea ecx, [ebp]
call fcn.0048f840
push 0
push 0
push 0
lea ecx, [ebp]
call fcn.0048ff70
lea ecx, [ebp]
call fcn.004902a0
lea ecx, [ebp]
call fcn.0048f390
mov byte [ebp - 4], 0
test ebx, ebx
je 0x4926e0
push ebx
call fcn.0053867f
add esp, 4
mov esi, dword [ebp - 0x18]
push 0x832
lea eax, [ebp + 0x1040]
push eax
push esi
call fcn.00491ed0
test al, al
je 0x492741
lea eax, [ebp + 0x1040]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
setne bl
test eax, eax
jne 0x49273d
push 0x800
lea eax, [ebp + 0x20a4]
push eax
lea eax, [ebp + 0x1040]
push eax
call fcn.004a2bb0
test al, al
je 0x49273d
lea eax, [ebp + 0x20a4]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
setne bl
test bl, bl
jne 0x49277d
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
setne bl
test eax, eax
jne 0x492779
push 0x800
lea eax, [ebp + 0x20a4]
push eax
push esi
call fcn.004a2bb0
test al, al
je 0x492779
lea eax, [ebp + 0x20a4]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
setne bl
test bl, bl
je 0x49277f
mov bl, 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp]
call fcn.0048f160
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 + 0x30a4]
xor ecx, ebp
call fcn.00530218
lea esp, [ebp + 0x30a8]
pop ebp
ret 4
Function at 0x493270
Capabilities:
Check if file exists
Enumerate files on windows

Disassembly:
mov eax, 0x1254
call fcn.00530230
mov eax, dword [0x58cb30]
xor eax, esp
mov dword [esp + 0x1250], eax
push ebx
mov ebx, dword [esp + 0x1260]
lea eax, [esp + 4]
push esi
mov esi, dword [esp + 0x1268]
push edi
mov edi, dword [esp + 0x1264]
push eax
cmp edi, 0xffffffff
jne 0x49331c
push ebx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x493341
push 0x800
lea eax, [esp + 0x260]
push eax
push ebx
call fcn.004a2bb0
test al, al
je 0x4932ed
lea eax, [esp + 0xc]
push eax
lea eax, [esp + 0x260]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x493341
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x49330f
cmp eax, 3
je 0x49330f
cmp eax, 0x12
je 0x49330f
mov al, 1
mov byte [esi + 0x1044], al
jmp 0x49340c
xor al, al
mov byte [esi + 0x1044], al
jmp 0x49340c
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x493341
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
setne cl
or eax, 0xffffffff
mov byte [esi + 0x1044], cl
jmp 0x49340e
push 0x800
push ebx
push esi
call fcn.004bdae0
push 0x800
lea eax, [esp + 0x3c]
push eax
push esi
call fcn.004a3880
mov ecx, dword [esp + 0x28]
xor eax, eax
add eax, dword [esp + 0x2c]
mov dword [esi + 0x1000], eax
mov eax, dword [esp + 0xc]
adc ecx, 0
mov dword [esi + 0x1008], eax
mov eax, dword [esp + 0x10]
mov dword [esi + 0x1004], ecx
mov ecx, dword [esp + 0x14]
mov dword [esi + 0x1028], eax
mov eax, dword [esp + 0x18]
mov dword [esi + 0x102c], ecx
mov ecx, dword [esp + 0x1c]
mov dword [esi + 0x1030], eax
mov eax, dword [esp + 0x20]
mov dword [esi + 0x1034], ecx
mov ecx, dword [esp + 0x24]
mov dword [esi + 0x1038], eax
lea eax, [esp + 0x20]
mov dword [esi + 0x103c], ecx
lea ecx, [esi + 0x1010]
push eax
call fcn.004bf780
lea eax, [esp + 0x10]
push eax
lea ecx, [esi + 0x1018]
call fcn.004bf780
lea eax, [esp + 0x18]
push eax
lea ecx, [esi + 0x1020]
call fcn.004bf780
test dword [esp + 0xc], 0x400
je 0x493404
cmp dword [esp + 0x30], 0xa0000003
jne 0x493404
mov al, 1
jmp 0x493406
xor al, al
mov byte [esi + 0x100e], al
mov eax, edi
mov ecx, dword [esp + 0x125c]
pop edi
mov dword [esi + 0x1040], 0
pop esi
pop ebx
xor ecx, esp
call fcn.00530218
add esp, 0x1254
ret 0xc