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

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r14
push r15
mov rbp, rsp
sub rsp, 0x40
xor ebx, ebx
movsxd rdi, edx
mov rsi, rcx
mov qword [rbp + 0x20], rbx
cmp dword [rcx], edi
je 0x140163dd7
mov r14d, dword [rcx + 4]
cmp edi, r14d
cmovl r14d, edi
test edx, edx
jle 0x140163da0
mov rcx, rdi
mov r15, rcx
shl r15, 3
mov rax, r15
shr rax, 3
cmp rax, rcx
je 0x140163d2c
mov ebx, 0x80070216
mov ecx, ebx
call fcn.140079c40
mov r15, qword [rbp + 0x20]
mov ecx, ebx
call fcn.140079c60
test ebx, ebx
jns 0x140163d43
mov ecx, ebx
call fcn.140079c40
jmp 0x140163dd7
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, r15
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov r15, qword [rbp + 0x20]
mov rbx, rax
test r15, r15
je 0x140163d77
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, r15
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
test rbx, rbx
je 0x140163e2f
mov qword [rbp + 0x20], rbx
test r14d, r14d
je 0x140163da0
mov rdx, qword [rsi + 8]
mov rcx, rbx
movsxd r8, r14d
shl r8, 3
call sub.msvcrt.dll_memcpy
mov rbx, qword [rbp + 0x20]
and qword [rbp + 0x20], 0
mov r15, qword [rsi + 8]
test r15, r15
je 0x140163dc2
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, r15
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
xor eax, eax
test rbx, rbx
cmovne rax, rbx
xor ebx, ebx
mov qword [rsi + 8], rax
mov dword [rsi + 4], r14d
mov dword [rsi], edi
mov ecx, ebx
call fcn.140079c60
and qword [rbp - 0x10], 0
lea rax, [0x1400257d8]
xor r9d, r9d
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x20], 3
lea rdx, [rbp - 0x20]
mov qword [rbp - 8], rax
mov ecx, 0xb9
lea r8d, [r9 + 0x20]
call sub.ntdll.dll_NtQuerySystemInformation
mov rsi, qword [rsp + 0x70]
mov eax, ebx
mov rbx, qword [rsp + 0x68]
mov rdi, qword [rsp + 0x78]
add rsp, 0x40
pop r15
pop r14
pop rbp
ret
mov ebx, 0x8007000e
jmp 0x140163d37
Function at 0x140163f24
Capabilities:
Get system information on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r14
push r15
mov rbp, rsp
sub rsp, 0x40
xor ebx, ebx
movsxd rdi, edx
mov rsi, rcx
mov qword [rbp + 0x20], rbx
cmp dword [rcx], edi
je 0x140164043
mov r14d, dword [rcx + 4]
cmp edi, r14d
cmovl r14d, edi
test edx, edx
jle 0x14016400c
lea r15, [rdi + rdi*2]
movabs rax, 0xaaaaaaaaaaaaaaab
shl r15, 3
mul r15
shr rdx, 4
cmp rdx, rdi
je 0x140163f94
mov ebx, 0x80070216
mov ecx, ebx
call fcn.140079c40
mov r15, qword [rbp + 0x20]
mov ecx, ebx
call fcn.140079c60
test ebx, ebx
jns 0x140163fab
mov ecx, ebx
call fcn.140079c40
jmp 0x140164043
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, r15
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov r15, qword [rbp + 0x20]
mov rbx, rax
test r15, r15
je 0x140163fdf
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, r15
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
test rbx, rbx
je 0x14016409b
mov qword [rbp + 0x20], rbx
test r14d, r14d
je 0x14016400c
mov rdx, qword [rsi + 8]
mov rcx, rbx
movsxd rax, r14d
lea r8, [rax + rax*2]
shl r8, 3
call sub.msvcrt.dll_memcpy
mov rbx, qword [rbp + 0x20]
and qword [rbp + 0x20], 0
mov r15, qword [rsi + 8]
test r15, r15
je 0x14016402e
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, r15
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
xor eax, eax
test rbx, rbx
cmovne rax, rbx
xor ebx, ebx
mov qword [rsi + 8], rax
mov dword [rsi + 4], r14d
mov dword [rsi], edi
mov ecx, ebx
call fcn.140079c60
and qword [rbp - 0x10], 0
lea rax, [0x140025b18]
xor r9d, r9d
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x20], 3
lea rdx, [rbp - 0x20]
mov qword [rbp - 8], rax
mov ecx, 0xb9
lea r8d, [r9 + 0x20]
call sub.ntdll.dll_NtQuerySystemInformation
mov rsi, qword [rsp + 0x70]
mov eax, ebx
mov rbx, qword [rsp + 0x68]
mov rdi, qword [rsp + 0x78]
add rsp, 0x40
pop r15
pop r14
pop rbp
ret
mov ebx, 0x8007000e
jmp 0x140163f9f
Function at 0x1401641a8
Capabilities:
Get system information on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r14
push r15
mov rbp, rsp
sub rsp, 0x40
and qword [rbp + 0x20], 0
mov rdi, rcx
movsxd rsi, edx
cmp dword [rcx], esi
je 0x14016430f
mov r15d, dword [rcx + 4]
cmp esi, r15d
cmovl r15d, esi
test edx, edx
jle 0x14016428a
xor ebx, ebx
mov rcx, rsi
test edx, edx
je 0x140164217
mov r14, rcx
shl r14, 4
mov rax, r14
shr rax, 4
cmp rax, rcx
je 0x14016421a
mov ebx, 0x80070216
mov ecx, ebx
call fcn.140079c40
mov r14, qword [rbp + 0x20]
jmp 0x14016421a
xor r14d, r14d
mov ecx, ebx
call fcn.140079c60
test ebx, ebx
jns 0x140164231
mov ecx, ebx
call fcn.140079c40
jmp 0x140164311
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, r14
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov r14, qword [rbp + 0x20]
mov rbx, rax
test r14, r14
je 0x140164265
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, r14
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
test rbx, rbx
je 0x140164369
mov qword [rbp + 0x20], rbx
test r15d, r15d
je 0x14016428a
mov rdx, qword [rdi + 8]
mov rcx, rbx
movsxd r8, r15d
shl r8, 4
call sub.msvcrt.dll_memcpy
cmp esi, dword [rdi + 4]
jge 0x1401642d6
mov ebx, esi
movsxd rdx, ebx
shl rdx, 4
add rdx, qword [rdi + 8]
je 0x1401642cf
and qword [rbp - 0x10], 0
lea rax, [0x1400264d8]
xor r9d, r9d
mov qword [rbp - 8], rdx
lea rdx, [rbp - 0x20]
mov qword [rbp - 0x20], 3
mov ecx, 0xb9
mov qword [rbp - 0x18], rax
lea r8d, [r9 + 0x20]
call sub.ntdll.dll_NtQuerySystemInformation
inc ebx
cmp ebx, dword [rdi + 4]
jl 0x140164291
mov r14, qword [rbp + 0x20]
and qword [rbp + 0x20], 0
mov rbx, qword [rdi + 8]
test rbx, rbx
je 0x1401642fc
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rbx
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
xor eax, eax
test r14, r14
cmovne rax, r14
mov qword [rdi + 8], rax
mov dword [rdi + 4], r15d
mov dword [rdi], esi
xor ebx, ebx
mov ecx, ebx
call fcn.140079c60
and qword [rbp - 0x10], 0
lea rax, [0x140025e58]
xor r9d, r9d
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x20], 3
lea rdx, [rbp - 0x20]
mov qword [rbp - 8], rax
mov ecx, 0xb9
lea r8d, [r9 + 0x20]
call sub.ntdll.dll_NtQuerySystemInformation
mov rsi, qword [rsp + 0x70]
mov eax, ebx
mov rbx, qword [rsp + 0x68]
mov rdi, qword [rsp + 0x78]
add rsp, 0x40
pop r15
pop r14
pop rbp
ret
mov ebx, 0x8007000e
jmp 0x140164225
Function at 0x140165548
Capabilities:
Get system information on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x20], r9
push rbp
lea rbp, [rsp - 0x37]
sub rsp, 0x90
mov rbx, rdx
lea rcx, [rbp - 9]
xor edx, edx
lea r8d, [rdx + 0x40]
call sub.msvcrt.dll_memset
cmp dword [0x14043ffa0], 0
jne 0x140165584
mov ecx, 0xc004d101
jmp 0x14016560d
mov rcx, 0xffffffff80000002
mov qword [rbp + 7], rbx
lea rax, str.data.dat
mov qword [rbp + 0xf], rcx
mov qword [rbp - 1], rax
lea rdx, [rbp - 0x39]
lea rax, str.SOFTWAREMicrosoftWindows_NTCurrentVersionSoftwareProtectionPlatform
mov qword [rbp + 0x1f], rcx
mov qword [rbp + 0x17], rax
xor r9d, r9d
lea rax, str.SYSTEMWPA
mov qword [rbp - 0x39], 3
mov qword [rbp + 0x27], rax
mov ecx, 0xb9
mov rax, qword [0x14043ff80]
mov qword [rbp + 0x2f], rax
lea r8d, [r9 + 0x28]
lea rax, [0x140038618]
mov qword [rbp - 0x31], rax
lea rax, [rbp + 0x5f]
mov qword [rbp - 0x29], rax
mov rax, qword [0x140440188]
mov qword [rbp - 0x21], rax
lea rax, [rbp - 9]
mov qword [rbp - 0x19], rax
call sub.ntdll.dll_NtQuerySystemInformation
mov ecx, dword [rbp + 0x5f]
test ecx, ecx
jns 0x140165612
call fcn.140079c40
call fcn.1401652e4
mov ecx, eax
mov ebx, eax
call fcn.140079c60
mov eax, ebx
mov rbx, qword [rsp + 0xa0]
add rsp, 0x90
pop rbp
ret

Function at 0x1401659a4
Capabilities:
Get system information on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
mov dword [rax + 0x18], r8d
push rbp
mov rbp, rsp
sub rsp, 0x60
and qword [rbp - 0x38], 0
mov esi, r9d
and qword [rbp - 0x40], 0
mov rbx, rdx
cmp dword [0x14043ffa0], 0
mov rdi, rcx
jne 0x1401659e5
mov ecx, 0xc004d101
jmp 0x140165a9e
test rdi, rdi
je 0x140165a99
test rbx, rbx
je 0x140165a99
mov ecx, esi
call fcn.140165388
mov ecx, eax
test eax, eax
js 0x140165a9e
mov rcx, qword [0x14043ff98]
lea r9, [rbp - 0x40]
mov r8d, 1
mov rdx, rbx
call fcn.140168c00
mov ecx, eax
test eax, eax
js 0x140165a9e
lea rax, [0x14003ba18]
mov qword [rbp - 0x30], 3
mov qword [rbp - 0x28], rax
lea rdx, [rbp - 0x30]
lea rax, [rbp + 0x20]
mov dword [rbp - 8], 0x2001b
mov qword [rbp - 0x20], rax
xor r9d, r9d
mov rax, qword [rbp - 0x40]
mov ecx, 0xb9
mov qword [rbp - 0x18], rax
lea rax, [rbp - 0x38]
mov qword [rbp - 0x10], rax
lea r8d, [r9 + 0x30]
mov dword [rbp - 4], esi
call sub.ntdll.dll_NtQuerySystemInformation
mov ecx, dword [rbp + 0x20]
test ecx, ecx
js 0x140165a9e
mov rdx, qword [rbp - 0x38]
mov r9, rdi
mov rcx, qword [0x14043ff98]
mov r8d, 2
call fcn.140168278
mov ecx, eax
test eax, eax
jns 0x140165aa3
jmp 0x140165a9e
mov ecx, 0x80070057
call fcn.140079c40
call fcn.1401652e4
mov ecx, eax
mov ebx, eax
call fcn.140079c60
lea rcx, [rbp - 0x40]
call fcn.140053010
lea rcx, [rbp - 0x38]
call fcn.140053010
lea r11, [rsp + 0x60]
mov eax, ebx
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
Function at 0x140165ae4
Capabilities:
Get system information on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
push rbp
lea rbp, [rax - 0x47]
sub rsp, 0x90
and qword [rbp - 0x21], 0
mov esi, r9d
and qword [rbp - 0x29], 0
mov r14d, r8d
cmp dword [0x14043ffa0], 0
mov rbx, rdx
mov rdi, rcx
jne 0x140165b2c
mov ecx, 0xc004d101
jmp 0x140165c0a
test rdi, rdi
je 0x140165c05
test rbx, rbx
je 0x140165c05
mov ecx, esi
call fcn.140165388
mov ecx, eax
test eax, eax
js 0x140165c0a
mov rcx, qword [0x14043ff98]
lea r9, [rbp - 0x29]
mov r8d, 1
mov rdx, rbx
call fcn.140168c00
mov ecx, eax
test eax, eax
js 0x140165c0a
mov rax, qword [rbp + 0x6f]
lea rdx, [rbp - 1]
mov qword [rbp - 0x11], rax
xor r9d, r9d
mov eax, dword [rbp + 0x77]
mov dword [rbp - 9], eax
lea rax, [0x140037c58]
movaps xmm0, xmmword [rbp - 0x11]
mov qword [rbp + 7], rax
lea r8d, [r9 + 0x3c]
lea rax, [rbp - 0x31]
movdqa xmmword [rbp - 0x11], xmm0
mov qword [rbp + 0xf], rax
lea ecx, [r8 + 0x7d]
mov rax, qword [rbp - 0x29]
mov qword [rbp + 0x17], rax
lea rax, [rbp - 0x21]
mov qword [rbp + 0x1f], rax
lea rax, [rbp - 0x11]
mov qword [rbp + 0x2f], rax
mov eax, dword [rbp + 0x7f]
mov dword [rbp + 0x37], eax
mov qword [rbp - 1], 3
mov dword [rbp + 0x27], r14d
mov dword [rbp + 0x2b], esi
call sub.ntdll.dll_NtQuerySystemInformation
mov ecx, dword [rbp - 0x31]
test ecx, ecx
js 0x140165c0a
mov rdx, qword [rbp - 0x21]
mov r9, rdi
mov rcx, qword [0x14043ff98]
mov r8d, 2
call fcn.140168278
mov ecx, eax
test eax, eax
jns 0x140165c0f
jmp 0x140165c0a
mov ecx, 0x80070057
call fcn.140079c40
call fcn.1401652e4
mov ecx, eax
mov ebx, eax
call fcn.140079c60
lea rcx, [rbp - 0x29]
call fcn.140053010
lea rcx, [rbp - 0x21]
call fcn.140053010
lea r11, [rsp + 0x90]
mov eax, ebx
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov r14, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
Function at 0x140165d30
Capabilities:
Get system information on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
push rbp
mov rbp, rsp
sub rsp, 0x80
and qword [rbp - 0x58], 0
mov edi, r8d
and qword [rbp - 0x60], 0
mov rbx, rcx
cmp dword [0x14043ffa0], 0
jne 0x140165d68
mov ecx, 0xc004d101
jmp 0x140165e30
test rbx, rbx
je 0x140165e2b
test rdx, rdx
je 0x140165e2b
test edi, edi
je 0x140165e2b
mov rcx, qword [0x14043ff98]
lea r9, [rbp - 0x60]
mov r8d, 1
call fcn.140168c00
mov ecx, eax
test eax, eax
js 0x140165e30
and qword [rbp - 0x50], 0
lea rax, [0x14003f158]
and dword [rbp - 0x48], 0
lea rdx, [rbp - 0x40]
movaps xmm0, xmmword [rbp - 0x50]
xor r9d, r9d
and dword [rbp - 0xc], 0
mov ecx, 0xb9
mov qword [rbp - 0x38], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 0x30], rax
mov rax, qword [rbp - 0x60]
lea r8d, [r9 + 0x38]
mov qword [rbp - 0x28], rax
lea rax, [rbp - 0x58]
mov qword [rbp - 0x20], rax
lea rax, [rbp - 0x50]
mov qword [rbp - 0x14], rax
movdqa xmmword [rbp - 0x50], xmm0
mov qword [rbp - 0x40], 3
mov dword [rbp - 0x18], edi
call sub.ntdll.dll_NtQuerySystemInformation
mov ecx, dword [rbp + 0x28]
test ecx, ecx
js 0x140165e30
mov rdx, qword [rbp - 0x58]
mov r9, rbx
mov rcx, qword [0x14043ff98]
mov r8d, 3
call fcn.140168278
mov ecx, eax
test eax, eax
jns 0x140165e35
jmp 0x140165e30
mov ecx, 0x80070057
call fcn.140079c40
call fcn.1401652e4
mov ecx, eax
mov ebx, eax
call fcn.140079c60
lea rcx, [rbp - 0x60]
call fcn.140053010
lea rcx, [rbp - 0x58]
call fcn.140053010
lea r11, [rsp + 0x80]
mov eax, ebx
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov rsp, r11
pop rbp
ret

Function at 0x140166a64
Capabilities:
Get system information on windows

Disassembly:
mov qword [rsp + 8], rbx
push rbp
mov rbp, rsp
sub rsp, 0x60
and qword [rbp + 0x28], 0
mov rbx, rdx
cmp dword [0x14043ffa0], 0
jne 0x140166a91
mov ecx, 0xc004d101
call fcn.140079c40
jmp 0x140166b37
test rbx, rbx
jne 0x140166a9d
mov ecx, 0x80070057
jmp 0x140166a87
mov rdx, rcx
lea r9, [rbp + 0x28]
mov rcx, qword [0x14043ff98]
mov r8d, 4
call fcn.140168c00
mov ecx, eax
test eax, eax
js 0x140166a87
mov rax, qword [rbp + 0x28]
test byte [rax + 0x18], 1
jne 0x140166acd
mov ecx, 0xc004d314
jmp 0x140166a87
mov rcx, qword [rax + 0x10]
lea rdx, [rbp - 0x38]
lea rax, [0x14002fa58]
mov qword [rbp - 0x18], rcx
mov qword [rbp - 0x30], rax
xor r9d, r9d
lea rax, [rbp + 0x20]
mov qword [rbp - 0x38], 3
mov qword [rbp - 0x28], rax
mov ecx, 0xb9
mov rax, qword [0x140440188]
mov qword [rbp - 0x20], rax
lea r8d, [r9 + 0x34]
lea rax, [rbp - 0x40]
mov dword [rbp - 0x10], 0xa0005
mov qword [rbp - 0xc], rax
call sub.ntdll.dll_NtQuerySystemInformation
mov ecx, dword [rbp + 0x20]
test ecx, ecx
js 0x140166a87
mov rax, qword [rbp - 0x40]
mov dword [rbx], eax
shr rax, 0x20
mov dword [rbx + 4], eax
call fcn.1401652e4
mov ecx, eax
mov ebx, eax
call fcn.140079c60
lea rcx, [rbp + 0x28]
call fcn.140053010
mov eax, ebx
mov rbx, qword [rsp + 0x70]
add rsp, 0x60
pop rbp
ret
Function at 0x140166b64
Capabilities:
Get system information on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
push rbp
mov rbp, rsp
sub rsp, 0x60
and qword [rbp - 0x40], 0
mov ebx, r8d
cmp dword [0x14043ffa0], 0
mov edi, edx
jne 0x140166b93
mov ecx, 0xc004d101
jmp 0x140166c23
mov rdx, rcx
lea r9, [rbp - 0x40]
mov rcx, qword [0x14043ff98]
mov r8d, 4
call fcn.140168c00
mov ecx, eax
test eax, eax
js 0x140166c23
mov rax, qword [rbp - 0x40]
test byte [rax + 0x18], 1
jne 0x140166bc3
mov ecx, 0xc004d314
jmp 0x140166c23
mov ecx, ebx
and ecx, 2
test cl, cl
je 0x140166bd3
mov ecx, 0x80070057
jmp 0x140166c23
mov rcx, qword [rax + 0x10]
lea rdx, [rbp - 0x38]
lea rax, [0x1400341d8]
mov qword [rbp - 0x18], rcx
mov qword [rbp - 0x30], rax
xor r9d, r9d
lea rax, [rbp + 0x28]
mov qword [rbp - 0x38], 3
mov qword [rbp - 0x28], rax
mov ecx, 0xb9
mov rax, qword [0x140440188]
lea r8d, [r9 + 0x30]
mov qword [rbp - 0x20], rax
mov dword [rbp - 0x10], edi
mov dword [rbp - 0xc], ebx
call sub.ntdll.dll_NtQuerySystemInformation
mov ecx, dword [rbp + 0x28]
test ecx, ecx
jns 0x140166c28
call fcn.140079c40
call fcn.1401652e4
mov ecx, eax
mov ebx, eax
call fcn.140079c60
lea rcx, [rbp - 0x40]
call fcn.140053010
mov rdi, qword [rsp + 0x78]
mov eax, ebx
mov rbx, qword [rsp + 0x70]
add rsp, 0x60
pop rbp
ret

Function at 0x140166c58
Capabilities:
Get system information on windows

Disassembly:
push rbx
sub rsp, 0x60
cmp dword [0x14043ffa0], 0
jne 0x140166c6e
mov ecx, 0xc004d101
jmp 0x140166ccc
lea rax, [0x140024ad8]
mov qword [rsp + 0x40], rcx
mov qword [rsp + 0x28], rax
xor r9d, r9d
lea rax, [rsp + 0x88]
mov qword [rsp + 0x48], rdx
mov qword [rsp + 0x30], rax
lea rdx, [rsp + 0x20]
mov rax, qword [0x140440188]
mov ecx, 0xb9
mov qword [rsp + 0x50], r8
lea r8d, [r9 + 0x38]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x20], 3
call sub.ntdll.dll_NtQuerySystemInformation
mov ecx, dword [rsp + 0x88]
test ecx, ecx
jns 0x140166cd1
call fcn.140079c40
call fcn.1401652e4
mov ecx, eax
mov ebx, eax
call fcn.140079c60
mov eax, ebx
add rsp, 0x60
pop rbx
ret
Function at 0x140166cf0
Capabilities:
Get system information on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rbp
push rdi
push r12
push r14
push r15
mov rbp, rsp
sub rsp, 0x80
and qword [rbp - 0x50], 0
mov esi, r8d
and qword [rbp - 0x58], 0
mov r14, rdx
cmp dword [0x14043ffa0], 0
mov r12, rcx
jne 0x140166d39
mov edx, 0xc004d101
mov ecx, edx
call fcn.140079c40
jmp 0x140166ee4
test r12, r12
jne 0x140166d45
mov edx, 0x80070057
jmp 0x140166d2d
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
xor edx, edx
mov rcx, rax
lea r8d, [rdx + 0x20]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rbx, rax
test rax, rax
je 0x140166d7a
and qword [rbx + 0x10], 0
mov dword [rax + 8], 1
lea rax, [0x1403ab318]
mov qword [rbx], rax
jmp 0x140166d7c
xor ebx, ebx
mov qword [rbp - 0x50], rbx
test rbx, rbx
jne 0x140166d8c
mov edx, 0x8007000e
jmp 0x140166d2d
test r14, r14
jne 0x140166d9c
mov edx, 0x80070057
mov edi, edx
mov ecx, edx
jmp 0x140166dd8
test sil, 3
je 0x140166d91
test esi, 0xfffffff8
jne 0x140166d91
mov eax, esi
and al, 6
cmp al, 4
je 0x140166d91
lea rdx, [rbx + 0x10]
mov dword [rbx + 0x18], esi
mov rcx, r14
call fcn.140079b08
mov edi, eax
test eax, eax
js 0x140166dd6
mov rcx, qword [rbx + 0x10]
call fcn.14017f6dc
mov edi, eax
test eax, eax
jns 0x140166ddd
mov ecx, eax
call fcn.140079c40
mov ecx, edi
call fcn.140079c60
mov edx, edi
test edi, edi
jns 0x140166df1
mov ecx, edi
jmp 0x140166d2f
lea rax, [0x14002fa58]
mov qword [rbp - 0x40], 3
mov qword [rbp - 0x38], rax
lea rdx, [rbp - 0x40]
lea rax, [rbp + 0x48]
mov qword [rbp - 0x20], r14
mov qword [rbp - 0x30], rax
xor r9d, r9d
mov rax, qword [0x140440188]
mov ecx, 0xb9
mov qword [rbp - 0x28], rax
lea rax, [rbp - 0x48]
mov qword [rbp - 0x14], rax
lea r8d, [r9 + 0x34]
mov dword [rbp - 0x18], 0xa0000
call sub.ntdll.dll_NtQuerySystemInformation
mov edi, dword [rbp + 0x48]
xor edx, edx
mov r15d, 0xc004d315
cmp edi, r15d
cmovne edx, edi
test edx, edx
js 0x140166d2d
mov rcx, qword [0x14043ff98]
lea r9, [rbp - 0x58]
mov r8d, 4
mov rdx, rbx
call fcn.140168278
mov edx, eax
test eax, eax
jns 0x140166e7e
mov ecx, eax
jmp 0x140166d2f
cmp edi, r15d
jne 0x140166ed7
test sil, 4
je 0x140166f25
lea rax, [0x14002d358]
mov qword [rbp - 0x40], 3
mov qword [rbp - 0x38], rax
lea rdx, [rbp - 0x40]
xor r9d, r9d
mov qword [rbp - 0x20], r14
lea rax, [rbp - 0x60]
mov ecx, 0xb9
mov qword [rbp - 0x30], rax
mov rax, qword [0x140440188]
lea r8d, [r9 + 0x34]
mov qword [rbp - 0x28], rax
call sub.ntdll.dll_NtQuerySystemInformation
mov edx, dword [rbp - 0x60]
test edx, edx
js 0x140166d2d
mov rax, qword [rbp - 0x58]
and qword [rbp - 0x58], 0
mov qword [r12], rax
mov ecx, edx
call fcn.1401652e4
mov ecx, eax
mov ebx, eax
call fcn.140079c60
lea rcx, [rbp - 0x58]
call fcn.140055d08
lea rcx, [rbp - 0x50]
call fcn.140053010
lea r11, [rsp + 0x80]
mov eax, ebx
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
mov edx, r15d
mov ecx, r15d
jmp 0x140166d2f
Function at 0x14016706c
Capabilities:
Get system information on windows

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x50
cmp dword [0x14043ffa0], 0
mov rbx, rcx
jne 0x14016708c
mov ecx, 0xc004d101
jmp 0x140167134
test rbx, rbx
jne 0x14016709b
mov ecx, 0x80070057
jmp 0x140167134
mov edx, 1
cmp dword [0x140440190], edx
je 0x1401670ad
xor dil, dil
jmp 0x1401670d3
lea rcx, [0x14043f7d0]
call fcn.140072570
xor r8d, r8d
mov rdx, rbx
call fcn.14017fbe4
lea rcx, [0x14043f7d0]
mov dil, al
call fcn.14007240c
xor ecx, ecx
call fcn.140079c60
test dil, dil
je 0x1401670e6
mov ecx, 0xc004d316
jmp 0x140167134
lea rax, [0x14002d698]
mov qword [rsp + 0x20], 3
mov qword [rsp + 0x28], rax
lea rdx, [rsp + 0x20]
xor r9d, r9d
mov qword [rsp + 0x40], rbx
lea rax, [rsp + 0x68]
mov ecx, 0xb9
mov qword [rsp + 0x30], rax
mov rax, qword [0x140440188]
lea r8d, [r9 + 0x28]
mov qword [rsp + 0x38], rax
call sub.ntdll.dll_NtQuerySystemInformation
mov ecx, dword [rsp + 0x68]
test ecx, ecx
jns 0x140167139
call fcn.140079c40
call fcn.1401652e4
mov ecx, eax
mov ebx, eax
call fcn.140079c60
mov eax, ebx
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rdi
ret

Function at 0x14016715c
Capabilities:
Get system information on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
mov rbp, rsp
sub rsp, 0x80
and qword [rbp - 0x58], 0
mov ebx, r9d
cmp dword [0x14043ffa0], 0
mov rdi, r8
mov rsi, rdx
jne 0x140167197
mov ecx, 0xc004d101
jmp 0x14016722e
mov rdx, rcx
lea r9, [rbp - 0x58]
mov rcx, qword [0x14043ff98]
mov r8d, 4
call fcn.140168c00
mov ecx, eax
test eax, eax
js 0x14016722e
mov rax, qword [rbp - 0x58]
test byte [rax + 0x18], 2
jne 0x1401671c7
mov ecx, 0xc004d314
jmp 0x14016722e
mov rcx, qword [rax + 0x10]
lea rdx, [rbp - 0x50]
lea rax, [0x140029598]
mov qword [rbp - 0x30], rcx
mov qword [rbp - 0x48], rax
xor r9d, r9d
lea rax, [rbp - 0x60]
mov qword [rbp - 0x50], 3
mov qword [rbp - 0x40], rax
mov rax, qword [0x140440188]
mov qword [rbp - 0x38], rax
lea r8d, [r9 + 0x48]
mov eax, dword [rbp + 0x30]
lea ecx, [r8 + 0x71]
mov dword [rbp - 0x1c], eax
mov eax, dword [rbp + 0x38]
mov dword [rbp - 0xc], eax
mov qword [rbp - 0x28], rsi
mov dword [rbp - 0x20], 1
mov qword [rbp - 0x18], rdi
mov dword [rbp - 0x10], ebx
call sub.ntdll.dll_NtQuerySystemInformation
mov ecx, dword [rbp - 0x60]
test ecx, ecx
jns 0x140167233
call fcn.140079c40
call fcn.1401652e4
mov ecx, eax
mov ebx, eax
call fcn.140079c60
lea rcx, [rbp - 0x58]
call fcn.140053010
lea r11, [rsp + 0x80]
mov eax, ebx
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret