joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400640ec
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 [0x14017b608]
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.140064010
lea r12, [rbx + 0x60]
mov rcx, r12
call fcn.140064010
lea rcx, [rbx + 0x68]
call fcn.140064010
lea r13, [rbx + 0x70]
mov rcx, r13
call fcn.140064010
mov byte [rbx + 0x4c], 0
test rsi, rsi
jne 0x140064184
lea r8, str.pszAccountName
mov edx, 0x9c
lea rcx, str.onecoreexternal_sdkinc_atlmfc_atlsecurity.inl
call fcn.140087b08
jmp 0x140064320
and qword [rsp + 0x50], 0
mov edx, 0x100
lea rcx, [rsp + 0x50]
call fcn.140004b1c
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]
nop dword [rax + rax]
test eax, eax
jne 0x140064256
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
cmp eax, 0x7a
jne 0x1400642de
cmp dword [rsp + 0x44], 0x44
ja 0x14006434a
cmp dword [rsp + 0x40], 0x80
jbe 0x140064220
mov edx, dword [rsp + 0x40]
add rdx, rdx
lea rcx, [rsp + 0x50]
call fcn.140063bec
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]
nop dword [rax + rax]
test eax, eax
je 0x1400642de
lea rcx, [rbp - 0x20]
call qword [sym.imp.ADVAPI32.dll_GetLengthSid]
nop dword [rax + rax]
cmp eax, 0x44
jb 0x140064283
lea r8, str.::GetLengthSid_pSid_____sizeof_SID____sizeof_ULONG_____15___sizeof_ULONG___
mov edx, 0xc4
lea rcx, str.onecoreexternal_sdkinc_atlmfc_atlsecurity.inl
call fcn.140087b08
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]
nop dword [rax + rax]
test eax, eax
je 0x1400642de
mov rdx, rdi
mov rcx, r12
call fcn.140063ed0
mov rdx, rsi
mov rcx, r15
call fcn.140063ed0
xor edx, edx
mov rcx, r13
call fcn.140063ed0
nop
lea rcx, [rsp + 0x58]
cmp qword [rsp + 0x50], rcx
je 0x1400642da
lea rcx, [rsp + 0x50]
call fcn.1400049dc
mov al, 1
jmp 0x140064322
mov dword [r14], 7
mov rcx, r15
call fcn.140064010
mov rcx, r12
call fcn.140064010
lea rcx, [rbx + 0x68]
call fcn.140064010
mov rcx, r13
call fcn.140064010
mov byte [rbx + 0x4c], 0
lea rax, [rsp + 0x58]
cmp qword [rsp + 0x50], rax
je 0x140064320
lea rcx, [rsp + 0x50]
call fcn.1400049dc
xor al, al
mov rcx, qword [rbp + 0x30]
xor rcx, rsp
call fcn.14014bb60
mov rbx, qword [rsp + 0x190]
add rsp, 0x140
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
mov ecx, 0x80004005
call fcn.140001950
int3
Function at 0x140087d28
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 0x140087d55
lea edx, [rcx + 0x3b]
lea rcx, str.base_stor_blbutil_networkutils.cpp
lea r8, str.wszNetworkShare
call fcn.140087b08
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.1400887a0
mov ebx, eax
test eax, eax
js 0x140087e4e
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
nop dword [rax + rax]
cmp eax, 0xffffffff
jne 0x140087dc3
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
cmp ebx, 0x80070005
jne 0x140087e4e
mov ebx, 0x80780047
jmp 0x140087e4e
mov rcx, qword [rsp + 0x50]
lea r8, [rsp + 0x58]
lea rdx, str.TempFile.tmp
call fcn.140088abc
mov ebx, eax
test eax, eax
js 0x140087e49
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]
nop dword [rax + rax]
mov rsi, rax
cmp rax, 0xffffffffffffffff
jne 0x140087e4e
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
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 0x140087e4e
mov rdi, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
nop dword [rax + rax]
mov rcx, rdi
call qword [sym.imp.ole32.dll_CoTaskMemFree]
nop dword [rax + rax]
cmp rsi, 0xffffffffffffffff
je 0x140087e83
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop dword [rax + rax]
mov rsi, qword [rsp + 0x68]
mov eax, ebx
mov rbx, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
Function at 0x14008b1c4
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]
nop dword [rax + rax]
test eax, eax
jne 0x14008b22d
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
cmp eax, 0xea
je 0x14008b22d
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
jmp 0x14008b30a
mov ecx, dword [rsp + 0x68]
add rcx, rcx
call qword [sym.imp.ole32.dll_CoTaskMemAlloc]
nop dword [rax + rax]
mov rbp, rax
test rax, rax
jne 0x14008b252
mov ebx, 0x8007000e
jmp 0x14008b30e
mov r8d, dword [rsp + 0x68]
lea r9, [rsp + 0x70]
mov rdx, rbp
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_GetVolumePathNamesForVolumeNameW]
nop dword [rax + rax]
test eax, eax
jne 0x14008b28e
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
jmp 0x14008b2fb
or rsi, 0xffffffffffffffff
inc rsi
cmp word [rbp + rsi*2], r12w
jne 0x14008b292
test esi, esi
je 0x14008b2fb
lea eax, [rsi + 1]
lea rcx, [rax + rax]
mov ebx, eax
call qword [sym.imp.ole32.dll_CoTaskMemAlloc]
nop dword [rax + rax]
mov rdi, rax
test rax, rax
jne 0x14008b2c5
mov ebx, 0x8007000e
jmp 0x14008b2fb
mov r8, rbp
mov rdx, rbx
mov rcx, rdi
call fcn.14003bd58
mov ebx, eax
test eax, eax
js 0x14008b2e7
lea ecx, [rsi - 1]
mov word [rdi + rcx*2], r12w
mov qword [r15], rdi
mov rdi, r12
test rdi, rdi
je 0x14008b2fb
mov rcx, rdi
call qword [sym.imp.ole32.dll_CoTaskMemFree]
nop dword [rax + rax]
mov rcx, rbp
call qword [sym.imp.ole32.dll_CoTaskMemFree]
nop dword [rax + rax]
test ebx, ebx
jns 0x14008b349
mov rcx, qword [0x14017b048]
lea rax, [0x14017b048]
cmp rcx, rax
je 0x14008b349
test byte [rcx + 0x1c], 1
je 0x14008b349
cmp byte [rcx + 0x19], 3
jb 0x14008b349
mov rcx, qword [rcx + 0x10]
lea r8, [0x14015a0b0]
mov edx, 0xa
mov dword [rsp + 0x20], ebx
mov r9, r14
call fcn.140005d40
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 0x14008b36c
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.140088864
lea r13, [0x14017b048]
mov ebx, eax
test eax, eax
js 0x14008b4fa
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]
nop dword [rax + rax]
mov rbp, rax
cmp rax, 0xffffffffffffffff
jne 0x14008b43d
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov esi, eax
mov rcx, qword [0x14017b048]
cmp rcx, r13
je 0x14008b42a
test byte [rcx + 0x1c], 1
je 0x14008b42a
cmp byte [rcx + 0x19], 2
jb 0x14008b42a
mov r9, qword [rsp + 0x80]
lea edx, [rbp + 0xc]
mov rcx, qword [rcx + 0x10]
lea r8, [0x14015a0b0]
mov dword [rsp + 0x20], eax
call fcn.140005d40
mov rcx, qword [0x14017b048]
movzx ebx, si
or ebx, 0x80070000
test esi, esi
cmovle ebx, esi
jmp 0x14008b501
and qword [rsp + 0x38], 0
lea rax, [rsp + 0x78]
and qword [rsp + 0x88], 0
xor r9d, r9d
mov qword [rsp + 0x30], rax
xor r8d, r8d
lea rax, [rsp + 0x88]
mov dword [rsp + 0x28], 8
mov edx, 0x7405c
mov qword [rsp + 0x20], rax
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
nop dword [rax + rax]
test eax, eax
jne 0x14008b4e0
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov esi, eax
mov rcx, qword [0x14017b048]
cmp rcx, r13
je 0x14008b4d0
test byte [rcx + 0x1c], 1
je 0x14008b4d0
cmp byte [rcx + 0x19], 2
jb 0x14008b4d0
mov r9, qword [rsp + 0x80]
lea r8, [0x14015a0b0]
mov rcx, qword [rcx + 0x10]
mov edx, 0xc
mov dword [rsp + 0x20], eax
call fcn.140005d40
movzx ebx, si
or ebx, 0x80070000
test esi, esi
cmovle ebx, esi
jmp 0x14008b4eb
mov rax, qword [rsp + 0x88]
mov qword [rsi], rax
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop dword [rax + rax]
mov rcx, qword [0x14017b048]
cmp qword [rsp + 0x80], 0
je 0x14008b527
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
nop dword [rax + rax]
mov rcx, qword [0x14017b048]
test ebx, ebx
jns 0x14008b55b
cmp rcx, r13
je 0x14008b55b
test dword [rcx + 0x1c], 0x200
je 0x14008b55b
cmp byte [rcx + 0x19], 2
jb 0x14008b55b
mov rcx, qword [rcx + 0x10]
lea r8, [0x14015a0b0]
mov edx, 0xd
mov dword [rsp + 0x20], ebx
mov r9, r14
call fcn.140005d40
mov eax, ebx
add rsp, 0x40
pop r14
pop r13
pop rsi
pop rbp
pop rbx
ret
Function at 0x14008c480
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 [0x14017b608]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov rsi, rcx
mov rcx, qword [0x14017b048]
lea r14, [0x14017b048]
lea r12, [0x14015a0b0]
mov ebp, 1
cmp rcx, r14
je 0x14008c4e4
test byte [rcx + 0x1c], bpl
je 0x14008c4e4
cmp byte [rcx + 0x19], 4
jb 0x14008c4e4
mov rcx, qword [rcx + 0x10]
lea edx, [rbp + 0x17]
mov r8, r12
call fcn.140004c10
xorps xmm0, xmm0
lea rdx, [rsp + 0x20]
xor ebx, ebx
xor r9d, r9d
movups xmmword [rsp + 0x20], xmm0
movups xmmword [rsp + 0x30], xmm0
lea r8d, [rbx + 0x20]
lea ecx, [rbx + 0x5a]
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
nop dword [rax + rax]
test eax, eax
jns 0x14008c555
mov ecx, eax
call fcn.14003bcc4
mov ebx, eax
mov rcx, qword [0x14017b048]
cmp rcx, r14
je 0x14008c5f8
test byte [rcx + 0x1c], 8
je 0x14008c5d6
cmp byte [rcx + 0x19], 2
jb 0x14008c5d6
mov rcx, qword [rcx + 0x10]
mov edx, 0x19
mov r9d, eax
mov r8, r12
call fcn.140004c3c
jmp 0x14008c5cf
mov rcx, qword [0x14017b048]
cmp rcx, r14
je 0x14008c58a
test byte [rcx + 0x1c], bpl
je 0x14008c58a
cmp byte [rcx + 0x19], 4
jb 0x14008c58a
mov r9d, dword [rsp + 0x30]
mov edx, 0x1a
mov rcx, qword [rcx + 0x10]
mov r8, r12
call fcn.140004c3c
mov rcx, qword [0x14017b048]
cmp dword [rsp + 0x30], 2
movzx edi, bl
cmove edi, ebp
cmp rcx, r14
je 0x14008c5cc
test byte [rcx + 0x1c], bpl
je 0x14008c5cc
cmp byte [rcx + 0x19], 4
jb 0x14008c5cc
mov rcx, qword [rcx + 0x10]
lea rax, [0x140154e10]
test dil, dil
lea r9, [0x140154e18]
mov edx, 0x1b
mov r8, r12
cmovne r9, rax
call fcn.140005cd0
mov byte [rsi], dil
mov rcx, qword [0x14017b048]
cmp rcx, r14
je 0x14008c5f8
test byte [rcx + 0x1c], bpl
je 0x14008c5f8
cmp byte [rcx + 0x19], 4
jb 0x14008c5f8
mov rcx, qword [rcx + 0x10]
mov edx, 0x1c
mov r8, r12
call fcn.140004c10
mov eax, ebx
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.14014bb60
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 0x14008f414
Capabilities:
Get disk information

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x460
mov rax, qword [0x14017b608]
xor rax, rsp
mov qword [rsp + 0x450], rax
mov rsi, rdx
mov rbx, rcx
test rcx, rcx
jne 0x14008f45b
lea r8, str.wszFilePath___NULL
mov edx, 0x7a0
lea rcx, str.base_stor_blbutil_fileutils.cpp
call fcn.140087b08
test rsi, rsi
jne 0x14008f478
lea r8, str.pwszVolumePath___NULL
mov edx, 0x7a1
lea rcx, str.base_stor_blbutil_fileutils.cpp
call fcn.140087b08
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]
nop dword [rax + rax]
test eax, eax
jne 0x14008f4e7
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
jmp 0x14008f584
mov r8d, 0x104
lea rdx, [rsp + 0x240]
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetVolumeNameForVolumeMountPointW]
nop dword [rax + rax]
test eax, eax
jne 0x14008f561
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
jne 0x14008f586
mov rcx, qword [0x14017b048]
lea rax, [0x14017b048]
cmp rcx, rax
je 0x14008f55a
test byte [rcx + 0x1c], 1
je 0x14008f55a
cmp byte [rcx + 0x19], 2
jb 0x14008f55a
mov rcx, qword [rcx + 0x10]
lea edx, [rbx + 0x3e]
lea r8, [0x14015a2c8]
call fcn.140004c10
mov ebx, 0x8000ffff
jmp 0x14008f584
xor r8d, r8d
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x240]
call fcn.1400889dc
mov rdi, qword [rsp + 0x20]
mov ebx, eax
test eax, eax
js 0x14008f588
mov qword [rsi], rdi
test ebx, ebx
jns 0x14008f597
mov rcx, rdi
call qword [sym.imp.ole32.dll_CoTaskMemFree]
nop dword [rax + rax]
mov eax, ebx
mov rcx, qword [rsp + 0x450]
xor rcx, rsp
call fcn.14014bb60
lea r11, [rsp + 0x460]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x14008f64c
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 0x14008f678
lea r8, str.wcsPath
mov edx, 0x817
lea rcx, str.base_stor_blbutil_fileutils.cpp
call fcn.140087b08
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
nop dword [rax + rax]
cmp eax, 0xffffffff
jne 0x14008f711
xor r9d, r9d
xor r8d, r8d
mov dl, dil
mov rcx, rbx
call fcn.14008cb8c
test eax, eax
js 0x14008f713
mov edx, 0x2000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
nop dword [rax + rax]
test eax, eax
jne 0x14008f711
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
mov rcx, qword [0x14017b048]
lea rax, [0x14017b048]
cmp rcx, rax
je 0x14008f702
test byte [rcx + 0x1c], 2
je 0x14008f702
cmp byte [rcx + 0x19], 2
jb 0x14008f702
mov rcx, qword [rcx + 0x10]
lea r8, [0x14015a2c8]
mov edx, 0x40
mov r9d, ebx
call fcn.140004c3c
movzx eax, bx
or eax, 0x80070000
test ebx, ebx
cmovle eax, ebx
jmp 0x14008f713
xor eax, eax
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x14008fd34
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 r12
push r13
push r14
sub rsp, 0x30
mov r14, rdx
mov rsi, rcx
mov rcx, qword [0x14017b048]
lea r13, [0x14017b048]
lea r12, [0x14015a6e8]
cmp rcx, r13
je 0x14008fd8e
test byte [rcx + 0x1c], 1
je 0x14008fd8e
cmp byte [rcx + 0x19], 4
jb 0x14008fd8e
mov rcx, qword [rcx + 0x10]
mov edx, 0xa
mov r8, r12
call fcn.140004c10
xor ebx, ebx
xor r8d, r8d
xor edx, edx
mov rcx, rsi
mov edi, ebx
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
nop dword [rax + rax]
mov ebp, eax
test eax, eax
jne 0x14008fe08
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov ecx, eax
movzx eax, ax
or eax, 0x80070000
test ecx, ecx
cmovle eax, ecx
mov ebx, eax
mov rcx, qword [0x14017b048]
cmp rcx, r13
je 0x14008febb
test byte [rcx + 0x1c], 1
je 0x14008febb
cmp byte [rcx + 0x19], 2
jb 0x14008febb
lea edx, [rdi + 0xb]
mov rcx, qword [rcx + 0x10]
mov r9, rsi
mov r8, r12
mov dword [rsp + 0x20], eax
call fcn.140005d40
jmp 0x14008febb
mov rcx, rbp
add rcx, rcx
call qword [sym.imp.ole32.dll_CoTaskMemAlloc]
nop dword [rax + rax]
mov rdi, rax
test rax, rax
jne 0x14008fe2c
mov ebx, 0x8007000e
jmp 0x14008febb
mov r8d, ebp
mov rdx, rdi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
nop dword [rax + rax]
test eax, eax
jne 0x14008fe84
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov ecx, eax
movzx eax, ax
or eax, 0x80070000
test ecx, ecx
cmovle eax, ecx
mov ebx, eax
mov rcx, qword [0x14017b048]
cmp rcx, r13
je 0x14008febb
test byte [rcx + 0x1c], 1
je 0x14008febb
cmp byte [rcx + 0x19], 2
jb 0x14008febb
mov edx, 0xc
jmp 0x14008fdf0
mov rcx, qword [0x14017b048]
cmp rcx, r13
je 0x14008feb5
test byte [rcx + 0x1c], 1
je 0x14008feb5
cmp byte [rcx + 0x19], 4
jb 0x14008feb5
mov rcx, qword [rcx + 0x10]
mov edx, 0xd
mov r9, rsi
mov qword [rsp + 0x20], rdi
mov r8, r12
call fcn.140005dc4
mov qword [r14], rdi
mov rdi, rbx
mov rcx, rdi
call qword [sym.imp.ole32.dll_CoTaskMemFree]
nop dword [rax + rax]
mov rcx, qword [0x14017b048]
cmp rcx, r13
je 0x14008fef3
test byte [rcx + 0x1c], 1
je 0x14008fef3
cmp byte [rcx + 0x19], 4
jb 0x14008fef3
mov rcx, qword [rcx + 0x10]
mov edx, 0xe
mov r8, r12
call fcn.140004c10
mov rbp, qword [rsp + 0x58]
mov eax, ebx
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x30
pop r14
pop r13
pop r12
ret
Function at 0x14008ff1c
Capabilities:
Get hostname

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rsi
push rdi
sub rsp, 0x20
and dword [rax + 0x10], 0
lea r8, [rax + 0x10]
xor edx, edx
mov rsi, rcx
lea ecx, [rdx + 5]
call qword [sym.imp.KERNEL32.dll_GetComputerNameExW]
nop dword [rax + rax]
test eax, eax
je 0x14008ff64
lea r8, str._fRet
mov edx, 0x78
lea rcx, str.base_stor_blbutil_systemutils.cpp
call fcn.140087b08
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
cmp ebx, 0x800700ea
jne 0x140090017
mov ecx, dword [rsp + 0x38]
xor ebx, ebx
inc ecx
add rcx, rcx
call qword [sym.imp.ole32.dll_CoTaskMemAlloc]
nop dword [rax + rax]
mov rdi, rax
test rax, rax
jne 0x14008ffb0
mov ebx, 0x8007000e
jmp 0x140090017
mov r8d, dword [rsp + 0x38]
xor edx, edx
inc r8d
mov rcx, rdi
add r8, r8
call sub.msvcrt.dll_memset
lea r8, [rsp + 0x38]
mov rdx, rdi
mov ecx, 5
call qword [sym.imp.KERNEL32.dll_GetComputerNameExW]
nop dword [rax + rax]
test eax, eax
jne 0x14008fffe
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
jmp 0x140090003
mov qword [rsi], rdi
xor edi, edi
test rdi, rdi
je 0x140090017
mov rcx, rdi
call qword [sym.imp.ole32.dll_CoTaskMemFree]
nop dword [rax + rax]
mov rsi, qword [rsp + 0x40]
mov eax, ebx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x140090634
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x40
mov rbp, r9
mov r14, r8
mov rsi, rdx
mov r12, rcx
mov rcx, qword [0x14017b048]
lea rax, [0x14017b048]
cmp rcx, rax
je 0x14009068a
test byte [rcx + 0x1c], 1
je 0x14009068a
cmp byte [rcx + 0x19], 4
jb 0x14009068a
mov rcx, qword [rcx + 0x10]
lea r8, [0x14015a6e8]
mov edx, 0x18
call fcn.140004c10
mov r15, qword [rsp + 0x90]
xor ebx, ebx
and dword [rsp + 0x30], ebx
and dword [rsp + 0x80], ebx
test r14, r14
je 0x1400906b3
test rsi, rsi
je 0x1400906b3
test rbp, rbp
je 0x1400906b3
test r15, r15
jne 0x1400906cb
lea r8, str.ppbValue___NULL__wszValueName___NULL__lpType___NULL__lpSize___NULL
mov edx, 0x1c0
lea rcx, str.base_stor_blbutil_systemutils.cpp
call fcn.140087b08
and qword [r14], rbx
lea rax, [rsp + 0x80]
mov qword [rsp + 0x28], rax
xor r9d, r9d
and qword [rsp + 0x20], rbx
xor r8d, r8d
mov rdx, rsi
mov rcx, r12
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
nop dword [rax + rax]
test eax, eax
je 0x140090756
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
mov rcx, qword [0x14017b048]
lea rbp, [0x14017b048]
cmp rcx, rbp
je 0x140090899
test byte [rcx + 0x1c], 1
je 0x140090873
cmp byte [rcx + 0x19], 3
jb 0x140090873
mov rcx, qword [rcx + 0x10]
lea r8, [0x14015a6e8]
mov edx, 0x19
mov dword [rsp + 0x20], ebx
mov r9, rsi
call fcn.140005d40
jmp 0x14009086c
mov eax, dword [rsp + 0x80]
test eax, eax
jne 0x140090780
lea r8, str.cbSize___0
mov edx, 0x1ce
lea rcx, str.base_stor_blbutil_systemutils.cpp
call fcn.140087b08
mov eax, dword [rsp + 0x80]
mov ecx, eax
call qword [sym.imp.ole32.dll_CoTaskMemAlloc]
nop dword [rax + rax]
mov rdi, rax
test rax, rax
jne 0x1400907a7
mov ebx, 0x8007000e
lea rbp, [0x14017b048]
jmp 0x14009086c
mov r8d, dword [rsp + 0x80]
xor edx, edx
mov rcx, rdi
call sub.msvcrt.dll_memset
lea rax, [rsp + 0x80]
xor r8d, r8d
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x30]
mov rdx, rsi
mov qword [rsp + 0x20], rdi
mov rcx, r12
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
nop dword [rax + rax]
test eax, eax
je 0x140090834
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
mov rcx, qword [0x14017b048]
lea rbp, [0x14017b048]
cmp rcx, rbp
je 0x140090858
test byte [rcx + 0x1c], 1
je 0x140090858
cmp byte [rcx + 0x19], 2
jb 0x140090858
mov rcx, qword [rcx + 0x10]
lea r8, [0x14015a6e8]
mov edx, 0x1a
mov dword [rsp + 0x20], ebx
mov r9, rsi
call fcn.140005d40
jmp 0x140090851
mov eax, dword [rsp + 0x30]
mov dword [rbp], eax
lea rbp, [0x14017b048]
mov eax, dword [rsp + 0x80]
mov qword [r14], rdi
xor edi, edi
mov dword [r15], eax
mov rcx, qword [0x14017b048]
test rdi, rdi
je 0x140090873
mov rcx, rdi
call qword [sym.imp.ole32.dll_CoTaskMemFree]
nop dword [rax + rax]
mov rcx, qword [0x14017b048]
cmp rcx, rbp
je 0x140090899
test byte [rcx + 0x1c], 1
je 0x140090899
cmp byte [rcx + 0x19], 4
jb 0x140090899
mov rcx, qword [rcx + 0x10]
lea r8, [0x14015a6e8]
mov edx, 0x1b
call fcn.140004c10
mov rbp, qword [rsp + 0x78]
mov eax, ebx
mov rbx, qword [rsp + 0x70]
add rsp, 0x40
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret
Function at 0x140090a84
Capabilities:
Query or enumerate registry key

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rdi
push r14
sub rsp, 0x50
mov rax, qword [0x14017b608]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov rdi, rcx
mov rcx, qword [0x14017b048]
lea r14, [0x14017b048]
cmp rcx, r14
je 0x140090ada
test byte [rcx + 0x1c], 1
je 0x140090ada
cmp byte [rcx + 0x19], 4
jb 0x140090ada
mov rcx, qword [rcx + 0x10]
lea r8, [0x14015a6e8]
mov edx, 0x1f
call fcn.140004c10
xor ebx, ebx
lea r8, [rsp + 0x38]
xor eax, eax
mov dword [rsp + 0x30], ebx
mov qword [rsp + 0x38], rax
mov rcx, rdi
mov dword [rsp + 0x40], eax
lea rax, [rsp + 0x34]
lea r9d, [rbx + 0xc]
mov dword [rsp + 0x34], ebx
lea edx, [rbx + 5]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ntdll.dll_NtQueryKey]
nop dword [rax + rax]
test eax, eax
jns 0x140090b44
mov ecx, eax
call fcn.14003bcc4
mov ebx, eax
mov rcx, qword [0x14017b048]
cmp rcx, r14
je 0x140090bd7
test byte [rcx + 0x1c], 1
je 0x140090bb1
cmp byte [rcx + 0x19], 2
jb 0x140090bb1
mov edx, 0x20
jmp 0x140090b97
mov eax, dword [rsp + 0x40]
lea r8, [rsp + 0x30]
mov r9d, 4
or eax, 0xe
mov rcx, rdi
mov dword [rsp + 0x30], eax
lea edx, [r9 - 2]
call qword [sym.imp.ntdll.dll_NtSetInformationKey]
nop dword [rax + rax]
test eax, eax
jns 0x140090baa
mov ecx, eax
call fcn.14003bcc4
mov ebx, eax
mov rcx, qword [0x14017b048]
cmp rcx, r14
je 0x140090bd7
test byte [rcx + 0x1c], 1
je 0x140090bb1
cmp byte [rcx + 0x19], 2
jb 0x140090bb1
mov edx, 0x21
mov rcx, qword [rcx + 0x10]
lea r8, [0x14015a6e8]
mov r9d, eax
call fcn.140004c3c
mov rcx, qword [0x14017b048]
cmp rcx, r14
je 0x140090bd7
test byte [rcx + 0x1c], 1
je 0x140090bd7
cmp byte [rcx + 0x19], 4
jb 0x140090bd7
mov rcx, qword [rcx + 0x10]
lea r8, [0x14015a6e8]
mov edx, 0x22
call fcn.140004c10
mov eax, ebx
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.14014bb60
mov rbx, qword [rsp + 0x68]
mov rdi, qword [rsp + 0x70]
add rsp, 0x50
pop r14
ret