Function at 0x18001460c
Capabilities:
Get session user name
Impersonate user

Disassembly:
mov rax, rsp
push rbp
push rsi
push rdi
push r12
push r13
sub rsp, 0x510
mov qword [rsp + 0xc8], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov rax, qword [0x1800754d0]
xor rax, rsp
mov qword [rsp + 0x500], rax
mov r12, r8
mov rbp, rdx
mov ebx, 0xf
mov qword [rsp + 0x68], rbx
xor r13d, r13d
mov qword [rsp + 0x60], r13
mov byte [rsp + 0x50], r13b
lea r8d, [rbx - 1]
lea rdx, str.weak_passwords
lea rcx, [rsp + 0x48]
call fcn.180002794
nop
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0xd0]
call fcn.1800144ac
nop
cmp qword [rsp + 0x68], 0x10
jb 0x180014697
mov rcx, qword [rsp + 0x50]
call fcn.18003c228
mov qword [rsp + 0x68], rbx
mov qword [rsp + 0x60], r13
mov byte [rsp + 0x50], r13b
lea rcx, str.scan_pw
call fcn.180039ab0
lea rdx, [rsp + 0xd0]
lea rcx, [rsp + 0xa0]
call fcn.180003bbc
nop
cmp qword [rax + 0x20], 8
jb 0x1800146d5
mov rdx, qword [rax + 8]
jmp 0x1800146d9
lea rdx, [rax + 8]
lea r8, [0x18005d7b0]
lea rcx, [rsp + 0x70]
call fcn.1800223d0
nop
cmp qword [rsp + 0xc0], 8
jb 0x180014703
mov rcx, qword [rsp + 0xa8]
call fcn.18003c228
mov qword [rsp + 0xc0], 7
mov qword [rsp + 0xb8], r13
mov word [rsp + 0xa8], r13w
mov edx, dword [rsp + 0xe8]
lea rcx, str.pw_size:_d
call fcn.180039ab0
mov r11, qword [rsp + 0x90]
sub r11, qword [rsp + 0x88]
movabs rax, 0x6666666666666667
imul r11
sar rdx, 4
mov rax, rdx
shr rax, 0x3f
add rdx, rax
jne 0x18001476c
mov dword [rbp], 1
jmp 0x180014a09
mov word [rsp + 0x100], r13w
mov dword [rsp + 0x40], 0x200
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x100]
call qword [sym.imp.ADVAPI32.dll_GetUserNameW]
cmp word [rsp + 0x100], r13w
jne 0x1800147bb
lea rdx, [rsp + 0x100]
lea rcx, str.UserName:_ls
call fcn.180039ab0
mov dword [rbp], 1
jmp 0x180014a09
mov qword [rsp + 0x30], r13
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], r13d
mov r9d, 2
lea r8, [0x18005d48c]
lea rdx, [0x18005e538]
lea rcx, [rsp + 0x100]
call qword [sym.imp.ADVAPI32.dll_LogonUserW]
cmp eax, r13d
jne 0x180014857
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x52f
jne 0x180014857
lea rcx, str.not_find_pw
call fcn.180039ab0
lea r8, [rsp + 0x100]
lea rdx, [0x18005e4c8]
lea rcx, [rsp + 0x48]
call fcn.18002297c
nop
or r9, 0xffffffffffffffff
xor r8d, r8d
mov rdx, rax
mov rcx, r12
call fcn.1800023b8
nop
cmp qword [rsp + 0x68], 8
jb 0x18001484e
mov rcx, qword [rsp + 0x50]
call fcn.18003c228
mov dword [rbp], r13d
jmp 0x180014a09
mov rcx, qword [rsp + 0x30]
cmp rcx, r13
je 0x180014867
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x88]
mov rbx, rcx
mov rsi, qword [rsp + 0x90]
cmp rcx, rsi
jbe 0x180014894
call fcn.18003c9b4
mov rsi, qword [rsp + 0x90]
mov rcx, qword [rsp + 0x88]
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x38], rbx
movaps xmm0, xmmword [rsp + 0x30]
movdqa xmmword [rsp + 0x30], xmm0
mov rdi, qword [rsp + 0x30]
mov rbx, qword [rsp + 0x38]
cmp rcx, rsi
jbe 0x1800148c2
call fcn.18003c9b4
cmp rdi, r13
je 0x1800148ce
cmp rdi, qword [rsp + 0x70]
je 0x1800148d3
call fcn.18003c9b4
cmp rbx, rsi
je 0x180014a09
cmp rdi, r13
jne 0x1800148eb
call fcn.18003c9b4
mov r11, r13
jmp 0x1800148ee
mov r11, qword [rdi]
cmp rbx, qword [r11 + 0x20]
jb 0x1800148f9
call fcn.18003c9b4
cmp qword [rbx + 0x20], 8
jb 0x180014906
mov r8, qword [rbx + 8]
jmp 0x18001490a
lea r8, [rbx + 8]
mov qword [rsp + 0x30], r13
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], r13d
mov r9d, 2
lea rdx, [0x18005e538]
lea rcx, [rsp + 0x100]
call qword [sym.imp.ADVAPI32.dll_LogonUserW]
cmp eax, r13d
jne 0x180014974
cmp rdi, r13
jne 0x18001494d
call fcn.18003c9b4
mov r11, r13
jmp 0x180014950
mov r11, qword [rdi]
cmp rbx, qword [r11 + 0x20]
jb 0x18001495b
call fcn.18003c9b4
add rbx, 0x28
mov rsi, qword [rsp + 0x90]
mov rcx, qword [rsp + 0x88]
jmp 0x1800148b8
mov rcx, qword [rsp + 0x30]
cmp rcx, r13
je 0x180014984
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp rdi, r13
jne 0x180014993
call fcn.18003c9b4
mov r11, r13
jmp 0x180014996
mov r11, qword [rdi]
cmp rbx, qword [r11 + 0x20]
jb 0x1800149a1
call fcn.18003c9b4
cmp qword [rbx + 0x20], 8
jb 0x1800149ae
mov r8, qword [rbx + 8]
jmp 0x1800149b2
lea r8, [rbx + 8]
lea rdx, [rsp + 0x100]
lea rcx, str.user__ls_match_pw__ls
call fcn.180039ab0
lea r8, [rsp + 0x100]
lea rdx, [0x18005e518]
lea rcx, [rsp + 0x48]
call fcn.18002297c
nop
or r9, 0xffffffffffffffff
xor r8d, r8d
mov rdx, rax
mov rcx, r12
call fcn.1800023b8
nop
cmp qword [rsp + 0x68], 8
jb 0x180014a05
mov rcx, qword [rsp + 0x50]
call fcn.18003c228
mov dword [rbp], r13d
lea rcx, [rsp + 0x70]
call fcn.180007a44
nop
cmp qword [rsp + 0xf0], 0x10
jb 0x180014a2c
mov rcx, qword [rsp + 0xd8]
call fcn.18003c228
mov al, 1
mov rcx, qword [rsp + 0x500]
xor rcx, rsp
call fcn.18003c1d0
mov rbx, qword [rsp + 0x540]
add rsp, 0x510
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret