joyce8/EMBER2024-capa huggingface dataset:
Function at 0x406a10
Capabilities:
Enumerate disk volumes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14c
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x103
lea eax, [ebp - 0x10f]
mov dword [ebp - 0x13c], edx
mov esi, ecx
mov byte [ebp - 0x110], 0
push 0
push eax
mov dword [ebp - 0x140], esi
call fcn.004198c0
mov ecx, dword [ebp + 8]
add esp, 0xc
mov eax, dword [ebp + 0xc]
mov edx, ecx
mov ebx, eax
shld ebx, edx, 9
push ebx
shl edx, 9
push edx
push eax
push ecx
push esi
push str.GetVentoyVolumeName_PhyDrive__d_SectorStart:_llu_PartOffset:_llu
mov dword [ebp - 0x138], ebx
mov dword [ebp - 0x144], edx
call fcn.0040c4e0
add esp, 0x18
lea eax, [ebp - 0x110]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstVolumeA]
mov dword [ebp - 0x134], eax
cmp eax, 0xffffffff
jne 0x406ab3
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004136c0
mov esp, ebp
pop ebp
ret
lea esi, [ebp - 0x110]
lea ecx, [esi + 1]
lea esp, [esp]
mov al, byte [esi]
inc esi
test al, al
jne 0x406ac0
lea eax, [ebp - 0x110]
sub esi, ecx
push eax
push str.Find_volume:_s
call fcn.0040c4e0
lea eax, [esi - 1]
add esp, 8
cmp eax, 0x104
jae 0x406c63
push 0
push 0x80
push 3
push 0
push 3
mov byte [ebp + eax - 0x110], 0
lea eax, [ebp - 0x110]
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x406bcc
push 0
lea eax, [ebp - 0x148]
push eax
push 0x20
lea eax, [ebp - 0x130]
push eax
push 0
push 0
push 0x560000
push ebx
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push edi
push str.IOCTL_VOLUME_GET_VOLUME_DISK_EXTENTS_bRet:_u_code:_u
call fcn.0040c4e0
add esp, 0xc
push dword [ebp - 0x128]
push dword [ebp - 0x130]
push str.NumberOfDiskExtents:_u_DiskNumber:_u
call fcn.0040c4e0
add esp, 0xc
test edi, edi
je 0x406bc5
cmp dword [ebp - 0x130], 1
jne 0x406bc5
push dword [ebp - 0x11c]
push dword [ebp - 0x120]
push dword [ebp - 0x128]
push str.This_volume_DiskNumber:_u_offset:_llu
call fcn.0040c4e0
mov eax, dword [ebp - 0x140]
add esp, 0x10
cmp dword [ebp - 0x128], eax
jne 0x406bc5
mov eax, dword [ebp - 0x144]
cmp dword [ebp - 0x120], eax
jne 0x406bc5
mov eax, dword [ebp - 0x138]
cmp dword [ebp - 0x11c], eax
je 0x406c1e
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x104
lea eax, [ebp - 0x110]
push eax
push dword [ebp - 0x134]
call dword [sym.imp.KERNEL32.dll_FindNextVolumeA]
test eax, eax
jne 0x406ab3
mov esi, 0x490
push dword [ebp - 0x134]
call dword [sym.imp.KERNEL32.dll_FindVolumeClose]
push esi
push str.GetVentoyVolumeName_return__u
call fcn.0040c4e0
mov ecx, dword [ebp - 4]
add esp, 8
mov eax, esi
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.004136c0
mov esp, ebp
pop ebp
ret
push str.This_volume_match
call fcn.0040c4e0
add esp, 4
cmp dword [ebp + 0x14], 0
jne 0x406c39
mov byte [ebp + esi - 0x111], 0x5c
lea eax, [ebp - 0x110]
push eax
push 0x4290b0
push 0x104
push dword [ebp - 0x13c]
call fcn.004136cf
add esp, 0x10
xor esi, esi
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x406bf1
call fcn.00413daa
int3
Function at 0x406c70
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc0
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsA]
xor ebx, ebx
push edi
push ebx
push ebx
mov dword [ebp - 0xb4], edx
mov dword [ebp - 0xb8], ecx
call esi
mov edi, eax
lea ecx, [edi + 1]
push ecx
call fcn.00413be0
add esp, 4
mov dword [ebp - 0xb0], eax
test eax, eax
jne 0x406cca
lea eax, [ebx + 1]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.004136c0
mov esp, ebp
pop ebp
ret
push eax
push edi
call esi
mov eax, dword [ebp - 0xb0]
mov esi, eax
cmp byte [eax], bl
je 0x406e2a
mov edi, edi
cmp ebx, 0x104
jge 0x406e09
movsx eax, byte [esi]
push eax
push str.._C:
lea eax, [ebp - 0x8c]
push 0x80
push eax
call fcn.004136cf
add esp, 0x10
lea eax, [ebp - 0x8c]
push 0
push 0
push 3
push 0
push 3
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x406d4c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x8c]
push eax
push str.Could_not_open_the_disk__s___error:_u
call fcn.0040c4e0
add esp, 0xc
jmp 0x406dde
push 0
lea eax, [ebp - 0xbc]
push eax
push 0x20
lea eax, [ebp - 0xac]
push eax
push 0
push 0
push 0x560000
push edi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x406dbc
cmp dword [ebp - 0xac], 0
je 0x406dbc
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x90]
lea eax, [ebp - 0x8c]
push dword [ebp - 0x94]
push dword [ebp - 0x98]
push dword [ebp - 0x9c]
push dword [ebp - 0xa4]
push eax
push str.LogicalDrive:_s_PhyDrive:_d_Offset:_llu_ExtentLength:_llu
call fcn.0040c4e0
mov eax, dword [ebp - 0xa4]
add esp, 0x1c
jmp 0x406de1
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x8c]
push eax
push str.DeviceIoControl_IOCTL_VOLUME_GET_VOLUME_DISK_EXTENTS_failed__s__error:_u
call fcn.0040c4e0
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or eax, 0xffffffff
mov ecx, dword [ebp - 0xb8]
cmp ecx, eax
jne 0x406e09
movsx eax, byte [esi]
push ecx
push eax
push str._C:_is_belong_to_phydrive_d
call fcn.0040c4e0
mov ecx, dword [ebp - 0xb4]
add esp, 0xc
mov al, byte [esi]
mov byte [ecx + ebx], al
inc ebx
mov eax, esi
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x406e10
sub eax, edx
inc esi
add esi, eax
cmp byte [esi], cl
jne 0x406ce0
mov eax, dword [ebp - 0xb0]
push eax
call fcn.00413ba8
mov ecx, dword [ebp - 8]
add esp, 4
xor ecx, ebp
xor eax, eax
pop edi
pop esi
pop ebx
call fcn.004136c0
mov esp, ebp
pop ebp
ret
Function at 0x408570
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push esi
push edi
push str.WriteGrubStage1ToPhyDrive_...
mov dword [ebp - 0x14], edx
mov edi, ecx
mov dword [ebp - 8], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 4], 0
call fcn.0040c4e0
add esp, 4
push 0x100000
call fcn.00413be0
mov esi, eax
add esp, 4
test esi, esi
je 0x4085e3
lea eax, [ebp - 8]
xor edx, edx
push eax
lea eax, [ebp - 4]
mov ecx, str.bootcore.img.xz
push eax
call fcn.0040c680
add esp, 8
test eax, eax
je 0x4085ee
push str.Failed_to_read_stage1_img
call fcn.0040c4e0
add esp, 4
push esi
call fcn.00413ba8
add esp, 4
mov eax, 1
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp - 8]
lea eax, [ebp - 0x10]
push ecx
push eax
push esi
push 0
push ecx
mov ecx, dword [ebp - 4]
call fcn.00413410
add esp, 0x14
cmp dword [ebp - 0x14], 0
je 0x40863c
push str.Write_GPT_stage1_...
call fcn.0040c4e0
add esp, 4
mov byte [esi + 0x1f4], 0x23
push 0
push 0
push 0x4400
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea eax, [ebp - 0xc]
push eax
push 0xfbc00
jmp 0x408664
push str.Write_MBR_stage1_...
call fcn.0040c4e0
add esp, 4
push 0
push 0
push 0x200
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea eax, [ebp - 0xc]
push eax
push 0xffe00
push esi
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push dword [ebp - 0xc]
push edi
push str.WriteFile_Ret:_u_dwSize:_u_ErrCode:_u
call fcn.0040c4e0
push esi
call fcn.00413ba8
add esp, 0x14
push dword [ebp - 4]
call fcn.00413ba8
add esp, 4
xor eax, eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x40bb90
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x190
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0x103
lea eax, [ebp - 0x10f]
mov byte [ebp - 0x110], 0
push 0
push eax
mov edi, edx
mov esi, ecx
call fcn.004198c0
add esp, 0xc
lea eax, [ebp - 0x190]
push dword [esi + 4]
push str..PhysicalDrive_d
push 0x80
push eax
call fcn.004136cf
add esp, 0x10
lea eax, [ebp - 0x110]
push 0x104
push eax
lea eax, [ebp - 0x18c]
push eax
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceA]
test eax, eax
jne 0x40bc2b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.QueryDosDeviceA_failed_error:_u
call fcn.0040c4e0
push 0x429124
lea eax, [ebp - 0x110]
push 0x104
push eax
call fcn.00413978
add esp, 0x14
jmp 0x40bc3f
lea eax, [ebp - 0x110]
push eax
push str.QueryDosDeviceA_success__s
call fcn.0040c4e0
add esp, 8
xor eax, eax
cmp byte [ebp - 0x110], al
je 0x40bc6f
lea esp, [esp]
cmp eax, 0x104
jge 0x40bc6f
movsx cx, byte [ebp + eax - 0x110]
mov word [edi + eax*2], cx
inc eax
cmp byte [ebp + eax - 0x110], 0
jne 0x40bc50
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
xor ecx, ebp
pop esi
call fcn.004136c0
mov esp, ebp
pop ebp
ret
Function at 0x40c4e0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x420
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 8], eax
push esi
lea eax, [ebp - 0x41c]
mov dword [ebp - 0x420], 0
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx eax, word [ebp - 0x40e]
push eax
movzx eax, word [ebp - 0x410]
push eax
movzx eax, word [ebp - 0x412]
push eax
movzx eax, word [ebp - 0x414]
push eax
movzx eax, word [ebp - 0x416]
push eax
movzx eax, word [ebp - 0x41a]
push eax
movzx eax, word [ebp - 0x41c]
push eax
push str.__4d__02d__02d__02d:_02d:_02d._03d_
lea eax, [ebp - 0x40c]
push 0x400
push eax
call fcn.004136cf
mov esi, eax
mov ecx, 0x400
lea eax, [ebp + 0xc]
sub ecx, esi
push eax
push dword [ebp + 8]
push ecx
push ecx
lea ecx, [ebp - 0x40c]
add ecx, esi
push ecx
call fcn.00415f0d
push 0x42add4
add esi, eax
lea eax, [ebp - 0x420]
push str.log.txt
push eax
call fcn.004147e8
mov eax, dword [ebp - 0x420]
add esp, 0x48
test eax, eax
je 0x40c5d0
push eax
push esi
lea eax, [ebp - 0x40c]
push 1
push eax
call fcn.00413b26
push dword [ebp - 0x420]
push 1
push 1
push 0x42ae08
call fcn.00413b26
push dword [ebp - 0x420]
call fcn.00414899
add esp, 0x24
mov ecx, dword [ebp - 8]
xor ecx, ebp
pop esi
call fcn.004136c0
mov esp, ebp
pop ebp
ret

Function at 0x40c5e0
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0xc]
lea eax, [ebp - 0x108]
push 0x104
push 0x104
push eax
call fcn.00415f0d
add esp, 0x14
lea eax, [ebp - 0x108]
push 0
push 0
push 3
push 0
push 1
push 8
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
je 0x40c64f
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp dword [ebp + 8], 0
je 0x40c65f
test al, 0x10
jne 0x40c663
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004136c0
mov esp, ebp
pop ebp
ret
test al, 0x10
jne 0x40c64f
mov ecx, dword [ebp - 4]
mov eax, 1
xor ecx, ebp
call fcn.004136c0
mov esp, ebp
pop ebp
ret
Function at 0x40c680
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
push edi
mov esi, ecx
mov dword [ebp - 4], 0
push 0x429504
lea eax, [ebp - 4]
mov edi, edx
push esi
push eax
call fcn.004147e8
mov eax, dword [ebp - 4]
add esp, 0xc
test eax, eax
jne 0x40c6c5
push esi
push str.Failed_to_open_file__s
call fcn.0040c4e0
add esp, 8
mov eax, 1
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push 2
push 0
push eax
call fcn.00415472
add esp, 0xc
push dword [ebp - 4]
call fcn.00415314
mov esi, eax
add esp, 4
lea ecx, [esi + edi]
push ecx
call fcn.00413be0
mov edi, eax
add esp, 4
test edi, edi
jne 0x40c705
push dword [ebp - 4]
call fcn.00414899
add esp, 4
lea eax, [edi + 1]
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push 0
push 0
push dword [ebp - 4]
call fcn.00415472
add esp, 0xc
push dword [ebp - 4]
push esi
push 1
push edi
call fcn.00414ed8
push dword [ebp - 4]
call fcn.00414899
mov eax, dword [ebp + 8]
add esp, 0x14
mov dword [eax], edi
mov eax, dword [ebp + 0xc]
pop edi
mov dword [eax], esi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x40cbc0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x124
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
mov ax, word [0x42b204]
movq xmm0, qword [str.SOFTWARE_]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
push 0x103
mov word [ebp - 8], ax
lea eax, [ebp - 0x113]
push 0
push eax
movq qword [ebp - 0x10], xmm0
mov byte [ebp - 0x114], 0
call fcn.004198c0
add esp, 0xc
mov dword [ebp - 0x120], 0xffffffff
xor edi, edi
mov dword [ebp - 0x124], 4
mov dword [ebp - 0x11c], edi
mov esi, 0x30
mov dword [ebp - 0x118], edi
mov dword [ebx], edi
cmp byte [esi + str.SoftwareMicrosoftWindows_NTCurrentVersionUBR], 0x5c
je 0x40cc73
dec esi
jne 0x40cc36
lea eax, [ebp - 0x11c]
push eax
push 0x2001d
push 0
push str.SOFTWARE
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x40cd47
mov dword [ebp - 0x11c], edi
jmp 0x40cd9b
test esi, esi
je 0x40cc42
push 9
lea eax, [ebp - 0x10]
push eax
push str.SoftwareMicrosoftWindows_NTCurrentVersionUBR
call fcn.00414986
add esp, 0xc
test eax, eax
je 0x40ccf1
lea eax, [esi + 0xa]
cmp eax, 0x104
jb 0x40ccab
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004136c0
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x114]
push 0x104
push eax
call fcn.00413978
push str.SoftwareMicrosoftWindows_NTCurrentVersionUBR
lea eax, [ebp - 0x114]
push 0x104
push eax
call fcn.00415380
lea eax, [esi + 9]
add esp, 0x18
cmp eax, 0x104
jae 0x40cdbf
mov byte [ebp + eax - 0x114], 0
jmp 0x40cd1a
cmp esi, 0x104
jae 0x40cc98
push str.SoftwareMicrosoftWindows_NTCurrentVersionUBR
lea eax, [ebp - 0x114]
push 0x104
push eax
call fcn.00413978
add esp, 0xc
mov byte [ebp + esi - 0x114], 0
lea eax, [ebp - 0x118]
inc esi
push eax
push 0x20019
push 0
lea eax, [ebp - 0x114]
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x40cd47
mov dword [ebp - 0x118], edi
jmp 0x40cd8a
lea eax, [ebp - 0x124]
push eax
push ebx
lea eax, [ebp - 0x120]
push eax
push 0
lea eax, [esi + str.SoftwareMicrosoftWindows_NTCurrentVersionUBR]
push eax
push dword [ebp - 0x118]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp eax, 2
je 0x40cd85
test eax, eax
jne 0x40cd8a
cmp dword [ebp - 0x120], 4
jne 0x40cd8a
cmp dword [ebp - 0x124], edi
jbe 0x40cd8a
mov edi, 1
mov eax, dword [ebp - 0x11c]
test eax, eax
je 0x40cd9b
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0x118]
test ecx, ecx
je 0x40cdac
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004136c0
mov esp, ebp
pop ebp
ret
call fcn.00413daa
int3
Function at 0x40d6a0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, edx
mov dword [ebp - 4], ecx
mov ebx, eax
lea esi, [ecx + 0x200]
push eax
shrd edi, ebx, 9
push edx
shr ebx, 9
mov dword [ebp + 0xc], esi
call fcn.0040d5d0
mov eax, dword [str.EFI_PART]
add esp, 8
mov dword [esi], eax
mov ecx, edi
mov eax, dword [0x42b464]
add ecx, 0xffffffff
mov dword [esi + 4], eax
lea eax, [esi + 0x10]
mov byte [esi + 0xa], 1
mov dword [ebp - 8], eax
mov dword [eax], 0
mov eax, ebx
adc eax, 0xffffffff
mov dword [esi + 0xc], 0x5c
add edi, 0xffffffde
mov dword [esi + 0x24], eax
lea eax, [esi + 0x38]
mov dword [esi + 0x18], 1
adc ebx, 0xffffffff
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], ecx
mov dword [esi + 0x28], 0x22
mov dword [esi + 0x2c], 0
mov dword [esi + 0x30], edi
mov dword [esi + 0x34], ebx
mov esi, dword [sym.imp.ole32.dll_CoCreateGuid]
push eax
call esi
mov eax, dword [ebp + 0xc]
mov dword [eax + 0x48], 2
mov dword [eax + 0x4c], 0
mov dword [eax + 0x50], 0x80
mov dword [eax + 0x54], 0x80
mov eax, dword [ebp - 4]
movdqu xmm0, xmmword [0x42f1ec]
movdqu xmmword [eax + 0x400], xmm0
add eax, 0x410
push eax
call esi
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x428], edi
lea esi, [ecx + 0x402]
mov dword [ecx + 0x420], 0x800
mov edi, 0x1000
mov dword [ecx + 0x424], 0
mov dword [ecx + 0x42c], ebx
mov dword [ecx + 0x430], 0
mov dword [ecx + 0x434], 0
mov eax, dword [str.Data]
mov dword [ecx + 0x438], eax
mov eax, dword [0x42b470]
mov dword [ecx + 0x43c], eax
or eax, 0xffffffff
nop
movzx edx, byte [esi - 2]
lea esi, [esi + 4]
movzx ecx, al
xor edx, ecx
shr eax, 8
xor eax, dword [edx*4 + 0x427fd0]
movzx edx, byte [esi - 5]
movzx ecx, al
xor edx, ecx
shr eax, 8
xor eax, dword [edx*4 + 0x427fd0]
movzx edx, byte [esi - 4]
movzx ecx, al
xor edx, ecx
shr eax, 8
xor eax, dword [edx*4 + 0x427fd0]
movzx edx, byte [esi - 3]
movzx ecx, al
xor edx, ecx
shr eax, 8
xor eax, dword [edx*4 + 0x427fd0]
dec edi
jne 0x40d7d0
mov ebx, dword [ebp + 0xc]
not eax
or edx, 0xffffffff
mov esi, dword [ebx + 0xc]
mov dword [ebx + 0x58], eax
test esi, esi
je 0x40d84c
movzx ecx, byte [ebx]
lea ebx, [ebx + 1]
movzx eax, dl
xor ecx, eax
shr edx, 8
xor edx, dword [ecx*4 + 0x427fd0]
dec esi
jne 0x40d834
mov eax, dword [ebp - 8]
not edx
pop edi
pop esi
pop ebx
mov dword [eax], edx
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x40db80
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebx
mov ebx, edx
push esi
push edi
lea esi, [ecx + 0x200]
mov edi, ebx
mov ecx, 0x80
rep movsd dword es:[edi], dword [esi]
mov eax, dword [ebx + 0x18]
lea edi, [ebx + 0x10]
mov esi, dword [ebx + 0x20]
mov edx, dword [ebx + 0x24]
mov ecx, dword [ebx + 0x1c]
mov dword [ebx + 0x18], esi
add esi, 0xffffffe0
mov dword [ebx + 0x1c], edx
adc edx, 0xffffffff
mov dword [ebx + 0x20], eax
mov dword [ebx + 0x48], esi
or eax, 0xffffffff
mov esi, dword [ebx + 0xc]
mov dword [ebx + 0x24], ecx
mov dword [ebx + 0x4c], edx
mov dword [edi], 0
test esi, esi
je 0x40dbe8
jmp 0x40dbd0
movzx edx, byte [ebx]
lea ebx, [ebx + 1]
movzx ecx, al
xor edx, ecx
shr eax, 8
xor eax, dword [edx*4 + 0x427fd0]
dec esi
jne 0x40dbd0
not eax
mov dword [edi], eax
xor eax, eax
pop edi
pop esi
pop ebx
ret

Function at 0x40dea0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
lea eax, [ebp - 0xc]
push esi
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.0040c4e0
add esp, 0xc
test esi, esi
jne 0x40df2b
lea eax, [ebp - 4]
mov dword [ebp - 4], 4
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
push esi
push str.Count
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 8]
push dword [ebp - 4]
push eax
push str.Count
push str.RegQueryValueExA___s__ret:_u__Size:_u_Value:_u
call fcn.0040c4e0
mov ecx, dword [ebp + 0xc]
add esp, 0x14
mov eax, dword [ebp - 8]
push dword [ebp - 0xc]
mov dword [ecx], eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x40df50
Capabilities:
Get common file path
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
test ecx, ecx
je 0x40df7b
cmp byte [ecx], 0
je 0x40df7b
push ecx
push str.CmdLine:__s_
call fcn.0040c4e0
add esp, 8
xor esi, esi
cmp dword [0x42f664], esi
jle 0x40e000
jmp 0x40df90
mov eax, dword [0x42f668]
push 2
push 0x42b638
push dword [eax + esi*4]
call fcn.00413900
add esp, 0xc
test eax, eax
je 0x40dfed
mov eax, dword [0x42f668]
push 2
push 0x42b63c
push dword [eax + esi*4]
call fcn.00413900
add esp, 0xc
test eax, eax
je 0x40dfed
mov eax, dword [0x42f668]
push 2
push 0x42b640
push dword [eax + esi*4]
call fcn.00413900
add esp, 0xc
test eax, eax
jne 0x40dff7
mov dword [0x42f210], 1
jmp 0x40dff7
mov dword [0x42f214], 0
inc esi
cmp esi, dword [0x42f664]
jl 0x40df90
lea eax, [ebp - 0x110]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
push str.Ventoy2Disk.ini
lea eax, [ebp - 0x110]
push 0x104
push eax
call fcn.00415380
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
lea eax, [ebp - 0x110]
add esp, 0xc
push eax
push 1
push 0x42b4f8
push str.Filter
call esi
neg eax
sbb eax, eax
and dword [0x42f214], eax
lea eax, [ebp - 0x110]
push eax
push 0
push str.Force
push str.Operation
call esi
mov ecx, dword [0x42f210]
mov edx, 1
cmp eax, edx
cmove ecx, edx
push ecx
push dword [0x42f214]
mov dword [0x42f210], ecx
push dword [0x430240]
push str.Control_Flag:__d__d__d
call fcn.0040c4e0
mov ecx, dword [ebp - 4]
add esp, 0x10
xor ecx, ebp
xor eax, eax
pop esi
call fcn.004136c0
mov esp, ebp
pop ebp
ret
Function at 0x40f150
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push 0x42a030
lea eax, [ebp - 4]
mov dword [ebp - 8], 0xfeff
push str..Ventoy2Disk.ini
push eax
mov dword [ebp - 4], 0
call fcn.004147e8
add esp, 0xc
cmp dword [ebp - 4], 0
jne 0x40f189
mov eax, 1
mov esp, ebp
pop ebp
ret
push esi
push edi
push 0x10000
call fcn.00413be0
mov ecx, 1
mov edi, eax
sub ecx, dword [0x42f214]
push ecx
imul ecx, dword [0x430258], 0x16f04
push dword [0x430260]
add ecx, dword [0x43026c]
push ecx
push str._Ventoy__r_nLanguage_s_r_nPartStyle_d_r_nShowAllDevice_d_r_n
push 0x8000
push edi
call fcn.004136eb
push dword [ebp - 4]
mov esi, eax
lea eax, [ebp - 8]
push 2
push 1
push eax
call fcn.00413b26
push dword [ebp - 4]
lea eax, [esi + esi]
push eax
push 1
push edi
call fcn.00413b26
push dword [ebp - 4]
call fcn.00414899
add esp, 0x40
push edi
call fcn.00413ba8
add esp, 4
xor eax, eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x40f210
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x80c
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
mov dword [ebp - 0x808], 0
push 0
push esi
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeA]
lea edx, [eax - 1]
cmp edx, 0x7ff
ja 0x40f2a7
lea ecx, [ebp - 0x804]
push ecx
push eax
push 0
push esi
call dword [sym.imp.VERSION.dll_GetFileVersionInfoA]
test eax, eax
je 0x40f2a7
lea eax, [ebp - 0x80c]
push eax
lea eax, [ebp - 0x808]
push eax
push 0x42bc70
lea eax, [ebp - 0x804]
push eax
call dword [sym.imp.VERSION.dll_VerQueryValueA]
mov ecx, dword [ebp - 0x808]
movzx eax, word [ecx + 0x14]
push eax
movzx eax, word [ecx + 0x16]
push eax
movzx eax, word [ecx + 0x10]
push eax
movzx eax, word [ecx + 0x12]
push eax
push str._u._u._u._u
push 0x40
push 0x432920
call fcn.004136cf
add esp, 0x1c
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.004136c0
mov esp, ebp
pop ebp
ret