joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400901e4
Capabilities:
Query environment variable
Set environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x270
mov rax, qword [0x140425b28]
xor rax, rsp
mov qword [rsp + 0x260], rax
xor eax, eax
lea rdx, [rsp + 0x50]
mov r8d, 0x104
mov qword [rsp + 0x20], rax
lea rcx, str.systemroot
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
jne 0x140090252
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x14009023f
mov esi, 0x80004005
jmp 0x14009034e
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
jmp 0x14009034e
lea rdx, [rsp + 0x50]
lea rcx, str.windir
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
test eax, eax
jne 0x140090298
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x140090235
movzx esi, ax
lea rdx, [0x14042bd04]
or esi, 0x80070000
lea rcx, [0x14040da08]
test eax, eax
cmovle esi, eax
call fcn.1400ea7f4
jmp 0x14009034e
lea rcx, [rsp + 0x20]
call fcn.1400905a8
mov esi, eax
test eax, eax
jns 0x1400902af
mov ecx, eax
jmp 0x140090350
lea rax, str.SPPSvc
xor esi, esi
and qword [rsp + 0x38], rsi
lea rcx, [rsp + 0x28]
and qword [rsp + 0x40], rsi
mov qword [rsp + 0x28], rax
lea rax, [0x140090780]
mov qword [rsp + 0x30], rax
call qword [sym.imp.ADVAPI32.dll_StartServiceCtrlDispatcherW]
test eax, eax
jne 0x140090330
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, [0x140427f20]
mov ebx, eax
lea rcx, [0x140412560]
call fcn.1400ea158
test ebx, ebx
jne 0x140090308
mov esi, 0x80004005
jmp 0x140090329
lea rdx, [0x14042c2d8]
lea rcx, [0x140405b64]
call fcn.1400ea4ac
movzx esi, bx
or esi, 0x80070000
test ebx, ebx
cmovle esi, ebx
mov ecx, esi
call fcn.1400790f8
mov ecx, esi
call fcn.140079118
test esi, esi
jns 0x140090355
lea rdx, [0x14042d8c0]
lea rcx, [0x14040f448]
call fcn.1400e8a6c
mov ecx, esi
call fcn.1400790f8
mov ecx, esi
call fcn.140079118
cmp dword [rsp + 0x20], 0
je 0x140090396
cmp qword [0x14042f8b0], 0
je 0x140090396
mov rbx, qword [0x14042fb40]
test rbx, rbx
je 0x140090396
mov rdi, qword [0x14042f8b8]
mov rcx, rdi
call qword [0x1403af620]
mov rcx, rbx
call rdi
and qword [0x14042fb40], 0
cmp dword [rsp + 0x24], 0
je 0x1400903b6
call qword [sym.imp.api_ms_win_core_com_l1_1_0.dll_CoUninitialize]
lea rdx, [0x14042b110]
lea rcx, [0x1404048cc]
call fcn.1400e9e10
mov eax, esi
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.140368700
lea r11, [rsp + 0x270]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret
Function at 0x1400903e4
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x40
mov rax, qword [0x140425b28]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov rax, qword [0x140425898]
lea rdx, [0x1404287dc]
lea rcx, [0x140412c50]
movups xmm0, xmmword [rax - 0x10]
movdqu xmmword [rsp + 0x20], xmm0
call fcn.1400e90f0
xorps xmm0, xmm0
lea r9, [0x1404258b0]
lea r8, [0x140425890]
lea rdx, [0x140001010]
lea rcx, [rsp + 0x20]
movdqu xmmword [0x1404258b8], xmm0
call qword [sym.imp.ADVAPI32.dll_EventRegister]
xor edi, edi
test eax, eax
jne 0x140090485
lea rdx, [0x14042e12c]
lea rcx, [0x140410878]
call fcn.1400e9ac8
mov r8, qword [0x140425898]
lea edx, [rdi + 2]
mov rcx, qword [0x1404258b0]
movzx r9d, word [r8]
call qword [sym.imp.ADVAPI32.dll_EventSetInformation]
call fcn.1400901e4
lea rdx, [0x140427558]
mov esi, eax
lea rcx, [0x140409848]
call fcn.1400e8db8
mov rcx, qword [0x1404258b0]
call qword [sym.imp.ADVAPI32.dll_EventUnregister]
lea rdx, [0x140429728]
mov qword [0x1404258b0], rdi
lea rcx, [0x140413b24]
mov dword [0x140425890], edi
call fcn.1400e9438
test esi, esi
jns 0x1400904d9
mov ecx, esi
call fcn.1400790f8
jmp 0x14009050a
mov eax, dword [0x14042e928]
mov ebx, edi
test eax, eax
sete bl
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov edx, ebx
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
lea rdx, [0x1404298a4]
lea rcx, [0x14040b7d8]
call fcn.1400e977c
mov ecx, esi
call fcn.140079118
test esi, esi
sets dil
mov eax, edi
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.140368700
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
Function at 0x1400aa024
Capabilities:
Get system information on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
push rbp
push rsi
push rdi
mov rbp, rsp
sub rsp, 0x60
and dword [rbp - 0x40], 0
lea rax, [0x1400072f8]
and dword [rbp - 0x3c], 0
lea rdx, [rbp - 0x30]
and qword [rbp - 0x38], 0
mov rsi, r9
and qword [rbp - 0x18], 0
xor r9d, r9d
mov qword [rbp - 0x28], rax
mov ecx, 0xb9
lea rax, [rbp + 0x28]
mov qword [rbp - 0x30], 3
mov qword [rbp - 0x20], rax
lea rax, [rbp - 0x40]
lea r8d, [r9 + 0x30]
mov qword [rbp - 0x10], rax
call sub.ntdll.dll_NtQuerySystemInformation
mov ebx, dword [rbp + 0x28]
test ebx, ebx
jns 0x1400aa094
mov ecx, ebx
jmp 0x1400aa111
xor edi, edi
cmp dword [rbp - 0x3c], edi
jle 0x1400aa0fd
movsxd rbx, edi
shl rbx, 7
add rbx, qword [rbp - 0x38]
mov rcx, rbx
lea rdx, [rbx + 0x68]
call fcn.1400b4fc0
lea rax, [0x140007638]
mov qword [rbp - 0x30], 3
mov qword [rbp - 0x28], rax
lea rdx, [rbp - 0x30]
lea rax, [rbp + 0x30]
mov qword [rbp - 0x18], rbx
mov qword [rbp - 0x20], rax
xor r9d, r9d
lea rax, [rbx + 0x60]
mov ecx, 0xb9
mov qword [rbp - 0x10], rax
lea rax, [rbx + 0x58]
mov qword [rbp - 8], rax
lea r8d, [r9 + 0x30]
call sub.ntdll.dll_NtQuerySystemInformation
inc edi
cmp edi, dword [rbp - 0x3c]
jl 0x1400aa09b
lea r8, [rbp - 0x40]
mov rdx, rsi
call fcn.1400b2abc
mov ebx, eax
test eax, eax
jns 0x1400aa116
mov ecx, eax
call fcn.1400790f8
mov ecx, ebx
call fcn.140079118
xor edx, edx
lea rcx, [rbp - 0x40]
call fcn.1400c3cf4
lea rcx, [rbp - 0x38]
call fcn.1400b6d90
mov eax, ebx
mov rbx, qword [rsp + 0x80]
add rsp, 0x60
pop rdi
pop rsi
pop rbp
ret
Function at 0x1400be864
Capabilities:
Get system information on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r12
push rbp
push r14
push r15
mov rbp, rsp
sub rsp, 0x80
and qword [rbp - 0x50], 0
mov rdi, r8
and qword [rbp - 0x58], 0
lea r8, [rbp - 0x50]
mov r12d, edx
mov r15, r9
lea rdx, [rbp - 0x60]
call fcn.1400c38d0
mov ebx, eax
test eax, eax
jns 0x1400be8b3
mov ecx, eax
jmp 0x1400be946
mov ebx, 0x20
mov edx, ebx
lea ecx, [rbx + 0x20]
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rsi, rax
test rax, rax
je 0x1400be93f
mov r14, qword [rbp - 0x50]
lea r8d, [rbx + 0x1c]
mov qword [rbp - 0x58], rax
lea rdx, [rbp - 0x48]
lea rax, [0x14000ad78]
mov qword [rbp - 0x2c], rdi
mov edi, dword [rbp - 0x60]
lea ecx, [r8 + 0x7d]
mov qword [rbp - 0x40], rax
xor r9d, r9d
lea rax, [rbp - 0x5c]
mov qword [rbp - 0x20], r14
mov qword [rbp - 0x38], rax
mov qword [rbp - 0x48], 3
mov dword [rbp - 0x30], r12d
mov dword [rbp - 0x24], edi
mov dword [rbp - 0x18], ebx
mov qword [rbp - 0x14], rsi
call sub.ntdll.dll_NtQuerySystemInformation
mov ebx, dword [rbp - 0x5c]
test ebx, ebx
js 0x1400be944
xor eax, eax
mov dword [r15], 0x20
and qword [rbp - 0x58], rax
mov ecx, edi
mov rdi, r14
rep stosb byte [rdi], al
mov rax, qword [rbp + 0x40]
mov qword [rax], rsi
jmp 0x1400be94b
mov ebx, 0x8007000e
mov ecx, ebx
call fcn.1400790f8
mov ecx, ebx
call fcn.140079118
lea rcx, [rbp - 0x58]
call fcn.14005a598
lea rcx, [rbp - 0x50]
call fcn.14005a598
lea r11, [rsp + 0x80]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov r12, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x1400c556c
Capabilities:
Get system information on windows

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
push r14
push r15
mov rbp, rsp
sub rsp, 0x60
xor esi, esi
xor ebx, ebx
and dword [rbp - 0x24], esi
mov r15, r8
and dword [rbp - 0x28], esi
mov r14, rdx
and qword [rbp - 0x38], rsi
mov qword [rbp - 0x30], rsi
mov qword [rbp - 0x40], rbx
test ecx, ecx
je 0x1400c55e8
cmp ecx, 1
je 0x1400c55ab
mov edi, 0x80070057
jmp 0x1400c5623
lea rax, [0x14000c0f8]
mov qword [rbp - 0x20], 3
mov qword [rbp - 0x18], rax
lea rdx, [rbp - 0x20]
xor r9d, r9d
lea rax, [rbp + 0x30]
mov qword [rbp - 0x10], rax
mov ecx, 0xb9
lea rax, [rbp - 0x38]
mov qword [rbp - 8], rax
lea r8d, [r9 + 0x20]
call sub.ntdll.dll_NtQuerySystemInformation
mov edi, dword [rbp + 0x30]
jmp 0x1400c5623
lea rax, [0x14000c438]
mov qword [rbp - 0x20], 3
mov qword [rbp - 0x18], rax
lea rdx, [rbp - 0x20]
xor r9d, r9d
lea rax, [rbp + 0x48]
mov qword [rbp - 0x10], rax
mov ecx, 0xb9
lea rax, [rbp - 0x38]
mov qword [rbp - 8], rax
lea r8d, [r9 + 0x20]
call sub.ntdll.dll_NtQuerySystemInformation
mov edi, dword [rbp + 0x48]
test edi, edi
jns 0x1400c562e
mov ecx, edi
jmp 0x1400c56e7
lea rdx, [rbp - 0x40]
mov rcx, r14
call fcn.140051f90
mov edi, eax
test eax, eax
jns 0x1400c5650
mov ecx, eax
call fcn.1400790f8
mov rbx, qword [rbp - 0x40]
jmp 0x1400c56ec
mov rdx, qword [rbp - 0x38]
lea rcx, [rbp - 0x30]
call fcn.140068df4
mov edi, eax
test eax, eax
jns 0x1400c5670
mov ecx, eax
call fcn.1400790f8
mov rsi, qword [rbp - 0x30]
jmp 0x1400c5647
mov rbx, qword [rbp - 0x40]
mov r14d, 0x7fffffff
test rbx, rbx
jne 0x1400c5683
xor edi, edi
jmp 0x1400c56b5
mov r8d, r14d
lea rdx, [rbp - 0x40]
mov rcx, rbx
call fcn.140078cfc
mov edi, eax
test eax, eax
js 0x1400c56ae
mov r8d, dword [rbp - 0x40]
lea rcx, [rbp - 0x30]
mov rdx, rbx
call fcn.14006eb00
mov edi, eax
test eax, eax
jns 0x1400c56b5
mov ecx, eax
call fcn.1400790f8
mov ecx, edi
call fcn.140079118
test edi, edi
jns 0x1400c56cd
mov ecx, edi
call fcn.1400790f8
mov rsi, qword [rbp - 0x30]
jmp 0x1400c56ec
mov rsi, qword [rbp - 0x30]
mov r8d, r14d
mov rcx, rsi
mov rdx, r15
call fcn.1400689cc
mov edi, eax
test eax, eax
jns 0x1400c56ec
mov ecx, eax
call fcn.1400790f8
mov ecx, edi
call fcn.140079118
test rbx, rbx
je 0x1400c5701
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, qword [rbp - 0x38]
test rcx, rcx
je 0x1400c5715
call qword [sym.imp.KERNEL32.dll_LocalFree]
and qword [rbp - 0x38], 0
test rsi, rsi
je 0x1400c572e
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rsi
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rbx, qword [rsp + 0x98]
mov eax, edi
add rsp, 0x60
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x1400e8874
Capabilities:
Get system information on windows
Make suspicious ntquerysysteminformation call

Disassembly:
push rbx
sub rsp, 0x50
rdtsc
and qword [0x14042e9c8], 0
and qword [0x14042e9b8], 0
shl rdx, 0x20
or rax, rdx
btr eax, 0x1f
mov qword [0x14042e9d8], rax
call fcn.1400e81d0
mov qword [0x14042e9b0], rax
test rax, rax
je 0x1400e88dc
mov ebx, 1
mov qword [0x14042e9c0], rbx
mov qword [0x14042e9d0], rbx
call fcn.1404e0000
mov ecx, dword [0x14042f3e8]
test eax, eax
mov edx, eax
cmovns ecx, ebx
mov dword [0x14042f3e8], ecx
jmp 0x1400e88f1
and qword [0x14042e9c0], 0
mov edx, 0x8007000e
and qword [0x14042e9d0], 0
xor eax, eax
test edx, edx
cmovs eax, edx
test eax, eax
js 0x1400e8940
and dword [rsp + 0x30], 0
lea rax, [rsp + 0x30]
and qword [rsp + 0x38], 0
lea rdx, [rsp + 0x20]
and dword [rsp + 0x40], 0
xor r9d, r9d
mov ecx, 0xb9
mov dword [rsp + 0x34], 0x64
mov qword [rsp + 0x20], 8
mov qword [rsp + 0x28], rax
lea r8d, [r9 + 0x10]
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
xor eax, eax
add rsp, 0x50
pop rbx
ret

Function at 0x1400e894c
Capabilities:
Get system information on windows
Make suspicious ntquerysysteminformation call

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x40
cmp dword [0x14042f3e8], 0
je 0x1400e8978
lea rcx, [0x14042e9e0]
call qword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
and dword [0x14042f3e8], 0
mov rsi, qword [0x14042e9b0]
jmp 0x1400e89c0
mov rdi, rsi
mov rsi, qword [rsi + 0xfbd0]
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, [rdi + 0xfbe0]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_RtlDeleteFunctionTable]
xor edx, edx
mov r8d, 0x8000
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
dec qword [0x14042e9c0]
test rsi, rsi
jne 0x1400e8981
and qword [0x14042e9b0], rsi
lea rax, [0x140000000]
and dword [rsp + 0x20], esi
lea r8d, [rsi + 0x10]
mov qword [rsp + 0x28], rax
lea rdx, [rsp + 0x30]
lea rax, [rsp + 0x20]
mov qword [rsp + 0x30], 9
xor r9d, r9d
mov qword [rsp + 0x38], rax
mov ecx, 0xb9
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
Function at 0x1400fb178
Capabilities:
Get system information on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x20], r9
mov dword [rsp + 0x18], r8d
push rbp
push rsi
push rdi
mov rbp, rsp
sub rsp, 0x60
mov rsi, rcx
mov dword [rcx + 8], edx
xor ecx, ecx
call fcn.140079118
lea rcx, [rsi + 0x20]
call fcn.14006ed9c
xor ecx, ecx
call fcn.140079118
xor ebx, ebx
test byte [rsi + 8], 1
je 0x1400fb2c8
lea r9, [rbp + 0x38]
xor edx, edx
lea r8, [0x1403c0250]
mov rcx, rsi
call fcn.1400fdcbc
mov ebx, eax
test eax, eax
jns 0x1400fb1e1
mov ecx, eax
call fcn.1400790f8
mov edi, dword [rbp + 0x30]
jmp 0x1400fb1e5
movzx edi, byte [rbp + 0x38]
mov ecx, ebx
call fcn.140079118
lea eax, [rbx + 0x3ffb2cff]
cmp eax, 1
ja 0x1400fb1fb
xor edi, edi
xor ebx, ebx
test ebx, ebx
js 0x1400fb2c1
test edi, edi
je 0x1400fb2c8
mov rcx, rsi
call fcn.1400fc858
mov ebx, eax
test eax, eax
jns 0x1400fb220
mov ecx, eax
jmp 0x1400fb2c3
and qword [rbp + 0x20], 0
cmp dword [0x14042f560], 0
mov byte [rbp + 0x38], 0
jne 0x1400fb239
mov ecx, 0xc004d101
jmp 0x1400fb28f
and qword [rbp - 0x20], 0
lea rax, [0x14002b578]
mov qword [rbp - 0x38], rax
lea rdx, [rbp - 0x40]
lea rax, [rbp + 0x30]
mov qword [rbp - 0x40], 3
mov qword [rbp - 0x30], rax
xor r9d, r9d
mov rax, qword [0x14042f748]
mov ecx, 0xb9
mov qword [rbp - 0x28], rax
lea rax, [rbp + 0x38]
mov qword [rbp - 0x14], rax
lea r8d, [r9 + 0x34]
mov dword [rbp - 0x18], 0xa0014
call sub.ntdll.dll_NtQuerySystemInformation
mov ecx, dword [rbp + 0x30]
test ecx, ecx
jns 0x1400fb294
call fcn.1400790f8
call fcn.1401609f0
mov ecx, eax
mov ebx, eax
call fcn.140079118
lea rcx, [rbp + 0x20]
call fcn.140052da8
test ebx, ebx
jns 0x1400fb2b6
mov ecx, ebx
call fcn.1400790f8
mov ecx, ebx
call fcn.140079118
test ebx, ebx
jns 0x1400fb2c8
mov ecx, ebx
call fcn.1400790f8
mov ecx, ebx
call fcn.140079118
mov eax, ebx
mov rbx, qword [rsp + 0x88]
add rsp, 0x60
pop rdi
pop rsi
pop rbp
ret
Function at 0x140106ea4
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.1401a0154
mov rsi, qword [rbp - 0x38]
mov edi, eax
test eax, eax
jns 0x140106ef7
mov ecx, eax
call fcn.1400790f8
jmp 0x140106f9b
cmp dword [0x14042f560], 0
jne 0x140106f07
mov ebx, 0xc004d101
jmp 0x140106f58
test rsi, rsi
je 0x140106f53
mov eax, dword [rbp + 0x20]
test eax, eax
je 0x140106f53
lea rcx, [0x140002eb8]
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 + 0x24]
call sub.ntdll.dll_NtQuerySystemInformation
mov ebx, dword [rbp + 0x38]
test ebx, ebx
jns 0x140106f5f
jmp 0x140106f58
mov ebx, 0xc004d104
mov ecx, ebx
call fcn.1400790f8
mov ecx, ebx
call fcn.140079118
mov ecx, ebx
sub ecx, 0x4004d601
je 0x140106f8b
cmp ecx, 1
je 0x140106f82
mov edi, ebx
test ebx, ebx
jns 0x140106f8f
mov ecx, ebx
jmp 0x140106eed
mov dword [rbp - 0x3c], 1
jmp 0x140106f8f
and dword [rbp - 0x40], 0
test r14, r14
je 0x140106f9b
mov rax, qword [rbp - 0x40]
mov qword [r14], rax
mov ecx, edi
call fcn.140079118
test rsi, rsi
je 0x140106fb0
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 0x140153394
Capabilities:
Query service status

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r14
sub rsp, 0x90
mov rax, qword [0x140425b28]
xor rax, rsp
mov qword [rsp + 0x88], rax
mov edi, dword [rsp + 0x3c]
mov r14, r8
mov rbp, rcx
xor esi, esi
lea rax, [rsp + 0x30]
xor ebx, ebx
lea r8, [rsp + 0x60]
mov qword [rsp + 0x20], rax
xor edx, edx
mov rcx, rbp
lea r9d, [rbx + 0x24]
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
jne 0x140153413
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x1401533fc
mov ebx, 0x80004005
jmp 0x14015340a
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
mov ecx, ebx
call fcn.1400790f8
jmp 0x140153421
movups xmm0, xmmword [rsp + 0x60]
movups xmmword [rsp + 0x38], xmm0
mov edi, dword [rsp + 0x3c]
mov ecx, ebx
call fcn.140079118
test ebx, ebx
js 0x140153451
cmp edi, 4
je 0x140153489
cmp edi, 1
je 0x140153489
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
inc esi
cmp esi, 0x1e
jb 0x1401533c7
mov ebx, 0x800705b4
mov ecx, ebx
call fcn.1400790f8
mov ecx, ebx
call fcn.140079118
mov eax, ebx
mov rcx, qword [rsp + 0x88]
xor rcx, rsp
call fcn.140368700
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
xor eax, eax
cmp edi, 4
sete al
xor ebx, ebx
mov dword [r14], eax
jmp 0x140153458
Function at 0x14015a414
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 0x14015a527
mov r14d, dword [rcx + 4]
cmp edi, r14d
cmovl r14d, edi
test edx, edx
jle 0x14015a4f0
mov rcx, rdi
mov r15, rcx
shl r15, 3
mov rax, r15
shr rax, 3
cmp rax, rcx
je 0x14015a47c
mov ebx, 0x80070216
mov ecx, ebx
call fcn.1400790f8
mov r15, qword [rbp + 0x20]
mov ecx, ebx
call fcn.140079118
test ebx, ebx
jns 0x14015a493
mov ecx, ebx
call fcn.1400790f8
jmp 0x14015a527
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 0x14015a4c7
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 0x14015a57e
mov qword [rbp + 0x20], rbx
test r14d, r14d
je 0x14015a4f0
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 0x14015a512
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, [0x140018738]
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 0x14015a487
Function at 0x14015acfc
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 [0x1403af620]
lea r8, [rbp + 0x20]
mov rdx, rsi
mov rcx, rdi
call rbx
mov ebx, eax
test eax, eax
js 0x14015adfb
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 [0x1403af620]
lea rdx, [rbp - 0x40]
mov rcx, rbx
call rdi
mov ebx, eax
test eax, eax
js 0x14015adfb
mov rax, qword [r14]
mov rbx, qword [rax + 0x88]
mov rcx, rbx
call qword [0x1403af620]
lea rdx, [rbp - 0x60]
mov rcx, r14
call rbx
mov ebx, eax
test eax, eax
js 0x14015adfb
mov rbx, qword [rbp - 0x60]
mov rax, qword [rbx]
mov rdi, qword [rax + 0x40]
mov rcx, rdi
call qword [0x1403af620]
mov rdx, qword [rbp + 0x20]
xor r8d, r8d
mov rcx, rbx
call rdi
mov ebx, eax
test eax, eax
jns 0x14015ae02
mov ecx, eax
call fcn.1400790f8
mov ecx, ebx
call fcn.140079118
and qword [rbp - 0x10], 0
lea rax, [0x140024078]
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, [0x140023d38]
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