joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140104588
Capabilities:
Get system information on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 8], rcx
push rbp
push rdi
push r14
mov rbp, rsp
sub rsp, 0x60
and dword [rbp - 0x3c], 0
mov r14, r8
and qword [rbp - 0x38], 0
lea r8, [rbp + 0x20]
mov rcx, rdx
mov dword [rbp - 0x40], 1
lea rdx, [rbp - 0x38]
call fcn.14019c678
mov rsi, qword [rbp - 0x38]
mov edi, eax
test eax, eax
jns 0x1401045db
mov ecx, eax
call fcn.140078308
jmp 0x14010467f
cmp dword [0x140422760], 0
jne 0x1401045eb
mov ebx, 0xc004d101
jmp 0x14010463c
test rsi, rsi
je 0x140104637
mov eax, dword [rbp + 0x20]
test eax, eax
je 0x140104637
lea rcx, [0x14001e560]
mov qword [rbp - 0x30], 3
mov qword [rbp - 0x28], rcx
lea rdx, [rbp - 0x30]
xor r9d, r9d
mov qword [rbp - 0x18], rsi
lea rcx, [rbp + 0x38]
mov dword [rbp - 0x10], eax
mov qword [rbp - 0x20], rcx
mov ecx, 0xb9
lea r8d, [r9 + 0x28]
call sub.ntdll.dll_NtQuerySystemInformation
mov ebx, dword [rbp + 0x38]
test ebx, ebx
jns 0x140104643
jmp 0x14010463c
mov ebx, 0xc004d104
mov ecx, ebx
call fcn.140078308
mov ecx, ebx
call fcn.140078324
mov ecx, ebx
sub ecx, 0x4004d601
je 0x14010466f
cmp ecx, 1
je 0x140104666
mov edi, ebx
test ebx, ebx
jns 0x140104673
mov ecx, ebx
jmp 0x1401045d1
mov dword [rbp - 0x3c], 1
jmp 0x140104673
and dword [rbp - 0x40], 0
test r14, r14
je 0x14010467f
mov rax, qword [rbp - 0x40]
mov qword [r14], rax
mov ecx, edi
call fcn.140078324
test rsi, rsi
je 0x140104694
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LocalFree]
lea r11, [rsp + 0x60]
mov eax, edi
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret

Function at 0x1401506dc
Capabilities:
Query service status

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x37]
sub rsp, 0x90
mov rax, qword [0x140418d28]
xor rax, rsp
mov qword [rbp + 0x2f], rax
mov edi, dword [rbp - 0x1d]
mov r14, r8
mov r15, rcx
xor esi, esi
lea rax, [rbp - 0x29]
xor ebx, ebx
lea r8, [rbp + 7]
mov qword [rsp + 0x20], rax
xor edx, edx
mov rcx, r15
lea r9d, [rbx + 0x24]
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
jne 0x140150757
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x140150740
mov ebx, 0x80004005
jmp 0x14015074e
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
mov ecx, ebx
call fcn.140078308
jmp 0x140150762
movups xmm0, xmmword [rbp + 7]
movups xmmword [rbp - 0x21], xmm0
mov edi, dword [rbp - 0x1d]
mov ecx, ebx
call fcn.140078324
test ebx, ebx
js 0x14015078e
cmp edi, 4
je 0x1401507c1
cmp edi, 1
je 0x1401507c1
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
inc esi
cmp esi, 0x1e
jb 0x14015070d
mov ebx, 0x800705b4
mov ecx, ebx
call fcn.140078308
mov ecx, ebx
call fcn.140078324
mov eax, ebx
mov rcx, qword [rbp + 0x2f]
xor rcx, rsp
call fcn.14035a4e0
mov rbx, qword [rsp + 0xc8]
add rsp, 0x90
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
xor eax, eax
cmp edi, 4
sete al
xor ebx, ebx
mov dword [r14], eax
jmp 0x140150795
Function at 0x140157ad0
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 0x140157be6
mov r14d, dword [rcx + 4]
cmp esi, r14d
cmovl r14d, esi
test edx, edx
jle 0x140157bb3
mov rcx, rsi
mov r15, rcx
shl r15, 3
mov rax, r15
shr rax, 3
cmp rax, rcx
je 0x140157b38
mov ebx, 0x80070216
mov ecx, ebx
call fcn.140078308
mov r15, qword [rbp + 0x20]
mov ecx, ebx
call fcn.140078324
test ebx, ebx
jns 0x140157b4f
mov ecx, ebx
call fcn.140078308
jmp 0x140157be6
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 0x140157b83
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 0x140157b93
and qword [rbp + 0x20], rbx
mov ebx, 0x8007000e
jmp 0x140157b43
mov qword [rbp + 0x20], rbx
test r14d, r14d
je 0x140157bb3
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 0x140157bda
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
mov qword [rdi + 8], rbx
xor ebx, ebx
mov dword [rdi + 4], r14d
mov dword [rdi], esi
mov ecx, ebx
call fcn.140078324
and qword [rbp - 0x10], 0
lea rax, [0x140039f60]
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 0x140157d54
Capabilities:
Start service

Disassembly:
mov rax, rsp
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rsi
mov qword [rax + 8], rcx
push rdi
sub rsp, 0x20
and qword [rax + 0x10], 0
xor ebx, ebx
xor edx, edx
xor ecx, ecx
xor esi, esi
lea r8d, [rbx + 1]
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rdi, rax
test rax, rax
jne 0x140157daf
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x140157d98
mov esi, 0x80004005
jmp 0x140157da6
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
mov ecx, esi
call fcn.140078308
jmp 0x140157dcd
mov r8d, SafeArrayGetElement
lea rdx, str.TrustedInstaller
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
test rax, rax
je 0x140157d87
mov rbx, rax
mov ecx, esi
call fcn.140078324
test rdi, rdi
je 0x140157de2
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov edi, 0x80070426
test esi, esi
jns 0x140157df2
mov ecx, esi
jmp 0x140157e7a
lea r8, [rsp + 0x30]
mov rcx, rbx
call fcn.14015d218
mov esi, eax
test eax, eax
jns 0x140157e09
mov ecx, eax
jmp 0x140157e7a
cmp dword [rsp + 0x30], 0
je 0x140157e14
xor esi, esi
jmp 0x140157e88
xor edx, edx
lea r8, [rsp + 0x38]
cmp qword [rsp + 0x38], rdx
mov rcx, rbx
setne dl
call qword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
jne 0x140157e5c
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x420
je 0x140157e5c
test eax, eax
jne 0x140157e48
mov esi, 0x80004005
jmp 0x140157deb
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
test esi, esi
jns 0x140157e7f
jmp 0x140157deb
lea r8, [rsp + 0x30]
mov rcx, rbx
call fcn.14015d218
mov esi, eax
test eax, eax
js 0x140157e05
cmp dword [rsp + 0x30], 0
jne 0x140157e7f
mov esi, edi
mov ecx, edi
call fcn.140078308
cmp esi, 0x800705b4
cmove esi, edi
mov ecx, esi
call fcn.140078324
test rbx, rbx
je 0x140157e9d
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test esi, esi
jns 0x140157ea8
mov ecx, esi
call fcn.140078308
mov ecx, esi
call fcn.140078324
mov rbx, qword [rsp + 0x40]
mov eax, esi
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
Function at 0x1401584f8
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 [0x1403a2250]
lea r8, [rbp + 0x20]
mov rdx, rsi
mov rcx, rdi
call rbx
mov ebx, eax
test eax, eax
js 0x1401585f7
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 [0x1403a2250]
lea rdx, [rbp - 0x40]
mov rcx, rbx
call rdi
mov ebx, eax
test eax, eax
js 0x1401585f7
mov rax, qword [r14]
mov rbx, qword [rax + 0x88]
mov rcx, rbx
call qword [0x1403a2250]
lea rdx, [rbp - 0x60]
mov rcx, r14
call rbx
mov ebx, eax
test eax, eax
js 0x1401585f7
mov rbx, qword [rbp - 0x60]
mov rax, qword [rbx]
mov rdi, qword [rax + 0x40]
mov rcx, rdi
call qword [0x1403a2250]
mov rdx, qword [rbp + 0x20]
xor r8d, r8d
mov rcx, rbx
call rdi
mov ebx, eax
test eax, eax
jns 0x1401585fe
mov ecx, eax
call fcn.140078308
mov ecx, ebx
call fcn.140078324
and qword [rbp - 0x10], 0
lea rax, [0x1400434e0]
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, [0x1400431a0]
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 0x140158690
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 0x14015870f
mov qword [rax + 8], rdi
mov qword [rax + 0x10], rdi
lea rax, [0x14038c070]
mov qword [r14], rax
mov dword [r14 + 0x18], 1
lock inc dword [0x14042193c]
jmp 0x140158712
mov r14, rdi
mov rbx, qword [rbp - 0x40]
test rbx, rbx
je 0x140158732
mov rax, qword [rbx]
mov rdi, qword [rax + 0x10]
mov rcx, rdi
call qword [0x1403a2250]
mov rcx, rbx
call rdi
xor edi, edi
mov qword [rbp - 0x40], rdi
test r14, r14
jne 0x140158749
mov esi, 0x8007000e
mov ecx, esi
call fcn.140078308
jmp 0x14015874d
mov qword [rbp - 0x30], r14
mov ecx, esi
call fcn.140078324
mov r14d, 3
mov qword [rbp - 0x18], rdi
lea rax, [0x140042e60]
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 0x140158792
mov ecx, esi
jmp 0x1401587bf
mov rbx, qword [rbp - 0x30]
mov rax, qword [rbx]
mov rdi, qword [rax]
mov rcx, rdi
call qword [0x1403a2250]
lea r8, [rbp - 0x38]
mov rcx, rbx
lea rdx, [0x1403c56e0]
call rdi
xor edi, edi
mov esi, eax
test eax, eax
jns 0x1401587c4
mov ecx, eax
call fcn.140078308
mov ecx, esi
call fcn.140078324
xor r9d, r9d
mov qword [rbp - 0x28], r14
lea rax, [0x140042e60]
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 0x140158808
mov ecx, esi
call fcn.140078308
jmp 0x14015885d
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.14015b62c
mov esi, eax
test eax, eax
jns 0x140158840
mov ecx, eax
jmp 0x140158801
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.140078324
mov rbx, qword [rbp - 0x38]
test rbx, rbx
je 0x140158882
mov rax, qword [rbx]
mov rdi, qword [rax + 0x10]
mov rcx, rdi
call qword [0x1403a2250]
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 0x1401588a8
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, [0x1403b9770]
mov qword [rsp + 0x20], rax
lea r8d, [r12 + 1]
lea rcx, [0x1403c56b0]
call qword [sym.imp.ole32.dll_CoCreateInstance]
mov ebx, eax
test eax, eax
jns 0x140158940
mov ecx, eax
call fcn.140078308
jmp 0x140158a6c
mov rbx, qword [rbp + 0x6f]
or r13d, 0xffffffff
mov rax, qword [rbx]
mov rdi, qword [rax + 0x240]
mov rcx, rdi
call qword [0x1403a2250]
movzx edx, r13w
mov rcx, rbx
call rdi
mov ebx, eax
test eax, eax
js 0x140158934
mov rbx, qword [rbp + 0x6f]
mov rax, qword [rbx]
mov rdi, qword [rax + 0x1f8]
mov rcx, rdi
call qword [0x1403a2250]
movzx edx, r12w
mov rcx, rbx
call rdi
mov ebx, eax
test eax, eax
js 0x140158934
cmp dword [0x140422f38], 1
lea eax, [r13 + 9]
movsd xmm1, qword [rbp - 0x49]
mov rsi, r12
mov rbx, qword [rbp + 0x6f]
cmove rsi, qword [0x1404224d0]
mov word [rbp - 0x59], ax
mov rax, r12
cmove rax, qword [0x1404224d8]
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 [0x1403a2250]
lea r8, [rbp - 0x29]
mov rdx, rsi
mov rcx, rbx
call rdi
mov ebx, eax
test eax, eax
js 0x140158934
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 [0x1403a2250]
lea r8, [rbp + 0x67]
mov rcx, rbx
lea rdx, [rbp - 0x29]
call rdi
mov ebx, eax
test eax, eax
js 0x140158934
cmp word [rbp + 0x67], r13w
je 0x140158a5d
mov rcx, qword [r15]
test rcx, rcx
je 0x140158a51
mov rdx, qword [rbp + 0x6f]
call fcn.140104988
mov ebx, 0x8004bd01
mov ecx, ebx
jmp 0x140158936
mov rcx, qword [rbp + 0x6f]
mov rax, qword [rbp + 0x7f]
mov qword [rbp + 0x6f], r12
mov qword [rax], rcx
mov ecx, ebx
call fcn.140078324
xor r9d, r9d
mov qword [rbp - 9], 3
lea rax, [0x140033760]
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 0x140159170
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 0x1401591c4
lea rax, [0x14038c0a0]
mov qword [rsi], rax
mov dword [rsi + 0x10], 1
lock inc dword [0x14042193c]
jmp 0x1401591c6
xor esi, esi
mov rbx, qword [rsp + 0x68]
test rbx, rbx
je 0x1401591e5
mov rax, qword [rbx]
mov rdi, qword [rax + 0x10]
mov rcx, rdi
call qword [0x1403a2250]
mov rcx, rbx
call rdi
and qword [rsp + 0x68], rbp
test rsi, rsi
jne 0x1401591fd
mov ebp, 0x8007000e
mov ecx, ebp
call fcn.140078308
jmp 0x140159200
mov qword [r14], rsi
mov ecx, ebp
call fcn.140078324
and qword [rsp + 0x30], 0
lea rax, [0x14003a2a0]
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 0x14015b398
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 rsi, qword [rcx + 8]
mov rbx, rdx
mov r14d, dword [rcx]
mov rdi, rcx
mov r15d, 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 r12, qword [rdx + 8]
and qword [rdx + 8], 0
mov rbp, qword [rcx + 8]
mov qword [rsp + 0x70], rsi
test rbp, rbp
je 0x14015b403
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rbp
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
and qword [rdi + 8], 0
mov rsi, qword [rsp + 0x70]
and qword [rsp + 0x70], 0
mov qword [rdi + 8], r12
mov dword [rbx], r14d
mov dword [rbx + 4], r15d
mov rdi, qword [rbx + 8]
test rdi, rdi
je 0x14015b436
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rdi
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
and qword [rbx + 8], 0
and qword [rsp + 0x30], 0
lea rax, [0x14003ea20]
xor r9d, r9d
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x70]
mov qword [rbx + 8], rsi
lea rdx, [rsp + 0x20]
mov qword [rsp + 0x20], 3
mov ecx, 0xb9
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 0x14015b490
Capabilities:
Get system information on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r14
push r15
mov rbp, rsp
sub rsp, 0x50
xor r15d, r15d
mov rbx, rcx
mov edi, r15d
mov qword [rbp + 0x30], r15
cmp dword [rcx], r15d
je 0x14015b548
mov eax, dword [rcx + 4]
mov esi, eax
test eax, eax
cmovg esi, r15d
jle 0x14015b519
movsxd rdx, edi
shl rdx, 4
add rdx, qword [rbx + 8]
je 0x14015b50e
xor r9d, r9d
mov qword [rbp - 0x18], rdx
lea rax, [0x140047fa0]
mov qword [rbp - 0x30], 3
mov qword [rbp - 0x28], rax
lea rdx, [rbp - 0x30]
lea rax, [rbp + 0x38]
mov dword [rbp - 0x10], 1
lea r8d, [r9 + 0x28]
mov qword [rbp - 0x20], rax
mov ecx, 0xb9
call sub.ntdll.dll_NtQuerySystemInformation
inc edi
cmp edi, dword [rbx + 4]
jl 0x14015b4c6
mov rdi, qword [rbp + 0x30]
mov r14, qword [rbx + 8]
mov qword [rbp + 0x30], r15
test r14, r14
je 0x14015b53e
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, r14
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov qword [rbx + 8], r15
mov qword [rbx + 8], rdi
mov dword [rbx + 4], esi
mov dword [rbx], r15d
xor ecx, ecx
call fcn.140078324
xor r9d, r9d
mov qword [rbp - 0x30], 3
lea rax, [0x14003ed60]
mov qword [rbp - 0x20], r15
mov qword [rbp - 0x28], rax
lea rdx, [rbp - 0x30]
lea rax, [rbp + 0x30]
mov ecx, 0xb9
lea r8d, [r9 + 0x28]
mov qword [rbp - 0x18], rax
call sub.ntdll.dll_NtQuerySystemInformation
mov rbx, qword [rsp + 0x90]
add rsp, 0x50
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x14015c1c0
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 0x14015c32a
mov r15d, dword [rcx + 4]
cmp esi, r15d
cmovl r15d, esi
test edx, edx
jle 0x14015c2a9
xor ebx, ebx
mov rcx, rsi
test edx, edx
je 0x14015c22f
mov r14, rcx
shl r14, 5
mov rax, r14
shr rax, 5
cmp rax, rcx
je 0x14015c232
mov ebx, 0x80070216
mov ecx, ebx
call fcn.140078308
mov r14, qword [rbp + 0x20]
jmp 0x14015c232
xor r14d, r14d
mov ecx, ebx
call fcn.140078324
test ebx, ebx
jns 0x14015c249
mov ecx, ebx
call fcn.140078308
jmp 0x14015c32c
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 0x14015c27d
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 0x14015c28d
and qword [rbp + 0x20], rbx
mov ebx, 0x8007000e
jmp 0x14015c23d
mov qword [rbp + 0x20], rbx
test r15d, r15d
je 0x14015c2a9
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 0x14015c2f5
mov ebx, esi
movsxd rdx, ebx
shl rdx, 5
add rdx, qword [rdi + 8]
je 0x14015c2ee
and qword [rbp - 0x10], 0
lea rax, [0x1400320a0]
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 0x14015c2b0
mov r14, qword [rbp + 0x20]
and qword [rbp + 0x20], 0
mov rbx, qword [rdi + 8]
test rbx, rbx
je 0x14015c320
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
mov qword [rdi + 8], r14
mov dword [rdi + 4], r15d
mov dword [rdi], esi
xor ebx, ebx
mov ecx, ebx
call fcn.140078324
and qword [rbp - 0x10], 0
lea rax, [0x14003ac60]
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