joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14015ae98
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
mov qword [rax + 8], rcx
push rbp
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x80
xor edi, edi
mov r15, r9
mov qword [rbp - 0x38], rdi
mov esi, edi
mov qword [rbp - 0x30], rdi
mov r12, r8
mov qword [rbp - 0x40], rdi
mov r13, rdx
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
xor edx, edx
lea r8d, [rdi + 0x20]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov r14, rax
test rax, rax
je 0x14015af17
mov qword [rax + 8], rdi
mov qword [rax + 0x10], rdi
lea rax, [0x140395268]
mov qword [r14], rax
mov dword [r14 + 0x18], 1
lock inc dword [0x14042e944]
jmp 0x14015af1a
mov r14, rdi
mov rbx, qword [rbp - 0x40]
test rbx, rbx
je 0x14015af3a
mov rax, qword [rbx]
mov rdi, qword [rax + 0x10]
mov rcx, rdi
call qword [0x1403af620]
mov rcx, rbx
call rdi
xor edi, edi
mov qword [rbp - 0x40], r14
test r14, r14
jne 0x14015af51
mov esi, 0x8007000e
mov ecx, esi
call fcn.1400790f8
jmp 0x14015af59
mov qword [rbp - 0x40], rdi
mov qword [rbp - 0x30], r14
mov ecx, esi
call fcn.140079118
mov r14d, 3
mov qword [rbp - 0x18], rdi
lea rax, [0x140023378]
mov qword [rbp - 0x28], r14
mov qword [rbp - 0x20], rax
lea rdx, [rbp - 0x28]
lea rax, [rbp - 0x40]
xor r9d, r9d
lea r8d, [r14 + 0x1d]
mov qword [rbp - 0x10], rax
mov ecx, 0xb9
call sub.ntdll.dll_NtQuerySystemInformation
test esi, esi
jns 0x14015af9e
mov ecx, esi
jmp 0x14015afcb
mov rbx, qword [rbp - 0x30]
mov rax, qword [rbx]
mov rdi, qword [rax]
mov rcx, rdi
call qword [0x1403af620]
lea r8, [rbp - 0x38]
mov rcx, rbx
lea rdx, [0x1403b53e0]
call rdi
xor edi, edi
mov esi, eax
test eax, eax
jns 0x14015afd0
mov ecx, eax
call fcn.1400790f8
mov ecx, esi
call fcn.140079118
xor r9d, r9d
mov qword [rbp - 0x28], r14
lea rax, [0x140023378]
mov qword [rbp - 0x18], rdi
mov qword [rbp - 0x20], rax
lea rdx, [rbp - 0x28]
lea rax, [rbp - 0x30]
mov ecx, 0xb9
lea r8d, [r9 + 0x20]
mov qword [rbp - 0x10], rax
call sub.ntdll.dll_NtQuerySystemInformation
test esi, esi
jns 0x14015b014
mov ecx, esi
call fcn.1400790f8
jmp 0x14015b069
mov rax, qword [rbp + 0x68]
mov r8, r12
mov r9, qword [rbp - 0x38]
mov rdx, r13
mov rcx, qword [rbp + 0x30]
mov qword [rsp + 0x30], rax
mov rax, qword [rbp + 0x60]
mov qword [rsp + 0x28], rax
mov rax, qword [rbp + 0x58]
mov qword [rsp + 0x20], rax
call fcn.14015de08
mov esi, eax
test eax, eax
jns 0x14015b04c
mov ecx, eax
jmp 0x14015b00d
mov rax, qword [rbp - 0x38]
mov rcx, qword [rbp + 0x50]
mov edx, dword [rax + 0x10]
mov dword [rcx], edx
mov rcx, qword [rax + 8]
mov qword [rax + 8], rdi
and qword [rax + 0x10], 0
mov qword [r15], rcx
mov ecx, esi
call fcn.140079118
mov rbx, qword [rbp - 0x38]
test rbx, rbx
je 0x14015b08e
mov rax, qword [rbx]
mov rdi, qword [rax + 0x10]
mov rcx, rdi
call qword [0x1403af620]
mov rcx, rbx
call rdi
lea r11, [rsp + 0x80]
mov eax, esi
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 0x14015b0b8
Capabilities:
Get system information on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x20], r9
mov dword [rax + 0x18], r8d
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x4f]
sub rsp, 0xa0
xor eax, eax
mov r15, rcx
xor r12d, r12d
mov qword [rbp - 0x59], rax
lea rcx, [rbp - 0x59]
mov qword [rbp + 0x6f], r12
mov qword [rbp - 0x51], rax
mov r14, rdx
mov qword [rbp - 0x49], rax
call qword [sym.imp.OLEAUT32.dll_VariantClear]
xor eax, eax
lea rcx, [rbp - 0x41]
mov qword [rbp - 0x41], rax
mov qword [rbp - 0x39], rax
mov qword [rbp - 0x31], rax
call qword [sym.imp.OLEAUT32.dll_VariantClear]
lea rax, [rbp + 0x6f]
xor edx, edx
lea r9, [0x1403c0ed0]
mov qword [rsp + 0x20], rax
lea r8d, [r12 + 1]
lea rcx, [0x1403b5380]
call qword [sym.imp.ole32.dll_CoCreateInstance]
mov ebx, eax
test eax, eax
jns 0x14015b150
mov ecx, eax
call fcn.1400790f8
jmp 0x14015b27c
mov rbx, qword [rbp + 0x6f]
or r13d, 0xffffffff
mov rax, qword [rbx]
mov rdi, qword [rax + 0x240]
mov rcx, rdi
call qword [0x1403af620]
movzx edx, r13w
mov rcx, rbx
call rdi
mov ebx, eax
test eax, eax
js 0x14015b144
mov rbx, qword [rbp + 0x6f]
mov rax, qword [rbx]
mov rdi, qword [rax + 0x1f8]
mov rcx, rdi
call qword [0x1403af620]
movzx edx, r12w
mov rcx, rbx
call rdi
mov ebx, eax
test eax, eax
js 0x14015b144
cmp dword [0x14042fd28], 1
lea eax, [r13 + 9]
movsd xmm1, qword [rbp - 0x49]
mov rsi, r12
mov rbx, qword [rbp + 0x6f]
cmove rsi, qword [0x14042f4f0]
mov word [rbp - 0x59], ax
mov rax, r12
cmove rax, qword [0x14042f4f8]
mov qword [rbp - 0x51], rax
mov rax, qword [rbx]
movups xmm0, xmmword [rbp - 0x59]
movsd qword [rbp - 0x19], xmm1
mov rdi, qword [rax + 0x280]
mov rcx, rdi
movaps xmmword [rbp - 0x29], xmm0
call qword [0x1403af620]
lea r8, [rbp - 0x29]
mov rdx, rsi
mov rcx, rbx
call rdi
mov ebx, eax
test eax, eax
js 0x14015b144
movups xmm0, xmmword [r14]
mov rbx, qword [rbp + 0x6f]
movsd xmm1, qword [r14 + 0x10]
movaps xmmword [rbp - 0x29], xmm0
movsd qword [rbp - 0x19], xmm1
mov rax, qword [rbx]
mov rdi, qword [rax + 0x1d0]
mov rcx, rdi
call qword [0x1403af620]
lea r8, [rbp + 0x67]
mov rcx, rbx
lea rdx, [rbp - 0x29]
call rdi
mov ebx, eax
test eax, eax
js 0x14015b144
cmp word [rbp + 0x67], r13w
je 0x14015b26d
mov rcx, qword [r15]
test rcx, rcx
je 0x14015b261
mov rdx, qword [rbp + 0x6f]
call fcn.14010729c
mov ebx, 0x8004bd01
mov ecx, ebx
jmp 0x14015b146
mov rcx, qword [rbp + 0x6f]
mov rax, qword [rbp + 0x7f]
mov qword [rbp + 0x6f], r12
mov qword [rax], rcx
mov ecx, ebx
call fcn.140079118
xor r9d, r9d
mov qword [rbp - 9], 3
lea rax, [0x140011bf8]
mov qword [rbp + 7], r12
mov qword [rbp - 1], rax
lea rdx, [rbp - 9]
lea rax, [rbp + 0x6f]
mov ecx, 0xb9
lea r8d, [r9 + 0x20]
mov qword [rbp + 0xf], rax
call sub.ntdll.dll_NtQuerySystemInformation
mov eax, ebx
mov rbx, qword [rsp + 0xe0]
add rsp, 0xa0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x14015b9a4
Capabilities:
Get system information on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x40
and qword [rsp + 0x68], 0
mov r14, rcx
xor ebp, ebp
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
xor edx, edx
lea r8d, [rbp + 0x18]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rsi, rax
test rax, rax
je 0x14015b9f8
lea rax, [0x140395298]
mov qword [rsi], rax
mov dword [rsi + 0x10], 1
lock inc dword [0x14042e944]
jmp 0x14015b9fa
xor esi, esi
mov rbx, qword [rsp + 0x68]
test rbx, rbx
je 0x14015ba19
mov rax, qword [rbx]
mov rdi, qword [rax + 0x10]
mov rcx, rdi
call qword [0x1403af620]
mov rcx, rbx
call rdi
mov qword [rsp + 0x68], rsi
test rsi, rsi
jne 0x14015ba31
mov ebp, 0x8007000e
mov ecx, ebp
call fcn.1400790f8
jmp 0x14015ba39
and qword [rsp + 0x68], rbp
mov qword [r14], rsi
mov ecx, ebp
call fcn.140079118
and qword [rsp + 0x30], 0
lea rax, [0x140018db8]
xor r9d, r9d
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x68]
mov qword [rsp + 0x20], 3
lea rdx, [rsp + 0x20]
mov qword [rsp + 0x38], rax
mov ecx, 0xb9
lea r8d, [r9 + 0x20]
call sub.ntdll.dll_NtQuerySystemInformation
mov rbx, qword [rsp + 0x60]
mov eax, ebp
mov rbp, qword [rsp + 0x70]
add rsp, 0x40
pop r14
pop rdi
pop rsi
ret

Function at 0x14015d830
Capabilities:
Get system information on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x40
mov rbx, qword [rcx + 8]
mov rdi, rdx
mov r15d, dword [rcx]
mov rsi, rcx
mov r12d, dword [rcx + 4]
and qword [rcx + 8], 0
mov eax, dword [rdx]
mov dword [rcx], eax
mov eax, dword [rdx + 4]
mov dword [rcx + 4], eax
mov rbp, qword [rdx + 8]
and qword [rdx + 8], 0
mov r14, qword [rcx + 8]
mov qword [rsp + 0x70], rbx
test r14, r14
je 0x14015d896
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, r14
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rbx, qword [rsp + 0x70]
xor eax, eax
test rbp, rbp
cmovne rax, rbp
and qword [rsp + 0x70], 0
mov qword [rsi + 8], rax
mov dword [rdi], r15d
mov dword [rdi + 4], r12d
mov rsi, qword [rdi + 8]
test rsi, rsi
je 0x14015d8cd
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rsi
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
xor eax, eax
mov qword [rsp + 0x20], 3
test rbx, rbx
lea rdx, [rsp + 0x20]
mov ecx, 0xb9
cmovne rax, rbx
and qword [rsp + 0x30], 0
mov qword [rdi + 8], rax
xor r9d, r9d
lea rax, [0x14001e578]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x70]
mov qword [rsp + 0x38], rax
lea r8d, [r9 + 0x20]
call sub.ntdll.dll_NtQuerySystemInformation
lea r11, [rsp + 0x40]
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret
Function at 0x14015d934
Capabilities:
Get system information on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r14
mov rbp, rsp
sub rsp, 0x50
xor ebx, ebx
mov rdi, rcx
mov qword [rbp + 0x20], rbx
cmp dword [rcx], ebx
je 0x14015d9e9
mov eax, dword [rcx + 4]
xor esi, esi
test eax, eax
cmovle esi, eax
jle 0x14015d9b9
movsxd rdx, ebx
shl rdx, 4
add rdx, qword [rdi + 8]
je 0x14015d9ae
xor r9d, r9d
mov qword [rbp - 0x18], rdx
lea rax, [0x14002abb8]
mov qword [rbp - 0x30], 3
mov qword [rbp - 0x28], rax
lea rdx, [rbp - 0x30]
lea rax, [rbp + 0x28]
mov dword [rbp - 0x10], 1
lea r8d, [r9 + 0x24]
mov qword [rbp - 0x20], rax
mov ecx, 0xb9
call sub.ntdll.dll_NtQuerySystemInformation
inc ebx
cmp ebx, dword [rdi + 4]
jl 0x14015d966
mov rbx, qword [rbp + 0x20]
mov r14, qword [rdi + 8]
test r14, r14
je 0x14015d9d6
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, r14
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
xor eax, eax
test rbx, rbx
cmovne rax, rbx
mov qword [rdi + 8], rax
and dword [rdi], 0
mov dword [rdi + 4], esi
xor ecx, ecx
call fcn.140079118
and qword [rbp - 0x20], 0
lea rax, [0x14001e8b8]
xor r9d, r9d
mov qword [rbp - 0x28], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x30], 3
lea rdx, [rbp - 0x30]
mov qword [rbp - 0x18], rax
mov ecx, 0xb9
lea r8d, [r9 + 0x24]
call sub.ntdll.dll_NtQuerySystemInformation
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
Function at 0x14015db48
Capabilities:
Get system information on windows
Start service

Disassembly:
mov qword [rsp + 0x20], r9
mov dword [rsp + 0x18], r8d
mov qword [rsp + 8], rcx
push rbp
push rbx
push rdi
push r12
push r13
mov rbp, rsp
sub rsp, 0x50
and qword [rbp - 0x30], 0
xor ebx, ebx
and qword [rbp + 0x48], 0
xor edx, edx
and qword [rbp + 0x30], 0
xor ecx, ecx
and qword [rbp + 0x50], 0
lea r8d, [rbx + 1]
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rcx, qword [rbp + 0x30]
mov rdi, rax
test rcx, rcx
je 0x14015db9b
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test rdi, rdi
je 0x14015dbd7
mov r8d, SafeArrayUnaccessData
mov qword [rbp + 0x30], rdi
lea rdx, str.TrustedInstaller
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rcx, qword [rbp + 0x50]
mov rdi, rax
test rcx, rcx
je 0x14015dbcc
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test rdi, rdi
je 0x14015dbd7
mov qword [rbp + 0x48], rdi
jmp 0x14015dbfd
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x14015dbe8
mov ebx, 0x80004005
jmp 0x14015dbf6
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
mov ecx, ebx
call fcn.1400790f8
mov ecx, ebx
call fcn.140079118
and qword [rbp - 0x18], 0
lea rax, [rbp + 0x50]
mov r12d, 3
mov qword [rbp - 0x10], rax
lea r13, [0x1400239f8]
mov qword [rbp - 0x28], r12
xor r9d, r9d
mov qword [rbp - 0x20], r13
lea rdx, [rbp - 0x28]
mov ecx, 0xb9
lea edi, [r12 + 0x1d]
mov r8d, edi
call sub.ntdll.dll_NtQuerySystemInformation
and qword [rbp - 0x18], 0
lea rax, [rbp + 0x30]
xor r9d, r9d
mov qword [rbp - 0x10], rax
mov r8d, edi
mov qword [rbp - 0x28], r12
lea rdx, [rbp - 0x28]
mov qword [rbp - 0x20], r13
mov ecx, 0xb9
call sub.ntdll.dll_NtQuerySystemInformation
mov edi, 0x80070426
test ebx, ebx
jns 0x14015dc78
mov ecx, ebx
jmp 0x14015dcfd
mov rcx, qword [rbp + 0x48]
lea r8, [rbp + 0x40]
call fcn.14015fab0
mov ebx, eax
test eax, eax
jns 0x14015dc8f
mov ecx, eax
jmp 0x14015dcfd
cmp dword [rbp + 0x40], 0
je 0x14015dc99
xor ebx, ebx
jmp 0x14015dd0b
mov rcx, qword [rbp + 0x48]
lea r8, [rbp - 0x30]
xor edx, edx
cmp qword [rbp - 0x30], rdx
setne dl
call qword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
jne 0x14015dce0
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x420
je 0x14015dce0
test eax, eax
jne 0x14015dccc
mov ebx, 0x80004005
jmp 0x14015dc71
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
jns 0x14015dd02
jmp 0x14015dc71
mov rcx, qword [rbp + 0x48]
lea r8, [rbp + 0x40]
call fcn.14015fab0
mov ebx, eax
test eax, eax
js 0x14015dc8b
cmp dword [rbp + 0x40], 0
jne 0x14015dd02
mov ebx, edi
mov ecx, edi
call fcn.1400790f8
cmp ebx, 0x800705b4
cmove ebx, edi
mov ecx, ebx
call fcn.140079118
and qword [rbp - 0x18], 0
lea rax, [rbp + 0x48]
xor r9d, r9d
mov qword [rbp - 0x28], r12
lea rdx, [rbp - 0x28]
mov qword [rbp - 0x20], r13
mov ecx, 0xb9
mov qword [rbp - 0x10], rax
lea r8d, [r9 + 0x20]
call sub.ntdll.dll_NtQuerySystemInformation
mov eax, ebx
add rsp, 0x50
pop r13
pop r12
pop rdi
pop rbx
pop rbp
ret
Function at 0x14015eb24
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 0x14015ec8b
mov r15d, dword [rcx + 4]
cmp esi, r15d
cmovl r15d, esi
test edx, edx
jle 0x14015ec06
xor ebx, ebx
mov rcx, rsi
test edx, edx
je 0x14015eb93
mov r14, rcx
shl r14, 5
mov rax, r14
shr rax, 5
cmp rax, rcx
je 0x14015eb96
mov ebx, 0x80070216
mov ecx, ebx
call fcn.1400790f8
mov r14, qword [rbp + 0x20]
jmp 0x14015eb96
xor r14d, r14d
mov ecx, ebx
call fcn.140079118
test ebx, ebx
jns 0x14015ebad
mov ecx, ebx
call fcn.1400790f8
jmp 0x14015ec8d
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 0x14015ebe1
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 0x14015ece4
mov qword [rbp + 0x20], rbx
test r15d, r15d
je 0x14015ec06
mov rdx, qword [rdi + 8]
mov rcx, rbx
movsxd r8, r15d
shl r8, 5
call sub.msvcrt.dll_memcpy
cmp esi, dword [rdi + 4]
jge 0x14015ec52
mov ebx, esi
movsxd rdx, ebx
shl rdx, 5
add rdx, qword [rdi + 8]
je 0x14015ec4b
and qword [rbp - 0x10], 0
lea rax, [0x140010878]
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 0x14015ec0d
mov r14, qword [rbp + 0x20]
and qword [rbp + 0x20], 0
mov rbx, qword [rdi + 8]
test rbx, rbx
je 0x14015ec78
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, [0x140019ab8]
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 0x14015eba1
Function at 0x14015edfc
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 0x14015ef76
mov r15d, dword [rcx + 4]
cmp esi, r15d
cmovl r15d, esi
test edx, edx
jle 0x14015eeea
xor ebx, ebx
test edx, edx
je 0x14015ee73
lea r14, [rsi + rsi*2]
movabs rax, 0xaaaaaaaaaaaaaaab
shl r14, 3
mul r14
shr rdx, 4
cmp rdx, rsi
je 0x14015ee76
mov ebx, 0x80070216
mov ecx, ebx
call fcn.1400790f8
mov r14, qword [rbp + 0x20]
jmp 0x14015ee76
xor r14d, r14d
mov ecx, ebx
call fcn.140079118
test ebx, ebx
jns 0x14015ee8d
mov ecx, ebx
call fcn.1400790f8
jmp 0x14015ef78
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 0x14015eec1
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 0x14015efcf
mov qword [rbp + 0x20], rbx
test r15d, r15d
je 0x14015eeea
mov rdx, qword [rdi + 8]
mov rcx, rbx
movsxd rax, r15d
lea r8, [rax + rax*2]
shl r8, 3
call sub.msvcrt.dll_memcpy
cmp esi, dword [rdi + 4]
jge 0x14015ef3d
mov ebx, esi
mov rdx, qword [rdi + 8]
movsxd rax, ebx
lea rcx, [rax + rax*2]
lea rax, [rdx + rcx*8]
test rax, rax
je 0x14015ef36
and qword [rbp - 0x10], 0
lea rcx, [0x14000ee78]
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 0x14015eef1
mov r14, qword [rbp + 0x20]
and qword [rbp + 0x20], 0
mov rbx, qword [rdi + 8]
test rbx, rbx
je 0x14015ef63
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, [0x140019df8]
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 0x14015ee81
Function at 0x14015f3f0
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 0x14015f503
mov r14d, dword [rcx + 4]
cmp edi, r14d
cmovl r14d, edi
test edx, edx
jle 0x14015f4cc
mov rcx, rdi
mov r15, rcx
shl r15, 3
mov rax, r15
shr rax, 3
cmp rax, rcx
je 0x14015f458
mov ebx, 0x80070216
mov ecx, ebx
call fcn.1400790f8
mov r15, qword [rbp + 0x20]
mov ecx, ebx
call fcn.140079118
test ebx, ebx
jns 0x14015f46f
mov ecx, ebx
call fcn.1400790f8
jmp 0x14015f503
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 0x14015f4a3
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 0x14015f55a
mov qword [rbp + 0x20], rbx
test r14d, r14d
je 0x14015f4cc
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 0x14015f4ee
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.140079118
and qword [rbp - 0x10], 0
lea rax, [0x14001def8]
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 0x14015f463
Function at 0x14015f658
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 0x14015f777
mov r14d, dword [rcx + 4]
cmp edi, r14d
cmovl r14d, edi
test edx, edx
jle 0x14015f740
lea r15, [rdi + rdi*2]
movabs rax, 0xaaaaaaaaaaaaaaab
shl r15, 3
mul r15
shr rdx, 4
cmp rdx, rdi
je 0x14015f6c8
mov ebx, 0x80070216
mov ecx, ebx
call fcn.1400790f8
mov r15, qword [rbp + 0x20]
mov ecx, ebx
call fcn.140079118
test ebx, ebx
jns 0x14015f6df
mov ecx, ebx
call fcn.1400790f8
jmp 0x14015f777
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 0x14015f713
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 0x14015f7ce
mov qword [rbp + 0x20], rbx
test r14d, r14d
je 0x14015f740
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 0x14015f762
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.140079118
and qword [rbp - 0x10], 0
lea rax, [0x14001e238]
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 0x14015f6d3
Function at 0x14015f7e0
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 0x14015f805
mov ebx, 0x8000ffff
mov ecx, ebx
jmp 0x14015f81c
lea r8, [rsp + 0x70]
mov edx, 1
call fcn.140078744
mov ebx, eax
test eax, eax
jns 0x14015f826
mov ecx, eax
call fcn.1400790f8
jmp 0x14015f8c3
mov edx, dword [rsp + 0x70]
mov rcx, rdi
call fcn.1401601b0
mov ebx, eax
test eax, eax
js 0x14015f81a
mov r8d, dword [rdi + 4]
mov rbx, rsi
cmp esi, r8d
jge 0x14015f862
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 rax, qword [rdi + 8]
lea rdx, [rsp + 0x20]
xor ecx, ecx
shl rbx, 4
xor r9d, r9d
mov qword [rbx + rax], rcx
mov qword [rbx + rax + 8], rcx
lea r8d, [r9 + 0x28]
mov rax, qword [rdi + 8]
lea rcx, [0x140027af8]
mov qword [rsp + 0x28], rcx
add rax, rbx
lea rcx, [rsp + 0x88]
mov qword [rsp + 0x20], 3
mov qword [rsp + 0x30], rcx
mov ecx, 0xb9
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x40], rbp
call sub.ntdll.dll_NtQuerySystemInformation
inc dword [rdi + 4]
xor ebx, ebx
mov ecx, ebx
call fcn.140079118
mov eax, ebx
mov rbx, qword [rsp + 0x78]
add rsp, 0x50
pop rdi
pop rsi
pop rbp
ret