joyce8/EMBER2024-capa huggingface dataset:
Function at 0x18000f660
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x20
mov r14, rcx
mov edi, edx
mov ecx, edx
call fcn.1800f3ae8
mov rsi, rax
test rax, rax
jne 0x18000f695
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
mov eax, edi
mov qword [rsp + 0x30], rbx
shr eax, 4
mov r8d, 6
inc ax
mov qword [rsp + 0x38], rbp
movzx edx, ax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rbp, rax
test rax, rax
je 0x18000f792
mov rdx, rax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x18000f792
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rbx, rax
test rax, rax
je 0x18000f792
mov rdx, rbp
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, eax
add rcx, rbx
and edi, 0xf
jbe 0x18000f71e
cmp rbx, rcx
jae 0x18000f792
movzx eax, word [rbx]
lea rbx, [rbx + rax*2]
add rbx, 2
add edi, 0xffffffff
jne 0x18000f705
cmp rbx, rcx
jae 0x18000f792
movzx edi, word [rbx]
test di, di
je 0x18000f792
mov r10, qword [r14]
mov ebp, 1
movzx esi, di
mov ecx, ebp
movzx edx, di
mov eax, dword [r10 - 0xc]
sub ecx, dword [r10 - 8]
sub eax, esi
or ecx, eax
jge 0x18000f759
mov edx, esi
mov rcx, r14
call fcn.180007df0
mov r10, qword [r14]
movzx edx, word [rbx]
lea r8, [rbx + 2]
movzx r9d, dx
movzx ebx, di
mov rcx, r10
mov edx, ebx
call fcn.18011abd4
xor ecx, ecx
test eax, eax
je 0x18000f77e
cmp eax, 0xc
je 0x18000f7b9
cmp eax, 0x50
jne 0x18000f7b3
mov rax, qword [r14]
cmp esi, dword [rax - 0xc]
jg 0x18000f7bf
mov dword [rax - 0x10], esi
mov rax, qword [r14]
mov word [rax + rbx*2], cx
jmp 0x18000f796
xor ecx, ecx
mov ebp, ecx
mov rbx, qword [rsp + 0x30]
mov eax, ebp
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
call fcn.1800f389c
int3
call fcn.1800f38c0
int3
mov ecx, 0x80070057
call fcn.180007f70
int3

Function at 0x18000f980
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
xor eax, eax
mov r9, rcx
test edx, edx
je 0x18000f9c2
mov r10d, edx
lea r11, [0x18014d710]
nop dword [rax]
nop word [rax + rax]
movzx r8d, byte [r9]
lea r9, [r9 + 1]
mov edx, eax
mov ecx, eax
xor r8, rdx
shr ecx, 8
movzx edx, r8b
mov eax, dword [r11 + rdx*4]
xor eax, ecx
sub r10, 1
jne 0x18000f9a0
ret

Function at 0x18000f9d0
Capabilities:
Encode data using xor

Disassembly:
xor al, al
mov r9d, edx
mov r10, rcx
test edx, edx
je 0x18000fa13
nop dword [rax]
dec r9d
mov r8b, 8
xor al, byte [r10]
lea r10, [r10 + 1]
nop dword [rax]
movzx ecx, al
add cl, cl
movzx edx, cl
movzx ecx, al
movzx eax, dl
xor al, 7
test cl, cl
movzx eax, al
cmovns eax, edx
add r8b, 0xff
jne 0x18000f9f0
test r9d, r9d
jne 0x18000f9e0
ret
Function at 0x180010a50
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 8], rcx
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
push rbx
push rsi
push rdi
mov eax, 0x2040
call fcn.180110950
sub rsp, rax
mov rax, qword [0x180185680]
xor rax, rsp
mov qword [rsp + 0x2030], rax
mov rbx, rcx
xor edx, edx
lea rcx, [rsp + 0x30]
mov r8d, 0x2000
call fcn.180113150
lea rsi, [rsp + 0x2068]
call fcn.180007e50
mov qword [rsp + 0x28], rsi
mov r9, rbx
xor r8d, r8d
mov qword [rsp + 0x20], 0
xor edx, edx
mov rdi, rax
mov rcx, qword [rax]
or rcx, 2
call fcn.18011a198
test eax, eax
mov ecx, 0xffffffff
cmovs eax, ecx
inc eax
cmp eax, 0xfff
jbe 0x180010ae9
lea rcx, str.DbgPrintW:_string_is_too_long_4096__n
jmp 0x180010b17
mov r9, qword [rsp + 0x2060]
lea rdx, [rsp + 0x30]
mov rcx, qword [rdi]
mov r8d, 0x1000
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x20], 0
call fcn.18011a3d0
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov rcx, qword [rsp + 0x2030]
xor rcx, rsp
call fcn.18010faf0
add rsp, 0x2040
pop rdi
pop rsi
pop rbx
ret

Function at 0x180010b40
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 8], rcx
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
push rbx
push rsi
push rdi
mov eax, 0x1040
call fcn.180110950
sub rsp, rax
mov rax, qword [0x180185680]
xor rax, rsp
mov qword [rsp + 0x1030], rax
mov rbx, rcx
xor edx, edx
lea rcx, [rsp + 0x30]
mov r8d, 0x1000
call fcn.180113150
lea rsi, [rsp + 0x1068]
call fcn.180007e50
mov qword [rsp + 0x28], rsi
mov r9, rbx
xor r8d, r8d
mov qword [rsp + 0x20], 0
xor edx, edx
mov rdi, rax
mov rcx, qword [rax]
or rcx, 2
call fcn.180119f00
test eax, eax
mov ecx, 0xffffffff
cmovs eax, ecx
inc eax
cmp eax, 0xfff
jbe 0x180010bd9
lea rcx, str.DbgPrintA:_string_is_too_long_4096__n
jmp 0x180010c0c
mov rcx, qword [rdi]
lea rdx, [rsp + 0x30]
mov r9, qword [rsp + 0x1060]
or rcx, 1
mov qword [rsp + 0x28], rsi
mov r8, 0xffffffffffffffff
mov qword [rsp + 0x20], 0
call fcn.180119f00
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov rcx, qword [rsp + 0x1030]
xor rcx, rsp
call fcn.18010faf0
add rsp, 0x1040
pop rdi
pop rsi
pop rbx
ret
Function at 0x180010c30
Capabilities:
Create process memory minidump

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x60
mov rax, qword [0x180185680]
xor rax, rsp
mov qword [rsp + 0x50], rax
xor eax, eax
mov rbx, rdx
mov qword [rsp + 0x30], rax
xor r9d, r9d
mov dword [rsp + 0x28], 0x80
xor r8d, r8d
mov edx, 0x40000000
mov dword [rsp + 0x20], 2
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], rax
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x180010cec
mov qword [rsp + 0x44], rbx
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [rsp + 0x40], eax
mov dword [rsp + 0x4c], 1
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea rdx, [rsp + 0x40]
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x28], 0
mov rcx, rax
mov qword [rsp + 0x20], rdx
mov r9d, 2
mov edx, ebx
mov r8, rdi
call qword [sym.imp.dbghelp.dll_MiniDumpWriteDump]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
jmp 0x180010cee
xor eax, eax
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.18010faf0
mov rbx, qword [rsp + 0x80]
add rsp, 0x60
pop rdi
ret

Function at 0x180011100
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x40
mov rdi, rcx
xor esi, esi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
mov eax, 0x80
cmp ebx, 0xffffffff
cmove ebx, eax
test bl, 1
je 0x18001113f
mov edx, ebx
mov rcx, rdi
and edx, 0xfffffffe
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov esi, 1
xor r9d, r9d
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x20000000
mov edx, 0xc0000000
mov rcx, rdi
mov dword [rsp + 0x20], 3
lea r8d, [r9 + 3]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
cmp rax, 0xffffffffffffffff
jne 0x180011194
test esi, esi
je 0x180011182
mov edx, ebx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
xor eax, eax
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
je 0x1800111ac
mov edx, ebx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov rbx, qword [rsp + 0x50]
mov eax, 1
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
Function at 0x180015070
Capabilities:
Get disk information

Disassembly:
push rbx
sub rsp, 0x490
mov rax, qword [0x180185680]
xor rax, rsp
mov qword [rsp + 0x480], rax
mov dword [rsp + 0x38], 0x105
lea r9, [rsp + 0x48]
movabs rax, 0x5c003a0043
lea rdx, [rsp + 0x270]
mov qword [rsp + 0x50], rax
mov r8d, 0x105
lea rax, [rsp + 0x60]
mov word [rsp + 0x50], cx
mov qword [rsp + 0x30], rax
lea rcx, [rsp + 0x50]
lea rax, [rsp + 0x40]
mov ebx, 9
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x44]
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
test eax, eax
je 0x180015191
lea rdx, str.NTFS
lea rcx, [rsp + 0x60]
call fcn.1801153c8
test eax, eax
jne 0x18001510d
lea eax, [rbx - 2]
jmp 0x180015193
lea rdx, str.EXFAT
lea rcx, [rsp + 0x60]
call fcn.1801153c8
test eax, eax
jne 0x180015129
mov eax, 4
jmp 0x180015193
lea rdx, str.FAT32
lea rcx, [rsp + 0x60]
call fcn.1801153c8
test eax, eax
je 0x180015153
lea rdx, str.XKFS
lea rcx, [rsp + 0x60]
call fcn.1801153c8
test eax, eax
jne 0x18001515a
mov eax, 6
jmp 0x180015193
lea rdx, [0x180155368]
lea rcx, [rsp + 0x60]
call fcn.1801153c8
test eax, eax
jne 0x180015176
mov eax, 5
jmp 0x180015193
lea rdx, str.REFS
lea rcx, [rsp + 0x60]
call fcn.1801153c8
test eax, eax
mov ecx, 8
cmove ebx, ecx
mov eax, ebx
mov rcx, qword [rsp + 0x480]
xor rcx, rsp
call fcn.18010faf0
add rsp, 0x490
pop rbx
ret
Function at 0x180016860
Capabilities:
Read file on windows
Unmount volume via ioctl
Write file on windows

Disassembly:
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x120
mov rax, qword [0x180185680]
xor rax, rsp
mov qword [rsp + 0x110], rax
mov rsi, qword [rsp + 0x180]
mov ebx, ecx
mov rdi, r8
mov qword [rsp + 0x40], rsi
mov ecx, edx
shl rdi, 9
mov r12d, r9d
mov r14, r8
xor r15d, r15d
call sym.SafeBase64.dll_OpenDiskDriver
mov r13, rax
cmp rax, 0xffffffffffffffff
jne 0x1800168bb
xor eax, eax
jmp 0x180016a5f
mov dword [rsp + 0x58], edi
shr rdi, 0x20
mov qword [rsp + 0x160], rbp
mov qword [rsp + 0x60], r15
mov dword [rsp + 0x5c], edi
sub ebx, 3
je 0x180016a26
cmp ebx, 1
jne 0x180016a4b
lea rax, [rsp + 0x48]
shl r12d, 9
mov r8d, r12d
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x68]
mov rdx, rsi
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov r15d, eax
test eax, eax
jne 0x180016a4b
xor edi, edi
lea esi, [rdi + 0x43]
movzx ecx, si
call sym.SafeBase64.dll_OpenVolumeDriver
mov rbp, rax
cmp rax, 0xffffffffffffffff
je 0x180016984
lea rdx, [rsp + 0x80]
mov rcx, rax
call fcn.180016f50
mov rcx, rbp
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
je 0x180016984
mov rax, qword [rsp + 0x88]
cqo
and edx, 0x1ff
lea rcx, [rdx + rax]
mov rax, qword [rsp + 0x90]
cqo
sar rcx, 9
and edx, 0x1ff
add rax, rdx
sar rax, 9
cmp r14, rcx
jbe 0x180016984
add rax, rcx
cmp r14, rax
jb 0x180016990
inc edi
cmp edi, 0xc
jl 0x180016915
jmp 0x180016a4b
movzx ecx, si
call sym.SafeBase64.dll_OpenVolumeDriver
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x180016a04
xor edi, edi
lea rax, [rsp + 0x6c]
mov qword [rsp + 0x38], rdi
xor r9d, r9d
mov qword [rsp + 0x30], rax
xor r8d, r8d
mov dword [rsp + 0x28], edi
mov edx, 0x90018
mov rcx, rbx
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov qword [rsp + 0x38], rdi
lea rax, [rsp + 0x70]
mov qword [rsp + 0x30], rax
xor r9d, r9d
mov dword [rsp + 0x28], edi
xor r8d, r8d
mov edx, 0x90020
mov qword [rsp + 0x20], rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rdx, qword [rsp + 0x40]
lea rax, [rsp + 0x48]
lea r9, [rsp + 0x68]
mov qword [rsp + 0x20], rax
mov r8d, r12d
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x180016a48
shl r12d, 9
lea rax, [rsp + 0x48]
mov r8d, r12d
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x68]
mov rdx, rsi
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov r15d, eax
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbp, qword [rsp + 0x160]
mov eax, r15d
mov rcx, qword [rsp + 0x110]
xor rcx, rsp
call fcn.18010faf0
add rsp, 0x120
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
ret
Function at 0x180016b20
Capabilities:
Get common file path
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
sub rsp, 0x690
mov rax, qword [0x180185680]
xor rax, rsp
mov qword [rsp + 0x680], rax
mov esi, ecx
cmp ecx, 0x80
jae 0x180016b8f
mov edx, 0x104
lea rcx, [rsp + 0x470]
mov esi, 0x80
call qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
je 0x180016b8f
movzx ecx, word [rsp + 0x470]
lea rdx, [rsp + 0x40]
call sym.SafeBase64.dll_GetDiskNumber
test eax, eax
je 0x180016b8f
mov eax, dword [rsp + 0x44]
cmp eax, 3
ja 0x180016b8f
lea esi, [rax + 0x80]
xor ebx, ebx
mov qword [rsp + 0x6a8], rdi
mov qword [rsp + 0x48], rbx
mov dword [rsp + 0x40], 3
mov dword [rsp + 0x44], esi
mov dword [rsp + 0x50], 1
call fcn.18002e520
mov rbp, rax
cmp rax, 0xffffffffffffffff
je 0x180016c7a
mov qword [rsp + 0x38], rbx
lea rax, [rsp + 0x60]
mov qword [rsp + 0x30], rax
lea r9d, [rbx + 0x18]
lea rax, [rsp + 0x270]
mov dword [rsp + 0x28], 0x200
lea r8, [rsp + 0x40]
mov qword [rsp + 0x20], rax
mov edx, 0xc182802
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov rcx, rbp
mov edi, eax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
je 0x180016c7a
mov ecx, esi
call sym.SafeBase64.dll_OpenDiskDriver
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x180016c7a
lea rax, [rsp + 0x40]
mov qword [rsp + 0x58], rbx
lea r9, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov r8d, 0x200
mov qword [rsp + 0x50], rbx
lea rdx, [rsp + 0x70]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov rcx, rsi
mov edi, eax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
je 0x180016c7a
nop word [rax + rax]
movzx eax, byte [rsp + rbx + 0x70]
cmp byte [rsp + rbx + 0x270], al
jne 0x180016ca9
inc rbx
cmp rbx, 0x200
jl 0x180016c60
xor eax, eax
mov rdi, qword [rsp + 0x6a8]
mov rcx, qword [rsp + 0x680]
xor rcx, rsp
call fcn.18010faf0
lea r11, [rsp + 0x690]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsp, r11
pop rsi
ret
mov eax, 1
jmp 0x180016c7c

Function at 0x180016ec0
Capabilities:
Get disk information via ioctl

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x50
mov rax, qword [0x180185680]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov rbx, rdx
call sym.SafeBase64.dll_OpenDiskDriver
mov rdi, rax
cmp rax, 0xffffffffffffffff
jne 0x180016eee
xor eax, eax
jmp 0x180016f2f
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x40]
mov qword [rsp + 0x30], rax
xor r9d, r9d
mov dword [rsp + 0x28], 0x2000
xor r8d, r8d
mov edx, 0x70050
mov qword [rsp + 0x20], rbx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov rcx, rdi
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.18010faf0
mov rbx, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
ret
Function at 0x1800171a0
Capabilities:
Unmount volume via ioctl

Disassembly:
push rdi
sub rsp, 0x50
mov rax, qword [0x180185680]
xor rax, rsp
mov qword [rsp + 0x48], rax
call sym.SafeBase64.dll_OpenVolumeDriver
mov rdi, rax
cmp rax, 0xffffffffffffffff
jne 0x1800171d8
xor eax, eax
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.18010faf0
add rsp, 0x50
pop rdi
ret
lea rax, [rsp + 0x40]
mov qword [rsp + 0x68], rbx
xor ebx, ebx
xor r9d, r9d
mov qword [rsp + 0x38], rbx
xor r8d, r8d
mov qword [rsp + 0x30], rax
mov edx, 0x90018
mov dword [rsp + 0x28], ebx
mov rcx, rdi
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov qword [rsp + 0x38], rbx
lea rax, [rsp + 0x44]
mov qword [rsp + 0x30], rax
xor r9d, r9d
mov dword [rsp + 0x28], ebx
xor r8d, r8d
mov edx, 0x90020
mov qword [rsp + 0x20], rbx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov rcx, rdi
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
mov rbx, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.18010faf0
add rsp, 0x50
pop rdi
ret

Function at 0x180017260
Capabilities:
Get disk information

Disassembly:
sub rsp, 0x268
mov rax, qword [0x180185680]
xor rax, rsp
mov qword [rsp + 0x250], rax
xor eax, eax
movzx r8d, cx
lea rcx, [rsp + 0x20]
mov qword [rsp + 0x20], rax
lea rdx, [0x180155438]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x38], rax
call qword [sym.imp.USER32.dll_wsprintfW]
mov r8d, 0x104
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.18010faf0
add rsp, 0x268
ret

Function at 0x180017370
Capabilities:
Get disk information via ioctl

Disassembly:
mov qword [rsp + 0x20], rbx
push rsi
sub rsp, 0x70
mov rax, qword [0x180185680]
xor rax, rsp
mov qword [rsp + 0x68], rax
xor eax, eax
mov rbx, rdx
mov qword [rdx], rax
mov dword [rdx + 8], eax
call sym.SafeBase64.dll_OpenVolumeDriver
mov rsi, rax
cmp rax, 0xffffffffffffffff
jne 0x1800173a9
xor eax, eax
jmp 0x180017451
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x40]
mov qword [rsp + 0x30], rax
xor r9d, r9d
mov dword [rsp + 0x28], 0xc
xor r8d, r8d
mov edx, 0x2d1080
mov qword [rsp + 0x20], rbx
mov rcx, rsi
mov qword [rsp + 0x90], rdi
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov edi, eax
test eax, eax
jne 0x18001743e
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x40]
mov qword [rsp + 0x30], rax
xor r9d, r9d
lea rax, [rsp + 0x48]
mov dword [rsp + 0x28], 0x20
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov edx, 0x560000
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov edi, eax
test eax, eax
je 0x18001743e
mov eax, dword [rsp + 0x50]
mov dword [rbx + 4], eax
mov dword [rbx], 7
mov dword [rbx + 8], 0
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
mov rdi, qword [rsp + 0x90]
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.18010faf0
mov rbx, qword [rsp + 0x98]
add rsp, 0x70
pop rsi
ret
Function at 0x180017470
Capabilities:
Get disk information via ioctl

Disassembly:
push rbp
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x98
mov rax, qword [0x180185680]
xor rax, rsp
mov qword [rsp + 0x80], rax
xor r13d, r13d
mov r12, rdx
xor r8d, r8d
xor edx, edx
mov r15, rcx
mov r14d, r13d
lea r9d, [r13 + 0x12]
lea rdi, [r13 - 1]
call qword [sym.imp.SETUPAPI.dll_SetupDiGetClassDevsW]
mov rbp, rax
cmp rax, rdi
jne 0x1800174c2
xor eax, eax
jmp 0x18001768c
xor eax, eax
mov qword [rsp + 0x90], rsi
mov qword [rsp + 0x48], rax
xor r9d, r9d
mov qword [rsp + 0x50], rax
mov r8, r15
mov qword [rsp + 0x58], rax
xor edx, edx
mov qword [rsp + 0x60], rax
mov rcx, rbp
lea rax, [rsp + 0x48]
mov dword [rsp + 0x48], 0x20
mov qword [rsp + 0x20], rax
mov esi, r13d
call qword [sym.imp.SETUPAPI.dll_SetupDiEnumDeviceInterfaces]
test eax, eax
je 0x18001766a
mov qword [rsp + 0xe0], rbx
nop word [rax + rax]
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], r13
xor r9d, r9d
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rdx, [rsp + 0x48]
mov rcx, rbp
call qword [sym.imp.SETUPAPI.dll_SetupDiGetDeviceInterfaceDetailW]
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x18001755a
mov ecx, dword [rsp + 0x40]
call fcn.180115540
mov r14, rax
mov rdi, 0xffffffffffffffff
test r14, r14
je 0x180017662
mov r8d, dword [rsp + 0x40]
xor edx, edx
mov rcx, r14
call fcn.180113150
mov dword [r14], 8
lea rdx, [rsp + 0x48]
mov r9d, dword [rsp + 0x40]
mov r8, r14
mov rcx, rbp
mov qword [rsp + 0x28], r13
mov qword [rsp + 0x20], r13
call qword [sym.imp.SETUPAPI.dll_SetupDiGetDeviceInterfaceDetailW]
test eax, eax
je 0x180017662
mov qword [rsp + 0x30], r13
lea rcx, [r14 + 4]
mov dword [rsp + 0x28], 0x80
lea r8d, [rdi + 4]
xor r9d, r9d
mov dword [rsp + 0x20], 3
mov edx, 0x80000000
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x180017662
mov qword [rsp + 0x38], r13
lea rax, [rsp + 0x68]
mov qword [rsp + 0x30], rax
xor r9d, r9d
lea rax, [rsp + 0x70]
mov dword [rsp + 0x28], 0xc
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov edx, 0x2d1080
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov rcx, rdi
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rdi, 0xffffffffffffffff
test ebx, ebx
je 0x18001763f
mov eax, dword [rsp + 0x74]
mov ecx, esi
inc esi
mov dword [r12 + rcx*4], eax
cmp esi, 0x104
jae 0x180017662
lea rax, [rsp + 0x48]
mov r9d, esi
mov r8, r15
mov qword [rsp + 0x20], rax
xor edx, edx
mov rcx, rbp
call qword [sym.imp.SETUPAPI.dll_SetupDiEnumDeviceInterfaces]
test eax, eax
jne 0x180017520
mov rbx, qword [rsp + 0xe0]
mov rcx, rbp
call qword [sym.imp.SETUPAPI.dll_SetupDiDestroyDeviceInfoList]
cmp rdi, 0xffffffffffffffff
je 0x180017682
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
mov rsi, qword [rsp + 0x90]
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.18010faf0
add rsp, 0x98
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rbp
ret
Function at 0x1800176b0
Capabilities:
Get disk information

Disassembly:
push rbp
push r14
sub rsp, 0x858
mov rax, qword [0x180185680]
xor rax, rsp
mov qword [rsp + 0x840], rax
mov r14, rcx
xor edx, edx
lea rcx, [rsp + 0x40]
mov r8d, 0x800
call fcn.180113150
lea rdx, [rsp + 0x40]
mov ecx, 0x400
call qword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
mov ebp, eax
test eax, eax
je 0x1800177c0
mov qword [rsp + 0x878], rbx
xor ebx, ebx
mov qword [rsp + 0x850], rdi
xor edi, edi
shr ebp, 2
test ebp, ebp
je 0x1800177ae
mov qword [rsp + 0x880], rsi
nop dword [rax]
nop word [rax + rax]
lea eax, [rdi*4]
lea rsi, [rsp + 0x40]
lea rsi, [rsi + rax*2]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
jne 0x1800177a0
movzx ecx, word [rsi]
lea rdx, [rsp + 0x20]
call sym.SafeBase64.dll_GetDriverBusType
test eax, eax
je 0x180017766
cmp dword [rsp + 0x20], 7
je 0x1800177a0
movzx ecx, word [rsi]
lea rdx, [rsp + 0x28]
call sym.SafeBase64.dll_GetDiskNumber
test eax, eax
je 0x1800177a0
mov edx, dword [rsp + 0x2c]
xor ecx, ecx
test ebx, ebx
je 0x180017792
mov rax, r14
cmp edx, dword [rax]
je 0x1800177a0
inc ecx
add rax, 4
cmp ecx, ebx
jb 0x180017784
mov dword [r14 + rbx*4], edx
inc ebx
cmp ebx, 0x104
ja 0x1800177a6
inc edi
cmp edi, ebp
jb 0x180017730
mov rsi, qword [rsp + 0x880]
mov rdi, qword [rsp + 0x850]
mov eax, ebx
mov rbx, qword [rsp + 0x878]
mov rcx, qword [rsp + 0x840]
xor rcx, rsp
call fcn.18010faf0
add rsp, 0x858
pop r14
pop rbp
ret

Function at 0x1800177e0
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
sub rsp, 0x470
mov rax, qword [0x180185680]
xor rax, rsp
mov qword [rsp + 0x460], rax
xor ebx, ebx
lea rcx, [rsp + 0x50]
xor edx, edx
mov dword [rsp + 0x38], ebx
mov r8d, 0x410
call fcn.180113150
movups xmm0, xmmword [0x180154a00]
lea rax, [rsp + 0x30]
mov dword [rsp + 0x3c], 4
lea r9d, [rbx + 1]
mov qword [rsp + 0x30], rbx
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.SYSTEMCurrentControlSetServicesdiskEnum
mov rcx, 0xffffffff80000002
movups xmmword [rsp + 0x40], xmm0
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x18001788c
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x3c]
mov qword [rsp + 0x28], rax
lea rdx, [0x180155440]
lea rax, [rsp + 0x38]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x40]
call sym.SafeBase64.dll_GetDeviceCounts
lea rcx, [rsp + 0x50]
mov ebx, eax
call sym.SafeBase64.dll_GetHardDiskCounts
mov ecx, dword [rsp + 0x38]
cmp ebx, ecx
cmova ecx, ebx
cmp eax, ecx
cmova ecx, eax
mov eax, ecx
mov rcx, qword [rsp + 0x460]
xor rcx, rsp
call fcn.18010faf0
add rsp, 0x470
pop rbx
ret