joyce8/EMBER2024-capa huggingface dataset:
Function at 0x441d00
Capabilities:
Manipulate boot configuration

Disassembly:
sub esp, 0x434
mov eax, dword [0x4e9028]
xor eax, esp
mov dword [esp + 0x430], eax
test byte [0x4f190c], 1
push esi
jne 0x441d2f
or dword [0x4f190c], 1
mov dword [0x4f1908], 0x4db424
xor esi, esi
push 0xfe
lea eax, [esp + 0x36]
push esi
push eax
mov word [esp + 0x3c], si
call sub.ntdll.dll_memset
mov edx, dword [0x4f1908]
mov eax, dword [edx + 0x28]
add esp, 0xc
push 0x80
lea ecx, [esp + 0x34]
push ecx
mov ecx, 0x4f1908
call eax
test eax, eax
jne 0x441d82
or eax, 0xffffffff
pop esi
mov ecx, dword [esp + 0x430]
xor ecx, esp
call fcn.00462b77
add esp, 0x434
ret 4
push 0xfe
lea ecx, [esp + 0x136]
push esi
push ecx
mov word [esp + 0x13c], si
call sub.ntdll.dll_memset
lea edx, [esp + 0x3c]
push edx
lea eax, [esp + 0x140]
push 0x80
push eax
call dword [sym.imp.MSVCR80.dll_wcscpy_s]
push 0x1fe
lea ecx, [esp + 0x24e]
push esi
push ecx
mov word [esp + 0x254], si
call sub.ntdll.dll_memset
lea edx, [esp + 0x154]
push edx
push str._s_boot.ini
lea edx, [esp + 0x25c]
call fcn.00404520
add esp, 0x2c
lea eax, [esp + 0x230]
push eax
lea ecx, [esp + 0x24]
push ecx
call dword [sym.imp.ntdll.dll_RtlInitUnicodeString]
cmp dword [esp + 0x43c], esi
lea edx, [esp + 0x20]
mov dword [esp + 8], 0x18
mov dword [esp + 0xc], esi
mov dword [esp + 0x14], 0x40
mov dword [esp + 0x10], edx
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], esi
mov eax, 1
je 0x441e33
xor eax, eax
push esi
push esi
push 0x60
push eax
push 1
push 0x80
push esi
lea eax, [esp + 0x44]
push eax
lea ecx, [esp + 0x28]
push ecx
push 0xc0100000
lea edx, [esp + 0x2c]
push edx
mov dword [esp + 0x30], esi
call dword [sym.imp.ntdll.dll_ZwCreateFile]
mov ecx, dword [esp + 0x434]
mov eax, dword [esp + 4]
pop esi
xor ecx, esp
call fcn.00462b77
add esp, 0x434
ret 4
Function at 0x443be0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0xc
push esi
mov esi, eax
push 0
lea eax, [esp + 0x10]
push eax
push 0
push esi
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], 0
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x443c79
call fcn.00443b80
test eax, eax
jne 0x443c79
mov eax, 1
test byte [0x4f1904], al
jne 0x443c48
or dword [0x4f1904], eax
push 0x467ae0
mov dword [0x4f18dc], 0x4dbdb8
mov dword [0x4f18e0], 0xffffffff
call fcn.00462d9a
add esp, 4
mov esi, dword [0x4f18dc]
push 0x76
mov ecx, str.d:workDDCIncludeDiskIO.h
add esi, 8
call fcn.00443ab0
mov ecx, dword [esi]
add esp, 4
push eax
push str._s:_Failed_to_SetSectorPos_in_ReadSector.
push 0x4f18dc
call ecx
add esp, 0xc
xor eax, eax
pop esi
add esp, 0xc
ret
mov eax, dword [esp + 0x14]
push 0
lea edx, [esp + 8]
push edx
push 0x200
push eax
push esi
mov dword [esp + 0x18], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [esp + 4]
test ecx, ecx
je 0x443c72
test eax, eax
je 0x443c72
test ecx, 0x1ff
jne 0x443c72
mov eax, 1
pop esi
add esp, 0xc
ret

Function at 0x443cc0
Capabilities:
Write file on windows

Disassembly:
sub esp, 0xc
mov ecx, dword [esp + 0x14]
push esi
push 0
mov esi, eax
mov eax, dword [esp + 0x20]
push 0x200
push eax
push ecx
call sub.ntdll.dll__allmul
push 0
mov dword [esp + 0x10], edx
lea edx, [esp + 0x10]
push edx
push eax
push esi
mov dword [esp + 0x18], eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x443d69
call fcn.00443b80
test eax, eax
jne 0x443d69
mov eax, 1
test byte [0x4f1904], al
jne 0x443d35
or dword [0x4f1904], eax
push 0x467ae0
mov dword [0x4f18dc], 0x4dbdb8
mov dword [0x4f18e0], 0xffffffff
call fcn.00462d9a
add esp, 4
mov esi, dword [0x4f18dc]
push 0x8e
mov ecx, str.d:workDDCIncludeDiskIO.h
add esi, 8
call fcn.00443ab0
add esp, 4
push eax
mov eax, dword [esi]
push str._s:_Failed_to_SetSectorPos_in_WriteSector.
push 0x4f18dc
call eax
add esp, 0xc
xor eax, eax
pop esi
add esp, 0xc
ret
mov edx, dword [esp + 0x14]
push 0
lea ecx, [esp + 0x1c]
push ecx
push 0x200
push edx
push esi
mov dword [esp + 0x2c], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [esp + 0x18]
test ecx, ecx
je 0x443d62
test eax, eax
je 0x443d62
test ecx, 0x1ff
jne 0x443d62
mov eax, 1
pop esi
add esp, 0xc
ret
Function at 0x445c30
Capabilities:
Set registry value

Disassembly:
sub esp, 0x41c
mov eax, dword [0x4e9028]
xor eax, esp
mov dword [esp + 0x414], eax
push ebx
push ebp
push esi
push edi
lea eax, [esp + 0x10]
push eax
push 0xf003f
xor ebp, ebp
push ebp
push str.SystemMountedDevices
push 0x80000002
mov esi, ecx
mov dword [esp + 0x24], ebp
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x445cd2
mov eax, 1
test byte [0x4f1904], al
jne 0x445ca3
or dword [0x4f1904], eax
push 0x467ae0
mov dword [0x4f18dc], 0x4dbdb8
mov dword [0x4f18e0], 0xffffffff
call fcn.00462d9a
add esp, 4
mov esi, dword [0x4f18dc]
push 0x83
add esi, 8
call fcn.004457f0
mov ecx, dword [esi]
add esp, 4
push eax
push str._s:_Failed_to_RegOpenKeyEx.
push 0x4f18dc
call ecx
add esp, 0xc
xor eax, eax
jmp 0x445dc4
mov edi, dword [esp + 0x43c]
mov edx, dword [esp + 0x434]
mov ebx, dword [esp + 0x438]
push ebp
xor eax, eax
push 0x200
push edi
mov dword [esp + 0x21], eax
push ebx
mov dword [esp + 0x29], eax
mov word [esp + 0x2d], ax
mov byte [esp + 0x2f], al
mov dword [esp + 0x24], edx
call sub.ntdll.dll__allmul
push 0x3fe
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x26]
push ebp
push eax
mov dword [esp + 0x28], edx
mov word [esp + 0x2c], bp
call sub.ntdll.dll_memset
add esp, 0xc
push esi
mov esi, dword [sym.imp.MSVCR80.dll__swprintf]
lea ecx, [esp + 0x24]
push str.__Volume_s
push ecx
call esi
mov ecx, dword [esp + 0x1c]
add esp, 0xc
push 0xc
lea edx, [esp + 0x18]
push edx
push 3
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
lea eax, [esp + 0x30]
push eax
push ecx
call ebp
test eax, eax
je 0x445d70
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x445dc4
movzx eax, word [esp + 0x430]
push eax
lea ecx, [esp + 0x24]
push str.DosDevices_c:
push ecx
call esi
mov ecx, dword [esp + 0x1c]
add esp, 0xc
push 0xc
lea edx, [esp + 0x18]
push edx
push 3
push 0
lea eax, [esp + 0x30]
push eax
push ecx
call ebp
mov edx, dword [esp + 0x10]
mov esi, eax
neg esi
sbb esi, esi
push edx
add esi, 1
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x434]
push edi
push ebx
push eax
call fcn.00445de0
mov eax, esi
mov ecx, dword [esp + 0x424]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00462b77
add esp, 0x41c
ret 0x10
Function at 0x445de0
Capabilities:
Delete registry value
Query or enumerate registry value

Disassembly:
mov eax, 0x1418
call sub.ntdll.dll__chkstk
mov eax, dword [0x4e9028]
xor eax, esp
mov dword [esp + 0x1414], eax
push ebx
push ebp
push esi
push edi
lea eax, [esp + 0x14]
push eax
push 0xf003f
xor ebx, ebx
push ebx
push str.SystemMountedDevices
push 0x80000002
mov dword [esp + 0x28], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x445e7e
test byte [0x4f1904], 1
jne 0x445e52
or dword [0x4f1904], 1
push 0x467ae0
mov dword [0x4f18dc], 0x4dbdb8
mov dword [0x4f18e0], 0xffffffff
call fcn.00462d9a
add esp, 4
mov esi, dword [0x4f18dc]
push 0xa5
add esi, 8
call fcn.004457f0
mov ecx, dword [esi]
push eax
push str._s:_Failed_to_RegOpenKeyEx.
push 0x4f18dc
call ecx
add esp, 0x10
xor eax, eax
jmp 0x445fb4
push 0xffe
lea edx, [esp + 0x426]
push ebx
push edx
mov word [esp + 0x42c], bx
call sub.ntdll.dll_memset
mov edx, dword [esp + 0x20]
add esp, 0xc
push ebx
push ebx
push ebx
push ebx
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x434]
push ecx
push ebx
push edx
mov dword [esp + 0x38], 0x1000
xor esi, esi
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
jne 0x445faf
mov ebp, dword [esp + 0x1430]
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
jmp 0x445ee0
push 0x3ff
lea eax, [esp + 0x25]
push ebx
push eax
add esi, 1
mov byte [esp + 0x2c], bl
call sub.ntdll.dll_memset
add esp, 0xc
lea ecx, [esp + 0x1c]
push ecx
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0x24]
push edx
push ebx
push ebx
lea eax, [esp + 0x430]
push eax
push ecx
mov dword [esp + 0x34], 0x400
call edi
test eax, eax
jne 0x445f7b
mov edx, dword [esp + 0x142c]
cmp dword [esp + 0x20], edx
jne 0x445f7b
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x24]
push ebx
push 0x200
push eax
push ecx
call sub.ntdll.dll__alldiv
cmp eax, ebp
jne 0x445f7b
cmp edx, dword [esp + 0x1434]
jne 0x445f7b
cmp word [esp + 0x420], 0x23
jne 0x445f7b
cmp word [esp + 0x422], 0x7b
jne 0x445f7b
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x420]
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
xor esi, esi
mov eax, dword [esp + 0x14]
push ebx
push ebx
push ebx
push ebx
lea ecx, [esp + 0x28]
push ecx
lea edx, [esp + 0x434]
push edx
push esi
push eax
mov dword [esp + 0x38], 0x1000
mov dword [esp + 0x440], ebx
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
je 0x445ee0
mov eax, 1
mov ecx, dword [esp + 0x1424]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00462b77
add esp, 0x1418
ret 0xc
Function at 0x446120
Capabilities:
Get disk size

Disassembly:
mov eax, 0x102c
call sub.ntdll.dll__chkstk
mov eax, dword [0x4e9028]
xor eax, esp
mov dword [esp + 0x1024], eax
push ebx
push ebp
push esi
push edi
mov edi, edx
mov esi, ecx
mov eax, str.calc...
lea edx, [esi + 0x81c]
sub edx, eax
mov dword [esp + 0x14], edi
xor ebp, ebp
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
cmp cx, bp
jne 0x446153
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x24]
push ecx
lea edx, [esp + 0x30]
push edx
push esi
mov dword [esi + 0x800], edi
mov dword [esi + 0x810], ebp
mov dword [esi + 0x814], ebp
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
mov eax, dword [esp + 0x20]
sub eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x24]
sbb ecx, dword [esp + 0x1c]
mov dword [esi + 0x808], eax
mov eax, esi
mov dword [esi + 0x80c], ecx
lea edx, [eax + 2]
jmp 0x4461b0
mov cx, word [eax]
add eax, 2
cmp cx, bp
jne 0x4461b0
sub eax, edx
sar eax, 1
lea ebx, [esi + 0x400]
mov dword [esp + 0x18], eax
mov eax, ebx
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
cmp cx, bp
jne 0x4461d0
sub eax, edx
lea edi, [esp + 0x830]
sar eax, 1
mov ecx, esi
sub edi, esi
lea ebx, [ebx]
movzx edx, word [ecx]
mov word [edi + ecx], dx
add ecx, 2
cmp dx, bp
jne 0x4461f0
lea edi, [esp + 0x30]
mov ecx, ebx
sub edi, ebx
jmp 0x446210
movzx edx, word [ecx]
mov word [edi + ecx], dx
add ecx, 2
cmp dx, bp
jne 0x446210
mov edx, dword [esp + 0x18]
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov word [esp + edx*2 + 0x82e], bp
mov word [esp + eax*2 + 0x2e], bp
call ebx
mov dword [esi + 0x818], eax
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x834]
push ecx
mov ecx, esi
call fcn.00446390
mov edi, eax
cmp edi, ebp
je 0x446265
mov ecx, dword [esp + 0x14]
mov edx, dword [ecx]
mov eax, dword [edx + 8]
push 0x64
call eax
call ebx
mov ecx, eax
sub ecx, dword [esi + 0x818]
mov eax, 0x10624dd3
mul ecx
mov ecx, edx
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x1c]
push eax
lea edx, [esp + 0x28]
shr ecx, 6
push edx
call fcn.0042e790
mov eax, 1
test byte [0x4f1904], al
jne 0x4462c3
or dword [0x4f1904], eax
push 0x467ae0
mov dword [0x4f18dc], 0x4dbdb8
mov dword [0x4f18e0], 0xffffffff
call fcn.00462d9a
add esp, 4
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x20]
mov esi, dword [0x4f18dc]
push eax
push ecx
push edx
push 0x34
add esi, 8
call fcn.00445fd0
add esp, 4
push eax
mov eax, dword [esi]
push str._s:_Copy_file_elapsed_time:___02d:_02d:_02d_
push 0x4f18dc
call eax
mov ecx, dword [esp + 0x104c]
add esp, 0x18
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00462b77
add esp, 0x102c
ret
Function at 0x446320
Capabilities:
Get file size

Disassembly:
sub esp, 0x10
push esi
push 0
push 0x80
push 3
push 0
push 3
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
xor eax, eax
cmp esi, 0xffffffff
je 0x446367
lea ecx, [esp + 8]
push ecx
push esi
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
push esi
jne 0x44636e
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
xor edx, edx
pop esi
add esp, 0x10
ret
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 8]
mov edx, dword [esp + 0xc]
pop esi
add esp, 0x10
ret
Function at 0x447320
Capabilities:
Read file on windows

Disassembly:
sub esp, 0xc
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
push esi
push 0
push 0x200
push eax
push ecx
call sub.ntdll.dll__allmul
push 0
mov dword [esp + 0x10], edx
lea edx, [esp + 0x10]
push edx
push eax
push edi
mov dword [esp + 0x18], eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x4473c4
call fcn.004472c0
test eax, eax
jne 0x4473c4
mov eax, 1
test byte [0x4f1904], al
jne 0x447393
or dword [0x4f1904], eax
push 0x467ae0
mov dword [0x4f18dc], 0x4dbdb8
mov dword [0x4f18e0], 0xffffffff
call fcn.00462d9a
add esp, 4
mov esi, dword [0x4f18dc]
push 0x76
mov ecx, str.d:workDDCIncludeDiskIO.h
add esi, 8
call fcn.004471f0
add esp, 4
push eax
mov eax, dword [esi]
push str._s:_Failed_to_SetSectorPos_in_ReadSector.
push 0x4f18dc
call eax
add esp, 0xc
xor eax, eax
pop esi
add esp, 0xc
ret
mov esi, dword [esp + 0x20]
mov eax, dword [esp + 0x14]
push 0
lea ecx, [esp + 0x1c]
push ecx
mov edx, esi
shl edx, 9
push edx
push eax
push edi
mov dword [esp + 0x2c], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
or esi, dword [esp + 0x24]
mov ecx, dword [esp + 0x18]
je 0x4473f7
test ecx, ecx
je 0x4473bd
test eax, eax
je 0x4473bd
test ecx, 0x1ff
jne 0x4473bd
mov eax, 1
pop esi
add esp, 0xc
ret

Function at 0x447410
Capabilities:
Write file on windows

Disassembly:
sub esp, 0xc
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
push esi
push 0
push 0x200
push eax
push ecx
call sub.ntdll.dll__allmul
push 0
mov dword [esp + 0x10], edx
lea edx, [esp + 0x10]
push edx
push eax
push edi
mov dword [esp + 0x18], eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x4474b7
call fcn.004472c0
test eax, eax
jne 0x4474b7
mov eax, 1
test byte [0x4f1904], al
jne 0x447483
or dword [0x4f1904], eax
push 0x467ae0
mov dword [0x4f18dc], 0x4dbdb8
mov dword [0x4f18e0], 0xffffffff
call fcn.00462d9a
add esp, 4
mov esi, dword [0x4f18dc]
push 0x8e
mov ecx, str.d:workDDCIncludeDiskIO.h
add esi, 8
call fcn.004471f0
add esp, 4
push eax
mov eax, dword [esi]
push str._s:_Failed_to_SetSectorPos_in_WriteSector.
push 0x4f18dc
call eax
add esp, 0xc
xor eax, eax
pop esi
add esp, 0xc
ret
mov esi, dword [esp + 0x20]
mov eax, dword [esp + 0x14]
push 0
lea ecx, [esp + 0x1c]
push ecx
mov edx, esi
shl edx, 9
push edx
push eax
push edi
mov dword [esp + 0x2c], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
or esi, dword [esp + 0x24]
mov ecx, dword [esp + 0x18]
je 0x4474ea
test ecx, ecx
je 0x4474b0
test eax, eax
je 0x4474b0
test ecx, 0x1ff
jne 0x4474b0
mov eax, 1
pop esi
add esp, 0xc
ret
Function at 0x448020
Capabilities:
Read file on windows

Disassembly:
sub esp, 0xc
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
push esi
push 0
push 0x200
push eax
push ecx
call sub.ntdll.dll__allmul
push 0
mov dword [esp + 0x10], edx
lea edx, [esp + 0x10]
push edx
push eax
push edi
mov dword [esp + 0x18], eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x4480c4
call fcn.00447fc0
test eax, eax
jne 0x4480c4
mov eax, 1
test byte [0x4f1904], al
jne 0x448093
or dword [0x4f1904], eax
push 0x467ae0
mov dword [0x4f18dc], 0x4dbdb8
mov dword [0x4f18e0], 0xffffffff
call fcn.00462d9a
add esp, 4
mov esi, dword [0x4f18dc]
push 0x76
mov ecx, str.d:workDDCIncludeDiskIO.h
add esi, 8
call fcn.00447ef0
add esp, 4
push eax
mov eax, dword [esi]
push str._s:_Failed_to_SetSectorPos_in_ReadSector.
push 0x4f18dc
call eax
add esp, 0xc
xor eax, eax
pop esi
add esp, 0xc
ret
mov esi, dword [esp + 0x20]
mov eax, dword [esp + 0x14]
push 0
lea ecx, [esp + 0x1c]
push ecx
mov edx, esi
shl edx, 9
push edx
push eax
push edi
mov dword [esp + 0x2c], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
or esi, dword [esp + 0x24]
mov ecx, dword [esp + 0x18]
je 0x4480f7
test ecx, ecx
je 0x4480bd
test eax, eax
je 0x4480bd
test ecx, 0x1ff
jne 0x4480bd
mov eax, 1
pop esi
add esp, 0xc
ret
Function at 0x4481f0
Capabilities:
Get volume information via ioctl

Disassembly:
sub esp, 0x6c
test byte [0x4f190c], 1
push ebx
push ebp
push esi
push edi
jne 0x448211
or dword [0x4f190c], 1
mov dword [0x4f1908], 0x4db424
mov eax, dword [esp + 0x84]
mov ecx, dword [esp + 0x80]
push 0x80000000
push eax
mov eax, dword [0x4f1908]
push ecx
push edx
mov edx, dword [eax + 0x68]
mov ecx, 0x4f1908
call edx
mov esi, eax
test esi, esi
jne 0x4482a0
test byte [0x4f1904], 1
jne 0x44826d
or dword [0x4f1904], 1
push 0x467ae0
mov dword [0x4f18dc], 0x4dbdb8
mov dword [0x4f18e0], 0xffffffff
call fcn.00462d9a
add esp, 4
mov esi, dword [0x4f18dc]
push 0x3b
mov ecx, str.._ntfsstd.cpp
add esi, 8
call fcn.00447ef0
push eax
mov eax, dword [esi]
push str._s:_Failed_to_open_volume_by_ZwCreateFile.
push 0x4f18dc
call eax
add esp, 0x10
xor eax, eax
xor edx, edx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x6c
ret
push 0
lea ecx, [esp + 0x14]
push ecx
push 0x60
lea edx, [esp + 0x24]
push edx
push 0
push 0
push 0x90064
push esi
mov dword [esp + 0x30], 0
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
jne 0x448305
call fcn.0041e870
mov edi, eax
mov esi, dword [edi]
push 0x4f
mov ecx, str.._ntfsstd.cpp
add esi, 8
call fcn.00447ef0
push eax
mov eax, dword [esi]
push str._s:_Send_FSCTL_GET_NTFS_VOLUME_DATA_Control_Code_failed.
push edi
call eax
add esp, 0x10
xor eax, eax
xor edx, edx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x6c
ret
mov ecx, dword [esp + 0x94]
mov edi, dword [esp + 0x28]
sub edi, dword [esp + 0x30]
mov ebx, dword [esp + 0x2c]
sbb ebx, dword [esp + 0x34]
mov dword [ecx], 1
movzx ecx, word [esp + 0x90]
mov eax, ecx
cdq
mov dword [esp + 0x10], eax
mov eax, ecx
shl eax, 6
sub eax, ecx
mov dword [esp + 0x14], edx
mov ecx, edx
cdq
mov esi, edx
mov edx, dword [esp + 0x2c]
push edx
mov edx, dword [esp + 0x14]
mov ebp, eax
mov eax, dword [esp + 0x2c]
add ebp, dword [esp + 0x8c]
push eax
adc esi, dword [esp + 0x94]
push ecx
push edx
call sub.ntdll.dll__allmul
cmp edx, esi
jb 0x44837d
ja 0x448370
cmp eax, ebp
jbe 0x44837d
mov eax, dword [esp + 0x94]
mov dword [eax], 0
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
push ebx
push edi
push ecx
push edx
call sub.ntdll.dll__allmul
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x6c
ret
Function at 0x4496c0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0xc
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
push esi
push 0
push 0x200
push eax
push ecx
call sub.ntdll.dll__allmul
push 0
mov dword [esp + 0x10], edx
lea edx, [esp + 0x10]
push edx
push eax
push edi
mov dword [esp + 0x18], eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x449764
call fcn.00449660
test eax, eax
jne 0x449764
mov eax, 1
test byte [0x4f1904], al
jne 0x449733
or dword [0x4f1904], eax
push 0x467ae0
mov dword [0x4f18dc], 0x4dbdb8
mov dword [0x4f18e0], 0xffffffff
call fcn.00462d9a
add esp, 4
mov esi, dword [0x4f18dc]
push 0x76
mov ecx, str.d:workDDCIncludeDiskIO.h
add esi, 8
call fcn.00449590
add esp, 4
push eax
mov eax, dword [esi]
push str._s:_Failed_to_SetSectorPos_in_ReadSector.
push 0x4f18dc
call eax
add esp, 0xc
xor eax, eax
pop esi
add esp, 0xc
ret
mov esi, dword [esp + 0x20]
mov eax, dword [esp + 0x14]
push 0
lea ecx, [esp + 0x1c]
push ecx
mov edx, esi
shl edx, 9
push edx
push eax
push edi
mov dword [esp + 0x2c], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
or esi, dword [esp + 0x24]
mov ecx, dword [esp + 0x18]
je 0x449797
test ecx, ecx
je 0x44975d
test eax, eax
je 0x44975d
test ecx, 0x1ff
jne 0x44975d
mov eax, 1
pop esi
add esp, 0xc
ret

Function at 0x449cf0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x4671de
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x4e9028]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, dword [esp + 0x1c]
xor edi, edi
mov dword [esi + 0x438], edi
mov dword [esi + 0x43c], edi
mov dword [esi + 0x440], edi
mov dword [esp + 0x14], edi
push 0x400
lea eax, [esi + 0x1c]
push edi
push eax
mov dword [esi], edi
mov dword [esi + 4], edi
mov dword [esi + 0x10], edi
mov dword [esi + 0x14], edi
mov dword [esi + 0x18], edi
mov dword [esi + 0x424], edi
mov dword [esi + 0x428], edi
mov dword [esi + 0x42c], edi
mov word [esi + 0x430], di
mov dword [esi + 0x420], edi
call sub.ntdll.dll_memset
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x2c]
add esp, 0xc
push edi
push edi
push ecx
push edx
mov eax, esi
mov dword [esi + 0x41c], edi
mov dword [esi + 0x450], edi
call fcn.00449fb0
mov eax, esi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0xc
ret 0xc
Function at 0x44b250
Capabilities:
Check if file exists
Get file attributes

Disassembly:
sub esp, 0x404
mov eax, dword [0x4e9028]
xor eax, esp
mov dword [esp + 0x400], eax
push 0x3fe
lea eax, [esp + 6]
push 0
push eax
mov word [esp + 0xc], 0
call sub.ntdll.dll_memset
add esp, 0xc
push 0x200
lea ecx, [esp + 4]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea edx, [esp]
push 0x5c
push edx
call dword [sym.imp.ntdll.dll_wcsrchr]
add esp, 8
test eax, eax
je 0x44b2f6
push esi
push edi
lea edi, [esp + 8]
mov word [eax], 0
add edi, 0xfffffffe
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x44b2b2
lea eax, [esp + 8]
mov ecx, 8
mov esi, 0x469b30
push eax
rep movsd dword es:[edi], dword [esi]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
pop edi
pop esi
mov eax, ecx
mov ecx, dword [esp + 0x400]
xor ecx, esp
call fcn.00462b77
add esp, 0x404
ret
mov ecx, dword [esp + 0x400]
xor ecx, esp
xor eax, eax
call fcn.00462b77
add esp, 0x404
ret

Function at 0x44b370
Capabilities:
Read file on windows

Disassembly:
sub esp, 0xc
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
push esi
push 0
push 0x200
push eax
push ecx
call sub.ntdll.dll__allmul
push 0
mov dword [esp + 0x10], edx
lea edx, [esp + 0x10]
push edx
push eax
push edi
mov dword [esp + 0x18], eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x44b414
call fcn.0044b310
test eax, eax
jne 0x44b414
mov eax, 1
test byte [0x4f1904], al
jne 0x44b3e3
or dword [0x4f1904], eax
push 0x467ae0
mov dword [0x4f18dc], 0x4dbdb8
mov dword [0x4f18e0], 0xffffffff
call fcn.00462d9a
add esp, 4
mov esi, dword [0x4f18dc]
push 0x76
mov ecx, str.d:workDDCIncludeDiskIO.h
add esi, 8
call fcn.0044b180
add esp, 4
push eax
mov eax, dword [esi]
push str._s:_Failed_to_SetSectorPos_in_ReadSector.
push 0x4f18dc
call eax
add esp, 0xc
xor eax, eax
pop esi
add esp, 0xc
ret
mov esi, dword [esp + 0x20]
mov eax, dword [esp + 0x14]
push 0
lea ecx, [esp + 0x1c]
push ecx
mov edx, esi
shl edx, 9
push edx
push eax
push edi
mov dword [esp + 0x2c], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
or esi, dword [esp + 0x24]
mov ecx, dword [esp + 0x18]
je 0x44b447
test ecx, ecx
je 0x44b40d
test eax, eax
je 0x44b40d
test ecx, 0x1ff
jne 0x44b40d
mov eax, 1
pop esi
add esp, 0xc
ret