Function at 0x1800161d0
Capabilities:
Get session user name

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x2f0]
sub rsp, 0x3f0
mov qword [rbp - 0x58], 0xfffffffffffffffe
mov qword [rsp + 0x440], rbx
mov rax, qword [0x1800ff5a8]
xor rax, rsp
mov qword [rbp + 0x2e0], rax
mov rbx, rdx
mov qword [rsp + 0x58], rdx
mov r12, rcx
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 0x38]
mov r8, qword [rax + 8]
cmp qword [rax], r8
jne 0x180016230
xor al, al
jmp 0x1800169a8
mov rcx, qword [rbx]
mov rax, qword [rcx]
call qword [rax + 8]
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x68], xmm0
mov rsi, qword [rax + 8]
mov qword [rbp - 0x70], rsi
mov r15, qword [rax]
test rsi, rsi
je 0x180016255
lock inc dword [rsi + 8]
mov qword [rbp - 0x60], rsi
mov qword [rbp - 0x68], r15
or rdi, 0xffffffffffffffff
test r15, r15
jne 0x18001626e
xor r14b, r14b
jmp 0x180016978
mov rcx, qword [rbx]
mov rax, qword [rcx]
call qword [rax + 0x68]
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x60], xmm0
mov r8, qword [rax + 8]
mov rdx, qword [rax]
test r8, r8
je 0x180016291
lock inc dword [r8 + 8]
lea rcx, [rsp + 0x60]
call fcn.180003580
nop
mov r14, qword [rsp + 0x60]
test r14, r14
je 0x18001693d
mov rax, qword [r14]
mov rcx, r14
call qword [rax + 0x18]
xor r13d, r13d
mov qword [rbp + 0x150], r13
mov qword [rbp + 0x158], r13
mov qword [rbp + 0x158], 0xf
mov qword [rbp + 0x150], r13
mov byte [rbp + 0x140], r13b
cmp byte [rax], r13b
jne 0x1800162e7
mov r8d, r13d
jmp 0x1800162f9
mov r8, rdi
nop word [rax + rax]
inc r8
cmp byte [rax + r8], r13b
jne 0x1800162f0
mov rdx, rax
lea rcx, [rbp + 0x140]
call fcn.180002c00
nop
cmp qword [rbp + 0x150], 0
jne 0x180016345
mov dword [rsp + 0x48], 0x104
lea rdx, [rsp + 0x48]
lea rcx, [rbp + 0x1d0]
call qword [sym.imp.ADVAPI32.dll_GetUserNameA]
test eax, eax
je 0x18001692d
mov rax, qword [r14]
lea rdx, [rbp + 0x1d0]
mov rcx, r14
call qword [rax + 0x20]
mov rdx, rbx
call fcn.180015890
test al, al
je 0x18001692d
mov rax, qword [r12]
mov rcx, r12
call qword [rax + 8]
test al, al
je 0x18001692d
lea rax, [r12 + 8]
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x20], r13
xor r9d, r9d
mov r8b, 1
mov rdx, rax
lea rcx, [rbp + 0x1a0]
call fcn.18001da40
nop
mov edx, 2
lea r8d, [rdx - 1]
lea rcx, [rbp - 0x30]
call fcn.18000cf10
nop
mov rbx, qword [rbx]
mov rax, qword [r15]
mov rcx, r15
call qword [rax + 0x18]
mov byte [rsp + 0x30], al
mov rdx, qword [r15]
mov rcx, r15
call qword [rdx + 8]
mov dword [rsp + 0x50], eax
mov rdx, qword [r14]
mov rcx, r14
call qword [rdx + 0x38]
mov dword [rsp + 0x4c], eax
mov rdx, qword [r14]
mov rcx, r14
call qword [rdx + 0x48]
mov r13d, eax
mov rdx, qword [r14]
mov rcx, r14
call qword [rdx + 8]
mov r12, rax
mov rdx, qword [r14]
mov rcx, r14
call qword [rdx + 0x28]
mov r15, rax
mov rdx, qword [rbx]
mov rcx, rbx
call qword [rdx + 0x48]
mov r14, rax
mov rcx, qword [rsp + 0x60]
mov rdx, qword [rcx]
call qword [rdx + 0x18]
mov rsi, rax
mov rdx, qword [rbx]
mov rcx, rbx
call qword [rdx + 0x28]
mov rdi, rax
mov rdx, qword [rbx]
mov rcx, rbx
call qword [rdx + 0x58]
mov ebx, eax
lea rdx, str.INSERT_INTO__events___typeid__process__user__time__userdomain__machinename__logintype___t_thashvalue__senttodv__notificationgenerated__VALUES__
lea rcx, [rbp - 0x30]
call fcn.180008e70
mov rcx, rax
mov edx, ebx
call fcn.18000d970
mov rcx, rax
lea rdx, str.__
call fcn.180008e70
mov rcx, rax
mov rdx, rdi
call fcn.180008e70
mov rcx, rax
lea rdx, str.__
call fcn.180008e70
mov rcx, rax
mov rdx, rsi
call fcn.180008e70
mov rcx, rax
lea rdx, str.__
call fcn.180008e70
mov rcx, rax
mov rdx, r14
call fcn.18000d630
mov rcx, rax
lea rdx, str.__
call fcn.180008e70
mov rcx, rax
mov rdx, r15
call fcn.180008e70
mov rcx, rax
lea rdx, str.__
call fcn.180008e70
mov rcx, rax
mov rdx, r12
call fcn.180008e70
mov rcx, rax
lea rdx, str.__
call fcn.180008e70
mov rcx, rax
mov edx, r13d
call fcn.18000d970
mov rcx, rax
lea rdx, str.__
call fcn.180008e70
mov rcx, rax
mov edx, dword [rsp + 0x4c]
call fcn.18000d7d0
mov rcx, rax
lea rdx, str.__
call fcn.180008e70
mov rcx, rax
mov edx, dword [rsp + 0x50]
call fcn.18000d970
mov rcx, rax
lea rdx, str.__
call fcn.180008e70
mov rcx, rax
movzx edx, byte [rsp + 0x30]
call fcn.180017430
mov rcx, rax
lea rdx, [0x1800e5f04]
call fcn.180008e70
lea rax, [rbp + 0xc0]
mov qword [rsp + 0x50], rax
lea rdx, [rbp + 0xc0]
lea rcx, [rbp - 0x30]
call fcn.18000ce40
nop
xor r8d, r8d
mov rdx, rax
mov rbx, qword [rsp + 0x70]
mov rcx, rbx
call fcn.18001e940
test al, al
jne 0x180016571
xor r14b, r14b
jmp 0x1800168e5
xor edi, edi
mov qword [rbp + 0x170], rdi
mov qword [rbp + 0x178], rdi
mov qword [rbp + 0x178], 0xf
mov qword [rbp + 0x170], rdi
mov byte [rbp + 0x160], dil
lea rcx, [rbp - 0x28]
call fcn.18000ea70
mov r9d, dword [rbp + 0x48]
xor r8d, r8d
lea rdx, [rbp + 0x160]
lea rcx, [rbp - 0x28]
call fcn.1800103c0
nop
lea rcx, [rbp + 0x160]
call fcn.1800026e0
lea rdx, str.SELECT_last_insert_rowid__
lea rcx, [rbp - 0x30]
call fcn.180008e70
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x78], xmm0
mov qword [rbp - 0x78], rdi
lea rax, [rbp + 0xe0]
mov qword [rsp + 0x50], rax
lea rdx, [rbp + 0xe0]
lea rcx, [rbp - 0x30]
call fcn.18000ce40
nop
lea r8, [rsp + 0x78]
mov rdx, rax
mov rcx, rbx
call fcn.18001e940
test al, al
je 0x1800168d7
mov rax, qword [rbp - 0x80]
cmp qword [rsp + 0x78], rax
je 0x1800168d7
mov qword [rbp + 0x130], rdi
mov qword [rbp + 0x138], rdi
mov qword [rbp + 0x138], 0xf
mov qword [rbp + 0x130], rdi
mov byte [rbp + 0x120], dil
lea r8, [rbp + 0x120]
xor edx, edx
mov rcx, qword [rsp + 0x78]
call fcn.18001ee00
mov r13, qword [rsp + 0x58]
mov rcx, qword [r13]
mov rax, qword [rcx]
call qword [rax + 0x38]
mov rdx, rax
lea rcx, [rbp - 0x50]
call fcn.1800172f0
nop
mov r12d, edi
mov rcx, qword [r13]
mov rax, qword [rcx]
call qword [rax + 0x38]
mov rcx, qword [rax + 8]
sub rcx, qword [rax]
sar rcx, 4
test rcx, rcx
je 0x1800168b0
mov r15, qword [rbp - 0x50]
or r14, 0xffffffffffffffff
nop word [rax + rax]
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x38], xmm0
mov r8, qword [r15 + 8]
mov rdx, qword [r15]
test r8, r8
je 0x1800166ca
lock inc dword [r8 + 8]
lea rcx, [rsp + 0x38]
call fcn.180003580
nop
mov rbx, qword [rsp + 0x38]
test rbx, rbx
je 0x18001686f
mov qword [rbp + 0x190], rdi
mov qword [rbp + 0x198], rdi
mov qword [rbp + 0x198], 0xf
mov qword [rbp + 0x190], rdi
mov byte [rbp + 0x180], 0
lea rcx, [rbp - 0x28]
call fcn.18000ea70
mov r9d, dword [rbp + 0x48]
xor r8d, r8d
lea rdx, [rbp + 0x180]
lea rcx, [rbp - 0x28]
call fcn.1800103c0
nop
lea rcx, [rbp + 0x180]
call fcn.1800026e0
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x28]
movzx esi, al
mov rdx, qword [rbx]
mov rcx, rbx
call qword [rdx + 8]
mov edi, eax
mov rdx, qword [rbx]
mov rcx, rbx
call qword [rdx + 0x18]
mov rbx, rax
lea rdx, str.INSERT_INTO__alerts___eventid__keyword__count__mode__VALUES__
lea rcx, [rbp - 0x30]
call fcn.180008e70
mov rcx, rax
lea rdx, [rbp + 0x120]
call fcn.180011240
mov rcx, rax
lea rdx, str.__
call fcn.180008e70
mov rcx, rax
mov rdx, rbx
call fcn.180008e70
mov rcx, rax
lea rdx, str.__
call fcn.180008e70
mov rcx, rax
mov edx, edi
call fcn.18000d7d0
mov rcx, rax
lea rdx, str.__
call fcn.180008e70
mov rcx, rax
movzx edx, sil
call fcn.180017430
mov rcx, rax
lea rdx, [0x1800e595c]
call fcn.180008e70
lea rax, [rbp + 0x100]
mov qword [rsp + 0x58], rax
lea rdx, [rbp + 0x100]
lea rcx, [rbp - 0x30]
call fcn.18000ce40
nop
xor r8d, r8d
mov rdx, rax
mov rcx, qword [rsp + 0x70]
call fcn.18001e940
test al, al
je 0x18001686f
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x180016843
mov eax, r14d
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x180016843
mov rbx, qword [rsp + 0x40]
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
mov eax, r14d
lock xadd dword [rbx + 0xc], eax
cmp eax, 1
jne 0x180016843
mov rcx, qword [rsp + 0x40]
mov rax, qword [rcx]
call qword [rax + 8]
inc r12
add r15, 0x10
mov rcx, qword [r13]
mov rax, qword [rcx]
call qword [rax + 0x38]
mov rcx, qword [rax + 8]
sub rcx, qword [rax]
sar rcx, 4
cmp r12, rcx
mov edi, 0
jb 0x1800166b0
jmp 0x1800168b0
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x1800168ab
mov eax, r14d
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x1800168ab
mov rbx, qword [rsp + 0x40]
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
mov eax, r14d
lock xadd dword [rbx + 0xc], eax
cmp eax, 1
jne 0x1800168ab
mov rcx, qword [rsp + 0x40]
mov rax, qword [rcx]
call qword [rax + 8]
xor r14b, r14b
jmp 0x1800168bf
lea rcx, [rbp + 0x1a0]
call fcn.18001e7c0
mov r14b, 1
lea rcx, [rbp - 0x50]
call fcn.180002930
nop
lea rcx, [rbp + 0x120]
call fcn.1800026e0
jmp 0x1800168da
xor r14b, r14b
lea rcx, [rsp + 0x78]
call fcn.18000e970
nop
lea rcx, [rbp + 0x58]
call fcn.18000ce80
lea rax, [rbp + 0x58]
mov qword [rsp + 0x58], rax
lea rax, [0x1800e52d8]
mov qword [rbp + 0x58], rax
lea rax, [0x1800e5208]
mov qword [rbp + 0x58], rax
lea rcx, [rbp + 0x58]
call fcn.1800988f4
nop
lea rcx, [rbp + 0x1a0]
call fcn.18001dc70
or rdi, 0xffffffffffffffff
mov rsi, qword [rbp - 0x70]
jmp 0x180016930
xor r14b, r14b
lea rcx, [rbp + 0x140]
call fcn.1800026e0
nop
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x180016978
mov eax, edi
lock xadd dword [rcx + 8], eax
sub eax, 1
jne 0x180016978
mov rbx, qword [rsp + 0x68]
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
mov eax, edi
lock xadd dword [rbx + 0xc], eax
sub eax, 1
jne 0x180016978
mov rcx, qword [rsp + 0x68]
mov rax, qword [rcx]
call qword [rax + 8]
nop
test rsi, rsi
je 0x1800169a4
mov eax, edi
lock xadd dword [rsi + 8], eax
sub eax, 1
jne 0x1800169a4
mov rdx, qword [rsi]
mov rcx, rsi
call qword [rdx]
lock xadd dword [rsi + 0xc], edi
cmp edi, 1
jne 0x1800169a4
mov rdx, qword [rsi]
mov rcx, rsi
call qword [rdx + 8]
movzx eax, r14b
mov rcx, qword [rbp + 0x2e0]
xor rcx, rsp
call fcn.180099e90
mov rbx, qword [rsp + 0x440]
add rsp, 0x3f0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret