joyce8/EMBER2024-capa huggingface dataset:
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, [0x140031e18]
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, [0x14002f098]
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
Function at 0x14016726c
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 rbx, r9
cmp dword [0x14043ffa0], 0
mov rdi, r8
mov rsi, rdx
jne 0x1401672ac
mov ecx, 0xc004d101
call fcn.140079c40
jmp 0x140167352
mov rdx, rcx
lea r9, [rbp - 0x58]
mov rcx, qword [0x14043ff98]
mov r8d, 4
call fcn.140168c00
mov ecx, eax
test eax, eax
js 0x1401672a2
mov rax, qword [rbp - 0x58]
test byte [rax + 0x18], 1
jne 0x1401672dc
mov ecx, 0xc004d314
jmp 0x1401672a2
mov rcx, qword [rax + 0x10]
lea rdx, [rbp - 0x50]
lea rax, [0x14001e958]
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 + 0x4c]
lea rax, [rbp - 0x5c]
mov qword [rbp - 0x28], rsi
lea ecx, [r8 + 0x6d]
mov qword [rbp - 0x1c], rax
mov dword [rbp - 0x20], 1
mov qword [rbp - 0x14], rdi
mov qword [rbp - 0xc], rbx
call sub.ntdll.dll_NtQuerySystemInformation
mov ecx, dword [rbp - 0x60]
test ecx, ecx
js 0x1401672a2
mov rdx, qword [rbp + 0x30]
test rdx, rdx
je 0x140167352
mov eax, dword [rbp - 0x5c]
mov dword [rdx], eax
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

Function at 0x14016738c
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 0x1401673b4
mov ecx, 0xc004d101
jmp 0x140167439
mov rdx, rcx
lea r9, [rbp + 0x28]
mov rcx, qword [0x14043ff98]
mov r8d, 4
call fcn.140168c00
mov ecx, eax
test eax, eax
js 0x140167439
mov rax, qword [rbp + 0x28]
test byte [rax + 0x18], 2
jne 0x1401673e4
mov ecx, 0xc004d314
jmp 0x140167439
mov rcx, qword [rax + 0x10]
lea rdx, [rbp - 0x40]
lea rax, [0x140020d18]
mov qword [rbp - 0x20], rcx
mov qword [rbp - 0x38], rax
xor r9d, r9d
lea rax, [rbp + 0x20]
mov qword [rbp - 0x40], 3
mov qword [rbp - 0x30], rax
mov ecx, 0xb9
mov rax, qword [0x140440188]
lea r8d, [r9 + 0x34]
mov qword [rbp - 0x28], rax
mov qword [rbp - 0x18], rbx
mov dword [rbp - 0x10], 1
call sub.ntdll.dll_NtQuerySystemInformation
mov ecx, dword [rbp + 0x20]
test ecx, ecx
jns 0x14016743e
call fcn.140079c40
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 0x14016746c
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 rbx, r9
cmp dword [0x14043ffa0], 0
mov rdi, r8
mov rsi, rdx
jne 0x1401674a7
mov ecx, 0xc004d101
jmp 0x140167533
mov rdx, rcx
lea r9, [rbp - 0x58]
mov rcx, qword [0x14043ff98]
mov r8d, 4
call fcn.140168c00
mov ecx, eax
test eax, eax
js 0x140167533
mov rax, qword [rbp - 0x58]
test byte [rax + 0x18], 1
jne 0x1401674d7
mov ecx, 0xc004d314
jmp 0x140167533
mov rcx, qword [rax + 0x10]
lea rdx, [rbp - 0x50]
lea rax, [0x140039cd8]
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]
lea r8d, [r9 + 0x44]
mov qword [rbp - 0x38], rax
lea ecx, [r8 + 0x75]
mov qword [rbp - 0x28], rsi
mov dword [rbp - 0x20], 1
mov qword [rbp - 0x1c], rdi
mov qword [rbp - 0x14], rbx
call sub.ntdll.dll_NtQuerySystemInformation
mov ecx, dword [rbp - 0x60]
test ecx, ecx
jns 0x140167538
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

Function at 0x140167574
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, 0x70
and qword [rbp - 0x48], 0
mov ebx, r9d
cmp dword [0x14043ffa0], 0
mov edi, r8d
mov rsi, rdx
jne 0x1401675ac
mov ecx, 0xc004d101
jmp 0x140167630
mov rdx, rcx
lea r9, [rbp - 0x48]
mov rcx, qword [0x14043ff98]
mov r8d, 4
call fcn.140168c00
mov ecx, eax
test eax, eax
js 0x140167630
mov rax, qword [rbp - 0x48]
test byte [rax + 0x18], 2
jne 0x1401675dc
mov ecx, 0xc004d314
jmp 0x140167630
mov rcx, qword [rax + 0x10]
lea rdx, [rbp - 0x40]
lea rax, [0x140038c98]
mov qword [rbp - 0x20], rcx
mov qword [rbp - 0x38], rax
xor r9d, r9d
lea rax, [rbp - 0x50]
mov qword [rbp - 0x40], 3
mov qword [rbp - 0x30], rax
mov ecx, 0xb9
mov rax, qword [0x140440188]
lea r8d, [r9 + 0x38]
mov qword [rbp - 0x28], rax
mov qword [rbp - 0x18], rsi
mov dword [rbp - 0x10], edi
mov dword [rbp - 0xc], ebx
call sub.ntdll.dll_NtQuerySystemInformation
mov ecx, dword [rbp - 0x50]
test ecx, ecx
jns 0x140167635
call fcn.140079c40
call fcn.1401652e4
mov ecx, eax
mov ebx, eax
call fcn.140079c60
lea rcx, [rbp - 0x48]
call fcn.140053010
lea r11, [rsp + 0x70]
mov eax, ebx
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
Function at 0x14016766c
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 rbx, r8
cmp dword [0x14043ffa0], 0
mov rdi, rdx
jne 0x14016769c
mov ecx, 0xc004d101
jmp 0x14016771e
mov rdx, rcx
lea r9, [rbp - 0x40]
mov rcx, qword [0x14043ff98]
mov r8d, 4
call fcn.140168c00
mov ecx, eax
test eax, eax
js 0x14016771e
mov rax, qword [rbp - 0x40]
test byte [rax + 0x18], 1
jne 0x1401676cc
mov ecx, 0xc004d314
jmp 0x14016771e
mov rcx, qword [rax + 0x10]
lea rdx, [rbp - 0x38]
lea rax, [0x14002e058]
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 + 0x38]
mov qword [rbp - 0x20], rax
mov qword [rbp - 0x10], rdi
mov qword [rbp - 8], rbx
call sub.ntdll.dll_NtQuerySystemInformation
mov ecx, dword [rbp + 0x28]
test ecx, ecx
jns 0x140167723
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 0x140167754
Capabilities:
Get system information on windows

Disassembly:
mov qword [rsp + 8], rbx
push rbp
mov rbp, rsp
sub rsp, 0x50
and qword [rbp + 0x28], 0
mov rbx, rdx
cmp dword [0x14043ffa0], 0
jne 0x140167779
mov ecx, 0xc004d101
jmp 0x1401677f7
mov rdx, rcx
lea r9, [rbp + 0x28]
mov rcx, qword [0x14043ff98]
mov r8d, 4
call fcn.140168c00
mov ecx, eax
test eax, eax
js 0x1401677f7
mov rax, qword [rbp + 0x28]
test byte [rax + 0x18], 2
jne 0x1401677a9
mov ecx, 0xc004d314
jmp 0x1401677f7
mov rcx, qword [rax + 0x10]
lea rdx, [rbp - 0x30]
lea rax, [0x140028bd8]
mov qword [rbp - 0x10], rcx
mov qword [rbp - 0x28], rax
xor r9d, r9d
lea rax, [rbp + 0x20]
mov qword [rbp - 0x30], 3
mov qword [rbp - 0x20], rax
mov ecx, 0xb9
mov rax, qword [0x140440188]
lea r8d, [r9 + 0x30]
mov qword [rbp - 0x18], rax
mov qword [rbp - 8], rbx
call sub.ntdll.dll_NtQuerySystemInformation
mov ecx, dword [rbp + 0x20]
test ecx, ecx
jns 0x1401677fc
call fcn.140079c40
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 + 0x60]
add rsp, 0x50
pop rbp
ret
Function at 0x140167828
Capabilities:
Get system information on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
push rbp
mov rbp, rsp
sub rsp, 0x70
and qword [rbp + 0x18], 0
mov rbx, r9
cmp dword [0x14043ffa0], 0
jne 0x14016785a
mov ecx, 0xc004d101
jmp 0x1401678eb
mov rdx, rcx
lea r9, [rbp + 0x18]
mov rcx, qword [0x14043ff98]
mov r8d, 4
call fcn.140168c00
mov ecx, eax
test eax, eax
js 0x1401678eb
mov rax, qword [rbp + 0x18]
test byte [rax + 0x18], 1
jne 0x14016788a
mov ecx, 0xc004d314
jmp 0x1401678eb
mov rcx, qword [rax + 0x10]
lea rdx, [rbp - 0x50]
and qword [rbp - 0x1c], 0
lea rax, [0x140039cd8]
mov qword [rbp - 0x48], rax
xor r9d, r9d
mov qword [rbp - 0x30], rcx
lea rax, [rbp + 0x20]
mov ecx, 3
mov qword [rbp - 0x40], rax
mov rax, qword [0x140440188]
mov qword [rbp - 0x38], rax
lea rax, [0x1403c9630]
mov qword [rbp - 0x50], rcx
lea r8d, [rcx + 0x41]
mov dword [rbp - 0x20], ecx
lea ecx, [r8 + 0x75]
mov qword [rbp - 0x28], rax
mov qword [rbp - 0x14], rbx
call sub.ntdll.dll_NtQuerySystemInformation
mov ecx, dword [rbp + 0x20]
test ecx, ecx
jns 0x1401678f0
call fcn.140079c40
call fcn.1401652e4
mov ecx, eax
mov ebx, eax
call fcn.140079c60
lea rcx, [rbp + 0x18]
call fcn.140053010
mov eax, ebx
mov rbx, qword [rsp + 0x80]
add rsp, 0x70
pop rbp
ret

Function at 0x140167920
Capabilities:
Get system information on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
push rbp
mov rbp, rsp
sub rsp, 0x70
and qword [rbp - 0x48], 0
mov rbx, r8
cmp dword [0x14043ffa0], 0
mov edi, edx
jne 0x14016794f
mov ecx, 0xc004d101
jmp 0x140167a2c
test rcx, rcx
je 0x1401679de
mov rdx, rcx
lea r9, [rbp - 0x48]
mov rcx, qword [0x14043ff98]
mov r8d, 4
call fcn.140168c00
mov ecx, eax
test eax, eax
js 0x140167a2c
mov rax, qword [rbp - 0x48]
test byte [rax + 0x18], 1
jne 0x14016798f
mov ecx, 0xc004d314
jmp 0x140167a2c
mov rcx, qword [rax + 0x10]
lea rdx, [rbp - 0x40]
lea rax, [0x140024118]
mov qword [rbp - 0x20], rcx
mov qword [rbp - 0x38], rax
xor r9d, r9d
lea rax, [rbp + 0x28]
mov qword [rbp - 0x40], 3
mov qword [rbp - 0x30], rax
mov ecx, 0xb9
mov rax, qword [0x140440188]
lea r8d, [r9 + 0x34]
mov qword [rbp - 0x28], rax
mov dword [rbp - 0x18], edi
mov qword [rbp - 0x14], rbx
call sub.ntdll.dll_NtQuerySystemInformation
mov ecx, dword [rbp + 0x28]
jmp 0x140167a28
and qword [rbp - 0x20], 0
lea rax, [0x140024118]
mov qword [rbp - 0x38], rax
lea rdx, [rbp - 0x40]
xor r9d, r9d
mov qword [rbp - 0x40], 3
lea rax, [rbp - 0x50]
mov dword [rbp - 0x18], edi
mov qword [rbp - 0x30], rax
mov ecx, 0xb9
mov rax, qword [0x140440188]
lea r8d, [r9 + 0x34]
mov qword [rbp - 0x28], rax
mov qword [rbp - 0x14], rbx
call sub.ntdll.dll_NtQuerySystemInformation
mov ecx, dword [rbp - 0x50]
test ecx, ecx
jns 0x140167a31
call fcn.140079c40
call fcn.1401652e4
mov ecx, eax
mov ebx, eax
call fcn.140079c60
lea rcx, [rbp - 0x48]
call fcn.140053010
lea r11, [rsp + 0x70]
mov eax, ebx
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov rsp, r11
pop rbp
ret
Function at 0x140177898
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 0x140177a02
mov r15d, dword [rcx + 4]
cmp esi, r15d
cmovl r15d, esi
test edx, edx
jle 0x14017797a
xor ebx, ebx
mov rcx, rsi
test edx, edx
je 0x140177907
mov r14, rcx
shl r14, 3
mov rax, r14
shr rax, 3
cmp rax, rcx
je 0x14017790a
mov ebx, 0x80070216
mov ecx, ebx
call fcn.140079c40
mov r14, qword [rbp + 0x20]
jmp 0x14017790a
xor r14d, r14d
mov ecx, ebx
call fcn.140079c60
test ebx, ebx
jns 0x140177921
mov ecx, ebx
call fcn.140079c40
jmp 0x140177a04
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 0x140177955
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 0x140177a5c
mov qword [rbp + 0x20], rbx
test r15d, r15d
je 0x14017797a
mov rdx, qword [rdi + 8]
mov rcx, rbx
movsxd r8, r15d
shl r8, 3
call sub.msvcrt.dll_memcpy
cmp esi, dword [rdi + 4]
jge 0x1401779c9
mov ebx, esi
mov rcx, qword [rdi + 8]
movsxd rax, ebx
lea rdx, [rcx + rax*8]
test rdx, rdx
je 0x1401779c2
and qword [rbp - 0x10], 0
lea rax, [0x140035bd8]
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 0x140177981
mov r14, qword [rbp + 0x20]
and qword [rbp + 0x20], 0
mov rbx, qword [rdi + 8]
test rbx, rbx
je 0x1401779ef
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, [0x1400327d8]
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 0x140177915
Function at 0x140177a6c
Capabilities:
Get system information on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x50
mov rdi, rcx
movsxd rsi, edx
mov ecx, dword [rcx + 4]
mov r15, r8
test ecx, ecx
jns 0x140177a98
mov ebx, 0x8000ffff
mov ecx, ebx
jmp 0x140177aaf
lea r8, [rsp + 0x70]
mov edx, 1
call fcn.140079280
mov ebx, eax
test eax, eax
jns 0x140177ab9
mov ecx, eax
call fcn.140079c40
jmp 0x140177b63
mov edx, dword [rsp + 0x70]
mov rcx, rdi
call fcn.140178db8
mov ebx, eax
test eax, eax
js 0x140177aad
mov ecx, dword [rdi + 4]
mov rbx, rsi
cmp esi, ecx
jge 0x140177aef
mov rax, qword [rdi + 8]
sub ecx, esi
movsxd r8, ecx
shl r8, 3
lea rdx, [rax + rsi*8]
lea rcx, [rdx + 8]
call sub.msvcrt.dll_memmove
mov rax, qword [rdi + 8]
xor ecx, ecx
mov qword [rax + rbx*8], rcx
mov r14, qword [rdi + 8]
mov rsi, qword [r15]
and qword [r15], rcx
mov rax, qword [r14 + rbx*8]
test rax, rax
je 0x140177b51
lea rcx, [0x140029598]
mov qword [rsp + 0x20], 3
mov qword [rsp + 0x28], rcx
lea rdx, [rsp + 0x20]
xor r9d, r9d
mov qword [rsp + 0x38], rax
lea rcx, [rsp + 0x88]
mov dword [rsp + 0x40], 1
mov qword [rsp + 0x30], rcx
mov ecx, 0xb9
lea r8d, [r9 + 0x24]
call sub.ntdll.dll_NtQuerySystemInformation
xor eax, eax
test rsi, rsi
cmovne rax, rsi
mov qword [r14 + rbx*8], rax
inc dword [rdi + 4]
xor ebx, ebx
mov ecx, ebx
call fcn.140079c60
lea r11, [rsp + 0x50]
mov eax, ebx
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r14
pop rdi
ret
Function at 0x140177b8c
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 0x140177cf6
mov r15d, dword [rcx + 4]
cmp esi, r15d
cmovl r15d, esi
test edx, edx
jle 0x140177c6e
xor ebx, ebx
mov rcx, rsi
test edx, edx
je 0x140177bfb
mov r14, rcx
shl r14, 3
mov rax, r14
shr rax, 3
cmp rax, rcx
je 0x140177bfe
mov ebx, 0x80070216
mov ecx, ebx
call fcn.140079c40
mov r14, qword [rbp + 0x20]
jmp 0x140177bfe
xor r14d, r14d
mov ecx, ebx
call fcn.140079c60
test ebx, ebx
jns 0x140177c15
mov ecx, ebx
call fcn.140079c40
jmp 0x140177cf8
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 0x140177c49
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 0x140177d50
mov qword [rbp + 0x20], rbx
test r15d, r15d
je 0x140177c6e
mov rdx, qword [rdi + 8]
mov rcx, rbx
movsxd r8, r15d
shl r8, 3
call sub.msvcrt.dll_memcpy
cmp esi, dword [rdi + 4]
jge 0x140177cbd
mov ebx, esi
mov rcx, qword [rdi + 8]
movsxd rax, ebx
lea rdx, [rcx + rax*8]
test rdx, rdx
je 0x140177cb6
and qword [rbp - 0x10], 0
lea rax, [0x1400257d8]
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 0x140177c75
mov r14, qword [rbp + 0x20]
and qword [rbp + 0x20], 0
mov rbx, qword [rdi + 8]
test rbx, rbx
je 0x140177ce3
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, [0x14002ed58]
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 0x140177c09
Function at 0x1401784c8
Capabilities:
Get system information on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r12
push r14
push r15
mov rbp, rsp
sub rsp, 0x80
and qword [rbp - 0x48], 0
lea rax, [0x14002c998]
and qword [rbp - 0x14], 0
mov r15, r9
mov qword [rbp - 0x38], rax
xor r9d, r9d
lea rax, [rbp + 0x38]
mov dword [rbp - 0x18], r8d
mov qword [rbp - 0x30], rax
mov esi, r8d
lea rax, [0x1403ca998]
mov qword [rbp - 0x28], rdx
mov qword [rbp - 0x20], rax
lea r8d, [r9 + 0x3c]
lea rax, [rbp + 0x40]
mov qword [rbp - 0x40], 3
mov r14, rdx
mov qword [rbp - 0xc], rax
mov r12, rcx
lea rdx, [rbp - 0x40]
lea ecx, [r8 + 0x7d]
call sub.ntdll.dll_NtQuerySystemInformation
mov ebx, dword [rbp + 0x38]
cmp ebx, 0xc004d304
jne 0x140178556
xor ebx, ebx
jmp 0x14017863f
test ebx, ebx
js 0x140178638
mov ebx, dword [rbp + 0x40]
shl rbx, 3
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rbx
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rdi, qword [rbp - 0x48]
mov rbx, rax
test rdi, rdi
je 0x140178599
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rdi
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
test rbx, rbx
je 0x140178633
lea rax, [0x14002c998]
mov qword [rbp - 0x48], rbx
mov qword [rbp - 0x38], rax
lea rdx, [rbp - 0x40]
lea rax, [rbp - 0x50]
mov qword [rbp - 0x14], rbx
mov qword [rbp - 0x30], rax
xor r9d, r9d
lea rax, [0x1403ca998]
mov qword [rbp - 0x40], 3
mov qword [rbp - 0x20], rax
lea rax, [rbp + 0x40]
mov qword [rbp - 0xc], rax
lea r8d, [r9 + 0x3c]
mov qword [rbp - 0x28], r14
lea ecx, [r8 + 0x7d]
mov dword [rbp - 0x18], esi
call sub.ntdll.dll_NtQuerySystemInformation
mov ebx, dword [rbp - 0x50]
test ebx, ebx
js 0x140178638
xor edi, edi
cmp dword [rbp + 0x40], edi
jbe 0x14017863f
mov rsi, qword [rbp + 0x50]
mov rax, qword [rbp - 0x48]
mov r9, r15
mov rdx, r14
mov qword [rsp + 0x20], rsi
mov rcx, r12
mov r8, qword [rax + rdi*8]
call fcn.140179864
mov ebx, eax
test eax, eax
js 0x14017862f
inc edi
cmp edi, dword [rbp + 0x40]
jb 0x140178605
jmp 0x14017863f
mov ecx, eax
jmp 0x14017863a
mov ebx, 0x8007000e
mov ecx, ebx
call fcn.140079c40
mov ecx, ebx
call fcn.140079c60
and qword [rbp - 0x30], 0
lea rax, [0x1400382d8]
xor r9d, r9d
mov qword [rbp - 0x38], rax
lea rax, [rbp - 0x48]
mov qword [rbp - 0x40], 3
lea rdx, [rbp - 0x40]
mov qword [rbp - 0x28], rax
lea r8d, [r9 + 0x3c]
lea ecx, [r8 + 0x7d]
call sub.ntdll.dll_NtQuerySystemInformation
lea r11, [rsp + 0x80]
mov eax, ebx
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret