joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400bb8cc
Capabilities:
Get volume information via ioctl

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0xd0
mov rax, qword [0x140170608]
xor rax, rsp
mov qword [rsp + 0xc0], rax
mov r14, qword [rsp + 0x120]
xor ebp, ebp
mov r15, qword [rsp + 0x128]
mov rsi, rcx
mov r12, qword [rsp + 0x130]
mov rbx, qword [rsp + 0x138]
mov dword [rsp + 0x40], ebp
mov rcx, qword [0x140170048]
lea rax, [0x140170048]
cmp rcx, rax
je 0x1400bb954
test byte [rcx + 0x1c], 4
je 0x1400bb954
cmp byte [rcx + 0x19], 4
jb 0x1400bb954
mov rcx, qword [rcx + 0x10]
lea r8, [0x1401521b8]
mov edx, 0x1f1
call fcn.140004c54
mov qword [r15], rbp
mov r8d, 3
mov qword [rsp + 0x30], rbp
xor r9d, r9d
mov qword [r12], rbp
mov edx, 0x80000000
mov dword [rsp + 0x28], 0x80
mov rcx, rsi
mov dword [rbx], ebp
mov dword [rsp + 0x20], r8d
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
jne 0x1400bb9dc
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbx], eax
mov rcx, qword [0x140170048]
lea rdx, [0x140170048]
cmp rcx, rdx
je 0x1400bb9d2
test byte [rcx + 0x1c], 4
je 0x1400bb9d2
cmp byte [rcx + 0x19], 2
jb 0x1400bb9d2
mov rcx, qword [rcx + 0x10]
lea r8, [0x1401521b8]
mov edx, 0x1f2
mov dword [rsp + 0x20], eax
mov r9, rsi
call fcn.140005c44
mov eax, 0xd
jmp 0x1400bbb09
mov qword [rsp + 0x38], rbp
lea rax, [rsp + 0x40]
mov qword [rsp + 0x30], rax
xor r9d, r9d
lea rax, [rsp + 0x60]
mov dword [rsp + 0x28], 0x60
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov edx, 0x90064
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x1400bba28
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, rdi
mov dword [rbx], eax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1400bb9d2
mov rsi, qword [rsp + 0x98]
xor r8d, r8d
mov rdx, rsi
mov rcx, r14
call fcn.14005b00c
lea rcx, [r14 + 8]
call fcn.1400054ac
lea rcx, [rsp + 0x48]
mov bl, al
call qword [sym.imp.KERNEL32.dll_GetSystemTime]
test bl, bl
jne 0x1400bbaa4
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [0x140170048]
lea rdx, [0x140170048]
cmp rcx, rdx
je 0x1400bba9d
test byte [rcx + 0x1c], 4
je 0x1400bba9d
cmp byte [rcx + 0x19], 2
jb 0x1400bba9d
mov rcx, qword [rcx + 0x10]
lea r8, [0x1401521b8]
mov edx, 0x1f3
call fcn.140004c54
mov eax, 1
jmp 0x1400bbb09
mov r8, rsi
mov rdx, rsi
mov rcx, r14
call fcn.14005b00c
lea rcx, [r14 + 8]
call fcn.1400054ac
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [r15], rsi
mov qword [r12], rsi
mov rcx, qword [0x140170048]
lea rdx, [0x140170048]
cmp rcx, rdx
je 0x1400bbb07
test byte [rcx + 0x1c], 4
je 0x1400bbb07
cmp byte [rcx + 0x19], 4
jb 0x1400bbb07
mov rcx, qword [rcx + 0x10]
lea r8, [0x1401521b8]
mov edx, 0x1f4
call fcn.140004c54
xor eax, eax
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.140141340
lea r11, [rsp + 0xd0]
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret
Function at 0x1400bbb3c
Capabilities:
Encode data using xor
Hash data with md5

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r14
lea rbp, [rsp - 0x37]
sub rsp, 0xb0
mov rax, qword [0x140170608]
xor rax, rsp
mov qword [rbp + 0x2f], rax
and dword [rbp - 0x25], 0
mov rbx, rcx
and dword [rbp - 0x29], 0
lea rcx, [rbp - 0x39]
mov rdi, r9
mov dword [rbp - 0x39], 0x67452301
mov esi, r8d
mov dword [rbp - 0x35], 0xefcdab89
mov dword [rbp - 0x31], 0x98badcfe
mov dword [rbp - 0x2d], 0x10325476
call fcn.1400cf904
mov r14d, 8
lea rdx, [rbp - 0x29]
mov r8d, r14d
lea rcx, [rbp + 0x27]
call fcn.1400cff6c
mov r9d, dword [rbp - 0x29]
lea eax, [r14 + 0x30]
shr r9d, 3
lea r8d, [r14 + 0x70]
and r9d, 0x3f
lea rdx, [0x140170a10]
sub eax, r9d
lea rcx, [rbp - 0x39]
sub r8d, r9d
cmp r9d, 0x38
cmovb r8d, eax
call fcn.1400cf904
mov r8d, r14d
lea rdx, [rbp + 0x27]
lea rcx, [rbp - 0x39]
call fcn.1400cf904
lea r9d, [r14 + 8]
mov rcx, rdi
mov r8d, r9d
lea rdx, [rbp - 0x39]
call fcn.1400cff6c
mov rcx, rdi
mov r8, rbx
sub rcx, rbx
mov al, byte [rcx + r8]
xor byte [r8], al
inc r8
sub r9, 1
jne 0x1400bbc07
mov rcx, qword [0x140170048]
lea r14, [0x140170048]
cmp rcx, r14
je 0x1400bbca6
test byte [rcx + 0x1c], 4
je 0x1400bbc69
cmp byte [rcx + 0x19], 5
jb 0x1400bbc69
mov eax, dword [rdi + 0xc]
mov edx, 0x1f5
mov rcx, qword [rcx + 0x10]
mov r9d, esi
mov dword [rsp + 0x38], eax
mov eax, dword [rdi + 8]
mov dword [rsp + 0x30], eax
mov eax, dword [rdi + 4]
mov dword [rsp + 0x28], eax
mov eax, dword [rdi]
mov dword [rsp + 0x20], eax
call fcn.1400ad874
mov rcx, qword [0x140170048]
cmp rcx, r14
je 0x1400bbca6
test byte [rcx + 0x1c], 4
je 0x1400bbca6
cmp byte [rcx + 0x19], 5
jb 0x1400bbca6
mov eax, dword [rbx + 0xc]
mov edx, 0x1f6
mov rcx, qword [rcx + 0x10]
mov r9d, esi
mov dword [rsp + 0x38], eax
mov eax, dword [rbx + 8]
mov dword [rsp + 0x30], eax
mov eax, dword [rbx + 4]
mov dword [rsp + 0x28], eax
mov eax, dword [rbx]
mov dword [rsp + 0x20], eax
call fcn.1400ad874
mov rcx, qword [rbp + 0x2f]
xor rcx, rsp
call fcn.140141340
add rsp, 0xb0
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret
Function at 0x1400e6258
Capabilities:
Query environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x20
mov rdi, rcx
xor r8d, r8d
mov rcx, qword [rcx + 0x10]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
xor r14d, r14d
mov ebp, eax
test eax, eax
jne 0x1400e62a0
xor r9d, r9d
lea edx, [rax + 1]
xor r8d, r8d
mov ecx, 0x80070057
call qword [sym.imp.KERNEL32.dll_RaiseException]
mov eax, 2
mov rsi, 0xffffffffffffffff
mul rbp
cmovo rax, rsi
mov rcx, rax
call fcn.140141db0
mov rcx, qword [rdi + 0x10]
mov r8d, ebp
mov rdx, rax
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
jne 0x1400e62e6
xor r9d, r9d
lea edx, [rsi + 2]
xor r8d, r8d
mov ecx, 0x80070057
call qword [sym.imp.KERNEL32.dll_RaiseException]
test rbx, rbx
jne 0x1400e62f9
mov rax, qword [rdi + 0x10]
mov word [rax], r14w
mov dword [rdi + 0x18], r14d
jmp 0x1400e6327
inc rsi
cmp word [rbx + rsi*2], r14w
jne 0x1400e62f9
mov r8d, esi
mov rdx, rbx
mov rcx, rdi
call fcn.1400df164
test eax, eax
jns 0x1400e6327
xor r9d, r9d
xor r8d, r8d
mov ecx, eax
lea edx, [r9 + 1]
call qword [sym.imp.KERNEL32.dll_RaiseException]
mov rcx, rbx
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
jmp qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete___void____ptr64_]
Function at 0x14010a06c
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rdi
push rbp
push r14
push r15
mov rbp, rsp
sub rsp, 0x70
mov rax, qword [0x140170608]
xor rax, rsp
mov qword [rbp - 8], rax
and qword [rbp - 0x30], 0
lea r8, [rbp - 0x30]
and qword [rbp - 0x28], 0
mov rdi, rdx
and dword [rbp - 0x20], 0
lea rdx, str.MediaId
mov r15, rcx
or r14, 0xffffffffffffffff
call fcn.140084760
mov ebx, eax
test eax, eax
js 0x14010a1dc
and qword [rsp + 0x30], 0
lea r8d, [r14 + 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]
mov r14, rax
cmp rax, 0xffffffffffffffff
jne 0x14010a151
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov rcx, qword [0x140170048]
lea rax, [0x140170048]
cmp rcx, rax
je 0x14010a13e
test byte [rcx + 0x1c], 1
je 0x14010a13e
cmp byte [rcx + 0x19], 2
jb 0x14010a13e
mov r9, qword [rbp - 0x30]
lea edx, [r14 + 0xc]
mov rcx, qword [rcx + 0x10]
lea r8, [0x140158960]
mov dword [rsp + 0x20], edi
call fcn.140005c44
mov rcx, qword [0x140170048]
movzx ebx, di
or ebx, 0x80070000
test edi, edi
cmovle ebx, edi
jmp 0x14010a1e3
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]
test eax, eax
jne 0x14010a1bb
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov rcx, qword [0x140170048]
lea rax, [0x140170048]
cmp rcx, rax
je 0x14010a13e
test byte [rcx + 0x1c], 1
je 0x14010a13e
cmp byte [rcx + 0x19], 2
jb 0x14010a13e
mov r9, qword [rbp - 0x30]
lea r8, [0x140158960]
mov rcx, qword [rcx + 0x10]
mov edx, 0xc
mov dword [rsp + 0x20], edi
call fcn.140005c44
jmp 0x14010a137
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x18]
call qword [sym.imp.RPCRT4.dll_UuidToStringW]
test eax, eax
je 0x14010a1d4
mov ebx, 0x8007000e
jmp 0x14010a1dc
movups xmm0, xmmword [rbp - 0x18]
movdqu xmmword [rdi], xmm0
mov rcx, qword [0x140170048]
cmp qword [rbp - 0x30], 0
je 0x14010a1fb
mov rcx, qword [rbp - 0x30]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov rcx, qword [0x140170048]
cmp qword [rbp - 0x28], 0
je 0x14010a218
lea rcx, [rbp - 0x28]
call qword [sym.imp.RPCRT4.dll_RpcStringFreeW]
and qword [rbp - 0x28], 0
mov rcx, qword [0x140170048]
cmp r14, 0xffffffffffffffff
je 0x14010a22e
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [0x140170048]
test ebx, ebx
jns 0x14010a266
lea rax, [0x140170048]
cmp rcx, rax
je 0x14010a266
test byte [rcx + 0x1c], 1
je 0x14010a266
cmp byte [rcx + 0x19], 2
jb 0x14010a266
mov rcx, qword [rcx + 0x10]
lea r8, [0x140158960]
mov edx, 0xd
mov dword [rsp + 0x20], ebx
mov r9, r15
call fcn.140005c44
mov eax, ebx
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.140141340
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x14010ce9c
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]
mov r8d, eax
add eax, 0xfffffffe
test eax, 0xfffffffc
jne 0x14010cfa2
cmp r8d, 4
je 0x14010cfa2
cmp r8d, 2
jne 0x14010cf9f
lea rdx, [rsp + 0x48]
mov byte [rsp + 0x48], bl
mov rcx, rdi
call fcn.140105d4c
lea r14, [0x140170048]
mov ebx, eax
test eax, eax
jns 0x14010cf3e
mov rcx, qword [0x140170048]
cmp rcx, r14
je 0x14010cf38
test byte [rcx + 0x1c], 1
je 0x14010cf38
cmp byte [rcx + 0x19], 3
jb 0x14010cf38
mov rcx, qword [rcx + 0x10]
lea r8, [0x140158960]
mov edx, 0x52
mov dword [rsp + 0x20], eax
mov r9, rdi
call fcn.140005c44
xor al, al
xor ebx, ebx
jmp 0x14010cf42
mov al, byte [rsp + 0x48]
test al, al
jne 0x14010cfa2
lea rdx, [rsp + 0x48]
mov byte [rsp + 0x48], al
mov rcx, rdi
call fcn.14011d5e8
mov ebx, eax
test eax, eax
jns 0x14010cf97
mov rcx, qword [0x140170048]
cmp rcx, r14
je 0x14010cf91
test byte [rcx + 0x1c], 1
je 0x14010cf91
cmp byte [rcx + 0x19], 3
jb 0x14010cf91
mov rcx, qword [rcx + 0x10]
lea r8, [0x140158960]
mov edx, 0x53
mov dword [rsp + 0x20], eax
mov r9, rdi
call fcn.140005c44
mov al, 1
xor ebx, ebx
jmp 0x14010cf9b
mov al, byte [rsp + 0x48]
test al, al
je 0x14010cfa2
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 0x14010cfc0
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 0x14010d000
mov byte [r8], r15b
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
lea r13, [0x140170048]
sub eax, 2
je 0x14010d0c0
sub eax, 1
je 0x14010d051
cmp eax, 2
jne 0x14010d1c9
test rdi, rdi
je 0x14010d02c
mov byte [rdi], 1
lea r8, [rbp + 0x50]
mov rcx, rsi
lea rdx, [rbp + 0x48]
call fcn.14011f710
mov ebx, eax
test eax, eax
js 0x14010d0b4
cmp byte [rbp + 0x48], r15b
je 0x14010d191
jmp 0x14010d18d
lea rdx, [rbp + 0x50]
mov rcx, rsi
call fcn.14012b364
mov ebx, eax
test eax, eax
js 0x14010d0b4
cmp byte [rbp + 0x50], r15b
je 0x14010d191
test rdi, rdi
je 0x14010d075
mov byte [rdi], 1
lea rdx, [rbp + 0x58]
mov rcx, rsi
call fcn.14012b490
mov ebx, eax
test eax, eax
jns 0x14010d0a5
cmp eax, 0x80780076
jne 0x14010d191
mov byte [r14], r15b
test rdi, rdi
je 0x14010d09d
mov byte [rdi], r15b
mov ebx, r15d
jmp 0x14010d191
cmp byte [rbp + 0x58], r15b
je 0x14010d18d
jmp 0x14010d191
mov rcx, qword [0x140170048]
jmp 0x14010d19c
lea rdx, [rbp - 0x10]
mov rcx, rsi
call fcn.140105d4c
mov ebx, eax
test eax, eax
jns 0x14010d115
mov rcx, qword [0x140170048]
cmp rcx, r13
je 0x14010d10d
test byte [rcx + 0x1c], 1
je 0x14010d10d
cmp byte [rcx + 0x19], 3
jb 0x14010d10d
mov rcx, qword [rcx + 0x10]
lea r8, [0x140158960]
mov edx, 0x54
mov dword [rsp + 0x20], eax
mov r9, rsi
call fcn.140005c44
mov rcx, qword [0x140170048]
mov al, r15b
mov ebx, r15d
jmp 0x14010d11f
mov al, byte [rbp - 0x10]
mov rcx, qword [0x140170048]
test al, al
jne 0x14010d198
lea rdx, [rbp - 0xf]
mov rcx, rsi
call fcn.14011d5e8
mov ebx, eax
test eax, eax
jns 0x14010d177
mov rcx, qword [0x140170048]
cmp rcx, r13
je 0x14010d170
test byte [rcx + 0x1c], 1
je 0x14010d170
cmp byte [rcx + 0x19], 3
jb 0x14010d170
mov rcx, qword [rcx + 0x10]
lea r8, [0x140158960]
mov edx, 0x55
mov dword [rsp + 0x20], eax
mov r9, rsi
call fcn.140005c44
mov rcx, qword [0x140170048]
mov al, 1
mov ebx, r15d
jmp 0x14010d181
mov al, byte [rbp - 0xf]
mov rcx, qword [0x140170048]
test al, al
je 0x14010d198
test rdi, rdi
je 0x14010d18d
mov byte [rdi], 1
mov byte [r14], 1
mov rcx, qword [0x140170048]
test ebx, ebx
jns 0x14010d1c9
cmp rcx, r13
je 0x14010d1c9
test byte [rcx + 0x1c], 1
je 0x14010d1c9
cmp byte [rcx + 0x19], 2
jb 0x14010d1c9
mov rcx, qword [rcx + 0x10]
lea r8, [0x140158960]
mov edx, 0x56
mov dword [rsp + 0x20], ebx
mov r9, rsi
call fcn.140005c44
mov eax, ebx
add rsp, 0x40
pop r15
pop r14
pop r13
pop rdi
pop rsi
pop rbx
pop rbp
ret
Function at 0x14010ee4c
Capabilities:
Get disk size

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x20
lea rdi, str.base_stor_blbengine_blbengutils_blbbackuptargetutils.cpp
mov r14, r9
mov ebp, r8d
mov rbx, rdx
mov rsi, rcx
test rcx, rcx
jne 0x14010ee88
lea r8, str.wszTargetVolume___NULL
mov edx, 0x108a
mov rcx, rdi
call fcn.14008388c
test rbx, rbx
jne 0x14010eea1
lea r8, str.rgVolumeMountedVhdPaths
mov edx, 0x108b
mov rcx, rdi
call fcn.14008388c
test r14, r14
jne 0x14010eeba
lea r8, str.pullSizeToReclaim
mov edx, 0x108c
mov rcx, rdi
call fcn.14008388c
and qword [r14], 0
mov edx, ebp
and qword [rsp + 0x50], 0
mov rcx, rbx
xor edi, edi
call fcn.14010f6e0
mov ebx, eax
test eax, eax
jns 0x14010ef1e
mov rcx, qword [0x140170048]
lea rax, [0x140170048]
cmp rcx, rax
je 0x14010efa2
test byte [rcx + 0x1c], 1
je 0x14010efa2
cmp byte [rcx + 0x19], 2
jb 0x14010efa2
mov rcx, qword [rcx + 0x10]
lea r8, [0x140158960]
mov edx, reloc.OLEAUT32.dll_SysAllocStringByteLen
mov r9d, ebx
call fcn.140004c78
jmp 0x14010efa2
lea rdx, [rsp + 0x50]
mov rcx, rsi
call fcn.140084468
mov rsi, qword [rsp + 0x50]
mov ebx, eax
test eax, eax
js 0x14010ef94
lea r9, [rsp + 0x58]
mov rcx, rsi
lea r8, [rsp + 0x50]
xor ebp, ebp
lea rdx, [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
jne 0x14010ef60
mov rcx, rsi
call fcn.14012db10
mov ebx, eax
jmp 0x14010ef67
mov rbp, qword [rsp + 0x50]
xor ebx, ebx
test ebx, ebx
js 0x14010ef94
call fcn.14010edfc
cmp rax, rbp
mov r15, rax
cmova r15, rbp
call fcn.14010d864
lea rcx, [rax + r15]
cmp rcx, rbp
jbe 0x14010ef91
mov rdi, rax
sub rdi, rbp
add rdi, r15
mov qword [r14], rdi
test rsi, rsi
je 0x14010efa2
mov rcx, rsi
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov eax, ebx
mov rbx, qword [rsp + 0x60]
add rsp, 0x20
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x14011c7d0
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 0x14011c800
lea r8, str.wszfilePath___NULL
mov edx, 0xac
lea rcx, str.base_stor_blbengine_blbengutils_filelogger.cpp
call fcn.14008388c
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]
mov qword [r14], rax
cmp rax, 0xffffffffffffffff
jne 0x14011c8a9
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
mov rcx, qword [0x140170048]
lea rdi, [0x140170048]
cmp rcx, rdi
je 0x14011ca02
test byte [rcx + 0x1c], 1
je 0x14011ca02
cmp byte [rcx + 0x19], 2
jb 0x14011ca02
mov rcx, qword [rcx + 0x10]
lea r8, [0x140159640]
mov edx, 0xb
mov dword [rsp + 0x20], ebx
mov r9, rsi
call fcn.140005c44
jmp 0x14011ca02
lea rdx, [rsp + 0x70]
mov rcx, r14
call fcn.14011c74c
mov ebx, eax
test eax, eax
jns 0x14011c904
mov rcx, qword [0x140170048]
lea rdi, [0x140170048]
cmp rcx, rdi
je 0x14011ca02
test byte [rcx + 0x1c], 1
je 0x14011ca02
cmp byte [rcx + 0x19], 2
jb 0x14011ca02
mov edx, 0xc
mov r9d, eax
mov rcx, qword [rcx + 0x10]
lea r8, [0x140159640]
call fcn.140004c78
jmp 0x14011ca02
cmp qword [rsp + 0x70], 0
lea rdi, [0x140170048]
jne 0x14011c9d2
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]
test eax, eax
jne 0x14011c986
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
mov rcx, qword [0x140170048]
lea rdi, [0x140170048]
cmp rcx, rdi
je 0x14011ca02
test byte [rcx + 0x1c], 1
je 0x14011ca02
cmp byte [rcx + 0x19], 2
jb 0x14011ca02
mov edx, 0xd
mov r9d, ebx
jmp 0x14011c8ef
cmp dword [rsp + 0x68], 2
je 0x14011c9a5
lea r8, str.dwBytesWritten__sizeof_wchUnicodeBOM_
mov edx, 0xe4
lea rcx, str.base_stor_blbengine_blbengutils_filelogger.cpp
call fcn.14008388c
mov rcx, qword [0x140170048]
cmp rcx, rdi
je 0x14011ca02
test byte [rcx + 0x1c], 1
je 0x14011c9d9
cmp byte [rcx + 0x19], 4
jb 0x14011c9d9
mov rcx, qword [rcx + 0x10]
lea r8, [0x140159640]
mov edx, 0xe
call fcn.140004c54
mov rcx, qword [0x140170048]
cmp rcx, rdi
je 0x14011ca02
test byte [rcx + 0x1c], 1
je 0x14011ca02
cmp byte [rcx + 0x19], 4
jb 0x14011ca02
mov rcx, qword [rcx + 0x10]
lea r8, [0x140159640]
mov edx, 0xf
mov r9, rsi
call fcn.140005bdc
mov eax, ebx
mov rbx, qword [rsp + 0x78]
add rsp, 0x40
pop r14
pop rdi
pop rsi
ret
Function at 0x140128c2c
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, 0x20
mov r14, r9
mov r12b, r8b
mov r13, rdx
mov r15, rcx
mov rcx, qword [0x140170048]
lea rax, [0x140170048]
cmp rcx, rax
je 0x140128c88
test byte [rcx + 0x1c], 1
je 0x140128c88
cmp byte [rcx + 0x19], 4
jb 0x140128c88
mov rcx, qword [rcx + 0x10]
lea r8, [0x14015aa08]
mov edx, 0xc
call fcn.140004c54
xor eax, eax
xor esi, esi
mov qword [r14], rax
xor r8d, r8d
mov qword [r14 + 8], rax
xor edx, edx
mov qword [r14 + 0x10], rax
mov rcx, qword [r15]
mov qword [rsp + 0x50], rsi
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov ebx, eax
test eax, eax
jne 0x140128cc9
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
jmp 0x140128da7
mov rax, rbx
mov ecx, 0xffffffff
add rax, rax
cmp rax, rcx
ja 0x140128da2
mov ecx, eax
mov ebp, eax
call qword [sym.imp.ole32.dll_CoTaskMemAlloc]
mov rdi, rax
test rax, rax
jne 0x140128cf9
mov ebx, 0x8007000e
jmp 0x140128da7
mov r8, rbp
xor edx, edx
mov rcx, rdi
call sub.msvcrt.dll_memset
mov rcx, qword [r15]
mov r8d, ebx
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
jne 0x140128d2f
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
jmp 0x140128d84
lea rdx, [rsp + 0x50]
mov rcx, rdi
call fcn.140084b78
mov ebx, eax
test eax, eax
js 0x140128d7f
mov rcx, rdi
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov rsi, qword [rsp + 0x50]
mov rdx, r14
mov rcx, rsi
call fcn.140084468
mov ebx, eax
test eax, eax
js 0x140128d92
mov rcx, qword [r13]
lea rdx, [r14 + 8]
xor r8d, r8d
call fcn.14008468c
mov ebx, eax
test eax, eax
js 0x140128d92
mov byte [r14 + 0x10], r12b
xor edi, edi
jmp 0x140128d84
mov rsi, qword [rsp + 0x50]
test rdi, rdi
je 0x140128d92
mov rcx, rdi
call qword [sym.imp.ole32.dll_CoTaskMemFree]
test rsi, rsi
je 0x140128da7
mov rcx, rsi
call qword [sym.imp.ole32.dll_CoTaskMemFree]
jmp 0x140128da7
mov ebx, 0x80070216
mov rcx, qword [0x140170048]
lea rax, [0x140170048]
cmp rcx, rax
je 0x140128ddb
test byte [rcx + 0x1c], 1
je 0x140128ddb
cmp byte [rcx + 0x19], 4
jb 0x140128ddb
mov rcx, qword [rcx + 0x10]
lea r8, [0x14015aa08]
mov edx, 0xd
call fcn.140004c54
mov rbp, qword [rsp + 0x60]
mov eax, ebx
mov rbx, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x68]
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x14012a94c
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 0x14012a9a9
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xea
je 0x14012a9a9
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
jmp 0x14012aa62
mov ecx, dword [rsp + 0x68]
add rcx, rcx
call qword [sym.imp.ole32.dll_CoTaskMemAlloc]
mov rbp, rax
test rax, rax
jne 0x14012a9c8
mov ebx, 0x8007000e
jmp 0x14012aa66
mov r8d, dword [rsp + 0x68]
lea r9, [rsp + 0x70]
mov rdx, rbp
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_GetVolumePathNamesForVolumeNameW]
test eax, eax
jne 0x14012a9f8
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
jmp 0x14012aa59
or rsi, 0xffffffffffffffff
inc rsi
cmp word [rbp + rsi*2], r12w
jne 0x14012a9fc
test esi, esi
je 0x14012aa59
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 0x14012aa29
mov ebx, 0x8007000e
jmp 0x14012aa59
mov r8, rbp
mov rdx, rbx
mov rcx, rdi
call fcn.14003a4d0
mov ebx, eax
test eax, eax
js 0x14012aa4b
lea ecx, [rsi - 1]
mov word [rdi + rcx*2], r12w
mov qword [r15], rdi
mov rdi, r12
test rdi, rdi
je 0x14012aa59
mov rcx, rdi
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov rcx, rbp
call qword [sym.imp.ole32.dll_CoTaskMemFree]
test ebx, ebx
jns 0x14012aaa1
mov rcx, qword [0x140170048]
lea rax, [0x140170048]
cmp rcx, rax
je 0x14012aaa1
test byte [rcx + 0x1c], 1
je 0x14012aaa1
cmp byte [rcx + 0x19], 3
jb 0x14012aaa1
mov rcx, qword [rcx + 0x10]
lea r8, [0x14015ab98]
mov edx, 0xa
mov dword [rsp + 0x20], ebx
mov r9, r14
call fcn.140005c44
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