Function at 0x140290c2c
Capabilities:
Reference sql statements

Disassembly:
mov rax, rsp
push rbp
push rsi
push rdi
push r12
push r14
lea rbp, [rax - 0x208]
sub rsp, 0x2e0
mov qword [rbp - 0x58], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov rax, qword [0x14049e510]
xor rax, rsp
mov qword [rbp + 0x1d0], rax
mov rdi, rdx
mov rsi, rcx
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x48], xmm0
xor r12d, r12d
mov qword [rsp + 0x58], r12
xor ebx, ebx
mov qword [rsp + 0x68], rbx
mov qword [rsp + 0x38], r12
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
lea r9, [0x14037d5f0]
lea r14d, [r12 + 1]
mov r8d, r14d
xor edx, edx
lea rcx, [0x140386568]
call qword [sym.imp.ole32.dll_CoCreateInstance]
mov dword [rsp + 0x30], eax
test eax, eax
jns 0x140290d3b
call fcn.14004d8a4
mov rcx, qword [rax + 8]
cmp dword [rcx], 3
jbe 0x140290d17
lea rax, str.Machine_state_OsInfo_state_collector___failed_to_create_SWbemDateTime_instance
mov qword [rbp + 0xf0], rax
mov qword [rbp + 0xf8], 0x9e
lea rax, [rsp + 0x30]
mov qword [rbp + 0x100], rax
lea eax, [rbx + 4]
mov qword [rbp + 0x108], rax
lea rdx, [rbp + 0xd0]
mov qword [rsp + 0x28], rdx
mov dword [rsp + 0x20], eax
xor r9d, r9d
xor r8d, r8d
lea rdx, [0x1403e56c4]
call fcn.140001158
mov eax, dword [rsp + 0x30]
mov dword [rdi], eax
mov qword [rdi + 4], rbx
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x14029110f
mov rdx, qword [rcx]
mov rax, qword [rdx + 0x10]
jmp 0x140291108
lea rcx, [rsp + 0x60]
call qword [sym.imp.api_ms_win_core_sysinfo_l1_1_0.dll_GetSystemTimeAsFileTime]
mov rdx, qword [rsp + 0x60]
shr rdx, 0x20
shl rdx, 0x20
mov ecx, dword [rsp + 0x60]
movabs rax, 0xfffffa7fd71bc000
add rax, rdx
add rcx, rax
mov qword [rsp + 0x70], rcx
lea r8, [rsp + 0x38]
lea rdx, [rsp + 0x70]
lea rcx, [rbp - 0x40]
call fcn.14029079c
nop
cmp dword [rbp - 0x40], r12d
jge 0x140290dfc
call fcn.14004d8a4
mov rcx, qword [rax + 8]
cmp dword [rcx], 3
jbe 0x140290dee
lea rax, str.Machine_state_OsInfo_state_collector___failed_to_convert_time_to_CIM_DATETIME
mov qword [rbp + 0x130], rax
mov qword [rbp + 0x138], 0x9c
mov eax, dword [rbp - 0x40]
mov dword [rsp + 0x40], eax
lea rax, [rsp + 0x40]
mov qword [rbp + 0x140], rax
mov eax, 4
mov qword [rbp + 0x148], rax
lea rdx, [rbp + 0x110]
mov qword [rsp + 0x28], rdx
mov dword [rsp + 0x20], eax
xor r9d, r9d
xor r8d, r8d
lea rdx, [0x1403e5762]
call fcn.140001158
mov eax, dword [rbp - 0x40]
mov dword [rdi], eax
mov qword [rdi + 4], rbx
jmp 0x1402910ed
movdqa xmm0, xmmword [0x14038ac40]
movdqu xmmword [rbp + 0x18], xmm0
mov word [rbp + 8], r12w
lea rdx, str.RootCIMV2
lea rcx, [rbp + 8]
call fcn.14004d5c4
nop
movdqa xmm0, xmmword [0x14038ac40]
movdqu xmmword [rbp - 8], xmm0
mov word [rbp - 0x18], r12w
lea rdx, str.TimeGenerated
lea rcx, [rbp - 0x18]
call fcn.14004d5c4
nop
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x78], xmm0
mov qword [rbp - 0x78], r12
lea r8, [rbp + 8]
lea rdx, [rbp - 0x18]
lea rcx, [rsp + 0x78]
call fcn.14005d378
nop
lea r8, [rbp - 0x38]
lea rdx, str.SELECT_TimeGenerated_FROM_Win32_NTLogEvent_WHERE_Logfile__System_AND_EventCode__6006_AND_TimeGenerated___
lea rcx, [rbp + 0xb0]
call fcn.1400991d4
nop
mov r8, r14
lea rdx, [0x14037d4d0]
mov rcx, rax
call fcn.14005e1e8
movups xmm0, xmmword [rax]
movups xmmword [rbp + 0x90], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp + 0xa0], xmm1
mov qword [rax + 0x10], r12
mov qword [rax + 0x18], 7
mov word [rax], r12w
lea rdx, [rbp + 8]
lea rcx, [rbp + 0x30]
call fcn.14004cf4c
nop
lea rdx, [rbp + 0x90]
lea rcx, [rbp + 0x50]
call fcn.14004cf4c
nop
lea rdx, [rsp + 0x78]
lea rcx, [rbp + 0x70]
call fcn.140085f38
nop
lea rcx, [rbp + 0x90]
call fcn.14004e0f0
nop
lea rcx, [rbp + 0xb0]
call fcn.14004e0f0
nop
lea rcx, [rsp + 0x78]
call fcn.1400593e8
nop
lea r9, [fcn.14004e170]
mov r8, r14
mov edx, Compress
lea rcx, [rbp - 0x18]
call fcn.1402e0288
nop
lea rcx, [rbp + 8]
call fcn.14004e0f0
mov r8d, dword [rsi + 0x80]
lea rdx, [rsp + 0x48]
lea rcx, [rbp + 0x30]
call fcn.1402d72c8
mov dword [rsp + 0x30], eax
test eax, eax
jns 0x140290fb8
call fcn.14004d8a4
mov rcx, qword [rax + 8]
cmp dword [rcx], 3
jbe 0x140290fa4
lea rax, str.Machine_state_OsInfo_state_collector___failed_to_query_shutdown_event_from_event_log
mov qword [rbp + 0x170], rax
mov qword [rbp + 0x178], 0xaa
lea rax, [rsp + 0x30]
mov qword [rbp + 0x180], rax
mov eax, 4
mov qword [rbp + 0x188], rax
lea rdx, [rbp + 0x150]
mov qword [rsp + 0x28], rdx
mov dword [rsp + 0x20], eax
xor r9d, r9d
xor r8d, r8d
lea rdx, [0x1403e56c4]
call fcn.140001158
mov eax, dword [rsp + 0x30]
mov dword [rdi], eax
mov rax, qword [rsp + 0x68]
mov qword [rdi + 4], rax
jmp 0x1402910d1
mov rcx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x48]
sub rcx, rsi
movabs rax, 0x2aaaaaaaaaaaaaab
imul rcx
sar rdx, 2
mov rax, rdx
shr rax, 0x3f
add rdx, rax
jne 0x14029104e
call fcn.14004d8a4
mov rcx, qword [rax + 8]
cmp dword [rcx], 5
jbe 0x140291043
lea rax, str.Machine_state_OsInfo_state_collector___query_shutdown_events_returned_an_empty_list
mov qword [rbp + 0x1b0], rax
mov qword [rbp + 0x1b8], 0xa8
lea rax, [rsp + 0x30]
mov qword [rbp + 0x1c0], rax
mov eax, 4
mov qword [rbp + 0x1c8], rax
lea rdx, [rbp + 0x190]
mov qword [rsp + 0x28], rdx
mov dword [rsp + 0x20], eax
xor r9d, r9d
xor r8d, r8d
lea rdx, [0x1403e5738]
call fcn.140001158
mov dword [rdi], 0x80004005
jmp 0x140290faa
lea rcx, [rbp - 0x70]
call fcn.140291174
nop
mov rbx, qword [rbp - 0x70]
mov r14, rbx
jmp 0x140291087
lea r8, [rsp + 0x38]
mov rdx, rsi
lea rcx, [rbp - 0x50]
call fcn.140290a7c
mov ecx, dword [rax]
mov rax, qword [rax + 4]
mov dword [r14], ecx
mov qword [r14 + 4], rax
add rsi, 0x18
lea r14, [r14 + 0xc]
cmp rsi, qword [rsp + 0x50]
jne 0x140291061
mov r14, qword [rbp - 0x68]
cmp rbx, r14
je 0x1402910bb
lea rsi, [rbx + 0xc]
jmp 0x1402910b6
lea rcx, [rbx + 4]
lea rdx, [rsi + 4]
call qword [sym.imp.KERNEL32.dll_CompareFileTime]
cmp eax, 0xffffffff
cmove rbx, rsi
add rsi, 0xc
cmp rsi, r14
jne 0x14029109d
mov eax, dword [rbx]
mov rcx, qword [rbx + 4]
mov dword [rdi], eax
mov qword [rdi + 4], rcx
lea rcx, [rbp - 0x70]
call fcn.140291238
nop
lea rcx, [rbp + 0x70]
call fcn.1400593e8
lea rcx, [rbp + 0x50]
call fcn.14004e0f0
lea rcx, [rbp + 0x30]
call fcn.14004e0f0
nop
lea rcx, [rbp - 0x38]
call fcn.14004e0f0
nop
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x14029110f
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [case.0x140245398.0]
nop
lea rcx, [rsp + 0x48]
call fcn.1402912c8
mov rax, rdi
mov rcx, qword [rbp + 0x1d0]
xor rcx, rsp
call fcn.1402dfdb0
mov rbx, qword [rsp + 0x320]
add rsp, 0x2e0
pop r14
pop r12
pop rdi
pop rsi
pop rbp
ret