Function at 0x180013ca0
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.180001b70
nop
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0xd0]
call fcn.180013b40
nop
cmp qword [rsp + 0x68], 0x10
jb 0x180013d2b
mov rcx, qword [rsp + 0x50]
call fcn.18003c1d8
mov qword [rsp + 0x68], rbx
mov qword [rsp + 0x60], r13
mov byte [rsp + 0x50], r13b
lea rcx, str.scan_pw
call fcn.180039a28
lea rdx, [rsp + 0xd0]
lea rcx, [rsp + 0xa0]
call fcn.180001248
nop
cmp qword [rax + 0x20], 8
jb 0x180013d69
mov rdx, qword [rax + 8]
jmp 0x180013d6d
lea rdx, [rax + 8]
lea r8, [0x18005d700]
lea rcx, [rsp + 0x70]
call fcn.180037d14
nop
cmp qword [rsp + 0xc0], 8
jb 0x180013d97
mov rcx, qword [rsp + 0xa8]
call fcn.18003c1d8
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.180039a28
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 0x180013e00
mov dword [rbp], 1
jmp 0x18001409d
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 0x180013e4f
lea rdx, [rsp + 0x100]
lea rcx, str.UserName:_ls
call fcn.180039a28
mov dword [rbp], 1
jmp 0x18001409d
mov qword [rsp + 0x30], r13
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], r13d
mov r9d, 2
lea r8, [0x18005d374]
lea rdx, [0x18005e498]
lea rcx, [rsp + 0x100]
call qword [sym.imp.ADVAPI32.dll_LogonUserW]
cmp eax, r13d
jne 0x180013eeb
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x52f
jne 0x180013eeb
lea rcx, str.not_find_pw
call fcn.180039a28
lea r8, [rsp + 0x100]
lea rdx, [0x18005e428]
lea rcx, [rsp + 0x48]
call fcn.1800380e4
nop
or r9, 0xffffffffffffffff
xor r8d, r8d
mov rdx, rax
mov rcx, r12
call fcn.1800019d8
nop
cmp qword [rsp + 0x68], 8
jb 0x180013ee2
mov rcx, qword [rsp + 0x50]
call fcn.18003c1d8
mov dword [rbp], r13d
jmp 0x18001409d
mov rcx, qword [rsp + 0x30]
cmp rcx, r13
je 0x180013efb
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x88]
mov rbx, rcx
mov rsi, qword [rsp + 0x90]
cmp rcx, rsi
jbe 0x180013f28
call fcn.18003c934
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 0x180013f56
call fcn.18003c934
cmp rdi, r13
je 0x180013f62
cmp rdi, qword [rsp + 0x70]
je 0x180013f67
call fcn.18003c934
cmp rbx, rsi
je 0x18001409d
cmp rdi, r13
jne 0x180013f7f
call fcn.18003c934
mov r11, r13
jmp 0x180013f82
mov r11, qword [rdi]
cmp rbx, qword [r11 + 0x20]
jb 0x180013f8d
call fcn.18003c934
cmp qword [rbx + 0x20], 8
jb 0x180013f9a
mov r8, qword [rbx + 8]
jmp 0x180013f9e
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, [0x18005e498]
lea rcx, [rsp + 0x100]
call qword [sym.imp.ADVAPI32.dll_LogonUserW]
cmp eax, r13d
jne 0x180014008
cmp rdi, r13
jne 0x180013fe1
call fcn.18003c934
mov r11, r13
jmp 0x180013fe4
mov r11, qword [rdi]
cmp rbx, qword [r11 + 0x20]
jb 0x180013fef
call fcn.18003c934
add rbx, 0x28
mov rsi, qword [rsp + 0x90]
mov rcx, qword [rsp + 0x88]
jmp 0x180013f4c
mov rcx, qword [rsp + 0x30]
cmp rcx, r13
je 0x180014018
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp rdi, r13
jne 0x180014027
call fcn.18003c934
mov r11, r13
jmp 0x18001402a
mov r11, qword [rdi]
cmp rbx, qword [r11 + 0x20]
jb 0x180014035
call fcn.18003c934
cmp qword [rbx + 0x20], 8
jb 0x180014042
mov r8, qword [rbx + 8]
jmp 0x180014046
lea r8, [rbx + 8]
lea rdx, [rsp + 0x100]
lea rcx, str.user__ls_match_pw__ls
call fcn.180039a28
lea r8, [rsp + 0x100]
lea rdx, [0x18005e478]
lea rcx, [rsp + 0x48]
call fcn.1800380e4
nop
or r9, 0xffffffffffffffff
xor r8d, r8d
mov rdx, rax
mov rcx, r12
call fcn.1800019d8
nop
cmp qword [rsp + 0x68], 8
jb 0x180014099
mov rcx, qword [rsp + 0x50]
call fcn.18003c1d8
mov dword [rbp], r13d
lea rcx, [rsp + 0x70]
call fcn.180006878
nop
cmp qword [rsp + 0xf0], 0x10
jb 0x1800140c0
mov rcx, qword [rsp + 0xd8]
call fcn.18003c1d8
mov al, 1
mov rcx, qword [rsp + 0x500]
xor rcx, rsp
call fcn.18003c180
mov rbx, qword [rsp + 0x540]
add rsp, 0x510
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret