joyce8/EMBER2024-capa huggingface dataset:
Function at 0xf0469af
Capabilities:
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov esi, dword [ebp + 8]
cmp dword [esi + 0x18], 0xffffffff
jne 0xf0469ca
mov eax, 0x80000006
jmp 0xf046ab1
push ebx
mov ebx, dword [esi + 0x20]
push edi
test ebx, ebx
je 0xf046a3a
mov eax, dword [esi + 0x1c]
mov edi, ebx
sub edi, eax
lea eax, [ebp + 8]
push eax
push edi
push dword [esi + 0x24]
call fcn.0f04674b
test eax, eax
jl 0xf046a33
test edi, edi
je 0xf0469fe
push dword [ebp + 8]
push ebx
push dword [esi + 0x1c]
call fcn.0f00a4b0
add esp, 0xc
mov ecx, dword [esi + 0x1c]
mov dword [esi + 0x20], ecx
mov eax, ecx
jmp 0xf046a0a
add eax, edx
mov edx, dword [eax]
test edx, edx
jne 0xf046a08
mov edx, dword [eax + 0x3c]
mov ebx, eax
shr edx, 1
lea edi, [eax + edx*2 + 0x65]
lea eax, [ebp + 8]
push eax
and edi, 0xfffffff8
mov eax, edi
sub eax, ecx
push eax
push dword [esi + 0x24]
call fcn.0f04674b
test eax, eax
jge 0xf046a44
mov eax, 0xc0000095
jmp 0xf046aaf
mov edi, dword [esi + 0x1c]
mov eax, dword [esi + 0x24]
xor ebx, ebx
jmp 0xf046aa6
mov eax, dword [ebp + 8]
jmp 0xf046aa6
xor ecx, ecx
push ecx
push ecx
push ecx
push 3
push eax
push edi
lea eax, [ebp - 8]
push eax
push ecx
push ecx
push ecx
push dword [esi + 0x18]
call dword [sym.imp.ntdll.dll_NtQueryDirectoryFile]
cmp eax, 0x80000006
je 0xf046aaf
cmp eax, 0xc000000f
je 0xf046aaf
test eax, eax
jl 0xf046aad
test ebx, ebx
je 0xf046a80
mov eax, edi
sub eax, ebx
mov dword [ebx], eax
jmp 0xf046a8a
mov eax, dword [esi + 0x1c]
mov dword [esi + 0x20], eax
jmp 0xf046a8a
add edi, eax
mov eax, dword [edi]
test eax, eax
jne 0xf046a88
mov eax, dword [edi + 0x3c]
shr eax, 1
mov ebx, edi
lea edi, [edi + eax*2 + 0x65]
mov eax, dword [esi + 0x24]
and edi, 0xfffffff8
sub eax, edi
add eax, dword [esi + 0x1c]
cmp eax, 0x268
ja 0xf046a49
xor eax, eax
pop edi
pop ebx
pop esi
leave
ret 4
Function at 0xf04723f
Capabilities:
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov esi, dword [ebp + 0xc]
cmp dword [esi + 0x18], 0xffffffff
jne 0xf047257
mov eax, 0x80000006
jmp 0xf0472b0
push ebx
xor ebx, ebx
push edi
mov edi, dword [esi + 0x20]
cmp edi, ebx
jne 0xf047287
mov eax, dword [esi + 0x18]
cmp eax, ebx
je 0xf0472b5
mov edi, dword [esi + 0x1c]
push ebx
push ebx
push ebx
push 3
push dword [esi + 0x24]
lea ecx, [ebp - 8]
push edi
push ecx
push ebx
push ebx
push ebx
push eax
call dword [sym.imp.ntdll.dll_NtQueryDirectoryFile]
cmp eax, ebx
jl 0xf0472ae
mov eax, dword [edi]
cmp eax, ebx
je 0xf047294
add eax, edi
mov dword [esi + 0x20], eax
jmp 0xf047297
mov dword [esi + 0x20], ebx
movzx eax, word [esi + 0x250]
push eax
push edi
push dword [ebp + 8]
call fcn.0f046abb
test eax, eax
je 0xf04725b
xor eax, eax
pop edi
pop ebx
pop esi
leave
ret 8
mov eax, 0xc0000008
jmp 0xf0472ae
Function at 0xf047989
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0xf072008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
lea eax, [esi + 0x14]
push edi
mov dword [ebp - 0x21c], eax
mov eax, 0x104
push eax
push ebx
push eax
lea eax, [ebp - 0x218]
push eax
call fcn.0f00b4ab
lea eax, [ebp - 0x218]
push 0x5c
push eax
call fcn.0f05f120
mov edi, eax
add esp, 0x18
test edi, edi
je 0xf0479fd
inc edi
push edi
lea eax, [ebp - 0x14]
push 0xd
push eax
mov byte [edi + 0xc], 0
call fcn.0f00a32c
lea eax, [ebp - 0x14]
push eax
call fcn.0f05f4dd
add esp, 0x10
mov byte [edi], 0
jmp 0xf047a01
mov byte [ebp - 0x14], 0
cmp word [ebp + 0x10], 8
jne 0xf047a47
lea eax, [ebp - 0x218]
push 0x5c
push eax
call fcn.0f05ef00
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0xf047a47
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0xf047a47
push str.________.___
lea eax, [ebp - 0x14]
push 0xd
push eax
mov byte [edi + 1], 0
call fcn.0f00a32c
add esp, 0xc
xor eax, eax
push eax
push eax
push eax
push eax
push eax
push 0xff
lea eax, [ebp - 0x114]
push eax
lea eax, [ebp - 0x218]
push eax
call fcn.0f056436
test eax, eax
je 0xf047b0f
cmp byte [ebp - 0x114], 0
mov byte [ebp - 0x109], 0
je 0xf047b07
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x114]
push eax
call fcn.0f0472c1
test eax, eax
je 0xf047b07
lea ebx, [esi + 1]
mov ecx, 0x20202020
mov eax, ecx
mov edi, ebx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
add esi, 9
mov eax, ecx
mov edi, esi
stosw word es:[edi], ax
stosb byte es:[edi], al
push 8
lea eax, [ebp - 0x114]
push eax
push ebx
call fcn.0f046f21
lea eax, [ebp - 0x114]
lea edi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0xf047ac6
sub eax, edi
cmp eax, 8
jbe 0xf047ae3
push 3
lea eax, [ebp - 0x10c]
push eax
push esi
call fcn.0f046f21
mov edi, dword [ebp - 0x21c]
push 8
push ebx
push edi
call fcn.0f046f21
push 3
push esi
add edi, 8
push edi
call fcn.0f046f21
push 0
call sym.ntvdm.exe_setCF
jmp 0xf047b1a
push 0x12
call dword [sym.imp.KERNEL32.dll_SetLastError]
movzx eax, byte [ebx]
push eax
push 0xffffffffffffffff
call fcn.0f046730
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0f0057d5
leave
ret 0xc
Function at 0xf047b30
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0xf072008]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
push 0x103
push eax
lea eax, [ebp - 0x218]
push 0x104
push eax
call fcn.0f00b4ab
lea eax, [ebp - 0x218]
push 0x5c
push eax
call fcn.0f05f120
mov edi, eax
xor ebx, ebx
add esp, 0x18
cmp edi, ebx
je 0xf047b9e
inc edi
push edi
lea eax, [ebp - 0x14]
push 0xd
push eax
mov byte [edi + 0xc], bl
call fcn.0f00a32c
lea eax, [ebp - 0x14]
push eax
call fcn.0f05f4dd
add esp, 0x10
mov byte [edi], bl
jmp 0xf047ba1
mov byte [ebp - 0x14], bl
cmp word [ebp + 0x10], 8
jne 0xf047bea
lea eax, [ebp - 0x218]
push 0x5c
push eax
call fcn.0f05ef00
mov edi, eax
pop ecx
pop ecx
cmp edi, ebx
je 0xf047bea
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0xf047bea
inc edi
cmp byte [edi], bl
jne 0xf047be8
push str.________.___
lea eax, [ebp - 0x14]
push 0xd
push eax
call fcn.0f00a32c
add esp, 0xc
mov byte [edi], bl
push ebx
push ebx
push ebx
push ebx
push ebx
push 0xff
lea eax, [ebp - 0x114]
push eax
lea eax, [ebp - 0x218]
push eax
call fcn.0f056436
test eax, eax
je 0xf047c5e
mov byte [ebp - 0x109], bl
cmp byte [ebp - 0x114], bl
je 0xf047c56
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x114]
push eax
call fcn.0f0472c1
test eax, eax
je 0xf047c56
lea eax, [ebp - 0x114]
push eax
lea eax, [esi + 0x1e]
push eax
call fcn.0f046c62
xor eax, eax
mov word [esi + 0x1a], ax
mov word [esi + 0x1c], ax
mov word [esi + 0x16], ax
mov word [esi + 0x18], ax
mov byte [esi + 0x15], 8
inc eax
jmp 0xf047c60
push 0x12
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0f0057d5
leave
ret 0xc
Function at 0xf047c76
Capabilities:
Check if file exists

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x444
mov eax, dword [0xf072008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
and dword [esi + 4], 0
and dword [esi], 0
lea eax, [ebp - 0x210]
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x440], eax
mov eax, 0x20c
mov word [ebp - 0x442], ax
push edi
lea eax, [ebp - 0x444]
push eax
call fcn.0f046778
push edi
call sym.ntvdm.exe_IsCdRomFile
mov ebx, dword [ebp + 0x10]
mov dword [ebp - 0x43c], eax
test bl, 8
je 0xf047d24
push ebx
push esi
push edi
call fcn.0f047b30
test eax, eax
je 0xf047d16
cmp bx, 8
je 0xf047d95
push 0
push 0
push ebx
lea eax, [ebp - 0x210]
push eax
call fcn.0f04763b
test eax, eax
je 0xf047d95
mov ecx, dword [ebp - 0x43c]
mov dword [eax + 0x264], ecx
mov dword [esi], eax
mov eax, dword [eax + 8]
jmp 0xf047d92
cmp bx, 8
jne 0xf047d24
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0xf047d97
lea eax, [ebp - 0x438]
push eax
push 0
push ebx
lea eax, [ebp - 0x210]
push eax
call fcn.0f04763b
cmp byte [ebp - 0x21f], 0
mov edi, eax
jne 0xf047d6f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0xf047d54
push 0x12
jmp 0xf047d64
cmp eax, 0xa1
je 0xf047d62
cmp eax, 0x10b
jne 0xf047d6a
push 3
call dword [sym.imp.KERNEL32.dll_SetLastError]
or eax, 0xffffffff
jmp 0xf047d97
mov ebx, dword [ebp - 0x43c]
push ebx
push esi
lea eax, [ebp - 0x438]
push eax
call fcn.0f046d25
test edi, edi
je 0xf047d95
mov dword [edi + 0x264], ebx
mov dword [esi], edi
mov eax, dword [edi + 8]
mov dword [esi + 4], eax
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0f0057d5
leave
ret 0xc

Function at 0xf04844b
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0xf072008]
xor eax, ebp
mov dword [ebp - 4], eax
mov ax, word [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
mov word [ebp - 0xc], ax
push 0x3a
pop eax
mov word [ebp - 0xa], ax
xor eax, eax
mov word [ebp - 8], ax
movzx eax, word [esi + 2]
shr eax, 1
push eax
push dword [esi + 4]
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
test eax, eax
je 0xf0484ee
push 1
push esi
lea eax, [eax + eax - 4]
push 0xf0ae1c0
mov word [esi], ax
call fcn.0f048298
test eax, eax
je 0xf0484c2
mov eax, dword [0xf0ae1c0]
add eax, 0xfffffffc
push eax
push 0
push esi
call fcn.0f048324
mov eax, dword [esi + 4]
push 0x5c
pop ecx
mov word [eax], cx
jmp 0xf0484e3
push 1
push esi
push 0xf0ae1b0
call fcn.0f048298
test eax, eax
je 0xf0484e7
movzx eax, word [0xf0ae1b0]
push eax
push 0
push esi
call fcn.0f048324
xor eax, eax
jmp 0xf0484f9
mov eax, 0x80070089
jmp 0xf0484f9
call dword [sym.imp.KERNEL32.dll_GetLastError]
or eax, 0x80070000
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0f0057d5
leave
ret 8
Function at 0xf048f7e
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0xf048fa1
call dword [sym.imp.KERNEL32.dll_GetLastError]
or eax, 0x80070000
jmp 0xf048fb4
and al, 0x10
movzx eax, al
neg eax
sbb eax, eax
and eax, 0x7ff8fffd
add eax, 0x80070003
pop ebp
ret 4

Function at 0xf048fbd
Capabilities:
Check if file exists
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0xf072008]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
add eax, 0x40
push 0x3a
mov word [ebp - 0xc], ax
pop eax
mov word [ebp - 0xa], ax
xor eax, eax
mov word [ebp - 8], ax
push 0x104
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0xc]
push eax
xor edi, edi
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
test eax, eax
jne 0xf04903f
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
call ebx
mov edi, eax
cmp edi, 2
jne 0xf04903f
push esi
call fcn.0f048f7e
test eax, eax
jl 0xf049046
push dword [esi + 4]
lea eax, [ebp - 0xc]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_DefineDosDeviceW]
test eax, eax
je 0xf04903b
xor eax, eax
jmp 0xf049046
call ebx
mov edi, eax
mov eax, edi
or eax, 0x80070000
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0f0057d5
leave
ret 8

Function at 0xf04920a
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [ebp + 0x10]
push edi
push esi
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0xf04926f
push dword [ebp + 0x18]
xor edi, edi
push dword [ebp + 0x14]
inc edi
push esi
call fcn.0f0491d5
test eax, eax
jne 0xf04925e
test edi, edi
je 0xf049267
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push dword [ebp + 0x18]
mov edi, eax
push dword [ebp + 0x14]
push esi
call fcn.0f0491d5
test eax, eax
je 0xf04923c
test edi, edi
je 0xf049267
mov eax, dword [ebp + 8]
mov dword [eax], ebx
xor eax, eax
jmp 0xf04928b
push 2
call dword [sym.imp.KERNEL32.dll_SetLastError]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
or esi, 0x80070000
cmp ebx, 0xffffffff
je 0xf049289
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, esi
pop edi
pop esi
pop ebx
pop ebp
ret 0x14
Function at 0xf0499e3
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [0xf0ae1e0]
movzx ax, byte [eax]
push ebx
mov bx, word [ebp + 8]
push esi
xor esi, esi
cmp bx, ax
jb 0xf049a33
cmp bx, 0x19
ja 0xf049a77
mov al, bl
add al, 0x41
mov byte [0xf0767d4], al
mov eax, dword [0xf0ae1ec]
movzx ax, byte [eax]
cmp ax, bx
je 0xf049a2b
push 0xf0767d4
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 1
jbe 0xf049a77
mov esi, dword [0xf0ae1e8]
jmp 0xf049a77
mov al, bl
add al, 0x41
mov byte [0xf0767d4], al
xor eax, eax
inc eax
cmp ax, bx
jne 0xf049a54
push 0xf0767d4
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 2
jne 0xf049a77
mov esi, dword [0xf0ae1e4]
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultLangID]
mov ecx, 0x411
cmp ax, cx
movzx eax, bx
jne 0xf049a72
imul eax, eax, 0x58
jmp 0xf049a75
imul eax, eax, 0x47
add esi, eax
mov eax, esi
pop esi
pop ebx
pop ebp
ret 4

Function at 0xf04a098
Capabilities:
Create directory
Delete directory

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov esi, dword fs:[0x18]
push edi
push dword [ebp + 0xc]
lea eax, [ebp - 8]
push eax
add esi, 0xbf8
call dword [sym.imp.ntdll.dll_RtlInitString]
push 0
lea eax, [ebp - 8]
push eax
push esi
call dword [0xf0ae238]
mov edi, eax
test edi, edi
jge 0xf04a0dd
cmp edi, 0x80000005
jne 0xf04a145
mov edi, 0x80070003
jmp 0xf04a145
mov eax, dword [ebp + 8]
sub eax, 0x39
je 0xf04a113
dec eax
je 0xf04a0f6
dec eax
jne 0xf04a145
push eax
push esi
call fcn.0f049f26
mov edi, eax
jmp 0xf04a145
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0xf04a145
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
or edi, 0x80070000
jmp 0xf04a145
push 0
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0xf04a145
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
or edi, 0x80070000
cmp edi, 0x800700ce
je 0xf04a140
cmp edi, 0x800700b7
jne 0xf04a145
mov edi, 0x80070005
mov eax, edi
pop edi
pop esi
leave
ret 8
Function at 0xf04a1b8
Capabilities:
Move file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x224
mov eax, dword [0xf072008]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
mov esi, 0x104
push esi
lea ecx, [ebp - 0x108]
push ecx
push eax
call sym.ntvdm.exe_RedirectShortFileName
mov ebx, eax
push esi
lea eax, [ebp - 0x20c]
push eax
push edi
call sym.ntvdm.exe_RedirectShortFileName
mov edi, eax
test edi, edi
je 0xf04a2e2
test ebx, ebx
je 0xf04a2e2
push edi
push ebx
call fcn.0f005cda
pop ecx
pop ecx
test eax, eax
je 0xf04a2e2
mov esi, dword [sym.imp.ntdll.dll_RtlInitString]
push ebx
lea eax, [ebp - 0x224]
push eax
call esi
push 1
lea eax, [ebp - 0x224]
push eax
lea eax, [ebp - 0x214]
push eax
call dword [0xf0ae238]
test eax, eax
jl 0xf04a2e7
lea eax, [ebp - 0x214]
push eax
call fcn.0f048402
push edi
lea eax, [ebp - 0x224]
push eax
call esi
push 1
lea eax, [ebp - 0x224]
push eax
lea eax, [ebp - 0x21c]
push eax
call dword [0xf0ae238]
mov esi, eax
test esi, esi
jge 0xf04a28d
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.ntdll.dll_RtlFreeUnicodeString]
mov eax, esi
jmp 0xf04a2e7
lea eax, [ebp - 0x21c]
push eax
call fcn.0f048402
push dword [ebp - 0x218]
push dword [ebp - 0x210]
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
jne 0xf04a2c8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp esi, 0xb7
jne 0xf04a2c2
push 5
pop esi
or esi, 0x80070000
mov edi, dword [sym.imp.ntdll.dll_RtlFreeUnicodeString]
lea eax, [ebp - 0x214]
push eax
call edi
lea eax, [ebp - 0x21c]
push eax
call edi
jmp 0xf04a289
mov eax, 0x80070005
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0f0057d5
leave
ret 8
Function at 0xf04a504
Capabilities:
Get process heap flags
Set file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x60
push edi
push 0xa
xor eax, eax
pop ecx
lea edi, [ebp - 0x60]
rep stosd dword es:[edi], eax
mov eax, dword [ebp + 8]
sub eax, 3
je 0xf04a531
dec eax
dec eax
je 0xf04a52c
dec eax
dec eax
jne 0xf04a536
lea eax, [ebp - 0x60]
jmp 0xf04a539
lea eax, [ebp - 0x58]
jmp 0xf04a539
lea eax, [ebp - 0x50]
jmp 0xf04a539
mov eax, dword [ebp + 8]
push dword [ebp + 0x10]
push eax
push 1
call fcn.0f04a35e
xor edi, edi
cmp eax, edi
jl 0xf04a614
lea eax, [ebp - 0x20]
push eax
push edi
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp + 0xc]
push dword [eax + 4]
call dword [sym.imp.ntdll.dll_RtlDosPathNameToRelativeNtPathName_U]
test al, al
jne 0xf04a571
mov eax, 0x80070003
jmp 0xf04a614
mov eax, dword [ebp - 0x20]
push ebx
mov ebx, dword [ebp - 4]
xor ecx, ecx
push esi
cmp cx, ax
je 0xf04a58b
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 4], eax
jmp 0xf04a58e
mov dword [ebp - 0x18], edi
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x34], eax
push 0x4020
lea eax, [ebp - 8]
mov dword [ebp - 0x30], eax
push 7
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x38]
push eax
push 0x100100
lea eax, [ebp + 8]
push eax
mov dword [ebp - 0x38], 0x18
mov dword [ebp - 0x2c], 0x40
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x24], edi
call dword [sym.imp.ntdll.dll_NtOpenFile]
mov esi, eax
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.ntdll.dll_RtlReleaseRelativeName]
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push ebx
push edi
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
cmp esi, edi
jl 0xf04a610
push 4
push 0x28
lea eax, [ebp - 0x60]
push eax
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 8]
call dword [sym.imp.ntdll.dll_NtSetInformationFile]
push dword [ebp + 8]
mov esi, eax
call dword [sym.imp.ntdll.dll_NtClose]
mov eax, esi
pop esi
pop ebx
pop edi
leave
ret 0xc

Function at 0xf04a667
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0xf072008]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push edi
push 0x208
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x214]
push eax
xor edi, edi
call fcn.0f048265
movzx eax, word [ebp - 0x212]
push edi
push dword [ebp - 0x210]
push eax
push dword [esi + 4]
call dword [sym.imp.ntdll.dll_RtlGetFullPathName_U]
cmp eax, edi
jne 0xf04a6c4
call dword [sym.imp.KERNEL32.dll_GetLastError]
or eax, 0x80070000
jmp 0xf04a6d2
cmp word [ebp - 0x212], ax
ja 0xf04a6d6
mov eax, 0x8007006f
cmp eax, edi
jl 0xf04a707
push dword [ebp - 0x210]
call dword [sym.imp.ntdll.dll_RtlDetermineDosPathNameType_U]
cmp eax, 2
jne 0xf04a707
xor eax, eax
mov word [ebp - 0x206], ax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
mov edi, eax
sub edi, 5
neg edi
sbb edi, edi
inc edi
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.0f0057d5
leave
ret 4
Function at 0xf04a9cf
Capabilities:
Delete file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x370
mov eax, dword [0xf072008]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
mov esi, dword fs:[0x18]
push edi
push 0x104
lea ecx, [ebp - 0x108]
push ecx
push eax
add esi, 0xbf8
call sym.ntvdm.exe_RedirectShortFileName
push eax
lea eax, [ebp - 0x368]
push eax
call dword [sym.imp.ntdll.dll_RtlInitString]
xor edi, edi
push edi
lea eax, [ebp - 0x368]
push eax
push esi
call dword [0xf0ae238]
cmp eax, edi
jl 0xf04ab3b
push esi
call fcn.0f048402
cmp dword [ebp + 0x14], edi
je 0xf04aafd
push dword [ebp + 0x10]
lea eax, [ebp - 0x358]
push dword [ebp + 0xc]
mov dword [ebp - 0x35c], edi
push eax
push esi
lea eax, [ebp - 0x360]
push eax
call fcn.0f04920a
cmp eax, edi
jl 0xf04ab3b
push ebx
push edi
push 0x5c
push esi
call fcn.0f04839d
mov ebx, eax
inc ebx
lea eax, [ebp - 0x32c]
push eax
lea eax, [ebp - 0x370]
push eax
call dword [sym.imp.ntdll.dll_RtlInitUnicodeString]
lea eax, [ebp - 0x370]
push eax
push esi
mov word [esi], bx
call dword [sym.imp.ntdll.dll_RtlAppendUnicodeStringToString]
mov edi, eax
test edi, edi
jl 0xf04aae3
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0xf04aad5
push dword [ebp + 0x10]
lea eax, [ebp - 0x358]
push dword [ebp + 0xc]
mov dword [ebp - 0x35c], 1
push eax
push dword [ebp - 0x360]
call fcn.0f049297
mov edi, eax
test edi, edi
jge 0xf04aa73
jmp 0xf04aae3
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
or edi, 0x80070000
push dword [ebp - 0x360]
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp - 0x35c], 0
pop ebx
je 0xf04ab39
xor edi, edi
jmp 0xf04ab39
push edi
push 0x2a
push esi
call fcn.0f04839d
test eax, eax
jl 0xf04ab11
mov eax, 0x80070057
jmp 0xf04ab3b
push edi
push 0x3f
push esi
call fcn.0f04839d
test eax, eax
jge 0xf04ab0a
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0xf04ab39
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
or edi, 0x80070000
mov eax, edi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0f0057d5
leave
ret 0x10
Function at 0xf04af1b
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x470
mov eax, dword [0xf072008]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
mov ebx, dword [ebp + 8]
push esi
movzx esi, word [ebx]
mov dword [ebp - 0x470], eax
mov eax, dword [ebx + 4]
push edi
or edi, 0xffffffff
shr esi, 1
cmp word [eax + 2], 0x3a
mov dword [ebp - 0x46c], edi
jne 0xf04b0b6
mov ax, word [eax]
push 0x3a
mov word [ebp - 0x218], ax
pop eax
push 0x5c
mov word [ebp - 0x216], ax
pop eax
mov word [ebp - 0x214], ax
xor eax, eax
push 5
mov word [ebp - 0x212], ax
lea eax, [ebp - 0x10]
push eax
xor eax, eax
push eax
push eax
push eax
push eax
push eax
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
test eax, eax
je 0xf04b0ae
push edi
push 0xf0041a0
push edi
lea eax, [ebp - 0x10]
push eax
push 1
push 0x7f
call dword [sym.imp.KERNEL32.dll_CompareStringW]
cmp eax, 2
jne 0xf04b0ae
cmp esi, 0x102
jae 0xf04b0ae
lea edi, [esi + esi]
push edi
push dword [ebx + 4]
lea eax, [ebp - 0x218]
push eax
call fcn.0f0057f0
add esp, 0xc
push 0x23
pop eax
mov word [ebp + edi - 0x218], ax
push 0x2a
pop eax
mov word [ebp + edi - 0x216], ax
xor eax, eax
mov word [ebp + edi - 0x214], ax
lea eax, [ebp - 0x468]
push eax
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
je 0xf04b0ae
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
push 0x23
pop eax
xor ecx, ecx
cmp ax, word [ebp - 0x43c]
je 0xf04b055
movzx eax, word [ebp - 0x43c]
xor edx, edx
cmp dx, ax
je 0xf04b055
movzx eax, word [ebp + ecx*2 - 0x43a]
inc ecx
push 0x23
pop edx
cmp dx, ax
jne 0xf04b03d
mov eax, 0x103
cmp esi, eax
jae 0xf04b07e
lea edx, [ebp + ecx*2 - 0x43c]
movzx ecx, word [edx]
xor edi, edi
cmp di, cx
je 0xf04b07e
mov word [ebp + esi*2 - 0x218], cx
inc esi
inc edx
inc edx
cmp esi, eax
jb 0xf04b065
xor eax, eax
push eax
push dword [ebp + 0x1c]
mov word [ebp + esi*2 - 0x218], ax
push dword [ebp + 0x18]
lea eax, [ebp - 0x218]
push dword [ebp - 0x470]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x46c], eax
mov eax, dword [ebp - 0x46c]
jmp 0xf04b0b8
mov eax, edi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0f0057d5
leave
ret 0x18