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

Disassembly:
sub rsp, 0x28
cmp byte [0x140173278], 0
mov qword [0x1401732b8], rcx
je 0x14005f1c5
lea r8, [0x14014959c]
mov edx, 0xe3f
lea rcx, str.sdkinc_atlmfc_atlbase.h
call fcn.14008410c
or eax, 0xffffffff
jmp 0x14005f1ee
and dword [rsp + 0x30], 0
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov rdx, rax
lea r8, [rsp + 0x30]
call fcn.14005f5c8
cmp al, 1
jne 0x14005f1ea
add rsp, 0x28
jmp 0x14005f86c
mov eax, dword [rsp + 0x30]
add rsp, 0x28
ret
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], r14
push rbp
lea rbp, [rsp - 0x1b0]
sub rsp, 0x2b0
mov rax, qword [0x140172608]
xor rax, rsp
mov qword [rbp + 0x1a0], rax
xor r14d, r14d
lea r8, str.AppID
mov r9d, 0x20019
mov qword [rsp + 0x50], r14
mov rdx, 0xffffffff80000000
mov qword [rsp + 0x58], r14
lea rcx, [rsp + 0x50]
mov qword [rsp + 0x60], r14
call fcn.140001d6c
mov ebx, eax
test eax, eax
je 0x14005f8d8
mov dword [0x1401735fc], eax
jmp 0x14005f99d
mov rdx, qword [rsp + 0x50]
lea r8, [0x14014cce0]
mov r9d, 0x20019
mov qword [rsp + 0x38], r14
lea rcx, [rsp + 0x38]
mov qword [rsp + 0x40], r14
mov qword [rsp + 0x48], r14
call fcn.140001d6c
mov ebx, eax
test eax, eax
jne 0x14005f985
cmp qword [rsp + 0x38], r14
jne 0x14005f928
lea r8, str.m_hKey___0
mov edx, 0x15eb
lea rcx, str.sdkinc_atlmfc_atlbase.h
call fcn.14008410c
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x34]
lea rax, [rbp - 0x70]
mov dword [rsp + 0x30], 0x208
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.LocalService
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14005f9f6
mov eax, dword [rsp + 0x34]
dec eax
cmp eax, 1
jbe 0x14005f9d5
mov dword [0x14017360c], r14d
lea rcx, [0x140173380]
call fcn.14005ec88
mov ebx, eax
mov dword [0x1401735fc], eax
cmp qword [rsp + 0x38], r14
je 0x14005f99d
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp qword [rsp + 0x50], r14
je 0x14005f9af
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rcx, qword [rbp + 0x1a0]
xor rcx, rsp
call fcn.140141cf0
lea r11, [rsp + 0x2b0]
mov rbx, qword [r11 + 0x10]
mov r14, qword [r11 + 0x18]
mov rsp, r11
pop rbp
ret
mov eax, dword [rsp + 0x30]
test eax, eax
je 0x14005f9ee
test al, 1
jne 0x14005f970
shr rax, 1
cmp word [rbp + rax*2 - 0x72], r14w
je 0x14005f9f3
jmp 0x14005f970
mov word [rbp - 0x70], r14w
mov eax, r14d
mov dword [0x14017360c], r14d
test eax, eax
jne 0x14005f977
lea rax, [0x1401733e8]
mov dword [0x14017360c], 1
mov qword [rsp + 0x68], rax
lea rcx, [rsp + 0x68]
lea rax, [0x14005fb30]
mov qword [rsp + 0x78], r14
mov qword [rsp + 0x70], rax
mov qword [rbp - 0x80], r14
call qword [sym.imp.ADVAPI32.dll_StartServiceCtrlDispatcherW]
test eax, eax
jne 0x14005fa4a
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x14005f983
mov ebx, dword [0x1401735fc]
jmp 0x14005f98b
Function at 0x14005fb3c
Capabilities:
Delete registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
mov qword [rsp + 0x18], r14
push rbp
mov rbp, rsp
sub rsp, 0x80
mov r14b, dl
xor ecx, ecx
xor edx, edx
mov r8d, 0xf003f
xor edi, edi
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rbx, rax
test rax, rax
je 0x14005fbb1
lea r8d, [rdi + 1]
mov rcx, rax
lea rdx, [0x1401733e8]
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
test rax, rax
je 0x14005fb9a
mov rcx, rax
mov edi, 1
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test edi, edi
je 0x14005fbb1
mov eax, 0x80004005
jmp 0x14005fcd5
mov edx, 0x67
lea rax, str.APPID
xorps xmm0, xmm0
mov qword [rbp - 0x28], rax
lea rbx, [0x14014cce0]
lea r9, [rbp - 0x28]
mov qword [rbp - 0x20], rbx
lea r8d, [rdx - 0x66]
movdqu xmmword [rbp - 0x18], xmm0
call fcn.140003df4
test eax, eax
js 0x14005fcd5
and qword [rbp - 0x40], 0
lea r8, str.AppID
and qword [rbp - 0x38], 0
lea rcx, [rbp - 0x40]
and qword [rbp - 0x30], 0
mov r9d, 0x20006
mov rdx, 0xffffffff80000000
call fcn.140001d6c
test eax, eax
je 0x14005fc27
mov ecx, eax
call fcn.140001b8c
mov ebx, eax
jmp 0x14005fcc2
mov rdx, qword [rbp - 0x40]
lea rcx, [rbp - 0x28]
and qword [rbp - 0x28], 0
mov r8, rbx
and qword [rbp - 0x20], 0
and qword [rbp - 0x18], 0
call fcn.140001cb4
mov rdi, qword [rbp - 0x28]
test eax, eax
je 0x14005fc59
mov ecx, eax
call fcn.140001b8c
mov ebx, eax
jmp 0x14005fcb4
test rdi, rdi
jne 0x14005fc76
lea r8, str.m_hKey___0
mov edx, 0x150a
lea rcx, str.sdkinc_atlmfc_atlbase.h
call fcn.14008410c
lea rdx, str.LocalService
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test r14b, r14b
je 0x14005fcb2
lea r8, [0x1401733e8]
lea rdx, str.LocalService
lea rcx, [rbp - 0x28]
call fcn.140001e28
call fcn.14005fd70
test eax, eax
jne 0x14005fcb2
mov ebx, 0x80004005
jmp 0x14005fcb4
xor ebx, ebx
test rdi, rdi
je 0x14005fcc2
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp qword [rbp - 0x40], 0
je 0x14005fcd3
mov rcx, qword [rbp - 0x40]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov r14, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
Function at 0x140060094
Capabilities:
Delete registry value

Disassembly:
mov qword [rsp + 8], rdi
push rbp
mov rbp, rsp
sub rsp, 0x70
call fcn.1400601bc
test eax, eax
jne 0x1400600b4
mov eax, 0x80004005
jmp 0x1400601a8
and qword [rbp - 0x38], 0
lea r8, str.AppID
and qword [rbp - 0x30], 0
lea rcx, [rbp - 0x38]
and qword [rbp - 0x28], 0
mov r9d, 0x20006
mov rdx, 0xffffffff80000000
call fcn.140001d6c
test eax, eax
je 0x1400600f2
mov ecx, eax
call fcn.140001b8c
mov edi, eax
jmp 0x140060195
mov rdx, qword [rbp - 0x38]
lea rdi, [0x14014cce0]
and qword [rbp - 0x50], 0
lea rcx, [rbp - 0x50]
and qword [rbp - 0x48], 0
mov r8, rdi
and qword [rbp - 0x40], 0
mov r9d, 0x20006
call fcn.140001d6c
test eax, eax
je 0x14006012b
mov ecx, eax
call fcn.140001b8c
jmp 0x140060182
cmp qword [rbp - 0x50], 0
jne 0x14006014a
lea r8, str.m_hKey___0
mov edx, 0x150a
lea rcx, str.sdkinc_atlmfc_atlbase.h
call fcn.14008410c
mov rcx, qword [rbp - 0x50]
lea rdx, str.LocalService
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
xor r8d, r8d
mov qword [rbp - 0x18], rdi
lea rax, str.APPID
xorps xmm0, xmm0
lea r9, [rbp - 0x20]
mov qword [rbp - 0x20], rax
movdqu xmmword [rbp - 0x10], xmm0
lea edx, [r8 + 0x67]
call fcn.140003df4
cmp qword [rbp - 0x50], 0
mov edi, eax
je 0x140060195
mov rcx, qword [rbp - 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp qword [rbp - 0x38], 0
je 0x1400601a6
mov rcx, qword [rbp - 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
mov rdi, qword [rsp + 0x80]
add rsp, 0x70
pop rbp
ret
Function at 0x1400618a4
Capabilities:
Get user security identifier

Disassembly:
mov rax, rsp
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x78]
sub rsp, 0x140
mov qword [rsp + 0x48], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov rax, qword [0x140172608]
xor rax, rsp
mov qword [rbp + 0x30], rax
mov rsi, rdx
mov rbx, rcx
lea r14, [rcx + 0x50]
mov dword [r14], 7
lea r15, [rcx + 0x58]
mov rcx, r15
call fcn.1400617c8
lea r12, [rbx + 0x60]
mov rcx, r12
call fcn.1400617c8
lea rax, [rbx + 0x68]
mov rcx, rax
call fcn.1400617c8
lea r13, [rbx + 0x70]
mov rcx, r13
call fcn.1400617c8
mov byte [rbx + 0x4c], 0
test rsi, rsi
jne 0x14006193f
lea r8, str.pszAccountName
mov edx, 0x9c
lea rcx, str.sdkinc_atlmfc_atlsecurity.inl
call fcn.14008410c
jmp 0x140061ac0
and qword [rsp + 0x50], 0
mov edx, 0x100
lea rcx, [rsp + 0x50]
call fcn.140004a90
mov rdi, qword [rsp + 0x50]
mov dword [rsp + 0x44], 0x44
mov dword [rsp + 0x40], 0x80
mov qword [rsp + 0x30], r14
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rdi
lea r9, [rsp + 0x44]
lea r8, [rbp - 0x20]
mov rdx, rsi
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
test eax, eax
jne 0x140061a02
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x140061a7e
cmp dword [rsp + 0x44], 0x44
jbe 0x1400619b6
mov ecx, 0x80004005
call fcn.140001b00
int3
cmp dword [rsp + 0x40], 0x80
jbe 0x1400619d6
mov edx, dword [rsp + 0x40]
add rdx, rdx
lea rcx, [rsp + 0x50]
call fcn.1400613bc
mov rdi, qword [rsp + 0x50]
mov qword [rsp + 0x30], r14
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rdi
lea r9, [rsp + 0x44]
lea r8, [rbp - 0x20]
mov rdx, rsi
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
test eax, eax
je 0x140061a7e
lea rcx, [rbp - 0x20]
call qword [sym.imp.ADVAPI32.dll_GetLengthSid]
cmp eax, 0x44
jb 0x140061a29
lea r8, str.::GetLengthSid_pSid_____sizeof_SID____sizeof_ULONG_____15___sizeof_ULONG___
mov edx, 0xc4
lea rcx, str.sdkinc_atlmfc_atlsecurity.inl
call fcn.14008410c
mov byte [rbx + 0x4c], 1
lea rdx, [rbx + 8]
lea r8, [rbp - 0x20]
mov ecx, dword [rsp + 0x44]
call qword [sym.imp.ADVAPI32.dll_CopySid]
test eax, eax
je 0x140061a7e
mov rdx, rdi
mov rcx, r12
call fcn.140061698
mov rdx, rsi
mov rcx, r15
call fcn.140061698
xor edx, edx
mov rcx, r13
call fcn.140061698
nop
lea rcx, [rsp + 0x58]
cmp qword [rsp + 0x50], rcx
je 0x140061a7a
lea rcx, [rsp + 0x50]
call fcn.14000498c
mov al, 1
jmp 0x140061ac2
mov dword [r14], 7
mov rcx, r15
call fcn.1400617c8
mov rcx, r12
call fcn.1400617c8
lea rcx, [rbx + 0x68]
call fcn.1400617c8
mov rcx, r13
call fcn.1400617c8
mov byte [rbx + 0x4c], 0
lea rax, [rsp + 0x58]
cmp qword [rsp + 0x50], rax
je 0x140061ac0
lea rcx, [rsp + 0x50]
call fcn.14000498c
xor al, al
mov rcx, qword [rbp + 0x30]
xor rcx, rsp
call fcn.140141cf0
mov rbx, qword [rsp + 0x190]
add rsp, 0x140
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x140080114
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r13
push r14
sub rsp, 0x40
mov ebp, r8d
mov r14, rdx
mov rdi, rcx
mov rcx, qword [0x1401720a0]
lea rsi, [0x1401720a0]
lea r13, [0x14014efa8]
cmp rcx, rsi
je 0x140080173
test byte [rcx + 0x1c], 1
je 0x140080173
cmp byte [rcx + 0x19], 4
jb 0x140080173
mov rcx, qword [rcx + 0x10]
mov edx, 0x25
mov r8, r13
call fcn.140004b74
mov rcx, qword [0x1401720a0]
xor ebx, ebx
mov dword [rsp + 0x70], ebx
test rdi, rdi
jne 0x14008019d
lea r8, str.wszfilePath___NULL
mov edx, 0x20e
lea rcx, str.base_stor_blbengine_service_sppmetadatamanager.cpp
call fcn.14008410c
mov rcx, qword [0x1401720a0]
test ebp, ebp
jne 0x1400801c0
lea r8, str.cToSave___0
mov edx, 0x20f
lea rcx, str.base_stor_blbengine_service_sppmetadatamanager.cpp
call fcn.14008410c
mov rcx, qword [0x1401720a0]
test r14, r14
jne 0x1400801e4
lea r8, str.pbToSave___NULL
mov edx, 0x210
lea rcx, str.base_stor_blbengine_service_sppmetadatamanager.cpp
call fcn.14008410c
mov rcx, qword [0x1401720a0]
cmp rcx, rsi
je 0x140080209
test byte [rcx + 0x1c], 1
je 0x140080209
cmp byte [rcx + 0x19], 4
jb 0x140080209
mov rcx, qword [rcx + 0x10]
mov edx, 0x26
mov r9, rdi
mov r8, r13
call fcn.140005afc
xor r9d, r9d
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], 0x2000080
mov edx, 0x40000000
mov rcx, rdi
mov dword [rsp + 0x20], 2
lea r8d, [r9 + 3]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rsi, rax
cmp rax, 0xffffffffffffffff
jne 0x140080299
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
movzx eax, ax
or eax, 0x80070000
test ecx, ecx
cmovle eax, ecx
mov ebx, eax
mov rcx, qword [0x1401720a0]
lea rbp, [0x1401720a0]
cmp rcx, rbp
je 0x140080359
test byte [rcx + 0x1c], 1
je 0x140080337
cmp byte [rcx + 0x19], 2
jb 0x140080337
mov rcx, qword [rcx + 0x10]
lea edx, [rsi + 0x28]
mov r9, rdi
mov dword [rsp + 0x20], eax
mov r8, r13
call fcn.140005b60
jmp 0x140080330
lea r9, [rsp + 0x70]
mov qword [rsp + 0x20], rbx
mov r8d, ebp
mov rdx, r14
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x140080302
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
movzx eax, ax
or eax, 0x80070000
test ecx, ecx
cmovle eax, ecx
mov ebx, eax
mov rcx, qword [0x1401720a0]
lea rbp, [0x1401720a0]
cmp rcx, rbp
je 0x140080327
test byte [rcx + 0x1c], 1
je 0x140080327
cmp byte [rcx + 0x19], 2
jb 0x140080327
mov rcx, qword [rcx + 0x10]
mov edx, 0x28
mov r9d, eax
mov r8, r13
call fcn.140004b98
jmp 0x140080327
cmp ebp, dword [rsp + 0x70]
je 0x140080320
lea r8, str.cToSave__dwBytesWritten
mov edx, 0x233
lea rcx, str.base_stor_blbengine_service_sppmetadatamanager.cpp
call fcn.14008410c
lea rbp, [0x1401720a0]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [0x1401720a0]
cmp rcx, rbp
je 0x140080359
test byte [rcx + 0x1c], 1
je 0x140080359
cmp byte [rcx + 0x19], 4
jb 0x140080359
mov rcx, qword [rcx + 0x10]
mov edx, 0x29
mov r8, r13
call fcn.140004b74
mov rbp, qword [rsp + 0x68]
mov eax, ebx
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x78]
add rsp, 0x40
pop r14
pop r13
pop rdi
ret
Function at 0x140084308
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x40
mov rbx, rcx
test rcx, rcx
jne 0x140084335
lea edx, [rcx + 0x3b]
lea rcx, str.base_stor_blbutil_networkutils.cpp
lea r8, str.wszNetworkShare
call fcn.14008410c
and qword [rsp + 0x50], 0
lea rdx, [rsp + 0x50]
xor edi, edi
mov rcx, rbx
mov qword [rsp + 0x58], rdi
or rsi, 0xffffffffffffffff
call fcn.140084cd4
mov ebx, eax
test eax, eax
js 0x140084413
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x140084394
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
cmp ebx, 0x80070005
jne 0x140084413
mov ebx, 0x80780047
jmp 0x140084413
mov rcx, qword [rsp + 0x50]
lea r8, [rsp + 0x58]
lea rdx, str.TempFile.tmp
call fcn.140084fcc
mov ebx, eax
test eax, eax
js 0x14008440e
and qword [rsp + 0x30], rdi
xor r9d, r9d
mov rdi, qword [rsp + 0x58]
mov edx, 0x40000000
mov dword [rsp + 0x28], 0x4000080
mov rcx, rdi
mov dword [rsp + 0x20], 2
lea r8d, [r9 + 1]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rsi, rax
cmp rax, 0xffffffffffffffff
jne 0x140084413
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, 0x80780047
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
cmp ecx, 0x80070005
cmove ecx, ebx
mov ebx, ecx
jmp 0x140084413
mov rdi, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov rcx, rdi
call qword [sym.imp.ole32.dll_CoTaskMemFree]
cmp rsi, 0xffffffffffffffff
je 0x140084436
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rsi, qword [rsp + 0x68]
mov eax, ebx
mov rbx, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
Function at 0x140087598
Capabilities:
Get disk information

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x20], rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x30
xor r12d, r12d
lea r9, [rax + 0x10]
mov qword [rdx], r12
mov r15, rdx
xor edx, edx
mov dword [rax + 0x18], r12d
xor r8d, r8d
mov r14, rcx
mov ebx, r12d
call qword [sym.imp.KERNEL32.dll_GetVolumePathNamesForVolumeNameW]
test eax, eax
jne 0x1400875f5
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xea
je 0x1400875f5
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
jmp 0x1400876ae
mov ecx, dword [rsp + 0x68]
add rcx, rcx
call qword [sym.imp.ole32.dll_CoTaskMemAlloc]
mov rbp, rax
test rax, rax
jne 0x140087614
mov ebx, 0x8007000e
jmp 0x1400876b2
mov r8d, dword [rsp + 0x68]
lea r9, [rsp + 0x70]
mov rdx, rax
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_GetVolumePathNamesForVolumeNameW]
test eax, eax
jne 0x140087644
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
jmp 0x1400876a5
or rsi, 0xffffffffffffffff
inc rsi
cmp word [rbp + rsi*2], r12w
jne 0x140087648
test esi, esi
je 0x1400876a5
lea eax, [rsi + 1]
lea rcx, [rax + rax]
mov ebx, eax
call qword [sym.imp.ole32.dll_CoTaskMemAlloc]
mov rdi, rax
test rax, rax
jne 0x140087675
mov ebx, 0x8007000e
jmp 0x1400876a5
mov r8, rbp
mov rdx, rbx
mov rcx, rax
call fcn.14003ac00
mov ebx, eax
test eax, eax
js 0x140087697
lea ecx, [rsi - 1]
mov word [rdi + rcx*2], r12w
mov qword [r15], rdi
mov rdi, r12
test rdi, rdi
je 0x1400876a5
mov rcx, rdi
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov rcx, rbp
call qword [sym.imp.ole32.dll_CoTaskMemFree]
test ebx, ebx
jns 0x1400876ed
mov rcx, qword [0x1401720a0]
lea rax, [0x1401720a0]
cmp rcx, rax
je 0x1400876ed
test byte [rcx + 0x1c], 1
je 0x1400876ed
cmp byte [rcx + 0x19], 3
jb 0x1400876ed
mov rcx, qword [rcx + 0x10]
lea r8, [0x14014fb20]
mov edx, 0xa
mov dword [rsp + 0x20], ebx
mov r9, r14
call fcn.140005b60
mov rbp, qword [rsp + 0x78]
mov eax, ebx
mov rbx, qword [rsp + 0x60]
add rsp, 0x30
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret
Function at 0x14008770c
Capabilities:
Get disk size

Disassembly:
mov rax, rsp
push rbx
push rbp
push rsi
push r13
push r14
sub rsp, 0x40
and qword [rdx], 0
mov rsi, rdx
and qword [rax + 0x18], 0
lea rdx, [rax + 0x18]
mov r14, rcx
call fcn.140084d90
lea r13, [0x1401720a0]
mov ebx, eax
test eax, eax
js 0x14008787c
and qword [rsp + 0x30], 0
mov r8d, 3
and dword [rsp + 0x28], 0
xor r9d, r9d
mov rcx, qword [rsp + 0x80]
mov edx, 0x80000000
mov dword [rsp + 0x20], r8d
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbp, rax
cmp rax, 0xffffffffffffffff
jne 0x1400877d1
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov rcx, qword [0x1401720a0]
cmp rcx, r13
je 0x1400877be
test byte [rcx + 0x1c], 1
je 0x1400877be
cmp byte [rcx + 0x19], 2
jb 0x1400877be
mov r9, qword [rsp + 0x80]
lea edx, [rbp + 0xc]
mov rcx, qword [rcx + 0x10]
lea r8, [0x14014fb20]
mov dword [rsp + 0x20], eax
call fcn.140005b60
mov rcx, qword [0x1401720a0]
movzx ebx, si
or ebx, 0x80070000
test esi, esi
cmovle ebx, esi
jmp 0x140087883
xor eax, eax
xor r9d, r9d
and qword [rsp + 0x38], rax
xor r8d, r8d
mov qword [rsp + 0x88], rax
mov edx, 0x7405c
lea rax, [rsp + 0x78]
mov rcx, rbp
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x88]
mov dword [rsp + 0x28], 8
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x140087868
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov rcx, qword [0x1401720a0]
cmp rcx, r13
je 0x140087858
test byte [rcx + 0x1c], 1
je 0x140087858
cmp byte [rcx + 0x19], 2
jb 0x140087858
mov r9, qword [rsp + 0x80]
lea r8, [0x14014fb20]
mov rcx, qword [rcx + 0x10]
mov edx, 0xc
mov dword [rsp + 0x20], eax
call fcn.140005b60
movzx ebx, si
or ebx, 0x80070000
test esi, esi
cmovle ebx, esi
jmp 0x140087873
mov rax, qword [rsp + 0x88]
mov qword [rsi], rax
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [0x1401720a0]
cmp qword [rsp + 0x80], 0
je 0x1400878a3
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov rcx, qword [0x1401720a0]
test ebx, ebx
jns 0x1400878d7
cmp rcx, r13
je 0x1400878d7
test dword [rcx + 0x1c], 0x200
je 0x1400878d7
cmp byte [rcx + 0x19], 2
jb 0x1400878d7
mov rcx, qword [rcx + 0x10]
lea r8, [0x14014fb20]
mov edx, 0xd
mov dword [rsp + 0x20], ebx
mov r9, r14
call fcn.140005b60
mov eax, ebx
add rsp, 0x40
pop r14
pop r13
pop rsi
pop rbp
pop rbx
ret
Function at 0x140088714
Capabilities:
Get system information on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r14
sub rsp, 0x50
mov rax, qword [0x140172608]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov rsi, rcx
mov rcx, qword [0x1401720a0]
lea r14, [0x1401720a0]
lea r12, [0x14014fb20]
mov ebp, 1
cmp rcx, r14
je 0x140088778
test byte [rcx + 0x1c], bpl
je 0x140088778
cmp byte [rcx + 0x19], 4
jb 0x140088778
mov rcx, qword [rcx + 0x10]
lea edx, [rbp + 0x17]
mov r8, r12
call fcn.140004b74
xor ebx, ebx
lea rcx, [rsp + 0x20]
xor edx, edx
lea edi, [rbx + 0x20]
mov r8d, edi
call sub.msvcrt.dll_memset
xor r9d, r9d
lea rdx, [rsp + 0x20]
mov r8d, edi
lea ecx, [rbx + 0x5a]
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
test eax, eax
jns 0x1400887e5
mov ecx, eax
call fcn.14003ab64
mov ebx, eax
mov rcx, qword [0x1401720a0]
cmp rcx, r14
je 0x140088888
test byte [rcx + 0x1c], 8
je 0x140088866
cmp byte [rcx + 0x19], 2
jb 0x140088866
mov rcx, qword [rcx + 0x10]
lea edx, [rdi - 7]
mov r9d, eax
mov r8, r12
call fcn.140004b98
jmp 0x14008885f
mov rcx, qword [0x1401720a0]
cmp rcx, r14
je 0x14008881a
test byte [rcx + 0x1c], bpl
je 0x14008881a
cmp byte [rcx + 0x19], 4
jb 0x14008881a
mov r9d, dword [rsp + 0x30]
mov edx, 0x1a
mov rcx, qword [rcx + 0x10]
mov r8, r12
call fcn.140004b98
mov rcx, qword [0x1401720a0]
cmp dword [rsp + 0x30], 2
movzx edi, bl
cmove edi, ebp
cmp rcx, r14
je 0x14008885c
test byte [rcx + 0x1c], bpl
je 0x14008885c
cmp byte [rcx + 0x19], 4
jb 0x14008885c
mov rcx, qword [rcx + 0x10]
lea rax, [0x14014a8a0]
test dil, dil
lea r9, [0x14014a8a8]
mov edx, 0x1b
mov r8, r12
cmovne r9, rax
call fcn.140005afc
mov byte [rsi], dil
mov rcx, qword [0x1401720a0]
cmp rcx, r14
je 0x140088888
test byte [rcx + 0x1c], bpl
je 0x140088888
cmp byte [rcx + 0x19], 4
jb 0x140088888
mov rcx, qword [rcx + 0x10]
mov edx, 0x1c
mov r8, r12
call fcn.140004b74
mov eax, ebx
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140141cf0
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop r12
pop rdi
ret
Function at 0x14008b3f8
Capabilities:
Get disk information

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x460
mov rax, qword [0x140172608]
xor rax, rsp
mov qword [rsp + 0x450], rax
mov rsi, rdx
mov rbx, rcx
test rcx, rcx
jne 0x14008b43f
lea r8, str.wszFilePath___NULL
mov edx, 0x7a0
lea rcx, str.base_stor_blbutil_fileutils.cpp
call fcn.14008410c
test rsi, rsi
jne 0x14008b45c
lea r8, str.pwszVolumePath___NULL
mov edx, 0x7a1
lea rcx, str.base_stor_blbutil_fileutils.cpp
call fcn.14008410c
and qword [rsi], 0
lea rcx, [rsp + 0x30]
xor edi, edi
xor edx, edx
mov r8d, 0x208
mov qword [rsp + 0x20], rdi
call sub.msvcrt.dll_memset
xor edx, edx
lea rcx, [rsp + 0x240]
mov r8d, 0x208
call sub.msvcrt.dll_memset
mov r8d, 0x104
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetVolumePathNameW]
test eax, eax
jne 0x14008b4bf
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
jmp 0x14008b550
mov r8d, 0x104
lea rdx, [rsp + 0x240]
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetVolumeNameForVolumeMountPointW]
test eax, eax
jne 0x14008b52d
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
jne 0x14008b552
mov rcx, qword [0x1401720a0]
lea rax, [0x1401720a0]
cmp rcx, rax
je 0x14008b526
test byte [rcx + 0x1c], 1
je 0x14008b526
cmp byte [rcx + 0x19], 2
jb 0x14008b526
mov rcx, qword [rcx + 0x10]
lea edx, [rbx + 0x3e]
lea r8, [0x14014fd38]
call fcn.140004b74
mov ebx, 0x8000ffff
jmp 0x14008b550
xor r8d, r8d
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x240]
call fcn.140084ef8
mov rdi, qword [rsp + 0x20]
mov ebx, eax
test eax, eax
js 0x14008b554
mov qword [rsi], rdi
test ebx, ebx
jns 0x14008b55d
mov rcx, rdi
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov eax, ebx
mov rcx, qword [rsp + 0x450]
xor rcx, rsp
call fcn.140141cf0
lea r11, [rsp + 0x460]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret

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

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov edi, edx
mov rbx, rcx
test rcx, rcx
jne 0x14008b63c
lea r8, str.wcsPath
mov edx, 0x817
lea rcx, str.base_stor_blbutil_fileutils.cpp
call fcn.14008410c
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x14008b6bf
xor r9d, r9d
xor r8d, r8d
mov dl, dil
mov rcx, rbx
call fcn.140088d94
test eax, eax
js 0x14008b6c1
mov edx, 0x2000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
jne 0x14008b6bf
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rcx, qword [0x1401720a0]
lea rax, [0x1401720a0]
cmp rcx, rax
je 0x14008b6b0
test byte [rcx + 0x1c], 2
je 0x14008b6b0
cmp byte [rcx + 0x19], 2
jb 0x14008b6b0
mov rcx, qword [rcx + 0x10]
lea r8, [0x14014fd38]
mov edx, 0x40
mov r9d, ebx
call fcn.140004b98
movzx eax, bx
or eax, 0x80070000
test ebx, ebx
cmovle eax, ebx
jmp 0x14008b6c1
xor eax, eax
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret