joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140164340
Capabilities:
Get system information on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r14
sub rsp, 0x20
mov r14, rcx
mov ebx, 0x200
mov rcx, qword [0x1402caad0]
mov r8d, ebx
mov edx, 4
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
xor r9d, r9d
mov r8d, ebx
mov rdx, rax
mov ecx, 0x12
mov rdi, rax
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
mov esi, eax
cmp eax, 0xc0000004
jne 0x1401643e8
mov rcx, qword [0x1402caad0]
mov r8, rdi
xor edx, edx
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
add ebx, ebx
cmp ebx, 0x10000000
ja 0x140164408
lfence
mov rcx, qword [0x1402caad0]
mov edx, 4
mov r8d, ebx
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
xor r9d, r9d
mov r8d, ebx
mov rdx, rax
mov ecx, 0x12
mov rdi, rax
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
mov esi, eax
cmp eax, 0xc0000004
je 0x140164392
lfence
test esi, esi
jns 0x14016440f
mov rcx, qword [0x1402caad0]
mov r8, rdi
xor edx, edx
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
jmp 0x140164412
mov eax, 0xc000009a
jmp 0x140164414
mov qword [r14], rdi
mov eax, esi
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x40]
add rsp, 0x20
pop r14
ret

Function at 0x140164440
Capabilities:
Get system information on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r14
sub rsp, 0x20
mov r14, rcx
mov ebx, 0x200
mov rcx, qword [0x1402caad0]
mov r8d, ebx
mov edx, 4
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
xor r9d, r9d
mov r8d, ebx
mov rdx, rax
mov ecx, 0x90
mov rdi, rax
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
mov esi, eax
cmp eax, 0xc0000004
jne 0x1401644e8
mov rcx, qword [0x1402caad0]
mov r8, rdi
xor edx, edx
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
add ebx, ebx
cmp ebx, 0x10000000
ja 0x140164508
lfence
mov rcx, qword [0x1402caad0]
mov edx, 4
mov r8d, ebx
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
xor r9d, r9d
mov r8d, ebx
mov rdx, rax
mov ecx, 0x90
mov rdi, rax
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
mov esi, eax
cmp eax, 0xc0000004
je 0x140164492
lfence
test esi, esi
jns 0x14016450f
mov rcx, qword [0x1402caad0]
mov r8, rdi
xor edx, edx
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
jmp 0x140164512
mov eax, 0xc000009a
jmp 0x140164514
mov qword [r14], rdi
mov eax, esi
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x40]
add rsp, 0x20
pop r14
ret
Function at 0x140165440
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 [0x1402caad0]
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 0x1401654e8
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 0x1401654f8
cmp ebx, 0xc0000004
jne 0x140165532
mov rcx, qword [0x1402caad0]
mov r8, rsi
xor edx, edx
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
mov rcx, qword [0x1402caad0]
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 0x14016548a
cmp ebx, 0x80000006
je 0x1401655ae
test ebx, ebx
js 0x1401655b0
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.0x14013d64a.0]
test al, al
je 0x1401655b0
nop word [rax + rax]
mov eax, dword [rdi]
test eax, eax
je 0x14016559f
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.0x14013d64a.0]
test al, al
jne 0x140165570
jmp 0x1401655b0
mov ebx, dword [rsp + 0xa8]
xor dil, dil
jmp 0x140165490
xor ebx, ebx
mov rcx, qword [0x1402caad0]
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 0x140165600
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 [0x1402caad0]
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 0x14016569f
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 0x1401656da
test ebx, ebx
js 0x1401656dd
lfence
mov r8, qword [rsp + 0x68]
mov r9, rbp
mov rdx, rsi
mov rcx, rdi
mov rax, r14
call qword [case.0x14013d64a.0]
mov ebx, eax
cmp eax, 0x80000006
je 0x1401656da
test eax, eax
js 0x1401656dd
xor bl, bl
jmp 0x140165641
mov ebx, r15d
mov rcx, qword [0x1402caad0]
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 0x140165720
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 [0x1402caad0]
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 0x1401657bf
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 0x1401657fa
test ebx, ebx
js 0x1401657fd
lfence
mov r8, qword [rsp + 0x68]
mov r9, rbp
mov rdx, rsi
mov rcx, rdi
mov rax, r14
call qword [case.0x14013d64a.0]
mov ebx, eax
cmp eax, 0x80000006
je 0x1401657fa
test eax, eax
js 0x1401657fd
xor bl, bl
jmp 0x140165761
mov ebx, r15d
mov rcx, qword [0x1402caad0]
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 0x140165830
Capabilities:
Get file attributes

Disassembly:
mov r8, rdx
mov edx, 0x16
jmp fcn.1401610e0
Function at 0x140168e20
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 [0x1402caad0]
mov edx, 4
mov r8d, 0x100
mov esi, 0x10
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 0x140168ece
xor edx, edx
mov r8, rdi
cmp eax, 0x80000005
jne 0x140168eec
mov rcx, qword [0x1402caad0]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
mov r8d, dword ds:[rsp + 0x68]
mov edx, 4
mov rcx, qword [0x1402caad0]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov rdi, rax
add esi, 0xffffffff
jne 0x140168e70
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 [0x1402caad0]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
jmp 0x140168ed1

Function at 0x140168f00
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 0x140168f62
mov r10, qword [rdx]
test r10, r10
je 0x140168f62
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 0x140168f6a
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 [0x1402caad0]
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 0x140169005
xor edx, edx
mov r8, rdi
cmp eax, 0x80000005
jne 0x140169023
mov rcx, qword [0x1402caad0]
nop
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
mov r8d, dword [rsp + 0x68]
mov edx, 4
mov rcx, qword [0x1402caad0]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov rdi, rax
add esi, 0xffffffff
jne 0x140168fa0
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 [0x1402caad0]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
jmp 0x140169008
Function at 0x140169040
Capabilities:
Set registry value

Disassembly:
sub rsp, 0x48
test rdx, rdx
je 0x140169076
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 0x14016907e
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 0x1401690b0
Capabilities:
Delete registry value

Disassembly:
sub rsp, 0x38
test rdx, rdx
je 0x1401690e6
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 0x1401690ee
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 0x140169100
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 [0x1402caad0]
mov edx, 4
mov r8d, 0x100
mov r15, r9
xor esi, esi
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 0x14016923f
nop
cmp ebx, 0x80000005
je 0x140169190
cmp ebx, 0xc0000023
jne 0x1401691e8
mov rcx, qword [0x1402caad0]
mov r8, rdi
xor edx, edx
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
mov r8d, dword [rsp + 0x30]
mov edx, 4
mov rcx, qword [0x1402caad0]
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 0x140169241
lfence
mov r8, r15
mov rdx, rdi
mov rcx, rbp
mov rax, r12
call qword [case.0x14013d64a.0]
test al, al
je 0x140169241
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 0x140169180
xor ebx, ebx
mov rcx, qword [0x1402caad0]
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 0x140169280
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 [0x1402caad0]
mov edx, 4
mov r8d, 0x100
mov r15, r9
xor esi, esi
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 0x1401693bf
nop
cmp ebx, 0x80000005
je 0x140169310
cmp ebx, 0xc0000023
jne 0x140169368
mov rcx, qword [0x1402caad0]
mov r8, rdi
xor edx, edx
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
mov r8d, dword [rsp + 0x30]
mov edx, 4
mov rcx, qword [0x1402caad0]
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 0x1401693c1
lfence
mov r8, r15
mov rdx, rdi
mov rcx, rbp
mov rax, r12
call qword [case.0x14013d64a.0]
test al, al
je 0x1401693c1
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 0x140169300
xor ebx, ebx
mov rcx, qword [0x1402caad0]
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 0x14016cd00
Capabilities:
Get system information on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x1402bf040]
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 0x14016cd77
mov edx, dword [rsp + 0x30]
xor eax, eax
shr edx, 2
test edx, edx
je 0x14016cd72
lea rcx, [rsp + 0x40]
test dword [rcx], 0x80000
jne 0x14016cd8b
inc eax
add rcx, 4
cmp eax, edx
jb 0x14016cd60
mov eax, 0xc0000225
mov rcx, qword ds:[rsp + 0x58]
xor rcx, rsp
call fcn.1401e4160
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.1401e4160
add rsp, 0x60
pop rbx
ret

Function at 0x14016d2e0
Capabilities:
Get uefi variable

Disassembly:
sub rsp, 0x68
mov rax, qword [0x1402bf040]
xor rax, rsp
mov qword [rsp + 0x58], rax
lea rax, [0x14023a418]
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.1401e4160
add rsp, 0x68
ret
Function at 0x14016d360
Capabilities:
Get uefi variable

Disassembly:
push rsi
push rdi
push r14
sub rsp, 0x70
mov rax, qword [0x1402bf040]
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 0x14016d3da
mov eax, 0x80000005
lfence
jmp 0x14016d4eb
lea rdx, [rsp + 0x58]
lea rcx, [rsp + 0x48]
call qword [sym.imp.ntdll.dll_RtlGUIDFromString]
test eax, eax
jns 0x14016d3f6
lfence
jmp 0x14016d4eb
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 0x14016d429
mov eax, 0xc0000001
jmp 0x14016d4eb
mov r8d, dword [rsp + 0x30]
mov edx, 4
mov rcx, qword [0x1402caad0]
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.14020a280
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 0x14016d4c4
test r14, r14
je 0x14016d497
mov qword [r14], rbx
jmp 0x14016d4ac
lfence
mov rcx, qword [0x1402caad0]
mov r8, rbx
xor edx, edx
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
test rsi, rsi
je 0x14016d4b7
mov eax, dword [rsp + 0x30]
mov dword [rsi], eax
test rdi, rdi
je 0x14016d4d9
mov eax, dword [rsp + 0x34]
mov dword [rdi], eax
jmp 0x14016d4d9
lfence
mov rcx, qword [0x1402caad0]
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.1401e4160
add rsp, 0x70
pop r14
pop rdi
pop rsi
ret

Function at 0x14016d600
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 [0x1402caad0]
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 0x14016d65d
cmp eax, 0xc0000004
jne 0x14016d676
mov rcx, qword [0x1402caad0]
mov r8, rdi
xor edx, edx
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
mov r8d, dword [rsp + 0x40]
jmp 0x14016d628
test ebx, ebx
js 0x14016d67f
mov qword [r14], rdi
jmp 0x14016d693
mov rcx, qword [0x1402caad0]
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 0x14016dc20
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 0x14016dc89
sub ecx, 3
je 0x14016dc7a
nop dword [rax]
sub ecx, 1
je 0x14016dc6b
cmp ecx, 0xfffb
je 0x14016dc5c
mov eax, 0xc0000003
add rsp, 0x40
pop r15
pop r14
pop rsi
ret
mov eax, dword [0x1402c5dc4]
lea rsi, [0x1402c5dc4]
jmp 0x14016dc96
mov eax, dword [0x1402c5dc0]
lea rsi, [0x1402c5dc0]
jmp 0x14016dc96
mov eax, dword [0x1402c5dbc]
lea rsi, [0x1402c5dbc]
jmp 0x14016dc96
mov eax, dword [0x1402c5db8]
lea rsi, [0x1402c5db8]
mov rcx, qword [0x1402caad0]
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
mov ecx, 0x6b
call qword [sym.imp.ntdll.dll_NtQuerySystemInformationEx]
xor ebx, ebx
mov edi, eax
cmp eax, 0xc0000004
jne 0x14016dd5f
cmp ebx, 8
jae 0x14016dd64
mov rcx, qword [0x1402caad0]
mov r8, rbp
xor edx, edx
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
mov r8d, dword [rsp + 0x78]
mov edx, 4
mov rcx, qword [0x1402caad0]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov r8d, 4
lea rdx, [rsp + 0x60]
mov rbp, rax
mov ecx, 0x6b
lea rax, [rsp + 0x78]
mov r9, rbp
mov qword [rsp + 0x28], rax
mov eax, dword [rsp + 0x78]
mov dword [rsp + 0x20], eax
call qword [sym.imp.ntdll.dll_NtQuerySystemInformationEx]
inc ebx
mov edi, eax
cmp eax, 0xc0000004
je 0x14016dcf8
nop
test edi, edi
jns 0x14016dd7b
lfence
mov rcx, qword [0x1402caad0]
mov r8, rbp
xor edx, edx
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
jmp 0x14016dd91
lfence
mov eax, dword [rsp + 0x78]
cmp eax, 0x100000
ja 0x14016dd8b
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