joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140164490
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 rsi, edx
mov rdi, rcx
mov qword [rbp + 0x20], rbx
cmp dword [rcx], esi
je 0x1401645af
mov r14d, dword [rcx + 4]
cmp esi, r14d
cmovl r14d, esi
test edx, edx
jle 0x140164573
mov rcx, rsi
mov r15, rcx
shl r15, 3
mov rax, r15
shr rax, 3
cmp rax, rcx
je 0x1401644f8
mov ebx, 0x80070216
mov ecx, ebx
call fcn.14007ab24
mov r15, qword [rbp + 0x20]
mov ecx, ebx
call fcn.14007ab44
test ebx, ebx
jns 0x14016450f
mov ecx, ebx
call fcn.14007ab24
jmp 0x1401645af
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 0x140164543
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
jne 0x140164553
and qword [rbp + 0x20], rbx
mov ebx, 0x8007000e
jmp 0x140164503
mov qword [rbp + 0x20], rbx
test r14d, r14d
je 0x140164573
mov rdx, qword [rdi + 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 [rdi + 8]
test r15, r15
je 0x14016459a
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, r15
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
and qword [rdi + 8], 0
xor eax, eax
test rbx, rbx
cmovne rax, rbx
xor ebx, ebx
mov qword [rdi + 8], rax
mov dword [rdi + 4], r14d
mov dword [rdi], esi
mov ecx, ebx
call fcn.14007ab44
and qword [rbp - 0x10], 0
lea rax, [0x1400284b8]
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
Function at 0x1401646f8
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 rsi, edx
mov rdi, rcx
mov qword [rbp + 0x20], rbx
cmp dword [rcx], esi
je 0x140164823
mov r14d, dword [rcx + 4]
cmp esi, r14d
cmovl r14d, esi
test edx, edx
jle 0x1401647e7
lea r15, [rsi + rsi*2]
movabs rax, 0xaaaaaaaaaaaaaaab
shl r15, 3
mul r15
shr rdx, 4
cmp rdx, rsi
je 0x140164768
mov ebx, 0x80070216
mov ecx, ebx
call fcn.14007ab24
mov r15, qword [rbp + 0x20]
mov ecx, ebx
call fcn.14007ab44
test ebx, ebx
jns 0x14016477f
mov ecx, ebx
call fcn.14007ab24
jmp 0x140164823
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 0x1401647b3
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
jne 0x1401647c3
and qword [rbp + 0x20], rbx
mov ebx, 0x8007000e
jmp 0x140164773
mov qword [rbp + 0x20], rbx
test r14d, r14d
je 0x1401647e7
mov rdx, qword [rdi + 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 [rdi + 8]
test r15, r15
je 0x14016480e
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, r15
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
and qword [rdi + 8], 0
xor eax, eax
test rbx, rbx
cmovne rax, rbx
xor ebx, ebx
mov qword [rdi + 8], rax
mov dword [rdi + 4], r14d
mov dword [rdi], esi
mov ecx, ebx
call fcn.14007ab44
and qword [rbp - 0x10], 0
lea rax, [0x1400287f8]
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
Function at 0x140164880
Capabilities:
Get system information on windows

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
sub rsp, 0x50
mov rdi, rcx
movsxd rsi, edx
mov ecx, dword [rcx + 4]
mov rbp, r8
test ecx, ecx
jns 0x1401648a5
mov ebx, 0x8000ffff
mov ecx, ebx
jmp 0x1401648bc
lea r8, [rsp + 0x70]
mov edx, 1
call fcn.14007a14c
mov ebx, eax
test eax, eax
jns 0x1401648c6
mov ecx, eax
call fcn.14007ab24
jmp 0x140164970
mov edx, dword [rsp + 0x70]
mov rcx, rdi
call fcn.140165280
mov ebx, eax
test eax, eax
js 0x1401648ba
mov r8d, dword [rdi + 4]
mov rbx, rsi
cmp esi, r8d
jge 0x140164902
sub r8d, esi
mov rdx, rsi
shl rdx, 4
add rdx, qword [rdi + 8]
movsxd r8, r8d
shl r8, 4
lea rcx, [rdx + 0x10]
call sub.msvcrt.dll_memmove
mov rcx, qword [rdi + 8]
xor eax, eax
shl rbx, 4
add rcx, rbx
mov qword [rcx], rax
mov qword [rcx + 8], rax
test rcx, rcx
je 0x140164922
and qword [rcx], rax
and qword [rcx + 8], rax
mov rax, qword [rdi + 8]
lea rcx, [0x14002eff8]
mov qword [rsp + 0x28], rcx
lea rdx, [rsp + 0x20]
xor r9d, r9d
mov qword [rsp + 0x20], 3
lea rcx, [rsp + 0x88]
mov qword [rsp + 0x40], rbp
mov qword [rsp + 0x30], rcx
add rax, rbx
mov ecx, 0xb9
mov qword [rsp + 0x38], rax
lea r8d, [r9 + 0x28]
call sub.ntdll.dll_NtQuerySystemInformation
inc dword [rdi + 4]
xor ebx, ebx
mov ecx, ebx
call fcn.14007ab44
mov eax, ebx
mov rbx, qword [rsp + 0x78]
add rsp, 0x50
pop rdi
pop rsi
pop rbp
ret
Function at 0x14016498c
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 0x140164aff
mov r15d, dword [rcx + 4]
cmp esi, r15d
cmovl r15d, esi
test edx, edx
jle 0x140164a75
xor ebx, ebx
mov rcx, rsi
test edx, edx
je 0x1401649fb
mov r14, rcx
shl r14, 4
mov rax, r14
shr rax, 4
cmp rax, rcx
je 0x1401649fe
mov ebx, 0x80070216
mov ecx, ebx
call fcn.14007ab24
mov r14, qword [rbp + 0x20]
jmp 0x1401649fe
xor r14d, r14d
mov ecx, ebx
call fcn.14007ab44
test ebx, ebx
jns 0x140164a15
mov ecx, ebx
call fcn.14007ab24
jmp 0x140164b01
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 0x140164a49
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
jne 0x140164a59
and qword [rbp + 0x20], rbx
mov ebx, 0x8007000e
jmp 0x140164a09
mov qword [rbp + 0x20], rbx
test r15d, r15d
je 0x140164a75
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 0x140164ac1
mov ebx, esi
movsxd rdx, ebx
shl rdx, 4
add rdx, qword [rdi + 8]
je 0x140164aba
and qword [rbp - 0x10], 0
lea rax, [0x1400291b8]
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 0x140164a7c
mov r14, qword [rbp + 0x20]
and qword [rbp + 0x20], 0
mov rbx, qword [rdi + 8]
test rbx, rbx
je 0x140164aec
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rbx
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
and qword [rdi + 8], 0
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.14007ab44
and qword [rbp - 0x10], 0
lea rax, [0x140028b38]
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
Function at 0x140165cf4
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 [0x140438460], 0
jne 0x140165d30
mov ecx, 0xc004d101
jmp 0x140165dbd
and dword [rbp - 9], 0
lea rax, str.data.dat
mov qword [rbp - 1], rax
lea rdx, [rbp - 0x39]
mov rcx, 0xffffffff80000002
mov qword [rbp + 7], rbx
lea rax, str.SOFTWAREMicrosoftWindows_NTCurrentVersionSoftwareProtectionPlatform
mov qword [rbp + 0xf], rcx
mov qword [rbp + 0x17], rax
xor r9d, r9d
lea rax, str.SYSTEMWPA
mov qword [rbp + 0x1f], rcx
mov qword [rbp + 0x27], rax
mov ecx, 0xb9
mov rax, qword [0x140438440]
mov qword [rbp + 0x2f], rax
lea r8d, [r9 + 0x28]
lea rax, [0x14002d5f8]
mov qword [rbp - 0x39], 3
mov qword [rbp - 0x31], rax
lea rax, [rbp + 0x5f]
mov qword [rbp - 0x29], rax
mov rax, qword [0x140438648]
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 0x140165dc2
call fcn.14007ab24
call fcn.140165ac4
mov ecx, eax
mov ebx, eax
call fcn.14007ab44
mov eax, ebx
mov rbx, qword [rsp + 0xa0]
add rsp, 0x90
pop rbp
ret

Function at 0x14016618c
Capabilities:
Get system information on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov dword [rsp + 0x18], r8d
push rbp
push rdi
push r14
mov rbp, rsp
sub rsp, 0x60
and qword [rbp - 0x38], 0
xor ebx, ebx
cmp dword [0x140438460], ebx
mov r14d, r9d
mov rdi, rdx
mov qword [rbp - 0x40], rbx
mov rsi, rcx
jne 0x1401661cc
mov ecx, 0xc004d101
jmp 0x140166284
test rsi, rsi
je 0x14016627f
test rdi, rdi
je 0x14016627f
mov ecx, r14d
call fcn.140165b64
mov ecx, eax
test eax, eax
js 0x140166284
lea r9, [rbp - 0x40]
mov r8d, 1
mov rdx, rdi
call fcn.140169448
mov ecx, eax
test eax, eax
jns 0x140166213
call fcn.14007ab24
mov rbx, qword [rbp - 0x40]
jmp 0x140166289
mov rbx, qword [rbp - 0x40]
lea rax, [0x140030378]
mov qword [rbp - 0x28], rax
lea rdx, [rbp - 0x30]
xor r9d, r9d
mov qword [rbp - 0x30], 3
lea rax, [rbp + 0x30]
mov qword [rbp - 0x18], rbx
mov qword [rbp - 0x20], rax
mov ecx, 0xb9
lea rax, [rbp - 0x38]
mov dword [rbp - 8], 0x2001b
lea r8d, [r9 + 0x30]
mov qword [rbp - 0x10], rax
mov dword [rbp - 4], r14d
call sub.ntdll.dll_NtQuerySystemInformation
mov ecx, dword [rbp + 0x30]
test ecx, ecx
js 0x140166284
mov rdx, qword [rbp - 0x38]
mov r9, rsi
mov r8d, 2
call fcn.140168ac0
mov ecx, eax
test eax, eax
jns 0x140166289
jmp 0x140166284
mov ecx, 0x80070057
call fcn.14007ab24
call fcn.140165ac4
mov ecx, eax
mov esi, eax
call fcn.14007ab44
test rbx, rbx
je 0x1401662d4
add rbx, 8
or ecx, 0xffffffff
lock xadd dword [rbx], ecx
cmp ecx, 1
jne 0x1401662d4
lea rax, [rbx - 8]
neg rbx
sbb rdi, rdi
and rdi, rax
je 0x1401662d4
mov rax, qword [rdi]
mov rbx, qword [rax]
mov rcx, rbx
call qword [0x1403b8660]
mov edx, 1
mov rcx, rdi
call rbx
lea rcx, [rbp - 0x38]
call fcn.140054198
lea r11, [rsp + 0x60]
mov eax, esi
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
Function at 0x1401662fc
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
push rbp
push r14
push r15
lea rbp, [rax - 0x47]
sub rsp, 0x90
and qword [rbp - 0x31], 0
xor ebx, ebx
cmp dword [0x140438460], ebx
mov r14d, r9d
mov r15d, r8d
mov qword [rbp - 0x39], rbx
mov rdi, rdx
mov rsi, rcx
jne 0x140166344
mov ecx, 0xc004d101
jmp 0x140166420
test rsi, rsi
je 0x14016641b
test rdi, rdi
je 0x14016641b
mov ecx, r14d
call fcn.140165b64
mov ecx, eax
test eax, eax
js 0x140166420
lea r9, [rbp - 0x39]
mov r8d, 1
mov rdx, rdi
call fcn.140169448
mov ecx, eax
test eax, eax
jns 0x14016638e
call fcn.14007ab24
mov rbx, qword [rbp - 0x39]
jmp 0x140166425
mov rax, qword [rbp + 0x6f]
lea rdx, [rbp - 0x11]
mov rbx, qword [rbp - 0x39]
xor r9d, r9d
mov qword [rbp - 0x21], rax
mov eax, dword [rbp + 0x77]
mov dword [rbp - 0x19], eax
lea rax, [0x1400472b8]
movaps xmm0, xmmword [rbp - 0x21]
lea r8d, [r9 + 0x3c]
mov qword [rbp - 9], rax
lea ecx, [r8 + 0x7d]
lea rax, [rbp - 0x41]
movdqa xmmword [rbp - 0x21], xmm0
mov qword [rbp - 1], rax
lea rax, [rbp - 0x31]
mov qword [rbp + 0xf], rax
lea rax, [rbp - 0x21]
mov qword [rbp + 0x1f], rax
mov eax, dword [rbp + 0x7f]
mov dword [rbp + 0x27], eax
mov qword [rbp - 0x11], 3
mov qword [rbp + 7], rbx
mov dword [rbp + 0x17], r15d
mov dword [rbp + 0x1b], r14d
call sub.ntdll.dll_NtQuerySystemInformation
mov ecx, dword [rbp - 0x41]
test ecx, ecx
js 0x140166420
mov rdx, qword [rbp - 0x31]
mov r9, rsi
mov r8d, 2
call fcn.140168ac0
mov ecx, eax
test eax, eax
jns 0x140166425
jmp 0x140166420
mov ecx, 0x80070057
call fcn.14007ab24
call fcn.140165ac4
mov ecx, eax
mov esi, eax
call fcn.14007ab44
test rbx, rbx
je 0x140166470
add rbx, 8
or ecx, 0xffffffff
lock xadd dword [rbx], ecx
cmp ecx, 1
jne 0x140166470
lea rax, [rbx - 8]
neg rbx
sbb rdi, rdi
and rdi, rax
je 0x140166470
mov rax, qword [rdi]
mov rbx, qword [rax]
mov rcx, rbx
call qword [0x1403b8660]
mov edx, 1
mov rcx, rdi
call rbx
lea rcx, [rbp - 0x31]
call fcn.140054198
lea r11, [rsp + 0x90]
mov eax, esi
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x14016656c
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
push rbp
lea rbp, [rax - 0x5f]
sub rsp, 0x90
and qword [rbp - 0x11], 0
xor ebx, ebx
cmp dword [0x140438460], ebx
mov esi, r8d
mov rdi, rcx
mov qword [rbp - 0x19], rbx
jne 0x1401665aa
mov ecx, 0xc004d101
jmp 0x14016666c
test rdi, rdi
je 0x140166667
test rdx, rdx
je 0x140166667
test esi, esi
je 0x140166667
lea r9, [rbp - 0x19]
mov r8d, 1
call fcn.140169448
mov ecx, eax
test eax, eax
jns 0x1401665e7
call fcn.14007ab24
mov rbx, qword [rbp - 0x19]
jmp 0x140166671
and qword [rbp - 9], rbx
lea rax, [0x140035e78]
and dword [rbp - 1], ebx
lea rdx, [rbp + 0x17]
movaps xmm0, xmmword [rbp - 9]
xor r9d, r9d
mov rbx, qword [rbp - 0x19]
mov ecx, 0xb9
and dword [rbp + 0x4b], 0
mov qword [rbp + 0x1f], rax
lea rax, [rbp + 0x7f]
mov qword [rbp + 0x27], rax
lea r8d, [r9 + 0x38]
lea rax, [rbp - 0x11]
movdqa xmmword [rbp + 7], xmm0
mov qword [rbp + 0x37], rax
lea rax, [rbp + 7]
mov qword [rbp + 0x43], rax
mov qword [rbp + 0x17], 3
mov qword [rbp + 0x2f], rbx
mov dword [rbp + 0x3f], esi
call sub.ntdll.dll_NtQuerySystemInformation
mov ecx, dword [rbp + 0x7f]
test ecx, ecx
js 0x14016666c
mov rdx, qword [rbp - 0x11]
mov r9, rdi
mov r8d, 3
call fcn.140168ac0
mov ecx, eax
test eax, eax
jns 0x140166671
jmp 0x14016666c
mov ecx, 0x80070057
call fcn.14007ab24
call fcn.140165ac4
mov ecx, eax
mov esi, eax
call fcn.14007ab44
test rbx, rbx
je 0x1401666bc
add rbx, 8
or ecx, 0xffffffff
lock xadd dword [rbx], ecx
cmp ecx, 1
jne 0x1401666bc
lea rax, [rbx - 8]
neg rbx
sbb rdi, rdi
and rdi, rax
je 0x1401666bc
mov rax, qword [rdi]
mov rbx, qword [rax]
mov rcx, rbx
call qword [0x1403b8660]
mov edx, 1
mov rcx, rdi
call rbx
mov rax, qword [rbp - 0x11]
test rax, rax
je 0x1401666fd
lea rcx, [rax + 8]
or eax, 0xffffffff
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x1401666fd
lea rax, [rcx - 8]
neg rcx
sbb rdi, rdi
and rdi, rax
je 0x1401666fd
mov rax, qword [rdi]
mov rbx, qword [rax]
mov rcx, rbx
call qword [0x1403b8660]
mov edx, 1
mov rcx, rdi
call rbx
lea r11, [rsp + 0x90]
mov eax, esi
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
Function at 0x140167360
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 [0x140438460], 0
jne 0x14016738d
mov ecx, 0xc004d101
call fcn.14007ab24
jmp 0x14016742c
test rbx, rbx
jne 0x140167399
mov ecx, 0x80070057
jmp 0x140167383
lea r9, [rbp + 0x28]
mov r8d, 4
mov rdx, rcx
call fcn.140169448
mov ecx, eax
test eax, eax
js 0x140167383
mov rax, qword [rbp + 0x28]
test byte [rax + 0x18], 1
jne 0x1401673c2
mov ecx, 0xc004d314
jmp 0x140167383
mov rcx, qword [rax + 0x10]
lea rdx, [rbp - 0x38]
lea rax, [0x14002dfb8]
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 [0x140438648]
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 0x140167383
mov rax, qword [rbp - 0x40]
mov dword [rbx], eax
shr rax, 0x20
mov dword [rbx + 4], eax
call fcn.140165ac4
mov ecx, eax
mov ebx, eax
call fcn.14007ab44
lea rcx, [rbp + 0x28]
call fcn.140054198
mov eax, ebx
mov rbx, qword [rsp + 0x70]
add rsp, 0x60
pop rbp
ret

Function at 0x140167458
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 [0x140438460], 0
mov edi, edx
jne 0x140167487
mov ecx, 0xc004d101
jmp 0x140167510
lea r9, [rbp - 0x40]
mov r8d, 4
mov rdx, rcx
call fcn.140169448
mov ecx, eax
test eax, eax
js 0x140167510
mov rax, qword [rbp - 0x40]
test byte [rax + 0x18], 1
jne 0x1401674b0
mov ecx, 0xc004d314
jmp 0x140167510
mov ecx, ebx
and ecx, 2
test cl, cl
je 0x1401674c0
mov ecx, 0x80070057
jmp 0x140167510
mov rcx, qword [rax + 0x10]
lea rdx, [rbp - 0x38]
lea rax, [0x14003afb8]
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 [0x140438648]
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 0x140167515
call fcn.14007ab24
call fcn.140165ac4
mov ecx, eax
mov ebx, eax
call fcn.14007ab44
lea rcx, [rbp - 0x40]
call fcn.140054198
mov rdi, qword [rsp + 0x78]
mov eax, ebx
mov rbx, qword [rsp + 0x70]
add rsp, 0x60
pop rbp
ret
Function at 0x140167544
Capabilities:
Get system information on windows

Disassembly:
push rbx
sub rsp, 0x60
cmp dword [0x140438460], 0
jne 0x14016755a
mov ecx, 0xc004d101
jmp 0x1401675b8
lea rax, [0x14002a1f8]
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 [0x140438648]
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 0x1401675bd
call fcn.14007ab24
call fcn.140165ac4
mov ecx, eax
mov ebx, eax
call fcn.14007ab44
mov eax, ebx
add rsp, 0x60
pop rbx
ret
Function at 0x1401675dc
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 [0x140438460], 0
mov r12, rcx
jne 0x140167625
mov edx, 0xc004d101
mov ecx, edx
call fcn.14007ab24
jmp 0x1401677c9
test r12, r12
jne 0x140167631
mov edx, 0x80070057
jmp 0x140167619
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 0x140167666
mov dword [rax + 8], 1
lea rax, [0x1403a2348]
mov qword [rbx], rax
and qword [rbx + 0x10], 0
jmp 0x140167668
xor ebx, ebx
mov qword [rbp - 0x50], rbx
test rbx, rbx
jne 0x140167678
mov edx, 0x8007000e
jmp 0x140167619
test r14, r14
jne 0x140167688
mov edx, 0x80070057
mov edi, edx
mov ecx, edx
jmp 0x1401676c4
test sil, 3
je 0x14016767d
test esi, 0xfffffff8
jne 0x14016767d
mov eax, esi
and al, 6
cmp al, 4
je 0x14016767d
lea rdx, [rbx + 0x10]
mov dword [rbx + 0x18], esi
mov rcx, r14
call fcn.14007a9ec
mov edi, eax
test eax, eax
js 0x1401676c2
mov rcx, qword [rbx + 0x10]
call fcn.14017fbc4
mov edi, eax
test eax, eax
jns 0x1401676c9
mov ecx, eax
call fcn.14007ab24
mov ecx, edi
call fcn.14007ab44
mov edx, edi
test edi, edi
jns 0x1401676dd
mov ecx, edi
jmp 0x14016761b
lea rax, [0x14002dfb8]
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 [0x140438648]
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 0x140167619
lea r9, [rbp - 0x58]
mov r8d, 4
mov rdx, rbx
call fcn.140168ac0
mov edx, eax
test eax, eax
jns 0x140167763
mov ecx, eax
jmp 0x14016761b
cmp edi, r15d
jne 0x1401677bc
test sil, 4
je 0x140167809
lea rax, [0x140019ab8]
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 [0x140438648]
lea r8d, [r9 + 0x34]
mov qword [rbp - 0x28], rax
call sub.ntdll.dll_NtQuerySystemInformation
mov edx, dword [rbp - 0x60]
test edx, edx
js 0x140167619
mov rax, qword [rbp - 0x58]
and qword [rbp - 0x58], 0
mov qword [r12], rax
mov ecx, edx
call fcn.140165ac4
mov ecx, eax
mov ebx, eax
call fcn.14007ab44
lea rcx, [rbp - 0x58]
call fcn.140056e74
lea rcx, [rbp - 0x50]
call fcn.140054198
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 0x14016761b