joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14015f448
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 0x14015f567
mov r14d, dword [rcx + 4]
cmp esi, r14d
cmovl r14d, esi
test edx, edx
jle 0x14015f52b
mov rcx, rsi
mov r15, rcx
shl r15, 3
mov rax, r15
shr rax, 3
cmp rax, rcx
je 0x14015f4b0
mov ebx, 0x80070216
mov ecx, ebx
call fcn.14007ab24
mov r15, qword [rbp + 0x20]
mov ecx, ebx
call fcn.14007ab44
test ebx, ebx
jns 0x14015f4c7
mov ecx, ebx
call fcn.14007ab24
jmp 0x14015f567
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 0x14015f4fb
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 0x14015f50b
and qword [rbp + 0x20], rbx
mov ebx, 0x8007000e
jmp 0x14015f4bb
mov qword [rbp + 0x20], rbx
test r14d, r14d
je 0x14015f52b
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 0x14015f552
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, [0x140023038]
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 0x14015fd2c
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, 0x80
and qword [rbp + 0x20], 0
xor eax, eax
and qword [rbp - 0x60], 0
mov rdi, rcx
lea rcx, [rbp - 0x58]
mov qword [rbp - 0x58], rax
mov qword [rbp - 0x50], rax
mov r15, r9
mov qword [rbp - 0x48], rax
mov rsi, r8
mov r14, rdx
call qword [sym.imp.OLEAUT32.dll_VariantClear]
mov rax, qword [rdi]
mov rbx, qword [rax + 0x1a8]
mov rcx, rbx
call qword [0x1403b8660]
lea r8, [rbp + 0x20]
mov rdx, rsi
mov rcx, rdi
call rbx
mov ebx, eax
test eax, eax
js 0x14015fe2b
movsd xmm1, qword [rbp - 0x48]
mov eax, 8
mov rbx, qword [rbp + 0x20]
mov word [rbp - 0x58], ax
mov qword [rbp - 0x50], r15
movups xmm0, xmmword [rbp - 0x58]
mov rax, qword [rbx]
movsd qword [rbp - 0x30], xmm1
movaps xmmword [rbp - 0x40], xmm0
mov rdi, qword [rax + 0x48]
mov rcx, rdi
call qword [0x1403b8660]
lea rdx, [rbp - 0x40]
mov rcx, rbx
call rdi
mov ebx, eax
test eax, eax
js 0x14015fe2b
mov rax, qword [r14]
mov rbx, qword [rax + 0x88]
mov rcx, rbx
call qword [0x1403b8660]
lea rdx, [rbp - 0x60]
mov rcx, r14
call rbx
mov ebx, eax
test eax, eax
js 0x14015fe2b
mov rbx, qword [rbp - 0x60]
mov rax, qword [rbx]
mov rdi, qword [rax + 0x40]
mov rcx, rdi
call qword [0x1403b8660]
mov rdx, qword [rbp + 0x20]
xor r8d, r8d
mov rcx, rbx
call rdi
mov ebx, eax
test eax, eax
jns 0x14015fe32
mov ecx, eax
call fcn.14007ab24
mov ecx, ebx
call fcn.14007ab44
and qword [rbp - 0x10], 0
lea rax, [0x14002c5b8]
mov r14d, 3
mov qword [rbp - 0x18], rax
lea rax, [rbp - 0x60]
mov qword [rbp - 0x20], r14
mov edi, 0xb9
mov qword [rbp - 8], rax
xor r9d, r9d
lea rdx, [rbp - 0x20]
lea esi, [r14 + 0x1d]
mov ecx, edi
mov r8d, esi
call sub.ntdll.dll_NtQuerySystemInformation
and qword [rbp - 0x10], 0
lea rax, [0x14002c278]
mov qword [rbp - 0x18], rax
lea rdx, [rbp - 0x20]
lea rax, [rbp + 0x20]
mov qword [rbp - 0x20], r14
xor r9d, r9d
mov qword [rbp - 8], rax
mov r8d, esi
mov ecx, edi
call sub.ntdll.dll_NtQuerySystemInformation
lea r11, [rsp + 0x80]
mov eax, ebx
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x14015fec8
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 0x14015ff47
mov qword [rax + 8], rdi
mov qword [rax + 0x10], rdi
lea rax, [0x14039e268]
mov qword [r14], rax
mov dword [r14 + 0x18], 1
lock inc dword [0x140437834]
jmp 0x14015ff4a
mov r14, rdi
mov rbx, qword [rbp - 0x40]
test rbx, rbx
je 0x14015ff6a
mov rax, qword [rbx]
mov rdi, qword [rax + 0x10]
mov rcx, rdi
call qword [0x1403b8660]
mov rcx, rbx
call rdi
xor edi, edi
mov qword [rbp - 0x40], r14
test r14, r14
jne 0x14015ff81
mov esi, 0x8007000e
mov ecx, esi
call fcn.14007ab24
jmp 0x14015ff89
mov qword [rbp - 0x40], rdi
mov qword [rbp - 0x30], r14
mov ecx, esi
call fcn.14007ab44
mov r14d, 3
mov qword [rbp - 0x18], rdi
lea rax, [0x14002b578]
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 0x14015ffce
mov ecx, esi
jmp 0x14015fffb
mov rbx, qword [rbp - 0x30]
mov rax, qword [rbx]
mov rdi, qword [rax]
mov rcx, rdi
call qword [0x1403b8660]
lea r8, [rbp - 0x38]
mov rcx, rbx
lea rdx, [0x1403be430]
call rdi
xor edi, edi
mov esi, eax
test eax, eax
jns 0x140160000
mov ecx, eax
call fcn.14007ab24
mov ecx, esi
call fcn.14007ab44
xor r9d, r9d
mov qword [rbp - 0x28], r14
lea rax, [0x14002b578]
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 0x140160044
mov ecx, esi
call fcn.14007ab24
jmp 0x140160099
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.140162e90
mov esi, eax
test eax, eax
jns 0x14016007c
mov ecx, eax
jmp 0x14016003d
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.14007ab44
mov rbx, qword [rbp - 0x38]
test rbx, rbx
je 0x1401600be
mov rax, qword [rbx]
mov rdi, qword [rax + 0x10]
mov rcx, rdi
call qword [0x1403b8660]
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 0x1401600e8
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, [0x1403c9f40]
mov qword [rsp + 0x20], rax
lea r8d, [r12 + 1]
lea rcx, [0x1403be3d0]
call qword [sym.imp.ole32.dll_CoCreateInstance]
mov ebx, eax
test eax, eax
jns 0x140160180
mov ecx, eax
call fcn.14007ab24
jmp 0x1401602ac
mov rbx, qword [rbp + 0x6f]
or r13d, 0xffffffff
mov rax, qword [rbx]
mov rdi, qword [rax + 0x240]
mov rcx, rdi
call qword [0x1403b8660]
movzx edx, r13w
mov rcx, rbx
call rdi
mov ebx, eax
test eax, eax
js 0x140160174
mov rbx, qword [rbp + 0x6f]
mov rax, qword [rbx]
mov rdi, qword [rax + 0x1f8]
mov rcx, rdi
call qword [0x1403b8660]
movzx edx, r12w
mov rcx, rbx
call rdi
mov ebx, eax
test eax, eax
js 0x140160174
cmp dword [0x140438c38], 1
lea eax, [r13 + 9]
movsd xmm1, qword [rbp - 0x49]
mov rsi, r12
mov rbx, qword [rbp + 0x6f]
cmove rsi, qword [0x1404383f0]
mov word [rbp - 0x59], ax
mov rax, r12
cmove rax, qword [0x1404383f8]
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 [0x1403b8660]
lea r8, [rbp - 0x29]
mov rdx, rsi
mov rcx, rbx
call rdi
mov ebx, eax
test eax, eax
js 0x140160174
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 [0x1403b8660]
lea r8, [rbp + 0x67]
mov rcx, rbx
lea rdx, [rbp - 0x29]
call rdi
mov ebx, eax
test eax, eax
js 0x140160174
cmp word [rbp + 0x67], r13w
je 0x14016029d
mov rcx, qword [r15]
test rcx, rcx
je 0x140160291
mov rdx, qword [rbp + 0x6f]
call fcn.14010c1ec
mov ebx, 0x8004bd01
mov ecx, ebx
jmp 0x140160176
mov rcx, qword [rbp + 0x6f]
mov rax, qword [rbp + 0x7f]
mov qword [rbp + 0x6f], r12
mov qword [rax], rcx
mov ecx, ebx
call fcn.14007ab44
xor r9d, r9d
mov qword [rbp - 9], 3
lea rax, [0x14001c838]
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 0x1401609d4
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 0x140160a28
lea rax, [0x14039e298]
mov qword [rsi], rax
mov dword [rsi + 0x10], 1
lock inc dword [0x140437834]
jmp 0x140160a2a
xor esi, esi
mov rbx, qword [rsp + 0x68]
test rbx, rbx
je 0x140160a49
mov rax, qword [rbx]
mov rdi, qword [rax + 0x10]
mov rcx, rdi
call qword [0x1403b8660]
mov rcx, rbx
call rdi
mov qword [rsp + 0x68], rsi
test rsi, rsi
jne 0x140160a61
mov ebp, 0x8007000e
mov ecx, ebp
call fcn.14007ab24
jmp 0x140160a69
and qword [rsp + 0x68], rbp
mov qword [r14], rsi
mov ecx, ebp
call fcn.14007ab44
and qword [rsp + 0x30], 0
lea rax, [0x140023378]
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 0x140162890
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 0x1401628fb
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, r14
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
and qword [rsi + 8], 0
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 0x140162937
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rsi
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
and qword [rdi + 8], 0
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, [0x140028b38]
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 0x1401629a0
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 0x140162a5f
mov eax, dword [rcx + 4]
xor esi, esi
test eax, eax
cmovle esi, eax
jle 0x140162a25
movsxd rdx, ebx
shl rdx, 4
add rdx, qword [rdi + 8]
je 0x140162a1a
xor r9d, r9d
mov qword [rbp - 0x18], rdx
lea rax, [0x140033438]
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 0x1401629d2
mov rbx, qword [rbp + 0x20]
and qword [rbp + 0x20], 0
mov r14, qword [rdi + 8]
test r14, r14
je 0x140162a4c
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, r14
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
mov qword [rdi + 8], rax
and dword [rdi], 0
mov dword [rdi + 4], esi
xor ecx, ecx
call fcn.14007ab44
and qword [rbp - 0x20], 0
lea rax, [0x140028e78]
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 0x140162bc0
Capabilities:
Get system information on windows
Start service

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x20], r9
mov dword [rax + 0x18], r8d
mov qword [rax + 8], rcx
push rbp
push rsi
push rdi
push r12
push r13
mov rbp, rsp
sub rsp, 0x50
xor esi, esi
xor edx, edx
xor ecx, ecx
mov qword [rbp - 0x30], rsi
mov qword [rbp + 0x48], rsi
mov ebx, esi
mov qword [rbp + 0x50], rsi
lea r8d, [rsi + 1]
mov qword [rbp + 0x30], rsi
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rcx, qword [rbp + 0x50]
mov rdi, rax
test rcx, rcx
je 0x140162c15
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test rdi, rdi
jne 0x140162c46
mov qword [rbp + 0x50], rsi
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x140162c2f
mov ebx, 0x80004005
jmp 0x140162c3d
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
mov ecx, ebx
call fcn.14007ab24
jmp 0x140162c7f
mov r8d, SafeArrayUnaccessData
mov qword [rbp + 0x50], rdi
lea rdx, str.TrustedInstaller
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rcx, qword [rbp + 0x30]
mov rdi, rax
test rcx, rcx
je 0x140162c72
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov qword [rbp + 0x30], rsi
test rdi, rdi
je 0x140162c1e
mov qword [rbp + 0x48], rdi
mov ecx, ebx
call fcn.14007ab44
mov r12d, 3
mov qword [rbp - 0x18], rsi
lea rax, [rbp + 0x30]
mov qword [rbp - 0x28], r12
lea r13, [0x14002bf38]
mov qword [rbp - 0x10], rax
xor r9d, r9d
mov qword [rbp - 0x20], r13
lea edi, [r12 + 0x1d]
mov ecx, 0xb9
mov r8d, edi
lea rdx, [rbp - 0x28]
call sub.ntdll.dll_NtQuerySystemInformation
lea rax, [rbp + 0x50]
mov qword [rbp - 0x28], r12
xor r9d, r9d
mov qword [rbp - 0x10], rax
mov r8d, edi
mov qword [rbp - 0x20], r13
lea rdx, [rbp - 0x28]
mov qword [rbp - 0x18], rsi
mov ecx, 0xb9
call sub.ntdll.dll_NtQuerySystemInformation
mov edi, 0x80070426
test ebx, ebx
jns 0x140162cf8
mov ecx, ebx
jmp 0x140162d7b
mov rcx, qword [rbp + 0x48]
lea r8, [rbp + 0x40]
call fcn.140164b60
mov ebx, eax
test eax, eax
jns 0x140162d0f
mov ecx, eax
jmp 0x140162d7b
cmp dword [rbp + 0x40], esi
je 0x140162d18
mov ebx, esi
jmp 0x140162d89
cmp qword [rbp - 0x30], rsi
lea r8, [rbp - 0x30]
mov rcx, qword [rbp + 0x48]
mov edx, esi
setne dl
call qword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
jne 0x140162d5f
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x420
je 0x140162d5f
test eax, eax
jne 0x140162d4b
mov ebx, 0x80004005
jmp 0x140162cf1
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
jns 0x140162d80
jmp 0x140162cf1
mov rcx, qword [rbp + 0x48]
lea r8, [rbp + 0x40]
call fcn.140164b60
mov ebx, eax
test eax, eax
js 0x140162d0b
cmp dword [rbp + 0x40], esi
jne 0x140162d80
mov ebx, edi
mov ecx, edi
call fcn.14007ab24
cmp ebx, 0x800705b4
cmove ebx, edi
mov ecx, ebx
call fcn.14007ab44
xor r9d, r9d
mov qword [rbp - 0x28], r12
lea rax, [rbp + 0x48]
mov qword [rbp - 0x20], r13
lea rdx, [rbp - 0x28]
mov qword [rbp - 0x18], rsi
mov ecx, 0xb9
mov qword [rbp - 0x10], rax
lea r8d, [r9 + 0x20]
call sub.ntdll.dll_NtQuerySystemInformation
mov eax, ebx
mov rbx, qword [rsp + 0x88]
add rsp, 0x50
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x140163bb0
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 0x140163d23
mov r15d, dword [rcx + 4]
cmp esi, r15d
cmovl r15d, esi
test edx, edx
jle 0x140163c99
xor ebx, ebx
mov rcx, rsi
test edx, edx
je 0x140163c1f
mov r14, rcx
shl r14, 5
mov rax, r14
shr rax, 5
cmp rax, rcx
je 0x140163c22
mov ebx, 0x80070216
mov ecx, ebx
call fcn.14007ab24
mov r14, qword [rbp + 0x20]
jmp 0x140163c22
xor r14d, r14d
mov ecx, ebx
call fcn.14007ab44
test ebx, ebx
jns 0x140163c39
mov ecx, ebx
call fcn.14007ab24
jmp 0x140163d25
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 0x140163c6d
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 0x140163c7d
and qword [rbp + 0x20], rbx
mov ebx, 0x8007000e
jmp 0x140163c2d
mov qword [rbp + 0x20], rbx
test r15d, r15d
je 0x140163c99
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 0x140163ce5
mov ebx, esi
movsxd rdx, ebx
shl rdx, 5
add rdx, qword [rdi + 8]
je 0x140163cde
and qword [rbp - 0x10], 0
lea rax, [0x14001b178]
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 0x140163ca0
mov r14, qword [rbp + 0x20]
and qword [rbp + 0x20], 0
mov rbx, qword [rdi + 8]
test rbx, rbx
je 0x140163d10
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, [0x140024078]
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 0x140163e8c
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 0x140164012
mov r15d, dword [rcx + 4]
cmp esi, r15d
cmovl r15d, esi
test edx, edx
jle 0x140163f81
xor ebx, ebx
test edx, edx
je 0x140163f03
lea r14, [rsi + rsi*2]
movabs rax, 0xaaaaaaaaaaaaaaab
shl r14, 3
mul r14
shr rdx, 4
cmp rdx, rsi
je 0x140163f06
mov ebx, 0x80070216
mov ecx, ebx
call fcn.14007ab24
mov r14, qword [rbp + 0x20]
jmp 0x140163f06
xor r14d, r14d
mov ecx, ebx
call fcn.14007ab44
test ebx, ebx
jns 0x140163f1d
mov ecx, ebx
call fcn.14007ab24
jmp 0x140164014
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 0x140163f51
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 0x140163f61
and qword [rbp + 0x20], rbx
mov ebx, 0x8007000e
jmp 0x140163f11
mov qword [rbp + 0x20], rbx
test r15d, r15d
je 0x140163f81
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 0x140163fd4
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 0x140163fcd
and qword [rbp - 0x10], 0
lea rcx, [0x140019778]
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 0x140163f88
mov r14, qword [rbp + 0x20]
and qword [rbp + 0x20], 0
mov rbx, qword [rdi + 8]
test rbx, rbx
je 0x140163fff
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, [0x1400243b8]
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