joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000a6c4
Capabilities:
Get disk information

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x350]
sub rsp, 0x450
mov rax, qword [0x14003f008]
xor rax, rsp
mov qword [rbp + 0x340], rax
xor ebx, ebx
or rdi, 0xffffffffffffffff
mov r15, rdx
mov r14, rcx
lea r12d, [rbx + 0x5c]
cmp word [rcx], r12w
je 0x14000a7ed
mov rsi, rdi
inc rsi
cmp word [rcx + rsi*2], bx
jne 0x14000a713
cmp rsi, 0x103
jbe 0x14000a72f
mov ebx, 0xc000000d
jmp 0x14000a85f
mov r8, rcx
mov edx, 0x104
lea rcx, [rbp + 0x130]
call qword [sym.imp.msvcrt.dll_wcscpy_s]
cmp word [rbp + rsi*2 + 0x12e], r12w
je 0x14000a77e
cmp rsi, 0x103
jae 0x14000a725
mov word [rbp + rsi*2 + 0x130], r12w
lea rsi, [rsi*2 + 2]
cmp rsi, 0x208
jae 0x14000a88c
mov word [rbp + rsi + 0x130], bx
mov r8d, 0x104
lea rdx, [rsp + 0x20]
lea rcx, [rbp + 0x130]
call qword [sym.imp.KERNEL32.dll_GetVolumeNameForVolumeMountPointW]
test eax, eax
je 0x14000a826
lea rcx, [rsp + 0x20]
mov rax, rdi
inc rax
cmp word [rcx + rax*2], bx
jne 0x14000a7a6
cmp rax, 1
jbe 0x14000a7e8
cmp word [rsp + 0x22], r12w
jne 0x14000a7c7
mov ecx, 0x3f
mov word [rsp + 0x22], cx
cmp word [rsp + rax*2 + 0x1e], r12w
jne 0x14000a7e8
lea rax, [rax*2 - 2]
cmp rax, 0x208
jae 0x14000a892
mov word [rsp + rax + 0x20], bx
lea r14, [rsp + 0x20]
mov r8, rdi
inc r8
cmp word [r14 + r8*2], bx
jne 0x14000a7f0
mov rcx, qword gs:[0x60]
lea r8, [r8*2 + 2]
xor edx, edx
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov qword [r15], rax
test rax, rax
jne 0x14000a845
mov ebx, 0xc000009a
jmp 0x14000a85f
mov r8d, 0x104
lea rdx, [rsp + 0x20]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
test eax, eax
jne 0x14000a7e8
mov ebx, 0xc0000001
jmp 0x14000a85f
inc rdi
cmp word [r14 + rdi*2], bx
jne 0x14000a845
lea rdx, [rdi + 1]
mov r8, r14
mov rcx, rax
call qword [sym.imp.msvcrt.dll_wcscpy_s]
mov eax, ebx
mov rcx, qword [rbp + 0x340]
xor rcx, rsp
call fcn.140027ea0
lea r11, [rsp + 0x450]
mov rbx, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
call fcn.1400280a8
int3
call fcn.1400280a8
int3
Function at 0x14000b2f4
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]
or rbx, 0xffffffffffffffff
mov rsi, rax
cmp rax, rbx
je 0x14000b449
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileType]
xor r12d, r12d
mov edi, eax
test eax, eax
jne 0x14000b348
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x14000b449
btr edi, 0xf
cmp edi, 2
jne 0x14000b39a
lea rdx, [rsp + 0x80]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetConsoleMode]
test eax, eax
jne 0x14000b371
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 6
je 0x14000b39a
inc rbx
cmp word [rbp + rbx*2], r12w
jne 0x14000b371
mov r8, rbx
mov qword [rsp + 0x20], r12
lea r9, [rsp + 0x78]
mov rdx, rbp
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_WriteConsoleW]
jmp 0x14000b449
call qword [sym.imp.KERNEL32.dll_GetConsoleOutputCP]
mov qword [rsp + 0x38], r12
mov r9d, ebx
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]
mov r14d, eax
test eax, eax
je 0x14000b449
mov rcx, qword gs:[0x60]
mov r8d, r14d
xor edx, edx
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov rdi, rax
test rax, rax
je 0x14000b449
mov qword [rsp + 0x38], r12
mov r9d, ebx
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]
test eax, eax
je 0x14000b431
lea r8d, [rax - 1]
mov qword [rsp + 0x20], r12
lea r9, [rsp + 0x78]
mov rdx, rdi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, qword gs:[0x60]
mov r8, rdi
xor edx, edx
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
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 0x14000d8f4
Capabilities:
Get system information on windows

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x70
mov rax, qword [0x14003f008]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov rdi, r8
sub edx, 1
je 0x14000d98a
cmp edx, 1
je 0x14000d924
mov ebx, 0xc000000d
jmp 0x14000d9af
and qword [rsp + 0x30], 0
lea r8, [rsp + 0x30]
lea rdx, [0x14002b4d8]
call fcn.14000d3e0
mov ebx, eax
test eax, eax
js 0x14000d979
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
lea r9, [rsp + 0x40]
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov dword [rsp + 0x38], 0x10
mov edx, 0x23000003
call fcn.14000dc78
mov ebx, eax
test eax, eax
js 0x14000d979
movups xmm0, xmmword [rsp + 0x40]
movdqu xmmword [rdi], xmm0
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x14000d9af
call fcn.14000d6dc
jmp 0x14000d9af
xor r9d, r9d
lea rdx, [rsp + 0x40]
lea r8d, [r9 + 0x20]
lea ecx, [r9 + 0x5a]
call qword [sym.imp.ntdll.dll_ZwQuerySystemInformation]
mov ebx, eax
test eax, eax
js 0x14000d9af
movups xmm0, xmmword [rsp + 0x40]
movdqu xmmword [rdi], xmm0
mov eax, ebx
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.140027ea0
mov rbx, qword [rsp + 0x88]
add rsp, 0x70
pop rdi
ret
Function at 0x140010b20
Capabilities:
Check for peb beingdebugged flag

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x20], rsi
mov qword [rax + 0x18], r8
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x20
xor r13d, r13d
mov r15, rdx
mov r14d, r13d
mov qword [rax + 0x18], r13
mov edi, r13d
mov r12, rcx
call fcn.140010d10
cmp eax, 1
je 0x140010b78
add eax, 0xfffffffe
cmp eax, 1
ja 0x140010b6e
lea rsi, str.EFIMicrosoftBootBCD
jmp 0x140010b7f
mov ebx, 0xc00000bb
jmp 0x140010ce9
lea rsi, str.BootBCD
lea rcx, [rsp + 0x60]
call fcn.140010940
mov ebx, eax
test eax, eax
js 0x140010c8a
test r12, r12
je 0x140010c03
mov rcx, qword [rsp + 0x60]
or rax, 0xffffffffffffffff
inc rax
cmp word [rcx + rax*2], r13w
jne 0x140010ba1
mov rcx, qword gs:[0x60]
add eax, 2
xor edx, edx
mov ebp, eax
mov rcx, qword [rcx + 0x30]
lea r8, [rax*2]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov rdi, rax
test rax, rax
jne 0x140010bdf
mov ebx, 0xc000009a
jmp 0x140010c8a
mov r8, qword [rsp + 0x60]
mov rdx, rbp
mov rcx, rax
call qword [sym.imp.msvcrt.dll_wcscpy_s]
lea r8, [0x14002a790]
mov rdx, rbp
mov rcx, rdi
call qword [sym.imp.msvcrt.dll_wcscat_s]
add rsi, 2
mov edx, 0x5c
mov rcx, rsi
call qword [sym.imp.msvcrt.dll_wcsrchr]
mov rbp, rax
test rax, rax
jne 0x140010c24
mov ebx, 0xc000000d
jmp 0x140010c8a
test r15, r15
je 0x140010c79
mov rcx, qword gs:[0x60]
sub rbp, rsi
sar rbp, 1
xor edx, edx
inc ebp
mov r13d, ebp
mov rcx, qword [rcx + 0x30]
lea r8, [rbp*2]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov r14, rax
test rdi, rdi
jne 0x140010c63
mov ebx, 0xc000009a
xor r13d, r13d
jmp 0x140010c8a
lea r9d, [rbp - 1]
mov r8, rsi
mov rdx, r13
mov rcx, rax
call qword [sym.imp.msvcrt.dll_wcsncpy_s]
xor r13d, r13d
test r12, r12
je 0x140010c82
mov qword [r12], rdi
test r15, r15
je 0x140010c8a
mov qword [r15], r14
cmp qword [rsp + 0x60], r13
je 0x140010cab
mov rcx, qword gs:[0x60]
xor edx, edx
mov r8, qword [rsp + 0x60]
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
test ebx, ebx
jns 0x140010ce9
test rdi, rdi
je 0x140010ccc
mov rcx, qword gs:[0x60]
mov r8, rdi
xor edx, edx
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
test r14, r14
je 0x140010ce9
mov rcx, qword gs:[0x60]
mov r8, r14
xor edx, edx
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
mov rbp, qword [rsp + 0x58]
mov eax, ebx
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x68]
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x140010d10
Capabilities:
Get system information on windows

Disassembly:
push rbx
sub rsp, 0x50
mov rax, qword [0x14003f008]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov al, byte [0x14003f678]
test al, al
je 0x140010d37
mov eax, dword [0x14003f078]
jmp 0x140010d70
mov ebx, 1
lea rdx, [rsp + 0x20]
xor r9d, r9d
lea r8d, [rbx + 0x1f]
lea ecx, [rbx + 0x59]
call qword [sym.imp.ntdll.dll_ZwQuerySystemInformation]
test eax, eax
js 0x140010d61
xor ebx, ebx
cmp dword [rsp + 0x30], 3
cmovl ebx, dword [rsp + 0x30]
mov dword [0x14003f078], ebx
mov eax, ebx
mov byte [0x14003f678], 1
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140027ea0
add rsp, 0x50
pop rbx
ret

Function at 0x14001163c
Capabilities:
Delete registry key

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x20
and qword [rsp + 0x48], 0
lea r8, [rsp + 0x40]
lea rdx, [rsp + 0x48]
mov rbx, rcx
call fcn.140011a04
test eax, eax
js 0x1400116ab
mov eax, dword [rsp + 0x40]
test eax, eax
je 0x1400116ab
mov rdi, qword [rsp + 0x48]
mov esi, eax
mov rdx, qword [rdi]
lea r9, [rsp + 0x50]
mov r8d, 0xf003f
mov rcx, rbx
call fcn.140011728
test eax, eax
js 0x1400116a1
mov rcx, qword [rsp + 0x50]
call fcn.14001163c
test eax, eax
jns 0x1400116a1
mov rcx, qword [rsp + 0x50]
call fcn.140011308
add rdi, 8
sub rsi, 1
jne 0x14001166f
cmp qword [rsp + 0x48], 0
je 0x1400116cd
mov rcx, qword gs:[0x60]
xor edx, edx
mov r8, qword [rsp + 0x48]
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
mov sil, bl
mov rcx, rbx
and sil, 1
je 0x1400116ed
and rcx, 0xfffffffffffffffe
xor edx, edx
call sym.bcdedit.exe_ORDeleteKey
mov ecx, eax
call fcn.140012894
jmp 0x1400116f3
call qword [sym.imp.ntdll.dll_ZwDeleteKey]
mov edi, eax
test eax, eax
js 0x140011715
test sil, sil
je 0x14001170c
and rbx, 0xfffffffffffffffe
mov rcx, rbx
call sym.bcdedit.exe_ORCloseKey
jmp 0x140011715
mov rcx, rbx
call qword [sym.imp.ntdll.dll_ZwClose]
mov eax, edi
add rsp, 0x20
pop rdi
pop rsi
pop rbx
ret
Function at 0x140011de0
Capabilities:
Check for peb beingdebugged flag

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
mov r13, rdx
mov r15, rcx
xor edi, edi
mov r14d, edi
mov rsi, rdi
mov dword [rsp + 0x88], edi
lea rax, [rsp + 0x88]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, r15
call fcn.1400126b0
mov ebx, eax
mov dword [rsp + 0x80], eax
cmp eax, 0xc0000023
je 0x140011e54
test eax, eax
js 0x140011ef3
mov ebx, 0xc000000d
mov dword [rsp + 0x80], ebx
jmp 0x140011ef3
mov r8d, dword [rsp + 0x88]
mov rcx, qword gs:[0x60]
xor edx, edx
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov rsi, rax
test rax, rax
jne 0x140011e80
mov ebx, 0xc000009a
jmp 0x140011e48
lea rax, [rsp + 0x88]
mov qword [rsp + 0x20], rax
mov r9d, dword [rsp + 0x88]
mov r8, rsi
xor edx, edx
mov rcx, r15
call fcn.1400126b0
mov ebx, eax
mov dword [rsp + 0x80], eax
test eax, eax
js 0x140011ef3
mov r8d, dword [rsi + 0xc]
add r8, 2
mov rcx, qword gs:[0x60]
xor edx, edx
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov r12, rax
test rax, rax
je 0x140011e79
mov r8d, dword [rsi + 0xc]
lea rdx, [rsi + 0x10]
mov rcx, rax
call sub.msvcrt.dll_memcpy
mov eax, dword [rsi + 0xc]
shr rax, 1
mov word [r12 + rax*2], di
mov qword [r13], r12
test rsi, rsi
je 0x140011f10
mov rcx, qword gs:[0x60]
mov r8, rsi
xor edx, edx
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
cmp ebx, 0xc000017d
jne 0x140011f40
int3
mov eax, ebx
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
ret

Function at 0x140011f58
Capabilities:
Delete registry value

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], r8
push rdi
sub rsp, 0x30
mov rsi, rcx
lea rcx, [rax - 0x18]
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
and qword [rsp + 0x50], 0
lea r9, [rsp + 0x50]
mov r8d, 0x2001f
lea rdx, str.Description
mov rcx, rsi
call fcn.140011728
mov rbx, qword [rsp + 0x50]
mov edi, eax
test eax, eax
js 0x140011fd0
mov rcx, rbx
test bl, 1
je 0x140011fc3
mov rdx, qword [rsp + 0x28]
and rcx, 0xfffffffffffffffe
call sym.bcdedit.exe_ORDeleteValue
mov ecx, eax
call fcn.140012894
jmp 0x140011fce
lea rdx, [rsp + 0x20]
call qword [sym.imp.ntdll.dll_ZwDeleteValueKey]
mov edi, eax
cmp rbx, rsi
je 0x140011ff6
test rbx, rbx
je 0x140011ff6
test bl, 1
je 0x140011fed
and rbx, 0xfffffffffffffffe
mov rcx, rbx
call sym.bcdedit.exe_ORCloseKey
jmp 0x140011ff6
mov rcx, rbx
call qword [sym.imp.ntdll.dll_ZwClose]
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
Function at 0x1400122dc
Capabilities:
Set registry value

Disassembly:
mov rax, rsp
mov dword [rax + 0x20], r9d
mov qword [rax + 0x18], r8
mov qword [rax + 0x10], rdx
mov qword [rax + 8], rcx
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x50
mov r12d, r9d
mov r15, r8
mov r13, rdx
mov rsi, rcx
xor r14d, r14d
mov rdx, r13
lea rcx, [rsp + 0x40]
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
and qword [rsp + 0x38], 0
test r15, r15
je 0x14001234d
lea r9, [rsp + 0x38]
mov r8d, 0x2001f
mov rdx, r15
mov rcx, rsi
call fcn.140011728
mov edi, eax
mov dword [rsp + 0x30], eax
mov rbx, qword [rsp + 0x38]
test eax, eax
jns 0x140012350
jmp 0x1400123ad
mov rbx, rsi
mov rcx, rbx
mov eax, dword [rsp + 0xb8]
test bl, 1
je 0x140012385
and rcx, 0xfffffffffffffffe
mov dword [rsp + 0x20], eax
mov r9, qword [rsp + 0xb0]
mov r8d, r12d
mov rdx, qword [rsp + 0x48]
call sym.bcdedit.exe_ORSetValue
mov ecx, eax
call fcn.140012894
jmp 0x1400123a7
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0xb0]
mov qword [rsp + 0x20], rax
mov r9d, r12d
xor r8d, r8d
lea rdx, [rsp + 0x40]
call qword [sym.imp.ntdll.dll_ZwSetValueKey]
mov edi, eax
mov dword [rsp + 0x30], eax
cmp rbx, rsi
je 0x1400123bf
test rbx, rbx
je 0x1400123bf
mov rcx, rbx
call fcn.140011308
cmp edi, 0xc000017d
jne 0x140012402
int3
mov eax, edi
add rsp, 0x50
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
ret
Function at 0x1400126b0
Capabilities:
Query or enumerate registry key

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rsi
push rdi
sub rsp, 0x70
mov esi, r9d
mov rbx, r8
test cl, 1
je 0x140012765
and rcx, 0xfffffffffffffffe
cmp edx, 2
jne 0x14001274c
and qword [r11 - 0x28], 0
lea rax, [r11 - 0x18]
and qword [r11 - 0x30], 0
lea r9, [r11 + 8]
and qword [r11 - 0x38], 0
xor r8d, r8d
and qword [r11 - 0x40], 0
xor edx, edx
and qword [r11 - 0x48], 0
and qword [r11 - 0x50], 0
mov qword [r11 - 0x58], rax
call sym.bcdedit.exe_ORQueryInfoKey
mov ecx, eax
call fcn.140012894
mov edi, eax
test eax, eax
js 0x14001277d
mov r8d, esi
xor edx, edx
mov rcx, rbx
call sub.msvcrt.dll_memset
cmp esi, 0x30
jb 0x140012745
mov ecx, dword [rsp + 0x80]
mov dword [rbx + 0x14], ecx
mov ecx, dword [rsp + 0x60]
lea ecx, [rcx*2 + 2]
mov dword [rbx + 0x18], ecx
jmp 0x14001277d
mov edi, 0xc000000d
jmp 0x14001277d
mov r9, qword [rsp + 0xa0]
mov dword [r9], esi
call sym.bcdedit.exe_ORQueryInfoKeyEx
mov ecx, eax
call fcn.140012894
jmp 0x14001277b
mov rax, qword [rsp + 0xa0]
mov r9d, esi
mov qword [rsp + 0x20], rax
call qword [sym.imp.ntdll.dll_ZwQueryKey]
mov edi, eax
lea r11, [rsp + 0x70]
mov eax, edi
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret

Function at 0x140012798
Capabilities:
Query or enumerate registry value

Disassembly:
mov dword [rsp + 0x18], r8d
push rbx
sub rsp, 0x30
mov rbx, r9
test cl, 1
je 0x14001281f
and dword [rsp + 0x50], 0
mov eax, dword [rsp + 0x60]
cmp eax, 0xc
jbe 0x1400127bf
add eax, 0xfffffff4
mov dword [rsp + 0x50], eax
lea rax, [r9 + 0xc]
and rcx, 0xfffffffffffffffe
lea r8, [rsp + 0x50]
mov qword [rsp + 0x28], r8
lea r9, [rsp + 0x40]
mov r8, qword [rdx + 8]
xor edx, edx
mov qword [rsp + 0x20], rax
call sym.bcdedit.exe_ORGetValue
mov ecx, 0x7a
cmp eax, 0xea
cmove eax, ecx
mov ecx, eax
call fcn.140012894
mov edx, dword [rsp + 0x50]
test eax, eax
js 0x14001280f
mov ecx, dword [rsp + 0x40]
and dword [rbx], 0
mov dword [rbx + 4], ecx
mov dword [rbx + 8], edx
mov rcx, qword [rsp + 0x68]
add edx, 0xc
mov dword [rcx], edx
add rsp, 0x30
pop rbx
ret
mov r8d, 2
add rsp, 0x30
pop rbx
jmp qword [sym.imp.ntdll.dll_ZwQueryValueKey]

Function at 0x140012b14
Capabilities:
Delete file

Disassembly:
mov rax, rsp
sub rsp, 0x58
and qword [rax - 0x30], 0
xorps xmm0, xmm0
mov qword [rax - 0x28], rcx
lea rcx, [rax - 0x38]
movdqu xmmword [rax - 0x18], xmm0
mov dword [rax - 0x38], 0x30
mov dword [rax - 0x20], 0x40
call qword [sym.imp.ntdll.dll_ZwDeleteFile]
add rsp, 0x58
ret
Function at 0x140012b50
Capabilities:
Get file attributes

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rdi
sub rsp, 0xe0
mov rax, qword [0x14003f008]
xor rax, rsp
mov qword [rsp + 0xd0], rax
mov rbx, rdx
mov dword [rsp + 0x20], 1
lea rdx, [rsp + 0x30]
mov r9d, 0x18
lea r8, [rsp + 0x40]
mov rdi, rcx
call qword [sym.imp.ntdll.dll_ZwQueryVolumeInformationFile]
mov ebp, 0x80000000
mov r8d, eax
lea edx, [rax + rbp]
test ebp, edx
jne 0x140012bae
cmp eax, 0x80000005
jne 0x140012bf6
mov r9d, 0x68
mov dword [rsp + 0x20], 0x12
lea r8, [rsp + 0x60]
mov rcx, rdi
lea rdx, [rsp + 0x30]
call qword [sym.imp.ntdll.dll_ZwQueryInformationFile]
mov r8d, eax
add eax, ebp
test ebp, eax
jne 0x140012be1
cmp r8d, 0x80000005
jne 0x140012bf6
mov eax, dword [rsp + 0x48]
xor r8d, r8d
mov dword [rbx], eax
mov rax, qword [rsp + 0xa0]
mov qword [rbx + 8], rax
mov eax, r8d
mov rcx, qword [rsp + 0xd0]
xor rcx, rsp
call fcn.140027ea0
lea r11, [rsp + 0xe0]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x140015310
Capabilities:
Check for peb beingdebugged flag

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rbp
push rdi
push r14
mov rbp, rsp
sub rsp, 0x70
mov rsi, rdx
xor r14d, r14d
mov rdx, rcx
mov qword [rbp + 0x38], r14
lea rcx, [rbp - 0x40]
mov qword [rbp - 0x48], r14
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
lea rax, [rbp - 0x40]
mov dword [rbp - 0x30], 0x30
xorps xmm0, xmm0
mov qword [rbp - 0x20], rax
lea r8, [rbp - 0x30]
mov qword [rbp - 0x28], r14
lea edx, [r14 + 1]
mov dword [rbp - 0x18], 0x40
lea rcx, [rbp + 0x38]
movdqu xmmword [rbp - 0x10], xmm0
call qword [sym.imp.ntdll.dll_ZwOpenSymbolicLinkObject]
test eax, eax
js 0x14001549e
xor edx, edx
lea rcx, [rbp - 0x50]
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
mov edi, r14d
mov dword [rbp + 0x30], r14d
jmp 0x1400153df
cmp qword [rbp - 0x48], r14
je 0x1400153b0
mov rcx, qword gs:[0x60]
xor edx, edx
mov r8, qword [rbp - 0x48]
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
mov eax, dword [rbp + 0x30]
xor edx, edx
mov word [rbp - 0x4e], ax
mov rcx, qword gs:[0x60]
lea edi, [rax + 2]
mov r8d, edi
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov qword [rbp - 0x48], rax
test rax, rax
je 0x1400154b3
mov rcx, qword [rbp + 0x38]
lea r8, [rbp + 0x30]
lea rdx, [rbp - 0x50]
call qword [sym.imp.ntdll.dll_ZwQuerySymbolicLinkObject]
mov ebx, eax
cmp eax, 0xc0000023
je 0x140015391
mov rcx, qword [rbp + 0x38]
call qword [sym.imp.ntdll.dll_ZwClose]
mov rax, qword [rbp - 0x48]
mov qword [rbp + 0x38], r14
test ebx, ebx
js 0x14001547e
movzx ecx, word [rbp - 0x50]
lea r8, [rbp - 0x30]
shr rcx, 1
xorps xmm0, xmm0
mov edx, 1
mov word [rax + rcx*2], r14w
lea rax, [rbp - 0x50]
lea rcx, [rbp + 0x38]
mov qword [rbp - 0x20], rax
mov word [rbp - 0x4e], di
mov dword [rbp - 0x30], 0x30
mov qword [rbp - 0x28], r14
mov dword [rbp - 0x18], 0x40
movdqu xmmword [rbp - 0x10], xmm0
call qword [sym.imp.ntdll.dll_ZwOpenSymbolicLinkObject]
test eax, eax
jns 0x1400153df
mov rax, qword [rbp - 0x48]
mov ebx, r14d
mov qword [rsi], rax
mov rcx, qword [rbp + 0x38]
test rcx, rcx
je 0x14001547a
call qword [sym.imp.ntdll.dll_ZwClose]
mov rax, qword [rbp - 0x48]
mov qword [rbp + 0x38], r14
test ebx, ebx
jns 0x14001549c
test rax, rax
je 0x14001549c
mov rcx, qword gs:[0x60]
xor edx, edx
mov r8, qword [rbp - 0x48]
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
mov eax, ebx
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
mov ebx, 0xc000009a
jmp 0x140015463
Function at 0x1400154c0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
and qword [rdx], 0
mov rdi, r8
mov rsi, rdx
mov ebx, ecx
xor edx, edx
mov rcx, rdi
lea r8d, [rdx + 0x28]
call sub.msvcrt.dll_memset
mov rcx, qword gs:[0x60]
xor edx, edx
mov rcx, qword [rcx + 0x30]
lea r8d, [rdx + 0x6a]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov rbp, rax
test rax, rax
jne 0x140015519
mov eax, 0xc0000017
jmp 0x1400155fa
and qword [rsp + 0x20], 0
lea r8, str.DeviceHarddisk_luPartition_lu
mov r9d, ebx
mov edx, 0x35
mov rcx, rax
call qword [sym.imp.msvcrt.dll_swprintf_s]
mov rdx, rsi
mov rcx, rbp
call fcn.140014efc
mov ebx, eax
test eax, eax
jns 0x140015588
lea rdx, [rsp + 0x48]
mov rcx, rbp
call fcn.140015858
mov ebx, eax
test eax, eax
js 0x1400155bf
mov rcx, qword [rsp + 0x48]
mov rdx, rsi
call fcn.140014efc
mov rcx, qword gs:[0x60]
xor edx, edx
mov r8, qword [rsp + 0x48]
mov ebx, eax
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
test ebx, ebx
js 0x1400155bf
mov rax, qword [rsi]
and dword [rdi], 0
cmp dword [rax], 0
jne 0x1400155a2
mov dword [rdi + 4], 1
mov eax, dword [rax + 8]
mov dword [rdi + 8], eax
jmp 0x1400155bb
cmp dword [rax], 1
jne 0x1400155b6
and dword [rdi + 4], 0
movups xmm0, xmmword [rax + 8]
movdqu xmmword [rdi + 8], xmm0
jmp 0x1400155bb
mov ebx, 0xc000000d
test ebx, ebx
jns 0x1400155e0
mov r8, qword [rsi]
test r8, r8
je 0x1400155e0
mov rcx, qword gs:[0x60]
xor edx, edx
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
and qword [rsi], 0
mov rcx, qword gs:[0x60]
mov r8, rbp
xor edx, edx
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
mov eax, ebx
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret