joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000e5f4
Capabilities:
Query or enumerate registry key

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0xf0
mov rax, qword [0x14004f068]
xor rax, rsp
mov qword [rsp + 0xe0], rax
xor esi, esi
mov r9d, 0xa0
mov dword [rsp + 0x30], r9d
mov rdi, rdx
mov qword [rdx], rsi
test cl, 1
je 0x14000e637
mov ebx, 0xc0000002
jmp 0x14000e694
lea rax, [rsp + 0x30]
mov edx, 3
lea r8, [rsp + 0x40]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ntdll.dll_ZwQueryKey]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
js 0x14000e684
cmp dword [rsp + 0x40], 0x4c
jb 0x14000e680
mov r9, rdi
mov word [rsp + 0x7e], si
mov r8d, 0x2001f
lea rdx, [rsp + 0x44]
xor ecx, ecx
call fcn.140014cc0
mov ebx, eax
test ebx, ebx
jns 0x14000e694
mov rcx, qword [rdi]
test rcx, rcx
je 0x14000e694
call fcn.140014828
mov qword [rdi], rsi
mov eax, ebx
mov rcx, qword [rsp + 0xe0]
xor rcx, rsp
call fcn.140030000
lea r11, [rsp + 0xf0]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret

Function at 0x140010138
Capabilities:
Get system information on windows

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x70
mov rax, qword [0x14004f068]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov rdi, r8
sub edx, 1
je 0x1400101ce
cmp edx, 1
je 0x140010168
mov ebx, 0xc000000d
jmp 0x1400101f9
and qword [rsp + 0x38], 0
lea r8, [rsp + 0x38]
lea rdx, [0x14003c360]
call fcn.14000fb68
mov ebx, eax
test eax, eax
js 0x1400101bd
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x30]
lea r9, [rsp + 0x40]
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov dword [rsp + 0x30], 0x10
mov edx, 0x23000003
call fcn.140010554
mov ebx, eax
test eax, eax
js 0x1400101bd
movups xmm0, xmmword [rsp + 0x40]
movdqu xmmword [rdi], xmm0
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x1400101f9
call fcn.14000ff1c
jmp 0x1400101f9
xor r9d, r9d
lea rdx, [rsp + 0x40]
lea r8d, [r9 + 0x20]
lea ecx, [r9 + 0x5a]
call qword [sym.imp.ntdll.dll_ZwQuerySystemInformation]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
js 0x1400101f9
movups xmm0, xmmword [rsp + 0x40]
movdqu xmmword [rdi], xmm0
mov eax, ebx
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.140030000
mov rbx, qword [rsp + 0x88]
add rsp, 0x70
pop rdi
ret
Function at 0x140013e68
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 r12, rdx
mov esi, r13d
mov qword [rax + 0x18], r13
mov edi, r13d
mov r15, rcx
call fcn.14001408c
cmp eax, 1
je 0x140013ec0
add eax, 0xfffffffe
cmp eax, 1
ja 0x140013eb6
lea r14, [0x14003ff02]
jmp 0x140013ec7
mov ebx, 0xc00000bb
jmp 0x140014063
lea r14, [0x140040b7a]
lea rcx, [rsp + 0x60]
call fcn.140013c04
mov ebx, eax
test eax, eax
js 0x140013ff2
test r15, r15
je 0x140013f5d
mov rcx, qword [rsp + 0x60]
or rax, 0xffffffffffffffff
inc rax
cmp word [rcx + rax*2], r13w
jne 0x140013ee9
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]
nop dword [rax + rax]
mov rdi, rax
test rax, rax
jne 0x140013f2d
mov ebx, 0xc000009a
jmp 0x140013ff2
mov r8, qword [rsp + 0x60]
mov rdx, rbp
mov rcx, rdi
call qword [sym.imp.msvcrt.dll_wcscpy_s]
nop dword [rax + rax]
lea r8, [0x14003b4d0]
mov rdx, rbp
mov rcx, rdi
call qword [sym.imp.msvcrt.dll_wcscat_s]
nop dword [rax + rax]
mov edx, 0x5c
mov rcx, r14
call qword [sym.imp.msvcrt.dll_wcsrchr]
nop dword [rax + rax]
mov rbp, rax
test rax, rax
jne 0x140013f80
mov ebx, 0xc000000d
jmp 0x140013ff2
test r12, r12
je 0x140013fe1
mov rcx, qword gs:[0x60]
sub rbp, r14
sar rbp, 1
xor edx, edx
mov rcx, qword [rcx + 0x30]
lea eax, [rbp + 1]
lea r8, [rax*2]
mov r13d, eax
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
nop dword [rax + rax]
mov rsi, rax
test rdi, rdi
jne 0x140013fc6
mov ebx, 0xc000009a
xor r13d, r13d
jmp 0x140013ff2
mov r9d, ebp
mov r8, r14
mov rdx, r13
mov rcx, rax
call qword [sym.imp.msvcrt.dll_wcsncpy_s]
nop dword [rax + rax]
xor r13d, r13d
test r15, r15
je 0x140013fe9
mov qword [r15], rdi
test r12, r12
je 0x140013ff2
mov qword [r12], rsi
cmp qword [rsp + 0x60], r13
je 0x140014019
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]
nop dword [rax + rax]
test ebx, ebx
jns 0x140014063
test rdi, rdi
je 0x140014040
mov rcx, qword gs:[0x60]
mov r8, rdi
xor edx, edx
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
nop dword [rax + rax]
test rsi, rsi
je 0x140014063
mov rcx, qword gs:[0x60]
mov r8, rsi
xor edx, edx
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
nop dword [rax + rax]
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 0x14001408c
Capabilities:
Get system information on windows

Disassembly:
push rbx
sub rsp, 0x50
mov rax, qword [0x14004f068]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov al, byte [0x14004f699]
test al, al
je 0x1400140b3
mov eax, dword [0x14004f080]
jmp 0x1400140f2
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]
nop dword [rax + rax]
test eax, eax
js 0x1400140e3
xor ebx, ebx
cmp dword [rsp + 0x30], 3
cmovl ebx, dword [rsp + 0x30]
mov dword [0x14004f080], ebx
mov eax, ebx
mov byte [0x14004f699], 1
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140030000
add rsp, 0x50
pop rbx
ret

Function at 0x140014bb0
Capabilities:
Delete registry key

Disassembly:
mov rax, rsp
mov qword [rax + 0x20], rbx
push rbp
push rsi
push rdi
sub rsp, 0x20
and qword [rax + 0x10], 0
lea r8, [rax + 8]
mov rdi, rcx
lea rdx, [rax + 0x10]
and rdi, 0xfffffffffffffffd
mov rcx, rdi
call fcn.140014fe8
mov rbp, qword [rsp + 0x48]
test eax, eax
js 0x140014c2c
mov eax, dword [rsp + 0x40]
test eax, eax
je 0x140014c2c
mov rbx, rbp
mov esi, eax
mov rdx, qword [rbx]
lea r9, [rsp + 0x50]
mov r8d, 0xf003f
mov rcx, rdi
call fcn.140014cc0
test eax, eax
js 0x140014c22
mov rcx, qword [rsp + 0x50]
call fcn.140014bb0
test eax, eax
jns 0x140014c22
mov rcx, qword [rsp + 0x50]
call fcn.140014828
add rbx, 8
sub rsi, 1
jne 0x140014bf0
test rbp, rbp
je 0x140014c51
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]
nop dword [rax + rax]
mov rbx, rdi
mov sil, dil
and rbx, 0xfffffffffffffffe
and sil, 1
je 0x140014c74
xor edx, edx
mov rcx, rbx
call sym.bcdedit.exe_ORDeleteKey
mov ecx, eax
call fcn.140015ffc
jmp 0x140014c83
mov rcx, rdi
call qword [sym.imp.ntdll.dll_ZwDeleteKey]
nop dword [rax + rax]
mov ebp, eax
test eax, eax
js 0x140014ca7
test sil, sil
je 0x140014c98
mov rcx, rbx
call sym.bcdedit.exe_ORCloseKey
jmp 0x140014ca7
mov rcx, rdi
call qword [sym.imp.ntdll.dll_ZwClose]
nop dword [rax + rax]
mov rbx, qword [rsp + 0x58]
mov eax, ebp
add rsp, 0x20
pop rdi
pop rsi
pop rbp
ret
Function at 0x140015410
Capabilities:
Check for peb beingdebugged flag

Disassembly:
mov qword [rsp + 0x10], rdx
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
and r15, 0xfffffffffffffffd
mov qword [rsp + 0x70], r15
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.140015dcc
mov ebx, eax
mov dword [rsp + 0x80], eax
cmp eax, 0xc0000023
je 0x140015488
test eax, eax
js 0x140015533
mov ebx, 0xc000000d
mov dword [rsp + 0x80], ebx
jmp 0x140015533
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]
nop dword [rax + rax]
mov rsi, rax
test rax, rax
jne 0x1400154ba
mov ebx, 0xc000009a
jmp 0x14001547c
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.140015dcc
mov ebx, eax
mov dword [rsp + 0x80], eax
test eax, eax
js 0x140015533
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]
nop dword [rax + rax]
mov r12, rax
test rax, rax
je 0x1400154b3
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 0x140015556
mov rcx, qword gs:[0x60]
mov r8, rsi
xor edx, edx
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
nop dword [rax + rax]
cmp ebx, 0xc000017d
jne 0x140015586
int3
mov eax, ebx
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
ret

Function at 0x1400155a0
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]
nop dword [rax + rax]
and qword [rsp + 0x50], 0
lea r9, [rsp + 0x50]
and rsi, 0xfffffffffffffffd
lea rdx, str.Description
mov rcx, rsi
mov r8d, 0x2001f
call fcn.140014cc0
mov rbx, qword [rsp + 0x50]
mov edi, eax
test eax, eax
js 0x140015628
mov rcx, rbx
test bl, 1
je 0x140015615
mov rdx, qword [rsp + 0x28]
and rcx, 0xfffffffffffffffe
call sym.bcdedit.exe_ORDeleteValue
mov ecx, eax
call fcn.140015ffc
jmp 0x140015626
lea rdx, [rsp + 0x20]
call qword [sym.imp.ntdll.dll_ZwDeleteValueKey]
nop dword [rax + rax]
mov edi, eax
cmp rbx, rsi
je 0x140015654
test rbx, rbx
je 0x140015654
test bl, 1
je 0x140015645
and rbx, 0xfffffffffffffffe
mov rcx, rbx
call sym.bcdedit.exe_ORCloseKey
jmp 0x140015654
mov rcx, rbx
call qword [sym.imp.ntdll.dll_ZwClose]
nop dword [rax + rax]
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
Function at 0x140015970
Capabilities:
Set registry value

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
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]
nop dword [rax + rax]
and rsi, 0xfffffffffffffffd
mov qword [rsp + 0x90], rsi
and qword [rsp + 0x38], 0
test r15, r15
je 0x1400159ef
lea r9, [rsp + 0x38]
mov r8d, 0x2001f
mov rdx, r15
mov rcx, rsi
call fcn.140014cc0
mov edi, eax
mov dword [rsp + 0x30], eax
mov rbx, qword [rsp + 0x38]
test eax, eax
jns 0x1400159f2
jmp 0x140015a55
mov rbx, rsi
mov rcx, rbx
mov eax, dword [rsp + 0xb8]
test bl, 1
je 0x140015a27
and rcx, 0xfffffffffffffffe
mov dword [rsp + 0x20], eax
mov r9, qword [rsp + 0xb0]
mov r8d, r12d
mov rdx, qword [rsp + 0x48]
call fcn.140023a68
mov ecx, eax
call fcn.140015ffc
jmp 0x140015a4f
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]
nop dword [rax + rax]
mov edi, eax
mov dword [rsp + 0x30], eax
cmp rbx, rsi
je 0x140015a67
test rbx, rbx
je 0x140015a67
mov rcx, rbx
call fcn.140014828
cmp edi, 0xc000017d
jne 0x140015aaa
int3
mov eax, edi
add rsp, 0x50
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
ret
Function at 0x140015dcc
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 0x140015e81
and rcx, 0xfffffffffffffffe
cmp edx, 2
jne 0x140015e68
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.140015ffc
mov edi, eax
test eax, eax
js 0x140015e9f
mov r8d, esi
xor edx, edx
mov rcx, rbx
call sub.msvcrt.dll_memset
cmp esi, 0x30
jb 0x140015e61
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 0x140015e9f
mov edi, 0xc000000d
jmp 0x140015e9f
mov r9, qword [rsp + 0xa0]
mov dword [r9], esi
call sym.bcdedit.exe_ORQueryInfoKeyEx
mov ecx, eax
call fcn.140015ffc
jmp 0x140015e9d
mov rax, qword [rsp + 0xa0]
mov r9d, esi
mov qword [rsp + 0x20], rax
call qword [sym.imp.ntdll.dll_ZwQueryKey]
nop dword [rax + rax]
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 0x140015ebc
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x10], rbx
mov dword [rsp + 0x18], r8d
push rdi
sub rsp, 0x30
mov r10, rcx
mov rbx, r9
mov ecx, dword [rsp + 0x60]
mov r11, rdx
test r10b, 1
je 0x140015f63
mov r8, qword [r11 + 8]
lea eax, [rcx - 0xc]
xor edi, edi
lea r9, [rsp + 0x40]
cmp ecx, 0xc
cmovb eax, edi
cmovb rbx, rdi
mov dword [rsp + 0x50], eax
mov rax, rbx
neg rax
lea rax, [rsp + 0x50]
sbb rdx, rdx
mov qword [rsp + 0x28], rax
lea rcx, [rbx + 0xc]
and r10, 0xfffffffffffffffe
and rdx, rcx
mov rcx, r10
mov qword [rsp + 0x20], rdx
xor edx, edx
call sym.bcdedit.exe_ORGetValue
cmp eax, 0xea
je 0x140015f37
test rbx, rbx
jne 0x140015f3c
mov eax, 0x7a
mov ecx, eax
call fcn.140015ffc
mov edx, dword [rsp + 0x50]
test eax, eax
js 0x140015f57
mov ecx, dword [rsp + 0x40]
mov dword [rbx + 4], ecx
mov dword [rbx + 8], edx
mov dword [rbx], edi
mov rcx, qword [rsp + 0x68]
add edx, 0xc
mov dword [rcx], edx
jmp 0x140015f86
mov rax, qword [rsp + 0x68]
mov r8d, 2
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], ecx
mov rcx, r10
call qword [sym.imp.ntdll.dll_ZwQueryValueKey]
nop dword [rax + rax]
mov rbx, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret

Function at 0x1400162bc
Capabilities:
Delete file

Disassembly:
mov rax, rsp
push rbx
sub rsp, 0x50
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]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
jns 0x14001630d
mov r8d, eax
lea rdx, str.Failed_to_delete_file._Status:__x
mov ecx, 4
call fcn.14000d7c8
mov eax, ebx
add rsp, 0x50
pop rbx
ret
Function at 0x14001631c
Capabilities:
Get file attributes

Disassembly:
mov r11, rsp
mov qword [r11 + 0x18], rbx
mov qword [r11 + 0x20], rbp
push rdi
sub rsp, 0x70
mov rax, qword [0x14004f068]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov rbx, rdx
mov dword [rsp + 0x20], 1
lea rdx, [r11 - 0x40]
mov r9d, 0x18
lea r8, [r11 - 0x30]
mov rdi, rcx
call qword [sym.imp.ntdll.dll_ZwQueryVolumeInformationFile]
nop dword [rax + rax]
mov ebp, 0x80000000
mov r8d, eax
lea edx, [rax + rbp]
test ebp, edx
jne 0x140016379
cmp eax, 0x80000005
jne 0x1400163c4
mov r9d, 8
mov dword [rsp + 0x20], 6
lea r8, [rsp + 0x30]
mov rcx, rdi
lea rdx, [rsp + 0x38]
call qword [sym.imp.ntdll.dll_ZwQueryInformationFile]
nop dword [rax + rax]
mov r8d, eax
add eax, ebp
test ebp, eax
jne 0x1400163b2
cmp r8d, 0x80000005
jne 0x1400163c4
mov eax, dword [rsp + 0x50]
xor r8d, r8d
mov dword [rbx], eax
mov rax, qword [rsp + 0x30]
mov qword [rbx + 8], rax
mov eax, r8d
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.140030000
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x140016ab4
Capabilities:
Get system information on windows

Disassembly:
sub rsp, 0x58
mov rax, qword [0x14004f068]
xor rax, rsp
mov qword [rsp + 0x40], rax
cmp dword [0x14004f69c], 0
jne 0x140016b20
lea rdx, [rsp + 0x20]
lea rcx, str.ZwFilterBootOption
call fcn.1400160d8
test eax, eax
js 0x140016b15
xor r9d, r9d
lea rdx, [rsp + 0x28]
lea r8d, [r9 + 0x18]
lea ecx, [r8 + 0x77]
call qword [sym.imp.ntdll.dll_ZwQuerySystemInformation]
nop dword [rax + rax]
test eax, eax
js 0x140016b15
mov rcx, qword [rsp + 0x20]
xor eax, eax
lock cmpxchg qword [0x14004f6a0], rcx
mov eax, 1
xchg dword [0x14004f69c], eax
cmp qword [0x14004f6a0], 0
setne al
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140030000
add rsp, 0x58
ret

Function at 0x140016eb4
Capabilities:
Get system information on windows

Disassembly:
push rbx
sub rsp, 0x50
mov rax, qword [0x14004f068]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov ebx, 1
lea rdx, [rsp + 0x20]
xor r9d, r9d
lea r8d, [rbx + 0x1f]
lea ecx, [rbx + 0x59]
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
nop dword [rax + rax]
test eax, eax
js 0x140016ef9
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.140030000
add rsp, 0x50
pop rbx
ret

Function at 0x140017138
Capabilities:
Get system information on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x30
mov r14, r9
mov ebp, r8d
mov r15, rdx
lea r9, [rax - 0x28]
xor r8d, r8d
xor edx, edx
mov esi, ecx
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
nop dword [rax + rax]
mov ebx, eax
cmp eax, 0xc0000023
je 0x14001718b
test eax, eax
js 0x14001721c
mov ebx, 0xc0000001
jmp 0x14001721c
mov rcx, qword gs:[0x60]
xor edx, edx
mov r8d, dword [rsp + 0x20]
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
nop dword [rax + rax]
mov rdi, rax
test rax, rax
jne 0x1400171ba
mov ebx, 0xc000009a
jmp 0x14001721c
mov r8d, dword [rsp + 0x20]
lea r9, [rsp + 0x20]
mov rdx, rdi
mov ecx, esi
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
js 0x1400171fe
movzx eax, word [rdi]
add eax, 2
mov dword [r14], eax
cmp eax, ebp
jbe 0x1400171ef
mov ebx, 0xc0000023
jmp 0x1400171fe
mov rdx, qword [rdi + 8]
mov rcx, r15
mov r8d, eax
call sub.msvcrt.dll_memcpy
mov rcx, qword gs:[0x60]
mov r8, rdi
xor edx, edx
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
nop dword [rax + rax]
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
Function at 0x1400199d8
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]
nop dword [rax + rax]
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]
nop dword [rax + rax]
test eax, eax
js 0x140019ba6
xor edx, edx
lea rcx, [rbp - 0x50]
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
nop dword [rax + rax]
mov edi, r14d
mov dword [rbp + 0x30], r14d
jmp 0x140019ac5
cmp qword [rbp - 0x48], r14
je 0x140019a90
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]
nop dword [rax + rax]
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]
nop dword [rax + rax]
mov qword [rbp - 0x48], rax
test rax, rax
je 0x140019bbc
mov rcx, qword [rbp + 0x38]
lea r8, [rbp + 0x30]
lea rdx, [rbp - 0x50]
call qword [sym.imp.ntdll.dll_ZwQuerySymbolicLinkObject]
nop dword [rax + rax]
mov ebx, eax
cmp eax, 0xc0000023
je 0x140019a6b
mov rcx, qword [rbp + 0x38]
call qword [sym.imp.ntdll.dll_ZwClose]
nop dword [rax + rax]
mov rax, qword [rbp - 0x48]
mov qword [rbp + 0x38], r14
test ebx, ebx
js 0x140019b80
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]
nop dword [rax + rax]
test eax, eax
jns 0x140019ac5
mov rax, qword [rbp - 0x48]
mov ebx, r14d
mov qword [rsi], rax
mov rcx, qword [rbp + 0x38]
test rcx, rcx
je 0x140019b7c
call qword [sym.imp.ntdll.dll_ZwClose]
nop dword [rax + rax]
mov rax, qword [rbp - 0x48]
mov qword [rbp + 0x38], r14
test ebx, ebx
jns 0x140019ba4
test rax, rax
je 0x140019ba4
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]
nop dword [rax + rax]
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 0x140019b5f
Function at 0x14001d13c
Capabilities:
Check for peb beingdebugged flag

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
push r14
push r15
sub rsp, 0x20
movzx eax, byte [rcx + 2]
xor edi, edi
movzx r9d, byte [rcx + 3]
mov r12, rdx
shl r9, 8
mov r15, r8
or r9, rax
mov rbx, rcx
add r9, rcx
mov esi, edi
mov dl, byte [r9]
mov al, dl
and al, 0x7f
cmp al, 0x7f
je 0x14001d27d
cmp dl, 4
jne 0x14001d1ac
cmp byte [r9 + 1], dl
jne 0x14001d1ac
movzx ecx, byte [r9 + 3]
movzx eax, byte [r9 + 2]
shl ecx, 8
or ecx, eax
cmp ecx, 4
jb 0x14001d203
add esi, 0xfffffffc
add esi, ecx
movzx eax, byte [r9 + 2]
movzx ecx, byte [r9 + 3]
shl rcx, 8
or rcx, rax
add r9, rcx
mov dl, byte [r9]
mov al, dl
and al, 0x7f
cmp al, 0x7f
jne 0x14001d188
test esi, esi
je 0x14001d27d
mov rcx, qword gs:[0x60]
add esi, 2
mov r8d, esi
xor edx, edx
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
nop dword [rax + rax]
mov rbp, rax
test rax, rax
jne 0x14001d20a
mov eax, 0xc000009a
jmp 0x14001d282
mov eax, 0xc0000095
jmp 0x14001d282
movzx edi, byte [rbx + 3]
mov r14, rbp
movzx eax, byte [rbx + 2]
shl rdi, 8
or rdi, rax
add rdi, rbx
jmp 0x14001d264
cmp cl, 4
jne 0x14001d252
cmp byte [rdi + 1], cl
jne 0x14001d252
movzx ecx, byte [rdi + 3]
lea rdx, [rdi + 4]
movzx eax, byte [rdi + 2]
shl rcx, 8
or rcx, rax
sub rcx, 4
mov ebx, ecx
mov r8d, ecx
mov rcx, r14
call sub.msvcrt.dll_memcpy
add r14, rbx
movzx ecx, byte [rdi + 3]
movzx eax, byte [rdi + 2]
shl rcx, 8
or rcx, rax
add rdi, rcx
mov cl, byte [rdi]
mov al, cl
and al, 0x7f
cmp al, 0x7f
jne 0x14001d221
xor eax, eax
mov qword [r12], rbp
mov word [r14], ax
mov dword [r15], esi
jmp 0x14001d282
mov eax, 0xc0000225
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x20
pop r15
pop r14
pop r12
ret