joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140011918
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
push r14
push r15
mov rbp, rsp
sub rsp, 0x60
mov r15, rdx
mov edi, r9d
mov rdx, rcx
mov rbx, rcx
mov rcx, r8
mov r9d, 0x20019
mov r14, r8
call fcn.140009db8
test eax, eax
jne 0x140011a37
mov rcx, r15
call fcn.140009b30
mov rsi, qword [rbp + 0x50]
mov r9d, edi
mov rcx, qword [rbx]
mov r8, rax
mov qword [rsp + 0x30], rsi
xor edx, edx
and qword [rsp + 0x28], 0
and qword [rsp + 0x20], 0
call qword [sym.imp.ADVAPI32.dll_RegGetValueW]
nop dword [rax + rax]
test eax, eax
jne 0x140011a37
mov eax, dword [rsi]
mov rdi, qword [rbp + 0x58]
mov dword [rdi], eax
dec eax
cmp eax, 0x3ffffff
ja 0x1400119ac
xor eax, eax
jmp 0x140011a37
call fcn.14001279c
mov rbx, rax
cmp dword [rax], 5
jbe 0x140011a32
mov ecx, dword [rsi]
mov dword [rbp + 0x48], ecx
mov ecx, dword [rdi]
mov dword [rbp + 0x68], ecx
mov rcx, r14
mov dword [rbp + 0x40], 0x4000000
call fcn.140009b30
mov rcx, r15
mov qword [rbp + 0x60], rax
call fcn.140009b30
mov qword [rbp - 0x10], rax
lea rdx, [0x14005dd4d]
lea rax, str.Registry_value_is_empty_or_bigger_than_max_length._Return_default_value
mov rcx, rbx
mov qword [rbp - 8], rax
lea rax, [rbp + 0x40]
mov qword [rsp + 0x48], rax
lea rax, [rbp + 0x48]
mov qword [rsp + 0x40], rax
lea rax, [rbp + 0x68]
mov qword [rsp + 0x38], rax
lea rax, [rbp + 0x60]
mov qword [rsp + 0x30], rax
lea rax, [rbp - 0x10]
mov qword [rsp + 0x28], rax
lea rax, [rbp - 8]
mov qword [rsp + 0x20], rax
call fcn.1400036a0
mov eax, 0xd
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r14
pop rbp
ret

Function at 0x140016cc4
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_GetModuleHandleW]
test rax, rax
je 0x140016d0e
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140016d0e
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140016d0e
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140016d0e
cmp dword [rcx + 0x84], 0xe
jbe 0x140016d0e
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140016d10
xor al, al
add rsp, 0x28
ret
Function at 0x14001d148
Capabilities:
Check if file exists

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rbp
push rdi
push r14
lea rbp, [rsp - 0x170]
sub rsp, 0x270
mov rax, qword [0x14006cfc0]
xor rax, rsp
mov qword [rbp + 0x160], rax
mov r9, rcx
mov r14d, 0x104
xor ebx, ebx
lea rcx, [rsp + 0x50]
mov edx, r14d
mov qword [r8], rbx
mov rsi, r8
call fcn.14001d020
lea r8, [0x1400500f0]
mov edx, r14d
lea rcx, [rsp + 0x50]
call fcn.14001cf94
lea r8, [rsp + 0x50]
xor edx, edx
mov ecx, 0x1f0003
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_OpenSemaphoreW]
nop dword [rax + rax]
mov qword [rsp + 0x40], rax
test rax, rax
jne 0x14001d1fd
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
cmp eax, 2
je 0x14001d2e3
mov rcx, qword [rbp + 0x188]
lea r8, [0x14004bd2c]
lea edx, [r14 - 0x37]
call fcn.1400129a4
mov ebx, eax
jmp 0x14001d2e3
lea rdx, [rsp + 0x34]
mov dword [rsp + 0x34], ebx
mov rcx, rax
mov dword [rsp + 0x30], ebx
call fcn.14001c250
mov edi, eax
test eax, eax
jns 0x14001d233
mov rcx, qword [rbp + 0x188]
mov r9d, eax
mov edx, 0xd3
call fcn.140012974
mov ebx, edi
jmp 0x14001d2e3
lea r8, [0x1400500f8]
mov rdx, r14
lea rcx, [rsp + 0x50]
call fcn.14001cf94
lea r8, [rsp + 0x50]
xor edx, edx
mov ecx, 0x1f0003
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_OpenSemaphoreW]
nop dword [rax + rax]
mov qword [rsp + 0x38], rax
test rax, rax
jne 0x14001d28f
mov rcx, qword [rbp + 0x188]
lea r8, [0x14004bd2c]
mov edx, 0xd9
call fcn.1400129a4
lea rcx, [rsp + 0x38]
mov ebx, eax
call fcn.1400158fc
jmp 0x14001d2e3
lea rdx, [rsp + 0x30]
mov rcx, rax
call fcn.14001c250
mov edi, eax
test eax, eax
jns 0x14001d2c5
mov rcx, qword [rbp + 0x188]
mov r9d, eax
mov edx, 0xdb
call fcn.140012974
lea rcx, [rsp + 0x38]
call fcn.1400158fc
jmp 0x14001d22c
lea rcx, [rsp + 0x38]
call fcn.1400158fc
movsxd rdx, dword [rsp + 0x30]
movsxd rcx, dword [rsp + 0x34]
shl rdx, 0x1f
or rdx, rcx
mov qword [rsi], rdx
lea rcx, [rsp + 0x40]
call fcn.1400158fc
mov eax, ebx
mov rcx, qword [rbp + 0x160]
xor rcx, rsp
call fcn.1400165f0
lea r11, [rsp + 0x270]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
Function at 0x14001e628
Capabilities:
Terminate process

Disassembly:
mov r11, rsp
sub rsp, 0x68
and qword [r11 - 0x18], 0
lea rax, str.Sense
and qword [r11 - 0x10], 0
lea rcx, [r11 - 0x28]
mov qword [r11 - 0x28], rax
lea rax, [0x14001d7d0]
mov qword [r11 - 0x20], rax
call qword [sym.imp.api_ms_win_service_core_l1_1_0.dll_StartServiceCtrlDispatcherW]
nop dword [rax + rax]
mov rcx, qword [rsp + 0x68]
lea rdx, str.Failed_to_start_service_control_dispatcher
mov qword [rsp + 0x20], rdx
lea r8, str.amcorewcd_source_service_src_service.cpp
mov edx, 0x79
mov r9d, eax
call fcn.14001611c
cmp qword [0x14006e8f0], 0
jne 0x14001e6a0
cmp dword [0x14006d0cc], 1
jne 0x14001e72a
jmp 0x14001e724
cmp dword [0x14006d0cc], 1
je 0x14001e724
call fcn.14001279c
cmp dword [rax], 2
jbe 0x14001e704
mov ecx, dword [0x14006d0cc]
lea rdx, [0x14005cb49]
mov dword [rsp + 0x70], ecx
lea rcx, str.Service_stopped_with_unexpected_service_status._Terminating_process
mov qword [rsp + 0x80], rcx
lea rcx, [rsp + 0x70]
mov qword [rsp + 0x30], rcx
lea rcx, [rsp + 0x80]
mov qword [rsp + 0x28], rcx
lea rcx, [rsp + 0x78]
mov qword [rsp + 0x20], rcx
mov rcx, rax
mov dword [rsp + 0x78], 0x507
call fcn.1400010b4
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_GetCurrentProcess]
nop dword [rax + rax]
mov rcx, rax
mov edx, 2
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_TerminateProcess]
nop dword [rax + rax]
add rsp, 0x68
ret
mov ecx, 0x8007000e
call fcn.14001625c
mov rcx, qword [rsp + 0x68]
lea r8, str.amcorewcd_source_service_src_service.cpp
mov r9d, eax
mov edx, 0x7e
lea rax, str.Service_control_dispatcher_failed_without_saying_so...
mov qword [rsp + 0x20], rax
call fcn.14001ec18
int3

Function at 0x1400227e8
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rbp
mov qword [r11 + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0x20
sub r9, r8
mov rax, rdx
sub rax, rcx
mov r15, r8
xor rax, r9
mov rbp, rdx
mov r14, rcx
test rax, 0xfffffffffffffffe
jne 0x14002286f
lea rdx, [r11 + 0x28]
lea rcx, [r11 + 8]
call fcn.1400220e0
sub r15, r14
mov rbx, qword [rax]
cmp r14, rbp
je 0x140022873
mov rcx, qword [rbx + 8]
movzx edx, word [r15 + r14]
movzx esi, word [r14]
mov rax, qword [rcx]
mov rax, qword [rax + 0x40]
call fcn.140047010
mov rcx, qword [rbx + 8]
movzx edi, ax
movzx edx, si
mov r8, qword [rcx]
mov rax, qword [r8 + 0x40]
call fcn.140047010
cmp ax, di
jne 0x14002286f
add r14, 2
jmp 0x140022830
xor al, al
jmp 0x140022875
mov al, 1
mov rbx, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x20
pop r15
pop r14
pop rdi
ret
Function at 0x140024880
Capabilities:
Get file version info

Disassembly:
mov rax, rsp
mov qword [rax + 8], rcx
push rsi
push rdi
push r14
sub rsp, 0x40
mov qword [rax - 0x20], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
mov rbp, rdx
mov r14, rcx
and dword [rax - 0x28], 0
mov rcx, rdx
call fcn.140009b30
xor edx, edx
mov rcx, rax
call qword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
nop dword [rax + rax]
mov esi, eax
test eax, eax
sete dl
mov rcx, qword [rsp + 0x58]
lea rax, str.Could_not_read_file_version_info
mov qword [rsp + 0x20], rax
movzx r9d, dl
lea r8, str.amcorewcd_sourcecommon_src_versioninfo.cpp
mov edx, 0x87
call fcn.14000fb88
mov ecx, esi
call fcn.1400179c4
mov rdi, rax
mov r8d, esi
xor edx, edx
mov rcx, rax
call sub.api_ms_win_crt_string_l1_1_0.dll_memset
mov qword [r14], rdi
mov dword [rsp + 0x30], 3
mov rcx, rbp
call fcn.140009b30
mov r9, rdi
mov r8d, esi
xor edx, edx
mov rcx, rax
call qword [sym.imp.VERSION.dll_GetFileVersionInfoW]
nop dword [rax + rax]
mov rcx, qword [rsp + 0x58]
lea rdx, str.Could_not_retrieve_file_version_info
mov qword [rsp + 0x20], rdx
mov r9d, eax
lea r8, str.amcorewcd_sourcecommon_src_versioninfo.cpp
mov edx, 0x90
call fcn.14001611c
mov rax, r14
mov rbx, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x70]
add rsp, 0x40
pop r14
pop rdi
pop rsi
ret
Function at 0x14002ae50
Capabilities:
Check if file exists
Query environment variable

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x37]
sub rsp, 0x90
mov rax, qword [0x14006cfc0]
xor rax, rsp
mov qword [rbp + 0x27], rax
mov rdi, rcx
mov qword [rbp - 0x11], rcx
mov rcx, rdx
mov rsi, rdx
xor r15d, r15d
call fcn.140009b30
xor r8d, r8d
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
nop dword [rax + rax]
mov r14d, eax
test eax, eax
jne 0x14002af22
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov r14d, eax
call fcn.14001279c
mov rbx, rax
cmp dword [rax], 2
jbe 0x14002af07
mov rcx, rsi
call fcn.140009b30
mov qword [rbp - 9], rax
lea rdx, [0x14005cf64]
lea rax, str.Failed_to_expand_environment_strings_in_path
mov dword [rbp - 0x19], r14d
mov qword [rbp - 0x11], rax
mov rcx, rbx
lea rax, [rbp - 9]
mov qword [rsp + 0x30], rax
lea rax, [rbp - 0x11]
mov qword [rsp + 0x28], rax
lea rax, [rbp - 0x19]
mov qword [rsp + 0x20], rax
call fcn.140002058
xorps xmm0, xmm0
movups xmmword [rdi], xmm0
mov qword [rdi + 0x10], r15
mov qword [rdi + 0x18], 7
mov word [rdi], r15w
jmp 0x14002b001
xor r8d, r8d
lea edx, [rax - 1]
lea rcx, [rbp + 7]
call fcn.1400149f4
lea rcx, [rbp + 7]
call fcn.140009b30
mov rcx, rsi
mov rbx, rax
call fcn.140009b30
mov r8d, r14d
mov rdx, rbx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
nop dword [rax + rax]
test eax, eax
jne 0x14002afd7
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov r14d, eax
call fcn.14001279c
mov rbx, rax
cmp dword [rax], 2
jbe 0x14002afbf
mov rcx, rsi
call fcn.140009b30
mov qword [rbp - 0x11], rax
lea rdx, [0x14005cf64]
lea rax, str.Failed_to_expand_environment_strings_in_path_after_increasing_buffer_size
mov dword [rbp - 0x19], r14d
mov qword [rbp - 9], rax
mov rcx, rbx
lea rax, [rbp - 0x11]
mov qword [rsp + 0x30], rax
lea rax, [rbp - 9]
mov qword [rsp + 0x28], rax
lea rax, [rbp - 0x19]
mov qword [rsp + 0x20], rax
call fcn.140002058
xorps xmm0, xmm0
movups xmmword [rdi], xmm0
mov qword [rdi + 0x10], r15
mov qword [rdi + 0x18], 7
mov word [rdi], r15w
jmp 0x14002aff8
movups xmm0, xmmword [rbp + 7]
mov word [rbp + 7], r15w
movups xmm1, xmmword [rbp + 0x17]
movups xmmword [rdi], xmm0
movdqa xmm0, xmmword [0x14004bc00]
movdqu xmmword [rbp + 0x17], xmm0
movups xmmword [rdi + 0x10], xmm1
lea rcx, [rbp + 7]
call fcn.140013e34
mov rax, rdi
mov rcx, qword [rbp + 0x27]
xor rcx, rsp
call fcn.1400165f0
mov rbx, qword [rsp + 0xd0]
add rsp, 0x90
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x14002b270
Capabilities:
Get common file path

Disassembly:
push rbx
sub rsp, 0x20
and qword [rsp + 0x38], 0
mov rbx, r8
mov r8, qword [rdx]
test r8, r8
je 0x14002b28a
mov r8, qword [r8]
lea r9, [rsp + 0x38]
xor edx, edx
call qword [sym.imp.SHELL32.dll_SHGetKnownFolderPath]
nop dword [rax + rax]
test eax, eax
js 0x14002b2c1
mov rdx, qword [rsp + 0x38]
mov rcx, rbx
call fcn.14000b390
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
nop dword [rax + rax]
xor eax, eax
add rsp, 0x20
pop rbx
ret
Function at 0x14002d77c
Capabilities:
Get common file path

Disassembly:
mov rax, rsp
push rdi
sub rsp, 0x280
mov qword [rsp + 0x28], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov rax, qword [0x14006cfc0]
xor rax, rsp
mov qword [rsp + 0x270], rax
mov rbx, rcx
mov qword [rsp + 0x30], rcx
xor edi, edi
mov dword [rsp + 0x20], edi
xorps xmm0, xmm0
movups xmmword [rcx], xmm0
mov qword [rcx + 0x10], rdi
mov qword [rcx + 0x18], 7
mov word [rcx], di
mov dword [rsp + 0x20], 1
mov edx, 0x103
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
nop dword [rax + rax]
test eax, eax
je 0x14002d811
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x38]
call fcn.14001356c
mov rdx, rbx
lea rcx, [rsp + 0x38]
call fcn.14002adf4
lea rcx, [rsp + 0x38]
call fcn.140013e34
mov rax, rbx
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.1400165f0
mov rbx, qword [rsp + 0x298]
add rsp, 0x280
pop rdi
ret
Function at 0x14002e704
Capabilities:
Check if file exists
Delete directory
Delete file
Get file attributes
Move file
Set file attributes

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rdi, rcx
xor ebx, ebx
call fcn.140009b30
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
nop dword [rax + rax]
mov esi, eax
test al, 3
je 0x14002e763
mov rcx, rdi
call fcn.140009b30
and esi, 0xfffffffc
mov rcx, rax
mov edx, esi
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
nop dword [rax + rax]
test eax, eax
jne 0x14002e763
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
jmp 0x14002e7fe
mov rcx, rdi
call fcn.140009b30
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
nop dword [rax + rax]
cmp eax, 0xffffffff
je 0x14002e79c
test al, 0x10
je 0x14002e79c
mov rcx, rdi
call fcn.140009b30
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
nop dword [rax + rax]
jmp 0x14002e7b3
mov rcx, rdi
call fcn.140009b30
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
nop dword [rax + rax]
test eax, eax
jne 0x14002e7fc
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
lea ecx, [rax - 2]
cmp ecx, 1
jbe 0x14002e7fc
mov rcx, rdi
call fcn.140009b30
xor edx, edx
mov rcx, rax
lea r8d, [rdx + 4]
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
nop dword [rax + rax]
test eax, eax
jne 0x14002e7fc
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
mov eax, ebx
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x140031cd8
Capabilities:
Get disk information via ioctl

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rdi
push rbp
lea rbp, [r11 - 0x5f]
sub rsp, 0x90
mov rax, qword [0x14006cfc0]
xor rax, rsp
mov qword [rbp + 0x4f], rax
xorps xmm0, xmm0
lea rax, [rbp + 0xb]
xor edi, edi
xor r9d, r9d
mov qword [r11 - 0x60], rdi
xor r8d, r8d
mov qword [r11 - 0x68], rax
mov edx, 0x560000
lea rax, [rbp + 0x2f]
mov dword [rsp + 0x28], 0x20
mov qword [r11 - 0x78], rax
mov rbx, rcx
movups xmmword [rbp + 0x2f], xmm0
mov dword [rbp + 0xb], edi
movups xmmword [rbp + 0x3f], xmm0
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
nop dword [rax + rax]
test eax, eax
je 0x140031de6
cmp dword [rbp + 0x2f], 1
jne 0x140031d96
mov ebx, dword [rbp + 0x37]
call fcn.14001279c
cmp dword [rax], 4
jbe 0x140031ea6
lea rcx, str.Target_device_storage_details
mov dword [rbp + 7], ebx
mov qword [rbp + 0xf], rcx
lea rdx, [0x14005d468]
lea rcx, [rbp + 7]
mov qword [rsp + 0x28], rcx
lea rcx, [rbp + 0xf]
mov qword [rsp + 0x20], rcx
mov rcx, rax
call fcn.14000d208
jmp 0x140031ea6
call fcn.14001279c
cmp dword [rax], 2
jbe 0x140031ea3
mov ecx, dword [rbp + 0x2f]
lea rdx, [0x14005d2f1]
mov dword [rbp + 7], ecx
lea rcx, str.Unsupported_removable_device_volume_detected._Volume_disk_extent___1
mov qword [rbp + 0x17], rcx
lea rcx, [rbp + 7]
mov qword [rsp + 0x30], rcx
lea rcx, [rbp + 0x17]
mov qword [rsp + 0x28], rcx
lea rcx, [rbp + 0xf]
mov qword [rsp + 0x20], rcx
mov rcx, rax
mov dword [rbp + 0xf], 0x80004005
jmp 0x140031e9e
xor eax, eax
mov qword [rsp + 0x38], rdi
mov qword [rbp + 0x1f], rax
xor r9d, r9d
mov dword [rbp + 0x27], eax
xor r8d, r8d
lea rax, [rbp + 0xb]
mov dword [rbp + 0xb], edi
mov qword [rsp + 0x30], rax
mov edx, 0x2d1080
lea rax, [rbp + 0x1f]
mov dword [rsp + 0x28], 0xc
mov rcx, rbx
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
nop dword [rax + rax]
test eax, eax
je 0x140031e34
mov ebx, dword [rbp + 0x23]
jmp 0x140031ea6
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
jle 0x140031e4f
movzx ebx, ax
or ebx, 0x80070000
call fcn.14001279c
mov rdi, rax
cmp dword [rax], 2
jbe 0x140031ea3
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov dword [rbp + 7], ebx
lea rdx, [0x14005d2b7]
mov dword [rbp + 0xf], eax
mov rcx, rdi
lea rax, str.DeviceIoControl___failed
mov qword [rbp + 0x17], rax
lea rax, [rbp + 0xf]
mov qword [rsp + 0x30], rax
lea rax, [rbp + 0x17]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 7]
mov qword [rsp + 0x20], rax
call fcn.1400010b4
or ebx, 0xffffffff
mov eax, ebx
mov rcx, qword [rbp + 0x4f]
xor rcx, rsp
call fcn.1400165f0
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
Function at 0x140031ed0
Capabilities:
Get disk information

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
lea rbp, [rsp - 0x190]
sub rsp, 0x290
mov rax, qword [0x14006cfc0]
xor rax, rsp
mov qword [rbp + 0x180], rax
movzx edi, dx
mov qword [rsp + 0x50], rcx
mov rbx, rcx
xor edx, edx
lea rcx, [rsp + 0x70]
mov r8d, 0x20a
xor esi, esi
call sub.api_ms_win_crt_string_l1_1_0.dll_memset
mov eax, dword [0x140053648]
movzx ecx, di
mov dword [rsp + 0x5c], eax
movzx eax, word [0x14005364c]
mov word [rsp + 0x60], ax
call qword [sym.imp.api_ms_win_crt_private_l1_1_0.dll__o_iswalpha]
nop dword [rax + rax]
test eax, eax
jne 0x140031f98
call fcn.14001279c
cmp dword [rax], 3
jbe 0x140031f7e
lea rcx, str.Invalid_drive_character
mov word [rsp + 0x40], di
mov qword [rsp + 0x48], rcx
lea rdx, [0x14005d66a]
lea rcx, [rsp + 0x40]
mov qword [rsp + 0x28], rcx
lea rcx, [rsp + 0x48]
mov qword [rsp + 0x20], rcx
mov rcx, rax
call fcn.140002a2c
xorps xmm0, xmm0
movups xmmword [rbx], xmm0
mov qword [rbx + 0x10], rsi
mov qword [rbx + 0x18], 7
mov word [rbx], si
jmp 0x14003203b
mov r8d, 0x104
mov word [rsp + 0x5c], di
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x5c]
call qword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
nop dword [rax + rax]
test eax, eax
jne 0x14003202e
call fcn.14001279c
mov rdi, rax
cmp dword [rax], 3
jbe 0x140031f7e
lea rax, [rsp + 0x5c]
mov qword [rsp + 0x48], rax
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
test eax, eax
jle 0x140031fec
movzx eax, ax
or eax, 0x80070000
mov dword [rsp + 0x40], eax
lea rdx, [0x14005d32d]
lea rax, str.QueryDosDevice_for_volume_without_a_drive_letter_failed
mov rcx, rdi
mov qword [rsp + 0x50], rax
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
call fcn.14000d108
jmp 0x140031f7e
lea rdx, [rsp + 0x70]
mov rcx, rbx
call fcn.14001356c
mov rax, rbx
mov rcx, qword [rbp + 0x180]
xor rcx, rsp
call fcn.1400165f0
mov rbx, qword [rsp + 0x2c0]
add rsp, 0x290
pop rdi
pop rsi
pop rbp
ret
Function at 0x140033064
Capabilities:
Get disk information

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
lea rbp, [rsp - 0x190]
sub rsp, 0x290
mov rax, qword [0x14006cfc0]
xor rax, rsp
mov qword [rbp + 0x180], rax
movzx edi, dx
mov qword [rsp + 0x50], rcx
mov rbx, rcx
xor edx, edx
lea rcx, [rsp + 0x70]
mov r8d, 0x20a
xor esi, esi
call sub.api_ms_win_crt_string_l1_1_0.dll_memset
movabs rax, 0x5c003a0024
movzx ecx, di
mov qword [rsp + 0x60], rax
call qword [sym.imp.api_ms_win_crt_private_l1_1_0.dll__o_iswalpha]
nop dword [rax + rax]
test eax, eax
jne 0x140033125
call fcn.14001279c
cmp dword [rax], 3
jbe 0x14003310b
lea rcx, str.Invalid_drive_character
mov word [rsp + 0x40], di
mov qword [rsp + 0x48], rcx
lea rdx, [0x14005d66a]
lea rcx, [rsp + 0x40]
mov qword [rsp + 0x28], rcx
lea rcx, [rsp + 0x48]
mov qword [rsp + 0x20], rcx
mov rcx, rax
call fcn.140002a2c
xorps xmm0, xmm0
movups xmmword [rbx], xmm0
mov qword [rbx + 0x10], rsi
mov qword [rbx + 0x18], 7
mov word [rbx], si
jmp 0x1400331c8
mov r8d, 0x104
mov word [rsp + 0x60], di
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_GetVolumeNameForVolumeMountPointW]
nop dword [rax + rax]
test eax, eax
jne 0x1400331bb
call fcn.14001279c
mov rdi, rax
cmp dword [rax], 3
jbe 0x14003310b
lea rax, [rsp + 0x60]
mov qword [rsp + 0x48], rax
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
test eax, eax
jle 0x140033179
movzx eax, ax
or eax, 0x80070000
mov dword [rsp + 0x40], eax
lea rdx, [0x14005d412]
lea rax, str.GetVolumeNameForVolumeMountPoint_for_driver_letter_without_a_volume
mov rcx, rdi
mov qword [rsp + 0x50], rax
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
call fcn.14000d108
jmp 0x14003310b
lea rdx, [rsp + 0x70]
mov rcx, rbx
call fcn.14001356c
mov rax, rbx
mov rcx, qword [rbp + 0x180]
xor rcx, rsp
call fcn.1400165f0
mov rbx, qword [rsp + 0x2c0]
add rsp, 0x290
pop rdi
pop rsi
pop rbp
ret
Function at 0x140033ac4
Capabilities:
Get disk information

Disassembly:
mov rax, rsp
push rbp
push rdi
push r14
mov rbp, rsp
sub rsp, 0x70
mov qword [rbp - 0x30], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rsi
mov rax, qword [0x14006cfc0]
xor rax, rsp
mov qword [rbp - 8], rax
mov rdi, rdx
mov rsi, rcx
lea r8, [rbp - 0x50]
mov edx, 0x105
lea rcx, [rbp - 0x48]
call fcn.14000f3d4
nop
xor r14d, r14d
mov dword [rbp - 0x4c], r14d
mov rcx, rdi
call fcn.140009b30
lea r9, [rbp - 0x4c]
mov r8d, 0x104
mov rbx, qword [rbp - 0x48]
mov rdx, rbx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetVolumePathNamesForVolumeNameW]
nop dword [rax + rax]
test eax, eax
jne 0x140033c21
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
cmp eax, 0xea
jne 0x140033c21
mov ebx, dword [rbp - 0x4c]
inc ebx
mov edx, ebx
lea r8, [rbp - 0x50]
lea rcx, [rbp - 0x48]
call fcn.14001471c
mov rcx, rdi
call fcn.140009b30
lea r8d, [rbx - 1]
lea r9, [rbp - 0x4c]
mov rbx, qword [rbp - 0x48]
mov rdx, rbx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetVolumePathNamesForVolumeNameW]
nop dword [rax + rax]
jmp 0x140033c21
or rax, 0xffffffffffffffff
inc rax
cmp word [rbx + rax*2], r14w
jne 0x140033b9a
cmp rax, 3
jne 0x140033c0b
movzx ecx, word [rbx]
call qword [sym.imp.api_ms_win_crt_private_l1_1_0.dll__o_isalpha]
nop dword [rax + rax]
test eax, eax
je 0x140033c0b
cmp word [rbx + 2], 0x3a
jne 0x140033c0b
mov rdx, rbx
lea rcx, [rbp - 0x28]
call fcn.14001356c
mov rdx, rax
mov rcx, rsi
call fcn.140013ec8
lea rcx, [rbp - 0x28]
call fcn.140013e34
mov rcx, rsi
call fcn.140009b30
mov rdi, qword [rsi + 0x10]
dec rdi
cmp word [rax + rdi*2], 0x5c
jne 0x140033c0b
mov rcx, rsi
call fcn.140009b30
mov qword [rsi + 0x10], rdi
mov word [rax + rdi*2], r14w
or rax, 0xffffffffffffffff
inc rax
cmp word [rbx + rax*2], r14w
jne 0x140033c0f
lea rbx, [rbx + rax*2]
add rbx, 2
cmp word [rbx], r14w
jne 0x140033b96
lea rcx, [rbp - 0x48]
call fcn.140013e88
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.1400165f0
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret