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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x310
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 8]
lea eax, [ebp - 0x108]
push 0x104
push 0x104
push eax
call fcn.0040d2c2
add esp, 0x14
xor eax, eax
mov cl, byte [ebp + eax - 0x108]
test cl, cl
je 0x404b5d
cmp cl, 0x7f
ja 0x404b86
inc eax
cmp eax, 0x104
jl 0x404b45
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x404bd3
test al, 0x10
je 0x404bd3
mov eax, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040b2c4
mov esp, ebp
pop ebp
ret
push 0
lea eax, [ebp - 0x310]
push eax
push 0xffffffffffffffff
lea eax, [ebp - 0x108]
push eax
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
inc eax
push eax
lea eax, [ebp - 0x310]
push eax
push 0xffffffffffffffff
lea eax, [ebp - 0x108]
push eax
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
lea eax, [ebp - 0x310]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
jmp 0x404b6a
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
call fcn.0040b2c4
mov esp, ebp
pop ebp
ret

Function at 0x404bf0
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x31c
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push edi
lea eax, [ebp + 0xc]
xor edi, edi
push eax
push dword [ebp + 8]
lea eax, [ebp - 0x114]
push 0x104
push 0x104
push eax
call fcn.0040d2c2
add esp, 0x14
xor eax, eax
lea esp, [esp]
mov cl, byte [ebp + eax - 0x114]
test cl, cl
je 0x404c48
cmp cl, 0x7f
ja 0x404c83
inc eax
cmp eax, 0x104
jl 0x404c30
xor ebx, ebx
lea eax, [ebp - 0x114]
push ebx
push ebx
push 3
push ebx
push 1
push 8
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
je 0x404cf7
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
je 0x404ce0
lea eax, [ebp - 0x31c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
jmp 0x404ced
push 0
lea eax, [ebp - 0x31c]
mov ebx, 1
push eax
push 0xffffffffffffffff
lea eax, [ebp - 0x114]
push eax
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
inc eax
push eax
lea eax, [ebp - 0x31c]
push eax
push 0xffffffffffffffff
lea eax, [ebp - 0x114]
push eax
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push 0
push 0
push 3
push 0
push ebx
push 8
lea eax, [ebp - 0x31c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
jmp 0x404c60
lea eax, [ebp - 0x114]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
test al, 0x10
mov eax, 1
cmove edi, eax
mov eax, str.NOT_exist
test edi, edi
mov ecx, str.exist
cmove ecx, eax
lea eax, [ebp - 0x114]
push ecx
push eax
push str.File___s___s
call fcn.004044f0
mov ecx, dword [ebp - 8]
add esp, 0xc
mov eax, edi
xor ecx, ebp
pop edi
pop ebx
call fcn.0040b2c4
mov esp, ebp
pop ebp
ret
Function at 0x404d30
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2bc
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
movsx ebx, cl
push ebx
push str.GetPhyDiskUUID__C
mov dword [ebp - 0x2b4], edx
mov dword [ebp - 0x2b8], eax
mov dword [ebp - 0x2bc], ebx
call fcn.004044f0
push ebx
push str.._C:
lea eax, [ebp - 0x88]
push 0x80
push eax
call fcn.0040b3ad
add esp, 0x18
lea eax, [ebp - 0x88]
push 0
push 0
push 3
push 0
push 3
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x404dc9
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x88]
push eax
push str.Could_not_open_the_disk__s___error:_u
call fcn.004044f0
add esp, 0xc
jmp 0x404f30
push 0
lea eax, [ebp - 0x28c]
push eax
push 0x20
lea eax, [ebp - 0x2b0]
push eax
push 0
push 0
push 0x560000
push esi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x404f15
cmp dword [ebp - 0x2b0], 0
je 0x404f15
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call ebx
movdqu xmm1, xmmword [ebp - 0x2a8]
mov eax, dword [ebp - 0x2b8]
movq xmm0, qword [ebp - 0x298]
movdqu xmmword [eax], xmm1
movq qword [eax + 0x10], xmm0
movdqa xmm0, xmm1
psrldq xmm0, 0xc
movd eax, xmm0
movdqa xmm0, xmm1
psrldq xmm0, 8
push eax
movd eax, xmm0
push eax
movd eax, xmm1
push eax
push dword [ebp - 0x2bc]
push str._C:_is_in_PhysicalDrive_d_Offset:_llu
call fcn.004044f0
add esp, 0x14
lea eax, [ebp - 0x88]
push dword [ebp - 0x2a8]
push str..PhysicalDrive_d
push 0x80
push eax
call fcn.0040b3ad
add esp, 0x10
lea eax, [ebp - 0x88]
push 0
push 0
push 3
push 0
push 3
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x404da9
push 0
lea eax, [ebp - 0x28c]
push eax
push 0x200
lea eax, [ebp - 0x288]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x404ee1
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push dword [ebp - 0x28c]
push str.ReadFile_failed__dwSize:_u__error:_u
call fcn.004044f0
add esp, 0xc
push esi
call ebx
jmp 0x404f30
mov eax, dword [ebp - 0x2b4]
movdqu xmm0, xmmword [ebp - 0x108]
movdqu xmmword [eax], xmm0
test edi, edi
je 0x404eff
mov eax, dword [ebp - 0xd0]
mov dword [edi], eax
push esi
call ebx
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040b2c4
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.DeviceIoControl_IOCTL_VOLUME_GET_VOLUME_DISK_EXTENTS_failed__error:_u
call fcn.004044f0
add esp, 8
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040b2c4
mov esp, ebp
pop ebp
ret
Function at 0x4054b0
Capabilities:
Get disk information

Disassembly:
push ebx
push esi
push edi
mov edi, ecx
mov bl, 0x59
mov esi, 0x1000000
call fcn.004053d0
test eax, eax
je 0x4054d8
push str.Use_M:_for_2K10_PE
call fcn.004044f0
add esp, 4
mov al, 0x4d
pop edi
pop esi
pop ebx
ret
mov eax, str.VTLRI
lea ecx, [ecx]
mov cl, byte [edi]
cmp cl, byte [eax]
jne 0x405500
test cl, cl
je 0x4054fc
mov cl, byte [edi + 1]
cmp cl, byte [eax + 1]
jne 0x405500
add edi, 2
add eax, 2
test cl, cl
jne 0x4054e0
xor eax, eax
jmp 0x405505
sbb eax, eax
or eax, 1
test eax, eax
jne 0x40550f
mov al, 0x5a
pop edi
pop esi
pop ebx
ret
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov edi, eax
push edi
push str.Drives0x_x
call fcn.004044f0
add esp, 8
test esi, edi
je 0x40552f
dec bl
shr esi, 1
jne 0x405525
pop edi
pop esi
mov al, bl
pop ebx
ret

Function at 0x405540
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0
push 0
mov edi, ecx
push 0
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea eax, [ebp - 8]
push eax
push 0x200
lea eax, [ebp - 0x208]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
call ebx
push eax
push dword [ebp - 8]
push esi
push str.Read_MBR_Ret:_u_Size:_u_code:_u
call fcn.004044f0
add esp, 0x10
cmp byte [ebp - 0x46], 0xee
jne 0x405633
push str.GPT_partition_style
call fcn.004044f0
add esp, 4
push 0x4400
call fcn.0040b401
mov esi, eax
add esp, 4
test esi, esi
je 0x40561e
push 0
push 0
push 0
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea eax, [ebp - 8]
push eax
push 0x4400
push esi
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov edi, eax
test edi, edi
je 0x40560a
cmp dword [ebp - 8], 0x4400
jne 0x40560a
mov edi, dword [esi + 0x4a0]
mov ebx, dword [esi + 0x4a4]
push esi
call fcn.0040b3c9
add esp, 4
jmp 0x405645
call ebx
push eax
push dword [ebp - 8]
push edi
push str.Failed_to_read_gpt_info__d__u__d
call fcn.004044f0
add esp, 0x10
xor eax, eax
xor edx, edx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040b2c4
mov esp, ebp
pop ebp
ret
push str.MBR_partition_style
call fcn.004044f0
mov edi, dword [ebp - 0x32]
add esp, 4
xor ebx, ebx
push ebx
push edi
push str.GetVentoyEfiPart_StartSector:__llu
call fcn.004044f0
mov ecx, dword [ebp - 4]
add esp, 0xc
mov eax, edi
mov edx, ebx
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.0040b2c4
mov esp, ebp
pop ebp
ret
Function at 0x405670
Capabilities:
Get common file path
Get disk size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x124
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push str.X:WindowsSystem32imdisk.exe
mov edi, edx
mov esi, ecx
mov ebx, 1
call fcn.00404bf0
add esp, 4
test eax, eax
je 0x4056d3
push str.imdisk.exe_already_exist__no_need_to_copy...
call fcn.004044f0
add esp, 4
push str.imdisk.exe
push 0x104
push edi
call fcn.0040b358
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040b2c4
mov esp, ebp
pop ebp
ret
push str.X:WindowsSystem32_ventoyimdisk.exe
call fcn.00404bf0
add esp, 4
test eax, eax
je 0x4056f8
push str.imdisk.exe_already_copied__no_need_to_copy...
call fcn.004044f0
add esp, 4
push str.ventoyimdisk.exe
jmp 0x4056b2
push esi
push str..PhysicalDrive_d
lea eax, [ebp - 0x110]
push 0x104
push eax
call fcn.0040b3ad
add esp, 0x10
lea eax, [ebp - 0x110]
push 0
push 0
push 3
push 0
push 3
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x405763
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x110]
push eax
push str.Could_not_open_the_disk__s___error:_u
call fcn.004044f0
add esp, 0xc
mov eax, ebx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040b2c4
mov esp, ebp
pop ebp
ret
push 0
lea eax, [ebp - 0x114]
push eax
push 8
lea eax, [ebp - 0x120]
push eax
push 0
push 0
push 0x7405c
push esi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x4057a9
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x110]
push eax
push str.Could_not_get_phy_disk__s_size__error:_u
call fcn.004044f0
add esp, 0xc
jmp 0x40585d
mov ecx, esi
mov dword [0x4262bc], esi
call fcn.00405540
push str.Parse_FAT_fs...
mov dword [0x4262e0], eax
mov dword [0x4262e4], edx
call fcn.004044f0
add esp, 4
call fcn.004020f0
call fcn.004021a0
test eax, eax
jne 0x405858
mov edx, str.ventoyimdisk.sys
mov ecx, str._ventoy_imdisk_32_imdisk.sys
call fcn.004051e0
mov edx, str.ventoyimdisk.exe
mov ecx, str._ventoy_imdisk_32_imdisk.exe
call fcn.004051e0
mov edx, str.ventoyimdisk.cpl
mov ecx, str._ventoy_imdisk_32_imdisk.cpl
call fcn.004051e0
lea eax, [ebp - 0x110]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
push str._ventoyimdisk.sys
lea eax, [ebp - 0x110]
push 0x104
push eax
call fcn.0040c56c
add esp, 0xc
lea ecx, [ebp - 0x110]
call fcn.00404630
test eax, eax
jne 0x405858
push str.ventoyimdisk.exe
push 0x104
push edi
call fcn.0040b358
add esp, 0xc
xor ebx, ebx
call fcn.00402200
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040b2c4
mov esp, ebp
pop ebp
ret
Function at 0x405880
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x664
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
mov eax, edx
push esi
push edi
mov edi, dword [ebp + 0xc]
mov esi, ecx
push edi
push ebx
push eax
push esi
push str.VentoyRunImdisk___s____s____s____s_
mov dword [ebp - 0x664], eax
call fcn.004044f0
add esp, 0x14
mov ecx, esi
call fcn.004054b0
movsx esi, al
lea eax, [ebp - 0x208]
push esi
push dword [ebp - 0x664]
push edi
push ebx
push str._s__a__o__s__f___s___m__C:
push 0x200
push eax
call fcn.0040b3ad
add esp, 0x1c
lea eax, [ebp - 0x208]
push eax
push esi
push str.mount_iso_to__C:_use_imdisk_cmd___s_
call fcn.004044f0
mov edx, dword [ebp - 0x664]
add esp, 0xc
xor eax, eax
mov cl, byte [edx + eax]
test cl, cl
je 0x405918
cmp cl, 0x7f
ja 0x4059a6
inc eax
cmp eax, 0x104
jl 0x405900
lea eax, [ebp - 0x650]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
or dword [ebp - 0x624], 1
xor eax, eax
mov word [ebp - 0x620], ax
lea eax, [ebp - 0x660]
push eax
lea eax, [ebp - 0x650]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x208]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
push str.This_is_ANSI_encoding
call fcn.004044f0
add esp, 4
push str.Wait_for_imdisk_process_...
call fcn.004044f0
add esp, 4
push 0xffffffffffffffff
push dword [ebp - 0x660]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push str.imdisk_process_finished
call fcn.004044f0
mov ecx, dword [ebp - 4]
add esp, 4
xor ecx, ebp
xor eax, eax
pop edi
pop esi
pop ebx
call fcn.0040b2c4
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x650]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
or dword [ebp - 0x624], 1
xor eax, eax
mov esi, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push eax
mov word [ebp - 0x620], ax
lea eax, [ebp - 0x608]
push eax
push 0xffffffffffffffff
lea eax, [ebp - 0x208]
push eax
push 0
push 0xfde9
call esi
inc eax
push eax
lea eax, [ebp - 0x608]
push eax
push 0xffffffffffffffff
lea eax, [ebp - 0x208]
push eax
push 0
push 0xfde9
call esi
lea eax, [ebp - 0x660]
push eax
lea eax, [ebp - 0x650]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x608]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
push str.This_is_UTF8_encoding
jmp 0x405963
Function at 0x405f30
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xbc
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push ecx
push str.DeleteVentoyPart2MountPoint_Phy_u_...
mov dword [ebp - 0xbc], ecx
mov byte [ebp - 0xb5], 0x41
mov dword [ebp - 0x8c], 0x5c3a3f
call fcn.004044f0
add esp, 8
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov ebx, eax
test ebx, ebx
je 0x4060cd
mov al, byte [ebp - 0xb5]
test bl, 1
je 0x4060bd
movsx edi, al
push edi
push str._C:_ventoy_ventoy.cpio
call fcn.00404bf0
add esp, 8
test eax, eax
je 0x4060b7
push edi
push str.File__C:_ventoy_ventoy.cpio_exist
call fcn.004044f0
push edi
push str.._C:
lea eax, [ebp - 0x88]
push 0x80
push eax
call fcn.0040b3ad
add esp, 0x18
lea eax, [ebp - 0x88]
push 0
push 0
push 3
push 0
push 3
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x40600b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x88]
push eax
push str.Could_not_open_the_disk__s___error:_u
call fcn.004044f0
add esp, 0xc
jmp 0x40609d
push 0
lea eax, [ebp - 0xb4]
push eax
push 0x20
lea eax, [ebp - 0xb0]
push eax
push 0
push 0
push 0x560000
push esi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x40607b
cmp dword [ebp - 0xb0], 0
je 0x40607b
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x94]
lea eax, [ebp - 0x88]
push dword [ebp - 0x98]
push dword [ebp - 0x9c]
push dword [ebp - 0xa0]
push dword [ebp - 0xa8]
push eax
push str.LogicalDrive:_s_PhyDrive:_d_Offset:_llu_ExtentLength:_llu
call fcn.004044f0
mov esi, dword [ebp - 0xa8]
add esp, 0x1c
jmp 0x4060a0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x88]
push eax
push str.DeviceIoControl_IOCTL_VOLUME_GET_VOLUME_DISK_EXTENTS_failed__s__error:_u
call fcn.004044f0
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or esi, 0xffffffff
push edi
push esi
push str.PhyDisk_u_for__C
call fcn.004044f0
add esp, 0xc
cmp esi, dword [ebp - 0xbc]
je 0x4060e3
mov al, byte [ebp - 0xb5]
inc al
shr ebx, 1
mov byte [ebp - 0xb5], al
jne 0x405f81
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040b2c4
mov esp, ebp
pop ebp
ret
mov al, byte [ebp - 0xb5]
mov byte [ebp - 0x8c], al
lea eax, [ebp - 0x8c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteVolumeMountPointA]
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040b2c4
mov esp, ebp
pop ebp
ret
Function at 0x406a20
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 0xc]
lea eax, [ebp - 0x14]
push eax
push 1
push 0
push str.SYSTEMCurrentControlSetServicesdiskEnum
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
push esi
push str.SYSTEMCurrentControlSetServicesdiskEnum
push str.RegOpenKeyExA___s__Ret:_ld
call fcn.004044f0
add esp, 0xc
test esi, esi
jne 0x406ac1
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], 4
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
push esi
push str.Count
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 8]
push dword [ebp - 0xc]
push eax
push str.Count
push str.RegQueryValueExA___s__ret:_u__Size:_u_Value:_u
call fcn.004044f0
mov eax, dword [ebp - 8]
add esp, 0x14
mov dword [edi], eax
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040b2c4
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, 1
pop edi
xor ecx, ebp
pop esi
call fcn.0040b2c4
mov esp, ebp
pop ebp
ret
Function at 0x407590
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov ebx, ecx
mov dword [ebp - 0x18], edx
push edi
push ebx
push str.Get_file_version_for___s_
mov dword [ebp - 0x14], ebx
mov esi, 1
mov dword [ebp - 8], 0
mov dword [ebp - 0x10], 0
call fcn.004044f0
add esp, 8
lea eax, [ebp - 0xc]
push eax
push ebx
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeA]
mov ebx, eax
test ebx, ebx
jne 0x407604
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Failed_to_get_file_version_info_size:__u
call fcn.004044f0
add esp, 8
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040b2c4
mov esp, ebp
pop ebp
ret
push ebx
call fcn.0040b401
mov edi, eax
add esp, 4
test edi, edi
jne 0x407634
push ebx
push str.malloc_failed__u
call fcn.004044f0
add esp, 8
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040b2c4
mov esp, ebp
pop ebp
ret
push edi
push ebx
push dword [ebp - 0xc]
push dword [ebp - 0x14]
call dword [sym.imp.VERSION.dll_GetFileVersionInfoA]
test eax, eax
jne 0x407657
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Failed_to_get_file_version_info_:__u
jmp 0x4076da
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
push 0x4205e8
push edi
call dword [sym.imp.VERSION.dll_VerQueryValueA]
test eax, eax
je 0x4076ce
cmp dword [ebp - 8], 0
je 0x4076ce
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
cmp ecx, 0xfeef04bd
jne 0x4076c6
movzx esi, word [eax + 0xa]
movzx ecx, word [eax + 8]
movzx ebx, word [eax + 0xe]
movzx eax, word [eax + 0xc]
push eax
push ebx
push ecx
push esi
push str.FileVersionze:___u__u__u__u_
call fcn.004044f0
add esp, 0x14
cmp esi, 0xa
jne 0x4076b8
mov ecx, 0x4e20
mov eax, 0xb
cmp bx, cx
cmova esi, eax
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x4076c2
mov word [eax], si
xor esi, esi
jmp 0x4076e2
push ecx
push str.Invalid_verinfo_signature_0x_x
jmp 0x4076da
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.VerQueryValueA_failed__u
call fcn.004044f0
add esp, 8
push edi
call fcn.0040b3c9
mov ecx, dword [ebp - 4]
add esp, 4
mov eax, esi
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.0040b2c4
mov esp, ebp
pop ebp
ret
Function at 0x407a90
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x294
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push ecx
push str..PhysicalDrive_d
lea eax, [ebp - 0x90]
mov dword [ebp - 0x294], 0
push 0x80
push eax
mov dword [ebp - 0xc], 0x47005456
mov dword [ebp - 8], 0x44480065
call fcn.0040b3ad
add esp, 0x10
lea eax, [ebp - 0x90]
push 0
push 0
push 3
push 0
push 3
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x407b25
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x90]
push eax
push str.Could_not_open_the_disk__s___error:_u
call fcn.004044f0
add esp, 0xc
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040b2c4
mov esp, ebp
pop ebp
ret
push 0
lea eax, [ebp - 0x294]
push eax
push 0x200
lea eax, [ebp - 0x290]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x407b77
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push dword [ebp - 0x294]
push str.ReadFile_failed__dwSize:_u__error:_u
call fcn.004044f0
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040b2c4
mov esp, ebp
pop ebp
ret
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x100]
mov eax, dword [ecx]
lea edx, [ebp - 0xc]
cmp eax, dword [edx]
jne 0x407b14
mov eax, dword [ecx + 4]
cmp eax, dword [edx + 4]
jne 0x407b14
mov ecx, dword [ebp - 4]
mov eax, 1
xor ecx, ebp
pop esi
call fcn.0040b2c4
mov esp, ebp
pop ebp
ret
Function at 0x407bb0
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov ebx, edx
mov edi, ecx
xor eax, eax
lea esp, [esp]
mov dl, byte [eax + edi]
test dl, dl
je 0x407be4
cmp dl, 0x7f
ja 0x407c46
inc eax
cmp eax, 0x104
jl 0x407bd0
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x407be7
sub ecx, edx
cmp ecx, 4
jle 0x407c33
lea esi, [edi - 4]
add esi, ecx
push str..iso
push esi
call fcn.0040b5b0
add esp, 8
test eax, eax
jne 0x407c33
push edi
push str._s.VTLRI
push 0x104
push ebx
mov byte [esi], al
call fcn.0040b3ad
push ebx
mov byte [esi], 0x2e
call fcn.00404bf0
add esp, 0x14
test eax, eax
jne 0x407d31
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040b2c4
mov esp, ebp
pop ebp
ret
mov esi, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
lea eax, [ebp - 0x20c]
push 0
push eax
push 0xffffffffffffffff
push edi
push 0
push 0xfde9
call esi
inc eax
push eax
lea eax, [ebp - 0x20c]
push eax
push 0xffffffffffffffff
push edi
push 0
push 0xfde9
call esi
lea esi, [ebp - 0x20c]
lea ecx, [esi + 2]
nop
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x407c80
sub esi, ecx
sar esi, 1
cmp esi, 4
jle 0x407c33
lea eax, [ebp + esi*2 - 0x214]
push 0x420928
push eax
call fcn.0040b68c
add esp, 8
test eax, eax
jne 0x407c33
mov eax, 0x49
mov dword [ebp + esi*2 - 0x212], 0x540056
mov dword [ebp + esi*2 - 0x20e], 0x52004c
mov word [ebp + esi*2 - 0x20a], ax
lea esi, [esi*2 + 4]
cmp esi, 0x208
jae 0x407d47
xor eax, eax
push eax
push eax
push 3
push eax
push 1
mov word [ebp + esi - 0x20c], ax
lea eax, [ebp - 0x20c]
push 8
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
je 0x407c33
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 0x10
jne 0x407c33
mov edx, ebx
lea ecx, [ebp - 0x20c]
call fcn.00404ab0
mov ecx, dword [ebp - 4]
mov eax, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040b2c4
mov esp, ebp
pop ebp
ret
call fcn.0040bef5
int3