joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140019594
Capabilities:
Get file version info

Disassembly:
mov rax, rsp
mov qword [rax + 8], rcx
push rdi
sub rsp, 0x40
mov qword [rax - 0x10], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov rbx, rdx
mov rdi, rcx
and dword [rax - 0x18], 0
mov rcx, rdx
cmp qword [rdx + 0x18], 8
jb 0x1400195c7
mov rcx, qword [rdx]
xor edx, edx
call qword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
nop dword [rax + rax]
mov esi, eax
test eax, eax
sete dl
mov rcx, qword [rsp + 0x48]
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.140014c48
mov ecx, esi
call fcn.14001c244
mov qword [rdi], rax
mov dword [rsp + 0x30], 1
cmp qword [rbx + 0x18], 8
jb 0x14001961e
mov rbx, qword [rbx]
mov r9, rax
mov r8d, esi
xor edx, edx
mov rcx, rbx
call qword [sym.imp.VERSION.dll_GetFileVersionInfoW]
nop dword [rax + rax]
mov rcx, qword [rsp + 0x48]
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.140019674
mov rax, rdi
mov rbx, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret

Function at 0x14001b6a8
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 0x14001b6f2
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14001b6f2
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14001b6f2
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14001b6f2
cmp dword [rcx + 0x84], 0xe
jbe 0x14001b6f2
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x14001b6f4
xor al, al
add rsp, 0x28
ret
Function at 0x140021a78
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 [0x14006dfb8]
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.140021940
lea r8, [0x140050bb0]
mov edx, r14d
lea rcx, [rsp + 0x50]
call fcn.1400218b4
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 0x140021b2d
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
cmp eax, 2
je 0x140021c21
mov rcx, qword [rbp + 0x188]
lea r8, [0x140050b48]
lea edx, [r14 - 0x3b]
call fcn.140016e18
mov ebx, eax
jmp 0x140021c21
lea rdx, [rsp + 0x34]
mov dword [rsp + 0x34], ebx
mov rcx, rax
mov dword [rsp + 0x30], ebx
call fcn.140020b40
mov edi, eax
test eax, eax
jns 0x140021b6a
mov rcx, qword [rbp + 0x188]
lea r8, [0x140050b48]
mov r9d, eax
mov edx, 0xcf
call fcn.140016de8
mov ebx, edi
jmp 0x140021c21
lea r8, [0x140050bb8]
mov rdx, r14
lea rcx, [rsp + 0x50]
call fcn.1400218b4
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 0x140021bc6
mov rcx, qword [rbp + 0x188]
lea r8, [0x140050b48]
mov edx, 0xd5
call fcn.140016e18
lea rcx, [rsp + 0x38]
mov ebx, eax
call fcn.14001a198
jmp 0x140021c21
lea rdx, [rsp + 0x30]
mov rcx, rax
call fcn.140020b40
mov edi, eax
test eax, eax
jns 0x140021c03
mov rcx, qword [rbp + 0x188]
lea r8, [0x140050b48]
mov r9d, eax
mov edx, 0xd7
call fcn.140016de8
lea rcx, [rsp + 0x38]
call fcn.14001a198
jmp 0x140021b63
lea rcx, [rsp + 0x38]
call fcn.14001a198
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.14001a198
mov eax, ebx
mov rcx, qword [rbp + 0x160]
xor rcx, rsp
call fcn.14001ae20
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 0x140024ed8
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, [0x140022170]
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, 0x8a
mov r9d, eax
call fcn.140019674
cmp qword [0x140070580], 0
jne 0x140024f74
cmp dword [0x14006e07c], 1
je 0x140024ff8
mov rcx, qword [rsp + 0x68]
lea rax, str.Service_control_dispatcher_failed_without_saying_so...
mov r9d, 0x8007000e
mov qword [rsp + 0x20], rax
lea r8, str.amcorewcd_source_service_src_service.cpp
mov edx, 0x8f
call fcn.140025bd8
int3
cmp dword [0x14006e07c], 1
je 0x140024ff8
call fcn.140016c38
cmp dword [rax], 2
jbe 0x140024fd8
mov ecx, dword [0x14006e07c]
lea rdx, [0x14005d269]
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.1400010b8
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

Function at 0x140029014
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 0x14002909d
lea rdx, [r11 + 0x28]
lea rcx, [r11 + 8]
call fcn.1400221fc
sub r15, r14
mov rbx, qword [rax]
cmp r14, rbp
je 0x1400290a1
mov rcx, qword [rbx + 8]
movzx edx, word [r15 + r14]
movzx esi, word [r14]
mov rax, qword [rcx]
mov rax, qword [rax + 0x40]
call qword [case.0x140030f52.0]
mov rcx, qword [rbx + 8]
movzx edx, si
movzx edi, ax
mov r8, qword [rcx]
mov rax, qword [r8 + 0x40]
call qword [case.0x140030f52.0]
cmp ax, di
jne 0x14002909d
add r14, 2
jmp 0x14002905c
xor al, al
jmp 0x1400290a3
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 0x140032770
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 [0x14006dfb8]
xor rax, rsp
mov qword [rbp + 0x27], rax
mov qword [rbp - 0x11], rcx
xor r15d, r15d
cmp qword [rdx + 0x18], 8
mov rbx, rcx
mov rdi, rdx
mov rcx, rdx
jb 0x1400327b0
mov rcx, qword [rdx]
xor r8d, r8d
xor edx, edx
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
nop dword [rax + rax]
mov esi, eax
test eax, eax
jne 0x140032843
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov r14d, eax
call fcn.140016c38
mov rsi, rax
cmp dword [rax], 2
jbe 0x140032828
mov rcx, rdi
call fcn.1400101b0
mov qword [rbp - 9], rax
lea rdx, [0x14005d717]
lea rax, str.Failed_to_expand_environment_strings_in_path
mov dword [rbp - 0x19], r14d
mov qword [rbp - 0x11], rax
mov rcx, rsi
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.140001fc8
xorps xmm0, xmm0
movups xmmword [rbx], xmm0
mov qword [rbx + 0x10], r15
mov qword [rbx + 0x18], 7
mov word [rbx], r15w
jmp 0x140032923
xor r8d, r8d
lea edx, [rax - 1]
lea rcx, [rbp + 7]
call fcn.140019184
cmp qword [rbp + 0x1f], 8
lea rdx, [rbp + 7]
mov rcx, rdi
cmovae rdx, qword [rbp + 7]
cmp qword [rdi + 0x18], 8
jb 0x14003286d
mov rcx, qword [rdi]
mov r8d, esi
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
nop dword [rax + rax]
test eax, eax
jne 0x1400328f9
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov r14d, eax
call fcn.140016c38
mov rsi, rax
cmp dword [rax], 2
jbe 0x1400328e1
mov rcx, rdi
call fcn.1400101b0
mov qword [rbp - 0x11], rax
lea rdx, [0x14005d717]
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, rsi
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.140001fc8
xorps xmm0, xmm0
movups xmmword [rbx], xmm0
mov qword [rbx + 0x10], r15
mov qword [rbx + 0x18], 7
mov word [rbx], r15w
jmp 0x14003291a
movups xmm0, xmmword [rbp + 7]
mov word [rbp + 7], r15w
movups xmm1, xmmword [rbp + 0x17]
movups xmmword [rbx], xmm0
movdqa xmm0, xmmword [0x14004c540]
movdqu xmmword [rbp + 0x17], xmm0
movups xmmword [rbx + 0x10], xmm1
lea rcx, [rbp + 7]
call fcn.1400183f8
mov rax, rbx
mov rcx, qword [rbp + 0x27]
xor rcx, rsp
call fcn.14001ae20
mov rbx, qword [rsp + 0xd0]
add rsp, 0x90
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x140034d04
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 [0x14006dfb8]
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 0x140034d99
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x38]
call fcn.140017b3c
mov rdx, rbx
lea rcx, [rsp + 0x38]
call fcn.140032714
lea rcx, [rsp + 0x38]
call fcn.1400183f8
mov rax, rbx
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.14001ae20
mov rbx, qword [rsp + 0x298]
add rsp, 0x280
pop rdi
ret
Function at 0x140035c58
Capabilities:
Check if file exists
Delete directory
Delete file
Get file attributes
Move file
Set file attributes

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
xor edi, edi
mov rbx, rcx
cmp qword [rcx + 0x18], 8
jb 0x140035c71
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
nop dword [rax + rax]
test al, 3
je 0x140035cb4
cmp qword [rbx + 0x18], 8
mov rcx, rbx
jb 0x140035c8e
mov rcx, qword [rbx]
and eax, 0xfffffffc
mov edx, eax
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
nop dword [rax + rax]
test eax, eax
jne 0x140035cb4
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
jmp 0x140035d57
cmp qword [rbx + 0x18], 8
mov rcx, rbx
jb 0x140035cc1
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
nop dword [rax + rax]
cmp eax, 0xffffffff
je 0x140035cf1
test al, 0x10
je 0x140035cf1
cmp qword [rbx + 0x18], 8
mov rcx, rbx
jb 0x140035ce3
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
nop dword [rax + rax]
jmp 0x140035d0a
cmp qword [rbx + 0x18], 8
mov rcx, rbx
jb 0x140035cfe
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
nop dword [rax + rax]
test eax, eax
jne 0x140035d55
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov edi, eax
lea edx, [rax - 2]
cmp edx, 1
jbe 0x140035d55
cmp qword [rbx + 0x18], 8
jb 0x140035d2e
mov rbx, qword [rbx]
xor edx, edx
mov rcx, rbx
lea r8d, [rdx + 4]
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
nop dword [rax + rax]
test eax, eax
jne 0x140035d55
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov edi, eax
mov eax, edi
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x1400381a8
Capabilities:
Get disk information

Disassembly:
mov rax, rsp
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x158]
sub rsp, 0x220
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov rax, qword [0x14006dfb8]
xor rax, rsp
mov qword [rbp + 0x110], rax
mov r12, rdx
mov rsi, rcx
mov qword [rbp - 0x18], rcx
call qword [sym.imp.KERNEL32.dll_GetLogicalDrives]
nop dword [rax + rax]
mov r14d, eax
xor r13d, r13d
movzx edi, r13w
lea edx, [r13 + 1]
mov cl, dil
shl edx, cl
test r14d, edx
je 0x1400383b0
lea edx, [rdi + 0x41]
lea rcx, [rbp + 0x10]
call fcn.1400377a4
nop
mov rdx, rax
lea rcx, [rbp - 0x68]
call fcn.1400374bc
nop
lea rcx, [rbp + 0x10]
call fcn.140015134
mov rbx, qword [rbp - 0x68]
test rbx, rbx
je 0x1400383a2
lea rdx, [rbp - 0x68]
lea rcx, [rbp - 0x10]
call fcn.14000c814
mov r8, rax
mov rdx, rsi
lea rcx, [rbp]
call fcn.14000c814
mov rdx, r12
mov rcx, rax
call fcn.140037fa0
call fcn.140016c38
mov r15, rax
cmp dword [rax], 4
jbe 0x1400383a2
movzx ecx, byte [rbx + 0xf0]
mov dword [rbp - 0x7c], ecx
mov cl, byte [rbx + 0xe8]
mov byte [rbp - 0x80], cl
lea rcx, [rbx + 0x68]
cmp qword [rcx + 0x18], 8
jb 0x14003829c
mov rcx, qword [rcx]
mov qword [rbp - 0x58], rcx
lea rax, [rbx + 0xa8]
cmp qword [rax + 0x18], 8
jb 0x1400382b1
mov rax, qword [rax]
mov qword [rbp - 0x50], rax
lea rax, [rbx + 0xc8]
cmp qword [rax + 0x18], 8
jb 0x1400382c6
mov rax, qword [rax]
mov qword [rbp - 0x48], rax
lea rax, [rbx + 0x88]
cmp qword [rax + 0x18], 8
jb 0x1400382db
mov rax, qword [rax]
mov qword [rbp - 0x40], rax
mov eax, dword [rbx + 0x64]
mov dword [rbp - 0x78], eax
mov al, byte [rbx + 0x60]
mov byte [rbp - 0x7f], al
lea rax, [rbx + 0x20]
cmp qword [rax + 0x18], 8
jb 0x1400382f9
mov rax, qword [rax]
mov qword [rbp - 0x38], rax
lea rax, [rbx + 0x40]
cmp qword [rax + 0x18], 8
jb 0x14003830b
mov rax, qword [rax]
mov qword [rbp - 0x30], rax
mov rcx, rbx
call fcn.1400101b0
mov qword [rbp - 0x28], rax
lea rax, str.Storage_volume_discovered
mov qword [rbp - 0x70], rax
lea rax, [rbp - 0x7c]
mov qword [rsp + 0x78], rax
lea rax, [rbp - 0x80]
mov qword [rsp + 0x70], rax
lea rax, [rbp - 0x58]
mov qword [rsp + 0x68], rax
lea rax, [rbp - 0x50]
mov qword [rsp + 0x60], rax
lea rax, [rbp - 0x48]
mov qword [rsp + 0x58], rax
lea rax, [rbp - 0x40]
mov qword [rsp + 0x50], rax
lea rax, [rbp - 0x78]
mov qword [rsp + 0x48], rax
lea rax, [rbp - 0x7f]
mov qword [rsp + 0x40], rax
lea rax, [rbp - 0x38]
mov qword [rsp + 0x38], rax
lea rax, [rbp - 0x30]
mov qword [rsp + 0x30], rax
lea rax, [rbp - 0x28]
mov qword [rsp + 0x28], rax
lea rax, [rbp - 0x70]
mov qword [rsp + 0x20], rax
lea rdx, [0x14005dc81]
mov rcx, r15
call fcn.140002558
nop
mov rcx, qword [rbp - 0x60]
test rcx, rcx
je 0x1400383b0
call fcn.14000d870
mov edx, 1
add di, dx
cmp di, 0x19
jbe 0x140038205
mov rcx, qword [rsi + 8]
test rcx, rcx
je 0x1400383d0
call fcn.14000d870
mov rcx, qword [rbp + 0x110]
xor rcx, rsp
call fcn.14001ae20
mov rbx, qword [rsp + 0x270]
add rsp, 0x220
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x140038404
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 [0x14006dfb8]
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 [0x140053a10]
movzx ecx, di
mov dword [rsp + 0x5c], eax
movzx eax, word [0x140053a14]
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 0x1400384cc
call fcn.140016c38
cmp dword [rax], 3
jbe 0x1400384b2
lea rcx, str.Invalid_drive_character
mov word [rsp + 0x40], di
mov qword [rsp + 0x48], rcx
lea rdx, [0x14005dc55]
lea rcx, [rsp + 0x40]
mov qword [rsp + 0x28], rcx
lea rcx, [rsp + 0x48]
mov qword [rsp + 0x20], rcx
mov rcx, rax
call fcn.140002904
xorps xmm0, xmm0
movups xmmword [rbx], xmm0
mov qword [rbx + 0x10], rsi
mov qword [rbx + 0x18], 7
mov word [rbx], si
jmp 0x14003856f
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 0x140038562
call fcn.140016c38
mov rdi, rax
cmp dword [rax], 3
jbe 0x1400384b2
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 0x140038520
movzx eax, ax
or eax, 0x80070000
mov dword [rsp + 0x40], eax
lea rdx, [0x14005da4a]
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.14000fc18
jmp 0x1400384b2
lea rdx, [rsp + 0x70]
mov rcx, rbx
call fcn.140017b3c
mov rax, rbx
mov rcx, qword [rbp + 0x180]
xor rcx, rsp
call fcn.14001ae20
mov rbx, qword [rsp + 0x2c0]
add rsp, 0x290
pop rdi
pop rsi
pop rbp
ret
Function at 0x1400386d8
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 [0x14006dfb8]
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 0x140038799
call fcn.140016c38
cmp dword [rax], 3
jbe 0x14003877f
lea rcx, str.Invalid_drive_character
mov word [rsp + 0x40], di
mov qword [rsp + 0x48], rcx
lea rdx, [0x14005dc55]
lea rcx, [rsp + 0x40]
mov qword [rsp + 0x28], rcx
lea rcx, [rsp + 0x48]
mov qword [rsp + 0x20], rcx
mov rcx, rax
call fcn.140002904
xorps xmm0, xmm0
movups xmmword [rbx], xmm0
mov qword [rbx + 0x10], rsi
mov qword [rbx + 0x18], 7
mov word [rbx], si
jmp 0x14003883c
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 0x14003882f
call fcn.140016c38
mov rdi, rax
cmp dword [rax], 3
jbe 0x14003877f
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 0x1400387ed
movzx eax, ax
or eax, 0x80070000
mov dword [rsp + 0x40], eax
lea rdx, [0x14005dac5]
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.14000fc18
jmp 0x14003877f
lea rdx, [rsp + 0x70]
mov rcx, rbx
call fcn.140017b3c
mov rax, rbx
mov rcx, qword [rbp + 0x180]
xor rcx, rsp
call fcn.14001ae20
mov rbx, qword [rsp + 0x2c0]
add rsp, 0x290
pop rdi
pop rsi
pop rbp
ret
Function at 0x140039048
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 [0x14006dfb8]
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.140014664
nop
xor r14d, r14d
mov dword [rbp - 0x4c], r14d
mov rcx, rdi
cmp qword [rdi + 0x18], 8
jb 0x1400390a1
mov rcx, qword [rdi]
lea r9, [rbp - 0x4c]
mov r8d, 0x104
mov rbx, qword [rbp - 0x48]
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_GetVolumePathNamesForVolumeNameW]
nop dword [rax + rax]
test eax, eax
jne 0x140039111
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
cmp eax, 0xea
jne 0x140039111
mov ebx, dword [rbp - 0x4c]
inc ebx
mov edx, ebx
lea r8, [rbp - 0x50]
lea rcx, [rbp - 0x48]
call fcn.140018d74
cmp qword [rdi + 0x18], 8
jb 0x1400390f3
mov rdi, qword [rdi]
lea r8d, [rbx - 1]
lea r9, [rbp - 0x4c]
mov rbx, qword [rbp - 0x48]
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetVolumePathNamesForVolumeNameW]
nop dword [rax + rax]
cmp word [rbx], r14w
je 0x1400391bc
or rdi, 0xffffffffffffffff
mov rax, rdi
inc rax
cmp word [rbx + rax*2], r14w
jne 0x140039122
cmp rax, 3
jne 0x14003919d
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 0x14003919d
cmp word [rbx + 2], 0x3a
jne 0x14003919d
mov rdx, rbx
lea rcx, [rbp - 0x28]
call fcn.140017b3c
mov rdx, rax
mov rcx, rsi
call fcn.14001847c
lea rcx, [rbp - 0x28]
call fcn.1400183f8
mov rdx, rsi
cmp qword [rsi + 0x18], 8
jb 0x140039179
mov rdx, qword [rsi]
mov rcx, qword [rsi + 0x10]
dec rcx
cmp word [rdx + rcx*2], 0x5c
jne 0x14003919d
mov rax, rsi
cmp qword [rsi + 0x18], 8
jb 0x140039194
mov rax, qword [rsi]
mov qword [rsi + 0x10], rcx
mov word [rax + rcx*2], r14w
mov rax, rdi
inc rax
cmp word [rbx + rax*2], r14w
jne 0x1400391a0
lea rbx, [rbx + rax*2]
add rbx, 2
cmp word [rbx], r14w
jne 0x14003911f
lea rcx, [rbp - 0x48]
call fcn.14001843c
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.14001ae20
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
Function at 0x1400391f0
Capabilities:
Get disk information

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x280
mov rax, qword [0x14006dfb8]
xor rax, rsp
mov qword [rsp + 0x270], rax
mov rbx, rdx
mov rsi, rcx
xor ebp, ebp
lea rcx, [rsp + 0x62]
xor edx, edx
mov word [rsp + 0x60], bp
mov r8d, 0x208
call sub.api_ms_win_crt_string_l1_1_0.dll_memset
cmp qword [rbx + 0x18], 8
mov rcx, rbx
jb 0x14003923d
mov rcx, qword [rbx]
add rcx, 8
lea rdx, [rsp + 0x60]
mov r8d, 0x104
call qword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
nop dword [rax + rax]
test eax, eax
jne 0x1400392cb
call fcn.140016c38
mov rdi, rax
cmp dword [rax], 3
jbe 0x1400392cb
mov rcx, rbx
call fcn.1400101b0
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 0x14003928e
movzx eax, ax
or eax, 0x80070000
mov dword [rsp + 0x40], eax
lea rdx, [0x14005da4a]
lea rax, str.QueryDosDeviceW_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.14000fc18
lea rcx, [rsi + 0x20]
lea rdx, [rsp + 0x60]
call fcn.14000f670
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.14001ae20
mov rbx, qword [rsp + 0x2b0]
add rsp, 0x280
pop rdi
pop rsi
pop rbp
ret