joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140001155
Capabilities:
Execute anti-debugging instructions

Disassembly:
xor eax, eax
cpuid
mov eax, 1
cpuid
movabs r9, 0xb2d05e00
cpuid
rdtsc
shl rdx, 0x20
or rax, rdx
mov rcx, rax
fldpi
frndint
rdtsc
shl rdx, 0x20
or rax, rdx
sub rax, rcx
cmp rax, r9
jb 0x140001178
push rbp
mov rbp, rsp
sub rsp, 8
mov r10, 0xa
mov rcx, 0xffffffff9f345678
dec rcx
xor r9, r9
mov rax, rcx
jne 0x1400011a3
xor rax, rax
mov rax, rbx
add rax, rdx
nop
nop
nop
dec r10
xor r11, r11
jne 0x14000119c
xor rax, rax
mov rax, 0xa
dec rax
nop
nop
add rsp, 8
pop rbp
ret

Function at 0x140004964
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x40
mov rbp, rcx
mov ecx, 0xfffffff5
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
nop dword [rax + rax]
or rdi, 0xffffffffffffffff
mov rsi, rax
cmp rax, rdi
je 0x140004b0c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileType]
nop dword [rax + rax]
xor r12d, r12d
mov ebx, eax
test eax, eax
jne 0x1400049ca
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
test eax, eax
jne 0x140004b0c
btr ebx, 0xf
cmp ebx, 2
jne 0x140004a2e
lea rdx, [rsp + 0x80]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetConsoleMode]
nop dword [rax + rax]
test eax, eax
jne 0x1400049ff
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
cmp eax, 6
je 0x140004a2e
inc rdi
cmp word [rbp + rdi*2], r12w
jne 0x1400049ff
mov r8, rdi
mov qword [rsp + 0x20], r12
lea r9, [rsp + 0x78]
mov rdx, rbp
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_WriteConsoleW]
nop dword [rax + rax]
jmp 0x140004b0c
call qword [sym.imp.KERNEL32.dll_GetConsoleOutputCP]
nop dword [rax + rax]
mov qword [rsp + 0x38], r12
mov r9d, edi
mov qword [rsp + 0x30], r12
mov ecx, eax
mov dword [rsp + 0x28], r12d
mov r8, rbp
xor edx, edx
mov qword [rsp + 0x20], r12
mov r15d, eax
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
nop dword [rax + rax]
mov r14d, eax
test eax, eax
je 0x140004b0c
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
nop dword [rax + rax]
mov r8d, r14d
mov edx, 8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
nop dword [rax + rax]
mov rbx, rax
test rax, rax
je 0x140004b0c
mov qword [rsp + 0x38], r12
mov r9d, edi
mov qword [rsp + 0x30], r12
mov r8, rbp
mov dword [rsp + 0x28], r14d
xor edx, edx
mov ecx, r15d
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
nop dword [rax + rax]
test eax, eax
je 0x140004aec
lea r8d, [rax - 1]
mov qword [rsp + 0x20], r12
lea r9, [rsp + 0x78]
mov rdx, rbx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_WriteFile]
nop dword [rax + rax]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
nop dword [rax + rax]
mov r8, rbx
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
nop dword [rax + rax]
lea r11, [rsp + 0x40]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret
Function at 0x140005a50
Capabilities:
Acquire debug privileges

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rsi
push rdi
sub rsp, 0x20
and qword [r11 + 0x18], 0
lea rax, str.SeDebugPrivilege
mov rsi, rdx
mov qword [r11 + 0x20], rax
mov r8d, ecx
lea r9, [r11 + 0x18]
mov edx, 1
lea rcx, [r11 + 0x20]
call fcn.14000f7e8
mov edi, eax
test eax, eax
je 0x140005a99
mov rcx, qword [rsp + 0x40]
mov rdx, rsi
call fcn.14000f5ac
mov edi, eax
cmp qword [rsp + 0x40], 0
je 0x140005ac3
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
nop dword [rax + rax]
mov r8, qword [rsp + 0x40]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
nop dword [rax + rax]
mov eax, edi
mov rsi, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x140005ef4
Capabilities:
Get disk information

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r15
lea rbp, [rsp - 0x1b0]
sub rsp, 0x2b0
mov rax, qword [0x14003f0b8]
xor rax, rsp
mov qword [rbp + 0x1a0], rax
xor r15d, r15d
mov rsi, rcx
mov ebx, r15d
test rcx, rcx
jne 0x140005f3c
mov qword [0x14003f8f8], r15
jmp 0x14000610b
cmp word [rcx], 0x5c
jne 0x140005fab
or rdi, 0xffffffffffffffff
mov rcx, rdi
inc rcx
cmp word [rsi + rcx*2], r15w
jne 0x140005f49
mov eax, 2
mul rcx
mov ecx, 0xc0000095
mov r8, rax
test rdx, rdx
je 0x140005f6d
mov r8, rdi
mov ebx, ecx
test ebx, ebx
js 0x14000610b
lea rax, [r8 + 2]
cmp rax, r8
cmovae rdi, rax
sbb ebx, ebx
and ebx, ecx
cmp rax, r8
jb 0x14000610b
mov r8, rsi
lea rcx, [rsp + 0x20]
mov edx, 0x104
call qword [sym.imp.msvcrt.dll_wcscpy_s]
nop dword [rax + rax]
jmp 0x1400060c5
mov r8d, 0x104
lea rdx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
nop dword [rax + rax]
or rdi, 0xffffffffffffffff
test eax, eax
jne 0x140006081
mov r8d, 0x104
lea rdx, [rsp + 0x20]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetVolumePathNameW]
nop dword [rax + rax]
test eax, eax
jne 0x140005ff6
mov ebx, 0xc000000d
jmp 0x14000610b
mov r8d, 0x32
lea rdx, [rbp + 0x130]
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetVolumeNameForVolumeMountPointW]
nop dword [rax + rax]
test eax, eax
je 0x140005fec
lea r8, [rbp + 0x130]
mov edx, 0x104
lea rcx, [rsp + 0x20]
call qword [sym.imp.msvcrt.dll_wcscpy_s]
nop dword [rax + rax]
lea rcx, [rsp + 0x20]
mov rax, rdi
inc rax
cmp word [rcx + rax*2], r15w
jne 0x14000603d
cmp rax, 1
jbe 0x140006081
cmp word [rsp + 0x22], 0x5c
jne 0x14000605f
mov ecx, 0x3f
mov word [rsp + 0x22], cx
cmp word [rsp + rax*2 + 0x1e], 0x5c
jne 0x140006081
lea rax, [rax*2 - 2]
cmp rax, 0x208
jae 0x140006134
mov word [rsp + rax + 0x20], r15w
lea rax, [rsp + 0x20]
mov rcx, rdi
inc rcx
cmp word [rax + rcx*2], r15w
jne 0x140006089
mov eax, 2
mul rcx
mov ecx, 0xc0000095
mov r8, rax
test rdx, rdx
je 0x1400060ad
mov r8, rdi
mov ebx, ecx
test ebx, ebx
js 0x14000610b
lea rax, [r8 + 2]
cmp rax, r8
cmovae rdi, rax
sbb ebx, ebx
and ebx, ecx
cmp rax, r8
jb 0x14000610b
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
nop dword [rax + rax]
mov r8, rdi
mov edx, 8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
nop dword [rax + rax]
mov qword [0x14003f8f8], rax
test rax, rax
jne 0x1400060fb
mov ebx, 0xc0000017
jmp 0x14000610b
mov r8, rdi
lea rdx, [rsp + 0x20]
mov rcx, rax
call sub.msvcrt.dll_memcpy
mov eax, ebx
mov rcx, qword [rbp + 0x1a0]
xor rcx, rsp
call fcn.140026f10
lea r11, [rsp + 0x2b0]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop rdi
pop rbp
ret
call fcn.1400270e8
int3
Function at 0x140006140
Capabilities:
Get disk information

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
xor ebp, ebp
mov rsi, rcx
mov ebx, ebp
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
nop dword [rax + rax]
xor edx, edx
mov r8d, 0x208
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
nop dword [rax + rax]
mov rdi, rax
test rax, rax
jne 0x14000619a
lea ecx, [rbp + 8]
call qword [sym.imp.KERNEL32.dll_SetLastError]
nop dword [rax + rax]
jmp 0x140006275
mov r8d, 0x104
mov rdx, rdi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetVolumePathNameW]
nop dword [rax + rax]
test eax, eax
je 0x140006255
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
nop dword [rax + rax]
xor edx, edx
mov r8d, 0x208
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
nop dword [rax + rax]
mov rbx, rax
test rax, rax
jne 0x1400061f6
lea ecx, [rax + 8]
call qword [sym.imp.KERNEL32.dll_SetLastError]
nop dword [rax + rax]
jmp 0x140006255
mov r8d, 0x104
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetVolumeNameForVolumeMountPointW]
nop dword [rax + rax]
test eax, eax
jne 0x14000623b
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
nop dword [rax + rax]
mov r8, rbx
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
nop dword [rax + rax]
test eax, eax
je 0x140006255
mov rbx, rbp
jmp 0x140006255
or rax, 0xffffffffffffffff
inc rax
cmp word [rbx + rax*2], bp
jne 0x14000623f
dec eax
cmp word [rbx + rax*2], 0x5c
jne 0x140006255
mov word [rbx + rax*2], bp
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
nop dword [rax + rax]
mov r8, rdi
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
nop dword [rax + rax]
mov rbp, qword [rsp + 0x38]
mov rax, rbx
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x140006294
Capabilities:
Read file on windows

Disassembly:
mov r11, rsp
sub rsp, 0x68
and qword [r11 - 0x28], 0
xor r9d, r9d
mov eax, ecx
mov rcx, qword [0x14003f0d0]
mov qword [r11 + 0x20], rax
lea rax, [r11 + 0x20]
mov qword [r11 - 0x30], rax
lea rax, [r11 - 0x18]
mov dword [r11 - 0x38], r8d
xor r8d, r8d
mov qword [r11 - 0x40], rdx
xor edx, edx
mov qword [r11 - 0x48], rax
call qword [sym.imp.ntdll.dll_NtReadFile]
nop dword [rax + rax]
add rsp, 0x68
ret
Function at 0x140009cf0
Capabilities:
Get disk information

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rdi, rdx
mov rsi, rcx
mov ebx, 0x43
call qword [sym.imp.KERNEL32.dll_GetLogicalDrives]
nop dword [rax + rax]
mov edx, eax
test eax, eax
jne 0x140009d35
lea rdx, str.Failed_to_enumerate_logical_drives
lea ecx, [rbx - 0x3f]
call fcn.14000f424
jmp 0x140009e79
mov ecx, 2
lea r8d, [rcx - 1]
mov eax, edx
shr eax, cl
test r8b, al
je 0x140009d5d
add ecx, r8d
add bx, r8w
cmp ecx, 0x1a
jl 0x140009d3e
mov eax, 0xc0000225
jmp 0x140009eab
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
nop dword [rax + rax]
mov edx, 8
mov rcx, rax
lea r8d, [rdx - 2]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
nop dword [rax + rax]
mov rbp, rax
test rax, rax
jne 0x140009da2
lea rdx, str.Failed_to_allocate_memory_for_mount_location
lea ecx, [rax + 4]
call fcn.14000f424
mov eax, 0xc000009a
jmp 0x140009eab
movzx ebx, bx
lea rdx, str.Found_potential_mount_location_at__C
mov r8d, ebx
mov ecx, 2
call fcn.14000f424
mov r9d, ebx
lea r8, str._C:_
mov edx, 3
mov rcx, rbp
call qword [sym.imp.msvcrt.dll_swprintf_s]
nop dword [rax + rax]
mov r8, rbp
mov qword [rdi], rbp
lea rdx, str.Attempting_to_mount_at_letter__ws
mov ecx, 2
call fcn.14000f424
mov rcx, qword [rdi]
mov rdx, rsi
call qword [sym.imp.KERNEL32.dll_SetVolumeMountPointW]
nop dword [rax + rax]
test eax, eax
je 0x140009e22
mov r9, qword [rdi]
lea rdx, str.Mounted__ws_at__ws
mov r8, rsi
mov ecx, 2
call fcn.14000f424
xor eax, eax
jmp 0x140009eab
mov rbx, qword [rdi]
test rbx, rbx
je 0x140009e52
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
nop dword [rax + rax]
mov r8, rbx
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
nop dword [rax + rax]
test eax, eax
je 0x140009e52
and qword [rdi], 0
and qword [rdi], 0
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov r8, rsi
lea rdx, str.Attempt_to_mount_volume__ws_failed_Error__u
mov r9d, eax
mov ecx, 4
call fcn.14000f424
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
test eax, eax
jg 0x140009e97
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
jmp 0x140009eab
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
movzx eax, ax
or eax, 0xc0070000
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x140009ec8
Capabilities:
Enumerate disk volumes
Get disk information

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x450
mov rax, qword [0x14003f0b8]
xor rax, rsp
mov qword [rsp + 0x440], rax
mov r15, rdx
mov rbp, rcx
mov r8, rcx
lea rdx, str.Finding_volume_name_for_device__ws
mov ecx, 2
mov esi, 0xc000000e
call fcn.14000f424
mov edx, 0x104
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_FindFirstVolumeW]
nop dword [rax + rax]
xor r12d, r12d
mov r14, rax
test rax, rax
jne 0x140009f4f
mov r8, rbp
lea rdx, str.Failed_to_find_volume_name_for__ws
lea ecx, [rax + 2]
mov esi, 0xc0000001
call fcn.14000f424
jmp 0x14000a05b
or rbx, 0xffffffffffffffff
lea rax, [rsp + 0x20]
mov rdi, rbx
inc rdi
cmp word [rax + rdi*2], r12w
jne 0x140009f5b
mov r8d, 0x104
mov word [rsp + rdi*2 + 0x1e], r12w
lea rdx, [rsp + 0x230]
lea rcx, [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
nop dword [rax + rax]
mov ecx, 0x5c
mov word [rsp + rdi*2 + 0x1e], cx
test eax, eax
je 0x140009fc0
lea rdx, [rsp + 0x230]
mov rax, rbp
sub rdx, rbp
movzx ecx, word [rax]
movzx r8d, word [rax + rdx]
sub ecx, r8d
jne 0x140009fbc
add rax, 2
test r8d, r8d
jne 0x140009fa6
test ecx, ecx
je 0x140009fe3
mov r8d, 0x104
lea rdx, [rsp + 0x20]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_FindNextVolumeW]
nop dword [rax + rax]
test eax, eax
je 0x14000a04c
jmp 0x140009f53
lea r8, [rsp + 0x20]
mov ecx, 2
lea rdx, str.Found_Volume_Name_of__ws
call fcn.14000f424
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
nop dword [rax + rax]
mov edx, 8
mov r8d, 0x20a
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
nop dword [rax + rax]
mov qword [r15], rax
lea rcx, [rsp + 0x20]
inc rbx
cmp word [rcx + rbx*2], r12w
jne 0x14000a027
lea rdx, [rbx + 1]
mov rcx, rax
lea r8, [rsp + 0x20]
call qword [sym.imp.msvcrt.dll_wcscpy_s]
nop dword [rax + rax]
mov esi, r12d
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_FindVolumeClose]
nop dword [rax + rax]
mov eax, esi
mov rcx, qword [rsp + 0x440]
xor rcx, rsp
call fcn.140026f10
lea r11, [rsp + 0x450]
mov rbx, qword [r11 + 0x40]
mov rbp, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret
Function at 0x14000a3ac
Capabilities:
Enumerate disk volumes
Get disk information

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r14
sub rsp, 0x450
mov rax, qword [0x14003f0b8]
xor rax, rsp
mov qword [rsp + 0x440], rax
mov rsi, rdx
mov rbp, rcx
xor edx, edx
lea rcx, [rsp + 0x20]
mov r8d, 0x208
call sub.msvcrt.dll_memset
mov edx, 0x104
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_FindFirstVolumeW]
nop dword [rax + rax]
xor r14d, r14d
mov rdi, rax
test rax, rax
jne 0x14000a416
mov ebx, 0xc0000001
jmp 0x14000a4a3
lea rax, [rsp + 0x20]
or rbx, 0xffffffffffffffff
inc rbx
cmp word [rax + rbx*2], r14w
jne 0x14000a41f
mov r8d, 0x104
mov word [rsp + rbx*2 + 0x1e], r14w
lea rdx, [rsp + 0x230]
lea rcx, [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
nop dword [rax + rax]
mov eax, 0x5c
lea rdx, [rsp + 0x230]
mov r8, rsi
mov word [rsp + rbx*2 + 0x1e], ax
mov rcx, rbp
call fcn.14000a090
mov ebx, eax
test eax, eax
js 0x14000a494
cmp dword [rsi], 1
je 0x14000a494
mov r8d, 0x104
lea rdx, [rsp + 0x20]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindNextVolumeW]
nop dword [rax + rax]
test eax, eax
jne 0x14000a416
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindVolumeClose]
nop dword [rax + rax]
mov eax, ebx
mov rcx, qword [rsp + 0x440]
xor rcx, rsp
call fcn.140026f10
lea r11, [rsp + 0x450]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
Function at 0x14000bee0
Capabilities:
Query or enumerate registry value

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r14
mov rbp, rsp
sub rsp, 0x70
mov rax, qword [0x14003f0b8]
xor rax, rsp
mov qword [rbp - 8], rax
xor ebx, ebx
mov dword [rbp - 0x40], 4
cmp edx, 1
mov rsi, r8
mov r14d, ecx
mov edi, ebx
setne dil
lea rcx, [rbp - 0x28]
xor edx, edx
lea r8d, [rbx + 0x20]
call sub.msvcrt.dll_memset
lea rax, [rbp - 0x30]
mov r9d, 0x20019
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.SystemCurrentControlSetPoliciesMicrosoftFeatureManagementOverrides
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
nop dword [rax + rax]
test eax, eax
jne 0x14000bff8
xor r14d, 0x74161a4e
lea r8, [0x14002fd80]
bswap r14d
xor r14d, 0x8fb23d4f
lea edx, [rbx + 0x10]
ror r14d, 0xff
lea rcx, [rbp - 0x28]
xor r14d, 0x833ea8ff
mov r9d, r14d
call fcn.14000bdd4
mov rcx, qword [rbp - 0x30]
lea rax, [rbp - 0x40]
mov qword [rsp + 0x28], rax
lea r9, [rbp - 0x3c]
lea rax, [rbp - 0x38]
xor r8d, r8d
lea rdx, [rbp - 0x28]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
nop dword [rax + rax]
mov rcx, qword [rbp - 0x30]
mov r14d, eax
lea rdx, [rcx - 1]
cmp rdx, 0xfffffffffffffffd
ja 0x14000bfd3
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop dword [rax + rax]
test r14d, r14d
jne 0x14000bff8
cmp dword [rbp - 0x3c], 4
jne 0x14000bff8
cmp dword [rbp - 0x40], 4
jne 0x14000bff8
mov eax, dword [rbp - 0x38]
mov edi, ebx
neg eax
sbb ecx, ecx
neg ecx
inc ecx
cmp ecx, 1
setne dil
lea ecx, [rdi + 1]
xor eax, eax
lock cmpxchg dword [rsi], ecx
mov ecx, dword [rsi]
cmp ecx, 1
setne bl
mov eax, ebx
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.140026f10
add rsp, 0x70
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret
mov r8, qword [rcx]
xor eax, eax
mov r9d, dword [rcx + 8]
mov edx, dword [rcx + 0xc]
mov ecx, dword [r8]
test ecx, ecx
je 0x14000c042
cmp ecx, 1
setne al
ret
mov ecx, r9d
jmp 0x14000bee0
Function at 0x14000c028
Capabilities:
Query or enumerate registry value

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r14
mov rbp, rsp
sub rsp, 0x70
mov rax, qword [0x14003f0b8]
xor rax, rsp
mov qword [rbp - 8], rax
xor ebx, ebx
mov dword [rbp - 0x40], 4
cmp edx, 1
mov rsi, r8
mov r14d, ecx
mov edi, ebx
setne dil
lea rcx, [rbp - 0x28]
xor edx, edx
lea r8d, [rbx + 0x20]
call sub.msvcrt.dll_memset
lea rax, [rbp - 0x30]
mov r9d, 0x20019
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.SystemCurrentControlSetPoliciesMicrosoftFeatureManagementOverrides
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
nop dword [rax + rax]
test eax, eax
jne 0x14000bff8
xor r14d, 0x74161a4e
lea r8, [0x14002fd80]
bswap r14d
xor r14d, 0x8fb23d4f
lea edx, [rbx + 0x10]
ror r14d, 0xff
lea rcx, [rbp - 0x28]
xor r14d, 0x833ea8ff
mov r9d, r14d
call fcn.14000bdd4
mov rcx, qword [rbp - 0x30]
lea rax, [rbp - 0x40]
mov qword [rsp + 0x28], rax
lea r9, [rbp - 0x3c]
lea rax, [rbp - 0x38]
xor r8d, r8d
lea rdx, [rbp - 0x28]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
nop dword [rax + rax]
mov rcx, qword [rbp - 0x30]
mov r14d, eax
lea rdx, [rcx - 1]
cmp rdx, 0xfffffffffffffffd
ja 0x14000bfd3
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop dword [rax + rax]
test r14d, r14d
jne 0x14000bff8
cmp dword [rbp - 0x3c], 4
jne 0x14000bff8
cmp dword [rbp - 0x40], 4
jne 0x14000bff8
mov eax, dword [rbp - 0x38]
mov edi, ebx
neg eax
sbb ecx, ecx
neg ecx
inc ecx
cmp ecx, 1
setne dil
lea ecx, [rdi + 1]
xor eax, eax
lock cmpxchg dword [rsi], ecx
mov ecx, dword [rsi]
cmp ecx, 1
setne bl
mov eax, ebx
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.140026f10
add rsp, 0x70
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret
mov r8, qword [rcx]
xor eax, eax
mov r9d, dword [rcx + 8]
mov edx, dword [rcx + 0xc]
mov ecx, dword [r8]
test ecx, ecx
je 0x14000c042
cmp ecx, 1
setne al
ret
mov ecx, r9d
jmp 0x14000bee0
Function at 0x14000dffc
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x20
xor ebx, ebx
mov esi, r8d
mov rbp, rdx
mov rdi, rcx
test rdx, rdx
je 0x14000e0df
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
nop dword [rax + rax]
cmp eax, 0xffffffff
je 0x14000e0df
test al, 0x50
jne 0x14000e0df
lea edx, [rbx + 0x5c]
mov rcx, rdi
call qword [sym.imp.msvcrt.dll_wcsrchr]
nop dword [rax + rax]
test rax, rax
je 0x14000e062
add rax, 2
jmp 0x14000e065
mov rax, rdi
lea rdx, str.bootmgr
mov rcx, rax
call qword [sym.imp.msvcrt.dll__wcsicmp]
nop dword [rax + rax]
mov r14d, ebx
mov r15d, 1
test eax, eax
mov rcx, rbp
cmove r14d, r15d
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
nop dword [rax + rax]
cmp eax, 0xffffffff
je 0x14000e0a2
test al, 0x50
je 0x14000e0a5
mov esi, r15d
mov edx, r14d
mov rcx, rdi
call fcn.1400111a8
test rax, rax
jne 0x14000e0b9
mov ebx, esi
jmp 0x14000e0df
mov rdi, qword [0x14003f890]
mov edx, r14d
cmp rax, rdi
mov rcx, rbp
cmova rdi, rax
call fcn.1400111a8
test rax, rax
je 0x14000e0dc
cmp rdi, rax
jb 0x14000e0df
mov ebx, r15d
mov rbp, qword [rsp + 0x48]
mov eax, ebx
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop rdi
ret
Function at 0x14000e54c
Capabilities:
Get system information on windows

Disassembly:
push rbx
sub rsp, 0x50
mov rax, qword [0x14003f0b8]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov eax, dword [0x14003f738]
test eax, eax
jne 0x14000e59b
xor r9d, r9d
lea r8d, [rax + 0x20]
lea rdx, [rsp + 0x20]
lea ecx, [rax + 0x5a]
lea ebx, [rax + 1]
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
nop dword [rax + rax]
test eax, eax
js 0x14000e599
xor ebx, ebx
cmp dword [rsp + 0x30], 3
cmovl ebx, dword [rsp + 0x30]
mov eax, ebx
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140026f10
add rsp, 0x50
pop rbx
ret

Function at 0x14000e5b4
Capabilities:
Get disk information

Disassembly:
push rbx
sub rsp, 0x270
mov rax, qword [0x14003f0b8]
xor rax, rsp
mov qword [rsp + 0x260], rax
mov r8d, 0x105
lea rdx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_GetVolumePathNameW]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
je 0x14000e63e
and dword [rsp + 0x38], 0
lea rax, [rsp + 0x40]
and qword [rsp + 0x30], 0
lea rcx, [rsp + 0x50]
mov qword [rsp + 0x28], rax
xor r9d, r9d
and qword [rsp + 0x20], 0
xor r8d, r8d
xor edx, edx
call qword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
je 0x14000e63e
test byte [rsp + 0x40], 8
jne 0x14000e63e
xor ebx, ebx
lea ecx, [rbx + 0x32]
call qword [sym.imp.KERNEL32.dll_SetLastError]
nop dword [rax + rax]
mov eax, ebx
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.140026f10
add rsp, 0x270
pop rbx
ret
Function at 0x14000e660
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov esi, 0x80
mov edi, edx
mov rbx, rcx
cmp edx, esi
je 0x14000e6a4
test edx, 0xffffff78
je 0x14000e6a4
xor esi, esi
mov r9, rcx
mov r8d, edx
lea rdx, str.Invalid_attributes___x__specified_for__s_file_
lea ecx, [rsi + 4]
call fcn.14000f424
lea ecx, [rsi + 0x57]
jmp 0x14000e76a
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
nop dword [rax + rax]
mov edx, eax
cmp eax, 0xffffffff
jne 0x14000e704
xor esi, esi
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov edi, eax
cmp eax, 5
je 0x14000e6d4
add eax, 0xffffffe0
cmp eax, 1
ja 0x14000e6dc
mov rcx, rbx
call fcn.140005634
mov ecx, 2
mov r8, rbx
cmp edi, ecx
je 0x14000e6f6
lea rdx, str.GetFileAttributes__s__failed__Last_Error___x.
mov ecx, 3
jmp 0x14000e760
lea rdx, str.GetFileAttributes__s__failed:_File_not_found.
call fcn.14000f424
jmp 0x14000e768
and edx, 0x3120
mov rcx, rbx
or edx, edi
mov eax, edx
btr edx, 7
or eax, esi
cmp eax, esi
cmove edx, eax
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
nop dword [rax + rax]
mov esi, eax
test eax, eax
jne 0x14000e776
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov edi, eax
cmp eax, 5
je 0x14000e749
lea ecx, [rax - 0x20]
cmp ecx, 1
ja 0x14000e751
mov rcx, rbx
call fcn.140005634
mov r8, rbx
lea rdx, str.SetFileAttributes__s__failed__Last_Error___x.
mov ecx, 4
mov r9d, edi
call fcn.14000f424
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_SetLastError]
nop dword [rax + rax]
mov rbx, qword [rsp + 0x30]
mov eax, esi
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret