joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140164a60
Capabilities:
Get file attributes

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
mov dword [rsp + 0x10], edx
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x70
movzx r13d, r8b
mov ebx, edx
mov r14, rcx
mov r15d, 0x400
mov rcx, qword [0x1402c5110]
mov r8d, r15d
mov edx, 4
mov r12, r9
mov dil, 1
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov rsi, rax
nop dword [rax]
mov byte [rsp + 0x50], dil
lea rax, [rsp + 0x60]
mov qword [rsp + 0x48], r12
xor r9d, r9d
mov byte [rsp + 0x40], r13b
xor r8d, r8d
mov dword [rsp + 0x38], ebx
xor edx, edx
mov dword [rsp + 0x30], r15d
mov rcx, r14
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x20], rax
call qword [sym.imp.ntdll.dll_NtQueryDirectoryFile]
mov ebx, eax
cmp eax, 0x103
jne 0x140164b08
xor r8d, r8d
xor edx, edx
mov rcx, r14
call qword [sym.imp.ntdll.dll_NtWaitForSingleObject]
test eax, eax
mov ebx, eax
cmovns ebx, dword [rsp + 0x60]
cmp ebx, 0x80000005
je 0x140164b18
cmp ebx, 0xc0000004
jne 0x140164b52
mov rcx, qword [0x1402c5110]
mov r8, rsi
xor edx, edx
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
mov rcx, qword [0x1402c5110]
lea eax, [r15 + r15]
mov r8d, eax
mov edx, 4
mov r15d, eax
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov ebx, dword [rsp + 0xa8]
jmp 0x140164aaa
cmp ebx, 0x80000006
je 0x140164bce
test ebx, ebx
js 0x140164bd0
lfence
mov r8, qword [rsp + 0xc8]
mov rdx, rsi
mov rax, qword [rsp + 0xc0]
mov rcx, r14
xor ebp, ebp
mov rdi, rsi
call qword [case.0x14013b5a0.0]
test al, al
je 0x140164bd0
nop word [rax + rax]
mov eax, dword [rdi]
test eax, eax
je 0x140164bbf
mov r8, qword [rsp + 0xc8]
add ebp, eax
mov rax, qword [rsp + 0xc0]
mov rcx, r14
mov edi, ebp
add rdi, rsi
mov rdx, rdi
call qword [case.0x14013b5a0.0]
test al, al
jne 0x140164b90
jmp 0x140164bd0
mov ebx, dword [rsp + 0xa8]
xor dil, dil
jmp 0x140164ab0
xor ebx, ebx
mov rcx, qword [0x1402c5110]
mov r8, rsi
xor edx, edx
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
lea r11, [rsp + 0x70]
mov eax, ebx
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x140164c20
Capabilities:
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, 0x70
mov rbp, r8
mov r14, rdx
mov rdi, rcx
mov edx, 4
mov rcx, qword [0x1402c5110]
mov r8d, 0x2000
mov bl, 1
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov rsi, rax
xor r15d, r15d
mov byte [rsp + 0x50], bl
lea rax, [rsp + 0x60]
mov qword [rsp + 0x48], r15
xor r9d, r9d
mov byte [rsp + 0x40], r15b
xor r8d, r8d
mov dword [rsp + 0x38], 0x21
xor edx, edx
mov dword [rsp + 0x30], 0x2000
mov rcx, rdi
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x20], rax
call qword [sym.imp.ntdll.dll_NtQueryDirectoryFile]
mov ebx, eax
cmp eax, 0x103
jne 0x140164cbf
xor r8d, r8d
xor edx, edx
mov rcx, rdi
call qword [sym.imp.ntdll.dll_NtWaitForSingleObject]
test eax, eax
mov ebx, eax
cmovns ebx, dword [rsp + 0x60]
nop
cmp ebx, 0x80000006
je 0x140164cfa
test ebx, ebx
js 0x140164cfd
lfence
mov r8, qword [rsp + 0x68]
mov r9, rbp
mov rdx, rsi
mov rcx, rdi
mov rax, r14
call qword [case.0x14013b5a0.0]
mov ebx, eax
cmp eax, 0x80000006
je 0x140164cfa
test eax, eax
js 0x140164cfd
xor bl, bl
jmp 0x140164c61
mov ebx, r15d
mov rcx, qword [0x1402c5110]
mov r8, rsi
xor edx, edx
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
lea r11, [rsp + 0x70]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r14
pop rdi
ret

Function at 0x140164d40
Capabilities:
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, 0x70
mov rbp, r8
mov r14, rdx
mov rdi, rcx
mov edx, 4
mov rcx, qword [0x1402c5110]
mov r8d, 0x2400
mov bl, 1
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov rsi, rax
xor r15d, r15d
mov byte [rsp + 0x50], bl
lea rax, [rsp + 0x60]
mov qword [rsp + 0x48], r15
xor r9d, r9d
mov byte [rsp + 0x40], r15b
xor r8d, r8d
mov dword [rsp + 0x38], 0x1d
xor edx, edx
mov dword [rsp + 0x30], 0x2400
mov rcx, rdi
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x20], rax
call qword [sym.imp.ntdll.dll_NtQueryDirectoryFile]
mov ebx, eax
cmp eax, 0x103
jne 0x140164ddf
xor r8d, r8d
xor edx, edx
mov rcx, rdi
call qword [sym.imp.ntdll.dll_NtWaitForSingleObject]
test eax, eax
mov ebx, eax
cmovns ebx, dword [rsp + 0x60]
nop
cmp ebx, 0x80000006
je 0x140164e1a
test ebx, ebx
js 0x140164e1d
lfence
mov r8, qword [rsp + 0x68]
mov r9, rbp
mov rdx, rsi
mov rcx, rdi
mov rax, r14
call qword [case.0x14013b5a0.0]
mov ebx, eax
cmp eax, 0x80000006
je 0x140164e1a
test eax, eax
js 0x140164e1d
xor bl, bl
jmp 0x140164d81
mov ebx, r15d
mov rcx, qword [0x1402c5110]
mov r8, rsi
xor edx, edx
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
lea r11, [rsp + 0x70]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r14
pop rdi
ret

Function at 0x140164e50
Capabilities:
Get file attributes

Disassembly:
mov r8, rdx
mov edx, 0x16
jmp fcn.1401607c0
Function at 0x140168020
Capabilities:
Query or enumerate registry key

Disassembly:
mov qword ss:[rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x30
mov r15, r8
mov dword [rsp + 0x68], 0x100
mov ebp, edx
mov r14, rcx
mov rcx, qword [0x1402c5110]
mov esi, 0x10
mov r8d, 0x100
lea edx, [rsi - 0xc]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov rdi, rax
nop dword [rax]
mov r9d, dword [rsp + 0x68]
lea rax, [rsp + 0x68]
mov r8, rdi
mov qword [rsp + 0x20], rax
mov edx, ebp
mov rcx, r14
call qword [sym.imp.ntdll.dll_NtQueryKey]
mov ebx, eax
test eax, eax
jns 0x1401680ce
xor edx, edx
mov r8, rdi
cmp eax, 0x80000005
jne 0x1401680ec
mov rcx, qword [0x1402c5110]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
mov r8d, dword ds:[rsp + 0x68]
mov edx, 4
mov rcx, qword [0x1402c5110]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov rdi, rax
add esi, 0xffffffff
jne 0x140168070
mov qword [r15], rdi
mov rbp, qword [rsp + 0x58]
mov eax, ebx
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x60]
add rsp, 0x30
pop r15
pop r14
pop rdi
ret
lfence
mov rcx, qword [0x1402c5110]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
jmp 0x1401680d1

Function at 0x140168100
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword ss:[rsp + 0x20], rbp
push rsi
push r14
push r15
sub rsp, 0x40
mov r15, r9
mov ebp, r8d
mov r14, rcx
mov esi, 0x10
test rdx, rdx
je 0x140168162
mov r10, qword [rdx]
test r10, r10
je 0x140168162
mov word [rsp + 0x30], r10w
lea eax, [r10 + 2]
mov word [rsp + 0x32], ax
mov rax, qword [rdx + 8]
mov qword [rsp + 0x38], rax
cmp r10, 0xfffe
jbe 0x14016816a
mov eax, 0xc0000106
mov rbp, qword [rsp + 0x78]
add rsp, 0x40
pop r15
pop r14
pop rsi
ret
xorps xmm0, xmm0
movups xmmword [rsp + 0x30], xmm0
mov rcx, qword [0x1402c5110]
mov edx, 4
mov qword [rsp + 0x60], rbx
mov r8d, 0x100
mov qword [rsp + 0x70], rdi
mov dword [rsp + 0x68], 0x100
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov rdi, rax
nop word [rax + rax]
mov ecx, dword [rsp + 0x68]
lea rax, [rsp + 0x68]
mov qword [rsp + 0x28], rax
lea rdx, [rsp + 0x30]
mov dword [rsp + 0x20], ecx
mov r9, rdi
mov rcx, r14
mov r8d, ebp
call qword [sym.imp.ntdll.dll_NtQueryValueKey]
mov ebx, eax
test eax, eax
jns 0x140168205
xor edx, edx
mov r8, rdi
cmp eax, 0x80000005
jne 0x140168223
mov rcx, qword [0x1402c5110]
nop
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
mov r8d, dword [rsp + 0x68]
mov edx, 4
mov rcx, qword [0x1402c5110]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov rdi, rax
add esi, 0xffffffff
jne 0x1401681a0
mov qword [r15], rdi
mov rdi, qword [rsp + 0x70]
mov eax, ebx
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x78]
add rsp, 0x40
pop r15
pop r14
pop rsi
ret
lfence
mov rcx, qword [0x1402c5110]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
jmp 0x140168208
Function at 0x140168240
Capabilities:
Set registry value

Disassembly:
sub rsp, 0x48
test rdx, rdx
je 0x140168276
movzx eax, word [rdx]
mov word [rsp + 0x30], ax
add ax, 2
cmp qword [rdx], 0xfffe
mov word [rsp + 0x32], ax
mov rax, qword [rdx + 8]
mov qword [rsp + 0x38], rax
jbe 0x14016827e
mov eax, 0xc0000106
add rsp, 0x48
ret
xorps xmm0, xmm0
movups xmmword [rsp + 0x30], xmm0
mov eax, dword [rsp + 0x70]
lea rdx, [rsp + 0x30]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], r9
mov r9d, r8d
xor r8d, r8d
call qword [sym.imp.ntdll.dll_NtSetValueKey]
add rsp, 0x48
ret

Function at 0x1401682b0
Capabilities:
Delete registry value

Disassembly:
sub rsp, 0x38
test rdx, rdx
je 0x1401682e6
movzx eax, word [rdx]
mov word [rsp + 0x20], ax
add ax, 2
cmp qword [rdx], 0xfffe
mov word [rsp + 0x22], ax
mov rax, qword [rdx + 8]
mov qword [rsp + 0x28], rax
jbe 0x1401682ee
mov eax, 0xc0000106
add rsp, 0x38
ret
xorps xmm0, xmm0
movups xmmword [rsp + 0x20], xmm0
lea rdx, [rsp + 0x20]
call qword [sym.imp.ntdll.dll_NtDeleteValueKey]
add rsp, 0x38
ret

Function at 0x140168300
Capabilities:
Query or enumerate registry key

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r12
push r14
push r15
sub rsp, 0x40
mov r12, r8
mov dword [rsp + 0x30], 0x100
mov r14d, edx
mov rbp, rcx
mov rcx, qword [0x1402c5110]
xor esi, esi
mov r8d, 0x100
mov r15, r9
lea edx, [rsi + 4]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov edx, dword [rsp + 0x30]
mov r8d, r14d
mov rdi, rax
mov rcx, rbp
lea rax, [rsp + 0x30]
mov r9, rdi
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], edx
xor edx, edx
call qword [sym.imp.ntdll.dll_NtEnumerateKey]
mov ebx, eax
cmp eax, 0x8000001a
je 0x14016843f
nop dword [rax]
cmp ebx, 0x80000005
je 0x140168390
cmp ebx, 0xc0000023
jne 0x1401683e8
mov rcx, qword [0x1402c5110]
mov r8, rdi
xor edx, edx
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
mov r8d, dword [rsp + 0x30]
mov edx, 4
mov rcx, qword [0x1402c5110]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov r8d, r14d
mov edx, esi
mov rdi, rax
mov rcx, rbp
lea rax, [rsp + 0x30]
mov r9, rdi
mov qword [rsp + 0x28], rax
mov eax, dword [rsp + 0x30]
mov dword [rsp + 0x20], eax
call qword [sym.imp.ntdll.dll_NtEnumerateKey]
mov ebx, eax
test ebx, ebx
js 0x140168441
lfence
mov r8, r15
mov rdx, rdi
mov rcx, rbp
mov rax, r12
call qword [case.0x14013b5a0.0]
test al, al
je 0x140168441
lfence
lea rax, [rsp + 0x30]
inc esi
mov qword [rsp + 0x28], rax
mov r9, rdi
mov eax, dword [rsp + 0x30]
mov r8d, r14d
mov edx, esi
mov dword [rsp + 0x20], eax
mov rcx, rbp
call qword [sym.imp.ntdll.dll_NtEnumerateKey]
mov ebx, eax
cmp eax, 0x8000001a
jne 0x140168380
xor ebx, ebx
mov rcx, qword [0x1402c5110]
mov r8, rdi
xor edx, edx
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
mov rbp, qword [rsp + 0x68]
mov eax, ebx
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x70]
mov rdi, qword [rsp + 0x78]
add rsp, 0x40
pop r15
pop r14
pop r12
ret
Function at 0x140168480
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r12
push r14
push r15
sub rsp, 0x40
mov r12, r8
mov dword [rsp + 0x30], 0x100
mov r14d, edx
mov rbp, rcx
mov rcx, qword [0x1402c5110]
xor esi, esi
mov r8d, 0x100
mov r15, r9
lea edx, [rsi + 4]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov edx, dword [rsp + 0x30]
mov r8d, r14d
mov rdi, rax
mov rcx, rbp
lea rax, [rsp + 0x30]
mov r9, rdi
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], edx
xor edx, edx
call qword [sym.imp.ntdll.dll_NtEnumerateValueKey]
mov ebx, eax
cmp eax, 0x8000001a
je 0x1401685bf
nop dword [rax]
cmp ebx, 0x80000005
je 0x140168510
cmp ebx, 0xc0000023
jne 0x140168568
mov rcx, qword [0x1402c5110]
mov r8, rdi
xor edx, edx
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
mov r8d, dword [rsp + 0x30]
mov edx, 4
mov rcx, qword [0x1402c5110]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov r8d, r14d
mov edx, esi
mov rdi, rax
mov rcx, rbp
lea rax, [rsp + 0x30]
mov r9, rdi
mov qword [rsp + 0x28], rax
mov eax, dword [rsp + 0x30]
mov dword [rsp + 0x20], eax
call qword [sym.imp.ntdll.dll_NtEnumerateValueKey]
mov ebx, eax
test ebx, ebx
js 0x1401685c1
lfence
mov r8, r15
mov rdx, rdi
mov rcx, rbp
mov rax, r12
call qword [case.0x14013b5a0.0]
test al, al
je 0x1401685c1
lfence
lea rax, [rsp + 0x30]
inc esi
mov qword [rsp + 0x28], rax
mov r9, rdi
mov eax, dword [rsp + 0x30]
mov r8d, r14d
mov edx, esi
mov dword [rsp + 0x20], eax
mov rcx, rbp
call qword [sym.imp.ntdll.dll_NtEnumerateValueKey]
mov ebx, eax
cmp eax, 0x8000001a
jne 0x140168500
xor ebx, ebx
mov rcx, qword [0x1402c5110]
mov r8, rdi
xor edx, edx
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
mov rbp, qword [rsp + 0x68]
mov eax, ebx
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x70]
mov rdi, qword [rsp + 0x78]
add rsp, 0x40
pop r15
pop r14
pop r12
ret
Function at 0x14016be20
Capabilities:
Get system information on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x1402ba040]
xor rax, rsp
mov qword [rsp + 0x58], rax
lea rax, [rsp + 0x30]
mov qword [rsp + 0x38], rcx
mov rbx, rdx
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x40]
mov dword [rsp + 0x20], 0x18
mov r8d, 8
lea rdx, [rsp + 0x38]
mov ecx, 0xe6
call qword [sym.imp.ntdll.dll_NtQuerySystemInformationEx]
test eax, eax
js 0x14016be97
mov edx, dword [rsp + 0x30]
xor eax, eax
shr edx, 2
test edx, edx
je 0x14016be92
lea rcx, [rsp + 0x40]
test dword [rcx], 0x80000
jne 0x14016beab
inc eax
add rcx, 4
cmp eax, edx
jb 0x14016be80
mov eax, 0xc0000225
mov rcx, qword ds:[rsp + 0x58]
xor rcx, rsp
call fcn.1401e0100
add rsp, 0x60
pop rbx
ret
movzx eax, word ds:[rsp + rax*4 + 0x40]
mov word [rbx], ax
xor eax, eax
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1401e0100
add rsp, 0x60
pop rbx
ret

Function at 0x14016c3c0
Capabilities:
Get uefi variable

Disassembly:
sub rsp, 0x68
mov rax, qword [0x1402ba040]
xor rax, rsp
mov qword [rsp + 0x58], rax
lea rax, [0x14023a5ac]
mov dword [rsp + 0x38], 0x40002
mov qword [rsp + 0x40], rax
lea r9, [rsp + 0x30]
xor eax, eax
lea rdx, [rsp + 0x48]
xorps xmm0, xmm0
mov dword [rsp + 0x30], eax
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rcx, [rsp + 0x38]
movups xmmword [rsp + 0x48], xmm0
call qword [sym.imp.ntdll.dll_NtQuerySystemEnvironmentValueEx]
cmp eax, 0xc0000100
sete al
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1401e0100
add rsp, 0x68
ret
Function at 0x14016c440
Capabilities:
Get uefi variable

Disassembly:
push rsi
push rdi
push r14
sub rsp, 0x70
mov rax, qword [0x1402ba040]
xor rax, rsp
mov qword [rsp + 0x68], rax
mov rdi, qword [rsp + 0xb0]
xor eax, eax
mov dword [rsp + 0x30], eax
mov rsi, r9
mov dword [rsp + 0x34], eax
mov r14, r8
movzx eax, word [rcx]
mov word [rsp + 0x38], ax
add ax, 2
mov word [rsp + 0x3a], ax
mov rax, qword [rcx + 8]
mov qword [rsp + 0x40], rax
movzx eax, word [rdx]
mov word [rsp + 0x48], ax
add ax, 2
cmp qword [rdx], 0xfffe
mov word [rsp + 0x4a], ax
mov rax, qword [rdx + 8]
mov qword [rsp + 0x50], rax
jbe 0x14016c4ba
mov eax, 0x80000005
lfence
jmp 0x14016c5cb
lea rdx, [rsp + 0x58]
lea rcx, [rsp + 0x48]
call qword [sym.imp.ntdll.dll_RtlGUIDFromString]
test eax, eax
jns 0x14016c4d6
lfence
jmp 0x14016c5cb
lea rax, [rsp + 0x34]
xor r8d, r8d
lea r9, [rsp + 0x30]
mov qword [rsp + 0x20], rax
lea rdx, [rsp + 0x58]
lea rcx, [rsp + 0x38]
call qword [sym.imp.ntdll.dll_NtQuerySystemEnvironmentValueEx]
cmp eax, 0xc0000023
je 0x14016c509
mov eax, 0xc0000001
jmp 0x14016c5cb
mov r8d, dword [rsp + 0x30]
mov edx, 4
mov rcx, qword [0x1402c5110]
mov qword [rsp + 0x90], rbx
mov qword [rsp + 0x98], rbp
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov r8d, dword ds:[rsp + 0x30]
xor edx, edx
mov rcx, rax
mov rbx, rax
call fcn.140207110
lea rax, [rsp + 0x34]
mov r8, rbx
lea r9, [rsp + 0x30]
mov qword [rsp + 0x20], rax
lea rdx, [rsp + 0x58]
lea rcx, [rsp + 0x38]
call qword [sym.imp.ntdll.dll_NtQuerySystemEnvironmentValueEx]
mov ebp, eax
test eax, eax
js 0x14016c5a4
test r14, r14
je 0x14016c577
mov qword [r14], rbx
jmp 0x14016c58c
lfence
mov rcx, qword [0x1402c5110]
mov r8, rbx
xor edx, edx
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
test rsi, rsi
je 0x14016c597
mov eax, dword [rsp + 0x30]
mov dword [rsi], eax
test rdi, rdi
je 0x14016c5b9
mov eax, dword [rsp + 0x34]
mov dword [rdi], eax
jmp 0x14016c5b9
lfence
mov rcx, qword [0x1402c5110]
mov r8, rbx
xor edx, edx
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
mov rbx, qword [rsp + 0x90]
mov eax, ebp
mov rbp, qword [rsp + 0x98]
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.1401e0100
add rsp, 0x70
pop r14
pop rdi
pop rsi
ret

Function at 0x14016c6e0
Capabilities:
Get uefi variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x20
mov r14, rdx
mov dword [rsp + 0x40], 0x1000
mov esi, ecx
mov r8d, 0x1000
mov rcx, qword [0x1402c5110]
mov edx, 4
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
lea r8, [rsp + 0x40]
mov ecx, esi
mov rdx, rax
mov rdi, rax
call qword [sym.imp.ntdll.dll_NtEnumerateSystemEnvironmentValuesEx]
mov ebx, eax
cmp eax, 0xc0000023
je 0x14016c73d
cmp eax, 0xc0000004
jne 0x14016c756
mov rcx, qword [0x1402c5110]
mov r8, rdi
xor edx, edx
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
mov r8d, dword [rsp + 0x40]
jmp 0x14016c708
test ebx, ebx
js 0x14016c75f
mov qword [r14], rdi
jmp 0x14016c773
mov rcx, qword [0x1402c5110]
mov r8, rdi
xor edx, edx
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
mov eax, ebx
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
Function at 0x14016cb80
Capabilities:
Get system information on windows

Disassembly:
mov dword [rsp + 8], ecx
push rsi
push r14
push r15
sub rsp, 0x40
mov r14, r8
mov r15, rdx
test ecx, ecx
je 0x14016cbe9
sub ecx, 3
je 0x14016cbda
nop dword [rax]
sub ecx, 1
je 0x14016cbcb
cmp ecx, 0xfffb
je 0x14016cbbc
mov eax, 0xc0000003
add rsp, 0x40
pop r15
pop r14
pop rsi
ret
mov eax, dword [0x1402c0c84]
lea rsi, [0x1402c0c84]
jmp 0x14016cbf6
mov eax, dword [0x1402c0c80]
lea rsi, [0x1402c0c80]
jmp 0x14016cbf6
mov eax, dword [0x1402c0c7c]
lea rsi, [0x1402c0c7c]
jmp 0x14016cbf6
mov eax, dword [0x1402c0c78]
lea rsi, [0x1402c0c78]
mov rcx, qword [0x1402c5110]
mov edx, 4
mov qword [rsp + 0x68], rbx
mov r8d, eax
mov qword [rsp + 0x38], rbp
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x78], r8d
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov ecx, dword [rsp + 0x78]
lea rdx, [rsp + 0x60]
mov rbp, rax
mov r8d, 4
lea rax, [rsp + 0x78]
mov r9, rbp
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], ecx
lea ecx, [r8 + 0x67]
call qword [sym.imp.ntdll.dll_NtQuerySystemInformationEx]
xor ebx, ebx
mov edi, eax
cmp eax, 0xc0000004
jne 0x14016ccbe
cmp ebx, 8
jae 0x14016ccc4
mov rcx, qword [0x1402c5110]
mov r8, rbp
xor edx, edx
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
mov r8d, dword ds:[rsp + 0x78]
mov edx, 4
mov rcx, qword [0x1402c5110]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov r8d, 4
lea rdx, [rsp + 0x60]
mov rbp, rax
lea rax, [rsp + 0x78]
mov qword [rsp + 0x28], rax
mov r9, rbp
mov eax, dword [rsp + 0x78]
lea ecx, [r8 + 0x67]
mov dword [rsp + 0x20], eax
call qword [sym.imp.ntdll.dll_NtQuerySystemInformationEx]
inc ebx
mov edi, eax
cmp eax, 0xc0000004
je 0x14016cc57
nop
test edi, edi
jns 0x14016ccdb
lfence
mov rcx, qword [0x1402c5110]
mov r8, rbp
xor edx, edx
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
jmp 0x14016ccf1
lfence
mov eax, dword [rsp + 0x78]
cmp eax, 0x100000
ja 0x14016cceb
mov dword [rsi], eax
mov qword [r15], rbp
mov dword [r14], eax
mov rbp, qword [rsp + 0x38]
mov eax, edi
mov rdi, qword [rsp + 0x30]
mov rbx, qword [rsp + 0x68]
add rsp, 0x40
pop r15
pop r14
pop rsi
ret
Function at 0x14016cd20
Capabilities:
Get system information on windows

Disassembly:
mov qword [rsp + 8], rcx
push rbx
push rsi
push rdi
push r13
sub rsp, 0x48
mov eax, dword [0x1402c0c84]
mov edx, 4
mov rcx, qword [0x1402c5110]
mov r8d, eax
mov dword [rsp + 0x78], 0xffff
mov dword [rsp + 0x70], eax
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov ecx, dword ds:[rsp + 0x70]
lea rdx, [rsp + 0x78]
mov rbx, rax
mov r8d, 4
lea rax, [rsp + 0x70]
mov r9, rbx
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], ecx
lea ecx, [r8 + 0x67]
call qword [sym.imp.ntdll.dll_NtQuerySystemInformationEx]
xor r13d, r13d
mov esi, eax
mov edi, r13d
cmp eax, 0xc0000004
jne 0x14016cdfe
cmp edi, 8
jae 0x14016ce04
mov rcx, qword [0x1402c5110]
mov r8, rbx
xor edx, edx
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
mov r8d, dword ds:[rsp + 0x70]
mov edx, 4
mov rcx, qword [0x1402c5110]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov r8d, 4
lea rdx, [rsp + 0x78]
mov rbx, rax
lea rax, [rsp + 0x70]
mov qword [rsp + 0x28], rax
mov r9, rbx
mov eax, dword [rsp + 0x70]
lea ecx, [r8 + 0x67]
mov dword [rsp + 0x20], eax
call qword [sym.imp.ntdll.dll_NtQuerySystemInformationEx]
inc edi
mov esi, eax
cmp eax, 0xc0000004
je 0x14016cd95
nop
test esi, esi
jns 0x14016ce25
lfence
mov rcx, qword [0x1402c5110]
mov r8, rbx
xor edx, edx
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
mov eax, esi
add rsp, 0x48
pop r13
pop rdi
pop rsi
pop rbx
ret
mov eax, dword ds:[rsp + 0x70]
mov qword [rsp + 0x80], rbp
mov qword [rsp + 0x40], r12
mov qword [rsp + 0x38], r14
cmp eax, 0x100000
ja 0x14016ce4d
mov dword [0x1402c0c84], eax
lfence
lea r14, [rbx + rax]
mov ebp, r13d
mov r11d, r13d
mov r9d, r13d
mov edi, r13d
mov r12, rbx
cmp rbx, r14
jae 0x14016cf1f
mov qword [rsp + 0x30], r15
mov r15d, dword [0x1402ba004]
mov ecx, dword [rbx]
test ecx, ecx
je 0x14016ce97
nop
sub ecx, 1
je 0x14016ce92
cmp ecx, 2
jne 0x14016cf0b
inc edi
jmp 0x14016cf0b
inc r11d
jmp 0x14016cf0b
movzx eax, word ds:[rbx + 0x1e]
inc ebp
cmp r13w, ax
jae 0x14016cf0b
mov r10d, r15d
lea rdx, [rbx + 0x20]
and r10d, 4
mov r8d, eax
mov rax, qword [rdx]
test r10d, r10d
je 0x14016cec3
popcnt rax, rax
jmp 0x14016cefe
mov rcx, rax
shr rcx, 1
and ecx, 0x55555555
sub rax, rcx
mov rcx, rax
and eax, 0x33333333
shr rcx, 2
and ecx, 0x33333333
add rcx, rax
mov rax, rcx
shr rax, 4
add eax, ecx
and eax, 0xf0f0f0f
imul eax, eax, 0x1010101
shr eax, 0x18
add r9d, eax
add rdx, 0x10
sub r8, 1
jne 0x14016ceb4
mov ecx, dword [rbx + 4]
add rbx, rcx
cmp rbx, r14
jb 0x14016ce78
mov r15, qword [rsp + 0x30]
mov rcx, qword [0x1402c5110]
mov r8, r12
xor edx, edx
mov dword [0x1402c7b50], ebp
mov dword [0x1402c7b54], r11d
mov dword [0x1402c7b58], r9d
mov dword [0x1402c7b5c], edi
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
mov r14, qword [rsp + 0x38]
mov eax, esi
mov r12, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x80]
add rsp, 0x48
pop r13
pop rdi
pop rsi
pop rbx
ret
Function at 0x14016cfe0
Capabilities:
Get system information on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r14
sub rsp, 0x30
mov eax, dword [0x1402c0c80]
mov r14, rdx
movzx ebp, cx
mov r8d, eax
mov rcx, qword [0x1402c5110]
mov edx, 4
mov dword [rsp + 0x68], 4
mov dword [rsp + 0x60], eax
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov r8d, dword [rsp + 0x60]
lea rdx, [rsp + 0x68]
mov rdi, rax
lea rax, [rsp + 0x60]
mov qword [rsp + 0x28], rax
mov r9, rdi
mov dword [rsp + 0x20], r8d
mov r8d, 4
lea ecx, [r8 + 0x67]
call qword [sym.imp.ntdll.dll_NtQuerySystemInformationEx]
xor esi, esi
mov ebx, eax
cmp eax, 0xc0000004
jne 0x14016d0c7
nop dword [rax]
cmp esi, 8
jae 0x14016d0c7
mov rcx, qword [0x1402c5110]
mov r8, rdi
xor edx, edx
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
mov r8d, dword [rsp + 0x60]
mov edx, 4
mov rcx, qword [0x1402c5110]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov r8d, 4
lea rdx, [rsp + 0x68]
mov rdi, rax
lea rax, [rsp + 0x60]
mov qword [rsp + 0x28], rax
mov r9, rdi
mov eax, dword [rsp + 0x60]
lea ecx, [r8 + 0x67]
mov dword [rsp + 0x20], eax
call qword [sym.imp.ntdll.dll_NtQuerySystemInformationEx]
inc esi
mov ebx, eax
cmp eax, 0xc0000004
je 0x14016d060
test ebx, ebx
jns 0x14016d0d0
lfence
jmp 0x14016d107
mov eax, dword [rsp + 0x60]
cmp eax, 0x100000
ja 0x14016d0e1
mov dword [0x1402c0c80], eax
lfence
cmp bp, word [rdi + 0xa]
jae 0x14016d102
lea rax, [rbp*2]
add rax, rbp
add rax, rax
mov rax, qword [rdi + rax*8 + 0x48]
mov qword [r14], rax
jmp 0x14016d107
mov ebx, 0xc0000001
mov rcx, qword [0x1402c5110]
mov r8, rdi
xor edx, edx
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
mov rbp, qword [rsp + 0x58]
mov eax, ebx
mov rbx, qword [rsp + 0x50]
add rsp, 0x30
pop r14
pop rdi
pop rsi
ret