joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140166a40
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 [0x1402cba10]
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 0x140166adf
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 0x140166b1a
test ebx, ebx
js 0x140166b1d
lfence
mov r8, qword [rsp + 0x68]
mov r9, rbp
mov rdx, rsi
mov rcx, rdi
mov rax, r14
call qword [case.0x14013dbaa.0]
mov ebx, eax
cmp eax, 0x80000006
je 0x140166b1a
test eax, eax
js 0x140166b1d
xor bl, bl
jmp 0x140166a81
mov ebx, r15d
mov rcx, qword [0x1402cba10]
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 0x140166b60
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 [0x1402cba10]
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 0x140166bff
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 0x140166c3a
test ebx, ebx
js 0x140166c3d
lfence
mov r8, qword [rsp + 0x68]
mov r9, rbp
mov rdx, rsi
mov rcx, rdi
mov rax, r14
call qword [case.0x14013dbaa.0]
mov ebx, eax
cmp eax, 0x80000006
je 0x140166c3a
test eax, eax
js 0x140166c3d
xor bl, bl
jmp 0x140166ba1
mov ebx, r15d
mov rcx, qword [0x1402cba10]
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 0x140166c70
Capabilities:
Get file attributes

Disassembly:
mov r8, rdx
mov edx, 0x16
jmp fcn.140162460
Function at 0x14016a260
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 [0x1402cba10]
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 0x14016a30e
xor edx, edx
mov r8, rdi
cmp eax, 0x80000005
jne 0x14016a32c
mov rcx, qword [0x1402cba10]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
mov r8d, dword ds:[rsp + 0x68]
mov edx, 4
mov rcx, qword [0x1402cba10]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov rdi, rax
add esi, 0xffffffff
jne 0x14016a2b0
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 [0x1402cba10]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
jmp 0x14016a311

Function at 0x14016a340
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 0x14016a3a2
mov r10, qword [rdx]
test r10, r10
je 0x14016a3a2
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 0x14016a3aa
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 [0x1402cba10]
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 0x14016a445
xor edx, edx
mov r8, rdi
cmp eax, 0x80000005
jne 0x14016a463
mov rcx, qword [0x1402cba10]
nop
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
mov r8d, dword [rsp + 0x68]
mov edx, 4
mov rcx, qword [0x1402cba10]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov rdi, rax
add esi, 0xffffffff
jne 0x14016a3e0
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 [0x1402cba10]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
jmp 0x14016a448
Function at 0x14016a480
Capabilities:
Set registry value

Disassembly:
sub rsp, 0x48
test rdx, rdx
je 0x14016a4b6
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 0x14016a4be
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 0x14016a4f0
Capabilities:
Delete registry value

Disassembly:
sub rsp, 0x38
test rdx, rdx
je 0x14016a526
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 0x14016a52e
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 0x14016a540
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 [0x1402cba10]
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 0x14016a67f
nop
cmp ebx, 0x80000005
je 0x14016a5d0
cmp ebx, 0xc0000023
jne 0x14016a628
mov rcx, qword [0x1402cba10]
mov r8, rdi
xor edx, edx
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
mov r8d, dword [rsp + 0x30]
mov edx, 4
mov rcx, qword [0x1402cba10]
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 0x14016a681
lfence
mov r8, r15
mov rdx, rdi
mov rcx, rbp
mov rax, r12
call qword [case.0x14013dbaa.0]
test al, al
je 0x14016a681
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 0x14016a5c0
xor ebx, ebx
mov rcx, qword [0x1402cba10]
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 0x14016a6c0
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 [0x1402cba10]
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 0x14016a7ff
nop
cmp ebx, 0x80000005
je 0x14016a750
cmp ebx, 0xc0000023
jne 0x14016a7a8
mov rcx, qword [0x1402cba10]
mov r8, rdi
xor edx, edx
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
mov r8d, dword [rsp + 0x30]
mov edx, 4
mov rcx, qword [0x1402cba10]
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 0x14016a801
lfence
mov r8, r15
mov rdx, rdi
mov rcx, rbp
mov rax, r12
call qword [case.0x14013dbaa.0]
test al, al
je 0x14016a801
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 0x14016a740
xor ebx, ebx
mov rcx, qword [0x1402cba10]
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 0x14016e160
Capabilities:
Get system information on windows

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

Function at 0x14016e740
Capabilities:
Get uefi variable

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

Disassembly:
push rsi
push rdi
push r14
sub rsp, 0x70
mov rax, qword [0x1402c0040]
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 0x14016e83a
mov eax, 0x80000005
lfence
jmp 0x14016e94b
lea rdx, [rsp + 0x58]
lea rcx, [rsp + 0x48]
call qword [sym.imp.ntdll.dll_RtlGUIDFromString]
test eax, eax
jns 0x14016e856
lfence
jmp 0x14016e94b
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 0x14016e889
mov eax, 0xc0000001
jmp 0x14016e94b
mov r8d, dword [rsp + 0x30]
mov edx, 4
mov rcx, qword [0x1402cba10]
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.14020ba80
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 0x14016e924
test r14, r14
je 0x14016e8f7
mov qword [r14], rbx
jmp 0x14016e90c
lfence
mov rcx, qword [0x1402cba10]
mov r8, rbx
xor edx, edx
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
test rsi, rsi
je 0x14016e917
mov eax, dword [rsp + 0x30]
mov dword [rsi], eax
test rdi, rdi
je 0x14016e939
mov eax, dword [rsp + 0x34]
mov dword [rdi], eax
jmp 0x14016e939
lfence
mov rcx, qword [0x1402cba10]
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.1401e5e20
add rsp, 0x70
pop r14
pop rdi
pop rsi
ret

Function at 0x14016ea60
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 [0x1402cba10]
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 0x14016eabd
cmp eax, 0xc0000004
jne 0x14016ead6
mov rcx, qword [0x1402cba10]
mov r8, rdi
xor edx, edx
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
mov r8d, dword [rsp + 0x40]
jmp 0x14016ea88
test ebx, ebx
js 0x14016eadf
mov qword [r14], rdi
jmp 0x14016eaf3
mov rcx, qword [0x1402cba10]
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 0x14016f080
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 0x14016f0e9
sub ecx, 3
je 0x14016f0da
nop dword [rax]
sub ecx, 1
je 0x14016f0cb
cmp ecx, 0xfffb
je 0x14016f0bc
mov eax, 0xc0000003
add rsp, 0x40
pop r15
pop r14
pop rsi
ret
mov eax, dword [0x1402c6d24]
lea rsi, [0x1402c6d24]
jmp 0x14016f0f6
mov eax, dword [0x1402c6d20]
lea rsi, [0x1402c6d20]
jmp 0x14016f0f6
mov eax, dword [0x1402c6d1c]
lea rsi, [0x1402c6d1c]
jmp 0x14016f0f6
mov eax, dword [0x1402c6d18]
lea rsi, [0x1402c6d18]
mov rcx, qword [0x1402cba10]
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 0x14016f1bf
cmp ebx, 8
jae 0x14016f1c4
mov rcx, qword [0x1402cba10]
mov r8, rbp
xor edx, edx
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
mov r8d, dword [rsp + 0x78]
mov edx, 4
mov rcx, qword [0x1402cba10]
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 0x14016f158
nop
test edi, edi
jns 0x14016f1db
lfence
mov rcx, qword [0x1402cba10]
mov r8, rbp
xor edx, edx
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
jmp 0x14016f1f1
lfence
mov eax, dword [rsp + 0x78]
cmp eax, 0x100000
ja 0x14016f1eb
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 0x14016f220
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 [0x1402c6d24]
mov edx, 4
mov rcx, qword [0x1402cba10]
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
mov ecx, 0x6b
call qword [sym.imp.ntdll.dll_NtQuerySystemInformationEx]
xor r13d, r13d
mov esi, eax
mov edi, r13d
cmp eax, 0xc0000004
jne 0x14016f2ff
cmp edi, 8
jae 0x14016f304
mov rcx, qword [0x1402cba10]
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 [0x1402cba10]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov r8d, 4
lea rdx, [rsp + 0x78]
mov rbx, rax
mov ecx, 0x6b
lea rax, [rsp + 0x70]
mov r9, rbx
mov qword [rsp + 0x28], rax
mov eax, dword [rsp + 0x70]
mov dword [rsp + 0x20], eax
call qword [sym.imp.ntdll.dll_NtQuerySystemInformationEx]
inc edi
mov esi, eax
cmp eax, 0xc0000004
je 0x14016f295
nop
test esi, esi
jns 0x14016f325
lfence
mov rcx, qword [0x1402cba10]
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 0x14016f34d
mov dword [0x1402c6d24], 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 0x14016f41b
mov qword [rsp + 0x30], r15
mov r15d, dword [0x1402c000c]
mov ecx, dword [rbx]
test ecx, ecx
je 0x14016f393
nop
sub ecx, 1
je 0x14016f38e
cmp ecx, 2
jne 0x14016f407
inc edi
jmp 0x14016f407
inc r11d
jmp 0x14016f407
movzx eax, word [rbx + 0x1e]
inc ebp
cmp r13w, ax
jae 0x14016f407
mov r10d, r15d
lea rdx, [rbx + 0x20]
and r10d, 4
mov r8d, eax
nop dword [rax]
mov rax, qword [rdx]
test r10d, r10d
je 0x14016f3bf
popcnt rax, rax
jmp 0x14016f3fa
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 0x14016f3b0
mov ecx, dword [rbx + 4]
add rbx, rcx
cmp rbx, r14
jb 0x14016f378
mov r15, qword [rsp + 0x30]
mov rcx, qword [0x1402cba10]
mov r8, r12
xor edx, edx
mov dword [0x1402ce4d0], ebp
mov dword [0x1402ce4d4], r11d
mov dword [0x1402ce4d8], r9d
mov dword [0x1402ce4dc], 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 0x14016f4e0
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 [0x1402c6d20]
mov r14, rdx
movzx ebp, cx
mov r8d, eax
mov rcx, qword [0x1402cba10]
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
mov ecx, 0x6b
lea rax, [rsp + 0x60]
mov r9, rdi
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], r8d
mov r8d, 4
call qword [sym.imp.ntdll.dll_NtQuerySystemInformationEx]
xor esi, esi
mov ebx, eax
cmp eax, 0xc0000004
jne 0x14016f5c7
nop word [rax + rax]
cmp esi, 8
jae 0x14016f5c7
mov rcx, qword [0x1402cba10]
mov r8, rdi
xor edx, edx
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
mov r8d, dword [rsp + 0x60]
mov edx, 4
mov rcx, qword [0x1402cba10]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov r8d, 4
lea rdx, [rsp + 0x68]
mov rdi, rax
mov ecx, 0x6b
lea rax, [rsp + 0x60]
mov r9, rdi
mov qword [rsp + 0x28], rax
mov eax, dword [rsp + 0x60]
mov dword [rsp + 0x20], eax
call qword [sym.imp.ntdll.dll_NtQuerySystemInformationEx]
inc esi
mov ebx, eax
cmp eax, 0xc0000004
je 0x14016f560
test ebx, ebx
jns 0x14016f5d0
lfence
jmp 0x14016f607
mov eax, dword [rsp + 0x60]
cmp eax, 0x100000
ja 0x14016f5e1
mov dword [0x1402c6d20], eax
lfence
cmp bp, word [rdi + 0xa]
jae 0x14016f602
lea rax, [rbp*2]
add rax, rbp
add rax, rax
mov rax, qword [rdi + rax*8 + 0x48]
mov qword [r14], rax
jmp 0x14016f607
mov ebx, 0xc0000001
mov rcx, qword [0x1402cba10]
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