joyce8/EMBER2024-capa huggingface dataset:
Function at 0x67f312c
Capabilities:
Create thread

Disassembly:
call fcn.067f321b
pop eax
pop edx
pop dword [0x6862694]
pop ecx
test edx, edx
push eax
je 0x67f312b
push ebx
push esi
push edi
push ebp
mov ebx, 0x6860684
mov ebp, 0x68626a8
xor eax, eax
mov dword [ebp - 0x10], eax
test cl, 1
mov esi, 0x67f2f38
jne 0x67f3167
test cl, 2
lea esi, [esi + 0xc]
jne 0x67f3167
lea esi, [esi - 0x14]
test cl, 8
setne byte [ebp - 0x18]
and cl, 0x10
mov byte [ebp - 0x17], cl
mov edi, ebp
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov esi, edx
cmp dword [ebp - 4], eax
jne 0x67f3186
mov word [ebp - 4], 0x8000
push eax
push eax
push eax
push eax
push eax
push eax
push 0x67f2f20
push 0xffffffffffffffff
push ebx
call sub.winmm.dll_waveOutOpen
call sub.KERNEL32.DLL_HeapCreate_1
test eax, eax
mov dword [ebx - 8], eax
je 0x67f31b3
mov dword [ebp - 0xc], esi
call fcn.067f39a8
xchg edi, eax
call dword [ebp + 8]
test edi, edi
je 0x67f321f
mov esi, 0x68726b8
mov dword [esi + 4], 0x10000
or dword [esi + 0x14], 0xffffffff
push 0xc
mov dword [esi], 0x68626b8
pop dword [esi + 0x10]
push 0x20
push esi
push dword [ebx]
call sub.winmm.dll_waveOutPrepareHeader
xor edi, edi
call fcn.067f32dc
cmp dword [ebx + 4], edi
jne 0x67f31dc
mov dword [ebx + 8], edi
push 0x20
push esi
push dword [ebx]
call sub.winmm.dll_waveOutWrite
test eax, eax
jne 0x67f321f
push ebp
push edi
push edi
push 0x67f3288
push edi
push edi
call sub.KERNEL32.DLL_CreateThread_2
test eax, eax
mov dword [ebx - 4], eax
je 0x67f321f
push 0xf
push eax
call sub.KERNEL32.DLL_SetThreadPriority_1
xchg ebx, eax
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x67f4d54
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 0x18], ebx
mov ebx, ecx
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
call fcn.06667c90
xor eax, eax
push ebp
push 0x67f4e36
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, ebx
call fcn.06667bac
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 4]
call fcn.066686cc
mov esi, eax
push esi
call sub.version.dll_GetFileVersionInfoSizeW
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jbe 0x67f4e18
mov eax, dword [ebp - 8]
call fcn.0666540c
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x67f4e11
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
push esi
call sub.version.dll_GetFileVersionInfoW
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x67f4e44
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueW
test eax, eax
je 0x67f4df8
lea eax, [ebp - 0x18]
mov edx, dword [ebp - 0x14]
call fcn.06668724
mov eax, dword [ebp - 0x18]
mov edx, ebx
call fcn.0667d4ac
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x67f4e18
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0x10]
call fcn.06665440
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x67f4e3d
lea eax, [ebp - 0x18]
call fcn.06667bac
lea eax, [ebp - 4]
call fcn.06667bac
ret
Function at 0x401460
Capabilities:
Create new key via cryptacquirecontext
Encrypt data using aes via winapi
Encrypt or decrypt via wincrypt
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov dword [esp + 0x10], 0xf0000000
mov dword [esp + 0xc], 0x18
mov dword [esp + 8], 0
mov dword [esp + 4], 0
lea eax, [ebp - 0xc]
mov dword [esp], eax
call sym._CryptAcquireContextW_20
sub esp, 0x14
test eax, eax
je 0x401599
mov eax, dword [ebp - 0xc]
lea edx, [ebp - 0x10]
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0x800c
mov dword [esp], eax
call sym._CryptCreateHash_20
sub esp, 0x14
test eax, eax
je 0x40159c
mov eax, dword [ebp - 0x10]
mov dword [esp + 0xc], 0
mov edx, dword [ebp + 0x14]
mov dword [esp + 8], edx
mov edx, dword [ebp + 0x10]
mov dword [esp + 4], edx
mov dword [esp], eax
call sym._CryptHashData_16
sub esp, 0x10
test eax, eax
je 0x40159f
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0xc]
lea ecx, [ebp - 0x14]
mov dword [esp + 0x10], ecx
mov dword [esp + 0xc], 0
mov dword [esp + 8], edx
mov dword [esp + 4], 0x6610
mov dword [esp], eax
call sym._CryptDeriveKey_20
sub esp, 0x14
test eax, eax
je 0x4015a2
mov eax, dword [ebp - 0x14]
lea edx, [ebp + 0xc]
mov dword [esp + 0x14], edx
mov edx, dword [ebp + 8]
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], eax
call sym._CryptDecrypt_24
sub esp, 0x18
test eax, eax
je 0x4015a5
mov eax, dword [ebp - 0xc]
mov dword [esp + 4], 0
mov dword [esp], eax
call sym._CryptReleaseContext_8
sub esp, 8
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call sym._CryptDestroyHash_4
sub esp, 4
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
call sym._CryptDestroyKey_4
sub esp, 4
jmp 0x4015a6
nop
jmp 0x4015a6
nop
jmp 0x4015a6
nop
jmp 0x4015a6
nop
jmp 0x4015a6
nop
leave
ret
Function at 0x4015a8
Capabilities:
Enumerate threads

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x44
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x2c], 0x1c
call sym._GetCurrentProcessId_0
mov dword [esp + 4], eax
mov dword [esp], 4
call sym._CreateToolhelp32Snapshot_8
sub esp, 8
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x2c]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call sym._Thread32First_8
sub esp, 8
test eax, eax
je 0x40166a
mov ebx, dword [ebp - 0x20]
call sym._GetCurrentProcessId_0
cmp ebx, eax
jne 0x401651
mov eax, dword [ebp - 0x24]
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov dword [esp], 0x10
call sym._OpenThread_12
sub esp, 0xc
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x401651
mov eax, dword [ebp + 8]
mov dword [esp + 8], 0
mov edx, dword [ebp - 0xc]
mov dword [esp + 4], edx
mov dword [esp], eax
call sym._QueueUserAPC_12
sub esp, 0xc
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sym._CloseHandle_4
sub esp, 4
jmp 0x40166a
lea eax, [ebp - 0x2c]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call sym._Thread32Next_8
sub esp, 8
test eax, eax
jne 0x4015f1
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call sym._CloseHandle_4
sub esp, 4
nop
mov ebx, dword [ebp - 4]
leave
ret
Function at 0x401e30
Capabilities:
Get thread local storage value

Disassembly:
push esi
push ebx
sub esp, 0x14
mov dword [esp], 0x411044
call sym._EnterCriticalSection_4
mov ebx, dword [0x41103c]
sub esp, 4
test ebx, ebx
je 0x401e7b
nop
mov eax, dword [ebx]
mov dword [esp], eax
call sym._TlsGetValue_4
sub esp, 4
mov esi, eax
call sym._GetLastError_0
test eax, eax
jne 0x401e74
test esi, esi
je 0x401e74
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x401e50
mov dword [esp], 0x411044
call sym._LeaveCriticalSection_4
sub esp, 4
add esp, 0x14
pop ebx
pop esi
ret

Function at 0x402060
Capabilities:
Write file on windows

Disassembly:
push esi
push ebx
sub esp, 0x14
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x17
mov dword [esp + 4], 1
lea esi, [esp + 0x24]
mov dword [esp], str.Mingw_runtime_failure:_n
lea ebx, [eax + 0x40]
mov dword [esp + 0xc], ebx
call sym._fwrite
mov eax, dword [esp + 0x20]
mov dword [esp + 8], esi
mov dword [esp], ebx
mov dword [esp + 4], eax
call sym._vfprintf
call sym._abort
lea esi, [esi]

Function at 0x4020b0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
push edi
mov edi, ecx
push esi
push ebx
mov ebx, eax
mov esi, edx
sub esp, 0x4c
lea eax, [esp + 0x24]
mov dword [esp + 8], 0x1c
mov dword [esp], ebx
mov dword [esp + 4], eax
call sym._VirtualQuery_12
sub esp, 0xc
test eax, eax
je 0x402188
mov eax, dword [esp + 0x38]
cmp eax, 0x40
je 0x4020ee
cmp eax, 4
jne 0x402110
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
call sym._memcpy
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esp + 0x30]
lea ebp, [esp + 0x20]
mov dword [esp + 8], 0x40
mov dword [esp + 0xc], ebp
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
mov edx, dword [esp + 0x38]
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
mov dword [esp + 0x1c], edx
call sym._memcpy
mov edx, dword [esp + 0x1c]
cmp edx, 0x40
je 0x4020fe
cmp edx, 4
je 0x4020fe
mov eax, dword [esp + 0x20]
mov dword [esp + 0xc], ebp
mov dword [esp + 8], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x1c
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
call fcn.00402060
Function at 0x4058f3
Capabilities:
Query or enumerate registry value

Disassembly:
sbb eax, 0x875ff2b
push dword [ebp + 4]
push dword [ebp]
call fcn.00403ec9
sbb eax, eax
mov esi, dword [ebp + 0x14]
and eax, 0x100
or eax, 0x20019
mov byte [esi], bl
push eax
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x405964
lea eax, [ebp + 0xc]
mov dword [ebp + 0xc], 0x400
push eax
lea eax, [ebp + 0x14]
push esi
push eax
push ebx
push dword [ebp + 0x10]
push dword [ebp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x405953
cmp dword [ebp + 0x14], 1
je 0x405955
cmp dword [ebp + 0x14], 2
je 0x405955
mov byte [esi], bl
push dword [ebp + 0x18]
mov byte [esi + 0x3ff], bl
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebx
pop ebp
ret 0x14
Function at 0x53f000
Capabilities:
Packed with generic packer

Disassembly:
pushal
push 0x53f031
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push 0x53f03a
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
lea edx, [0x53f047]
push 0
push 0
push 0
push edx
push 0
push 0
call eax
popal
jmp fcn.00416276

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

Disassembly:
pushal
nop
nop
call 0x43300c
pop eax
nop
nop
nop
nop
nop
add eax, 0x40a063
nop
nop
sub eax, 0x40a009
nop
nop
mov ebx, dword [eax]
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
nop
add ebx, 4
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
nop
jl 0x433030
nop
nop
add eax, 0xc
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
nop
nop
jne 0x43301e
popal
nop
nop
nop
nop
nop
jmp 0x431219

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

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
nop
nop
nop
push 4
nop
nop
nop
nop
pop edi
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
je 0x430072
nop
mov ebx, 0x408e84
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
xor edx, edx
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
nop
div edi
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
mov esi, 0x7ca431d1
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
nop
nop
nop
loop 0x430060
mov eax, section..data
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
je 0x4300d2
nop
nop
mov ebx, 0x42e1d0
nop
nop
nop
mov ecx, ebx
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
push eax
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
div edi
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
mov esi, 0x12b02896
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
loop 0x4300c0
nop
nop
nop
nop
nop
nop
nop
popal
jmp 0x401219
Function at 0x40380b
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
call fcn.00403761
push 2
mov ebx, 0x105
mov edi, eax
push ebx
call fcn.0047b53f
pop ecx
pop ecx
mov esi, eax
xor eax, eax
push eax
push eax
push eax
push eax
push eax
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
test ebx, ebx
je 0x403875
xor eax, eax
push eax
push eax
push 0x105
push 0x50cb38
push 0xffffffffffffffff
push esi
push eax
push 0xfde9
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
jne 0x403875
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
xor ebx, ebx
test esi, esi
je 0x403880
push esi
call fcn.004812c6
pop ecx
test edi, edi
je 0x40388b
push edi
call fcn.004812c6
pop ecx
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret
Function at 0x404280
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x160
mov eax, dword [0x4d8300]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
mov esi, ecx
mov dword [ebp - 0x15c], edx
xor ecx, ecx
cmp esi, dword [0x522928]
push edi
sete cl
xor ebx, ebx
mov dword [ebp - 0x158], ecx
test esi, esi
js 0x40446d
cmp esi, 0x80
jb 0x4042c9
cmp esi, 0xc0
jbe 0x4042e6
push 0x185
push str.C:UsersGauravDownloads_formatusb_master_1__formatusb_master_srcdrive.c
push str._DriveIndex___DRIVE_INDEX_MIN____DriveIndex___DRIVE_INDEX_MAX_
call fcn.00486ba7
mov ecx, dword [ebp - 0x158]
add esp, 0xc
lea edi, [esi - 0x80]
cmp edi, 0x40
ja 0x40446d
mov edx, dword [ebp + 8]
mov eax, edx
mov esi, dword [ebp + 0xc]
or eax, esi
jne 0x404338
mov eax, ebx
inc eax
push eax
push edi
push str.Harddisk_luPartition_lu
lea eax, [ebp - 0x4c]
push 0x40
push eax
call fcn.00403163
mov edi, str._GLOBALROOT
mov byte [ebp - 0xd], bl
push edi
call fcn.004816f0
add esp, 0x18
mov esi, 0x104
inc eax
cmp eax, esi
jae 0x404377
push edi
call fcn.004816f0
pop ecx
inc eax
jmp 0x404379
test ecx, ecx
je 0x40445d
mov eax, ebx
cmp edx, dword [eax*8 + 0x522948]
jne 0x404354
cmp esi, dword [eax*8 + 0x52294c]
je 0x404300
inc eax
cmp eax, 0x10
jb 0x404342
cmp dword [ebp + 0x10], ebx
jne 0x40446d
push esi
push edx
push str.Error:_Could_not_find_a_partition_at_offset__lld_on_this_disk
call fcn.0042ed57
add esp, 0xc
jmp 0x40446d
mov eax, esi
push eax
lea eax, [ebp - 0x154]
push edi
push eax
call fcn.00476fc0
push edi
call fcn.004816f0
add esp, 0x10
inc eax
cmp eax, esi
jae 0x40439f
push edi
call fcn.004816f0
pop ecx
lea esi, [eax + 1]
push 0xf6
lea eax, [ebp - 0x146]
mov byte [ebp + esi - 0x155], bl
push eax
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceA]
test eax, eax
je 0x404444
lea eax, [ebp - 0x154]
push eax
call fcn.004816f0
pop ecx
cmp eax, 0x14
jb 0x404444
cmp dword [ebp - 0x15c], ebx
je 0x404434
mov ebx, 0x4b4ab0
push ebx
call fcn.004816f0
mov esi, eax
lea eax, [ebp - 0x154]
push eax
call fcn.004816f0
pop ecx
pop ecx
mov edi, 0x103
mov ecx, edi
sub ecx, eax
lea eax, [esi + 1]
cmp eax, ecx
jae 0x404414
push ebx
call fcn.004816f0
lea edi, [eax + 1]
jmp 0x404422
lea eax, [ebp - 0x154]
push eax
call fcn.004816f0
sub edi, eax
pop ecx
push edi
lea eax, [ebp - 0x154]
push ebx
push eax
call fcn.00481780
add esp, 0xc
lea eax, [ebp - 0x154]
push eax
call fcn.00487101
mov ebx, eax
jmp 0x40446c
cmp dword [ebp + 0x10], ebx
jne 0x40446d
call fcn.0042fc51
push eax
lea eax, [ebp - 0x4c]
push eax
push str.Could_not_find_a_DOS_volume_name_for__s:__s
jmp 0x40436a
cmp dword [ebp + 0x10], ebx
jne 0x40446d
push str.Error:_Searching_for_a_partition_on_a_non_matching_disk
call fcn.0042ed57
pop ecx
mov ecx, dword [ebp - 8]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00475c80
leave
ret
Function at 0x404e9c
Capabilities:
Get disk information via ioctl

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xe0
mov eax, dword [0x4d8300]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, ecx
lea eax, [ebp - 0xdc]
xor ecx, ecx
mov esi, edx
push ecx
push eax
push 0xc8
lea eax, [ebp - 0xd8]
push eax
push ecx
push ecx
push 0x560000
push edi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x404f0f
cmp dword [ebp - 0xdc], 0
jbe 0x404f0f
cmp dword [ebp - 0xd8], 1
jb 0x404f0f
cmp dword [ebp - 0xd8], 2
jb 0x404f07
push esi
push str.Ignoring_drive__s_as_it_spans_multiple_disks__RAID__
call fcn.0042ed57
pop ecx
pop ecx
jmp 0x404f5f
mov eax, dword [ebp - 0xd0]
jmp 0x404f3d
xor ecx, ecx
lea eax, [ebp - 0xdc]
push ecx
push eax
push 0xc
lea eax, [ebp - 0x10]
push eax
push ecx
push ecx
push 0x2d1080
push edi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x404f4b
cmp dword [ebp - 0xdc], 0
jbe 0x404f4b
mov eax, dword [ebp - 0xc]
cmp eax, 0x40
jl 0x404f62
push eax
push esi
push str.Device_Number_for_device__s_is_too_big___d____ignoring_device
jmp 0x404f57
call fcn.0042fc51
push eax
push esi
push str.Could_not_get_device_number_for_device__s:__s
call fcn.0042ed57
add esp, 0xc
or eax, 0xffffffff
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00475c80
leave
ret
Function at 0x4053e5
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x70
mov eax, dword [0x4d8300]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x70]
push eax
push 0x69
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsA]
test eax, eax
jne 0x40541b
call fcn.0042fc51
push eax
push str.GetLogicalDriveStrings_failed:__s
call fcn.0042ed57
pop ecx
pop ecx
xor al, al
jmp 0x405490
cmp eax, 0x69
jbe 0x405432
push 0x69
push eax
push str.GetLogicalDriveStrings:_Buffer_too_small__required__d_vs.__d_
call fcn.0042ed57
add esp, 0xc
jmp 0x405417
mov al, byte [ebp - 0x70]
push ebx
push esi
mov bl, 0x43
lea esi, [ebp - 0x70]
test al, al
je 0x405477
movsx eax, al
push eax
call fcn.00487160
pop ecx
test eax, eax
je 0x40545c
movsx eax, byte [esi]
push eax
call fcn.00486f54
pop ecx
cmp bl, al
je 0x405474
test esi, esi
jne 0x405464
xor eax, eax
jmp 0x40546b
push esi
call fcn.004816f0
pop ecx
inc esi
add esi, eax
mov al, byte [esi]
test al, al
jne 0x405440
mov al, byte [ebp - 0x70]
cmp byte [esi], 0
je 0x405483
inc bl
cmp bl, 0x5a
jle 0x405439
xor ecx, ecx
movzx eax, bl
cmp bl, 0x5a
pop esi
cmovg eax, ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00475c80
leave
ret

Function at 0x40549c
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x70
mov eax, dword [0x4d8300]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
lea eax, [ebp - 0x70]
mov bl, cl
push eax
push 0x69
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsA]
test eax, eax
jne 0x4054d6
call fcn.0042fc51
push eax
push str.GetLogicalDriveStrings_failed:__s
call fcn.0042ed57
pop ecx
pop ecx
xor eax, eax
inc eax
jmp 0x40551f
cmp eax, 0x69
jbe 0x4054ed
push 0x69
push eax
push str.GetLogicalDriveStrings:_Buffer_too_small__required__d_vs.__d_
call fcn.0042ed57
add esp, 0xc
jmp 0x4054d1
mov al, byte [ebp - 0x70]
push esi
lea esi, [ebp - 0x70]
jmp 0x405518
movsx eax, al
push eax
call fcn.00486f54
pop ecx
cmp bl, al
je 0x40552c
test esi, esi
jne 0x40550c
xor eax, eax
jmp 0x405513
push esi
call fcn.004816f0
pop ecx
inc esi
add esi, eax
mov al, byte [esi]
test al, al
jne 0x4054f6
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00475c80
leave
ret
xor eax, eax
inc eax
jmp 0x40551e
Function at 0x406653
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov eax, dword [0x4d8300]
xor eax, ebp
mov dword [ebp - 4], eax
mov ax, word [0x4b5824]
push esi
push edi
mov edi, ecx
mov word [ebp - 0x3c], ax
mov al, byte [0x4b5826]
mov esi, edx
mov byte [ebp - 0x3a], al
test edi, edi
je 0x4067cb
test esi, esi
je 0x4067cb
cmp byte [edi], 0x3f
je 0x4067cb
push 0xe
push str._GLOBALROOT
push esi
call fcn.004873d4
add esp, 0xc
test eax, eax
jne 0x4066ed
mov al, byte [edi]
mov byte [ebp - 0x3c], al
lea eax, [esi + 0xe]
push eax
lea eax, [ebp - 0x3c]
push eax
push 9
call dword [sym.imp.KERNEL32.dll_DefineDosDeviceA]
movsx ecx, byte [edi]
push ecx
push esi
test eax, eax
jne 0x4066d8
push str.Could_not_mount__s_as__C:
call fcn.0042ed57
add esp, 0xc
jmp 0x4067d3
push str._s_was_successfully_mounted_as__C:
call fcn.0042ed57
add esp, 0xc
xor eax, eax
inc eax
jmp 0x4067d5
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SetVolumeMountPointA]
test eax, eax
jne 0x4066e5
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x91
jne 0x4067d3
push 0x34
lea eax, [ebp - 0x38]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetVolumeNameForVolumeMountPointA]
test eax, eax
jne 0x406731
call fcn.0042fc51
push eax
push edi
push str._s_is_already_mounted__but_volume_GUID_could_not_be_checked:__s
call fcn.0042ed57
add esp, 0xc
jmp 0x406754
lea eax, [ebp - 0x38]
push eax
push esi
call fcn.00481660
pop ecx
pop ecx
test eax, eax
je 0x4066e5
lea eax, [ebp - 0x38]
push eax
push esi
push edi
push str._s_is_mounted__but_volume_GUID_doesnt_match:_r_n__expected__s__got__s
call fcn.0042ed57
add esp, 0x10
push str.Retrying_after_dismount...
call fcn.0042ed57
pop ecx
push edi
call dword [sym.imp.KERNEL32.dll_DeleteVolumeMountPointA]
test eax, eax
jne 0x40677e
call fcn.0042fc51
push eax
push edi
push str.Warning:_Could_not_delete_volume_mountpoint__s:__s
call fcn.0042ed57
add esp, 0xc
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SetVolumeMountPointA]
test eax, eax
jne 0x4066e5
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x91
jne 0x4067d3
push 0x34
lea eax, [ebp - 0x38]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetVolumeNameForVolumeMountPointA]
test eax, eax
je 0x4067d3
lea eax, [ebp - 0x38]
push eax
push esi
call fcn.00481660
pop ecx
pop ecx
test eax, eax
jne 0x4067d3
movsx eax, byte [edi]
push eax
push esi
push str._s_was_remounted_as__C:__second_time_lucky__
jmp 0x4066dd
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00475c80
leave
ret
Function at 0x40688d
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
mov eax, dword [0x4d8300]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov esi, str..:
mov dword [ebp - 0x48], edx
push 0
lea edi, [ebp - 0xc]
mov ebx, ecx
push 0x80
movsd dword es:[edi], dword [esi]
push 3
mov al, byte [ebx]
push 0
movsw word es:[edi], word [esi]
push 3
mov byte [ebp - 0x41], al
push 0xc0000000
movsb byte es:[edi], byte [esi]
mov byte [ebp - 8], al
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4068f6
call fcn.0042fc51
push eax
movsx eax, byte [ebp - 0x41]
push eax
push str.Failed_to_open__c:_for_flushing:__s
call fcn.0042ed57
add esp, 0xc
jmp 0x406924
push esi
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
test eax, eax
jne 0x406919
call fcn.0042fc51
push eax
movsx eax, byte [ebp - 0x41]
push eax
push str.Failed_to_flush__c:__s
call fcn.0042ed57
add esp, 0xc
test esi, esi
je 0x406924
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x33
lea eax, [ebp - 0x40]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetVolumeNameForVolumeMountPointA]
test eax, eax
je 0x40695e
lea edx, [ebp - 0x40]
mov ecx, ebx
call fcn.00406653
test eax, eax
je 0x406970
cmp dword [ebp - 0x48], 0
jne 0x40695e
movsx eax, byte [ebx]
push eax
lea eax, [ebp - 0x40]
push eax
push str.Successfully_remounted__s_as__C:
call fcn.0042ed57
add esp, 0xc
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00475c80
leave
ret
cmp dword [ebp - 0x48], 0
jne 0x406991
call fcn.0042fc51
push eax
movsx eax, byte [ebx]
push eax
lea eax, [ebp - 0x40]
push eax
push str.Could_not_remount__s_as__C:__s
call fcn.0042ed57
add esp, 0x10
mov dword [0x4dc5d0], 0xe0031209
xor eax, eax
jmp 0x406961