joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140162e3c
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 [0x14042f560], 0
mov rdi, rdx
jne 0x140162e69
mov ecx, 0xc004d101
jmp 0x140162ee4
lea r9, [rbp - 0x40]
mov r8d, 4
mov rdx, rcx
call fcn.140164368
mov ecx, eax
test eax, eax
js 0x140162ee4
mov rax, qword [rbp - 0x40]
test byte [rax + 0x18], 1
jne 0x140162e92
mov ecx, 0xc004d314
jmp 0x140162ee4
mov rcx, qword [rax + 0x10]
lea rdx, [rbp - 0x38]
lea rax, [0x1400250b8]
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 [0x14042f748]
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 0x140162ee9
call fcn.1400790f8
call fcn.1401609f0
mov ecx, eax
mov ebx, eax
call fcn.140079118
lea rcx, [rbp - 0x40]
call fcn.140052da8
mov rdi, qword [rsp + 0x78]
mov eax, ebx
mov rbx, qword [rsp + 0x70]
add rsp, 0x60
pop rbp
ret

Function at 0x140162f18
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 [0x14042f560], 0
jne 0x140162f3d
mov ecx, 0xc004d101
jmp 0x140162fb4
lea r9, [rbp + 0x28]
mov r8d, 4
mov rdx, rcx
call fcn.140164368
mov ecx, eax
test eax, eax
js 0x140162fb4
mov rax, qword [rbp + 0x28]
test byte [rax + 0x18], 2
jne 0x140162f66
mov ecx, 0xc004d314
jmp 0x140162fb4
mov rcx, qword [rax + 0x10]
lea rdx, [rbp - 0x30]
lea rax, [0x14002e978]
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 [0x14042f748]
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 0x140162fb9
call fcn.1400790f8
call fcn.1401609f0
mov ecx, eax
mov ebx, eax
call fcn.140079118
lea rcx, [rbp + 0x28]
call fcn.140052da8
mov eax, ebx
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
Function at 0x140162fe4
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 [0x14042f560], 0
jne 0x140163016
mov ecx, 0xc004d101
jmp 0x1401630a0
lea r9, [rbp + 0x18]
mov r8d, 4
mov rdx, rcx
call fcn.140164368
mov ecx, eax
test eax, eax
js 0x1401630a0
mov rax, qword [rbp + 0x18]
test byte [rax + 0x18], 1
jne 0x14016303f
mov ecx, 0xc004d314
jmp 0x1401630a0
mov rcx, qword [rax + 0x10]
lea rdx, [rbp - 0x50]
and qword [rbp - 0x1c], 0
lea rax, [0x1400246f8]
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 [0x14042f748]
mov qword [rbp - 0x38], rax
lea rax, [0x1403b75c0]
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 0x1401630a5
call fcn.1400790f8
call fcn.1401609f0
mov ecx, eax
mov ebx, eax
call fcn.140079118
lea rcx, [rbp + 0x18]
call fcn.140052da8
mov eax, ebx
mov rbx, qword [rsp + 0x80]
add rsp, 0x70
pop rbp
ret

Function at 0x1401630d4
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 [0x14042f560], 0
mov edi, edx
jne 0x140163103
mov ecx, 0xc004d101
jmp 0x1401631d5
test rcx, rcx
je 0x140163187
lea r9, [rbp - 0x48]
mov r8d, 4
mov rdx, rcx
call fcn.140164368
mov ecx, eax
test eax, eax
js 0x1401631d5
mov rax, qword [rbp - 0x48]
test byte [rax + 0x18], 1
jne 0x140163138
mov ecx, 0xc004d314
jmp 0x1401631d5
mov rcx, qword [rax + 0x10]
lea rdx, [rbp - 0x40]
lea rax, [0x1400132b8]
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 [0x14042f748]
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 0x1401631d1
and qword [rbp - 0x20], 0
lea rax, [0x1400132b8]
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 [0x14042f748]
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 0x1401631da
call fcn.1400790f8
call fcn.1401609f0
mov ecx, eax
mov ebx, eax
call fcn.140079118
lea rcx, [rbp - 0x48]
call fcn.140052da8
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 0x140163464
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbx
sub rsp, 0x10
mov rbx, r8
mov r11, rdx
xor r10d, r10d
test r9d, r9d
je 0x1401634db
mov dword [rsp], r10d
cmp r10d, r9d
jae 0x1401634db
inc byte [r11 + 0x100]
movzx r8d, byte [r11 + 0x100]
mov al, byte [r8 + r11]
add byte [r11 + 0x101], al
movzx edx, byte [r11 + 0x101]
mov cl, byte [rdx + r11]
mov al, byte [r8 + r11]
mov byte [rdx + r11], al
mov byte [r8 + r11], cl
movzx ecx, byte [r11 + 0x101]
movzx eax, byte [r11 + 0x100]
mov cl, byte [rcx + r11]
add cl, byte [rax + r11]
movzx eax, cl
mov cl, byte [rax + r11]
xor byte [r10 + rbx], cl
inc r10d
jmp 0x140163478
xor eax, eax
jmp 0x1401634e3
add rsp, 0x10
pop rbx
ret

Function at 0x140171828
Capabilities:
Get system information on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], r8
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x60
mov r14d, dword [rcx + 4]
mov r12, rdx
mov rdx, qword [rcx + 8]
mov rbx, r8
mov qword [rbp - 0x38], rdx
mov dword [rbp + 0x58], r14d
test r14d, r14d
je 0x14017193d
xor edi, edi
test r14d, r14d
jle 0x140171932
mov esi, r14d
mov rbx, rdx
lea r14, [0x14002a878]
mov eax, esi
mov qword [rbp - 0x30], 3
cdq
mov qword [rbp - 0x28], r14
sub eax, edx
mov qword [rbp - 0x10], r12
sar eax, 1
xor r9d, r9d
mov r15d, eax
lea r13d, [rax + rdi]
movsxd rcx, r13d
lea rax, [rbp + 0x40]
lea r8d, [r9 + 0x28]
mov qword [rbp - 0x20], rax
lea rdx, [rbx + rcx*8]
mov ecx, 0xb9
mov qword [rbp - 0x18], rdx
lea rdx, [rbp - 0x30]
call sub.ntdll.dll_NtQuerySystemInformation
cmp dword [rbp + 0x40], 0
jge 0x1401718d5
or eax, 0xffffffff
lea edi, [r13 + 1]
sub eax, r15d
add esi, eax
jmp 0x1401718d8
mov esi, r15d
test esi, esi
jg 0x14017187b
mov rbx, qword [rbp + 0x50]
cmp edi, dword [rbp + 0x58]
jge 0x140171932
mov rdx, qword [rbp - 0x38]
xor r9d, r9d
movsxd rax, edi
mov ecx, 0xb9
mov qword [rbp - 0x30], 3
mov qword [rbp - 0x18], r12
lea r8d, [r9 + 0x28]
lea rdx, [rdx + rax*8]
lea rax, [0x14002a878]
mov qword [rbp - 0x10], rdx
mov qword [rbp - 0x28], rax
lea rdx, [rbp - 0x30]
lea rax, [rbp - 0x40]
mov qword [rbp - 0x20], rax
call sub.ntdll.dll_NtQuerySystemInformation
cmp dword [rbp - 0x40], 0
jl 0x140171932
mov al, 1
jmp 0x140171934
xor al, al
test rbx, rbx
je 0x140171948
mov dword [rbx], edi
jmp 0x140171948
xor al, al
test rbx, rbx
je 0x140171948
and dword [r8], 0
mov rbx, qword [rsp + 0xa8]
add rsp, 0x60
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x140172cec
Capabilities:
Get system information on windows

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
xor eax, eax
mov rsi, rcx
lea rcx, [rbp - 0x21]
mov qword [rbp - 0x21], rax
mov qword [rbp - 0x19], rax
mov r15, r8
mov qword [rbp - 0x11], rax
mov r14, rdx
call qword [sym.imp.OLEAUT32.dll_VariantClear]
xor eax, eax
lea rcx, [rbp - 0x39]
mov qword [rbp - 0x39], rax
mov qword [rbp - 0x31], rax
mov qword [rbp - 0x29], rax
call qword [sym.imp.OLEAUT32.dll_VariantClear]
mov rax, qword [rsi]
mov r12d, 3
movsd xmm1, qword [rbp - 0x29]
xor edi, edi
and qword [rbp + 0x67], 0
cmp dword [0x14042fd28], 1
mov rbx, qword [rax + 0x1c0]
lea r13d, [r12 + 5]
cmove rdi, qword [0x14042f518]
mov rcx, rbx
mov dword [rbp - 0x31], r13d
mov word [rbp - 0x39], r12w
movups xmm0, xmmword [rbp - 0x39]
movsd qword [rbp + 7], xmm1
movaps xmmword [rbp - 9], xmm0
call qword [0x1403af620]
lea rax, [rbp + 0x67]
xor r9d, r9d
mov r8, rdi
mov qword [rsp + 0x20], rax
lea rdx, [rbp - 9]
mov rcx, rsi
call rbx
mov ebx, eax
test eax, eax
js 0x140172e18
movsd xmm1, qword [rbp - 0x11]
mov rbx, qword [rbp + 0x67]
mov qword [rbp - 0x19], r15
mov word [rbp - 0x21], r13w
movups xmm0, xmmword [rbp - 0x21]
mov rax, qword [rbx]
movsd qword [rbp + 7], xmm1
movaps xmmword [rbp - 9], xmm0
mov rdi, qword [rax + 0x48]
mov rcx, rdi
call qword [0x1403af620]
lea rdx, [rbp - 9]
mov rcx, rbx
call rdi
mov ebx, eax
test eax, eax
js 0x140172e18
mov rax, qword [r14]
mov rbx, qword [rax + 0xa8]
mov rcx, rbx
call qword [0x1403af620]
mov rdx, qword [rbp + 0x67]
xor r8d, r8d
mov rcx, r14
call rbx
mov ebx, eax
test eax, eax
jns 0x140172e1f
mov ecx, eax
call fcn.1400790f8
mov ecx, ebx
call fcn.140079118
and qword [rbp + 0x27], 0
lea rax, [0x14001ef38]
xor r9d, r9d
mov qword [rbp + 0x1f], rax
lea rax, [rbp + 0x67]
mov qword [rbp + 0x17], r12
lea rdx, [rbp + 0x17]
mov qword [rbp + 0x2f], rax
mov ecx, 0xb9
lea r8d, [r9 + 0x20]
call sub.ntdll.dll_NtQuerySystemInformation
lea r11, [rsp + 0xa0]
mov eax, ebx
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
Function at 0x140172f9c
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 0x140173106
mov r15d, dword [rcx + 4]
cmp esi, r15d
cmovl r15d, esi
test edx, edx
jle 0x14017307e
xor ebx, ebx
mov rcx, rsi
test edx, edx
je 0x14017300b
mov r14, rcx
shl r14, 3
mov rax, r14
shr rax, 3
cmp rax, rcx
je 0x14017300e
mov ebx, 0x80070216
mov ecx, ebx
call fcn.1400790f8
mov r14, qword [rbp + 0x20]
jmp 0x14017300e
xor r14d, r14d
mov ecx, ebx
call fcn.140079118
test ebx, ebx
jns 0x140173025
mov ecx, ebx
call fcn.1400790f8
jmp 0x140173108
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 0x140173059
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 0x14017315f
mov qword [rbp + 0x20], rbx
test r15d, r15d
je 0x14017307e
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 0x1401730cd
mov ebx, esi
mov rcx, qword [rdi + 8]
movsxd rax, ebx
lea rdx, [rcx + rax*8]
test rdx, rdx
je 0x1401730c6
and qword [rbp - 0x10], 0
lea rax, [0x14001aaf8]
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 0x140173085
mov r14, qword [rbp + 0x20]
and qword [rbp + 0x20], 0
mov rbx, qword [rdi + 8]
test rbx, rbx
je 0x1401730f3
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.140079118
and qword [rbp - 0x10], 0
lea rax, [0x1400291b8]
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 0x140173019
Function at 0x140173170
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 0x14017319c
mov ebx, 0x8000ffff
mov ecx, ebx
jmp 0x1401731b3
lea r8, [rsp + 0x70]
mov edx, 1
call fcn.140078744
mov ebx, eax
test eax, eax
jns 0x1401731bd
mov ecx, eax
call fcn.1400790f8
jmp 0x140173267
mov edx, dword [rsp + 0x70]
mov rcx, rdi
call fcn.140174478
mov ebx, eax
test eax, eax
js 0x1401731b1
mov ecx, dword [rdi + 4]
mov rbx, rsi
cmp esi, ecx
jge 0x1401731f3
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 0x140173255
lea rcx, [0x14001f278]
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.140079118
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 0x14017328c
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 0x1401733f6
mov r15d, dword [rcx + 4]
cmp esi, r15d
cmovl r15d, esi
test edx, edx
jle 0x14017336e
xor ebx, ebx
mov rcx, rsi
test edx, edx
je 0x1401732fb
mov r14, rcx
shl r14, 3
mov rax, r14
shr rax, 3
cmp rax, rcx
je 0x1401732fe
mov ebx, 0x80070216
mov ecx, ebx
call fcn.1400790f8
mov r14, qword [rbp + 0x20]
jmp 0x1401732fe
xor r14d, r14d
mov ecx, ebx
call fcn.140079118
test ebx, ebx
jns 0x140173315
mov ecx, ebx
call fcn.1400790f8
jmp 0x1401733f8
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 0x140173349
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 0x14017344f
mov qword [rbp + 0x20], rbx
test r15d, r15d
je 0x14017336e
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 0x1401733bd
mov ebx, esi
mov rcx, qword [rdi + 8]
movsxd rax, ebx
lea rdx, [rcx + rax*8]
test rdx, rdx
je 0x1401733b6
and qword [rbp - 0x10], 0
lea rax, [0x1400202b8]
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 0x140173375
mov r14, qword [rbp + 0x20]
and qword [rbp + 0x20], 0
mov rbx, qword [rdi + 8]
test rbx, rbx
je 0x1401733e3
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.140079118
and qword [rbp - 0x10], 0
lea rax, [0x14001a7b8]
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 0x140173309
Function at 0x140173b94
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, [0x1400169f8]
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, [0x1403b8928]
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 0x140173c22
xor ebx, ebx
jmp 0x140173d0b
test ebx, ebx
js 0x140173d04
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 0x140173c65
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 0x140173cff
lea rax, [0x1400169f8]
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, [0x1403b8928]
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 0x140173d04
xor edi, edi
cmp dword [rbp + 0x40], edi
jbe 0x140173d0b
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.140174efc
mov ebx, eax
test eax, eax
js 0x140173cfb
inc edi
cmp edi, dword [rbp + 0x40]
jb 0x140173cd1
jmp 0x140173d0b
mov ecx, eax
jmp 0x140173d06
mov ebx, 0x8007000e
mov ecx, ebx
call fcn.1400790f8
mov ecx, ebx
call fcn.140079118
and qword [rbp - 0x30], 0
lea rax, [0x1400205f8]
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
Function at 0x1401749f0
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 0x140174b6a
mov r15d, dword [rcx + 4]
cmp esi, r15d
cmovl r15d, esi
test edx, edx
jle 0x140174ade
xor ebx, ebx
test edx, edx
je 0x140174a67
lea r14, [rsi + rsi*8]
movabs rax, 0xe38e38e38e38e38f
shl r14, 3
mul r14
shr rdx, 6
cmp rdx, rsi
je 0x140174a6a
mov ebx, 0x80070216
mov ecx, ebx
call fcn.1400790f8
mov r14, qword [rbp + 0x20]
jmp 0x140174a6a
xor r14d, r14d
mov ecx, ebx
call fcn.140079118
test ebx, ebx
jns 0x140174a81
mov ecx, ebx
call fcn.1400790f8
jmp 0x140174b6c
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 0x140174ab5
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 0x140174bc3
mov qword [rbp + 0x20], rbx
test r15d, r15d
je 0x140174ade
mov rdx, qword [rdi + 8]
mov rcx, rbx
movsxd rax, r15d
lea r8, [rax + rax*8]
shl r8, 3
call sub.msvcrt.dll_memcpy
cmp esi, dword [rdi + 4]
jge 0x140174b31
mov ebx, esi
mov rdx, qword [rdi + 8]
movsxd rax, ebx
lea rcx, [rax + rax*8]
lea rax, [rdx + rcx*8]
test rax, rax
je 0x140174b2a
and qword [rbp - 0x10], 0
lea rcx, [0x140033df8]
xor r9d, r9d
mov qword [rbp - 0x18], rcx
lea rdx, [rbp - 0x20]
mov qword [rbp - 0x20], 3
mov ecx, 0xb9
mov qword [rbp - 8], rax
lea r8d, [r9 + 0x20]
call sub.ntdll.dll_NtQuerySystemInformation
inc ebx
cmp ebx, dword [rdi + 4]
jl 0x140174ae5
mov r14, qword [rbp + 0x20]
and qword [rbp + 0x20], 0
mov rbx, qword [rdi + 8]
test rbx, rbx
je 0x140174b57
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.140079118
and qword [rbp - 0x10], 0
lea rax, [0x140026778]
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 0x140174a75
Function at 0x140174bd4
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 r14, rcx
mov qword [rbp + 0x20], rbx
cmp dword [rcx], esi
je 0x140174ce8
mov r15d, dword [rcx + 4]
cmp esi, r15d
cmovl r15d, esi
test edx, edx
jle 0x140174cb0
mov rcx, rsi
mov rdi, rcx
shl rdi, 5
mov rax, rdi
shr rax, 5
cmp rax, rcx
je 0x140174c3c
mov ebx, 0x80070216
mov ecx, ebx
call fcn.1400790f8
mov rdi, qword [rbp + 0x20]
mov ecx, ebx
call fcn.140079118
test ebx, ebx
jns 0x140174c53
mov ecx, ebx
call fcn.1400790f8
jmp 0x140174ce8
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rdi
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rdi, qword [rbp + 0x20]
mov rbx, rax
test rdi, rdi
je 0x140174c87
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 0x140174d3f
mov qword [rbp + 0x20], rbx
test r15d, r15d
je 0x140174cb0
mov rdx, qword [r14 + 8]
mov rcx, rbx
movsxd r8, r15d
shl r8, 5
call sub.msvcrt.dll_memcpy
mov rbx, qword [rbp + 0x20]
and qword [rbp + 0x20], 0
mov rdi, qword [r14 + 8]
test rdi, rdi
je 0x140174cd2
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rdi
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 [r14 + 8], rax
mov dword [r14 + 4], r15d
mov dword [r14], esi
mov ecx, ebx
call fcn.140079118
and qword [rbp - 0x10], 0
lea rax, [0x14001ff78]
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 0x140174c47