joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14025360c
Capabilities:
Get hostname

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xb0
mov rax, qword [0x1404e1800]
xor rax, rsp
mov qword [rbp + 0x37], rax
mov r14, rcx
lea rcx, [rbp - 0x31]
call fcn.140253b7c
nop
mov rbx, qword [rbp - 0x31]
mov rdi, qword [rbp - 0x29]
jmp 0x1402536ae
mov rdx, r14
lea rcx, [rbx + 8]
call fcn.140253464
cmp word [rbx], 0x17
jne 0x1402536aa
lea r8, [rbx + 8]
lea rdx, [0x1403e5a44]
lea rcx, [rbp + 0x17]
call fcn.140077558
nop
lea r8, [0x1403e5a48]
mov rdx, rax
lea rcx, [rbp - 9]
call fcn.140076bd4
nop
lea rcx, [rbp + 0x17]
call fcn.14007a7c0
mov rdx, r14
lea rcx, [rbp - 9]
call fcn.140253464
nop
lea rcx, [rbp - 9]
call fcn.14007a7c0
add rbx, 0x28
cmp rbx, rdi
jne 0x140253650
mov edx, 0x80
mov rax, qword gs:[0x58]
mov rcx, qword [rax]
mov eax, dword [rdx + rcx]
cmp dword [0x1405086d0], eax
jg 0x14025383f
mov rbx, qword [0x1405086b8]
mov rdi, qword [0x1405086c0]
jmp 0x1402537c5
mov r15d, dword [rbx]
xorps xmm0, xmm0
movdqu xmmword [rbp - 9], xmm0
and qword [rbp + 7], 0
and dword [rbp - 0x39], 0
lea r8, [rbp - 0x39]
xor edx, edx
mov ecx, r15d
call qword [sym.imp.KERNEL32.dll_GetComputerNameExW]
nop dword [rax + rax]
mov eax, dword [rbp - 0x39]
test eax, eax
je 0x1402537b8
mov edx, eax
lea rcx, [rbp - 9]
call fcn.1401f7390
lea r8, [rbp - 0x39]
mov rsi, qword [rbp - 9]
mov rdx, rsi
mov ecx, r15d
call qword [sym.imp.KERNEL32.dll_GetComputerNameExW]
nop dword [rax + rax]
test eax, eax
je 0x14025376f
mov eax, dword [rbp - 0x39]
lea r8, [rsi + rax*2]
mov rdx, rsi
lea rcx, [rbp + 0x17]
call fcn.1402507c4
nop
mov rdx, r14
lea rcx, [rbp + 0x17]
call fcn.140253464
nop
lea rcx, [rbp + 0x17]
call fcn.14007a7c0
jmp 0x1402537b8
call fcn.140091ae4
mov rsi, rax
cmp dword [rax], 2
jbe 0x1402537b8
lea rax, str.Failed_to_retrieve_PC_name
mov qword [rbp - 0x19], rax
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov dword [rbp - 0x35], eax
lea rax, [rbp - 0x19]
mov qword [rsp + 0x28], rax
lea rax, [rbp - 0x35]
mov qword [rsp + 0x20], rax
lea rdx, [0x14044e747]
mov rcx, rsi
call fcn.14000b51c
nop
lea rcx, [rbp - 9]
call fcn.1400f6764
add rbx, 4
cmp rbx, rdi
jne 0x1402536e6
mov rbx, qword [rbp - 0x31]
test rbx, rbx
je 0x140253815
mov rdx, qword [rbp - 0x29]
mov rcx, rbx
call fcn.140103eb4
mov rdx, qword [rbp - 0x21]
sub rdx, rbx
movabs rax, 0x6666666666666667
imul rdx
sar rdx, 4
mov rax, rdx
shr rax, 0x3f
add rdx, rax
lea rdx, [rdx + rdx*4]
shl rdx, 3
mov rcx, rbx
call fcn.14007e6f0
mov rcx, qword [rbp + 0x37]
xor rcx, rsp
call fcn.140112420
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
lea rcx, [0x1405086d0]
call fcn.140118680
cmp dword [0x1405086d0], 0xffffffff
jne 0x1402536d3
and dword [rbp - 0x19], 0
mov dword [rbp - 0x15], 1
mov dword [rbp - 0x11], 3
lea r8, [rbp - 0xd]
lea rdx, [rbp - 0x19]
call fcn.140252414
lea rcx, [0x14038add0]
call fcn.1401129d0
nop
lea rcx, [0x1405086d0]
call fcn.140118618
jmp 0x1402536d3
Function at 0x140253d64
Capabilities:
Check if file exists

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push rbp
lea rbp, [rax - 0x78]
sub rsp, 0x170
mov rax, qword [0x1404e1800]
xor rax, rsp
mov qword [rbp + 0x60], rax
mov rdi, rcx
mov qword [rsp + 0x40], rcx
mov r8d, 0x104
lea rdx, [0x1405084b0]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
nop dword [rax + rax]
xor esi, esi
test eax, eax
jne 0x140253e30
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
call fcn.140091ae4
cmp dword [rax], 2
jbe 0x140253e1c
mov dword [rsp + 0x48], ebx
lea rcx, str.GetModuleFileName_failed
mov qword [rsp + 0x40], rcx
test ebx, ebx
jle 0x140253deb
movzx ebx, bx
or ebx, 0x80070000
mov dword [rsp + 0x50], ebx
lea rcx, [rsp + 0x48]
mov qword [rsp + 0x30], rcx
lea rcx, [rsp + 0x40]
mov qword [rsp + 0x28], rcx
lea rcx, [rsp + 0x50]
mov qword [rsp + 0x20], rcx
lea rdx, [0x14044e7a5]
mov rcx, rax
call fcn.14000c8ac
lea rdx, [0x1403a9f84]
mov rcx, rdi
call fcn.14008c350
jmp 0x140253f4e
movdqa xmm0, xmmword [0x1403a9cf0]
movdqu xmmword [rbp + 0x10], xmm0
mov word [rbp], si
movdqu xmmword [rbp - 0x10], xmm0
mov word [rbp - 0x20], si
movdqu xmmword [rbp + 0x50], xmm0
mov word [rbp + 0x40], si
movdqu xmmword [rbp + 0x30], xmm0
mov word [rbp + 0x20], si
mov r8d, eax
lea rdx, [0x1405084b0]
lea rcx, [rbp - 0x40]
call fcn.140076ad8
nop
lea rcx, [rbp + 0x20]
mov qword [rsp + 0x20], rcx
lea r9, [rbp + 0x40]
lea r8, [rbp - 0x20]
lea rdx, [rbp]
mov rcx, rax
call fcn.140255608
test al, al
sete bl
lea rcx, [rbp - 0x40]
call fcn.14007a7c0
test bl, bl
je 0x140253eb0
lea rdx, [0x1403a9f84]
mov rcx, rdi
call fcn.14008c350
jmp 0x140253f27
lea rax, [rsp + 0x58]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x68], rsi
mov ecx, 7
mov qword [rsp + 0x70], rcx
mov word [rsp + 0x58], si
lea rax, [rbp - 0x40]
mov qword [rsp + 0x50], rax
mov qword [rbp - 0x30], rsi
mov qword [rbp - 0x28], rcx
mov word [rbp - 0x40], si
lea rax, [rbp - 0x80]
mov qword [rsp + 0x48], rax
lea rdx, [rbp - 0x20]
lea rcx, [rbp - 0x80]
call fcn.140099980
mov rbx, rax
lea rdx, [rbp]
lea rcx, [rbp - 0x60]
call fcn.140099980
nop
lea rcx, [rsp + 0x58]
mov qword [rsp + 0x20], rcx
lea r9, [rbp - 0x40]
mov r8, rbx
mov rdx, rax
mov rcx, rdi
call fcn.140254de0
nop
lea rcx, [rbp + 0x20]
call fcn.14007a7c0
nop
lea rcx, [rbp + 0x40]
call fcn.14007a7c0
nop
lea rcx, [rbp - 0x20]
call fcn.14007a7c0
nop
lea rcx, [rbp]
call fcn.14007a7c0
mov rax, rdi
mov rcx, qword [rbp + 0x60]
xor rcx, rsp
call fcn.140112420
lea r11, [rsp + 0x170]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
Function at 0x140254534
Capabilities:
Check if file exists
Get common file path

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rdi
push rbp
lea rbp, [rsp - 0x170]
sub rsp, 0x270
mov rax, qword [0x1404e1800]
xor rax, rsp
mov qword [rbp + 0x160], rax
mov qword [rsp + 0x38], rcx
mov rbx, rcx
cmp qword [0x1404e28e8], 0
jne 0x140254635
lea rcx, str.Kernelbase.dll
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_GetModuleHandleW]
nop dword [rax + rax]
test rax, rax
je 0x1402545e9
lea rdx, str.GetTempPath2W
mov rcx, rax
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_GetProcAddress]
nop dword [rax + rax]
mov rcx, rax
test rax, rax
je 0x1402545b8
xor eax, eax
lock cmpxchg qword [0x1404e28e8], rcx
jmp 0x140254635
call fcn.140091ae4
cmp dword [rax], 3
jbe 0x140254635
lea rcx, str.Unable_to_find_GetTempPath2W_in_kernelbase.dll
mov qword [rsp + 0x40], rcx
lea rdx, [0x14044e7db]
lea rcx, [rsp + 0x40]
mov qword [rsp + 0x20], rcx
mov rcx, rax
call fcn.140005ab4
jmp 0x140254635
call fcn.140091ae4
mov rdi, rax
cmp dword [rax], 2
jbe 0x140254635
lea rax, str.Unable_to_get_kernelbase.dll_base_address
mov qword [rsp + 0x48], rax
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov dword [rsp + 0x30], eax
lea rdx, [0x14044e747]
lea rax, [rsp + 0x48]
mov rcx, rdi
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
call fcn.14000b51c
xor edx, edx
lea rcx, [rsp + 0x50]
mov r8d, 0x20a
call sub.api_ms_win_crt_string_l1_1_0.dll_memset
mov rax, qword [0x1404e28e8]
lea rdx, [rsp + 0x50]
mov ecx, 0x104
test rax, rax
je 0x140254665
call qword [case.0x1400ae9d9.0]
jmp 0x140254671
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
nop dword [rax + rax]
lea ecx, [rax - 1]
cmp ecx, 0x103
ja 0x140254683
lea rdx, [rsp + 0x50]
jmp 0x1402546d5
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov edi, eax
call fcn.140091ae4
cmp dword [rax], 2
jbe 0x1402546ce
lea rcx, str.Unable_to_get_temp_directory
mov dword [rsp + 0x34], edi
mov qword [rsp + 0x38], rcx
lea rdx, [0x14044e747]
lea rcx, [rsp + 0x38]
mov qword [rsp + 0x28], rcx
lea rcx, [rsp + 0x34]
mov qword [rsp + 0x20], rcx
mov rcx, rax
call fcn.14000b51c
lea rdx, [0x1403a9f84]
mov rcx, rbx
call fcn.14008c350
mov rax, rbx
mov rcx, qword [rbp + 0x160]
xor rcx, rsp
call fcn.140112420
lea r11, [rsp + 0x270]
mov rbx, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
Function at 0x1402553bc
Capabilities:
Accept command line arguments

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r14
lea rbp, [rsp - 0x37]
sub rsp, 0xf0
mov rax, qword [0x1404e1800]
xor rax, rsp
mov qword [rbp + 0x27], rax
mov rsi, r8
mov r14, rdx
mov rdi, rcx
cmp qword [rcx + 0x10], 0
jne 0x14025540f
lea rdi, [0x1403a9f84]
mov rdx, rdi
mov rcx, r14
call fcn.14007d630
mov rdx, rdi
mov rcx, rsi
call fcn.14007d630
jmp 0x1402555e5
and dword [rbp - 0x79], 0
cmp qword [rcx + 0x18], 8
jb 0x14025541d
mov rcx, qword [rcx]
lea rdx, [rbp - 0x79]
call qword [sym.imp.api_ms_win_shcore_obsolete_l1_1_0.dll_CommandLineToArgvW]
nop dword [rax + rax]
mov rbx, rax
mov qword [rbp - 0x61], rax
test rax, rax
je 0x14025555f
cmp dword [rbp - 0x79], 1
jl 0x14025555f
mov rdx, qword [rax]
mov rcx, r14
call fcn.14007d630
cmp dword [rbp - 0x79], 1
jle 0x14025545e
mov rdi, qword [rbx + 8]
jmp 0x140255465
lea rdi, [0x1403a9f84]
mov rdx, rdi
mov rcx, rsi
call fcn.14007d630
mov edi, 2
cmp dword [rbp - 0x79], edi
jle 0x1402555dc
add rbx, 0x10
mov rdx, qword [rbx]
lea rcx, [rbp - 0x59]
call fcn.14008c350
nop
xor r8d, r8d
lea rdx, [0x1403e5c70]
lea rcx, [rbp - 0x59]
call fcn.1400c7a20
mov rdx, rsi
cmp rax, 0xffffffffffffffff
jne 0x1402554e7
lea r8, [0x1403e5c70]
lea rcx, [rbp - 0x19]
call fcn.1400b9f70
nop
lea r8, [rbp - 0x59]
mov rdx, rax
lea rcx, [rbp - 0x39]
call fcn.1400f0a08
mov rdx, rax
mov rcx, rsi
call fcn.14008aed0
lea rcx, [rbp - 0x39]
call fcn.14007a7c0
nop
lea rcx, [rbp - 0x19]
jmp 0x14025553f
lea r8, [0x1403e5c64]
lea rcx, [rbp + 7]
call fcn.1400b9f70
nop
lea r8, [rbp - 0x59]
mov rdx, rax
lea rcx, [rbp - 0x39]
call fcn.1400f0a08
nop
lea r8, [0x1403e5c6c]
mov rdx, rax
lea rcx, [rbp - 0x19]
call fcn.140076bd4
mov rdx, rax
mov rcx, rsi
call fcn.14008aed0
lea rcx, [rbp - 0x19]
call fcn.14007a7c0
nop
lea rcx, [rbp - 0x39]
call fcn.14007a7c0
nop
lea rcx, [rbp + 7]
call fcn.14007a7c0
nop
lea rcx, [rbp - 0x59]
call fcn.14007a7c0
inc edi
add rbx, 8
cmp edi, dword [rbp - 0x79]
jl 0x140255482
jmp 0x1402555dc
call fcn.140091ae4
mov rbx, rax
cmp dword [rax], 3
jbe 0x1402555c1
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov dword [rbp - 0x75], eax
mov rcx, rdi
cmp qword [rdi + 0x18], 8
jb 0x140255588
mov rcx, qword [rdi]
mov qword [rbp - 0x71], rcx
lea rax, str.The_call_to_CommandLineToArgv_has_failed
mov qword [rbp - 0x69], rax
lea rax, [rbp - 0x75]
mov qword [rsp + 0x30], rax
lea rax, [rbp - 0x71]
mov qword [rsp + 0x28], rax
lea rax, [rbp - 0x69]
mov qword [rsp + 0x20], rax
lea rdx, [0x14044e6d8]
mov rcx, rbx
call fcn.140005ba8
mov rdx, rdi
mov rcx, r14
call fcn.14007d520
lea rdx, [0x1403a9f84]
mov rcx, rsi
call fcn.14007d630
nop
lea rcx, [rbp - 0x61]
call fcn.1400f362c
mov rcx, qword [rbp + 0x27]
xor rcx, rsp
call fcn.140112420
add rsp, 0xf0
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret
Function at 0x140257768
Capabilities:
Get disk information

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x120]
sub rsp, 0x220
mov rax, qword [0x1404e1800]
xor rax, rsp
mov qword [rbp + 0x110], rax
mov r15, rdx
mov rsi, rcx
mov qword [rbp - 0x20], rcx
call qword [sym.imp.KERNEL32.dll_GetLogicalDrives]
nop dword [rax + rax]
mov r14d, eax
xor r12d, r12d
movzx edi, r12w
lea r13d, [r12 + 1]
mov cl, dil
mov edx, r13d
shl edx, cl
test r14d, edx
je 0x14025796d
lea edx, [rdi + 0x41]
lea rcx, [rbp + 0x10]
call fcn.140256d64
nop
mov rdx, rax
lea rcx, [rbp - 0x68]
call fcn.140256a0c
nop
lea rcx, [rbp + 0x10]
call fcn.1400f7cfc
mov rbx, qword [rbp - 0x68]
test rbx, rbx
je 0x14025795f
lea rdx, [rbp - 0x68]
lea rcx, [rbp - 0x18]
call fcn.14006a6bc
mov r8, rax
mov rdx, rsi
lea rcx, [rbp - 8]
call fcn.14006a6bc
mov rdx, r15
mov rcx, rax
call fcn.140257548
call fcn.140091ae4
mov r8, rax
cmp dword [rax], 4
jbe 0x14025795f
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 0x140257857
mov rcx, qword [rcx]
mov qword [rbp - 0x58], rcx
lea rax, [rbx + 0xa8]
cmp qword [rax + 0x18], 8
jb 0x14025786c
mov rax, qword [rax]
mov qword [rbp - 0x50], rax
lea rax, [rbx + 0xc8]
cmp qword [rax + 0x18], 8
jb 0x140257881
mov rax, qword [rax]
mov qword [rbp - 0x48], rax
lea rax, [rbx + 0x88]
cmp qword [rax + 0x18], 8
jb 0x140257896
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 0x1402578b4
mov rax, qword [rax]
mov qword [rbp - 0x38], rax
lea rax, [rbx + 0x40]
cmp qword [rax + 0x18], 8
jb 0x1402578c6
mov rax, qword [rax]
mov qword [rbp - 0x30], rax
cmp qword [rbx + 0x18], 8
jb 0x1402578d4
mov rbx, qword [rbx]
mov qword [rbp - 0x28], rbx
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, [0x14044ea0a]
mov rcx, r8
call fcn.140010694
nop
mov rcx, qword [rbp - 0x60]
test rcx, rcx
je 0x14025796d
call fcn.14007e3e0
add di, r13w
cmp di, 0x19
jbe 0x1402577bd
mov rcx, qword [rsi + 8]
test rcx, rcx
je 0x140257989
call fcn.14007e3e0
mov rcx, qword [rbp + 0x110]
xor rcx, rsp
call fcn.140112420
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 0x140257c48
Capabilities:
Get disk information

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
lea rbp, [rsp - 0x180]
sub rsp, 0x280
mov rax, qword [0x1404e1800]
xor rax, rsp
mov qword [rbp + 0x170], rax
movzx edi, dx
mov qword [rsp + 0x50], rcx
mov rbx, rcx
xor edx, edx
lea rcx, [rsp + 0x60]
mov r8d, 0x20a
call sub.api_ms_win_crt_string_l1_1_0.dll_memset
mov eax, dword [0x1403e6050]
movzx ecx, di
mov dword [rsp + 0x58], eax
movzx eax, word [0x1403e6054]
mov word [rsp + 0x5c], ax
call qword [sym.imp.api_ms_win_crt_private_l1_1_0.dll__o_iswalpha]
nop dword [rax + rax]
xor esi, esi
test eax, eax
jne 0x140257d0a
call fcn.140091ae4
cmp dword [rax], 3
jbe 0x140257cf6
lea rcx, str.Invalid_drive_character
mov word [rsp + 0x40], di
mov qword [rsp + 0x48], rcx
lea rdx, [0x14044eac2]
lea rcx, [rsp + 0x40]
mov qword [rsp + 0x28], rcx
lea rcx, [rsp + 0x48]
mov qword [rsp + 0x20], rcx
mov rcx, rax
call fcn.140010908
mov qword [rbx + 0x10], rsi
mov qword [rbx + 0x18], 7
mov word [rbx], si
jmp 0x140257db0
mov r8d, 0x104
mov word [rsp + 0x58], di
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
nop dword [rax + rax]
test eax, eax
jne 0x140257da3
call fcn.140091ae4
mov rdi, rax
cmp dword [rax], 3
jbe 0x140257cf6
lea rax, [rsp + 0x58]
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 0x140257d5e
movzx eax, ax
or eax, 0x80070000
mov dword [rsp + 0x40], eax
lea rdx, [0x14044e7ff]
lea rax, str.QueryDosDevice_for_volume_without_a_drive_letter_failed
xor r8d, r8d
mov qword [rsp + 0x50], rax
mov rcx, rdi
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.140008b90
jmp 0x140257cf6
lea rdx, [rsp + 0x60]
mov rcx, rbx
call fcn.14008c350
mov rax, rbx
mov rcx, qword [rbp + 0x170]
xor rcx, rsp
call fcn.140112420
mov rbx, qword [rsp + 0x2b0]
add rsp, 0x280
pop rdi
pop rsi
pop rbp
ret
Function at 0x140257fd4
Capabilities:
Get disk information

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
lea rbp, [rsp - 0x180]
sub rsp, 0x280
mov rax, qword [0x1404e1800]
xor rax, rsp
mov qword [rbp + 0x170], rax
movzx edi, dx
mov qword [rsp + 0x50], rcx
mov rbx, rcx
xor edx, edx
lea rcx, [rsp + 0x60]
mov r8d, 0x20a
call sub.api_ms_win_crt_string_l1_1_0.dll_memset
movabs rax, 0x5c003a0024
movzx ecx, di
mov qword [rsp + 0x58], rax
call qword [sym.imp.api_ms_win_crt_private_l1_1_0.dll__o_iswalpha]
nop dword [rax + rax]
xor esi, esi
test eax, eax
jne 0x14025808f
call fcn.140091ae4
cmp dword [rax], 3
jbe 0x14025807b
lea rcx, str.Invalid_drive_character
mov word [rsp + 0x40], di
mov qword [rsp + 0x48], rcx
lea rdx, [0x14044eac2]
lea rcx, [rsp + 0x40]
mov qword [rsp + 0x28], rcx
lea rcx, [rsp + 0x48]
mov qword [rsp + 0x20], rcx
mov rcx, rax
call fcn.140010908
mov qword [rbx + 0x10], rsi
mov qword [rbx + 0x18], 7
mov word [rbx], si
jmp 0x140258135
mov r8d, 0x104
mov word [rsp + 0x58], di
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_GetVolumeNameForVolumeMountPointW]
nop dword [rax + rax]
test eax, eax
jne 0x140258128
call fcn.140091ae4
mov rdi, rax
cmp dword [rax], 3
jbe 0x14025807b
lea rax, [rsp + 0x58]
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 0x1402580e3
movzx eax, ax
or eax, 0x80070000
mov dword [rsp + 0x40], eax
lea rdx, [0x14044e8c0]
lea rax, str.GetVolumeNameForVolumeMountPoint_for_driver_letter_without_a_volume
xor r8d, r8d
mov qword [rsp + 0x50], rax
mov rcx, rdi
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.140008b90
jmp 0x14025807b
lea rdx, [rsp + 0x60]
mov rcx, rbx
call fcn.14008c350
mov rax, rbx
mov rcx, qword [rbp + 0x170]
xor rcx, rsp
call fcn.140112420
mov rbx, qword [rsp + 0x2b0]
add rsp, 0x280
pop rdi
pop rsi
pop rbp
ret
Function at 0x140258b70
Capabilities:
Get disk information

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r14
push r15
mov rbp, rsp
sub rsp, 0x70
mov rax, qword [0x1404e1800]
xor rax, rsp
mov qword [rbp - 0x10], rax
mov rdi, rdx
mov r14, rcx
mov edx, 0x105
lea rcx, [rbp - 0x48]
call fcn.1400ab794
nop
mov rcx, rdi
cmp qword [rdi + 0x18], 8
jb 0x140258bb3
mov rcx, qword [rdi]
lea r9, [rbp - 0x50]
mov r8d, 0x104
mov rdx, qword [rbp - 0x48]
call qword [sym.imp.KERNEL32.dll_GetVolumePathNamesForVolumeNameW]
nop dword [rax + rax]
xor r15d, r15d
test eax, eax
jne 0x140258c73
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
cmp eax, 0xea
jne 0x140258c73
mov esi, dword [rbp - 0x50]
inc esi
mov r8d, esi
mov r9, qword [rbp - 0x40]
mov rcx, r9
mov rdx, qword [rbp - 0x48]
sub rcx, rdx
sar rcx, 1
cmp r8, rcx
jae 0x140258c17
lea rax, [rdx + rsi*2]
mov qword [rbp - 0x40], rax
jmp 0x140258c52
jbe 0x140258c52
mov rax, qword [rbp - 0x38]
sub rax, rdx
sar rax, 1
cmp r8, rax
jbe 0x140258c36
mov rdx, r8
lea rcx, [rbp - 0x48]
call fcn.1401f7390
jmp 0x140258c4e
sub r8, rcx
add r8, r8
lea rbx, [r8 + r9]
xor edx, edx
mov rcx, r9
call sub.api_ms_win_crt_string_l1_1_0.dll_memset
mov qword [rbp - 0x40], rbx
mov rdx, qword [rbp - 0x48]
cmp qword [rdi + 0x18], 8
jb 0x140258c5c
mov rdi, qword [rdi]
lea r8d, [rsi - 1]
lea r9, [rbp - 0x50]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetVolumePathNamesForVolumeNameW]
nop dword [rax + rax]
mov rbx, qword [rbp - 0x48]
cmp word [rbx], r15w
je 0x140258d03
or rdi, 0xffffffffffffffff
mov rax, rdi
inc rax
cmp word [rbx + rax*2], r15w
jne 0x140258c88
cmp rax, 3
jne 0x140258ce8
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 0x140258ce8
cmp word [rbx + 2], 0x3a
jne 0x140258ce8
mov rdx, rbx
lea rcx, [rbp - 0x30]
call fcn.14008c350
mov rdx, rax
mov rcx, r14
call fcn.14008aed0
lea rcx, [rbp - 0x30]
call fcn.14007a7c0
mov rcx, r14
call fcn.140255f70
cmp word [rax], 0x5c
jne 0x140258ce8
mov rcx, r14
call fcn.140256098
mov rax, rdi
inc rax
cmp word [rbx + rax*2], r15w
jne 0x140258ceb
lea rbx, [rbx + rax*2]
add rbx, 2
cmp word [rbx], r15w
jne 0x140258c85
lea rcx, [rbp - 0x48]
call fcn.1400f6764
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.140112420
mov rbx, qword [rsp + 0xb0]
add rsp, 0x70
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x140258d34
Capabilities:
Get disk information

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x280
mov rax, qword [0x1404e1800]
xor rax, rsp
mov qword [rsp + 0x270], rax
mov rbx, rdx
mov rsi, rcx
xor edx, edx
lea rcx, [rsp + 0x60]
mov r8d, 0x20a
call sub.api_ms_win_crt_string_l1_1_0.dll_memset
cmp qword [rbx + 0x18], 8
mov rcx, rbx
jb 0x140258d7d
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 0x140258e10
call fcn.140091ae4
mov rdi, rax
cmp dword [rax], 3
jbe 0x140258e10
cmp qword [rbx + 0x18], 8
jb 0x140258db3
mov rbx, qword [rbx]
mov qword [rsp + 0x48], rbx
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
test eax, eax
jle 0x140258dd0
movzx eax, ax
or eax, 0x80070000
mov dword [rsp + 0x40], eax
lea rdx, [0x14044e7ff]
lea rax, str.QueryDosDeviceW_for_volume_without_a_drive_letter_failed
xor r8d, r8d
mov qword [rsp + 0x50], rax
mov rcx, rdi
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.140008b90
lea rcx, [rsi + 0x20]
lea rdx, [rsp + 0x60]
call fcn.14007d630
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.140112420
lea r11, [rsp + 0x280]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x140259158
Capabilities:
Get disk information

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x40
cmp qword [rdx + 0x18], 8
mov rdi, rcx
mov rcx, rdx
mov rbx, rdx
jb 0x140259173
mov rcx, qword [rdx]
and dword [rsp + 0x38], 0
lea rax, [rdi + 0x64]
and qword [rsp + 0x30], 0
xor r9d, r9d
mov qword [rsp + 0x28], rax
xor r8d, r8d
and qword [rsp + 0x20], 0
xor edx, edx
call qword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
nop dword [rax + rax]
test eax, eax
jne 0x14025921c
call fcn.140091ae4
mov rsi, rax
cmp dword [rax], 3
jbe 0x14025921c
cmp qword [rbx + 0x18], 8
mov rcx, rbx
jb 0x1402591bf
mov rcx, qword [rbx]
mov qword [rsp + 0x68], rcx
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
test eax, eax
jle 0x1402591dc
movzx eax, ax
or eax, 0x80070000
mov dword [rsp + 0x60], eax
lea rdx, [0x14044e7ff]
lea rax, str.GetVolumeInformation_failed
xor r8d, r8d
mov qword [rsp + 0x70], rax
mov rcx, rsi
lea rax, [rsp + 0x68]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x60]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x70]
mov qword [rsp + 0x20], rax
call fcn.140008b90
mov rdx, rbx
mov rcx, rdi
call fcn.140258e4c
cmp qword [rbx + 0x18], 8
jb 0x140259231
mov rbx, qword [rbx]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
nop dword [rax + rax]
cmp al, 2
mov byte [rdi + 0x60], al
sete al
or byte [rdi + 0xf0], al
add rsp, 0x40
pop rdi
pop rsi
pop rbx
ret