joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402ca0
Capabilities:
Check if process is running under wine

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
lea ebx, [ebp - 0x218]
sub esp, 0x23c
mov dword [ebp - 0x22c], eax
lea eax, [ebp - 0x21c]
mov dword [esp + 8], eax
mov dword [esp + 4], str.SoftwareWineWineBrowser
mov dword [esp], 0x80000001
call dword [sym.imp.advapi32.dll_RegOpenKeyW]
sub esp, 0xc
test eax, eax
je 0x402d08
mov esi, 0x4054e0
mov ecx, 0x1f
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
mov edx, dword [ebp - 0x22c]
mov eax, ebx
call sym._launch_app
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [ebp - 0x21c]
mov ecx, ebx
mov edx, str.Browsers
call sym._get_commands.constprop.0
mov esi, eax
mov eax, dword [ebp - 0x21c]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
sub esp, 4
test esi, esi
je 0x402cec
jmp 0x402cde

Function at 0x402d40
Capabilities:
Check if process is running under wine

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
lea ebx, [ebp - 0x218]
sub esp, 0x23c
mov dword [ebp - 0x22c], eax
lea eax, [ebp - 0x21c]
mov dword [esp + 8], eax
mov dword [esp + 4], str.SoftwareWineWineBrowser
mov dword [esp], 0x80000001
call dword [sym.imp.advapi32.dll_RegOpenKeyW]
sub esp, 0xc
test eax, eax
je 0x402db0
mov esi, str._usr_bin_open
mov ecx, 0x21
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
movzx eax, word [esi]
mov word [edi], ax
mov edx, dword [ebp - 0x22c]
mov eax, ebx
call sym._launch_app
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [ebp - 0x21c]
mov ecx, ebx
mov edx, str.Mailers
call sym._get_commands.constprop.0
mov esi, eax
mov eax, dword [ebp - 0x21c]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
sub esp, 4
test esi, esi
je 0x402d92
jmp 0x402d7e

Function at 0x403c70
Capabilities:
Get process heap force flags
Terminate process

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
and esp, 0xfffffff0
sub esp, 0x10
mov dword [esp], 1
call sym.__configure_wide_argv
call sym.__initialize_wide_environment
call sym.___p___argc
mov esi, dword [eax]
call sym.___p___wargv
mov edi, dword [eax]
call sym.__get_initial_wide_environment
mov ebx, eax
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 8]
mov edx, dword [eax + 0x3c]
cmp word [eax + edx + 0x5c], 2
sete al
movzx eax, al
inc eax
mov dword [esp], eax
call sym.__set_app_type
mov dword [esp + 8], ebx
mov dword [esp + 4], edi
mov dword [esp], esi
call sym._wmain
mov dword [esp], eax
call sym._exit
nop
nop
Function at 0x41ad50
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, 0x411015
lea edi, [esi - 0x10015]
push edi
or ebp, 0xffffffff
jmp 0x41ad72
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x41ad79
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x41ad68
mov eax, 1
add ebx, ebx
jne 0x41ad8b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x41ad80
jne 0x41ad9c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x41ad80
xor ecx, ecx
sub eax, 3
jb 0x41adb0
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x41ae22
mov ebp, eax
add ebx, ebx
jne 0x41adbb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x41adc8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x41adec
inc ecx
add ebx, ebx
jne 0x41add8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x41adcd
jne 0x41ade9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x41adcd
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x41ae0c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x41adfd
jmp 0x41ad6e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x41ae0c
add edi, ecx
jmp 0x41ad6e
pop esi
mov edi, esi
mov ecx, 0x2b3
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x41ae2a
cmp byte [edi], 5
jne 0x41ae2a
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x41ae2f
lea edi, [esi + 0x18000]
mov eax, dword [edi]
or eax, eax
je 0x41aea7
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x1a000]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x1a094]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x41ae5c
mov ecx, edi
jns 0x41ae8b
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x1a09c]
or eax, eax
je 0x41aea1
mov dword [ebx], eax
add ebx, 4
jmp 0x41ae79
call dword [esi + 0x1a098]
mov ebp, dword [esi + 0x1a0a0]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x19f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x41aedb
sub esp, 0xffffff80
jmp 0x404c20

Function at 0x432000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43200c
nop
nop
nop
pop eax
nop
nop
nop
add eax, 0x40729f
nop
sub eax, 0x407245
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
jl 0x432030
nop
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
jne 0x43201e
nop
nop
nop
nop
nop
nop
popal
jmp 0x431219
Function at 0x403940
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x4f22ec]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0x104
lea eax, [ebp - 0x108]
mov edi, edx
push 0
push eax
call fcn.00493600
push 0x1ff
push 0
push 0x52ba90
mov dword [ebp - 0x11c], 0
mov dword [ebp - 0x110], 0
mov dword [ebp - 0x10c], 0
mov dword [ebp - 0x114], 0xffffffff
mov dword [ebp - 0x118], 0x1ff
call fcn.00493600
add esp, 0x18
test edi, edi
je 0x403b8f
mov esi, edi
lea ecx, [esi + 1]
lea ecx, [ecx]
mov al, byte [esi]
inc esi
test al, al
jne 0x4039c0
sub esi, ecx
je 0x4039db
jmp 0x4039d0
cmp byte [edi + esi], 0x5c
je 0x403a10
sub esi, 1
jne 0x4039d0
lea eax, [ebp - 0x110]
push eax
push 0x2001d
push 0
push str.SOFTWARE
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x403ad5
mov dword [ebp - 0x110], 0
jmp 0x403b68
cmp esi, 0x104
jae 0x403b8f
mov ecx, edi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x403a21
sub ecx, edx
lea eax, [ecx + 1]
cmp eax, 0x104
jae 0x403a4c
mov ecx, edi
lea edx, [ecx + 1]
lea esp, [esp]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x403a40
sub ecx, edx
inc ecx
jmp 0x403a51
mov ecx, 0x104
push ecx
lea eax, [ebp - 0x108]
push edi
push eax
call fcn.00493080
mov ecx, edi
add esp, 0xc
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x403a67
sub ecx, edx
lea eax, [ecx + 1]
cmp eax, 0x104
jae 0x403a93
mov ecx, edi
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x403a80
sub ecx, edx
lea eax, [ebp - 0x108]
add eax, ecx
jmp 0x403a96
lea eax, [ebp - 5]
mov byte [eax], 0
lea eax, [ebp - 0x10c]
push eax
push 0x20019
push 0
lea eax, [ebp - 0x108]
mov byte [ebp + esi - 0x108], 0
push eax
push 0x80000001
inc esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x403b0e
mov dword [ebp - 0x10c], 0
jmp 0x403b57
lea eax, [ebp - 0x120]
push eax
lea eax, [ebp - 0x10c]
push eax
push 0
push 7
push 0
push 0
push 0
push str.Akeo_ConsultingRufus
push dword [ebp - 0x110]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x403b0e
mov dword [ebp - 0x10c], 0
jmp 0x403b57
lea eax, [ebp - 0x118]
push eax
push 0x52ba90
lea eax, [ebp - 0x114]
push eax
push 0
lea eax, [edi + esi]
push eax
push dword [ebp - 0x10c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp eax, 2
je 0x403b4d
test eax, eax
jne 0x403b57
cmp dword [ebp - 0x114], 1
jne 0x403b57
cmp dword [ebp - 0x118], eax
jbe 0x403b57
mov dword [ebp - 0x11c], 1
mov eax, dword [ebp - 0x110]
test eax, eax
je 0x403b68
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0x10c]
test ecx, ecx
je 0x403b79
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x11c]
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00491940
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
xor ecx, ebp
pop esi
call fcn.00491940
mov esp, ebp
pop ebp
ret
Function at 0x403c80
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
cmp dword [0x4fad90], 0
mov eax, edx
push ebx
push esi
push edi
mov dword [ebp - 0xc], eax
mov ebx, ecx
je 0x403caf
push ecx
call fcn.00420500
add esp, 4
neg eax
sbb eax, eax
neg eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test eax, eax
jne 0x403cb7
xor esi, esi
jmp 0x403cc9
mov esi, eax
lea ecx, [esi + 1]
lea esp, [esp]
mov al, byte [esi]
inc esi
test al, al
jne 0x403cc0
sub esi, ecx
xor edi, edi
mov dword [ebp - 4], edi
mov dword [ebp - 8], edi
test ebx, ebx
jne 0x403cf5
push 0x8a
push str.C:UsersgamerDownloads_rufus72_rufus_7_src_registry.h
push str.key_name___NULL
call fcn.0049ed6b
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x5c
push ebx
call fcn.00492830
add esp, 8
test eax, eax
je 0x403d1b
push 0x91
push str.C:UsersgamerDownloads_rufus72_rufus_7_src_registry.h
push str.strchr_key_name_____NULL
call fcn.0049ed6b
add esp, 0xc
push 0x5c
push ebx
call fcn.00492830
add esp, 8
test eax, eax
jne 0x403cec
lea eax, [ebp - 4]
push eax
push 0x2001d
push 0
push 0
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x403d4b
mov dword [ebp - 4], edi
jmp 0x403d99
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 7
push 0
push 0
push 0
push str.SOFTWAREAkeo_ConsultingRufus
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x403d74
mov dword [ebp - 8], edi
jmp 0x403d8b
push esi
push dword [ebp - 0xc]
push 1
push 0
push ebx
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
neg eax
sbb edi, edi
inc edi
mov eax, dword [ebp - 4]
test eax, eax
je 0x403d99
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 8]
test eax, eax
je 0x403da7
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4048f0
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x158
mov eax, dword [0x4f22ec]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
mov esi, ecx
xor ebx, ebx
cmp esi, dword [0x543768]
push edi
sete bl
mov edi, edx
test esi, esi
js 0x404b0b
cmp esi, 0x80
jb 0x40492d
cmp esi, 0xc0
jbe 0x404944
push 0x185
push str.C:UsersgamerDownloads_rufus72_rufus_7_srcdrive.c
push str._DriveIndex___DRIVE_INDEX_MIN____DriveIndex___DRIVE_INDEX_MAX_
call fcn.0049ed6b
add esp, 0xc
add esi, 0xffffff80
cmp esi, 0x40
ja 0x404b0b
mov edx, dword [ebp + 8]
mov eax, edx
mov ecx, dword [ebp + 0xc]
or eax, ecx
je 0x4049fc
test ebx, ebx
je 0x404af8
xor eax, eax
lea ebx, [ebx]
cmp edx, dword [eax*8 + 0x543788]
jne 0x404982
cmp ecx, dword [eax*8 + 0x54378c]
je 0x4049fc
cmp edx, dword [eax*8 + 0x543790]
jne 0x404994
cmp ecx, dword [eax*8 + 0x543794]
je 0x4049ec
cmp edx, dword [eax*8 + 0x543798]
jne 0x4049a6
cmp ecx, dword [eax*8 + 0x54379c]
je 0x4049ef
cmp edx, dword [eax*8 + 0x5437a0]
jne 0x4049b8
cmp ecx, dword [eax*8 + 0x5437a4]
je 0x4049f4
add eax, 4
cmp eax, 0x10
jb 0x404970
cmp dword [ebp + 0x10], 0
jne 0x404b0b
push ecx
push edx
push str.Error:_Could_not_find_a_partition_at_offset__lld_on_this_disk
call fcn.004407e0
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00491940
mov esp, ebp
pop ebp
ret
inc eax
jmp 0x4049f7
add eax, 2
jmp 0x4049f7
add eax, 3
cmp eax, 0x10
jae 0x4049c0
inc eax
push eax
push esi
push str.Harddisk_luPartition_lu
lea eax, [ebp - 0x4c]
push 0x40
push eax
call fcn.00403820
mov eax, dword [str._GLOBALROOT]
add esp, 0x14
mov dword [ebp - 0x154], eax
mov eax, dword [0x4cdd2c]
mov dword [ebp - 0x150], eax
mov eax, dword [0x4cdd30]
mov dword [ebp - 0x14c], eax
mov ax, word [0x4cdd34]
mov word [ebp - 0x148], ax
lea eax, [ebp - 0x146]
push 0xf6
push eax
lea eax, [ebp - 0x4c]
mov byte [ebp - 0xd], 0
push eax
mov byte [ebp - 0x146], 0
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceA]
test eax, eax
je 0x404ac8
lea ecx, [ebp - 0x154]
lea edx, [ecx + 1]
mov edi, edi
mov al, byte [ecx]
inc ecx
test al, al
jne 0x404a70
sub ecx, edx
cmp ecx, 0x14
jb 0x404ac8
test edi, edi
je 0x404aa8
mov eax, 0x103
sub eax, ecx
mov ecx, 2
cmp eax, ecx
cmova eax, ecx
push eax
lea eax, [ebp - 0x154]
push 0x4ce338
push eax
call fcn.00499bf0
add esp, 0xc
lea eax, [ebp - 0x154]
push eax
call fcn.0049f1d2
add esp, 4
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00491940
mov esp, ebp
pop ebp
ret
cmp dword [ebp + 0x10], 0
jne 0x404b0b
call fcn.00440bb0
push eax
lea ecx, [ebp - 0x4c]
push ecx
push str.Could_not_find_a_DOS_volume_name_for__s:__s
call fcn.004407e0
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00491940
mov esp, ebp
pop ebp
ret
cmp dword [ebp + 0x10], 0
jne 0x404b0b
push str.Error:_Searching_for_a_partition_on_a_non_matching_disk
call fcn.004407e0
add esp, 4
xor eax, eax
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00491940
mov esp, ebp
pop ebp
ret
Function at 0x405580
Capabilities:
Get disk information via ioctl

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xe0
mov eax, dword [0x4f22ec]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0
lea eax, [ebp - 0xdc]
mov dword [ebp - 0xdc], 0
push eax
push 0xc8
lea eax, [ebp - 0xd8]
mov edi, ecx
push eax
push 0
push 0
push 0x560000
push edi
mov esi, edx
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x40560e
cmp dword [ebp - 0xdc], 0
jbe 0x40560e
mov eax, dword [ebp - 0xd8]
cmp eax, 1
jb 0x40560e
cmp eax, 2
jb 0x405606
push esi
push str.Ignoring_drive__s_as_it_spans_multiple_disks__RAID__
call fcn.004407e0
add esp, 8
or eax, 0xffffffff
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00491940
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0xd0]
jmp 0x40563d
push 0
lea eax, [ebp - 0xdc]
push eax
push 0xc
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0x2d1080
push edi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x405678
cmp dword [ebp - 0xdc], 0
je 0x405671
mov eax, dword [ebp - 0xc]
cmp eax, 0x40
jl 0x40568f
push eax
push esi
push str.Device_Number_for_device__s_is_too_big___d____ignoring_device
call fcn.004407e0
add esp, 0xc
push str.NOTE:_This_may_be_due_to_an_excess_of_Virtual_Drives__such_as_hidden_ones_created_by_the_XBox_PC_app
call fcn.004407e0
add esp, 4
or eax, 0xffffffff
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00491940
mov esp, ebp
pop ebp
ret
mov eax, str._empty_data_
jmp 0x40567d
call fcn.00440bb0
push eax
push esi
push str.Could_not_get_device_number_for_device__s__s
call fcn.004407e0
add esp, 0xc
or eax, 0xffffffff
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00491940
mov esp, ebp
pop ebp
ret
Function at 0x405c80
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x78
mov eax, dword [0x4f22ec]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
lea eax, [ebp - 0x78]
push eax
push 0x69
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsA]
test eax, eax
jne 0x405cc7
call fcn.00440bb0
push eax
push str.GetLogicalDriveStrings_failed:__s
call fcn.004407e0
add esp, 8
xor al, al
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00491940
mov esp, ebp
pop ebp
ret
cmp eax, 0x69
jbe 0x405cee
push 0x69
push eax
push str.GetLogicalDriveStrings:_Buffer_too_small__required__lu_vs.__zu_
call fcn.004407e0
add esp, 0xc
xor al, al
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00491940
mov esp, ebp
pop ebp
ret
mov al, byte [ebp - 0x78]
mov bl, 0x43
lea esi, [ebp - 0x78]
test al, al
je 0x405d47
lea ebx, [ebx]
movsx eax, al
push eax
call fcn.0049f230
add esp, 4
test eax, eax
je 0x405d20
movsx eax, byte [esi]
push eax
call fcn.0049f025
add esp, 4
cmp bl, al
je 0x405d44
test esi, esi
jne 0x405d28
xor eax, eax
jmp 0x405d39
mov eax, esi
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x405d30
sub eax, edx
inc esi
add esi, eax
mov al, byte [esi]
test al, al
jne 0x405d00
jmp 0x405d53
mov al, byte [ebp - 0x78]
cmp byte [esi], 0
je 0x405d53
inc bl
cmp bl, 0x5a
jle 0x405cf3
xor eax, eax
movzx ecx, bl
cmp bl, 0x5a
pop esi
cmovle eax, ecx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00491940
mov esp, ebp
pop ebp
ret
Function at 0x406310
Capabilities:
Get disk information via ioctl

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1014
call fcn.00492020
mov eax, dword [0x4f22ec]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x1000
xor edi, edi
lea eax, [ebp - 0x1008]
push edi
push eax
mov esi, ecx
xor ebx, ebx
call fcn.00493600
add esp, 0xc
xor edx, edx
mov ecx, esi
push 1
push 1
call fcn.00404180
add esp, 8
mov dword [ebp - 0x1010], eax
cmp eax, 0xffffffff
jne 0x406375
xor eax, eax
xor edx, edx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00491940
mov esp, ebp
pop ebp
ret
push 0
lea ecx, [ebp - 0x100c]
push ecx
push 0x1000
lea ecx, [ebp - 0x1008]
push ecx
push 0
push 0
push 0x70050
push eax
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x406434
cmp dword [ebp - 0x100c], ebx
jbe 0x406434
xor ebx, ebx
cmp dword [ebp - 0x1004], ebx
jbe 0x40644a
mov eax, dword [ebp - 0x1008]
lea edi, [ebp - 0xfb8]
test eax, eax
jne 0x4063d1
cmp byte [edi], 0xef
je 0x40641f
cmp eax, 1
jne 0x40640a
test edi, edi
je 0x40640a
mov edx, edi
mov eax, 0x4cf6a8
mov esi, 0xc
mov ecx, dword [edx]
cmp ecx, dword [eax]
jne 0x4063fe
add edx, 4
add eax, 4
sub esi, 4
jae 0x4063e6
mov eax, 1
jmp 0x406400
xor eax, eax
test eax, eax
jne 0x40641f
mov eax, dword [ebp - 0x1008]
inc ebx
add edi, 0x90
cmp ebx, dword [ebp - 0x1004]
jb 0x4063c8
xor ebx, ebx
xor edi, edi
jmp 0x40644c
lea eax, [ebx + ebx*8]
add eax, eax
mov ebx, dword [ebp + eax*8 - 0xfd0]
mov edi, dword [ebp + eax*8 - 0xfcc]
jmp 0x40644c
call fcn.00440bb0
push eax
push esi
push str.Could_not_get_layout_for_drive_0x_02x:__s
call fcn.004407e0
add esp, 0xc
jmp 0x40644c
xor ebx, ebx
mov eax, dword [ebp - 0x1010]
test eax, eax
je 0x40645d
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov edx, edi
pop edi
pop esi
mov eax, ebx
xor ecx, ebp
pop ebx
call fcn.00491940
mov esp, ebp
pop ebp
ret
Function at 0x408150
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
mov eax, dword [0x4f22ec]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [str..:]
push ebx
push esi
push edi
push 0
push 0x80
mov dword [ebp - 0xc], eax
mov esi, ecx
mov ax, word [0x4ce794]
mov ebx, edx
push 3
mov word [ebp - 8], ax
mov al, byte [0x4ce796]
mov cl, byte [esi]
push 0
push 3
mov byte [ebp - 6], al
lea eax, [ebp - 0xc]
push 0xc0000000
push eax
mov byte [ebp - 0x41], cl
mov byte [ebp - 8], cl
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x4081cf
call fcn.00440bb0
push eax
movsx eax, byte [ebp - 0x41]
push eax
call fcn.0049f025
add esp, 4
push eax
push str.Failed_to_open__c:_for_flushing:__s
call fcn.004407e0
add esp, 0xc
jmp 0x408206
push edi
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
test eax, eax
jne 0x4081fb
call fcn.00440bb0
push eax
movsx eax, byte [ebp - 0x41]
push eax
call fcn.0049f025
add esp, 4
push eax
push str.Failed_to_flush__c:__s
call fcn.004407e0
add esp, 0xc
test edi, edi
je 0x408206
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x33
lea eax, [ebp - 0x40]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetVolumeNameForVolumeMountPointA]
test eax, eax
je 0x408247
lea edx, [ebp - 0x40]
mov ecx, esi
call fcn.00407de0
test eax, eax
je 0x40825d
test ebx, ebx
jne 0x408247
movsx eax, byte [esi]
push eax
call fcn.0049f025
add esp, 4
push eax
lea eax, [ebp - 0x40]
push eax
push str.Successfully_remounted__s_as__c:
call fcn.004407e0
add esp, 0xc
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00491940
mov esp, ebp
pop ebp
ret
test ebx, ebx
jne 0x408285
call fcn.00440bb0
push eax
movsx eax, byte [esi]
push eax
call fcn.0049f025
add esp, 4
push eax
lea eax, [ebp - 0x40]
push eax
push str.Could_not_remount__s_as__c:__s
call fcn.004407e0
add esp, 0x10
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
mov dword [0x4fa958], 0xe0031209
pop ebx
call fcn.00491940
mov esp, ebp
pop ebp
ret
Function at 0x409cb0
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
push 0
push 0
push 0xffffffffffffffff
push str.Rufusgrub4dos_0.4.6agrldr
push 0
push 0xfde9
mov ebx, edx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov esi, eax
cmp esi, 1
jle 0x409d0c
push 2
push esi
call fcn.0049570f
mov edi, eax
add esp, 8
test edi, edi
je 0x409d0c
push esi
push edi
push 0xffffffffffffffff
push str.Rufusgrub4dos_0.4.6agrldr
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp eax, esi
je 0x409d0e
push edi
call fcn.004998ec
add esp, 4
xor edi, edi
test ebx, ebx
je 0x409d76
cmp byte [ebx], 0
jne 0x409d27
push 2
push 1
call fcn.0049570f
add esp, 8
mov esi, eax
jmp 0x409d78
push 0
push 0
push 0xffffffffffffffff
push ebx
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov dword [ebp - 4], eax
cmp eax, 1
jle 0x409d76
push 2
push eax
call fcn.0049570f
mov esi, eax
add esp, 8
test esi, esi
je 0x409d76
push dword [ebp - 4]
push esi
push 0xffffffffffffffff
push ebx
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp eax, dword [ebp - 4]
je 0x409d78
push esi
call fcn.004998ec
add esp, 4
xor esi, esi
push 0
push esi
push edi
call dword [sym.imp.KERNEL32.dll_CopyFileW]
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
test edi, edi
je 0x409d9a
push edi
call fcn.004998ec
add esp, 4
test esi, esi
je 0x409da7
push esi
call fcn.004998ec
add esp, 4
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x409dc0
Capabilities:
Delete file

Disassembly:
push ebx
push edi
mov edi, ecx
test edi, edi
jne 0x409de5
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
push ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, edi
pop edi
pop ebx
ret
cmp byte [edi], 0
push esi
jne 0x409e14
push 2
push 1
call fcn.0049570f
add esp, 8
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
test esi, esi
je 0x409e97
jmp 0x409e8e
push 0
push 0
push 0xffffffffffffffff
push edi
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ebx, eax
cmp ebx, 1
jle 0x409e5f
push 2
push ebx
call fcn.0049570f
mov esi, eax
add esp, 8
test esi, esi
je 0x409e5f
push ebx
push esi
push 0xffffffffffffffff
push edi
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push esi
cmp eax, ebx
je 0x409e7e
call fcn.004998ec
add esp, 4
push 0
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
pop esi
push ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, edi
pop edi
pop ebx
ret
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
push esi
call fcn.004998ec
add esp, 4
pop esi
push ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, edi
pop edi
pop ebx
ret