joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400fc1a8
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
xor ebx, ebx
mov rdi, rdx
mov byte [rdx], bl
mov rsi, rcx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
nop dword [rax + rax]
cmp eax, 0xffffffff
je 0x1400fc1db
test al, 0x10
jne 0x1400fc235
mov byte [rdi], 1
jmp 0x1400fc235
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
jle 0x1400fc1f6
movzx ebx, ax
or ebx, 0x80070000
test ebx, ebx
jns 0x1400fc235
mov rcx, qword [0x14016a048]
lea rax, [0x14016a048]
cmp rcx, rax
je 0x1400fc235
test byte [rcx + 0x1c], 1
je 0x1400fc235
cmp byte [rcx + 0x19], 2
jb 0x1400fc235
mov rcx, qword [rcx + 0x10]
lea r8, [0x140156858]
mov edx, 0xb
mov dword [rsp + 0x20], ebx
mov r9, rsi
call fcn.140014f78
mov rsi, qword [rsp + 0x48]
mov eax, ebx
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret

Function at 0x1400fc328
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x20], rbp
push rsi
sub rsp, 0x30
and qword [rax + 0x18], 0
mov rsi, rdx
mov byte [rdx], 0
mov rbp, rcx
lea rdx, [rax + 0x18]
call fcn.14008fa20
mov ebx, eax
test eax, eax
js 0x1400fc39e
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
nop dword [rax + rax]
cmp eax, 0xffffffff
je 0x1400fc370
mov byte [rsi], 1
jmp 0x1400fc3d9
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
jle 0x1400fc38b
movzx ebx, ax
or ebx, 0x80070000
lea eax, [rbx + 0x7ff8fffe]
cmp eax, 1
ja 0x1400fc39a
xor ebx, ebx
jmp 0x1400fc3d9
test ebx, ebx
jns 0x1400fc3d9
mov rcx, qword [0x14016a048]
lea rax, [0x14016a048]
cmp rcx, rax
je 0x1400fc3d9
test byte [rcx + 0x1c], 1
je 0x1400fc3d9
cmp byte [rcx + 0x19], 2
jb 0x1400fc3d9
mov rcx, qword [rcx + 0x10]
lea r8, [0x140156858]
mov edx, 0xa
mov dword [rsp + 0x20], ebx
mov r9, rbp
call fcn.140014f78
cmp qword [rsp + 0x50], 0
je 0x1400fc3f2
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
nop dword [rax + rax]
mov rbp, qword [rsp + 0x58]
mov eax, ebx
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rsi
ret
Function at 0x1400fc40c
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r14
sub rsp, 0x30
mov rdi, rdx
mov rsi, rcx
mov rcx, qword [0x14016a048]
lea r14, [0x14016a048]
cmp rcx, r14
je 0x1400fc45b
test byte [rcx + 0x1c], 1
je 0x1400fc45b
cmp byte [rcx + 0x19], 5
jb 0x1400fc45b
mov rcx, qword [rcx + 0x10]
lea r8, [0x140156858]
mov edx, 0xc
call fcn.14000c0e8
test rdi, rdi
jne 0x1400fc478
lea r8, str.pbIsReparsePoint___NULL
mov edx, 0xab
lea rcx, str.base_stor_blbengine_blbengutils_blbfsutils.cpp
call fcn.140088f60
mov rcx, rsi
mov byte [rdi], 0
xor ebx, ebx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
nop dword [rax + rax]
cmp eax, 0xffffffff
je 0x1400fc4d2
bt eax, 0xa
jae 0x1400fc525
mov byte [rdi], 1
mov rcx, qword [0x14016a048]
cmp rcx, r14
je 0x1400fc552
test byte [rcx + 0x1c], 1
je 0x1400fc52c
cmp byte [rcx + 0x19], 4
jb 0x1400fc52c
mov rcx, qword [rcx + 0x10]
lea edx, [rbx + 0xd]
mov r9, rsi
lea r8, [0x140156858]
call fcn.140014f10
jmp 0x1400fc525
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
jle 0x1400fc4ed
movzx ebx, ax
or ebx, 0x80070000
test ebx, ebx
jns 0x1400fc525
mov rcx, qword [0x14016a048]
cmp rcx, r14
je 0x1400fc552
test byte [rcx + 0x1c], 1
je 0x1400fc52c
cmp byte [rcx + 0x19], 2
jb 0x1400fc52c
mov rcx, qword [rcx + 0x10]
lea r8, [0x140156858]
mov edx, 0xe
mov dword [rsp + 0x20], ebx
mov r9, rsi
call fcn.140014f78
mov rcx, qword [0x14016a048]
cmp rcx, r14
je 0x1400fc552
test byte [rcx + 0x1c], 1
je 0x1400fc552
cmp byte [rcx + 0x19], 5
jb 0x1400fc552
mov rcx, qword [rcx + 0x10]
lea r8, [0x140156858]
mov edx, 0xf
call fcn.14000c0e8
mov rsi, qword [rsp + 0x48]
mov eax, ebx
mov rbx, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x50]
add rsp, 0x30
pop r14
ret
Function at 0x1400fce48
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov byte [rax + 0x20], r9b
push rdi
push r12
push r15
sub rsp, 0x30
mov bpl, r8b
mov rsi, rcx
mov rcx, qword [0x14016a048]
lea r15, [0x14016a048]
lea r12, [0x140156858]
cmp rcx, r15
je 0x1400fcea1
test byte [rcx + 0x1c], 1
je 0x1400fcea1
cmp byte [rcx + 0x19], 4
jb 0x1400fcea1
mov rcx, qword [rcx + 0x10]
mov edx, 0x2d
mov r8, r12
call fcn.14000c0e8
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
nop dword [rax + rax]
mov edi, eax
cmp eax, 0xffffffff
jne 0x1400fcf4b
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
jle 0x1400fced6
movzx ebx, ax
or ebx, 0x80070000
mov rcx, qword [0x14016a048]
cmp rcx, r15
je 0x1400fcf2f
test byte [rcx + 0x1c], 1
je 0x1400fcf0d
cmp byte [rcx + 0x19], 2
jb 0x1400fcf0d
mov rcx, qword [rcx + 0x10]
mov edx, 0x30
mov r9, rsi
mov dword [rsp + 0x20], ebx
mov r8, r12
call fcn.140014f78
mov rcx, qword [0x14016a048]
cmp rcx, r15
je 0x1400fcf2f
test byte [rcx + 0x1c], 1
je 0x1400fcf2f
cmp byte [rcx + 0x19], 4
jb 0x1400fcf2f
mov rcx, qword [rcx + 0x10]
mov edx, 0x34
mov r8, r12
call fcn.14000c0e8
mov rbp, qword [rsp + 0x58]
mov eax, ebx
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x60]
add rsp, 0x30
pop r15
pop r12
pop rdi
ret
lea rcx, [rsp + 0x68]
mov byte [rsp + 0x68], 0
call fcn.140092190
mov ebx, eax
test eax, eax
js 0x1400fcf06
test bpl, bpl
je 0x1400fcfa8
bt edi, 0xb
jae 0x1400fcfdf
mov rcx, qword [0x14016a048]
cmp rcx, r15
je 0x1400fcf9e
test byte [rcx + 0x1c], 1
je 0x1400fcf9e
cmp byte [rcx + 0x19], 2
jb 0x1400fcf9e
mov rcx, qword [rcx + 0x10]
mov edx, 0x31
mov r9, rsi
mov r8, r12
call fcn.140014f10
mov rcx, qword [0x14016a048]
mov ebx, 0x80780066
jmp 0x1400fcf0d
mov rcx, qword [0x14016a048]
cmp rcx, r15
je 0x1400fcfe6
test byte [rcx + 0x1c], 1
je 0x1400fcfe6
cmp byte [rcx + 0x19], 4
jb 0x1400fcfe6
mov rcx, qword [rcx + 0x10]
mov eax, edi
and eax, 0x800
mov edx, 0x32
mov r9, rsi
mov dword [rsp + 0x20], eax
mov r8, r12
call fcn.140040130
mov rcx, qword [0x14016a048]
bt edi, 0xe
jae 0x1400fcf0d
cmp rcx, r15
je 0x1400fd01c
test byte [rcx + 0x1c], 1
je 0x1400fd01c
cmp byte [rcx + 0x19], 2
jb 0x1400fd01c
mov rcx, qword [rcx + 0x10]
mov edx, 0x33
mov r9, rsi
mov r8, r12
call fcn.140014f10
mov rcx, qword [0x14016a048]
mov ebx, 0x80780067
jmp 0x1400fcf0d
Function at 0x14010ae68
Capabilities:
Get disk information

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
push rdi
sub rsp, 0x30
xor ebx, ebx
mov rdi, rdx
mov esi, ebx
mov byte [rax + 0x10], bl
mov dword [rdx], ebx
mov rbp, rcx
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
nop dword [rax + rax]
sub eax, 2
je 0x14010af0f
sub eax, 1
je 0x14010aeae
cmp eax, 2
jne 0x14010af16
mov dword [rdi], 1
jmp 0x14010af16
lea rdx, [rsp + 0x48]
mov rcx, rbp
call fcn.14010a6b4
mov esi, eax
test eax, eax
jns 0x14010af00
mov rcx, qword [0x14016a048]
lea rax, [0x14016a048]
cmp rcx, rax
je 0x14010aefc
test byte [rcx + 0x1c], 1
je 0x14010aefc
cmp byte [rcx + 0x19], 3
jb 0x14010aefc
mov rcx, qword [rcx + 0x10]
lea r8, [0x1401577e0]
mov edx, 0xe
mov dword [rsp + 0x20], esi
mov r9, rbp
call fcn.140014f78
mov esi, ebx
jmp 0x14010af04
mov bl, byte [rsp + 0x48]
neg bl
sbb eax, eax
neg eax
add eax, 2
jmp 0x14010af14
mov eax, 5
mov dword [rdi], eax
mov rbx, qword [rsp + 0x40]
mov eax, esi
mov rsi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
Function at 0x14010af34
Capabilities:
Get disk information

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
push rbp
push rsi
push rdi
push r13
push r15
sub rsp, 0x30
xor r15d, r15d
lea r9, [rax + 0x10]
xor r8d, r8d
mov qword [rax + 0x20], r15
xor edx, edx
mov dword [rax + 0x10], r15d
mov ebx, r15d
mov dword [rax + 0x18], r15d
mov esi, r15d
mov rdi, rcx
call qword [sym.imp.KERNEL32.dll_GetVolumePathNamesForVolumeNameW]
nop dword [rax + rax]
lea r13, [0x1401577e0]
lea rbp, [0x14016a048]
test eax, eax
jne 0x14010afcf
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
jle 0x14010afa0
movzx ebx, ax
or ebx, 0x80070000
cmp ebx, 0x800700ea
jne 0x14010b03c
mov edx, dword [rsp + 0x68]
lea rcx, [rsp + 0x78]
mov r8d, 2
call fcn.14000d37c
mov rsi, qword [rsp + 0x78]
mov ebx, eax
test eax, eax
js 0x14010b133
mov r8d, dword [rsp + 0x68]
lea r9, [rsp + 0x70]
mov rdx, rsi
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetVolumePathNamesForVolumeNameW]
nop dword [rax + rax]
test eax, eax
jne 0x14010b084
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
jle 0x14010b00e
movzx ebx, ax
or ebx, 0x80070000
mov rcx, qword [0x14016a048]
cmp rcx, rbp
je 0x14010b13a
test byte [rcx + 0x1c], 1
je 0x14010b13a
cmp byte [rcx + 0x19], 2
jb 0x14010b13a
mov edx, 0x39
jmp 0x14010b120
mov rcx, qword [0x14016a048]
lea rbp, [0x14016a048]
cmp rcx, rbp
je 0x14010b177
test byte [rcx + 0x1c], 1
je 0x14010b155
cmp byte [rcx + 0x19], 2
jb 0x14010b155
mov rcx, qword [rcx + 0x10]
mov edx, 0x38
mov r9, rdi
mov dword [rsp + 0x20], ebx
mov r8, r13
call fcn.140014f78
jmp 0x14010b14e
mov rdi, rsi
cmp word [rdi], r15w
je 0x14010b133
mov rcx, qword [0x14016a048]
cmp rcx, rbp
je 0x14010b0bd
test byte [rcx + 0x1c], 1
je 0x14010b0bd
cmp byte [rcx + 0x19], 4
jb 0x14010b0bd
mov rcx, qword [rcx + 0x10]
mov edx, 0x3a
mov r9, rdi
mov r8, r13
call fcn.140014f10
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_DeleteVolumeMountPointW]
nop dword [rax + rax]
test eax, eax
je 0x14010b0e8
or rax, 0xffffffffffffffff
inc rax
cmp word [rdi + rax*2], r15w
jne 0x14010b0d4
lea rdi, [rdi + rax*2]
add rdi, 2
jmp 0x14010b087
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
jle 0x14010b103
movzx ebx, ax
or ebx, 0x80070000
mov rcx, qword [0x14016a048]
cmp rcx, rbp
je 0x14010b13a
test byte [rcx + 0x1c], 1
je 0x14010b13a
cmp byte [rcx + 0x19], 2
jb 0x14010b13a
mov edx, 0x3b
mov rcx, qword [rcx + 0x10]
mov r9, rdi
mov r8, r13
mov dword [rsp + 0x20], ebx
call fcn.140014f78
mov rcx, qword [0x14016a048]
test rsi, rsi
je 0x14010b155
mov rcx, rsi
call qword [sym.imp.ole32.dll_CoTaskMemFree]
nop dword [rax + rax]
mov rcx, qword [0x14016a048]
cmp rcx, rbp
je 0x14010b177
test byte [rcx + 0x1c], 1
je 0x14010b177
cmp byte [rcx + 0x19], 4
jb 0x14010b177
mov rcx, qword [rcx + 0x10]
mov edx, 0x3c
mov r8, r13
call fcn.14000c0e8
mov eax, ebx
mov rbx, qword [rsp + 0x60]
add rsp, 0x30
pop r15
pop r13
pop rdi
pop rsi
pop rbp
ret
Function at 0x14010e4f4
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
push r14
push r15
mov rbp, rsp
sub rsp, 0x70
mov rax, qword [0x14016a508]
xor rax, rsp
mov qword [rbp - 8], rax
and qword [rbp - 0x30], 0
lea r8, [rbp - 0x30]
and qword [rbp - 0x28], 0
mov r14, rdx
and dword [rbp - 0x20], 0
lea rdx, str.MediaId
mov r15, rcx
or rsi, 0xffffffffffffffff
call fcn.14008a090
mov ebx, eax
test eax, eax
js 0x14010e685
and qword [rsp + 0x30], 0
lea r8d, [rsi + 2]
and dword [rsp + 0x28], 0
xor r9d, r9d
mov rcx, qword [rbp - 0x30]
mov edx, 0x80000000
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
nop dword [rax + rax]
mov rsi, rax
cmp rax, 0xffffffffffffffff
jne 0x14010e5e7
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
mov rcx, qword [0x14016a048]
lea r14, [0x14016a048]
cmp rcx, r14
je 0x14010e5d1
test byte [rcx + 0x1c], 1
je 0x14010e5d1
cmp byte [rcx + 0x19], 2
jb 0x14010e5d1
mov r9, qword [rbp - 0x30]
lea edx, [rsi + 0xc]
mov rcx, qword [rcx + 0x10]
lea r8, [0x140157dd0]
mov dword [rsp + 0x20], eax
call fcn.140014f78
mov rcx, qword [0x14016a048]
test ebx, ebx
jle 0x14010e693
movzx ebx, bx
or ebx, 0x80070000
jmp 0x14010e693
and qword [rsp + 0x20], 0
lea r9, [rbp - 0x20]
mov r8d, 0x10
lea rdx, [rbp - 0x18]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ReadFile]
nop dword [rax + rax]
test eax, eax
jne 0x14010e65d
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
mov rcx, qword [0x14016a048]
lea r14, [0x14016a048]
cmp rcx, r14
je 0x14010e5d1
test byte [rcx + 0x1c], 1
je 0x14010e5d1
cmp byte [rcx + 0x19], 2
jb 0x14010e5d1
mov r9, qword [rbp - 0x30]
lea r8, [0x140157dd0]
mov rcx, qword [rcx + 0x10]
mov edx, 0xc
mov dword [rsp + 0x20], eax
call fcn.14003fbc0
jmp 0x14010e5ca
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x18]
call qword [sym.imp.RPCRT4.dll_UuidToStringW]
nop dword [rax + rax]
test eax, eax
je 0x14010e67c
mov ebx, 0x8007000e
jmp 0x14010e685
movups xmm0, xmmword [rbp - 0x18]
movdqu xmmword [r14], xmm0
mov rcx, qword [0x14016a048]
lea r14, [0x14016a048]
cmp qword [rbp - 0x30], 0
je 0x14010e6b1
mov rcx, qword [rbp - 0x30]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
nop dword [rax + rax]
mov rcx, qword [0x14016a048]
cmp qword [rbp - 0x28], 0
je 0x14010e6d4
lea rcx, [rbp - 0x28]
call qword [sym.imp.RPCRT4.dll_RpcStringFreeW]
nop dword [rax + rax]
and qword [rbp - 0x28], 0
mov rcx, qword [0x14016a048]
cmp rsi, 0xffffffffffffffff
je 0x14010e6f0
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop dword [rax + rax]
mov rcx, qword [0x14016a048]
test ebx, ebx
jns 0x14010e721
cmp rcx, r14
je 0x14010e721
test byte [rcx + 0x1c], 1
je 0x14010e721
cmp byte [rcx + 0x19], 2
jb 0x14010e721
mov rcx, qword [rcx + 0x10]
lea r8, [0x140157dd0]
mov edx, 0xd
mov dword [rsp + 0x20], ebx
mov r9, r15
call fcn.140014f78
mov eax, ebx
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.1400071e0
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x14010fd8c
Capabilities:
Get disk information

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x30
xor ebx, ebx
mov rsi, rdx
mov byte [rdx], bl
mov rdi, rcx
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
nop dword [rax + rax]
mov r8d, eax
add eax, 0xfffffffd
test eax, 0xfffffffd
je 0x14010fe8b
cmp r8d, 2
jne 0x14010fe8e
lea rdx, [rsp + 0x48]
mov byte [rsp + 0x48], bl
mov rcx, rdi
call fcn.14010a07c
lea r14, [0x14016a048]
mov ebx, eax
test eax, eax
jns 0x14010fe2a
mov rcx, qword [0x14016a048]
cmp rcx, r14
je 0x14010fe24
test byte [rcx + 0x1c], 1
je 0x14010fe24
cmp byte [rcx + 0x19], 3
jb 0x14010fe24
mov rcx, qword [rcx + 0x10]
lea r8, [0x140157dd0]
mov edx, 0x52
mov dword [rsp + 0x20], eax
mov r9, rdi
call fcn.140014f78
xor al, al
xor ebx, ebx
jmp 0x14010fe2e
mov al, byte [rsp + 0x48]
test al, al
jne 0x14010fe8e
lea rdx, [rsp + 0x48]
mov byte [rsp + 0x48], al
mov rcx, rdi
call fcn.140120ff4
mov ebx, eax
test eax, eax
jns 0x14010fe83
mov rcx, qword [0x14016a048]
cmp rcx, r14
je 0x14010fe7d
test byte [rcx + 0x1c], 1
je 0x14010fe7d
cmp byte [rcx + 0x19], 3
jb 0x14010fe7d
mov rcx, qword [rcx + 0x10]
lea r8, [0x140157dd0]
mov edx, 0x53
mov dword [rsp + 0x20], eax
mov r9, rdi
call fcn.140014f78
mov al, 1
xor ebx, ebx
jmp 0x14010fe87
mov al, byte [rsp + 0x48]
test al, al
je 0x14010fe8e
mov byte [rsi], 1
mov rsi, qword [rsp + 0x50]
mov eax, ebx
mov rbx, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x58]
add rsp, 0x30
pop r14
ret
Function at 0x14010feb0
Capabilities:
Get disk information

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x40
xor r15d, r15d
mov rdi, r8
mov byte [rbp + 0x50], r15b
mov r14, rdx
mov byte [rbp + 0x48], r15b
mov rsi, rcx
mov byte [rbp + 0x58], r15b
mov ebx, r15d
mov byte [rbp - 0x10], r15b
mov byte [rbp - 0xf], r15b
mov byte [rdx], r15b
test r8, r8
je 0x14010fef0
mov byte [r8], r15b
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
nop dword [rax + rax]
lea r13, [0x14016a048]
sub eax, 2
je 0x14010ffb2
sub eax, 1
je 0x14010ff4b
cmp eax, 2
jne 0x1401100a3
test rdi, rdi
je 0x14010ff22
mov byte [rdi], 1
lea r8, [rbp + 0x50]
mov rcx, rsi
lea rdx, [rbp + 0x48]
call fcn.140120678
mov ebx, eax
test eax, eax
js 0x14011006f
cmp byte [rbp + 0x48], r15b
je 0x1401100a3
jmp 0x140110067
lea rdx, [rbp + 0x50]
mov rcx, rsi
call fcn.14012d090
mov ebx, eax
test eax, eax
js 0x14011006f
cmp byte [rbp + 0x50], r15b
je 0x1401100a3
test rdi, rdi
je 0x14010ff73
mov byte [rdi], 1
lea rdx, [rbp + 0x58]
mov rcx, rsi
call fcn.14012e208
mov ebx, eax
test eax, eax
jns 0x14010ffa3
cmp eax, 0x80780076
jne 0x14011006f
mov byte [r14], r15b
test rdi, rdi
je 0x14010ff9b
mov byte [rdi], r15b
mov ebx, r15d
jmp 0x14011006b
cmp byte [rbp + 0x58], r15b
jne 0x1401100a3
jmp 0x140110067
lea rdx, [rbp - 0x10]
mov rcx, rsi
call fcn.14010a07c
mov ebx, eax
test eax, eax
jns 0x140110000
mov rcx, qword [0x14016a048]
cmp rcx, r13
je 0x14010fff8
test byte [rcx + 0x1c], 1
je 0x14010fff8
cmp byte [rcx + 0x19], 3
jb 0x14010fff8
mov rcx, qword [rcx + 0x10]
lea r8, [0x140157dd0]
mov edx, 0x54
mov dword [rsp + 0x20], eax
mov r9, rsi
call fcn.140014f78
mov al, r15b
mov ebx, r15d
jmp 0x140110003
mov al, byte [rbp - 0x10]
test al, al
jne 0x1401100a3
lea rdx, [rbp - 0xf]
mov rcx, rsi
call fcn.140120ff4
mov ebx, eax
test eax, eax
jns 0x140110058
mov rcx, qword [0x14016a048]
cmp rcx, r13
je 0x140110051
test byte [rcx + 0x1c], 1
je 0x140110051
cmp byte [rcx + 0x19], 3
jb 0x140110051
mov rcx, qword [rcx + 0x10]
lea r8, [0x140157dd0]
mov edx, 0x55
mov dword [rsp + 0x20], eax
mov r9, rsi
call fcn.140014f78
mov al, 1
mov ebx, r15d
jmp 0x14011005b
mov al, byte [rbp - 0xf]
test al, al
je 0x1401100a3
test rdi, rdi
je 0x140110067
mov byte [rdi], 1
mov byte [r14], 1
test ebx, ebx
jns 0x1401100a3
mov rcx, qword [0x14016a048]
cmp rcx, r13
je 0x1401100a3
test byte [rcx + 0x1c], 1
je 0x1401100a3
cmp byte [rcx + 0x19], 2
jb 0x1401100a3
mov rcx, qword [rcx + 0x10]
lea r8, [0x140157dd0]
mov edx, 0x56
mov dword [rsp + 0x20], ebx
mov r9, rsi
call fcn.140014f78
mov eax, ebx
add rsp, 0x40
pop r15
pop r14
pop r13
pop rdi
pop rsi
pop rbx
pop rbp
ret
Function at 0x14011e938
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rsi
push rdi
push r14
sub rsp, 0x40
mov rsi, rdx
mov r14, rcx
test rdx, rdx
jne 0x14011e968
lea r8, str.wszfilePath___NULL
mov edx, 0xac
lea rcx, str.base_stor_blbengine_blbengutils_filelogger.cpp
call fcn.140088f60
and qword [rsp + 0x30], 0
xor r9d, r9d
and dword [rsp + 0x68], 0
mov eax, 0xfeff
and qword [rsp + 0x70], 0
mov edx, 0x40000000
mov dword [rsp + 0x28], 0x80
mov rcx, rsi
lea r8d, [r9 + 3]
mov word [rsp + 0x60], ax
mov dword [rsp + 0x20], 4
call qword [sym.imp.KERNEL32.dll_CreateFileW]
nop dword [rax + rax]
mov qword [r14], rax
cmp rax, 0xffffffffffffffff
jne 0x14011ea1e
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
jle 0x14011e9d2
movzx ebx, ax
or ebx, 0x80070000
mov rcx, qword [0x14016a048]
lea rdi, [0x14016a048]
cmp rcx, rdi
je 0x14011eb84
test byte [rcx + 0x1c], 1
je 0x14011eb84
cmp byte [rcx + 0x19], 2
jb 0x14011eb84
mov rcx, qword [rcx + 0x10]
lea r8, [0x140158ac8]
mov edx, 0xb
mov dword [rsp + 0x20], ebx
mov r9, rsi
call fcn.140014f78
jmp 0x14011eb84
lea rdx, [rsp + 0x70]
mov rcx, r14
call fcn.14011ecf0
mov ebx, eax
test eax, eax
jns 0x14011ea79
mov rcx, qword [0x14016a048]
lea rdi, [0x14016a048]
cmp rcx, rdi
je 0x14011eb84
test byte [rcx + 0x1c], 1
je 0x14011eb84
cmp byte [rcx + 0x19], 2
jb 0x14011eb84
mov edx, 0xc
mov r9d, eax
mov rcx, qword [rcx + 0x10]
lea r8, [0x140158ac8]
call fcn.14000c114
jmp 0x14011eb84
cmp qword [rsp + 0x70], 0
lea rdi, [0x14016a048]
jne 0x14011eb54
mov rcx, qword [r14]
lea r9, [rsp + 0x68]
and qword [rsp + 0x20], 0
lea rdx, [rsp + 0x60]
mov r8d, 2
call qword [sym.imp.KERNEL32.dll_WriteFile]
nop dword [rax + rax]
test eax, eax
jne 0x14011eb08
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
jle 0x14011ead0
movzx ebx, ax
or ebx, 0x80070000
mov rcx, qword [0x14016a048]
lea rdi, [0x14016a048]
cmp rcx, rdi
je 0x14011eb84
test byte [rcx + 0x1c], 1
je 0x14011eb84
cmp byte [rcx + 0x19], 2
jb 0x14011eb84
mov edx, 0xd
mov r9d, ebx
jmp 0x14011ea64
cmp dword [rsp + 0x68], 2
je 0x14011eb27
lea r8, str.dwBytesWritten__sizeof_wchUnicodeBOM_
mov edx, 0xe4
lea rcx, str.base_stor_blbengine_blbengutils_filelogger.cpp
call fcn.140088f60
mov rcx, qword [0x14016a048]
cmp rcx, rdi
je 0x14011eb84
test byte [rcx + 0x1c], 1
je 0x14011eb5b
cmp byte [rcx + 0x19], 4
jb 0x14011eb5b
mov rcx, qword [rcx + 0x10]
lea r8, [0x140158ac8]
mov edx, 0xe
call fcn.14000c0e8
mov rcx, qword [0x14016a048]
cmp rcx, rdi
je 0x14011eb84
test byte [rcx + 0x1c], 1
je 0x14011eb84
cmp byte [rcx + 0x19], 4
jb 0x14011eb84
mov rcx, qword [rcx + 0x10]
lea r8, [0x140158ac8]
mov edx, 0xf
mov r9, rsi
call fcn.140014f10
mov eax, ebx
mov rbx, qword [rsp + 0x78]
add rsp, 0x40
pop r14
pop rdi
pop rsi
ret
Function at 0x14012c040
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
mov rbp, r9
mov r15b, r8b
mov r12, rdx
mov r14, rcx
mov rcx, qword [0x14016a048]
lea r13, [0x14016a048]
cmp rcx, r13
je 0x14012c09c
test byte [rcx + 0x1c], 1
je 0x14012c09c
cmp byte [rcx + 0x19], 4
jb 0x14012c09c
mov rcx, qword [rcx + 0x10]
lea r8, [0x140159eb8]
mov edx, 0xc
call fcn.14000c0e8
and qword [rsp + 0x20], 0
xorps xmm0, xmm0
movups xmmword [rbp], xmm0
xor eax, eax
xor esi, esi
mov qword [rbp + 0x10], rax
xor r8d, r8d
mov rcx, qword [r14]
xor edx, edx
mov qword [rsp + 0x60], rsi
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
nop dword [rax + rax]
mov edi, eax
test eax, eax
jne 0x14012c0f4
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
jle 0x14012c1da
movzx ebx, ax
or ebx, 0x80070000
jmp 0x14012c1da
mov r8d, 2
lea rcx, [rsp + 0x20]
mov edx, edi
call fcn.14000d37c
mov ebx, eax
test eax, eax
js 0x14012c1ad
mov rcx, qword [r14]
mov r8d, edi
mov rdi, qword [rsp + 0x20]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
nop dword [rax + rax]
test eax, eax
jne 0x14012c14b
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
jle 0x14012c1b2
movzx ebx, ax
or ebx, 0x80070000
jmp 0x14012c1b2
lea rdx, [rsp + 0x60]
mov rcx, rdi
call fcn.140089d98
mov ebx, eax
test eax, eax
js 0x14012c1a6
test rdi, rdi
je 0x14012c174
mov rcx, rdi
call qword [sym.imp.ole32.dll_CoTaskMemFree]
nop dword [rax + rax]
xor edi, edi
mov rsi, qword [rsp + 0x60]
mov rdx, rbp
mov rcx, rsi
call fcn.14008a7d0
mov ebx, eax
test eax, eax
js 0x14012c1b2
mov rcx, qword [r12]
lea rdx, [rbp + 8]
xor r8d, r8d
call fcn.14008a470
mov ebx, eax
test eax, eax
js 0x14012c1b2
mov byte [rbp + 0x10], r15b
jmp 0x14012c1b2
mov rsi, qword [rsp + 0x60]
jmp 0x14012c1b2
mov rdi, qword [rsp + 0x20]
test rdi, rdi
je 0x14012c1c6
mov rcx, rdi
call qword [sym.imp.ole32.dll_CoTaskMemFree]
nop dword [rax + rax]
test rsi, rsi
je 0x14012c1da
mov rcx, rsi
call qword [sym.imp.ole32.dll_CoTaskMemFree]
nop dword [rax + rax]
mov rcx, qword [0x14016a048]
cmp rcx, r13
je 0x14012c207
test byte [rcx + 0x1c], 1
je 0x14012c207
cmp byte [rcx + 0x19], 4
jb 0x14012c207
mov rcx, qword [rcx + 0x10]
lea r8, [0x140159eb8]
mov edx, 0xd
call fcn.14000c0e8
mov rbp, qword [rsp + 0x70]
mov eax, ebx
mov rbx, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x78]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
ret

Function at 0x14012ce18
Capabilities:
Get disk information

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rdx
mov byte [rdx], 0
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
nop dword [rax + rax]
cmp eax, 3
jne 0x14012ce38
mov byte [rbx], 1
xor eax, eax
add rsp, 0x20
pop rbx
ret