Function at 0x1402d44fc
Capabilities:
Reference sql statements

Disassembly:
mov rax, rsp
push rbp
push rdi
push r12
push r13
push r14
lea rbp, [rax - 0x1f8]
sub rsp, 0x2d0
mov qword [rbp - 0x60], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rsi
mov rax, qword [0x1405420e0]
xor rax, rsp
mov qword [rbp + 0x1c0], rax
mov rbx, rdx
mov rdi, rcx
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x48], xmm0
xor r12d, r12d
mov qword [rsp + 0x58], r12
mov qword [rsp + 0x38], r12
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
lea r9, [0x14040bba0]
lea esi, [r12 + 1]
mov r8d, esi
xor edx, edx
lea rcx, [0x14041b1b0]
call qword [sym.imp.ole32.dll_CoCreateInstance]
nop dword [rax + rax]
mov dword [rsp + 0x30], eax
test eax, eax
jns 0x1402d460f
call fcn.1400550c0
mov rcx, qword [rax + 8]
cmp dword [rcx], 3
jbe 0x1402d45eb
lea rax, str.Machine_state_OsInfo_state_collector___failed_to_create_SWbemDateTime_instance
mov qword [rbp + 0xe0], rax
mov qword [rbp + 0xe8], 0x9e
lea rax, [rsp + 0x30]
mov qword [rbp + 0xf0], rax
lea eax, [rsi + 3]
mov qword [rbp + 0xf8], rax
lea rdx, [rbp + 0xc0]
mov qword [rsp + 0x28], rdx
mov dword [rsp + 0x20], eax
xor r9d, r9d
xor r8d, r8d
lea rdx, [0x14048a537]
call fcn.140001208
mov eax, dword [rsp + 0x30]
mov dword [rbx], eax
mov qword [rbx + 4], r12
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x1402d4a25
mov rdx, qword [rcx]
mov rax, qword [rdx + 0x10]
jmp 0x1402d4a1e
lea rcx, [rsp + 0x60]
call qword [sym.imp.api_ms_win_core_sysinfo_l1_1_0.dll_GetSystemTimeAsFileTime]
nop dword [rax + rax]
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 + 0x68], rcx
lea r8, [rsp + 0x38]
lea rdx, [rsp + 0x68]
lea rcx, [rbp - 0x48]
call fcn.1402d4030
nop
cmp dword [rbp - 0x48], r12d
jge 0x1402d46d6
call fcn.1400550c0
mov rcx, qword [rax + 8]
cmp dword [rcx], 3
jbe 0x1402d46c8
lea rax, str.Machine_state_OsInfo_state_collector___failed_to_convert_time_to_CIM_DATETIME
mov qword [rbp + 0x120], rax
mov qword [rbp + 0x128], 0x9c
mov eax, dword [rbp - 0x48]
mov dword [rsp + 0x40], eax
lea rax, [rsp + 0x40]
mov qword [rbp + 0x130], rax
mov eax, 4
mov qword [rbp + 0x138], rax
lea rdx, [rbp + 0x100]
mov qword [rsp + 0x28], rdx
mov dword [rsp + 0x20], eax
xor r9d, r9d
xor r8d, r8d
lea rdx, [0x14048a7b5]
call fcn.140001208
mov eax, dword [rbp - 0x48]
mov dword [rbx], eax
mov qword [rbx + 4], r12
jmp 0x1402d4a03
movdqa xmm0, xmmword [0x140420310]
movdqu xmmword [rbp + 0x10], xmm0
mov word [rbp], r12w
lea rdx, str.RootCIMV2
lea rcx, [rbp]
call fcn.140055574
nop
lea r8, [rbp - 0x40]
lea rdx, str.SELECT_TimeGenerated_FROM_Win32_NTLogEvent_WHERE_Logfile__System_AND_EventCode__6006_AND_TimeGenerated___
lea rcx, [rbp + 0xa0]
call fcn.1400a88b0
nop
mov r8, rsi
lea rdx, [0x1403f753c]
mov rcx, rax
call fcn.140068814
movups xmm0, xmmword [rax]
movups xmmword [rbp + 0x20], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp + 0x30], xmm1
mov qword [rax + 0x10], r12
mov qword [rax + 0x18], 7
mov word [rax], r12w
movdqa xmm0, xmmword [0x140420310]
movdqu xmmword [rbp - 0x10], xmm0
mov word [rbp - 0x20], r12w
lea rdx, str.TimeGenerated
lea rcx, [rbp - 0x20]
call fcn.140055574
nop
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x78], xmm0
mov qword [rbp - 0x68], r12
lea r8, [rbp]
lea rdx, [rbp - 0x20]
lea rcx, [rbp - 0x78]
call fcn.1400679d0
nop
lea r9, [rbp - 0x78]
lea r8, [rbp + 0x20]
lea rdx, [rbp]
lea rcx, [rbp + 0x40]
call fcn.140352364
nop
lea rcx, [rbp - 0x78]
call fcn.14005e188
nop
lea r9, [fcn.140055f70]
mov r8, rsi
mov edx, Compress
lea rcx, [rbp - 0x20]
call fcn.140356be0
nop
lea rcx, [rbp + 0x20]
call fcn.140055f70
nop
lea rcx, [rbp + 0xa0]
call fcn.140055f70
nop
lea rcx, [rbp]
call fcn.140055f70
mov r8d, dword [rdi + 0x80]
lea rdx, [rsp + 0x48]
lea rcx, [rbp + 0x40]
call fcn.14034aefc
mov dword [rsp + 0x30], eax
test eax, eax
jns 0x1402d4869
call fcn.1400550c0
mov rcx, qword [rax + 8]
cmp dword [rcx], 3
jbe 0x1402d485a
lea rax, str.Machine_state_OsInfo_state_collector___failed_to_query_shutdown_event_from_event_log
mov qword [rbp + 0x160], rax
mov qword [rbp + 0x168], 0xaa
lea rax, [rsp + 0x30]
mov qword [rbp + 0x170], rax
mov eax, 4
mov qword [rbp + 0x178], rax
lea rdx, [rbp + 0x140]
mov qword [rsp + 0x28], rdx
mov dword [rsp + 0x20], eax
xor r9d, r9d
xor r8d, r8d
lea rdx, [0x14048a537]
call fcn.140001208
mov eax, dword [rsp + 0x30]
mov dword [rbx], eax
mov qword [rbx + 4], r12
jmp 0x1402d49e4
mov rcx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x48]
sub rcx, rsi
movabs r13, 0x2aaaaaaaaaaaaaab
mov rax, r13
imul rcx
sar rdx, 2
mov rax, rdx
shr rax, 0x3f
add rdx, rax
jne 0x1402d4902
call fcn.1400550c0
mov rcx, qword [rax + 8]
cmp dword [rcx], 5
jbe 0x1402d48f7
lea rax, str.Machine_state_OsInfo_state_collector___query_shutdown_events_returned_an_empty_list
mov qword [rbp + 0x1a0], rax
mov qword [rbp + 0x1a8], 0xa8
lea rax, [rsp + 0x30]
mov qword [rbp + 0x1b0], rax
mov eax, 4
mov qword [rbp + 0x1b8], rax
lea rdx, [rbp + 0x180]
mov qword [rsp + 0x28], rdx
mov dword [rsp + 0x20], eax
xor r9d, r9d
xor r8d, r8d
lea rdx, [0x14048a78b]
call fcn.140001208
mov dword [rbx], 0x80004005
jmp 0x1402d4860
lea rcx, [rsp + 0x70]
call fcn.1402d4b1c
nop
mov rdi, qword [rsp + 0x70]
mov r14, rdi
jmp 0x1402d493d
lea r8, [rsp + 0x38]
mov rdx, rsi
lea rcx, [rbp - 0x58]
call fcn.1402d4340
mov rcx, qword [rax + 4]
mov eax, dword [rax]
mov dword [r14], eax
mov qword [r14 + 4], rcx
add rsi, 0x18
lea r14, [r14 + 0xc]
cmp rsi, qword [rsp + 0x50]
jne 0x1402d4917
mov rsi, rdi
cmp rdi, qword [rsp + 0x78]
je 0x1402d497a
lea r14, [rdi + 0xc]
jmp 0x1402d4973
lea rcx, [rsi + 4]
lea rdx, [r14 + 4]
call qword [sym.imp.KERNEL32.dll_CompareFileTime]
nop dword [rax + rax]
cmp eax, 0xffffffff
cmove rsi, r14
add r14, 0xc
cmp r14, qword [rsp + 0x78]
jne 0x1402d4954
mov ecx, dword [rsi]
mov rdx, qword [rsi + 4]
mov dword [rbx], ecx
mov qword [rbx + 4], rdx
test rdi, rdi
je 0x1402d49e4
mov rcx, qword [rbp - 0x80]
sub rcx, rdi
mov rax, r13
imul rcx
sar rdx, 1
mov rax, rdx
shr rax, 0x3f
add rdx, rax
lea rdx, [rdx + rdx*2]
shl rdx, 2
mov rax, rdi
cmp rdx, 0x1000
jb 0x1402d49db
add rdx, 0x27
mov rdi, qword [rdi - 8]
sub rax, rdi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1402d49db
call qword [sym.imp.api_ms_win_crt_private_l1_1_0.dll__o__invalid_parameter_noinfo_noreturn]
nop dword [rax + rax]
int3
mov rcx, rdi
call fcn.140356b5c
nop
lea rcx, [rbp + 0x80]
call fcn.14005e188
lea rcx, [rbp + 0x60]
call fcn.140055f70
lea rcx, [rbp + 0x40]
call fcn.140055f70
nop
lea rcx, [rbp - 0x40]
call fcn.140055f70
nop
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x1402d4a25
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [str.p76_]
nop
lea rcx, [rsp + 0x48]
call fcn.1402d4c1c
mov rax, rbx
mov rcx, qword [rbp + 0x1c0]
xor rcx, rsp
call fcn.140356560
lea r11, [rsp + 0x2d0]
mov rbx, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r14
pop r13
pop r12
pop rdi
pop rbp
ret