Function at 0x18000e818
Capabilities:
Get session user name

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x330]
sub rsp, 0x430
mov rax, qword [0x180093630]
xor rax, rsp
mov qword [rbp + 0x320], rax
mov rax, qword [rbp + 0x390]
lea rdx, [0x1800133f0]
mov r12, qword [rbp + 0x398]
xor esi, esi
mov r15, qword [rbp + 0x3a0]
mov rbx, r8
mov r14, qword [rbp + 0x3a8]
mov r13, rcx
xor r8d, r8d
mov qword [rsp + 0x78], r12
lea rcx, [0x1800963d8]
mov qword [rbp - 0x68], rax
xor r9d, r9d
mov dword [rsp + 0x68], esi
mov qword [rsp + 0x70], rsi
call qword [sym.imp.ntdll.dll_RtlRunOnceExecuteOnce]
mov rcx, qword [0x180093040]
test byte [rcx + 0x1c], 1
jne 0x18001fb4e
or dword [rsp + 0x60], 0xffffffff
mov edi, 2
or dword [rsp + 0x54], 0xffffffff
mov qword [rbp - 0x80], rsi
test rbx, rbx
je 0x1800201b3
cmp qword [rbx + 8], rsi
je 0x1800201b3
movups xmm0, xmmword [rbx]
mov rcx, r13
movdqu xmmword [rsp + 0x68], xmm0
call fcn.18000ee50
mov ebx, eax
test eax, eax
jne 0x18001fc63
call fcn.18000ee00
test eax, eax
je 0x18001fb7c
cmp dword [0x180094fe8], esi
je 0x18000e95b
xor edx, edx
mov qword [rsp + 0x20], rsi
lea r9d, [rdi + 0x2e]
lea r8, [rbp - 0x20]
lea rbx, [rdx - 2]
mov rcx, rbx
call qword [sym.imp.ntdll.dll_NtQueryInformationThread]
test eax, eax
js 0x18001fc6f
mov eax, dword [rbp + 8]
mov dword [rsp + 0x54], eax
dec eax
mov dword [rsp + 0x60], 0xf
cmp eax, 0xd
ja 0x18001fccd
mov r9d, 4
lea r8, [rsp + 0x60]
mov edx, edi
mov rcx, rbx
call qword [sym.imp.ntdll.dll_NtSetInformationThread]
test eax, eax
js 0x18001fca2
mov edi, esi
test r14, r14
je 0x18000e965
mov dword [r14], esi
test r15, r15
je 0x18000e96d
mov edi, dword [r15]
mov rcx, qword [rsp + 0x70]
call fcn.18000ecbc
mov esi, eax
mov dword [rsp + 0x50], eax
movzx ebx, ax
mov rcx, qword [0x180093040]
test byte [rcx + 0x1c], 2
jne 0x18001fcd7
mov rcx, qword [0x180096820]
lea eax, [rbx - 5]
xor edx, edx
mov qword [rbp - 0x78], 0xfffffffffeced300
lea r8, [rbp - 0x78]
cmp eax, 3
ja 0x18000eb9c
call qword [sym.imp.ntdll.dll_NtWaitForSingleObject]
xor edx, edx
test eax, eax
jne 0x18001fde2
mov rcx, qword [0x180093040]
test byte [rcx + 0x1c], 2
jne 0x18001fe23
cmp r13, 0xffffffff80000004
jne 0x18000eab7
xor r13d, r13d
lea r8, [rsp + 0x68]
mov qword [rsp + 0x30], r13
mov r9, r12
mov qword [rsp + 0x28], r14
mov ecx, esi
mov qword [rsp + 0x20], r15
call fcn.180006884
mov ebx, eax
test ebx, ebx
js 0x180020152
mov edi, 2
mov ecx, ebx
call fcn.18000dc0c
mov ebx, eax
mov rax, qword [rbp - 0x68]
test rax, rax
je 0x18000ea28
mov dword [rax], 7
mov rcx, qword [0x180096820]
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov rcx, qword [0x180093040]
test byte [rcx + 0x1c], dil
jne 0x18002018e
xor esi, esi
cmp dword [0x180094fe8], esi
je 0x18000ea81
mov eax, dword [rsp + 0x54]
test eax, eax
jle 0x18000ea81
cmp eax, dword [rsp + 0x60]
je 0x18000ea81
mov r9d, 4
lea r8, [rsp + 0x54]
mov rcx, 0xfffffffffffffffe
lea edx, [r9 - 2]
call qword [sym.imp.ntdll.dll_NtSetInformationThread]
mov rcx, qword [0x180093040]
test byte [rcx + 0x1c], 1
jne 0x1800201bd
mov eax, ebx
mov rcx, qword [rbp + 0x320]
xor rcx, rsp
call fcn.180017170
mov rbx, qword [rsp + 0x478]
add rsp, 0x430
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea rax, [r13 + 0x7fffffb0]
test rax, 0xffffffffffffffef
jne 0x18001fe50
xor r8d, r8d
mov dword [rsp + 0x5c], edx
mov rsi, rdx
mov dword [rsp + 0x58], edx
lea r9, [rsp + 0x5c]
lea rdx, [rsp + 0x58]
lea ecx, [r8 + 0x24]
call qword [sym.imp.ntdll.dll_RtlGetThreadPreferredUILanguages]
mov ebx, eax
test eax, eax
jne 0x18001fe5a
mov eax, dword [rsp + 0x5c]
test eax, eax
je 0x18000eb39
mov ecx, eax
add rcx, rcx
call fcn.18000618c
mov rsi, rax
xor eax, eax
test rsi, rsi
je 0x18001fe79
lea r9, [rsp + 0x5c]
mov r8, rsi
lea rdx, [rsp + 0x58]
lea ecx, [rax + 0x24]
call qword [sym.imp.ntdll.dll_RtlGetThreadPreferredUILanguages]
cmp dword [rsp + 0x58], 0
mov ebx, eax
je 0x18001fe6a
cmp r13, 0xffffffff80000050
jne 0x18001ffca
mov ecx, dword [rsp + 0x50]
lea rax, [0x1800703d0]
mov qword [rsp + 0x30], rax
lea r8, [rsp + 0x68]
mov qword [rsp + 0x28], r14
mov r9, r12
mov qword [rsp + 0x20], r15
call fcn.180006884
mov r12d, 0x80000000
mov ebx, eax
add eax, r12d
xor r13d, r13d
test r12d, eax
je 0x18000eca1
cmp dword [rsp + 0x58], r13d
jbe 0x18000ea03
mov rcx, rsi
call fcn.18000940c
jmp 0x18000ea03
xor r13d, r13d
xorps xmm0, xmm0
xorps xmm1, xmm1
mov dword [rbp - 0x58], r13d
movdqu xmmword [rbp - 0x50], xmm0
mov qword [rbp - 0x30], r13
movdqu xmmword [rbp - 0x40], xmm1
mov qword [rbp - 0x28], r13
call qword [sym.imp.ntdll.dll_NtWaitForSingleObject]
test eax, eax
jne 0x18001fcff
mov rcx, qword [0x180093040]
test byte [rcx + 0x1c], 2
jne 0x18001fd3d
mov esi, 0x7a
cmp edi, esi
jb 0x18001fd68
cmp ebx, 3
je 0x18001fd96
test r12, r12
je 0x18000ec01
lea rdx, [rbp - 0x80]
mov rcx, r12
call fcn.18001124c
mov rax, qword [rsp + 0x70]
mov ecx, dword [rsp + 0x50]
mov qword [rbp - 0x50], rax
lea rax, [rbp - 0x80]
mov dword [rbp - 0x58], ecx
lea rcx, [rbp - 0x58]
mov qword [rbp - 0x38], rax
mov qword [rbp - 0x48], r12
mov qword [rbp - 0x40], r15
mov qword [rbp - 0x30], r13
mov qword [rbp - 0x28], r13
call fcn.180010d9c
mov ebx, eax
mov rcx, qword [0x180096820]
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov rcx, qword [0x180093040]
test byte [rcx + 0x1c], 2
jne 0x18001fdb7
test ebx, ebx
jne 0x18000ecb2
mov edi, dword [rbp - 0x80]
mov ebx, r13d
sub edi, r12d
test r15, r15
je 0x18000ec67
mov dword [r15], edi
mov dword [r12 + 0x14], edi
mov rcx, qword [0x180093040]
test r14, r14
je 0x18000ec82
mov dword [r14], edi
mov rcx, qword [0x180093040]
mov rax, qword [rbp - 0x68]
test rax, rax
je 0x18000ea46
mov dword [rax], 3
mov rcx, qword [0x180093040]
jmp 0x18000ea46
cmp ebx, 0x80000005
je 0x18000eb84
jmp 0x18001fe87
cmp edi, esi
cmovae edi, esi
jmp 0x18000ec73
cmp byte [rcx + 0x19], 4
jb 0x18000e8a9
mov rcx, qword [rcx + 0x10]
lea r8, [0x18007d350]
mov edx, 0x12
mov r9, rbx
call fcn.180047274
mov rcx, qword [0x180093040]
jmp 0x18000e8a9
mov ebx, 0xc00003e8
lea r8, [0x1800965e8]
mov ecx, ebx
xor edx, edx
call fcn.18004b234
xor r13d, r13d
test eax, eax
je 0x18001fc2d
lea r8, [rsp + 0x5c]
mov dword [rsp + 0x5c], 0x80
lea rdx, [rbp + 0x10]
mov ecx, 0x10002
call qword [sym.imp.SspiCli.dll_GetUserNameExW]
test al, al
jne 0x18001fbc1
mov word [rbp + 0x10], r13w
mov r8d, 0x104
lea rdx, [rbp + 0x110]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
jne 0x18001fbe2
mov word [rbp + 0x110], r13w
mov rcx, qword [0x180096360]
lea rax, [rbp + 0x10]
mov qword [rbp - 0x68], rax
lea rax, [rbp + 0x110]
mov qword [rbp - 0x60], rax
test rcx, rcx
je 0x18001fc2d
mov qword [rsp + 0x40], r13
lea rax, [rbp - 0x68]
mov qword [rsp + 0x38], rax
xor r8d, r8d
mov dword [rsp + 0x30], r13d
mov r9d, ebx
mov word [rsp + 0x28], di
mov qword [rsp + 0x20], r13
lea edx, [r8 + 1]
call sym.ADVAPI32.dll_ReportEventW
mov ebx, 5
mov rcx, qword [0x180093040]
test byte [rcx + 0x1c], dil
je 0x18000ea46
cmp byte [rcx + 0x19], dil
jb 0x18000ea46
mov rcx, qword [rcx + 0x10]
lea edx, [rbx + 0xe]
mov r9d, ebx
lea r8, [0x18007d350]
call fcn.180047190
mov rcx, qword [0x180093040]
jmp 0x18000ea48
mov rcx, qword [0x180093040]
test byte [rcx + 0x1c], dil
je 0x18001fc9a
cmp byte [rcx + 0x19], dil
jb 0x18001fc9a
mov rcx, qword [rcx + 0x10]
lea r8, [0x18007d350]
mov edx, 0x14
mov r9d, eax
call fcn.180047190
or eax, 0xffffffff
jmp 0x18000e926
mov rcx, qword [0x180093040]
test byte [rcx + 0x1c], dil
je 0x18001fccd
cmp byte [rcx + 0x19], dil
jb 0x18001fccd
mov rcx, qword [rcx + 0x10]
lea r8, [0x18007d350]
mov edx, 0x15
mov r9d, eax
call fcn.180047190
or dword [rsp + 0x54], 0xffffffff
jmp 0x18000e95b
cmp byte [rcx + 0x19], 4
jb 0x18000e991
mov rcx, qword [rcx + 0x10]
lea r8, [0x18007d350]
mov edx, 0x16
mov r9d, ebx
call fcn.180047190
nop
jmp 0x18000e991
mov ebx, 0xaa
mov rcx, qword [0x180093040]
test byte [rcx + 0x1c], 2
je 0x18001fd36
cmp byte [rcx + 0x19], 2
jb 0x18001fd36
mov rcx, qword [rcx + 0x10]
lea r8, [0x18007d350]
mov edx, 0x1b
mov r9d, eax
call fcn.180047190
mov rcx, qword [0x180093040]
mov esi, edi
jmp 0x18000ecb2
cmp byte [rcx + 0x19], 4
jb 0x18000ebda
mov rcx, qword [rcx + 0x10]
lea r8, [0x18007d350]
mov edx, 0x1c
call fcn.180047170
mov rcx, qword [0x180093040]
jmp 0x18000ebda
test byte [rcx + 0x1c], 2
je 0x18001fd8c
cmp byte [rcx + 0x19], 2
jb 0x18001fd8c
mov rcx, qword [rcx + 0x10]
lea r8, [0x18007d350]
mov edx, 0x1d
mov r9d, edi
call fcn.180047190
mov ebx, 0xea
jmp 0x18000ec34
test r12, r12
je 0x18000ec01
xor edx, edx
mov qword [rbp - 0x80], r12
mov rcx, r12
lea r8d, [rdx + 0x58]
call sub.msvcrt.dll_memset
nop
jmp 0x18000ec01
cmp byte [rcx + 0x19], 4
jb 0x18000ec52
mov rcx, qword [rcx + 0x10]
lea r8, [0x18007d350]
mov edx, 0x1e
call fcn.180047170
mov rcx, qword [0x180093040]
jmp 0x18000ec52
mov ebx, 0xaa
mov rcx, qword [0x180093040]
mov edi, 2
test byte [rcx + 0x1c], dil
je 0x18000ea46
cmp byte [rcx + 0x19], dil
jb 0x18000ea46
mov rcx, qword [rcx + 0x10]
lea edx, [rdi + 0x15]
mov r9d, eax
lea r8, [0x18007d350]
call fcn.180047190
nop
jmp 0x18000ec95
cmp byte [rcx + 0x19], 4
jb 0x18000e9d3
mov rcx, qword [rcx + 0x10]
lea r8, [0x18007d350]
mov edx, 0x18
call fcn.180047170
mov rcx, qword [0x180093040]
xor edx, edx
jmp 0x18000e9d3
mov ebx, 0xc000000d
jmp 0x180020159
cmp eax, 0xc0000023
jne 0x18000eb39
jmp 0x18000eaf6
mov rcx, rsi
call fcn.18000940c
xor esi, esi
jmp 0x18000eb39
mov dword [rsp + 0x58], eax
mov ebx, 0xc0000017
jmp 0x18000eb39
test rsi, rsi
je 0x18000eb84
cmp word [rsi], r13w
je 0x18000eb84
mov rcx, rsi
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], r13w
jne 0x18001fea1
inc rax
lea rax, [rsi + rax*2]
jmp 0x18001fecd
mov rcx, rax
or rdx, 0xffffffffffffffff
inc rdx
cmp word [rax + rdx*2], r13w
jne 0x18001febb
lea rax, [rax + rdx*2]
add rax, 2
cmp word [rax], r13w
jne 0x18001feb4
call fcn.180006144
mov r13d, eax
lea r8, [0x180097410]
xor eax, eax
xor edx, edx
mov ecx, r13d
mov qword [0x180097410], rax
mov qword [0x180097418], rax
lea r9d, [rax + 8]
call fcn.18004bb0c
xor eax, eax
test r15, r15
je 0x18001ff0a
mov dword [r15], edi
test r14, r14
je 0x18001ff12
mov dword [r14], eax
mov r9, qword [rsp + 0x78]
mov ecx, dword [rsp + 0x50]
mov qword [rsp + 0x30], r8
lea r8, [rsp + 0x68]
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x20], r15
call fcn.180006884
mov ebx, eax
add eax, r12d
test r12d, eax
jne 0x18002014a
cmp ebx, 0x80000005
je 0x18002014a
xor eax, eax
lea r8, [0x180097410]
and r13d, 0x3ff
mov qword [0x180097410], rax
mov dl, 1
mov qword [0x180097418], rax
mov ecx, r13d
lea r9d, [rax + 8]
call fcn.18004bb0c
xor r13d, r13d
test r15, r15
je 0x18001ff85
mov dword [r15], edi
test r14, r14
je 0x18001ff8d
mov dword [r14], r13d
mov r9, qword [rsp + 0x78]
mov qword [rsp + 0x30], r8
jmp 0x18001ffab
mov dword [r14], r13d
lea rax, [0x1800703d0]
mov r9, r12
mov qword [rsp + 0x30], rax
mov ecx, dword [rsp + 0x50]
lea r8, [rsp + 0x68]
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x20], r15
call fcn.180006884
mov ebx, eax
jmp 0x18000eb84
cmp r13, 0xffffffff80000060
jne 0x18002014a
xor r13d, r13d
test rsi, rsi
je 0x180020134
cmp word [rsi], r13w
je 0x18002010b
mov rcx, rsi
lea r12, [0x180097410]
mov qword [rbp - 0x70], rcx
call fcn.180006144
mov r13d, eax
mov r8, r12
xor eax, eax
xor edx, edx
mov ecx, r13d
mov qword [0x180097410], rax
mov qword [0x180097418], rax
lea r9d, [rax + 8]
call fcn.18004bb0c
xor eax, eax
test r15, r15
je 0x18002002e
mov dword [r15], edi
test r14, r14
je 0x180020036
mov dword [r14], eax
mov r9, qword [rsp + 0x78]
lea r8, [rsp + 0x68]
mov ecx, dword [rsp + 0x50]
mov qword [rsp + 0x30], r12
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x20], r15
call fcn.180006884
mov ebx, eax
xor eax, eax
test ebx, ebx
jns 0x180020106
cmp ebx, 0x80000005
je 0x18002014a
and r13d, 0x3ff
mov qword [0x180097410], rax
mov ecx, r13d
mov qword [0x180097418], rax
lea r9d, [rax + 8]
mov r8, r12
mov dl, 1
call fcn.18004bb0c
xor r13d, r13d
test r15, r15
je 0x1800200a1
mov dword [r15], edi
test r14, r14
je 0x1800200a9
mov dword [r14], r13d
mov r9, qword [rsp + 0x78]
lea r8, [rsp + 0x68]
mov ecx, dword [rsp + 0x50]
mov qword [rsp + 0x30], r12
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x20], r15
call fcn.180006884
mov ebx, eax
test eax, eax
jns 0x180020110
cmp eax, 0x80000005
je 0x18000eb84
mov rcx, qword [rbp - 0x70]
or rax, 0xffffffffffffffff
inc rax
cmp word [rcx + rax*2], r13w
jne 0x1800200e4
lea rcx, [rcx + rax*2]
add rcx, 2
mov qword [rbp - 0x70], rcx
cmp word [rcx], r13w
jne 0x18001fffb
jmp 0x180020110
xor r13d, r13d
jmp 0x180020110
mov ebx, 0xc000000d
mov r12d, 0x80000000
lea eax, [rbx + r12]
test r12d, eax
jne 0x18000eb84
cmp ebx, 0x80000005
je 0x18000eb84
mov r12, qword [rsp + 0x78]
test r15, r15
je 0x18002013c
mov dword [r15], edi
test r14, r14
je 0x18001ff9c
jmp 0x18001ff99
xor r13d, r13d
jmp 0x18000eb84
mov rcx, qword [0x180093040]
mov edi, 2
test byte [rcx + 0x1c], dil
je 0x18000ea10
cmp byte [rcx + 0x19], dil
jb 0x18000ea10
mov rcx, qword [rcx + 0x10]
lea edx, [rdi + 0x17]
mov r9d, ebx
lea r8, [0x18007d350]
call fcn.180047190
nop
jmp 0x18000ea10
cmp byte [rcx + 0x19], 4
jb 0x18000ea46
mov rcx, qword [rcx + 0x10]
lea r8, [0x18007d350]
mov edx, 0x1a
call fcn.180047170
nop
jmp 0x18000ec95
mov ebx, 0x57
jmp 0x18000ea48
cmp byte [rcx + 0x19], 4
jb 0x18000ea8b
mov rcx, qword [rcx + 0x10]
lea r8, [0x18007d350]
mov edx, 0x1f
mov r9d, ebx
call fcn.180047190
nop
jmp 0x18000ea8b