joyce8/EMBER2024-capa huggingface dataset:
Function at 0x423611
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x608
mov eax, dword [0x49f2a0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push edi
mov edi, dword [ebp + 8]
xor ebx, ebx
push 0x3ff
lea eax, [ebp - 0x403]
push ebx
push eax
mov byte [ebp - 0x404], bl
call fcn.00450230
add esp, 0xc
push ebx
lea eax, [ebp - 0x608]
push eax
push 0x400
lea eax, [ebp - 0x404]
push eax
push ebx
push ebx
push 0x560000
push edi
call dword [sym.imp.___total_physical_size__lu_MB_DeviceIoControl]
test eax, eax
je 0x4236ff
push esi
push ebx
push ebx
push ebx
push edi
call fcn.0044df99
push ebx
lea eax, [ebp - 0x608]
push eax
mov esi, 0x200
push esi
lea eax, [ebp - 0x604]
push eax
push edi
call dword [sym.imp.___total_physical_size__lu_MB_ReadFile]
test eax, eax
je 0x4236fe
cmp dword [ebp - 0x608], esi
jne 0x4236fe
mov eax, 0xaa55
cmp word [ebp - 0x406], ax
jne 0x4236fe
movsx eax, byte [ebp - 0x604]
cmp eax, 0xeb
je 0x4236c5
cmp eax, 0xe9
jne 0x4236fe
push ebx
push esi
push dword [ebp - 0x3f0]
push dword [ebp - 0x3f4]
call fcn.00453160
push ebx
push ebx
push ebx
push edi
mov dword [ebp - 0x5e8], eax
call fcn.0044df99
push ebx
lea eax, [ebp - 0x608]
push eax
push esi
lea eax, [ebp - 0x604]
push eax
push edi
call dword [sym.imp.___total_physical_size__lu_MB_WriteFile]
pop esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.00450b32
leave
ret 4

Function at 0x423da9
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1004
call fcn.00453130
mov eax, dword [0x49f2a0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
xor ebx, ebx
push esi
cmp dword [ebp + 8], ebx
je 0x423e04
mov esi, 0xfff
push esi
lea eax, [ebp - 0x1003]
push ebx
push eax
mov byte [ebp - 0x1004], bl
call fcn.00450230
mov eax, dword [0x4bcb80]
add eax, 0x14
and eax, esi
add esp, 0xc
lea ecx, [esi + 1]
sub ecx, eax
push ecx
lea eax, [ebp - 0x1004]
push eax
push dword [ebp + 8]
call fcn.0041fd7e
cmp dword [0x4cd334], 1
jne 0x423e1b
mov ecx, 0x4cde18
call fcn.00414dee
mov esi, eax
jmp 0x423e46
push dword [0x4bcb80]
push dword [0x4ac36c]
call fcn.0041f805
push dword [0x4cce98]
mov esi, eax
call dword [sym.imp.___total_physical_size__lu_MB_SetEndOfFile]
push dword [0x4cce98]
call dword [sym.imp.___total_physical_size__lu_MB_FlushFileBuffers]
mov eax, dword [0x4ac36c]
mov dword [0x4bcb80], ebx
cmp eax, ebx
je 0x423e62
push 0x8000
push ebx
push eax
call dword [sym.imp.___total_physical_size__lu_MB_VirtualFree]
mov ecx, dword [ebp - 4]
mov eax, esi
pop esi
mov dword [0x4ac36c], ebx
xor ecx, ebp
pop ebx
call fcn.00450b32
leave
ret 4
Function at 0x4250fe
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x49f2a0]
xor eax, ebp
mov dword [ebp - 4], eax
or dword [ebp - 0x1c], 0xffffffff
cmp dword [0x48243c], 0xffffffff
je 0x425123
xor eax, eax
inc eax
jmp 0x4252c2
push ebx
xor ebx, ebx
push esi
push edi
cmp dword [0x4cd614], ebx
jne 0x425149
push str.SnapshotLoadDriver
push ebx
push ebx
call dword [sym.imp.___total_physical_size__lu_MB_CreateMutexA]
push 0xffffffffffffffff
push eax
mov dword [ebp - 0x1c], eax
call dword [sym.imp.___total_physical_size__lu_MB_WaitForSingleObject]
call fcn.004234aa
call fcn.004430cb
xor esi, esi
lea eax, [ebp - 0x34]
push eax
push 0x48243c
push 0x422276
push esi
push 0x470f64
push str._s_u
call fcn.0042f614
add esp, 0xc
push eax
call fcn.0041a89b
test eax, eax
jne 0x425186
inc esi
cmp esi, 0x1b
jb 0x425155
call fcn.004430e1
cmp esi, 0x1b
jb 0x4251cb
call fcn.00420af9
cmp eax, 2
jne 0x4251ad
push str.cant_load_the_required_device_driver_nDriver_for_IA64_architecture_not_included.
call dword [sym.imp.___total_physical_size__lu_MB_GetLastError]
push eax
push 0x131b
jmp 0x4251be
push str.cant_load_the_required_device_driver
call dword [sym.imp.___total_physical_size__lu_MB_GetLastError]
push eax
push 0x1320
push str.NTCOPY
call fcn.0044dc85
add esp, 0x10
mov eax, str.NTOSKRNL.EXE
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], str.NTKRNLPA.EXE
mov dword [ebp - 0x28], ebx
mov esi, eax
and dword [ebp - 0x20], 0
xor eax, eax
lea edi, [ebp - 0x18]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x20]
push eax
push 0x470ea4
push esi
call fcn.0042f670
test eax, eax
je 0x42528b
lea eax, [ebp - 0x14]
push eax
push 0x470e98
push esi
call fcn.0042f670
test eax, eax
je 0x42528b
lea eax, [ebp - 0x10]
push eax
push 0x470e88
push esi
call fcn.0042f670
test eax, eax
je 0x42528b
lea eax, [ebp - 0xc]
push eax
push 0x470e7c
push esi
call fcn.0042f670
test eax, eax
je 0x42528b
lea eax, [ebp - 0x18]
push eax
push str.ZwWriteFile
push esi
call fcn.0042f670
test eax, eax
je 0x42528b
mov eax, dword [ebp - 0x20]
sub eax, dword [ebp - 0xc]
push 0
mov dword [ebp - 8], eax
lea eax, [ebp - 0x24]
push eax
push 4
push eax
push 0x14
lea eax, [ebp - 0x18]
push eax
push 0x86290067
push dword [0x48243c]
call dword [sym.imp.___total_physical_size__lu_MB_DeviceIoControl]
test eax, eax
jne 0x425298
push esi
call dword [sym.imp.___total_physical_size__lu_MB_GetModuleHandleA]
push eax
call dword [sym.imp.___total_physical_size__lu_MB_FreeLibrary]
mov esi, dword [ebp + ebx*4 - 0x2c]
inc ebx
test esi, esi
jne 0x4251df
cmp dword [0x4cd614], 0
pop edi
pop esi
pop ebx
jne 0x4252b6
push dword [ebp - 0x1c]
call dword [sym.imp.___total_physical_size__lu_MB_ReleaseMutex]
push dword [ebp - 0x1c]
call dword [sym.imp.___total_physical_size__lu_MB_CloseHandle]
xor eax, eax
cmp dword [0x48243c], 0xffffffff
setne al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00450b32
leave
ret
Function at 0x4285ce
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
mov eax, dword [0x49f2a0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
push 4
push 0x46eea8
push esi
call fcn.00450f08
add esp, 0xc
test eax, eax
jne 0x428604
xor eax, eax
jmp 0x428687
push 3
push 0x472574
push esi
call fcn.00450f08
add esp, 0xc
test eax, eax
jne 0x4285fd
mov esi, dword [sym.imp.___total_physical_size__lu_MB_SetFilePointer]
push edi
xor edi, edi
push edi
push edi
push edi
push ebx
call esi
push edi
lea eax, [ebp - 0x208]
push eax
push 0x200
lea eax, [ebp - 0x204]
push eax
push ebx
call dword [sym.imp.___total_physical_size__lu_MB_ReadFile]
test eax, eax
je 0x428686
push edi
push edi
push edi
push ebx
call esi
movzx ecx, word [ebp - 0x1ee]
cmp ecx, edi
jne 0x42865d
mov ecx, dword [ebp - 0x1e0]
movzx eax, byte [ebp - 0x1f4]
imul eax, ecx
movzx ecx, word [ebp - 0x1f6]
add eax, ecx
movzx ecx, word [ebp - 0x1f9]
imul eax, ecx
movzx ecx, word [ebp - 0x1f3]
shl ecx, 5
add eax, ecx
pop edi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.00450b32
leave
ret 8
Function at 0x429b23
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
xor ebx, ebx
push ebx
push 0x2000000
push 3
push ebx
push 3
push ebx
push esi
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], ebx
call dword [sym.imp.___total_physical_size__lu_MB_CreateFileA]
mov dword [ebp + 8], eax
mov edi, 0x90073
cmp eax, 0xffffffff
jne 0x429bb3
call dword [sym.imp.___total_physical_size__lu_MB_GetLastError]
cmp eax, 2
jne 0x429b6a
or eax, 0xffffffff
jmp 0x429c98
cmp eax, 5
je 0x429b74
cmp eax, 0x20
jne 0x429be3
push esi
push str.SYSTEM
call fcn.00411f21
mov dword [ebp + 8], eax
cmp eax, 0xffffffff
je 0x429be3
push dword [ebp + 0x10]
lea ecx, [ebp - 0xc]
push dword [ebp + 0xc]
push 8
push ecx
push edi
lea ecx, [ebp - 0x14]
push ecx
push eax
call fcn.00428243
cmp eax, ebx
jne 0x429bb3
push dword [ebp + 8]
call dword [sym.imp.___total_physical_size__lu_MB_CloseHandle]
xor eax, eax
inc eax
jmp 0x429c98
push dword [ebp + 0x10]
lea eax, [ebp - 0xc]
push dword [ebp + 0xc]
push 8
push eax
push edi
lea eax, [ebp - 0x14]
push eax
push dword [ebp + 8]
call fcn.00428243
push dword [ebp + 8]
mov edi, eax
call dword [sym.imp.___total_physical_size__lu_MB_CloseHandle]
cmp edi, ebx
je 0x429bab
cmp edi, 0xc0000011
je 0x429bab
cmp dword [0x48243c], 0xffffffff
jne 0x429c01
call fcn.004250fe
cmp dword [0x48243c], 0xffffffff
jne 0x429c01
xor eax, eax
jmp 0x429c98
push 0xe
push 0x472b98
push esi
call fcn.00450f08
add esp, 0xc
test eax, eax
jne 0x429c2b
mov eax, esi
lea edi, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x429c1a
sub eax, edi
add eax, 0xfffffff2
add esi, 0xe
jmp 0x429c7a
mov ecx, dword [esi]
mov eax, 0x46a5b4
cmp ecx, dword [eax]
jne 0x429c4c
mov eax, esi
lea edi, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x429c3b
sub eax, edi
add eax, 0xfffffffc
add esi, 4
jmp 0x429c7a
cmp byte [esi + 1], 0x3a
jne 0x429c6c
movsx eax, cl
push eax
call fcn.00453103
mov byte [esi], al
mov eax, esi
pop ecx
lea edi, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x429c63
jmp 0x429c78
mov eax, esi
lea edi, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x429c71
sub eax, edi
push ebx
lea ecx, [ebp - 4]
push ecx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push eax
push esi
push 0x86290073
push dword [0x48243c]
call dword [sym.imp.___total_physical_size__lu_MB_DeviceIoControl]
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x42bf64
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x49f2a0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
xor esi, esi
mov dword [ebp - 0x20], eax
cmp edi, esi
je 0x42bf8e
mov dword [edi], esi
mov dword [edi + 4], esi
cmp eax, esi
je 0x42bf94
mov dword [eax], esi
push esi
push esi
push 3
push esi
push 1
push Ordinal_2
push ecx
call dword [sym.imp.___total_physical_size__lu_MB_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x42bfb5
xor eax, eax
jmp 0x42c06b
mov eax, dword [ebp - 0x20]
cmp eax, esi
je 0x42bfc2
mov dword [eax], 1
push 2
lea eax, [ebp - 0x14]
push eax
push esi
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], esi
mov esi, dword [sym.imp.___total_physical_size__lu_MB_SetFilePointer]
push ebx
call esi
test edi, edi
je 0x42bfef
lea eax, [ebp - 0x14]
push eax
push ebx
call dword [sym.imp.___total_physical_size__lu_MB_GetFileSize]
mov dword [edi], eax
mov eax, dword [ebp - 0x14]
mov dword [edi + 4], eax
or dword [ebp - 0x14], 0xffffffff
push 0xfffffffffffffff8
pop eax
push 1
lea ecx, [ebp - 0x14]
push ecx
push eax
push ebx
mov dword [ebp - 0x18], eax
call esi
mov edi, dword [sym.imp.___total_physical_size__lu_MB_ReadFile]
push 0
lea eax, [ebp - 0x1c]
push eax
push 8
lea eax, [ebp - 0x28]
push eax
push ebx
call edi
test eax, eax
jne 0x42c025
push ebx
call dword [sym.imp.___total_physical_size__lu_MB_CloseHandle]
jmp 0x42bfae
cmp dword [ebp - 0x24], 0x45524e53
jne 0x42c01c
push 0xffffffffffffffec
pop eax
sub eax, dword [ebp - 0x28]
push 1
cdq
lea ecx, [ebp - 0x14]
push ecx
push eax
push ebx
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], edx
call esi
push 0
lea eax, [ebp - 0x1c]
push eax
push 0xc
lea eax, [ebp - 0x10]
push eax
push ebx
call edi
test eax, eax
je 0x42c01c
cmp dword [ebp - 0x10], 0x5458454e
push ebx
jne 0x42c01d
call dword [sym.imp.___total_physical_size__lu_MB_CloseHandle]
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00450b32
leave
ret 0xc
Function at 0x42c740
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3e4
mov eax, dword [0x49f2a0]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [0x4cdfa8]
push esi
mov esi, dword [ebp + 8]
call fcn.00446358
test eax, eax
jne 0x42c795
call fcn.004250fe
test eax, eax
jne 0x42c795
push str._nCannot_load_the_required_driver_n
call dword [sym.imp.___total_physical_size__lu_MB_GetLastError]
push eax
push 0x1674
push str.NTCPVOL2FILE
call fcn.0044dc85
xor eax, eax
add esp, 0x10
inc eax
jmp 0x42c8f4
and dword [ebp - 0x3e4], 0
push edi
push 0x3dc
lea eax, [ebp - 0x3e0]
push 0
push eax
call fcn.00450230
movsx eax, byte [esi + 4]
push eax
call fcn.00453103
sub eax, 0x41
add esp, 0x10
cmp byte [esi + 5], 0x3a
mov dword [ebp - 0x3dc], eax
jne 0x42c7fd
add al, 0x41
movsx edi, al
push edi
lea eax, [ebp - 0x3d8]
push 0x46a8cc
push eax
call fcn.00450c76
push edi
lea eax, [ebp - 0x398]
push str.._c:
push eax
call fcn.00450c76
push edi
push str.._c:_
jmp 0x42c824
push esi
mov edi, 0x469a48
lea eax, [ebp - 0x3d8]
push edi
push eax
call fcn.00450c76
push esi
lea eax, [ebp - 0x398]
push edi
push eax
call fcn.00450c76
push esi
push 0x46a500
lea eax, [ebp - 0x358]
push eax
call fcn.00450c76
add esp, 0x24
push 0x64
lea eax, [ebp - 0x318]
push eax
lea eax, [ebp - 0x394]
push eax
call dword [sym.imp.___total_physical_size__lu_MB_QueryDosDeviceA]
lea eax, [ebp - 0x318]
push eax
push esi
push str.drive__s_:_DosDevice__s_n
call fcn.00450f5c
add esp, 0xc
lea eax, [ebp - 0x318]
push eax
call fcn.0042c657
lea eax, [ebp - 0x248]
push eax
lea eax, [ebp - 0x24c]
push eax
lea eax, [ebp - 0x318]
push eax
lea eax, [ebp - 0x3d8]
push eax
call fcn.00428697
push dword [ebp - 0x248]
push dword [ebp - 0x24c]
push str.Volume_is_located_on_disk__d__partition__d_n
call fcn.00450f5c
add esp, 0xc
lea eax, [ebp - 0x318]
push eax
push dword [0x48243c]
call fcn.0040cb24
pop edi
test eax, eax
jne 0x42c8f2
push dword [ebp - 0x24c]
push str.DeviceHarddisk_uPartition0
call fcn.0042f614
pop ecx
pop ecx
push eax
call fcn.0042c657
push dword [ebp - 0x248]
push dword [ebp - 0x24c]
push str.DeviceHarddisk_uFt_u
call fcn.0042f614
add esp, 0xc
push eax
call fcn.0042c657
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00450b32
leave
ret 4
Function at 0x42f7c1
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x49f2a0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
xor edi, edi
push edi
push edi
mov esi, 0x200
push esi
push ebx
mov dword [ebp - 0x21c], ebx
mov dword [ebp - 0x218], edi
mov dword [ebp - 0x214], edi
mov dword [ebp - 0x20c], esi
mov dword [ebp - 0x208], edi
call fcn.0044df99
push edi
lea eax, [ebp - 0x210]
push eax
push esi
lea eax, [ebp - 0x204]
push eax
mov dword [ebp - 0x210], edi
mov edi, dword [sym.imp.___total_physical_size__lu_MB_ReadFile]
push ebx
call edi
test eax, eax
je 0x42f887
cmp dword [ebp - 0x210], esi
jne 0x42f87a
mov eax, dword [ebp - 0x20c]
mov ecx, dword [ebp - 0x208]
shld ecx, eax, 1
push 0
add eax, eax
push ecx
push eax
push ebx
mov dword [ebp - 0x20c], eax
mov dword [ebp - 0x208], ecx
call fcn.0044df99
and dword [ebp - 0x210], 0
push 0
lea eax, [ebp - 0x210]
push eax
push esi
lea eax, [ebp - 0x204]
push eax
push ebx
call edi
test eax, eax
jne 0x42f82b
cmp dword [ebp - 0x208], 0
jbe 0x42f916
mov edi, dword [ebp - 0x20c]
add edi, dword [ebp - 0x218]
mov ebx, dword [ebp - 0x208]
adc ebx, dword [ebp - 0x214]
push 0
push ebx
push edi
push dword [ebp - 0x21c]
call fcn.0044df99
and dword [ebp - 0x210], 0
push 0
lea eax, [ebp - 0x210]
push eax
push esi
lea eax, [ebp - 0x204]
push eax
push dword [ebp - 0x21c]
call dword [sym.imp.___total_physical_size__lu_MB_ReadFile]
test eax, eax
je 0x42f8ee
cmp dword [ebp - 0x210], esi
jne 0x42f8ee
mov byte [ebp - 5], 0
mov dword [ebp - 0x218], edi
mov dword [ebp - 0x214], ebx
mov eax, dword [ebp - 0x20c]
mov ecx, dword [ebp - 0x208]
shrd eax, ecx, 1
shr ecx, 1
mov dword [ebp - 0x20c], eax
mov dword [ebp - 0x208], ecx
test ecx, ecx
ja 0x42f887
jb 0x42f922
cmp dword [ebp - 0x20c], esi
jae 0x42f887
mov eax, dword [ebp - 0x218]
mov edx, dword [ebp - 0x214]
mov ecx, dword [ebp - 4]
add eax, esi
pop edi
adc edx, 0
pop esi
xor ecx, ebp
pop ebx
call fcn.00450b32
leave
ret 4
Function at 0x43139c
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
mov eax, dword [0x49f2a0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
push 0x40
lea eax, [ebp - 0x53]
push ebx
push eax
mov byte [ebp - 0x54], bl
call fcn.00450230
add esp, 0xc
push ebx
push ebx
lea eax, [ebp - 0x5c]
push eax
lea eax, [ebp - 0x58]
push eax
push ebx
push 0x41
lea eax, [ebp - 0x54]
push eax
push esi
call fcn.0044395f
push eax
call dword [sym.imp.___total_physical_size__lu_MB_GetVolumeInformationA]
test eax, eax
je 0x431415
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp - 0x10]
push str.V_.10s
push eax
call fcn.00450c76
add esp, 0xc
push 1
call dword [sym.imp.___total_physical_size__lu_MB_SetErrorMode]
lea eax, [ebp - 0x10]
push eax
push esi
call fcn.0044395f
push eax
call dword [sym.imp.___total_physical_size__lu_MB_SetVolumeLabelA]
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.00450b32
leave
ret 4
Function at 0x436d7c
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x49f2a0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push 4
push esi
push 0x46a5b4
call fcn.00452f2d
add esp, 0xc
test eax, eax
jne 0x436daa
add esi, 4
push 0x104
lea eax, [ebp - 0x108]
push eax
push esi
call dword [sym.imp.___total_physical_size__lu_MB_QueryDosDeviceA]
pop esi
test eax, eax
je 0x436df8
lea eax, [ebp - 0x108]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x436dcb
sub eax, edx
cmp eax, 0xe
jbe 0x436ddc
push 0xe
pop eax
push eax
lea eax, [ebp - 0x108]
push str.DeviceFloppy
push eax
call fcn.00450f08
add esp, 0xc
test eax, eax
jne 0x436df8
inc eax
jmp 0x436dfa
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00450b32
leave
ret 4

Function at 0x437319
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x49f2a0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
xor esi, esi
push edi
or edi, 0xffffffff
mov dword [ebp - 0x20c], esi
mov dword [ebp - 0x208], esi
xor ebx, ebx
cmp dword [ebp - 0x20c], 0xa
jge 0x4373c3
cmp ebx, dword [ebp + 0xc]
je 0x4373a6
push esi
push esi
push 3
push esi
push 3
push Ordinal_2
push ebx
push str..PhysicalDrive_d
call fcn.0042f614
pop ecx
pop ecx
push eax
call dword [sym.imp.___total_physical_size__lu_MB_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x43737f
inc dword [ebp - 0x20c]
jmp 0x4373a6
push esi
lea eax, [ebp - 0x210]
push eax
push 0x200
lea eax, [ebp - 0x204]
push eax
push edi
call dword [sym.imp.___total_physical_size__lu_MB_ReadFile]
test eax, eax
je 0x4373b1
mov eax, dword [ebp + 8]
cmp eax, dword [ebp - 0x4c]
je 0x4373b9
inc ebx
cmp ebx, 0xff
jl 0x437342
jmp 0x4373c3
mov dword [ebp - 0x208], esi
jmp 0x4373c3
mov dword [ebp - 0x208], 1
push edi
call dword [sym.imp.___total_physical_size__lu_MB_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x208]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00450b32
leave
ret 8
Function at 0x43798f
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x49f2a0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
xor ebx, ebx
xor eax, eax
mov byte [ebp - 0x204], bl
lea edi, [ebp - 0x203]
push 0x1fd
stosw word es:[edi], ax
lea eax, [ebp - 0x201]
push ebx
push eax
mov dword [ebp - 0x210], ebx
call fcn.00450230
add esp, 0xc
cmp esi, ebx
jne 0x4379e0
xor eax, eax
jmp 0x437b19
push ebx
push ebx
push 3
push ebx
push 3
push 0xc0000000
push esi
call dword [sym.imp.___total_physical_size__lu_MB_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x437a1b
push esi
push str.CreateFile__s
call dword [sym.imp.___total_physical_size__lu_MB_GetLastError]
push eax
push 0x4d9
push str.PARTINFO
call fcn.0044dc85
add esp, 0x14
jmp 0x4379d9
mov esi, dword [sym.imp.___total_physical_size__lu_MB_SetFilePointer]
push ebx
lea eax, [ebp - 0x208]
push eax
push ebx
push edi
mov dword [ebp - 0x20c], ebx
mov dword [ebp - 0x208], ebx
call esi
cmp eax, dword [ebp - 0x20c]
je 0x437a57
push str.seeking_to_sektor_0
call dword [sym.imp.___total_physical_size__lu_MB_GetLastError]
push eax
push 0x4e2
jmp 0x437af3
push ebx
lea eax, [ebp - 0x214]
push eax
push 0x200
lea eax, [ebp - 0x204]
push eax
push edi
call dword [sym.imp.___total_physical_size__lu_MB_ReadFile]
test eax, eax
jne 0x437a89
push str.reading_512_bytes_at_sector_0
call dword [sym.imp.___total_physical_size__lu_MB_GetLastError]
push eax
push 0x4e8
jmp 0x437af3
cmp dword [ebp - 0x1e8], ebx
je 0x437b02
push ebx
lea eax, [ebp - 0x208]
push eax
push dword [ebp - 0x20c]
mov dword [ebp - 0x1e8], ebx
push edi
call esi
cmp eax, dword [ebp - 0x20c]
je 0x437ac3
push str.seeking_to_sektor_0
call dword [sym.imp.___total_physical_size__lu_MB_GetLastError]
push eax
push 0x4f1
jmp 0x437af3
push ebx
lea eax, [ebp - 0x214]
push eax
push 0x200
lea eax, [ebp - 0x204]
push eax
push edi
call dword [sym.imp.___total_physical_size__lu_MB_WriteFile]
test eax, eax
jne 0x437b02
push str.writing_512_bytes_at_sector_0
call dword [sym.imp.___total_physical_size__lu_MB_GetLastError]
push eax
push 0x4f6
push str.PARTINFO
call fcn.0044dc85
add esp, 0x10
jmp 0x437b0c
mov dword [ebp - 0x210], 1
push edi
call dword [sym.imp.___total_physical_size__lu_MB_CloseHandle]
mov eax, dword [ebp - 0x210]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00450b32
leave
ret 4
Function at 0x438bbf
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [ebp + 0x14]
push ebx
mov ebx, dword [ebp + 0x18]
xor ecx, ecx
shld ecx, eax, 9
push esi
push edi
mov edi, dword [ebp + 0x10]
shl eax, 9
mov dword [ebp - 8], eax
mov dword [ebp - 4], ecx
test edi, 0xfff
je 0x438c17
push 4
mov esi, ebx
push 0x1000
shl esi, 9
push esi
push 0
call dword [sym.imp.___total_physical_size__lu_MB_VirtualAlloc]
cmp dword [ebp + 0xc], 0x4300
mov edi, eax
jne 0x438c14
push esi
push dword [ebp + 0x10]
push edi
call fcn.00451390
add esp, 0xc
mov eax, dword [ebp - 8]
mov esi, dword [ebp + 8]
push 0
lea ecx, [ebp - 4]
push ecx
push eax
push dword [esi]
call dword [sym.imp.___total_physical_size__lu_MB_SetFilePointer]
cmp eax, dword [ebp - 8]
je 0x438c56
push dword [esi + 0x20]
push dword [ebp + 0x14]
push str.seeking_to_sektor__u___s_
call dword [sym.imp.___total_physical_size__lu_MB_GetLastError]
push eax
push 0x6f
push str.physdisk
call fcn.0044dc85
add esp, 0x18
xor eax, eax
jmp 0x438cea
cmp dword [ebp + 0xc], 0x4300
jne 0x438c8c
push 0
lea eax, [ebp + 0x18]
push eax
shl ebx, 9
push ebx
push edi
push dword [esi]
call dword [sym.imp.___total_physical_size__lu_MB_WriteFile]
test eax, eax
jne 0x438cd4
push dword [esi + 0x20]
push dword [ebp + 0x14]
push str.writing_512_bytes_at_sector__lu___s_
call dword [sym.imp.___total_physical_size__lu_MB_GetLastError]
push eax
push 0x77
jmp 0x438c42
cmp dword [ebp + 0xc], 0x4200
jne 0x438cd4
push 0
lea eax, [ebp + 0x18]
push eax
shl ebx, 9
push ebx
push edi
push dword [esi]
call dword [sym.imp.___total_physical_size__lu_MB_ReadFile]
test eax, eax
jne 0x438cc2
push dword [esi + 0x20]
push dword [ebp + 0x14]
push str.reading_512_bytes_at_sector__lu___s_
call dword [sym.imp.___total_physical_size__lu_MB_GetLastError]
push eax
push 0x7f
jmp 0x438c42
cmp dword [ebp + 0x10], edi
je 0x438ce7
push ebx
push edi
push dword [ebp + 0x10]
call fcn.00451390
add esp, 0xc
cmp dword [ebp + 0x10], edi
je 0x438ce7
push 0x8000
push 0
push edi
call dword [sym.imp.___total_physical_size__lu_MB_VirtualFree]
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret 0x14

Function at 0x438da4
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
and dword [ebp - 4], 0
push ebx
push esi
push edi
call dword [sym.imp.e_to_open__s_GetCursor]
push 0x7f02
push 0
mov dword [ebp - 8], eax
call dword [sym.imp.e_to_open__s_LoadCursorA]
mov edi, dword [sym.imp.e_to_open__s_SetCursor]
push eax
call edi
mov esi, dword [sym.imp.___total_physical_size__lu_MB_GetLogicalDrives]
call esi
mov ebx, eax
jmp 0x438df1
inc dword [ebp - 4]
cmp dword [ebp - 4], 0x14
jae 0x438df7
push 0x1f4
mov ebx, eax
call dword [sym.imp.___total_physical_size__lu_MB_Sleep]
call esi
cmp ebx, eax
je 0x438ddb
push dword [ebp - 8]
call edi
call esi
xor ecx, ecx
cmp ebx, eax
setne cl
pop edi
pop esi
pop ebx
mov eax, ecx
leave
ret