joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41bfa0
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x425af8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
push esi
push edi
call dword [0x4341f8]
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov dword [eax], 0
mov al, byte [esi + 0x69]
test al, al
jne 0x41c0bf
mov eax, dword [esi + 0x84]
test eax, eax
je 0x41c0ac
push 0x20
lea edi, [esi + 0x49]
push str._Inaccessible_
push edi
call fcn.0041fd70
lea ebx, [esi + 0xa0]
mov eax, ebx
add esp, 0xc
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x41c007
sub eax, edx
mov dword [ebp + 8], eax
je 0x41c0bf
xor eax, eax
mov dword [ebp - 0x14], eax
mov byte [ebp - 0x10], al
mov dword [ebp - 4], eax
mov eax, dword [esi + 0x1e4]
test eax, eax
jns 0x41c061
call fcn.0040a1c0
test eax, eax
mov dword [ebp - 0x14], eax
mov byte [ebp - 0x10], 1
jge 0x41c061
mov dword [ebp - 4], 0xffffffff
call dword [sym.imp.ole32.dll_CoRevertToSelf]
mov eax, dword [ebp - 0x14]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 8
push 0x20
push edi
push 0
push 0
push 0
push 0
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
test eax, eax
jne 0x41c096
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3ed
jne 0x41c096
push 0x20
push str._Unknown_
push edi
call fcn.0041fd70
add esp, 0xc
mov dword [ebp - 4], 0xffffffff
mov al, byte [ebp - 0x10]
test al, al
je 0x41c0bf
call dword [sym.imp.ole32.dll_CoRevertToSelf]
jmp 0x41c0bf
mov al, byte [esi + 8]
test al, al
jne 0x41c0bf
lea ecx, [esi - 4]
call fcn.0041aee0
test eax, eax
jl 0x41c0da
call dword [0x4341f8]
push 0xffffffffffffffff
add esi, 0x49
push esi
call fcn.004132f0
mov ecx, dword [ebp + 0xc]
add esp, 8
mov dword [ecx], eax
xor eax, eax
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 8
Function at 0x41c0f0
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x425af8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
push esi
push edi
call dword [0x4341f8]
mov eax, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov dword [eax], 0
mov eax, dword [edi + 0x84]
test eax, eax
je 0x41c1e0
push 0x40
lea esi, [edi + 9]
push str._None_
push esi
call fcn.0041fd70
lea eax, [edi + 0xa0]
add esp, 0xc
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x41c150
sub eax, edx
mov dword [ebp + 8], eax
je 0x41c209
xor bl, bl
mov dword [ebp - 0x14], 0
mov byte [ebp - 0x10], bl
mov dword [ebp - 4], 0
mov eax, dword [edi + 0x1e4]
test eax, eax
jns 0x41c1b3
call fcn.0040a1c0
test eax, eax
mov bl, 1
mov dword [ebp - 0x14], eax
mov byte [ebp - 0x10], bl
jge 0x41c1b3
mov dword [ebp - 4], 0xffffffff
call dword [sym.imp.ole32.dll_CoRevertToSelf]
mov eax, dword [ebp - 0x14]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 8
push 0
push 0
push 0
push 0
push 0
push 0x40
push esi
lea eax, [edi + 0xa0]
push eax
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
mov dword [ebp - 4], 0xffffffff
test bl, bl
je 0x41c209
call dword [sym.imp.ole32.dll_CoRevertToSelf]
jmp 0x41c209
mov al, byte [edi + 8]
test al, al
jne 0x41c209
mov esi, edi
mov ecx, dword [esi]
push 0x426fec
push esi
call dword [ecx + 0x34]
test eax, eax
jl 0x41c224
mov edx, dword [esi]
push 0
push 0x426fec
push esi
call dword [edx + 0x38]
test eax, eax
jl 0x41c224
call dword [0x4341f8]
push 0xffffffffffffffff
add edi, 9
push edi
call fcn.004132f0
mov ecx, dword [ebp + 0xc]
add esp, 8
mov dword [ecx], eax
xor eax, eax
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 8

Function at 0x41e7f0
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 8]
push esi
call fcn.0041e660
add esp, 4
test eax, eax
jne 0x41e838
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push eax
call fcn.0041fc50
add esp, 4
push eax
push str.deleting_volume_mount_point
lea eax, [ebp - 4]
push str.error__s:__s___d_
push eax
call fcn.0041ff50
mov ecx, dword [ebp + 0x10]
add esp, 0x14
mov dword [ecx], eax
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
test esi, esi
je 0x41e85b
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x41e841
sub eax, edx
cmp eax, 3
jne 0x41e85b
cmp byte [esi + 1], 0x3a
jne 0x41e85b
cmp byte [esi + 2], 0x5c
je 0x41e885
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x41e885
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
jne 0x41e885
mov edx, dword [ebp + 0x10]
push edx
push str.deleting_directory
call fcn.0041e6f0
add esp, 8
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x41e890
Capabilities:
Get disk information via ioctl

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov edx, dword [ebp + 8]
push 0
lea eax, [ebp - 4]
push eax
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 0
push 0
push 0x2d1080
push edx
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x41e8c3
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0xc]
mov dword [eax], ecx
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x41e970
Capabilities:
Unmount volume via ioctl

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 0x18]
push ebx
mov ebx, dword [ebp + 0x14]
test ebx, ebx
push esi
push edi
mov dword [eax], 0
mov dword [ebp - 4], 1
je 0x41e996
mov dword [ebx], 0
mov esi, dword [ebp + 8]
mov edi, dword [sym.imp.KERNEL32.dll_DeviceIoControl]
push 0
lea ecx, [ebp + 0x14]
push ecx
push 0
push 0
push 0
push 0
push 0x90018
push esi
call edi
test eax, eax
mov dword [ebp - 8], eax
jne 0x41e9f8
mov eax, dword [ebp + 0xc]
test eax, eax
jne 0x41e9f8
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push eax
call fcn.0041fc50
add esp, 4
push eax
push str.locking_volume
lea edx, [ebp - 8]
push str.error__s:__s___d_
push edx
call fcn.0041ff50
mov ecx, dword [ebp + 0x18]
add esp, 0x14
pop edi
pop esi
mov dword [ecx], eax
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
push 0
lea edx, [ebp + 0x14]
push edx
push 0
push 0
push 0
push 0
push 0x90020
push esi
call edi
test eax, eax
jne 0x41ea2f
mov eax, dword [ebp + 0x18]
cmp dword [eax], 0
jne 0x41ea28
push eax
push str.dismounting_volume
call fcn.0041e6f0
add esp, 8
mov dword [ebp - 4], 0
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x41ea6f
test ebx, ebx
je 0x41ea6f
push 0
lea ecx, [ebp + 0x14]
push ecx
push 0
push 0
push 0
push 0
push eax
push esi
call edi
test eax, eax
mov dword [ebx], eax
jne 0x41ea6f
mov eax, dword [ebp + 0x18]
cmp dword [eax], 0
jne 0x41ea68
push eax
push str.sending_additional_IOCTL_to_volume
call fcn.0041e6f0
add esp, 8
mov dword [ebp - 4], 0
mov eax, dword [ebp - 8]
test eax, eax
je 0x41eaad
push 0
lea edx, [ebp + 0x14]
push edx
push 0
push 0
push 0
push 0
push 0x9001c
push esi
call edi
test eax, eax
jne 0x41eaad
mov eax, dword [ebp - 4]
test eax, eax
je 0x41eaad
mov eax, dword [ebp + 0x18]
cmp dword [eax], 0
jne 0x41eaad
push eax
push str.unlocking_volume
call fcn.0041e6f0
add esp, 8
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x41eb90
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [ebp + 8]
push ebx
push esi
push ecx
push str._sDisk
lea edx, [ebp - 0x108]
xor esi, esi
push 0x100
push edx
mov dword [ebp - 4], esi
mov dword [eax], esi
call fcn.0041fef0
add esp, 0x10
lea eax, [ebp - 4]
push eax
push 0x2001b
push esi
lea ecx, [ebp - 0x108]
push ecx
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, esi
je 0x41ec1b
push eax
push eax
call fcn.0041fc50
add esp, 4
push eax
push str.opening_registry_key
lea edx, [ebp + 8]
push str.error__s:__s___d_
push edx
call fcn.0041ff50
mov ecx, dword [ebp + 0xc]
add esp, 0x14
mov dword [ecx], eax
mov eax, dword [ebp - 4]
test eax, eax
je 0x41ec13
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 4]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push edi
push esi
lea edx, [ebp - 8]
push edx
push esi
push str.Information
push eax
mov dword [edi], esi
call ebx
cmp dword [ebp - 8], 3
jne 0x41ecad
mov ecx, dword [edi]
test ecx, ecx
je 0x41ecad
push ecx
call dword [sym.imp.MSVCR71.dll_malloc]
mov esi, eax
add esp, 4
test esi, esi
jne 0x41ec76
mov ecx, dword [ebp + 0xc]
push ecx
push str.allocating_memory
call fcn.0041e6f0
add esp, 8
test esi, esi
je 0x41ec05
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 4]
mov dword [eax], edx
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 4]
push edi
push esi
lea edx, [ebp - 8]
push edx
push 0
push str.Information
push eax
call ebx
test eax, eax
je 0x41ec62
mov ecx, dword [ebp + 0xc]
push ecx
push eax
push str.reading_disk_information
call fcn.0041e6b0
push esi
call dword [sym.imp.MSVCR71.dll_free]
add esp, 0x10
xor esi, esi
jmp 0x41ec05
push eax
push eax
call fcn.0041fc50
add esp, 4
push eax
push str.querying_DiskInformation
jmp 0x41ebef

Function at 0x41ed80
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x64
push 0x64
lea eax, [ebp - 0x64]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceA]
test eax, eax
jne 0x41eda1
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x64]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x41eda7
sub eax, edx
cmp eax, 0x10
push edi
jbe 0x41ee1b
push 0x10
lea edx, [ebp - 0x64]
push edx
push str.DeviceHarddisk
call dword [sym.imp.MSVCR71.dll__strnicmp]
add esp, 0xc
test eax, eax
jne 0x41ee1b
movsx eax, byte [ebp - 0x54]
mov edi, dword [sym.imp.MSVCR71.dll_isdigit]
push eax
call edi
add esp, 4
test eax, eax
je 0x41ee1b
push esi
mov esi, dword [sym.imp.MSVCR71.dll_atoi]
lea ecx, [ebp - 0x54]
push ecx
call esi
mov edx, dword [ebp + 8]
mov dword [edx], eax
movsx eax, byte [ebp - 0x53]
push eax
call edi
neg eax
sbb eax, eax
neg eax
add eax, 0x1b
lea ecx, [ebp + eax - 0x64]
push ecx
call esi
mov edx, dword [ebp + 0xc]
add esp, 0xc
pop esi
mov dword [edx], eax
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret
mov eax, 0x57
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x41ee70
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [ebp + 0x18]
push esi
push edi
xor edi, edi
cmp eax, edi
mov dword [ebp - 8], edi
je 0x41ee86
mov dword [eax], edi
lea eax, [ebp - 0xc]
push eax
push 0x20019
push edi
push str.SYSTEMMountedDevices
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
cmp esi, edi
je 0x41eed4
push esi
push esi
call fcn.0041fc50
add esp, 4
push eax
push str.opening_registry_key
lea ecx, [ebp + 0x18]
push str.error__s:__s___d_
push ecx
call fcn.0041ff50
mov edx, dword [ebp + 0x1c]
add esp, 0x14
mov dword [edx], eax
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
movzx eax, word [ebp + 0xc]
push eax
call dword [sym.imp.MSVCR71.dll_malloc]
add esp, 4
cmp eax, edi
mov dword [ebp - 0x10], eax
jne 0x41ef26
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 8
push 8
call fcn.0041fc50
add esp, 4
push eax
push str.allocating_memory
lea ecx, [ebp + 0x18]
push str.error__s:__s___d_
push ecx
call fcn.0041ff50
mov edx, dword [ebp + 0x1c]
add esp, 0x14
pop edi
mov dword [edx], eax
mov eax, 8
pop esi
mov esp, ebp
pop ebp
ret
mov dword [ebp - 4], edi
push ebx
lea ebx, [ebx]
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0x14]
movzx esi, word [ebp + 0xc]
lea ebx, [edi + eax]
mov eax, dword [ebp - 0x10]
sub ecx, edi
dec ecx
mov byte [ebx], 0
lea edx, [ebp - 0x14]
push edx
push eax
mov eax, dword [ebp - 4]
mov dword [ebp - 0x18], ecx
lea ecx, [ebp - 0x1c]
push ecx
mov ecx, dword [ebp - 0xc]
push 0
lea edx, [ebp - 0x18]
push edx
push ebx
push eax
push ecx
mov dword [ebp - 0x14], esi
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
cmp eax, 0xea
mov dword [ebp - 0x20], eax
jne 0x41ef79
inc dword [ebp - 4]
jmp 0x41ef30
test eax, eax
jne 0x41efcd
cmp dword [ebp - 0x1c], 3
jne 0x41efc2
cmp dword [ebp - 0x14], esi
jne 0x41efc2
mov edi, dword [ebp - 0x10]
mov ecx, esi
mov esi, dword [ebp + 8]
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
jne 0x41efbf
cmp byte [ebx], 0x23
jne 0x41efa8
mov ecx, dword [ebp + 0x18]
test ecx, ecx
je 0x41efa8
mov dword [ecx], 1
mov edx, dword [ebp - 8]
mov ecx, dword [ebp - 0x18]
lea ecx, [edx + ecx + 1]
mov edx, dword [ebp + 0x14]
add edx, 0xfffffffe
cmp ecx, edx
mov dword [ebp - 8], ecx
jae 0x41efca
mov edi, dword [ebp - 8]
inc dword [ebp - 4]
jmp 0x41ef30
mov edi, dword [ebp - 8]
mov ecx, dword [ebp + 0x14]
add ecx, 0xfffffffe
cmp edi, ecx
pop ebx
jae 0x41eff6
cmp eax, 0x103
je 0x41eff6
mov edx, dword [ebp + 0x1c]
push edx
push eax
push str.enumerating_registry_value
call fcn.0041e6b0
mov esi, dword [ebp - 0x20]
add esp, 0xc
jmp 0x41eff8
xor esi, esi
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.MSVCR71.dll_free]
add esp, 4
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x41f020
Capabilities:
Delete registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x8dc
push ebx
mov ebx, dword [ebp + 0x10]
test ebx, ebx
mov dword [ebp - 4], 0
jne 0x41f046
mov eax, dword [ebp + 0x18]
test eax, eax
jne 0x41f046
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 0x1c]
push esi
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp + 8]
push 0x800
lea ecx, [ebp - 0x8dc]
push ecx
push edx
push eax
call fcn.0041ee70
add esp, 0x18
test eax, eax
jne 0x41f1e1
push edi
lea ecx, [ebp + 0x10]
push ecx
push 0x2001f
push eax
push str.SYSTEMMountedDevices
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov edi, eax
test edi, edi
je 0x41f0c0
push edi
push edi
call fcn.0041fc50
add esp, 4
push eax
push str.opening_registry_key
lea edx, [ebp - 4]
push str.error__s:__s___d_
push edx
call fcn.0041ff50
add esp, 0x14
mov dword [esi], eax
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test ebx, ebx
je 0x41f158
mov al, byte [ebp - 0x8dc]
xor edi, edi
test al, al
je 0x41f12f
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x41f0f7
push 0xc
lea esi, [ebp + edi - 0x8dc]
push str.DosDevices_
push esi
call dword [sym.imp.MSVCR71.dll__strnicmp]
add esp, 0xc
test eax, eax
jne 0x41f10f
mov eax, dword [ebp + 0x10]
lea esi, [ebp + edi - 0x8dc]
push esi
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov ebx, eax
test ebx, ebx
jne 0x41f133
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x41f114
sub eax, edx
lea edi, [edi + eax + 1]
mov al, byte [ebp + edi - 0x8dc]
test al, al
jne 0x41f0d4
mov esi, dword [ebp + 0x1c]
xor eax, eax
jmp 0x41f15b
mov ecx, dword [ebp + 0x1c]
push ecx
push ebx
push str.deleting_the_drive_letter_registry_value
call fcn.0041e6b0
mov eax, dword [ebp + 0x10]
add esp, 0xc
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 0x18]
test ecx, ecx
je 0x41f1d2
test eax, eax
jne 0x41f1d2
lea edx, [ebp - 0x14]
push edx
mov word [ebp - 0xdc], 0x23
call dword [sym.imp.ole32.dll_CoCreateGuid]
push 0x63
lea eax, [ebp - 0xda]
push eax
lea ecx, [ebp - 0x14]
push ecx
call dword [sym.imp.ole32.dll_StringFromGUID2]
movzx edx, word [ebp + 0xc]
mov eax, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0x10]
push eax
push 3
push 0
lea ecx, [ebp - 0xdc]
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ebx, eax
test ebx, ebx
je 0x41f1d2
push esi
push ebx
push str.setting_registry_value_to_block_the_drive_letter
call fcn.0041e6b0
mov eax, dword [ebp + 0x10]
add esp, 0xc
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0x10]
push eax
xor ebx, ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x41f1f0
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x808
mov edx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 0x10]
push esi
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp + 8]
push 0x800
lea ecx, [ebp - 0x808]
push ecx
push edx
push eax
call fcn.0041ee70
add esp, 0x18
test eax, eax
jne 0x41f2cf
mov eax, dword [ebp - 8]
test eax, eax
jne 0x41f234
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 4]
push ecx
push 0x2001f
push 0
push str.SYSTEMMountedDevices
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x41f267
push esi
push eax
push str.opening_registry_key
call fcn.0041e6b0
add esp, 0xc
pop esi
mov esp, ebp
pop ebp
ret
mov al, byte [ebp - 0x808]
push ebx
push edi
xor edi, edi
test al, al
je 0x41f2bf
lea esi, [ebp - 0x808]
jmp 0x41f280
cmp byte [esi], 0x23
jne 0x41f296
mov edx, dword [ebp - 4]
push esi
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov ebx, eax
test ebx, ebx
jne 0x41f2d4
mov eax, esi
lea edx, [eax + 1]
jmp 0x41f2a0
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x41f2a0
sub eax, edx
lea edi, [edi + eax + 1]
mov al, byte [ebp + edi - 0x808]
test al, al
lea esi, [ebp + edi - 0x808]
jne 0x41f280
mov ecx, dword [ebp - 4]
push ecx
xor ebx, ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, ebx
pop ebx
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0x10]
push eax
push ebx
push str.deleting_the_drive_letter_registry_value
call fcn.0041e6b0
mov ecx, dword [ebp - 4]
add esp, 0xc
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, ebx
pop ebx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x41f8b0
Capabilities:
Check if file exists
Create directory
Delete directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 0xc]
xor ebx, ebx
test esi, esi
push edi
je 0x41f8e2
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x41f8c4
sub eax, edx
cmp eax, 3
jne 0x41f8e2
cmp byte [esi + 1], 0x3a
jne 0x41f8e2
cmp byte [esi + 2], 0x5c
je 0x41f987
mov edi, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
push esi
call edi
cmp eax, 0xffffffff
jne 0x41f931
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x41f95a
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x41f920
mov eax, dword [ebp + 0x10]
push eax
push str.creating_directory
call fcn.0041e6f0
add esp, 8
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret
push esi
call edi
cmp eax, 0xffffffff
mov ebx, 1
je 0x41f9c5
test al, 0x10
je 0x41f9c5
mov edi, dword [ebp + 0x10]
push edi
push 0
push esi
call fcn.0041e7f0
add esp, 0xc
test eax, eax
jne 0x41f98a
mov eax, dword [edi]
push eax
call dword [sym.imp.MSVCR71.dll_free]
add esp, 4
jmp 0x41f98a
push eax
push eax
call fcn.0041fc50
add esp, 4
push eax
push str.getting_file_attributes
lea ecx, [ebp + 0xc]
push str.error__s:__s___d_
push ecx
call fcn.0041ff50
mov edx, dword [ebp + 0x10]
add esp, 0x14
pop edi
pop esi
mov dword [edx], eax
xor eax, eax
pop ebx
pop ebp
ret
mov edi, dword [ebp + 0x10]
mov ecx, dword [ebp + 8]
push ecx
push esi
call fcn.0041e640
add esp, 8
test eax, eax
jne 0x41f9bb
push edi
push str.setting_volume_mount_point
call fcn.0041e6f0
add esp, 8
test ebx, ebx
je 0x41f9db
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret
pop edi
pop esi
mov eax, 1
pop ebx
pop ebp
ret
lea edx, [ebp + 0xc]
push str.mounting_volume:_mount_point_is_not_a_directory
push edx
call fcn.0041ff50
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
add esp, 8
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret
Function at 0x41ff70
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1000
call fcn.00422260
mov ecx, dword [ebp + 8]
lea eax, [ebp + 0xc]
push eax
push ecx
lea edx, [ebp - 0x1000]
push 0x1000
push edx
call fcn.0041fcf0
add esp, 0x10
lea eax, [ebp - 0x1000]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov esp, ebp
pop ebp
ret

Function at 0x420130
Capabilities:
Check if file exists
Delete file

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 0x10]
push esi
push 1
push str.SeBackupPrivilege
call fcn.0041ffb0
add esp, 0xc
test eax, eax
jne 0x420221
mov ecx, dword [ebp + 8]
push edi
lea eax, [ebp - 4]
push eax
push 0x20019
push 0
push ecx
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov edi, eax
test edi, edi
je 0x420193
push esi
push 0
push str.SeBackupPrivilege
call fcn.0041ffb0
push esi
push edi
push str.opening_key
call fcn.0041e6b0
add esp, 0x18
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push ebx
mov ebx, dword [ebp + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x4201e1
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
cmp edi, 2
je 0x4201e1
cmp edi, 3
je 0x4201e1
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push esi
push 0
push str.SeBackupPrivilege
call fcn.0041ffb0
push esi
push edi
push str.deleting_key_file
call fcn.0041e6b0
add esp, 0x18
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 4]
push 0
push ebx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSaveKeyA]
mov ecx, dword [ebp - 4]
push ecx
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
je 0x42020d
push esi
push edi
push str.saving_key
call fcn.0041e6b0
add esp, 0xc
push esi
push 0
push str.SeBackupPrivilege
call fcn.0041ffb0
add esp, 0xc
pop ebx
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x422bc0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40c
lea eax, [ebp - 4]
push eax
push 0x20019
push 0
push str.SOFTWAREVMware__Inc.VMware_Virtual_Machine_Importer
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 8], 0x400
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x422c21
push esi
lea ecx, [ebp - 8]
push ecx
mov ecx, dword [ebp - 4]
lea edx, [ebp - 0x40c]
push edx
lea eax, [ebp - 0xc]
push eax
push 0
push str.InstallPath
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edx, dword [ebp - 4]
push edx
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
pop esi
je 0x422c33
push 0x4289ba
call dword [sym.imp.MSVCR71.dll__strdup]
add esp, 4
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x40c]
push eax
call dword [sym.imp.MSVCR71.dll__strdup]
add esp, 4
mov esp, ebp
pop ebp
ret